Ignore:
Timestamp:
Dec 9, 2017, 4:37:51 PM (19 months ago)
Author:
cameron
Message:

Restructure to eliminate unnecessary dependencies on RegExpCompiler? and UCDLIB

File:
1 edited

Legend:

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

    r5768 r5770  
    11#include <re/casing.h>
    22#include <re/re_cc.h>
     3#include <UCD/unicode_set.h>
     4#include <UCD/CaseFolding.h>
    35#include <re/re_alt.h>             // for Alt, makeAlt
    46#include <re/re_any.h>             // for makeAny, Any
     
    2224RE * resolveCaseInsensitiveMode(RE * re, bool inCaseInsensitiveMode) {
    2325    if (isa<CC>(re)) {
    24         if (inCaseInsensitiveMode) return caseInsensitize(cast<CC>(re));
     26        if (inCaseInsensitiveMode) {
     27            UCD::UnicodeSet * cased = caseInsensitize(cast<CC>(re));
     28            return makeCC(std::move(*cased));
     29        }
    2530        else return re;
    2631    }
Note: See TracChangeset for help on using the changeset viewer.