Lines Matching defs:index

42  * - Still splitting BMP code points 11:5 bits for index and data table lookups.
53 * (two index tables and one data table) is used. The first index
55 * - There is a special small index for 2-byte UTF-8, and the initial data
287 * - U_INDEX_OUTOFBOUNDS_ERROR if the compacted index or data arrays are too long
360 #define UTRIE2_GET16(trie, c) _UTRIE2_GET((trie), index, (trie)->indexLength, (c))
382 #define UTRIE2_U16_NEXT16(trie, src, limit, c, result) _UTRIE2_U16_NEXT(trie, index, src, limit, c, result)
406 #define UTRIE2_U16_PREV16(trie, start, src, c, result) _UTRIE2_U16_PREV(trie, index, start, src, c, result)
429 _UTRIE2_U8_NEXT(trie, data16, index, src, limit, result)
451 _UTRIE2_U8_PREV(trie, data16, index, start, src, result)
557 #define UTRIE2_GET16_FROM_U16_SINGLE_LEAD(trie, c) _UTRIE2_GET_FROM_U16_SINGLE_LEAD((trie), index, c)
577 #define UTRIE2_GET16_FROM_SUPP(trie, c) _UTRIE2_GET_FROM_SUPP((trie), index, c)
647 * Either the data table is 16 bits wide and accessed via the index
648 * pointer, with each index item increased by indexLength;
655 const uint16_t *index;
657 const uint32_t *data32; /* NULL if 16b data is used via index */
660 uint16_t index2NullOffset; /* 0xffff if there is no dedicated index-2 null block */
684 * Trie constants, defining shift widths, index array lengths, etc.
690 /** Shift size for getting the index-1 table offset. */
693 /** Shift size for getting the index-2 table offset. */
698 * for getting an index-1 offset from an index-2 offset. 6=11-5
703 * Number of index-1 entries for the BMP. 32=0x20
704 * This part of the index-1 table is omitted from the serialized form.
708 /** Number of code points per index-1 table entry. 2048=0x800 */
711 /** Number of entries in an index-2 block. 64=0x40 */
714 /** Mask for getting the lower bits for the in-index-2-block offset. */
724 * Shift size for shifting left the index array values.
725 * Increases possible data size with 16-bit index values at the cost
734 /* Fixed layout of the first part of the index array. ------------------- */
737 * The BMP part of the index-2 table is fixed and linear and starts at offset 0.
743 * The part of the index-2 table for U+D800..U+DBFF stores values for
755 * The 2-byte UTF-8 version of the index-2 table follows at offset 2080=0x820.
762 * The index-1 table, only used for supplementary code points, at offset 2112=0x840.
767 * The part of the index-2 table for supplementary code points starts
768 * after this index-1 table.
770 * Both the index-1 table and the following part of the index-2 table
813 /** Internal low-level trie getter. Returns a data index. */
819 /** Internal trie getter from a UTF-16 single/lead code unit. Returns the data index. */
822 /** Internal trie getter from a lead surrogate code point (D800..DBFF). Returns the data index. */
826 /** Internal trie getter from a BMP code point. Returns the data index. */
831 /** Internal trie getter from a supplementary code point below highStart. Returns the data index. */
842 * Returns the data index.
846 _UTRIE2_INDEX_RAW(0, (trie)->index, c) : \
850 (trie)->index, c) : \
855 _UTRIE2_INDEX_FROM_SUPP((trie)->index, c))
859 (trie)->data[_UTRIE2_INDEX_FROM_U16_SINGLE_LEAD((trie)->index, c)]
864 _UTRIE2_INDEX_FROM_SUPP((trie)->index, c)]
881 (result)=(trie)->data[_UTRIE2_INDEX_FROM_LSCP((trie)->index, c)]; \
896 (result)=(trie)->data[_UTRIE2_INDEX_FROM_BMP((trie)->index, c)]; \
919 ((int32_t)((trie)->index[((__lead-0xe0)<<(12-UTRIE2_SHIFT_2))+ \
929 (trie)->index[(UTRIE2_UTF8_2B_INDEX_2_OFFSET-0xc0)+__lead]+ \