/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | CodePointTrieTest.java | 89 private static int skipSpecialValues(CheckRange checkRanges[]) { in skipSpecialValues() argument 91 for(i=0; i<checkRanges.length && checkRanges[i].limit<=0; ++i) {} in skipSpecialValues() 95 private static SpecialValues getSpecialValues(CheckRange checkRanges[]) { in getSpecialValues() argument 98 if(i<checkRanges.length && checkRanges[i].limit<0) { in getSpecialValues() 99 errorValue=checkRanges[i++].value; in getSpecialValues() 103 if(i<checkRanges.length && checkRanges[i].limit==0) { in getSpecialValues() 104 initialValue=checkRanges[i++].value; in getSpecialValues() 161 CheckRange checkRanges[]) { in testTrieGetRanges() argument 176 for (i = 0; i < checkRanges.length && checkRanges[i].limit <= start; ++i) {} in testTrieGetRanges() 180 if (i < checkRanges.length) { in testTrieGetRanges() [all …]
|
D | TrieTest.java | 142 private void _testTrieIteration(IntTrie trie, CheckRange checkRanges[], in _testTrieIteration() argument 150 int c = checkRanges[i].limit; in _testTrieIteration() 154 values[countValues ++] = checkRanges[i].value; in _testTrieIteration() 200 CheckRange checkRanges[], int countCheckRanges, in _testTrieRanges() argument 204 checkRanges[0].value, in _testTrieRanges() 205 checkRanges[0].value, in _testTrieRanges() 230 int limit = checkRanges[i].limit; in _testTrieRanges() 231 int value = checkRanges[i].value; in _testTrieRanges() 251 int limit = checkRanges[i].limit; in _testTrieRanges() 252 int value = checkRanges[i].value; in _testTrieRanges() [all …]
|
D | Trie2Test.java | 621 int[][] checkRanges) // Expected data. in trieGettersTest() argument 627 int countCheckRanges = checkRanges.length; in trieGettersTest() 637 if (checkRanges[countSpecials][0] == 0) { in trieGettersTest() 638 initialValue = checkRanges[countSpecials][1]; in trieGettersTest() 644 limit=checkRanges[i][0]; in trieGettersTest() 645 value=checkRanges[i][1]; in trieGettersTest() 715 int[][] setRanges, int [][] checkRanges) throws IOException { in checkTrieRanges() argument 728 trieGettersTest(testName, trie16, checkRanges); in checkTrieRanges() 737 trieGettersTest(testName, trie32, checkRanges); in checkTrieRanges() 741 trieGettersTest(testName, trieW, checkRanges); in checkTrieRanges() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | CodePointTrieTest.java | 86 private static int skipSpecialValues(CheckRange checkRanges[]) { in skipSpecialValues() argument 88 for(i=0; i<checkRanges.length && checkRanges[i].limit<=0; ++i) {} in skipSpecialValues() 92 private static SpecialValues getSpecialValues(CheckRange checkRanges[]) { in getSpecialValues() argument 95 if(i<checkRanges.length && checkRanges[i].limit<0) { in getSpecialValues() 96 errorValue=checkRanges[i++].value; in getSpecialValues() 100 if(i<checkRanges.length && checkRanges[i].limit==0) { in getSpecialValues() 101 initialValue=checkRanges[i++].value; in getSpecialValues() 158 CheckRange checkRanges[]) { in testTrieGetRanges() argument 173 for (i = 0; i < checkRanges.length && checkRanges[i].limit <= start; ++i) {} in testTrieGetRanges() 177 if (i < checkRanges.length) { in testTrieGetRanges() [all …]
|
D | TrieTest.java | 139 private void _testTrieIteration(IntTrie trie, CheckRange checkRanges[], in _testTrieIteration() argument 147 int c = checkRanges[i].limit; in _testTrieIteration() 151 values[countValues ++] = checkRanges[i].value; in _testTrieIteration() 197 CheckRange checkRanges[], int countCheckRanges, in _testTrieRanges() argument 201 checkRanges[0].value, in _testTrieRanges() 202 checkRanges[0].value, in _testTrieRanges() 227 int limit = checkRanges[i].limit; in _testTrieRanges() 228 int value = checkRanges[i].value; in _testTrieRanges() 248 int limit = checkRanges[i].limit; in _testTrieRanges() 249 int value = checkRanges[i].value; in _testTrieRanges() [all …]
|
D | Trie2Test.java | 618 int[][] checkRanges) // Expected data. in trieGettersTest() argument 624 int countCheckRanges = checkRanges.length; in trieGettersTest() 634 if (checkRanges[countSpecials][0] == 0) { in trieGettersTest() 635 initialValue = checkRanges[countSpecials][1]; in trieGettersTest() 641 limit=checkRanges[i][0]; in trieGettersTest() 642 value=checkRanges[i][1]; in trieGettersTest() 712 int[][] setRanges, int [][] checkRanges) throws IOException { in checkTrieRanges() argument 725 trieGettersTest(testName, trie16, checkRanges); in checkTrieRanges() 734 trieGettersTest(testName, trie32, checkRanges); in checkTrieRanges() 738 trieGettersTest(testName, trieW, checkRanges); in checkTrieRanges() [all …]
|
/external/icu/icu4c/source/test/cintltst/ |
D | ucptrietest.c | 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() [all …]
|
D | trie2test.c | 52 skipSpecialValues(const CheckRange checkRanges[], int32_t countCheckRanges) { in skipSpecialValues() argument 54 for(i=0; i<countCheckRanges && checkRanges[i].limit<=0; ++i) {} in skipSpecialValues() 59 getSpecialValues(const CheckRange checkRanges[], int32_t countCheckRanges, in getSpecialValues() argument 62 if(i<countCheckRanges && checkRanges[i].limit<0) { in getSpecialValues() 63 *pErrorValue=checkRanges[i++].value; in getSpecialValues() 67 if(i<countCheckRanges && checkRanges[i].limit==0) { in getSpecialValues() 68 *pInitialValue=checkRanges[i++].value; in getSpecialValues() 100 const CheckRange checkRanges[], int32_t countCheckRanges) { in testTrieEnum() argument 102 while(countCheckRanges>0 && checkRanges[0].limit<=0) { in testTrieEnum() 103 ++checkRanges; in testTrieEnum() [all …]
|
D | trietest.c | 143 const CheckRange checkRanges[], int32_t countCheckRanges) { in testTrieIteration() argument 157 c=checkRanges[i].limit; in testTrieIteration() 161 values[countValues++]=checkRanges[i].value; in testTrieIteration() 258 const CheckRange checkRanges[], int32_t countCheckRanges, in testTrieRangesWithMalloc() argument 275 checkRanges[0].value, checkRanges[0].value, in testTrieRangesWithMalloc() 299 limit=checkRanges[i].limit; in testTrieRangesWithMalloc() 300 value=checkRanges[i].value; in testTrieRangesWithMalloc() 336 limit=checkRanges[i].limit; in testTrieRangesWithMalloc() 337 value=checkRanges[i].value; in testTrieRangesWithMalloc() 368 limit=checkRanges[i].limit; in testTrieRangesWithMalloc() [all …]
|