ELC in dev
ELC-lang
载入中...
搜索中...
未找到
elc::char_set::constexprs::offsets 命名空间参考

变量

constexpr auto UTRIE_SHIFT_1 =6+5
 Shift size for getting the index-1 table offset.
 
constexpr auto UTRIE_SHIFT_2 =5
 Shift size for getting the index-2 table offset.
 
constexpr auto UTRIE_SHIFT_1_2 =UTRIE_SHIFT_1-UTRIE_SHIFT_2
 Difference between the two shift sizes, for getting an index-1 offset from an index-2 offset.
 
constexpr auto UTRIE_OMITTED_BMP_INDEX_1_LENGTH =0x10000>>UTRIE_SHIFT_1
 Number of index-1 entries for the BMP.
 
constexpr auto UTRIE_CP_PER_INDEX_1_ENTRY =1<<UTRIE_SHIFT_1
 Number of code points per index-1 table entry.
 
constexpr auto UTRIE_INDEX_2_BLOCK_LENGTH =1<<UTRIE_SHIFT_1_2
 Number of entries in an index-2 block.
 
constexpr auto UTRIE_INDEX_2_MASK =UTRIE_INDEX_2_BLOCK_LENGTH-1
 Mask for getting the lower bits for the in-index-2-block offset.
 
constexpr auto UTRIE_DATA_BLOCK_LENGTH =1<<UTRIE_SHIFT_2
 Number of entries in a data block.
 
constexpr auto UTRIE_DATA_MASK =UTRIE_DATA_BLOCK_LENGTH-1
 Mask for getting the lower bits for the in-data-block offset.
 
constexpr auto UTRIE_INDEX_SHIFT =2
 Shift size for shifting left the index array values.
 
constexpr auto UTRIE_DATA_GRANULARITY =1<<UTRIE_INDEX_SHIFT
 The alignment size of a data block.
 
constexpr auto UTRIE_INDEX_2_OFFSET =0
 The BMP part of the index-2 table is fixed and linear and starts at offset 0.
 
constexpr auto UTRIE_LSCP_INDEX_2_OFFSET =0x10000>>UTRIE_SHIFT_2
 The part of the index-2 table for U+D800..U+DBFF stores values for lead surrogate code units not code points.
 
constexpr auto UTRIE_LSCP_INDEX_2_LENGTH =0x400>>UTRIE_SHIFT_2
 
constexpr auto UTRIE_INDEX_2_BMP_LENGTH =UTRIE_LSCP_INDEX_2_OFFSET+UTRIE_LSCP_INDEX_2_LENGTH
 Count the lengths of both BMP pieces.
 
constexpr auto UTRIE_UTF8_2B_INDEX_2_OFFSET =UTRIE_INDEX_2_BMP_LENGTH
 The 2-byte UTF-8 version of the index-2 table follows at offset 2080=0x820.
 
constexpr auto UTRIE_UTF8_2B_INDEX_2_LENGTH =0x800>>6
 
constexpr auto UTRIE_INDEX_1_OFFSET =UTRIE_UTF8_2B_INDEX_2_OFFSET+UTRIE_UTF8_2B_INDEX_2_LENGTH
 The index-1 table, only used for supplementary code points, at offset 2112=0x840.
 
constexpr auto UTRIE_MAX_INDEX_1_LENGTH =0x100000>>UTRIE_SHIFT_1
 
constexpr auto UTRIE_BAD_UTF8_DATA_OFFSET =0x80
 The illegal-UTF-8 data block follows the ASCII block, at offset 128=0x80.
 
constexpr auto UTRIE_DATA_START_OFFSET =0xc0
 The start of non-linear-ASCII data blocks, at offset 192=0xc0.
 

变量说明

◆ UTRIE_BAD_UTF8_DATA_OFFSET

constexpr auto elc::char_set::constexprs::offsets::UTRIE_BAD_UTF8_DATA_OFFSET =0x80
inlineconstexpr

The illegal-UTF-8 data block follows the ASCII block, at offset 128=0x80.

