Lines Matching defs:UTrie2

37  * This is the second common version of a Unicode trie (hence the name UTrie2).
60 struct UTrie2;
61 typedef struct UTrie2 UTrie2;
63 /* Public UTrie2 API functions: read-only access ---------------------------- */
66 * Selectors for the width of a UTrie2 data value.
69 /** 16 bits per UTrie2 data value. */
71 /** 32 bits per UTrie2 data value. */
73 /** Number of selectors for the width of UTrie2 data values. */
86 * @param data a pointer to 32-bit-aligned memory containing the serialized form of a UTrie2
97 U_CAPI UTrie2 * U_EXPORT2
123 U_CAPI UTrie2 * U_EXPORT2
131 * Easier to use because, unlike the macros, this function works on all UTrie2
139 utrie2_get32(const UTrie2 *trie, UChar32 c);
189 utrie2_enum(const UTrie2 *trie,
205 U_CAPI UTrie2 * U_EXPORT2
216 U_CAPI UTrie2 * U_EXPORT2
217 utrie2_clone(const UTrie2 *other, UErrorCode *pErrorCode);
228 U_CAPI UTrie2 * U_EXPORT2
229 utrie2_cloneAsThawed(const UTrie2 *other, UErrorCode *pErrorCode);
237 utrie2_close(UTrie2 *trie);
249 utrie2_set32(UTrie2 *trie, UChar32 c, uint32_t value, UErrorCode *pErrorCode);
265 utrie2_setRange32(UTrie2 *trie,
290 utrie2_freeze(UTrie2 *trie, UTrie2ValueBits valueBits, UErrorCode *pErrorCode);
300 utrie2_isFrozen(const UTrie2 *trie);
321 utrie2_serialize(UTrie2 *trie,
325 /* Public UTrie2 API: miscellaneous functions ------------------------------- */
329 * of either a UTrie (version 1) or a UTrie2 (version 2).
344 * Swap a serialized UTrie2.
353 * Swap a serialized UTrie or UTrie2.
362 * Build a UTrie2 (version 2) from a UTrie (version 1).
363 * Enumerates all values in the UTrie and builds a UTrie2 with the same values.
364 * The resulting UTrie2 will be frozen.
369 * @return The frozen UTrie2 with the same values as the UTrie.
371 U_CAPI UTrie2 * U_EXPORT2
374 /* Public UTrie2 API macros ------------------------------------------------- */
385 * @param trie (const UTrie2 *, in) a frozen trie
395 * @param trie (const UTrie2 *, in) a frozen trie
405 * @param trie (const UTrie2 *, in) a frozen trie
417 * @param trie (const UTrie2 *, in) a frozen trie
429 * @param trie (const UTrie2 *, in) a frozen trie
441 * @param trie (const UTrie2 *, in) a frozen trie
452 * @param trie (const UTrie2 *, in) a frozen trie
463 * @param trie (const UTrie2 *, in) a frozen trie
474 * @param trie (const UTrie2 *, in) a frozen trie
485 * @param trie (const UTrie2 *, in) a frozen trie
493 /* Public UTrie2 API: optimized UTF-16 access ------------------------------- */
499 * A UTrie2 stores separate values for lead surrogate code _units_ vs. code _points_.
531 utrie2_get32FromLeadSurrogateCodeUnit(const UTrie2 *trie, UChar32 c);
559 utrie2_enumForLeadSurrogate(const UTrie2 *trie, UChar32 lead,
573 utrie2_set32ForLeadSurrogateCodeUnit(UTrie2 *trie,
582 * @param trie (const UTrie2 *, in) a frozen trie
593 * @param trie (const UTrie2 *, in) a frozen trie
602 * @param trie (const UTrie2 *, in) a frozen trie
611 * @param trie (const UTrie2 *, in) a frozen trie
630 UTrie2StringIterator(const UTrie2 *t, const UChar *p) :
633 const UTrie2 *trie;
640 BackwardUTrie2StringIterator(const UTrie2 *t, const UChar *s, const UChar *p) :
652 ForwardUTrie2StringIterator(const UTrie2 *t, const UChar *p, const UChar *l) :
664 utrie2_close((UTrie2 *)singleton.fInstance);
667 UTrie2 *getInstance(InstantiatorFn *instantiator, const void *context,
694 struct UTrie2 {
837 utrie2_internalU8NextIndex(const UTrie2 *trie, UChar32 c,
846 utrie2_internalU8PrevIndex(const UTrie2 *trie, UChar32 c,