Home
last modified time | relevance | path

Searched refs:sortKey2 (Results 1 – 17 of 17) sorted by relevance

/external/icu/icu4c/source/test/cintltst/
Dccurrtst.c106 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()
Dcallcoll.c273 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()
Dcapitst.c869 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 …]
Dcmsccoll.c4138 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/
DLotusCollationKoreanTest.java60 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()
DCollationFinnishTest.java82 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()
DCollationTurkishTest.java100 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()
DCollationSpanishTest.java94 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()
DCollationGermanTest.java126 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()
DCollationEnglishTest.java325 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()
DCollationFrenchTest.java192 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()
DCollationKanaTest.java195 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()
DG7CollationTest.java205 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()
DCollationMonkeyTest.java232 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()
DCollationFrozenMonkeyTest.java257 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()
DCollationMiscTest.java2967 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/
Dapicoll.cpp1232 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()