• Home
  • Raw
  • Download

Lines Matching refs:mutableTrie

110 testTrieGetRanges(const char *testName, const UCPTrie *trie, const UMutableCPTrie *mutableTrie,  in testTrieGetRanges()  argument
142 umutablecptrie_getRange(mutableTrie, start, option, surrValue, NULL, NULL, &value); in testTrieGetRanges()
159 umutablecptrie_getRange(mutableTrie, start, option, surrValue ^ 0x5555, in testTrieGetRanges()
175 umutablecptrie_getRange(mutableTrie, start, option, surrValue, NULL, NULL, NULL); in testTrieGetRanges()
343 testBuilderGetters(const char *testName, const UMutableCPTrie *mutableTrie, in testBuilderGetters() argument
361 value2=umutablecptrie_get(mutableTrie, start); in testBuilderGetters()
375 value=umutablecptrie_get(mutableTrie, -1); in testBuilderGetters()
376 value2=umutablecptrie_get(mutableTrie, 0x110000); in testBuilderGetters()
702 testBuilder(const char *testName, const UMutableCPTrie *mutableTrie, in testBuilder() argument
704 testBuilderGetters(testName, mutableTrie, checkRanges, countCheckRanges); in testBuilder()
705 …testTrieGetRanges(testName, NULL, mutableTrie, UCPMAP_RANGE_NORMAL, 0, checkRanges, countCheckRang… in testBuilder()
712 testTrieSerialize(const char *testName, UMutableCPTrie *mutableTrie, in testTrieSerialize() argument
721 mutableTrie = umutablecptrie_clone(mutableTrie, &errorCode); in testTrieSerialize()
734 trie = umutablecptrie_buildImmutable(mutableTrie, type, valueWidth, &errorCode); in testTrieSerialize()
880 umutablecptrie_close(mutableTrie); in testTrieSerialize()
886 UMutableCPTrie *mutableTrie, UBool withClone, in testTrieSerializeAllValueWidth() argument
895 testBuilder(testName, mutableTrie, checkRanges, countCheckRanges); in testTrieSerializeAllValueWidth()
900 testTrieSerialize(name, mutableTrie, in testTrieSerializeAllValueWidth()
907 testTrieSerialize(name, mutableTrie, in testTrieSerializeAllValueWidth()
914 testTrieSerialize(name, mutableTrie, in testTrieSerializeAllValueWidth()
922 testTrieSerialize(name, mutableTrie, in testTrieSerializeAllValueWidth()
927 return mutableTrie; in testTrieSerializeAllValueWidth()
934 UMutableCPTrie *mutableTrie; in makeTrieWithRanges() local
944 mutableTrie = umutablecptrie_open(initialValue, errorValue, &errorCode); in makeTrieWithRanges()
954 UMutableCPTrie *clone = umutablecptrie_clone(mutableTrie, &errorCode); in makeTrieWithRanges()
960 umutablecptrie_close(mutableTrie); in makeTrieWithRanges()
961 mutableTrie = clone; in makeTrieWithRanges()
968 umutablecptrie_set(mutableTrie, start, value, &errorCode); in makeTrieWithRanges()
970 umutablecptrie_setRange(mutableTrie, start, limit-1, value, &errorCode); in makeTrieWithRanges()
975 return mutableTrie; in makeTrieWithRanges()
979 umutablecptrie_close(mutableTrie); in makeTrieWithRanges()
988 UMutableCPTrie *mutableTrie = makeTrieWithRanges( in testTrieRanges() local
990 if (mutableTrie != NULL) { in testTrieRanges()
991 mutableTrie = testTrieSerializeAllValueWidth(testName, mutableTrie, withClone, in testTrieRanges()
993 umutablecptrie_close(mutableTrie); in testTrieRanges()
1188 UMutableCPTrie *mutableTrie; in FreeBlocksTest() local
1193 mutableTrie=umutablecptrie_open(1, 0xad, &errorCode); in FreeBlocksTest()
1204 umutablecptrie_setRange(mutableTrie, 0x740, 0x840-1, 1, &errorCode); in FreeBlocksTest()
1205 umutablecptrie_setRange(mutableTrie, 0x780, 0x880-1, 1, &errorCode); in FreeBlocksTest()
1206 umutablecptrie_setRange(mutableTrie, 0x740, 0x840-1, 2, &errorCode); in FreeBlocksTest()
1207 umutablecptrie_setRange(mutableTrie, 0x780, 0x880-1, 3, &errorCode); in FreeBlocksTest()
1210 umutablecptrie_setRange(mutableTrie, 0x1000, 0x3000-1, 2, &errorCode); in FreeBlocksTest()
1211 umutablecptrie_setRange(mutableTrie, 0x2000, 0x4000-1, 3, &errorCode); in FreeBlocksTest()
1212 umutablecptrie_setRange(mutableTrie, 0x1000, 0x4000-1, 1, &errorCode); in FreeBlocksTest()
1216 umutablecptrie_close(mutableTrie); in FreeBlocksTest()
1220 mutableTrie = testTrieSerializeAllValueWidth(testName, mutableTrie, FALSE, in FreeBlocksTest()
1222 umutablecptrie_close(mutableTrie); in FreeBlocksTest()
1237 UMutableCPTrie *mutableTrie; in GrowDataArrayTest() local
1242 mutableTrie=umutablecptrie_open(1, 0xad, &errorCode); in GrowDataArrayTest()
1253 umutablecptrie_set(mutableTrie, i, 2, &errorCode); in GrowDataArrayTest()
1256 umutablecptrie_set(mutableTrie, i, 3, &errorCode); in GrowDataArrayTest()
1259 umutablecptrie_set(mutableTrie, i, 4, &errorCode); in GrowDataArrayTest()
1262 umutablecptrie_set(mutableTrie, i, 5, &errorCode); in GrowDataArrayTest()
1267 umutablecptrie_close(mutableTrie); in GrowDataArrayTest()
1271 mutableTrie = testTrieSerializeAllValueWidth(testName, mutableTrie, FALSE, in GrowDataArrayTest()
1273 umutablecptrie_close(mutableTrie); in GrowDataArrayTest()
1280 UMutableCPTrie *mutableTrie; in ManyAllSameBlocksTest() local
1286 mutableTrie = umutablecptrie_open(0xff33, 0xad, &errorCode); in ManyAllSameBlocksTest()
1297 umutablecptrie_setRange(mutableTrie, i, i + 0xfff, value, &errorCode); in ManyAllSameBlocksTest()
1303 uint32_t v0 = umutablecptrie_get(mutableTrie, i); in ManyAllSameBlocksTest()
1304 uint32_t vfff = umutablecptrie_get(mutableTrie, i + 0xfff); in ManyAllSameBlocksTest()
1310 mutableTrie = testTrieSerializeAllValueWidth(testName, mutableTrie, FALSE, in ManyAllSameBlocksTest()
1312 umutablecptrie_close(mutableTrie); in ManyAllSameBlocksTest()
1319 UMutableCPTrie *mutableTrie; in MuchDataTest() local
1324 mutableTrie = umutablecptrie_open(0xff33, 0xad, &errorCode); in MuchDataTest()
1337 umutablecptrie_setRange(mutableTrie, c, c + 0x3f, value, &errorCode); in MuchDataTest()
1345 umutablecptrie_setRange(mutableTrie, c, c + 0xf, value, &errorCode); in MuchDataTest()
1349 umutablecptrie_setRange(mutableTrie, 0x30230, 0x30233, 0x3023, &errorCode); in MuchDataTest()
1352 umutablecptrie_setRange(mutableTrie, 0x30234, 0xdffff, 0x5005, &errorCode); in MuchDataTest()
1355 umutablecptrie_setRange(mutableTrie, 0xe0000, 0x10ffff, 0x9009, &errorCode); in MuchDataTest()
1361 umutablecptrie_close(mutableTrie); in MuchDataTest()
1366 testBuilder(testName, mutableTrie, checkRanges, r); in MuchDataTest()
1367 testTrieSerialize("much-data.16", mutableTrie, in MuchDataTest()
1369 umutablecptrie_close(mutableTrie); in MuchDataTest()
1372 static void testGetRangesFixedSurr(const char *testName, const UMutableCPTrie *mutableTrie, in testGetRangesFixedSurr() argument
1375 testTrieGetRanges(testName, NULL, mutableTrie, option, 5, checkRanges, countCheckRanges); in testGetRangesFixedSurr()
1377 UMutableCPTrie *clone = umutablecptrie_clone(mutableTrie, &errorCode); in testGetRangesFixedSurr()
1454 UMutableCPTrie *mutableTrie = makeTrieWithRanges( in TrieTestGetRangesFixedSurr() local
1458 if (mutableTrie == NULL) { in TrieTestGetRangesFixedSurr()
1461 testGetRangesFixedSurr("fixedLeadSurr1", mutableTrie, UCPMAP_RANGE_FIXED_LEAD_SURROGATES, in TrieTestGetRangesFixedSurr()
1463 testGetRangesFixedSurr("fixedAllSurr1", mutableTrie, UCPMAP_RANGE_FIXED_ALL_SURROGATES, in TrieTestGetRangesFixedSurr()
1466 umutablecptrie_setRange(mutableTrie, 0xd844, 0xd899, 5, &errorCode); in TrieTestGetRangesFixedSurr()
1469 umutablecptrie_close(mutableTrie); in TrieTestGetRangesFixedSurr()
1472 testGetRangesFixedSurr("fixedLeadSurr2", mutableTrie, UCPMAP_RANGE_FIXED_LEAD_SURROGATES, in TrieTestGetRangesFixedSurr()
1475 umutablecptrie_set(mutableTrie, 0xd7ff, 5, &errorCode); in TrieTestGetRangesFixedSurr()
1478 umutablecptrie_close(mutableTrie); in TrieTestGetRangesFixedSurr()
1481 testGetRangesFixedSurr("fixedLeadSurr3", mutableTrie, UCPMAP_RANGE_FIXED_LEAD_SURROGATES, in TrieTestGetRangesFixedSurr()
1483 testGetRangesFixedSurr("fixedAllSurr3", mutableTrie, UCPMAP_RANGE_FIXED_ALL_SURROGATES, in TrieTestGetRangesFixedSurr()
1486 umutablecptrie_set(mutableTrie, 0xe000, 5, &errorCode); in TrieTestGetRangesFixedSurr()
1489 umutablecptrie_close(mutableTrie); in TrieTestGetRangesFixedSurr()
1492 testGetRangesFixedSurr("fixedSurr4", mutableTrie, UCPMAP_RANGE_FIXED_ALL_SURROGATES, in TrieTestGetRangesFixedSurr()
1494 umutablecptrie_close(mutableTrie); in TrieTestGetRangesFixedSurr()
1539 UMutableCPTrie *mutableTrie = umutablecptrie_open(0, 0xad, &errorCode); in ShortAllSameBlocksTest() local
1548 umutablecptrie_setRange(mutableTrie, i, i + 0xf, value, &errorCode); in ShortAllSameBlocksTest()
1557 umutablecptrie_close(mutableTrie); in ShortAllSameBlocksTest()
1561 mutableTrie = testTrieSerializeAllValueWidth(testName, mutableTrie, FALSE, in ShortAllSameBlocksTest()
1563 umutablecptrie_close(mutableTrie); in ShortAllSameBlocksTest()