/external/icu/icu4c/source/test/cintltst/ |
D | ccurrtst.c | 106 uint8_t *sortKey1, *sortKey2; in currTest() local 149 sortKey2=(uint8_t*)malloc(sizeof(uint8_t) * (sortklen+1)); in currTest() 150 ucol_getSortKey(c, target, u_strlen(target), sortKey2, sortklen+1); in currTest() 152 res = uprv_memcmp(sortKey1, sortKey2, sortklen); in currTest() 157 …reportCResult( source, target, sortKey1, sortKey2, compareResult, keyResult, compareResult, expect… in currTest() 160 free(sortKey2); in currTest()
|
D | callcoll.c | 273 uint8_t *sortKey1, *sortKey2, *sortKey1a, *sortKey2a; in doTestVariant() local 408 sortKey2 =(uint8_t*)malloc(sizeof(uint8_t) * (sortklenmax+1)); in doTestVariant() 410 ucol_getSortKey(myCollation, target, tLen, sortKey2, sortklen2+1); in doTestVariant() 416 uprv_strcmp((const char *)sortKey2, (const char *)sortKey2a) != 0 ) { in doTestVariant() 421 temp= uprv_strcmp((const char *)sortKey1, (const char *)sortKey2); in doTestVariant() 423 gSortklen2 = uprv_strlen((const char *)sortKey2)+1; in doTestVariant() 430 … log_verbose("Generated sortkey: %s\n", sortKeyToString(myCollation, sortKey2, buffer, &len)); in doTestVariant() 442 …reportCResult( source, target, sortKey1, sortKey2, compareResult, keyResult, compareResultIter, re… in doTestVariant() 444 free(sortKey2); in doTestVariant()
|
D | capitst.c | 869 uint8_t *sortKey2; in TestBengaliSortKey() local 897 sortKey2 = (uint8_t*)malloc(sortKeyLen2+1); in TestBengaliSortKey() 898 ucol_getSortKey(c2,str2,-1,sortKey2, sortKeyLen2+1); in TestBengaliSortKey() 900 ucol_sortKeyToString(c2, sortKey2, sortKeyStr2, sortKeyStrLen2); in TestBengaliSortKey() 916 free(sortKey2); in TestBengaliSortKey() 939 uint8_t *sortKey1 = NULL, *sortKey2 = NULL; in TestOpenVsOpenRules() local 1034 sortKey2 = (uint8_t*)malloc(sizeof(uint8_t) * (sortKeyLen2 + 1)); in TestOpenVsOpenRules() 1036 ucol_getSortKey(c2, str, u_strlen(str), sortKey2, sortKeyLen2 + 1); in TestOpenVsOpenRules() 1037 ucol_sortKeyToString(c2, sortKey2, sortKeyStr2, sortKeyStrLen2); in TestOpenVsOpenRules() 1046 if (memcmp(sortKey1, sortKey2, sortKeyLen1) != 0) { in TestOpenVsOpenRules() [all …]
|
D | cmsccoll.c | 4138 uint8_t sortKey2[SORTKEYLEN]; in TestHiragana() local 4158 keySize2 = ucol_getSortKey(ucol, data2, data2Len, sortKey2, SORTKEYLEN); in TestHiragana() 4161 if (sortKey1[i] != sortKey2[i]) { in TestHiragana() 4176 keySize2 = ucol_nextSortKeyPart(ucol, &uiter2, state2, sortKey2, SORTKEYLEN, &status); in TestHiragana() 4179 if (sortKey1[j] != sortKey2[j]) { in TestHiragana()
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | LotusCollationKoreanTest.java | 60 CollationKey sortKey1, sortKey2; in doTest() local 62 sortKey2 = myCollation.getCollationKey(t); in doTest() 63 int keyResult = sortKey1.compareTo(sortKey2); in doTest() 64 reportCResult( s, t, sortKey1, sortKey2, compareResult, keyResult, compareResult, result ); in doTest()
|
D | CollationFinnishTest.java | 82 CollationKey sortKey1, sortKey2; in doTest() local 84 sortKey2 = myCollation.getCollationKey(t); in doTest() 85 int keyResult = sortKey1.compareTo(sortKey2); in doTest() 86 reportCResult(s, t, sortKey1, sortKey2, compareResult, keyResult, compareResult, result); in doTest()
|
D | CollationTurkishTest.java | 100 CollationKey sortKey1, sortKey2; in doTest() local 102 sortKey2 = myCollation.getCollationKey(t); in doTest() 103 int keyResult = sortKey1.compareTo(sortKey2); in doTest() 104 reportCResult(s, t, sortKey1, sortKey2, compareResult, keyResult, compareResult, result); in doTest()
|
D | CollationSpanishTest.java | 94 CollationKey sortKey1, sortKey2; in doTest() local 96 sortKey2 = myCollation.getCollationKey(t); in doTest() 97 int keyResult = sortKey1.compareTo(sortKey2); in doTest() 98 reportCResult(s, t, sortKey1, sortKey2, compareResult, keyResult, compareResult, result); in doTest()
|
D | CollationGermanTest.java | 126 CollationKey sortKey1, sortKey2; in doTest() local 128 sortKey2 = myCollation.getCollationKey(t); in doTest() 129 int keyResult = sortKey1.compareTo(sortKey2); in doTest() 130 reportCResult(s, t, sortKey1, sortKey2, compareResult, keyResult, compareResult, result); in doTest()
|
D | CollationEnglishTest.java | 325 CollationKey sortKey1, sortKey2; in doTest() local 327 sortKey2 = myCollation.getCollationKey(t); in doTest() 328 int keyResult = sortKey1.compareTo(sortKey2); in doTest() 329 reportCResult(s, t, sortKey1, sortKey2, compareResult, keyResult, compareResult, result); in doTest()
|
D | CollationFrenchTest.java | 192 CollationKey sortKey1, sortKey2; in doTest() local 194 sortKey2 = myCollation.getCollationKey(t); in doTest() 195 int keyResult = sortKey1.compareTo(sortKey2); in doTest() 196 reportCResult(s, t, sortKey1, sortKey2, compareResult, keyResult, compareResult, result); in doTest()
|
D | CollationKanaTest.java | 195 CollationKey sortKey1, sortKey2; in doTest() local 197 sortKey2 = myCollation.getCollationKey(t); in doTest() 198 int keyResult = sortKey1.compareTo(sortKey2); in doTest() 199 reportCResult(s, t, sortKey1, sortKey2, compareResult, keyResult, compareResult, result); in doTest()
|
D | G7CollationTest.java | 205 CollationKey sortKey1, sortKey2; in doTest() local 207 sortKey2 = myCollation.getCollationKey(target); in doTest() 208 int keyResult = sortKey1.compareTo(sortKey2); in doTest() 209 reportCResult(source, target, sortKey1, sortKey2, compareResult, in doTest()
|
D | CollationMonkeyTest.java | 232 CollationKey sortKey1, sortKey2; in doTest() local 236 sortKey2 = myCollation.getCollationKey(target); in doTest() 241 int keyResult = sortKey1.compareTo(sortKey2); in doTest() 242 …reportCResult( mysource, target, sortKey1, sortKey2, compareResult, keyResult, compareResult, resu… in doTest()
|
D | CollationFrozenMonkeyTest.java | 257 CollationKey sortKey1, sortKey2; in doTest() local 261 sortKey2 = myCollation.getCollationKey(target); in doTest() 266 int keyResult = sortKey1.compareTo(sortKey2); in doTest() 267 …reportCResult( mysource, target, sortKey1, sortKey2, compareResult, keyResult, compareResult, resu… in doTest()
|
D | CollationMiscTest.java | 2967 CollationKey sortKey2 = coll.getCollationKey(str2); in TestHungarianTailoring() local 2968 if (sortKey1.compareTo(sortKey2) >= 0) { in TestHungarianTailoring() 2972 " getCollationKey(\"GGY\"):" + CollationTest.prettify(sortKey2)); in TestHungarianTailoring()
|
/external/icu/icu4c/source/test/intltest/ |
D | apicoll.cpp | 1232 uint8_t sortKey2[12]; in TestSortKeyOverflow() local 1234 uprv_memset(sortKey2, 2, UPRV_LENGTHOF(sortKey2)); in TestSortKeyOverflow() 1235 int32_t length2 = col->getSortKey(i_and_phi, 2, sortKey2, capacity); in TestSortKeyOverflow() 1236 if (length2 != length || 0 != uprv_memcmp(sortKey, sortKey2, capacity)) { in TestSortKeyOverflow() 1238 } else if (sortKey2[capacity] != 2 || sortKey2[capacity + 1] != 2) { in TestSortKeyOverflow()
|