Ignore:
Timestamp:
Dec 4, 2014, 9:41:21 AM (5 years ago)
Author:
cameron
Message:

Defer case-insensitization until character class is complete.

File:
1 edited

Legend:

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

    r4319 r4320  
    77#include "re_cc.h"
    88#include <llvm/Support/Compiler.h>
     9#include <UCD/CaseFolding_txt.h>
    910
    1011namespace re {
     
    230231}
    231232   
    232 }
     233CC * caseInsensitize(const CC * cc) {
     234    CC * cci = makeCC();
     235    for (auto i = cc->cbegin(); i != cc->cend(); i++) {
     236        caseInsensitiveInsertRange(cci, i->lo_codepoint, i->hi_codepoint);
     237    }
     238    return cci;
     239}
     240   
     241}
Note: See TracChangeset for help on using the changeset viewer.