summaryrefslogtreecommitdiff
path: root/thirdparty/graphite/src/UtfCodec.cpp
blob: 9156bad00f1c36f77a46abe92cc5385462e445ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later
// Copyright 2010, SIL International, All rights reserved.

#include "inc/UtfCodec.h"
//using namespace graphite2;

namespace graphite2 {

}

using namespace graphite2;

const int8 _utf_codec<8>::sz_lut[16] =
{
        1,1,1,1,1,1,1,1,    // 1 byte
        0,0,0,0,            // trailing byte
        2,2,                // 2 bytes
        3,                  // 3 bytes
        4                   // 4 bytes
};

const byte  _utf_codec<8>::mask_lut[5] = {0x7f, 0xff, 0x3f, 0x1f, 0x0f};