Ignore:
Timestamp:
Mar 10, 2018, 2:37:49 PM (16 months ago)
Author:
cameron
Message:

Fix Unicode unit length calculations to allow for assertions

File:
1 edited

Legend:

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

    r5881 r5898  
    3737   
    3838RE * UnicodeBreakRE() {
    39     return makeAlt({makeCC(0x0A, 0x0C), makeSeq({makeCC(0x0D), makeCC(0x0A)}), makeSeq({makeCC(0x0D), makeNegativeLookAheadAssertion(makeCC(0x0A))})});
     39    return makeAlt({makeCC(0x0A, 0x0C), makeCC(0x85), makeCC(0x2028,0x2029), makeSeq({makeCC(0x0D), makeNegativeLookAheadAssertion(makeCC(0x0A))})});
    4040}
    4141
Note: See TracChangeset for help on using the changeset viewer.