Ignore:
Timestamp:
Oct 4, 2017, 11:32:37 AM (21 months ago)
Author:
cameron
Message:

Enabling Unicode string properties for \p{prop=string} search

Location:
icGREP/icgrep-devel/icgrep/re
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/printer_re.cpp

    r5430 r5663  
    5353    } else if (const Name* re_name = dyn_cast<const Name>(re)) {
    5454        retVal = "Name \"";
     55        if (re_name->hasNamespace()) {
     56            retVal += re_name->getNamespace();
     57            retVal += ":";
     58        }
    5559        retVal += re_name->getName();
    5660        retVal += "\" ";
  • icGREP/icgrep-devel/icgrep/re/re_parser.cpp

    r5648 r5663  
    656656                ++mCursor;
    657657            }
    658             return createName(canonicalize(start, prop_end), canonicalize(val_start, mCursor.pos()));
     658            return createName(canonicalize(start, prop_end), std::string(val_start, mCursor.pos()));
    659659        } else {
    660660            // property-value is another regex
Note: See TracChangeset for help on using the changeset viewer.