• Home
  • Raw
  • Download

Lines Matching refs:trie

99              const UTrie2 *trie,  in testTrieEnum()  argument
106 utrie2_enum(trie, testEnumValue, testEnumRange, &checkRanges); in testTrieEnum()
112 const UTrie2 *trie, UTrie2ValueBits valueBits, in testTrieGetters() argument
119 UBool isFrozen=utrie2_isFrozen(trie); in testTrieGetters()
134 value2=UTRIE2_GET16_FROM_U16_SINGLE_LEAD(trie, start); in testTrieGetters()
136 value2=UTRIE2_GET32_FROM_U16_SINGLE_LEAD(trie, start); in testTrieGetters()
145 value2=UTRIE2_GET16_FROM_SUPP(trie, start); in testTrieGetters()
147 value2=UTRIE2_GET32_FROM_SUPP(trie, start); in testTrieGetters()
155 value2=UTRIE2_GET16(trie, start); in testTrieGetters()
157 value2=UTRIE2_GET32(trie, start); in testTrieGetters()
164 value2=utrie2_get32(trie, start); in testTrieGetters()
182 value2=trie->data16[start]; in testTrieGetters()
184 value2=trie->data32[start]; in testTrieGetters()
195 value2=trie->data16[start]; in testTrieGetters()
197 value2=trie->data32[start]; in testTrieGetters()
230 value2=UTRIE2_GET16_FROM_U16_SINGLE_LEAD(trie, start); in testTrieGetters()
232 value2=UTRIE2_GET32_FROM_U16_SINGLE_LEAD(trie, start); in testTrieGetters()
239 value2=utrie2_get32FromLeadSurrogateCodeUnit(trie, start); in testTrieGetters()
250 value=UTRIE2_GET16(trie, -1); in testTrieGetters()
251 value2=UTRIE2_GET16(trie, 0x110000); in testTrieGetters()
253 value=UTRIE2_GET32(trie, -1); in testTrieGetters()
254 value2=UTRIE2_GET32(trie, 0x110000); in testTrieGetters()
261 value=utrie2_get32(trie, -1); in testTrieGetters()
262 value2=utrie2_get32(trie, 0x110000); in testTrieGetters()
271 const UTrie2 *trie, UTrie2ValueBits valueBits, in testTrieUTF16() argument
309 UTRIE2_U16_NEXT16(trie, p, limit, c, value); in testTrieUTF16()
311 UTRIE2_U16_NEXT32(trie, p, limit, c, value); in testTrieUTF16()
334 UTRIE2_U16_PREV16(trie, s, p, c, value); in testTrieUTF16()
336 UTRIE2_U16_PREV32(trie, s, p, c, value); in testTrieUTF16()
351 const UTrie2 *trie, UTrie2ValueBits valueBits, in testTrieUTF8() argument
458 UTRIE2_U8_NEXT16(trie, p, limit, value); in testTrieUTF8()
460 UTRIE2_U8_NEXT32(trie, p, limit, value); in testTrieUTF8()
491 UTRIE2_U8_PREV16(trie, s, p, value); in testTrieUTF8()
493 UTRIE2_U8_PREV32(trie, s, p, value); in testTrieUTF8()
518 UTrie2 *trie, UTrie2ValueBits valueBits, in testFrozenTrie() argument
523 if(!utrie2_isFrozen(trie)) { in testFrozenTrie()
529 testTrieGetters(testName, trie, valueBits, checkRanges, countCheckRanges); in testFrozenTrie()
530 testTrieEnum(testName, trie, checkRanges, countCheckRanges); in testFrozenTrie()
531 testTrieUTF16(testName, trie, valueBits, checkRanges, countCheckRanges); in testFrozenTrie()
532 testTrieUTF8(testName, trie, valueBits, checkRanges, countCheckRanges); in testFrozenTrie()
535 value=utrie2_get32(trie, 1); in testFrozenTrie()
536 utrie2_set32(trie, 1, 234, &errorCode); in testFrozenTrie()
537 value2=utrie2_get32(trie, 1); in testFrozenTrie()
545 utrie2_setRange32(trie, 1, 5, 234, TRUE, &errorCode); in testFrozenTrie()
546 value2=utrie2_get32(trie, 1); in testFrozenTrie()
554 value=utrie2_get32FromLeadSurrogateCodeUnit(trie, 0xd801); in testFrozenTrie()
555 utrie2_set32ForLeadSurrogateCodeUnit(trie, 0xd801, 234, &errorCode); in testFrozenTrie()
556 value2=utrie2_get32FromLeadSurrogateCodeUnit(trie, 0xd801); in testFrozenTrie()
566 testNewTrie(const char *testName, const UTrie2 *trie, in testNewTrie() argument
569 testTrieGetters(testName, trie, UTRIE2_COUNT_VALUE_BITS, checkRanges, countCheckRanges); in testNewTrie()
570 testTrieEnum(testName, trie, checkRanges, countCheckRanges); in testNewTrie()
575 UTrie2 *trie, UTrie2ValueBits valueBits, in testTrieSerialize() argument
585 trie=utrie2_clone(trie, &errorCode); in testTrieSerialize()
598 utrie2_serialize(trie, storage, sizeof(storage), &errorCode); in testTrieSerialize()
605 utrie2_freeze(trie, valueBits, &errorCode); in testTrieSerialize()
606 if(U_FAILURE(errorCode) || !utrie2_isFrozen(trie)) { in testTrieSerialize()
608 testName, u_errorName(errorCode), utrie2_isFrozen(trie)); in testTrieSerialize()
612 utrie2_freeze(trie, otherValueBits, &errorCode); in testTrieSerialize()
622 UTrie2 *clone=utrie2_clone(trie, &errorCode); in testTrieSerialize()
628 utrie2_close(trie); in testTrieSerialize()
629 trie=clone; in testTrieSerialize()
632 length1=utrie2_serialize(trie, NULL, 0, &errorCode); in testTrieSerialize()
639 length2=utrie2_serialize(trie, storage, sizeof(storage), &errorCode); in testTrieSerialize()
654 testFrozenTrie(testName, trie, valueBits, checkRanges, countCheckRanges); in testTrieSerialize()
655 utrie2_close(trie); in testTrieSerialize()
656 trie=NULL; in testTrieSerialize()
705 trie=utrie2_openFromSerialized(valueBits, storage, length2, &length3, &errorCode); in testTrieSerialize()
710 if((valueBits==UTRIE2_16_VALUE_BITS)!=(trie->data32==NULL)) { in testTrieSerialize()
722 utrie2_freeze(trie, valueBits, &errorCode); in testTrieSerialize()
723 if(U_FAILURE(errorCode) || !utrie2_isFrozen(trie)) { in testTrieSerialize()
725 testName, u_errorName(errorCode), utrie2_isFrozen(trie)); in testTrieSerialize()
728 utrie2_freeze(trie, otherValueBits, &errorCode); in testTrieSerialize()
738 UTrie2 *clone=utrie2_clone(trie, &errorCode); in testTrieSerialize()
745 utrie2_close(trie); in testTrieSerialize()
746 trie=clone; in testTrieSerialize()
750 testFrozenTrie(testName, trie, valueBits, checkRanges, countCheckRanges); in testTrieSerialize()
753 UTrie2 *clone=utrie2_cloneAsThawed(trie, &errorCode); in testTrieSerialize()
757 testName, u_errorName(errorCode), clone!=NULL && utrie2_isFrozen(trie)); in testTrieSerialize()
760 utrie2_close(trie); in testTrieSerialize()
761 trie=clone; in testTrieSerialize()
767 value=utrie2_get32(trie, 0xa1); in testTrieSerialize()
768 utrie2_set32(trie, 0xa1, 789, &errorCode); in testTrieSerialize()
769 value2=utrie2_get32(trie, 0xa1); in testTrieSerialize()
770 utrie2_set32(trie, 0xa1, value, &errorCode); in testTrieSerialize()
776 testNewTrie(testName, trie, checkRanges, countCheckRanges); in testTrieSerialize()
779 utrie2_close(trie); in testTrieSerialize()
784 UTrie2 *trie, UBool withClone, in testTrieSerializeAllValueBits() argument
789 testNewTrie(testName, trie, checkRanges, countCheckRanges); in testTrieSerializeAllValueBits()
797 testTrieSerialize(name, trie, in testTrieSerializeAllValueBits()
807 UTrie2 *clone=utrie2_cloneAsThawed(trie, &errorCode); in testTrieSerializeAllValueBits()
812 utrie2_close(trie); in testTrieSerializeAllValueBits()
813 trie=clone; in testTrieSerializeAllValueBits()
815 testNewTrie(testName, trie, checkRanges, countCheckRanges); in testTrieSerializeAllValueBits()
821 testTrieSerialize(name, trie, in testTrieSerializeAllValueBits()
825 return trie; /* could be the clone */ in testTrieSerializeAllValueBits()
832 UTrie2 *trie; in makeTrieWithRanges() local
843 trie=utrie2_open(initialValue, errorValue, &errorCode); in makeTrieWithRanges()
853 UTrie2 *clone=utrie2_clone(trie, &errorCode); in makeTrieWithRanges()
859 utrie2_close(trie); in makeTrieWithRanges()
860 trie=clone; in makeTrieWithRanges()
868 utrie2_set32(trie, start, value, &errorCode); in makeTrieWithRanges()
870 utrie2_setRange32(trie, start, limit-1, value, overwrite, &errorCode); in makeTrieWithRanges()
875 utrie2_set32ForLeadSurrogateCodeUnit(trie, 0xd800, 90, &errorCode); in makeTrieWithRanges()
876 utrie2_set32ForLeadSurrogateCodeUnit(trie, 0xd999, 94, &errorCode); in makeTrieWithRanges()
877 utrie2_set32ForLeadSurrogateCodeUnit(trie, 0xdbff, 99, &errorCode); in makeTrieWithRanges()
879 return trie; in makeTrieWithRanges()
883 utrie2_close(trie); in makeTrieWithRanges()
892 UTrie2 *trie=makeTrieWithRanges(testName, withClone, in testTrieRanges() local
895 if(trie!=NULL) { in testTrieRanges()
896 trie=testTrieSerializeAllValueBits(testName, trie, withClone, in testTrieRanges()
898 utrie2_close(trie); in testTrieRanges()
1092 UTrie2 *trie=makeTrieWithRanges(testName, FALSE, in EnumNewTrieForLeadSurrogateTest() local
1095 while(trie!=NULL) { in EnumNewTrieForLeadSurrogateTest()
1099 utrie2_enumForLeadSurrogate(trie, 0xd800, in EnumNewTrieForLeadSurrogateTest()
1103 utrie2_enumForLeadSurrogate(trie, 0xd87e, in EnumNewTrieForLeadSurrogateTest()
1107 utrie2_enumForLeadSurrogate(trie, 0xd87f, in EnumNewTrieForLeadSurrogateTest()
1111 utrie2_enumForLeadSurrogate(trie, 0xdbff, in EnumNewTrieForLeadSurrogateTest()
1114 if(!utrie2_isFrozen(trie)) { in EnumNewTrieForLeadSurrogateTest()
1116 utrie2_freeze(trie, UTRIE2_16_VALUE_BITS, &errorCode); in EnumNewTrieForLeadSurrogateTest()
1119 utrie2_close(trie); in EnumNewTrieForLeadSurrogateTest()
1123 utrie2_close(trie); in EnumNewTrieForLeadSurrogateTest()
1140 UTrie2 *trie; in dummyTest() local
1159 trie=utrie2_openDummy(valueBits, initialValue, errorValue, &errorCode); in dummyTest()
1165 testFrozenTrie(testName, trie, valueBits, checkRanges, UPRV_LENGTHOF(checkRanges)); in dummyTest()
1166 utrie2_close(trie); in dummyTest()
1189 UTrie2 *trie; in FreeBlocksTest() local
1194 trie=utrie2_open(1, 0xbad, &errorCode); in FreeBlocksTest()
1205 utrie2_setRange32(trie, 0x740, 0x840-1, 1, TRUE, &errorCode); in FreeBlocksTest()
1206 utrie2_setRange32(trie, 0x780, 0x880-1, 1, TRUE, &errorCode); in FreeBlocksTest()
1207 utrie2_setRange32(trie, 0x740, 0x840-1, 2, TRUE, &errorCode); in FreeBlocksTest()
1208 utrie2_setRange32(trie, 0x780, 0x880-1, 3, TRUE, &errorCode); in FreeBlocksTest()
1211 utrie2_setRange32(trie, 0x1000, 0x3000-1, 2, TRUE, &errorCode); in FreeBlocksTest()
1212 utrie2_setRange32(trie, 0x2000, 0x4000-1, 3, TRUE, &errorCode); in FreeBlocksTest()
1213 utrie2_setRange32(trie, 0x1000, 0x4000-1, 1, TRUE, &errorCode); in FreeBlocksTest()
1215 utrie2_set32ForLeadSurrogateCodeUnit(trie, 0xd800, 90, &errorCode); in FreeBlocksTest()
1216 utrie2_set32ForLeadSurrogateCodeUnit(trie, 0xd999, 94, &errorCode); in FreeBlocksTest()
1217 utrie2_set32ForLeadSurrogateCodeUnit(trie, 0xdbff, 99, &errorCode); in FreeBlocksTest()
1221 utrie2_close(trie); in FreeBlocksTest()
1225 trie=testTrieSerializeAllValueBits(testName, trie, FALSE, in FreeBlocksTest()
1227 utrie2_close(trie); in FreeBlocksTest()
1242 UTrie2 *trie; in GrowDataArrayTest() local
1247 trie=utrie2_open(1, 0xbad, &errorCode); in GrowDataArrayTest()
1258 utrie2_set32(trie, i, 2, &errorCode); in GrowDataArrayTest()
1261 utrie2_set32(trie, i, 3, &errorCode); in GrowDataArrayTest()
1264 utrie2_set32(trie, i, 4, &errorCode); in GrowDataArrayTest()
1267 utrie2_set32(trie, i, 5, &errorCode); in GrowDataArrayTest()
1270 utrie2_set32ForLeadSurrogateCodeUnit(trie, i, 1, &errorCode); in GrowDataArrayTest()
1273 utrie2_set32ForLeadSurrogateCodeUnit(trie, 0xd800, 90, &errorCode); in GrowDataArrayTest()
1274 utrie2_set32ForLeadSurrogateCodeUnit(trie, 0xd999, 94, &errorCode); in GrowDataArrayTest()
1275 utrie2_set32ForLeadSurrogateCodeUnit(trie, 0xdbff, 99, &errorCode); in GrowDataArrayTest()
1279 utrie2_close(trie); in GrowDataArrayTest()
1283 trie=testTrieSerializeAllValueBits(testName, trie, FALSE, in GrowDataArrayTest()
1285 utrie2_close(trie); in GrowDataArrayTest()