Changeset 5791


Ignore:
Timestamp:
Dec 19, 2017, 2:21:45 PM (6 months ago)
Author:
cameron
Message:

Fix flag processing

File:
1 edited

Legend:

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

    r5789 r5791  
    121121
    122122RE * createStart(ModeFlagSet flags) {
    123     if ((flags && ModeFlagType::MULTILINE_MODE_FLAG) == 0) return makeZeroWidth("^s");  //single-line mode
     123    if ((flags & ModeFlagType::MULTILINE_MODE_FLAG) == 0) return makeZeroWidth("^s");  //single-line mode
    124124    if ((flags & ModeFlagType::UNIX_LINES_MODE_FLAG) != 0) {
    125125        return makeNegativeLookBehindAssertion(makeByte(makeCC(makeCC(0, '\n'-1), makeCC('\n'+1, 0xFF))));
     
    128128}
    129129RE * createEnd(ModeFlagSet flags) {
    130     if ((flags && ModeFlagType::MULTILINE_MODE_FLAG) == 0) return makeZeroWidth("$s");  //single-line mode
     130    if ((flags & ModeFlagType::MULTILINE_MODE_FLAG) == 0) return makeZeroWidth("$s");  //single-line mode
    131131    if ((flags & ModeFlagType::UNIX_LINES_MODE_FLAG) != 0) {
    132132        return makeNegativeLookAheadAssertion(makeByte(makeCC(makeCC(0, '\n'-1), makeCC('\n'+1, 0xFF))));
Note: See TracChangeset for help on using the changeset viewer.