Used with linear access for single bytes 0..0xbf for simple error handling. Length 64=0x40, not UTRIE_DATA_BLOCK_LENGTH.

在文件 all_defs.cpp15284 行定义.

◆ UTRIE_CP_PER_INDEX_1_ENTRY

constexpr auto elc::char_set::constexprs::offsets::UTRIE_CP_PER_INDEX_1_ENTRY =1<<UTRIE_SHIFT_1
inlineconstexpr

Number of code points per index-1 table entry.

2048=0x800

在文件 all_defs.cpp15207 行定义.

◆ UTRIE_DATA_BLOCK_LENGTH

constexpr auto elc::char_set::constexprs::offsets::UTRIE_DATA_BLOCK_LENGTH =1<<UTRIE_SHIFT_2
inlineconstexpr

Number of entries in a data block.

32=0x20

在文件 all_defs.cpp15216 行定义.

◆ UTRIE_DATA_GRANULARITY

constexpr auto elc::char_set::constexprs::offsets::UTRIE_DATA_GRANULARITY =1<<UTRIE_INDEX_SHIFT
inlineconstexpr

The alignment size of a data block.

Also the granularity for compaction.

在文件 all_defs.cpp15230 行定义.

◆ UTRIE_DATA_MASK

constexpr auto elc::char_set::constexprs::offsets::UTRIE_DATA_MASK =UTRIE_DATA_BLOCK_LENGTH-1
inlineconstexpr

Mask for getting the lower bits for the in-data-block offset.

在文件 all_defs.cpp15219 行定义.

◆ UTRIE_DATA_START_OFFSET

constexpr auto elc::char_set::constexprs::offsets::UTRIE_DATA_START_OFFSET =0xc0
inlineconstexpr

The start of non-linear-ASCII data blocks, at offset 192=0xc0.

在文件 all_defs.cpp15287 行定义.

◆ UTRIE_INDEX_1_OFFSET

constexpr auto elc::char_set::constexprs::offsets::UTRIE_INDEX_1_OFFSET =UTRIE_UTF8_2B_INDEX_2_OFFSET+UTRIE_UTF8_2B_INDEX_2_LENGTH
inlineconstexpr

The index-1 table, only used for supplementary code points, at offset 2112=0x840.

Variable length, for code points up to highStart, where the last single-value range starts. Maximum length 512=0x200=0x100000>>UTRIE_SHIFT_1. (For 0x100000 supplementary code points U+10000..U+10ffff.)

The part of the index-2 table for supplementary code points starts after this index-1 table.

Both the index-1 table and the following part of the index-2 table are omitted completely if there is only BMP data.

在文件 all_defs.cpp15271 行定义.

◆ UTRIE_INDEX_2_BLOCK_LENGTH

constexpr auto elc::char_set::constexprs::offsets::UTRIE_INDEX_2_BLOCK_LENGTH =1<<UTRIE_SHIFT_1_2
inlineconstexpr

Number of entries in an index-2 block.

64=0x40

在文件 all_defs.cpp15210 行定义.

◆ UTRIE_INDEX_2_BMP_LENGTH

constexpr auto elc::char_set::constexprs::offsets::UTRIE_INDEX_2_BMP_LENGTH =UTRIE_LSCP_INDEX_2_OFFSET+UTRIE_LSCP_INDEX_2_LENGTH
inlineconstexpr

Count the lengths of both BMP pieces.

2080=0x820

在文件 all_defs.cpp15250 行定义.

◆ UTRIE_INDEX_2_MASK

constexpr auto elc::char_set::constexprs::offsets::UTRIE_INDEX_2_MASK =UTRIE_INDEX_2_BLOCK_LENGTH-1
inlineconstexpr

Mask for getting the lower bits for the in-index-2-block offset.

在文件 all_defs.cpp15213 行定义.

◆ UTRIE_INDEX_2_OFFSET

constexpr auto elc::char_set::constexprs::offsets::UTRIE_INDEX_2_OFFSET =0
inlineconstexpr

