ELC in dev
ELC-lang
|
变量 | |
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. | |
|
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.cpp 第 15284 行定义.
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
The alignment size of a data block.
Also the granularity for compaction.
在文件 all_defs.cpp 第 15230 行定义.
|
inlineconstexpr |
Mask for getting the lower bits for the in-data-block offset.
在文件 all_defs.cpp 第 15219 行定义.
|
inlineconstexpr |
The start of non-linear-ASCII data blocks, at offset 192=0xc0.
在文件 all_defs.cpp 第 15287 行定义.
|
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.cpp 第 15271 行定义.
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Mask for getting the lower bits for the in-index-2-block offset.
在文件 all_defs.cpp 第 15213 行定义.
|
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.cpp 第 15238 行定义.
|
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.cpp 第 15227 行定义.
|
inlineconstexpr |
在文件 all_defs.cpp 第 15247 行定义.
|
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.cpp 第 15246 行定义.
|
inlineconstexpr |
在文件 all_defs.cpp 第 15272 行定义.
|
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.cpp 第 15204 行定义.
|
inlineconstexpr |
Shift size for getting the index-1 table offset.
在文件 all_defs.cpp 第 15189 行定义.
|
inlineconstexpr |
Difference between the two shift sizes, for getting an index-1 offset from an index-2 offset.
6=11-5
在文件 all_defs.cpp 第 15198 行定义.
|
inlineconstexpr |
Shift size for getting the index-2 table offset.
在文件 all_defs.cpp 第 15192 行定义.
|
inlineconstexpr |
在文件 all_defs.cpp 第 15257 行定义.
|
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.cpp 第 15256 行定义.