Ignore:
Timestamp:
Mar 13, 2018, 1:17:42 PM (14 months ago)
Author:
cameron
Message:

Byte-Bit grep kernel optimizes when an RE begins with an initial trigraph

File:
1 edited

Legend:

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

    r5802 r5908  
    88#include <UCD/unicode_set.h>
    99#include <UCD/UTF.h>
     10#include <cc/alphabet.h>
    1011#include <re/re_name.h>
    1112#include <re/re_start.h>
     
    6667        return r;
    6768    } else if (const CC * cc = dyn_cast<CC>(r)) {
     69        if (cc->getAlphabet() != &cc::Unicode) return r;
    6870        std::vector<RE *> alt;
    6971        for (const interval_t & i : *cc) {
Note: See TracChangeset for help on using the changeset viewer.