Ignore:
Timestamp:
Jan 26, 2017, 10:06:16 AM (2 years ago)
Author:
cameron
Message:

Alphabet class: initial check-in

File:
1 edited

Legend:

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

    r4819 r5278  
    88#define UTF8_ENCODER_H
    99
    10 #include <re/re_cc.h>
     10#include <UCD/unicode_set.h>
    1111
    1212namespace cc {
    1313
    1414struct UTF8_Encoder {
    15     static bool isPrefix(const re::codepoint_t cp);
    16     static unsigned length(const re::codepoint_t cp);
    17     static re::codepoint_t maxCodePoint(const unsigned length);
    18     static re::codepoint_t encodingByte(const re::codepoint_t cp, const unsigned n);
    19     static bool isLowCodePointAfterByte(const re::codepoint_t cp, const unsigned n);
    20     static bool isHighCodePointAfterByte(const re::codepoint_t cp, const unsigned n);
    21     static re::codepoint_t minCodePointWithCommonBytes(const re::codepoint_t cp, const unsigned n);
    22     static re::codepoint_t maxCodePointWithCommonBytes(const re::codepoint_t cp, const unsigned n);
     15    static bool isPrefix(const UCD::codepoint_t cp);
     16    static unsigned length(const UCD::codepoint_t cp);
     17    static UCD::codepoint_t maxCodePoint(const unsigned length);
     18    static UCD::codepoint_t encodingByte(const UCD::codepoint_t cp, const unsigned n);
     19    static bool isLowCodePointAfterByte(const UCD::codepoint_t cp, const unsigned n);
     20    static bool isHighCodePointAfterByte(const UCD::codepoint_t cp, const unsigned n);
     21    static UCD::codepoint_t minCodePointWithCommonBytes(const UCD::codepoint_t cp, const unsigned n);
     22    static UCD::codepoint_t maxCodePointWithCommonBytes(const UCD::codepoint_t cp, const unsigned n);
    2323};
    2424
Note: See TracChangeset for help on using the changeset viewer.