Ignore:
Timestamp:
Oct 14, 2015, 11:04:15 AM (3 years ago)
Author:
nmedfort
Message:

Minor changes to add grapheme boundary processing to RE analysis.

File:
1 edited

Legend:

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

    r4833 r4835  
    478478    RE * asserted = a->getAsserted();
    479479    if (a->getKind() == Assertion::Kind::Lookbehind) {
    480         MarkerType m = marker;
    481480        MarkerType lookback = compile(asserted, pb);
    482         AlignMarkers(m, lookback, pb);
     481        AlignMarkers(marker, lookback, pb);
    483482        PabloAST * lb = markerVar(lookback);
    484483        if (a->getSense() == Assertion::Sense::Negative) {
    485484            lb = pb.createNot(lb);
    486485        }
    487         return makeMarker(markerPos(m), pb.createAnd(markerVar(marker), lb, "lookback"));
     486        return makeMarker(markerPos(marker), pb.createAnd(markerVar(marker), lb, "lookback"));
    488487    } else if (isUnicodeUnitLength(asserted)) {
    489488        MarkerType lookahead = compile(asserted, pb);
Note: See TracChangeset for help on using the changeset viewer.