Ignore:
Timestamp:
Dec 16, 2017, 12:51:48 PM (18 months ago)
Author:
cameron
Message:

Decouple Unicode property support from re_compiler; initial support for (?-m) flag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/UCD/resolve_properties.cpp

    r5770 r5786  
    110110            property->setDefinition(makeDiff(makeAny(), unassigned));
    111111            return true;
    112         } else if (value == "GCB" || value == "NonGCB"){
     112        } else if (value == "GCB" || value == "NonGCB") {
    113113            generateGraphemeClusterBoundaryRule(property);
     114            return true;
     115        } else if (value == "^s") {  // "start anchor (^) in single-line mode"
     116            property->setDefinition(makeNegativeLookBehindAssertion(makeCC(0, 0x10FFFF)));
     117            return true;
     118        } else if (value == "$s") { // "end anchor ($) in single-line mode"
     119            property->setDefinition(makeNegativeLookAheadAssertion(makeCC(0, 0x10FFFF)));
    114120            return true;
    115121        }
Note: See TracChangeset for help on using the changeset viewer.