Changeset 5936 for icGREP


Ignore:
Timestamp:
Mar 30, 2018, 11:05:33 AM (12 months ago)
Author:
cameron
Message:

Bug fix

File:
1 edited

Legend:

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

    r5911 r5936  
    161161    const auto & nameString = name->getName();
    162162    MarkerType nameMarker = compileName(name, pb);
    163     if (isUnicodeUnitLength(name)) {
     163    if (isByteLength(name)) {
     164        MarkerType nextPos = AdvanceMarker(marker, InitialPostPositionUnit, pb);
     165        nameMarker.stream = pb.createAnd(markerVar(nextPos), markerVar(nameMarker), name->getName());
     166        return nameMarker;
     167    } else if (isUnicodeUnitLength(name)) {
    164168        MarkerType nextPos = AdvanceMarker(marker, FinalPostPositionUnit, pb);
    165169        nameMarker.stream = pb.createAnd(markerVar(nextPos), markerVar(nameMarker), name->getName());
Note: See TracChangeset for help on using the changeset viewer.