Searched refs:sortKey2 (Results 1 – 5 of 5) sorted by relevance
/external/icu4c/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 379 sortKey2 =(uint8_t*)malloc(sizeof(uint8_t) * (sortklenmax+1)); in doTestVariant() 381 ucol_getSortKey(myCollation, target, tLen, sortKey2, sortklen2+1); in doTestVariant() 387 uprv_strcmp((const char *)sortKey2, (const char *)sortKey2a) != 0 ) { in doTestVariant() 392 temp= uprv_strcmp((const char *)sortKey1, (const char *)sortKey2); in doTestVariant() 394 gSortklen2 = uprv_strlen((const char *)sortKey2)+1; in doTestVariant() 401 … log_verbose("Generated sortkey: %s\n", sortKeyToString(myCollation, sortKey2, buffer, &len)); in doTestVariant() 413 …reportCResult( source, target, sortKey1, sortKey2, compareResult, keyResult, compareResultIter, re… in doTestVariant() 415 free(sortKey2); in doTestVariant()
|
D | capitst.c | 897 uint8_t *sortKey2; in TestBengaliSortKey() local 925 sortKey2 = (uint8_t*)malloc(sortKeyLen2+1); in TestBengaliSortKey() 926 ucol_getSortKey(c2,str2,-1,sortKey2, sortKeyLen2+1); in TestBengaliSortKey() 928 ucol_sortKeyToString(c2, sortKey2, sortKeyStr2, &sortKeyStrLen2); in TestBengaliSortKey() 944 free(sortKey2); in TestBengaliSortKey() 967 uint8_t *sortKey1 = NULL, *sortKey2 = NULL; in TestOpenVsOpenRules() local 1051 sortKey2 = (uint8_t*)malloc(sizeof(uint8_t) * (sortKeyLen2 + 1)); in TestOpenVsOpenRules() 1053 ucol_getSortKey(c2, str, u_strlen(str), sortKey2, sortKeyLen2 + 1); in TestOpenVsOpenRules() 1059 doAssert((memcmp(sortKey1, sortKey2, sortKeyLen1) == 0), "Keys are not equivalent"); in TestOpenVsOpenRules() 1063 free(sortKey2); in TestOpenVsOpenRules()
|
D | cmsccoll.c | 5445 uint8_t sortKey2[SORTKEYLEN]; in TestHiragana() local 5465 keySize2 = ucol_getSortKey(ucol, data2, data2Len, sortKey2, SORTKEYLEN); in TestHiragana() 5468 if (sortKey1[i] != sortKey2[i]) { in TestHiragana() 5483 keySize2 = ucol_nextSortKeyPart(ucol, &uiter2, state2, sortKey2, SORTKEYLEN, &status); in TestHiragana() 5486 if (sortKey1[j] != sortKey2[j]) { in TestHiragana()
|
/external/icu4c/test/intltest/ |
D | apicoll.cpp | 1270 uint8_t sortKey2[12]; in TestSortKeyOverflow() local 1272 uprv_memset(sortKey2, 2, LENGTHOF(sortKey2)); in TestSortKeyOverflow() 1273 int32_t length2 = col->getSortKey(i_and_phi, 2, sortKey2, capacity); in TestSortKeyOverflow() 1274 if (length2 != length || 0 != uprv_memcmp(sortKey, sortKey2, capacity)) { in TestSortKeyOverflow() 1276 } else if (sortKey2[capacity] != 2 || sortKey2[capacity + 1] != 2) { in TestSortKeyOverflow()
|