Lines Matching refs:trie
178 #define _UTRIE_GET_RAW(trie, data, offset, c16) \ argument
179 (trie)->data[ \
180 ((int32_t)((trie)->index[(offset)+((c16)>>UTRIE_SHIFT)])<<UTRIE_INDEX_SHIFT)+ \
185 #define _UTRIE_GET_FROM_PAIR(trie, data, c, c2, result, resultType) { \ argument
189 (result)=_UTRIE_GET_RAW((trie), data, 0, (c)); \
190 __offset=(trie)->getFoldingOffset(result); \
194 (result)=_UTRIE_GET_RAW((trie), data, __offset, (c2)&0x3ff); \
196 (result)=(resultType)((trie)->initialValue); \
201 #define _UTRIE_GET_FROM_BMP(trie, data, c16) \ argument
202 _UTRIE_GET_RAW(trie, data, 0xd800<=(c16) && (c16)<=0xdbff ? UTRIE_LEAD_INDEX_DISP : 0, c16);
209 #define _UTRIE_GET(trie, data, c32, result, resultType) \ argument
212 (result)=_UTRIE_GET_FROM_BMP(trie, data, c32); \
216 _UTRIE_GET_FROM_PAIR(trie, data, __lead16, c32, result, resultType); \
219 (result)=(resultType)((trie)->initialValue); \
223 #define _UTRIE_NEXT(trie, data, src, limit, c, c2, result, resultType) { \ argument
227 (result)=_UTRIE_GET_RAW((trie), data, 0, (c)); \
230 _UTRIE_GET_FROM_PAIR((trie), data, (c), (c2), (result), resultType); \
234 (result)=_UTRIE_GET_RAW((trie), data, UTRIE_LEAD_INDEX_DISP, (c)); \
239 #define _UTRIE_PREVIOUS(trie, data, start, src, c, c2, result, resultType) { \ argument
243 (result)=_UTRIE_GET_RAW((trie), data, 0, (c)); \
249 _UTRIE_GET_FROM_PAIR((trie), data, (c), (c2), (result), resultType); \
253 (result)=_UTRIE_GET_RAW((trie), data, 0, (c)); \
258 (result)=_UTRIE_GET_RAW((trie), data, UTRIE_LEAD_INDEX_DISP, (c)); \
273 #define UTRIE_GET16_LATIN1(trie) ((trie)->index+(trie)->indexLength+UTRIE_DATA_BLOCK_LENGTH) argument
284 #define UTRIE_GET32_LATIN1(trie) ((trie)->data32+UTRIE_DATA_BLOCK_LENGTH) argument
294 #define UTRIE_GET16_FROM_LEAD(trie, c16) _UTRIE_GET_RAW(trie, index, 0, c16) argument
304 #define UTRIE_GET32_FROM_LEAD(trie, c16) _UTRIE_GET_RAW(trie, data32, 0, c16) argument
315 #define UTRIE_GET16_FROM_BMP(trie, c16) _UTRIE_GET_FROM_BMP(trie, index, c16) argument
326 #define UTRIE_GET32_FROM_BMP(trie, c16) _UTRIE_GET_FROM_BMP(trie, data32, c16) argument
337 #define UTRIE_GET16(trie, c32, result) _UTRIE_GET(trie, index, c32, result, uint16_t) argument
348 #define UTRIE_GET32(trie, c32, result) _UTRIE_GET(trie, data32, c32, result, uint32_t) argument
361 #define UTRIE_NEXT16(trie, src, limit, c, c2, result) _UTRIE_NEXT(trie, index, src, limit, c, c2, r… argument
374 #define UTRIE_NEXT32(trie, src, limit, c, c2, result) _UTRIE_NEXT(trie, data32, src, limit, c, c2, … argument
387 #define UTRIE_PREVIOUS16(trie, start, src, c, c2, result) _UTRIE_PREVIOUS(trie, index, start, src, … argument
400 #define UTRIE_PREVIOUS32(trie, start, src, c, c2, result) _UTRIE_PREVIOUS(trie, data32, start, src,… argument
410 #define UTRIE_GET16_FROM_PAIR(trie, c, c2, result) _UTRIE_GET_FROM_PAIR(trie, index, c, c2, result,… argument
420 #define UTRIE_GET32_FROM_PAIR(trie, c, c2, result) _UTRIE_GET_FROM_PAIR(trie, data32, c, c2, result… argument
431 #define UTRIE_GET16_FROM_OFFSET_TRAIL(trie, offset, c2) _UTRIE_GET_RAW(trie, index, offset, (c2)&0x… argument
442 #define UTRIE_GET32_FROM_OFFSET_TRAIL(trie, offset, c2) _UTRIE_GET_RAW(trie, data32, offset, (c2)&0… argument
490 utrie_enum(const UTrie *trie,
505 utrie_unserialize(UTrie *trie, const void *data, int32_t length, UErrorCode *pErrorCode);
528 utrie_unserializeDummy(UTrie *trie,
594 UNewTrieGetFoldedValue(UNewTrie *trie, UChar32 start, int32_t offset);
648 utrie_close(UNewTrie *trie);
661 utrie_getData(UNewTrie *trie, int32_t *pLength);
672 utrie_set32(UNewTrie *trie, UChar32 c, uint32_t value);
685 utrie_get32(UNewTrie *trie, UChar32 c, UBool *pInBlockZero);
700 utrie_setRange32(UNewTrie *trie, UChar32 start, UChar32 limit, uint32_t value, UBool overwrite);
729 utrie_serialize(UNewTrie *trie, void *data, int32_t capacity,