/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 | 857 uint8_t *sortKey2; in TestBengaliSortKey() local 885 sortKey2 = (uint8_t*)malloc(sortKeyLen2+1); in TestBengaliSortKey() 886 ucol_getSortKey(c2,str2,-1,sortKey2, sortKeyLen2+1); in TestBengaliSortKey() 888 ucol_sortKeyToString(c2, sortKey2, sortKeyStr2, sortKeyStrLen2); in TestBengaliSortKey() 904 free(sortKey2); in TestBengaliSortKey() 927 uint8_t *sortKey1 = NULL, *sortKey2 = NULL; in TestOpenVsOpenRules() local 1016 sortKey2 = (uint8_t*)malloc(sizeof(uint8_t) * (sortKeyLen2 + 1)); in TestOpenVsOpenRules() 1018 ucol_getSortKey(c2, str, u_strlen(str), sortKey2, sortKeyLen2 + 1); in TestOpenVsOpenRules() 1019 ucol_sortKeyToString(c2, sortKey2, sortKeyStr2, sortKeyStrLen2); in TestOpenVsOpenRules() 1028 if (memcmp(sortKey1, sortKey2, sortKeyLen1) != 0) { in TestOpenVsOpenRules() [all …]
|
D | cmsccoll.c | 4134 uint8_t sortKey2[SORTKEYLEN]; in TestHiragana() local 4154 keySize2 = ucol_getSortKey(ucol, data2, data2Len, sortKey2, SORTKEYLEN); in TestHiragana() 4157 if (sortKey1[i] != sortKey2[i]) { in TestHiragana() 4172 keySize2 = ucol_nextSortKeyPart(ucol, &uiter2, state2, sortKey2, SORTKEYLEN, &status); in TestHiragana() 4175 if (sortKey1[j] != sortKey2[j]) { in TestHiragana()
|
/external/chromium_org/third_party/icu/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 | 859 uint8_t *sortKey2; in TestBengaliSortKey() local 887 sortKey2 = (uint8_t*)malloc(sortKeyLen2+1); in TestBengaliSortKey() 888 ucol_getSortKey(c2,str2,-1,sortKey2, sortKeyLen2+1); in TestBengaliSortKey() 890 ucol_sortKeyToString(c2, sortKey2, sortKeyStr2, sortKeyStrLen2); in TestBengaliSortKey() 906 free(sortKey2); in TestBengaliSortKey() 929 uint8_t *sortKey1 = NULL, *sortKey2 = NULL; in TestOpenVsOpenRules() local 1018 sortKey2 = (uint8_t*)malloc(sizeof(uint8_t) * (sortKeyLen2 + 1)); in TestOpenVsOpenRules() 1020 ucol_getSortKey(c2, str, u_strlen(str), sortKey2, sortKeyLen2 + 1); in TestOpenVsOpenRules() 1021 ucol_sortKeyToString(c2, sortKey2, sortKeyStr2, sortKeyStrLen2); in TestOpenVsOpenRules() 1030 if (memcmp(sortKey1, sortKey2, sortKeyLen1) != 0) { in TestOpenVsOpenRules() [all …]
|
D | cmsccoll.c | 5489 uint8_t sortKey2[SORTKEYLEN]; in TestHiragana() local 5509 keySize2 = ucol_getSortKey(ucol, data2, data2Len, sortKey2, SORTKEYLEN); in TestHiragana() 5512 if (sortKey1[i] != sortKey2[i]) { in TestHiragana() 5527 keySize2 = ucol_nextSortKeyPart(ucol, &uiter2, state2, sortKey2, SORTKEYLEN, &status); in TestHiragana() 5530 if (sortKey1[j] != sortKey2[j]) { in TestHiragana()
|
/external/chromium_org/third_party/icu/source/test/intltest/ |
D | apicoll.cpp | 1263 uint8_t sortKey2[12]; in TestSortKeyOverflow() local 1265 uprv_memset(sortKey2, 2, LENGTHOF(sortKey2)); in TestSortKeyOverflow() 1266 int32_t length2 = col->getSortKey(i_and_phi, 2, sortKey2, capacity); in TestSortKeyOverflow() 1267 if (length2 != length || 0 != uprv_memcmp(sortKey, sortKey2, capacity)) { in TestSortKeyOverflow() 1269 } else if (sortKey2[capacity] != 2 || sortKey2[capacity + 1] != 2) { in TestSortKeyOverflow()
|
/external/icu/icu4c/source/test/intltest/ |
D | apicoll.cpp | 1248 uint8_t sortKey2[12]; in TestSortKeyOverflow() local 1250 uprv_memset(sortKey2, 2, LENGTHOF(sortKey2)); in TestSortKeyOverflow() 1251 int32_t length2 = col->getSortKey(i_and_phi, 2, sortKey2, capacity); in TestSortKeyOverflow() 1252 if (length2 != length || 0 != uprv_memcmp(sortKey, sortKey2, capacity)) { in TestSortKeyOverflow() 1254 } else if (sortKey2[capacity] != 2 || sortKey2[capacity + 1] != 2) { in TestSortKeyOverflow()
|