Debian Codegraph @

gr2fonttest/UtfCodec.cpp

raw
1 // SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later
2 // Copyright 2010, SIL International, All rights reserved.
3
4 #include "UtfCodec.h"
5 //using namespace graphite2;
6
7 namespace graphite2 {
8
9 }
10
11 using namespace graphite2;
12
13 const int8 _utf_codec<8>::sz_lut[16] =
14 {
15 1,1,1,1,1,1,1,1, // 1 byte
16 0,0,0,0, // trailing byte
17 2,2, // 2 bytes
18 3, // 3 bytes
19 4 // 4 bytes
20 };
21
22 const byte _utf_codec<8>::mask_lut[5] = {0x7f, 0xff, 0x3f, 0x1f, 0x0f};