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

    r4814 r5278  
    1010#include <stdexcept>
    1111
    12 using namespace re;
     12using namespace UCD;
    1313
    1414namespace cc {
     
    8686}
    8787
    88 codepoint_t UTF8_Encoder::minCodePointWithCommonBytes(const re::codepoint_t cp, const unsigned n) {
     88codepoint_t UTF8_Encoder::minCodePointWithCommonBytes(const UCD::codepoint_t cp, const unsigned n) {
    8989    const auto len = length(cp);
    9090    const auto mask = (static_cast<codepoint_t>(1) << (len - n) * 6) - 1;
     
    9393}
    9494
    95 codepoint_t UTF8_Encoder::maxCodePointWithCommonBytes(const re::codepoint_t cp, const unsigned n) {
     95codepoint_t UTF8_Encoder::maxCodePointWithCommonBytes(const UCD::codepoint_t cp, const unsigned n) {
    9696    const auto len = length(cp);
    9797    const auto mask = (static_cast<codepoint_t>(1) << (len - n) * 6) - 1;
Note: See TracChangeset for help on using the changeset viewer.