Ignore:
Timestamp:
Jun 23, 2015, 9:29:39 AM (4 years ago)
Author:
nmedfort
Message:

Replaced CharSetItem? with a std::pair.

File:
1 edited

Legend:

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

    r4612 r4614  
    1616class CC_NameMap;
    1717
    18 class UTF8_Encoder
    19 {
     18class UTF8_Encoder {
    2019public:
    2120    static re::RE * toUTF8(CC_NameMap & nameMap, re::RE * ast);
     21
     22    static bool isUTF8Prefix(const re::codepoint_t cp);
     23    static unsigned lenUTF8(const re::codepoint_t cp);
     24    static re::codepoint_t maxCodePoint(const unsigned length);
     25    static re::codepoint_t u8byte(const re::codepoint_t cp, const unsigned n);
     26    static bool isLowCodePointAfterByte(const re::codepoint_t cp, const unsigned index);
     27    static bool isHighCodePointAfterByte(const re::codepoint_t cp, const unsigned index);
    2228private:
    23     static re::RE * rangeToUTF8(const re::CharSetItem & item);
     29    static re::RE * rangeToUTF8(const re::interval_t & item);
    2430    static re::RE * rangeToUTF8(const re::codepoint_t lo, const re::codepoint_t hi, const unsigned index, const unsigned max);
    2531    static re::CC * makeByteClass(const re::codepoint_t cp);
    2632    static re::CC * makeByteRange(const re::codepoint_t lo, const re::codepoint_t hi);
    27     static bool isUTF8Prefix(const unsigned cp);
    28     static unsigned lenUTF8(const unsigned cp);
    29     static unsigned maxCodePoint(const unsigned length);
    30     static re::codepoint_t u8byte(const re::codepoint_t codepoint, const unsigned n);
    3133};
    3234
Note: See TracChangeset for help on using the changeset viewer.