Ignore:
Timestamp:
Oct 3, 2015, 3:31:16 PM (4 years ago)
Author:
nmedfort
Message:

Added union/diff/intersection functionality to RE_Compiler. Removed toUTF8 pass in favour of using the UCD_Compiler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/utf8_encoder.h

    r4615 r4814  
    1616class CC_NameMap;
    1717
    18 class UTF8_Encoder {
    19 public:
    20     static re::RE * toUTF8(CC_NameMap & nameMap, re::RE * ast);
    21 
     18struct UTF8_Encoder {
    2219    static bool isPrefix(const re::codepoint_t cp);
    2320    static unsigned length(const re::codepoint_t cp);
     
    2825    static re::codepoint_t minCodePointWithCommonBytes(const re::codepoint_t cp, const unsigned n);
    2926    static re::codepoint_t maxCodePointWithCommonBytes(const re::codepoint_t cp, const unsigned n);
    30 private:
    31     static re::RE * rangeToUTF8(const re::interval_t & item);
    32     static re::RE * rangeToUTF8(const re::codepoint_t lo, const re::codepoint_t hi, const unsigned index, const unsigned max);
    33     static re::CC * makeByteClass(const re::codepoint_t cp);
    34     static re::CC * makeByteRange(const re::codepoint_t lo, const re::codepoint_t hi);
    3527};
    3628
Note: See TracChangeset for help on using the changeset viewer.