Home
last modified time | relevance | path

Searched refs:checkRanges (Results 1 – 9 of 9) sorted by relevance

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DCodePointTrieTest.java89 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 …]
DTrieTest.java142 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 …]
DTrie2Test.java621 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/
DCodePointTrieTest.java86 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 …]
DTrieTest.java139 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 …]
DTrie2Test.java618 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/
Ducptrietest.c44 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 …]
Dtrie2test.c52 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 …]
Dtrietest.c143 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 …]