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.cpp

    r5046 r5278  
    1010#include <stdexcept>
    1111
    12 using namespace re;
     12using namespace UCD;
    1313
    1414namespace cc {
     
    7979}
    8080
    81 codepoint_t UTF16_Encoder::minCodePointWithCommonBytes(const re::codepoint_t cp, const unsigned n) {
     81codepoint_t UTF16_Encoder::minCodePointWithCommonBytes(const codepoint_t cp, const unsigned n) {
    8282    const auto len = length(cp);
    8383    const auto mask = (static_cast<codepoint_t>(1) << (len - n) * 10) - 1;
     
    8686}
    8787
    88 codepoint_t UTF16_Encoder::maxCodePointWithCommonBytes(const re::codepoint_t cp, const unsigned n) {
     88codepoint_t UTF16_Encoder::maxCodePointWithCommonBytes(const codepoint_t cp, const unsigned n) {
    8989    const auto len = length(cp);
    9090    const auto mask = (static_cast<codepoint_t>(1) << (len - n) * 10) - 1;
Note: See TracChangeset for help on using the changeset viewer.