Home
last modified time | relevance | path

Searched refs:sortKey1 (Results 1 – 8 of 8) sorted by relevance

/external/icu/icu4c/source/test/cintltst/
Dccurrtst.c106 uint8_t *sortKey1, *sortKey2; in currTest() local
145 sortKey1=(uint8_t*)malloc(sizeof(uint8_t) * (sortklen+1)); in currTest()
146 ucol_getSortKey(c, source, u_strlen(source), sortKey1, 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()
159 free(sortKey1); in currTest()
Dcallcoll.c273 uint8_t *sortKey1, *sortKey2, *sortKey1a, *sortKey2a; in doTestVariant() local
403 sortKey1 =(uint8_t*)malloc(sizeof(uint8_t) * (sortklenmax+1)); in doTestVariant()
405 ucol_getSortKey(myCollation, source, sLen, sortKey1, sortklen1+1); in doTestVariant()
415 if (uprv_strcmp((const char *)sortKey1, (const char *)sortKey1a) != 0 || in doTestVariant()
421 temp= uprv_strcmp((const char *)sortKey1, (const char *)sortKey2); in doTestVariant()
422 gSortklen1 = uprv_strlen((const char *)sortKey1)+1; in doTestVariant()
426 … log_verbose("Generated sortkey: %s\n", sortKeyToString(myCollation, sortKey1, buffer, &len)); in doTestVariant()
442 …reportCResult( source, target, sortKey1, sortKey2, compareResult, keyResult, compareResultIter, re… in doTestVariant()
443 free(sortKey1); in doTestVariant()
Dcapitst.c855 uint8_t *sortKey1; in TestBengaliSortKey() local
879 sortKey1 = (uint8_t*)malloc(sortKeyLen1+1); in TestBengaliSortKey()
880 ucol_getSortKey(c2,str1,-1,sortKey1, sortKeyLen1+1); in TestBengaliSortKey()
881 ucol_sortKeyToString(c2, sortKey1, sortKeyStr1, sortKeyStrLen1); in TestBengaliSortKey()
903 free(sortKey1); in TestBengaliSortKey()
927 uint8_t *sortKey1 = NULL, *sortKey2 = NULL; in TestOpenVsOpenRules() local
1010 sortKey1 = (uint8_t*)malloc(sizeof(uint8_t) * (sortKeyLen1 + 1)); in TestOpenVsOpenRules()
1012 ucol_getSortKey(c1, str, u_strlen(str), sortKey1, sortKeyLen1 + 1); in TestOpenVsOpenRules()
1013 ucol_sortKeyToString(c1, sortKey1, sortKeyStr1, sortKeyStrLen1); in TestOpenVsOpenRules()
1028 if (memcmp(sortKey1, sortKey2, sortKeyLen1) != 0) { in TestOpenVsOpenRules()
[all …]
Dcmsccoll.c4133 uint8_t sortKey1[SORTKEYLEN]; in TestHiragana() local
4152 keySize1 = ucol_getSortKey(ucol, data1, data1Len, sortKey1, SORTKEYLEN); in TestHiragana()
4157 if (sortKey1[i] != sortKey2[i]) { in TestHiragana()
4169 keySize1 = ucol_nextSortKeyPart(ucol, &uiter1, state1, sortKey1, SORTKEYLEN, &status); in TestHiragana()
4175 if (sortKey1[j] != sortKey2[j]) { in TestHiragana()
/external/chromium_org/third_party/icu/source/test/cintltst/
Dccurrtst.c106 uint8_t *sortKey1, *sortKey2; in currTest() local
145 sortKey1=(uint8_t*)malloc(sizeof(uint8_t) * (sortklen+1)); in currTest()
146 ucol_getSortKey(c, source, u_strlen(source), sortKey1, 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()
159 free(sortKey1); in currTest()
Dcallcoll.c273 uint8_t *sortKey1, *sortKey2, *sortKey1a, *sortKey2a; in doTestVariant() local
403 sortKey1 =(uint8_t*)malloc(sizeof(uint8_t) * (sortklenmax+1)); in doTestVariant()
405 ucol_getSortKey(myCollation, source, sLen, sortKey1, sortklen1+1); in doTestVariant()
415 if (uprv_strcmp((const char *)sortKey1, (const char *)sortKey1a) != 0 || in doTestVariant()
421 temp= uprv_strcmp((const char *)sortKey1, (const char *)sortKey2); in doTestVariant()
422 gSortklen1 = uprv_strlen((const char *)sortKey1)+1; in doTestVariant()
426 … log_verbose("Generated sortkey: %s\n", sortKeyToString(myCollation, sortKey1, buffer, &len)); in doTestVariant()
442 …reportCResult( source, target, sortKey1, sortKey2, compareResult, keyResult, compareResultIter, re… in doTestVariant()
443 free(sortKey1); in doTestVariant()
Dcapitst.c857 uint8_t *sortKey1; in TestBengaliSortKey() local
881 sortKey1 = (uint8_t*)malloc(sortKeyLen1+1); in TestBengaliSortKey()
882 ucol_getSortKey(c2,str1,-1,sortKey1, sortKeyLen1+1); in TestBengaliSortKey()
883 ucol_sortKeyToString(c2, sortKey1, sortKeyStr1, sortKeyStrLen1); in TestBengaliSortKey()
905 free(sortKey1); in TestBengaliSortKey()
929 uint8_t *sortKey1 = NULL, *sortKey2 = NULL; in TestOpenVsOpenRules() local
1012 sortKey1 = (uint8_t*)malloc(sizeof(uint8_t) * (sortKeyLen1 + 1)); in TestOpenVsOpenRules()
1014 ucol_getSortKey(c1, str, u_strlen(str), sortKey1, sortKeyLen1 + 1); in TestOpenVsOpenRules()
1015 ucol_sortKeyToString(c1, sortKey1, sortKeyStr1, sortKeyStrLen1); in TestOpenVsOpenRules()
1030 if (memcmp(sortKey1, sortKey2, sortKeyLen1) != 0) { in TestOpenVsOpenRules()
[all …]
Dcmsccoll.c5488 uint8_t sortKey1[SORTKEYLEN]; in TestHiragana() local
5507 keySize1 = ucol_getSortKey(ucol, data1, data1Len, sortKey1, SORTKEYLEN); in TestHiragana()
5512 if (sortKey1[i] != sortKey2[i]) { in TestHiragana()
5524 keySize1 = ucol_nextSortKeyPart(ucol, &uiter1, state1, sortKey1, SORTKEYLEN, &status); in TestHiragana()
5530 if (sortKey1[j] != sortKey2[j]) { in TestHiragana()