Ignore:
Timestamp:
Oct 26, 2018, 2:08:11 PM (6 months ago)
Author:
cameron
Message:

RE Validation

File:
1 edited

Legend:

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

    r6172 r6178  
    4949        CC * cc = cast<CC>((*s)[pos]);
    5050        if (cc->empty()) return rslt;
     51        if (cc->getAlphabet() != &cc::Unicode) return rslt;
    5152        codepoint_t lo = lo_codepoint(cc->front());
    5253        codepoint_t hi = hi_codepoint(cc->back());
     
    154155
    155156RE * NFD_Transformer::transformCC(CC * cc) {
     157    if (cc->getAlphabet() != &cc::Unicode) return cc;
    156158    UnicodeSet mappingRequired = *cc & (canonicalMapped + HangulPrecomposed);
    157159    if (hasOption(mOptions, UCD::CaseFold)) {
Note: See TracChangeset for help on using the changeset viewer.