Lines Matching refs:checkRanges
44 skipSpecialValues(const CheckRange checkRanges[], int32_t countCheckRanges) { in skipSpecialValues() argument
46 for(i=0; i<countCheckRanges && checkRanges[i].limit<=0; ++i) {} in skipSpecialValues()
51 getSpecialValues(const CheckRange checkRanges[], int32_t countCheckRanges, in getSpecialValues() argument
54 if(i<countCheckRanges && checkRanges[i].limit<0) { in getSpecialValues()
55 *pErrorValue=checkRanges[i++].value; in getSpecialValues()
59 if(i<countCheckRanges && checkRanges[i].limit==0) { in getSpecialValues()
60 *pInitialValue=checkRanges[i++].value; in getSpecialValues()
111 const CheckRange checkRanges[], int32_t countCheckRanges) { in testTrieGetRanges() argument
128 for (i = 0; i < countCheckRanges && checkRanges[i].limit <= start; ++i) {} in testTrieGetRanges()
133 expEnd = checkRanges[i].limit - 1; in testTrieGetRanges()
134 expValue = checkRanges[i].value; in testTrieGetRanges()
150 expEnd = checkRanges[i].limit - 1; in testTrieGetRanges()
151 expValue = checkRanges[i].value ^ 0x5555; in testTrieGetRanges()
168 expEnd = checkRanges[i].limit - 1; in testTrieGetRanges()
186 const CheckRange checkRanges[], int32_t countCheckRanges) { in testTrieGetters() argument
195 countSpecials=getSpecialValues(checkRanges, countCheckRanges, &initialValue, &errorValue); in testTrieGetters()
199 limit=checkRanges[i].limit; in testTrieGetters()
200 value=checkRanges[i].value; in testTrieGetters()
282 limit=checkRanges[i].limit; in testTrieGetters()
283 value=checkRanges[i].value; in testTrieGetters()
343 const CheckRange checkRanges[], int32_t countCheckRanges) { in testBuilderGetters() argument
352 countSpecials=getSpecialValues(checkRanges, countCheckRanges, &initialValue, &errorValue); in testBuilderGetters()
356 limit=checkRanges[i].limit; in testBuilderGetters()
357 value=checkRanges[i].value; in testBuilderGetters()
387 const CheckRange checkRanges[], int32_t countCheckRanges) { in testTrieUTF16() argument
401 for(i=skipSpecialValues(checkRanges, countCheckRanges); i<countCheckRanges; ++i) { in testTrieUTF16()
402 value=checkRanges[i].value; in testTrieUTF16()
409 c=checkRanges[i].limit; in testTrieUTF16()
489 const CheckRange checkRanges[], int32_t countCheckRanges) { in testTrieUTF8() argument
524 countSpecials=getSpecialValues(checkRanges, countCheckRanges, &initialValue, &errorValue); in testTrieUTF8()
536 value=checkRanges[i].value; in testTrieUTF8()
548 c=checkRanges[i].limit; in testTrieUTF8()
691 const CheckRange checkRanges[], int32_t countCheckRanges) { in testTrie() argument
692 testTrieGetters(testName, trie, type, valueWidth, checkRanges, countCheckRanges); in testTrie()
693 testTrieGetRanges(testName, trie, NULL, UCPMAP_RANGE_NORMAL, 0, checkRanges, countCheckRanges); in testTrie()
695 testTrieUTF16(testName, trie, valueWidth, checkRanges, countCheckRanges); in testTrie()
696 testTrieUTF8(testName, trie, valueWidth, checkRanges, countCheckRanges); in testTrie()
702 const CheckRange checkRanges[], int32_t countCheckRanges) { in testBuilder() argument
703 testBuilderGetters(testName, mutableTrie, checkRanges, countCheckRanges); in testBuilder()
704 …testTrieGetRanges(testName, NULL, mutableTrie, UCPMAP_RANGE_NORMAL, 0, checkRanges, countCheckRang… in testBuilder()
713 const CheckRange checkRanges[], int32_t countCheckRanges) { in testTrieSerialize() argument
762 testTrie(testName, trie, type, valueWidth, checkRanges, countCheckRanges); in testTrieSerialize()
855 testTrie(testName, trie, type, valueWidth, checkRanges, countCheckRanges); in testTrieSerialize()
874 testBuilder(testName, mutable2, checkRanges, countCheckRanges); in testTrieSerialize()
886 const CheckRange checkRanges[], int32_t countCheckRanges) { in testTrieSerializeAllValueWidth() argument
891 oredValues |= checkRanges[i].value; in testTrieSerializeAllValueWidth()
894 testBuilder(testName, mutableTrie, checkRanges, countCheckRanges); in testTrieSerializeAllValueWidth()
901 checkRanges, countCheckRanges); in testTrieSerializeAllValueWidth()
908 checkRanges, countCheckRanges); in testTrieSerializeAllValueWidth()
915 checkRanges, countCheckRanges); in testTrieSerializeAllValueWidth()
923 checkRanges, countCheckRanges); in testTrieSerializeAllValueWidth()
932 const CheckRange checkRanges[], int32_t countCheckRanges) { in makeTrieWithRanges() argument
942 getSpecialValues(checkRanges, countCheckRanges, &initialValue, &errorValue); in makeTrieWithRanges()
986 const CheckRange checkRanges[], int32_t countCheckRanges) { in testTrieRanges() argument
988 testName, withClone, setRanges, countSetRanges, checkRanges, countCheckRanges); in testTrieRanges()
991 checkRanges, countCheckRanges); in testTrieRanges()
1175 checkRanges[]={ in FreeBlocksTest() local
1217 checkRanges, UPRV_LENGTHOF(checkRanges)); in FreeBlocksTest()
1224 checkRanges[]={ in GrowDataArrayTest() local
1268 checkRanges, UPRV_LENGTHOF(checkRanges)); in GrowDataArrayTest()
1279 CheckRange checkRanges[(0x110000 >> 12) + 1]; in ManyAllSameBlocksTest() local
1287 checkRanges[0].limit = 0; in ManyAllSameBlocksTest()
1288 checkRanges[0].value = 0xff33; // initialValue in ManyAllSameBlocksTest()
1294 checkRanges[value + 1].limit = i + 0x1000; in ManyAllSameBlocksTest()
1295 checkRanges[value + 1].value = value; in ManyAllSameBlocksTest()
1307 checkRanges, UPRV_LENGTHOF(checkRanges)); in ManyAllSameBlocksTest()
1318 CheckRange checkRanges[(0x10000 >> 6) + (0x10240 >> 4) + 10]; in MuchDataTest() local
1325 checkRanges[0].limit = 0; in MuchDataTest()
1326 checkRanges[0].value = 0xff33; // initialValue in MuchDataTest()
1334 checkRanges[r].limit = c + 0x40; in MuchDataTest()
1335 checkRanges[r++].value = value; in MuchDataTest()
1337 checkRanges[r].limit = 0x20000; in MuchDataTest()
1338 checkRanges[r++].value = 0xff33; in MuchDataTest()
1342 checkRanges[r].limit = c + 0x10; in MuchDataTest()
1343 checkRanges[r++].value = value; in MuchDataTest()
1346 checkRanges[r].limit = 0x30234; in MuchDataTest()
1347 checkRanges[r++].value = 0x3023; in MuchDataTest()
1349 checkRanges[r].limit = 0xe0000; in MuchDataTest()
1350 checkRanges[r++].value = 0x5005; in MuchDataTest()
1352 checkRanges[r].limit = 0x110000; in MuchDataTest()
1353 checkRanges[r++].value = 0x9009; in MuchDataTest()
1360 U_ASSERT(r <= UPRV_LENGTHOF(checkRanges)); in MuchDataTest()
1362 testBuilder(testName, mutableTrie, checkRanges, r); in MuchDataTest()
1364 UCPTRIE_TYPE_FAST, UCPTRIE_VALUE_BITS_16, FALSE, checkRanges, r); in MuchDataTest()
1370 const CheckRange checkRanges[], int32_t countCheckRanges) { in testGetRangesFixedSurr() argument
1371 testTrieGetRanges(testName, NULL, mutableTrie, option, 5, checkRanges, countCheckRanges); in testGetRangesFixedSurr()
1385 testTrieGetRanges(testName, trie, NULL, option, 5, checkRanges, countCheckRanges); in testGetRangesFixedSurr()
1514 static const CheckRange checkRanges[] = { in TestSmallNullBlockMatchesFast() local
1526 checkRanges, UPRV_LENGTHOF(checkRanges)); in TestSmallNullBlockMatchesFast()
1536 CheckRange checkRanges[0x101]; in ShortAllSameBlocksTest() local
1545 checkRanges[value].limit = i + 0x10; in ShortAllSameBlocksTest()
1546 checkRanges[value].value = value; in ShortAllSameBlocksTest()
1548 checkRanges[0x100].limit = 0x110000; in ShortAllSameBlocksTest()
1549 checkRanges[0x100].value = 0; in ShortAllSameBlocksTest()
1558 checkRanges, UPRV_LENGTHOF(checkRanges)); in ShortAllSameBlocksTest()