The BMP part of the index-2 table is fixed and linear and starts at offset 0.

Length=2048=0x800=0x10000>>UTRIE_SHIFT_2.

在文件 all_defs.cpp15238 行定义.

◆ UTRIE_INDEX_SHIFT

constexpr auto elc::char_set::constexprs::offsets::UTRIE_INDEX_SHIFT =2
inlineconstexpr

Shift size for shifting left the index array values.

Increases possible data size with 16-bit index values at the cost of compactability. This requires data blocks to be aligned by UTRIE_DATA_GRANULARITY.

在文件 all_defs.cpp15227 行定义.

◆ UTRIE_LSCP_INDEX_2_LENGTH

constexpr auto elc::char_set::constexprs::offsets::UTRIE_LSCP_INDEX_2_LENGTH =0x400>>UTRIE_SHIFT_2
inlineconstexpr

在文件 all_defs.cpp15247 行定义.

◆ UTRIE_LSCP_INDEX_2_OFFSET

constexpr auto elc::char_set::constexprs::offsets::UTRIE_LSCP_INDEX_2_OFFSET =0x10000>>UTRIE_SHIFT_2
inlineconstexpr

The part of the index-2 table for U+D800..U+DBFF stores values for lead surrogate code units not code points.

Values for lead surrogate code points are indexed with this portion of the table. Length=32=0x20=0x400>>UTRIE_SHIFT_2. (There are 1024=0x400 lead surrogates.)

在文件 all_defs.cpp15246 行定义.

◆ UTRIE_MAX_INDEX_1_LENGTH

constexpr auto elc::char_set::constexprs::offsets::UTRIE_MAX_INDEX_1_LENGTH =0x100000>>UTRIE_SHIFT_1
inlineconstexpr

在文件 all_defs.cpp15272 行定义.

◆ UTRIE_OMITTED_BMP_INDEX_1_LENGTH

constexpr auto elc::char_set::constexprs::offsets::UTRIE_OMITTED_BMP_INDEX_1_LENGTH =0x10000>>UTRIE_SHIFT_1
inlineconstexpr

Number of index-1 entries for the BMP.

32=0x20 This part of the index-1 table is omitted from the serialized form.

在文件 all_defs.cpp15204 行定义.

◆ UTRIE_SHIFT_1

constexpr auto elc::char_set::constexprs::offsets::UTRIE_SHIFT_1 =6+5
inlineconstexpr

Shift size for getting the index-1 table offset.

在文件 all_defs.cpp15189 行定义.

◆ UTRIE_SHIFT_1_2

constexpr auto elc::char_set::constexprs::offsets::UTRIE_SHIFT_1_2 =UTRIE_SHIFT_1-UTRIE_SHIFT_2
inlineconstexpr

Difference between the two shift sizes, for getting an index-1 offset from an index-2 offset.

6=11-5

在文件 all_defs.cpp15198 行定义.

◆ UTRIE_SHIFT_2

constexpr auto elc::char_set::constexprs::offsets::UTRIE_SHIFT_2 =5
inlineconstexpr

Shift size for getting the index-2 table offset.

在文件 all_defs.cpp15192 行定义.

◆ UTRIE_UTF8_2B_INDEX_2_LENGTH

constexpr auto elc::char_set::constexprs::offsets::UTRIE_UTF8_2B_INDEX_2_LENGTH =0x800>>6
inlineconstexpr

在文件 all_defs.cpp15257 行定义.

◆ UTRIE_UTF8_2B_INDEX_2_OFFSET

constexpr auto elc::char_set::constexprs::offsets::UTRIE_UTF8_2B_INDEX_2_OFFSET =UTRIE_INDEX_2_BMP_LENGTH
inlineconstexpr

The 2-byte UTF-8 version of the index-2 table follows at offset 2080=0x820.

Length 32=0x20 for lead bytes C0..DF, regardless of UTRIE_SHIFT_2.

在文件 all_defs.cpp15256 行定义.