Ignore:
Timestamp:
Dec 24, 2017, 6:03:30 AM (15 months ago)
Author:
cameron
Message:

Allow RE compiler to handle any Unicode CCs not previously translated

File:
1 edited

Legend:

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

    r5801 r5802  
    2727#include <re/re_start.h>
    2828#include <re/re_local.h>
     29#include <re/to_utf8.h>
    2930#include <re/re_toolchain.h>        // for AlgorithmOptionIsSet, RE_Algorith...
    3031#include "cc/cc_compiler.h"         // for CC_Compiler
     
    8687
    8788MarkerType RE_Compiler::compileCC(CC * cc, MarkerType marker, PabloBuilder & pb) {
     89    // If Unicode CCs weren't pulled out earlier, we generate the equivalent
     90    // byte sequence as an RE.
     91    if (cc->getAlphabet() == &cc::Unicode) return process(toUTF8(cc), marker, pb);
    8892    PabloAST * nextPos = markerVar(marker);
    8993    if (isByteLength(cc)) {
Note: See TracChangeset for help on using the changeset viewer.