Lines Matching refs:trie
144 utrie2_get32(const UTrie2 *trie, UChar32 c);
194 utrie2_enum(const UTrie2 *trie,
242 utrie2_close(UTrie2 *trie);
254 utrie2_set32(UTrie2 *trie, UChar32 c, uint32_t value, UErrorCode *pErrorCode);
270 utrie2_setRange32(UTrie2 *trie,
295 utrie2_freeze(UTrie2 *trie, UTrie2ValueBits valueBits, UErrorCode *pErrorCode);
305 utrie2_isFrozen(const UTrie2 *trie);
326 utrie2_serialize(const UTrie2 *trie,
360 #define UTRIE2_GET16(trie, c) _UTRIE2_GET((trie), index, (trie)->indexLength, (c)) argument
370 #define UTRIE2_GET32(trie, c) _UTRIE2_GET((trie), data32, 0, (c)) argument
382 #define UTRIE2_U16_NEXT16(trie, src, limit, c, result) _UTRIE2_U16_NEXT(trie, index, src, limit, c,… argument
394 #define UTRIE2_U16_NEXT32(trie, src, limit, c, result) _UTRIE2_U16_NEXT(trie, data32, src, limit, c… argument
406 #define UTRIE2_U16_PREV16(trie, start, src, c, result) _UTRIE2_U16_PREV(trie, index, start, src, c,… argument
418 #define UTRIE2_U16_PREV32(trie, start, src, c, result) _UTRIE2_U16_PREV(trie, data32, start, src, c… argument
428 #define UTRIE2_U8_NEXT16(trie, src, limit, result)\ argument
429 _UTRIE2_U8_NEXT(trie, data16, index, src, limit, result)
439 #define UTRIE2_U8_NEXT32(trie, src, limit, result) \ argument
440 _UTRIE2_U8_NEXT(trie, data32, data32, src, limit, result)
450 #define UTRIE2_U8_PREV16(trie, start, src, result) \ argument
451 _UTRIE2_U8_PREV(trie, data16, index, start, src, result)
461 #define UTRIE2_U8_PREV32(trie, start, src, result) \ argument
462 _UTRIE2_U8_PREV(trie, data32, data32, start, src, result)
502 utrie2_get32FromLeadSurrogateCodeUnit(const UTrie2 *trie, UChar32 c);
530 utrie2_enumForLeadSurrogate(const UTrie2 *trie, UChar32 lead,
544 utrie2_set32ForLeadSurrogateCodeUnit(UTrie2 *trie,
557 #define UTRIE2_GET16_FROM_U16_SINGLE_LEAD(trie, c) _UTRIE2_GET_FROM_U16_SINGLE_LEAD((trie), index, … argument
568 #define UTRIE2_GET32_FROM_U16_SINGLE_LEAD(trie, c) _UTRIE2_GET_FROM_U16_SINGLE_LEAD((trie), data32,… argument
577 #define UTRIE2_GET16_FROM_SUPP(trie, c) _UTRIE2_GET_FROM_SUPP((trie), index, c) argument
586 #define UTRIE2_GET32_FROM_SUPP(trie, c) _UTRIE2_GET_FROM_SUPP((trie), data32, c) argument
603 trie(t), codePointStart(p), codePointLimit(p), codePoint(U_SENTINEL) {} in UTrie2StringIterator()
605 const UTrie2 *trie; variable
800 utrie2_internalU8NextIndex(const UTrie2 *trie, UChar32 c,
809 utrie2_internalU8PrevIndex(const UTrie2 *trie, UChar32 c,
844 #define _UTRIE2_INDEX_FROM_CP(trie, asciiOffset, c) \ argument
846 _UTRIE2_INDEX_RAW(0, (trie)->index, c) : \
850 (trie)->index, c) : \
853 (c)>=(trie)->highStart ? \
854 (trie)->highValueIndex : \
855 _UTRIE2_INDEX_FROM_SUPP((trie)->index, c))
858 #define _UTRIE2_GET_FROM_U16_SINGLE_LEAD(trie, data, c) \ argument
859 (trie)->data[_UTRIE2_INDEX_FROM_U16_SINGLE_LEAD((trie)->index, c)]
862 #define _UTRIE2_GET_FROM_SUPP(trie, data, c) \ argument
863 (trie)->data[(c)>=(trie)->highStart ? (trie)->highValueIndex : \
864 _UTRIE2_INDEX_FROM_SUPP((trie)->index, c)]
870 #define _UTRIE2_GET(trie, data, asciiOffset, c) \ argument
871 (trie)->data[_UTRIE2_INDEX_FROM_CP(trie, asciiOffset, c)]
874 #define _UTRIE2_U16_NEXT(trie, data, src, limit, c, result) { \ argument
879 (result)=_UTRIE2_GET_FROM_U16_SINGLE_LEAD(trie, data, c); \
881 (result)=(trie)->data[_UTRIE2_INDEX_FROM_LSCP((trie)->index, c)]; \
885 (result)=_UTRIE2_GET_FROM_SUPP((trie), data, (c)); \
891 #define _UTRIE2_U16_PREV(trie, data, start, src, c, result) { \ argument
896 (result)=(trie)->data[_UTRIE2_INDEX_FROM_BMP((trie)->index, c)]; \
900 (result)=_UTRIE2_GET_FROM_SUPP((trie), data, (c)); \
906 #define _UTRIE2_U8_NEXT(trie, ascii, data, src, limit, result) { \ argument
909 (result)=(trie)->ascii[__lead]; \
918 (result)=(trie)->data[ \
919 ((int32_t)((trie)->index[((__lead-0xe0)<<(12-UTRIE2_SHIFT_2))+ \
928 (result)=(trie)->data[ \
929 (trie)->index[(UTRIE2_UTF8_2B_INDEX_2_OFFSET-0xc0)+__lead]+ \
932 int32_t __index=utrie2_internalU8NextIndex((trie), __lead, (const uint8_t *)(src), \
935 (result)=(trie)->data[__index>>3]; \
941 #define _UTRIE2_U8_PREV(trie, ascii, data, start, src, result) { \ argument
944 (result)=(trie)->ascii[__b]; \
946 int32_t __index=utrie2_internalU8PrevIndex((trie), __b, (const uint8_t *)(start), \
949 (result)=(trie)->data[__index>>3]; \