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/utf16_encoder.h

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