Home | History | Annotate | Download | only in common

Lines Matching refs:UTrie2

8 *   file name:  utrie2.h
38 * This is the second common version of a Unicode trie (hence the name UTrie2).
61 struct UTrie2;
62 typedef struct UTrie2 UTrie2;
64 /* Public UTrie2 API functions: read-only access ---------------------------- */
67 * Selectors for the width of a UTrie2 data value.
70 /** 16 bits per UTrie2 data value. */
72 /** 32 bits per UTrie2 data value. */
74 /** Number of selectors for the width of UTrie2 data values. */
87 * @param data a pointer to 32-bit-aligned memory containing the serialized form of a UTrie2
98 U_CAPI UTrie2 * U_EXPORT2
124 U_CAPI UTrie2 * U_EXPORT2
132 * Easier to use because, unlike the macros, this function works on all UTrie2
140 utrie2_get32(const UTrie2 *trie, UChar32 c);
190 utrie2_enum(const UTrie2 *trie,
206 U_CAPI UTrie2 * U_EXPORT2
217 U_CAPI UTrie2 * U_EXPORT2
218 utrie2_clone(const UTrie2 *other, UErrorCode *pErrorCode);
229 U_CAPI UTrie2 * U_EXPORT2
230 utrie2_cloneAsThawed(const UTrie2 *other, UErrorCode *pErrorCode);
238 utrie2_close(UTrie2 *trie);
250 utrie2_set32(UTrie2 *trie, UChar32 c, uint32_t value, UErrorCode *pErrorCode);
266 utrie2_setRange32(UTrie2 *trie,
291 utrie2_freeze(UTrie2 *trie, UTrie2ValueBits valueBits, UErrorCode *pErrorCode);
301 utrie2_isFrozen(const UTrie2 *trie);
322 utrie2_serialize(UTrie2 *trie,
326 /* Public UTrie2 API: miscellaneous functions ------------------------------- */
330 * of either a UTrie (version 1) or a UTrie2 (version 2).
345 * Swap a serialized UTrie2.
354 * Swap a serialized UTrie or UTrie2.
363 * Build a UTrie2 (version 2) from a UTrie (version 1).
364 * Enumerates all values in the UTrie and builds a UTrie2 with the same values.
365 * The resulting UTrie2 will be frozen.
370 * @return The frozen UTrie2 with the same values as the UTrie.
372 U_CAPI UTrie2 * U_EXPORT2
375 /* Public UTrie2 API macros ------------------------------------------------- */
386 * @param trie (const UTrie2 *, in) a frozen trie
396 * @param trie (const UTrie2 *, in) a frozen trie
406 * @param trie (const UTrie2 *, in) a frozen trie
418 * @param trie (const UTrie2 *, in) a frozen trie
430 UTrie2 *, in) a frozen trie
442 * @param trie (const UTrie2 *, in) a frozen trie
453 * @param trie (const UTrie2 *, in) a frozen trie
464 * @param trie (const UTrie2 *, in) a frozen trie
475 * @param trie (const UTrie2 *, in) a frozen trie
486 * @param trie (const UTrie2 *, in) a frozen trie
494 /* Public UTrie2 API: optimized UTF-16 access ------------------------------- */
500 * A UTrie2 stores separate values for lead surrogate code _units_ vs. code _points_.
532 utrie2_get32FromLeadSurrogateCodeUnit(const UTrie2 *trie, UChar32 c);
560 utrie2_enumForLeadSurrogate(const UTrie2 *trie, UChar32 lead,
574 utrie2_set32ForLeadSurrogateCodeUnit(UTrie2 *trie,
583 * @param trie (const UTrie2 *, in) a frozen trie
594 * @param trie (const UTrie2 *, in) a frozen trie
603 * @param trie (const UTrie2 *, in) a frozen trie
612 * @param trie (const UTrie2 *, in) a frozen trie
632 UTrie2StringIterator(const UTrie2 *t, const UChar *p) :
635 const UTrie2 *trie;
642 BackwardUTrie2StringIterator(const UTrie2 *t, const UChar *s, const UChar *p) :
654 ForwardUTrie2StringIterator(const UTrie2 *t, const UChar *p, const UChar *l) :
666 utrie2_close((UTrie2 *)singleton.fInstance);
669 UTrie2 *getInstance(InstantiatorFn *instantiator, const void *context,
696 struct UTrie2 {
839 utrie2_internalU8NextIndex(const UTrie2 *trie, UChar32 c,
848 utrie2_internalU8PrevIndex(const UTrie2 *trie, UChar32 c,