• Home
  • Raw
  • Download

Lines Matching refs:trie

217 ucptrie_close(UCPTrie *trie);
248 ucptrie_getType(const UCPTrie *trie);
260 ucptrie_getValueWidth(const UCPTrie *trie);
277 ucptrie_get(const UCPTrie *trie, UChar32 c);
316 ucptrie_getRange(const UCPTrie *trie, UChar32 start,
336 ucptrie_toBinary(const UCPTrie *trie, void *data, int32_t capacity, UErrorCode *pErrorCode);
346 #define UCPTRIE_16(trie, i) ((trie)->data.ptr16[i]) argument
356 #define UCPTRIE_32(trie, i) ((trie)->data.ptr32[i]) argument
366 #define UCPTRIE_8(trie, i) ((trie)->data.ptr8[i]) argument
378 #define UCPTRIE_FAST_GET(trie, dataAccess, c) dataAccess(trie, _UCPTRIE_CP_INDEX(trie, 0xffff, c)) argument
390 #define UCPTRIE_SMALL_GET(trie, dataAccess, c) \ argument
391 dataAccess(trie, _UCPTRIE_CP_INDEX(trie, UCPTRIE_SMALL_MAX, c))
406 #define UCPTRIE_FAST_U16_NEXT(trie, dataAccess, src, limit, c, result) { \ argument
410 __index = _UCPTRIE_FAST_INDEX(trie, c); \
416 __index = _UCPTRIE_SMALL_INDEX(trie, c); \
418 __index = (trie)->dataLength - UCPTRIE_ERROR_VALUE_NEG_DATA_OFFSET; \
421 (result) = dataAccess(trie, __index); \
437 #define UCPTRIE_FAST_U16_PREV(trie, dataAccess, start, src, c, result) { \ argument
441 __index = _UCPTRIE_FAST_INDEX(trie, c); \
447 __index = _UCPTRIE_SMALL_INDEX(trie, c); \
449 __index = (trie)->dataLength - UCPTRIE_ERROR_VALUE_NEG_DATA_OFFSET; \
452 (result) = dataAccess(trie, __index); \
471 #define UCPTRIE_FAST_U8_NEXT(trie, dataAccess, src, limit, result) { \ argument
480 (__lead = ((int32_t)(trie)->index[(__lead << 6) + (__t1 & 0x3f)]) + __t2, 1) \
487 (__lead = __lead >= (trie)->shifted12HighStart ? \
488 (trie)->dataLength - UCPTRIE_HIGH_VALUE_NEG_DATA_OFFSET : \
489 ucptrie_internalSmallU8Index((trie), __lead, __t2, __t3), 1) \
492 (__lead = (int32_t)(trie)->index[__lead & 0x1f] + __t1, 1))) { \
495 __lead = (trie)->dataLength - UCPTRIE_ERROR_VALUE_NEG_DATA_OFFSET; /* ill-formed*/ \
498 (result) = dataAccess(trie, __lead); \
517 #define UCPTRIE_FAST_U8_PREV(trie, dataAccess, start, src, result) { \ argument
520 __index = ucptrie_internalU8PrevIndex((trie), __index, (const uint8_t *)(start), \
525 (result) = dataAccess(trie, __index); \
537 #define UCPTRIE_ASCII_GET(trie, dataAccess, c) dataAccess(trie, c) argument
550 #define UCPTRIE_FAST_BMP_GET(trie, dataAccess, c) dataAccess(trie, _UCPTRIE_FAST_INDEX(trie, c)) argument
562 #define UCPTRIE_FAST_SUPP_GET(trie, dataAccess, c) dataAccess(trie, _UCPTRIE_SMALL_INDEX(trie, c)) argument
605 ucptrie_internalSmallIndex(const UCPTrie *trie, UChar32 c);
609 ucptrie_internalSmallU8Index(const UCPTrie *trie, int32_t lt1, uint8_t t2, uint8_t t3);
617 ucptrie_internalU8PrevIndex(const UCPTrie *trie, UChar32 c,
621 #define _UCPTRIE_FAST_INDEX(trie, c) \ argument
622 ((int32_t)(trie)->index[(c) >> UCPTRIE_FAST_SHIFT] + ((c) & UCPTRIE_FAST_DATA_MASK))
625 #define _UCPTRIE_SMALL_INDEX(trie, c) \ argument
626 ((c) >= (trie)->highStart ? \
627 (trie)->dataLength - UCPTRIE_HIGH_VALUE_NEG_DATA_OFFSET : \
628 ucptrie_internalSmallIndex(trie, c))
635 #define _UCPTRIE_CP_INDEX(trie, fastMax, c) \ argument
637 _UCPTRIE_FAST_INDEX(trie, c) : \
639 _UCPTRIE_SMALL_INDEX(trie, c) : \
640 (trie)->dataLength - UCPTRIE_ERROR_VALUE_NEG_DATA_OFFSET)