Lines Matching refs:trie
217 ucptrie_close(UCPTrie *trie);
229 ucptrie_getType(const UCPTrie *trie);
241 ucptrie_getValueWidth(const UCPTrie *trie);
258 ucptrie_get(const UCPTrie *trie, UChar32 c);
297 ucptrie_getRange(const UCPTrie *trie, UChar32 start,
317 ucptrie_toBinary(const UCPTrie *trie, void *data, int32_t capacity, UErrorCode *pErrorCode);
327 #define UCPTRIE_16(trie, i) ((trie)->data.ptr16[i]) argument
337 #define UCPTRIE_32(trie, i) ((trie)->data.ptr32[i]) argument
347 #define UCPTRIE_8(trie, i) ((trie)->data.ptr8[i]) argument
359 #define UCPTRIE_FAST_GET(trie, dataAccess, c) dataAccess(trie, _UCPTRIE_CP_INDEX(trie, 0xffff, c)) argument
371 #define UCPTRIE_SMALL_GET(trie, dataAccess, c) \ argument
372 dataAccess(trie, _UCPTRIE_CP_INDEX(trie, UCPTRIE_SMALL_MAX, c))
387 #define UCPTRIE_FAST_U16_NEXT(trie, dataAccess, src, limit, c, result) UPRV_BLOCK_MACRO_BEGIN { \ argument
391 __index = _UCPTRIE_FAST_INDEX(trie, c); \
397 __index = _UCPTRIE_SMALL_INDEX(trie, c); \
399 __index = (trie)->dataLength - UCPTRIE_ERROR_VALUE_NEG_DATA_OFFSET; \
402 (result) = dataAccess(trie, __index); \
418 #define UCPTRIE_FAST_U16_PREV(trie, dataAccess, start, src, c, result) UPRV_BLOCK_MACRO_BEGIN { \ argument
422 __index = _UCPTRIE_FAST_INDEX(trie, c); \
428 __index = _UCPTRIE_SMALL_INDEX(trie, c); \
430 __index = (trie)->dataLength - UCPTRIE_ERROR_VALUE_NEG_DATA_OFFSET; \
433 (result) = dataAccess(trie, __index); \
452 #define UCPTRIE_FAST_U8_NEXT(trie, dataAccess, src, limit, result) UPRV_BLOCK_MACRO_BEGIN { \ argument
461 (__lead = ((int32_t)(trie)->index[(__lead << 6) + (__t1 & 0x3f)]) + __t2, 1) \
468 (__lead = __lead >= (trie)->shifted12HighStart ? \
469 (trie)->dataLength - UCPTRIE_HIGH_VALUE_NEG_DATA_OFFSET : \
470 ucptrie_internalSmallU8Index((trie), __lead, __t2, __t3), 1) \
473 (__lead = (int32_t)(trie)->index[__lead & 0x1f] + __t1, 1))) { \
476 __lead = (trie)->dataLength - UCPTRIE_ERROR_VALUE_NEG_DATA_OFFSET; /* ill-formed*/ \
479 (result) = dataAccess(trie, __lead); \
498 #define UCPTRIE_FAST_U8_PREV(trie, dataAccess, start, src, result) UPRV_BLOCK_MACRO_BEGIN { \ argument
501 __index = ucptrie_internalU8PrevIndex((trie), __index, (const uint8_t *)(start), \
506 (result) = dataAccess(trie, __index); \
518 #define UCPTRIE_ASCII_GET(trie, dataAccess, c) dataAccess(trie, c) argument
531 #define UCPTRIE_FAST_BMP_GET(trie, dataAccess, c) dataAccess(trie, _UCPTRIE_FAST_INDEX(trie, c)) argument
543 #define UCPTRIE_FAST_SUPP_GET(trie, dataAccess, c) dataAccess(trie, _UCPTRIE_SMALL_INDEX(trie, c)) argument
586 ucptrie_internalSmallIndex(const UCPTrie *trie, UChar32 c);
590 ucptrie_internalSmallU8Index(const UCPTrie *trie, int32_t lt1, uint8_t t2, uint8_t t3);
598 ucptrie_internalU8PrevIndex(const UCPTrie *trie, UChar32 c,
602 #define _UCPTRIE_FAST_INDEX(trie, c) \ argument
603 ((int32_t)(trie)->index[(c) >> UCPTRIE_FAST_SHIFT] + ((c) & UCPTRIE_FAST_DATA_MASK))
606 #define _UCPTRIE_SMALL_INDEX(trie, c) \ argument
607 ((c) >= (trie)->highStart ? \
608 (trie)->dataLength - UCPTRIE_HIGH_VALUE_NEG_DATA_OFFSET : \
609 ucptrie_internalSmallIndex(trie, c))
616 #define _UCPTRIE_CP_INDEX(trie, fastMax, c) \ argument
618 _UCPTRIE_FAST_INDEX(trie, c) : \
620 _UCPTRIE_SMALL_INDEX(trie, c) : \
621 (trie)->dataLength - UCPTRIE_ERROR_VALUE_NEG_DATA_OFFSET)