Home
last modified time | relevance | path

Searched refs:sortk3 (Results 1 – 6 of 6) sorted by relevance

/external/cronet/third_party/icu/source/test/cintltst/
Dcapitst.c1194 uint8_t *sortk1 = NULL, *sortk2 = NULL, *sortk3 = NULL, *sortkEmpty = NULL; in TestSortKey() local
1261 sortk3=(uint8_t*)malloc(sizeof(uint8_t) * (sortklen+1)); in TestSortKey()
1262 memset(sortk3,0xFE, sortklen); in TestSortKey()
1263 ucol_getSortKey(col, test2, u_strlen(test2), sortk3, sortklen+1); in TestSortKey()
1269 doAssert( (memcmp(sortk2, sortk3, sortklen) == 0), "Result should be \"abcda\" == \"abcda\""); in TestSortKey()
1271 resultP = ucol_sortKeyToString(col, sortk3, toStringBuffer, toStringLen); in TestSortKey()
1286 sprintf(junk3+strlen(junk3), "%02X ",(int)( 0xFF & sortk3[i])); in TestSortKey()
1296 free(sortk3); in TestSortKey()
1339 uint8_t *sortk1, *sortk2, *sortk3; in TestHashCode() local
1365 sortk3=(uint8_t*)malloc(sizeof(uint8_t) * (sortk3len+1)); in TestHashCode()
[all …]
/external/icu/icu4c/source/test/intltest/
Dapicoll.cpp482 CollationKey sortk1, sortk2, sortk3; in TestHashCode() local
487 col3->getCollationKey(test2, sortk3, status); in TestHashCode()
490 doAssert(sortk2.hashCode() == sortk3.hashCode(), "Hash result not equal" ); in TestHashCode()
564 CollationKey sortk3(sortk2), sortkNew; in TestCollationKey() local
569 doAssert((sortk2 == sortk3), "The sort keys should be the same"); in TestCollationKey()
572 doAssert((sortkNew != sortk3), "The sort keys should be different"); in TestCollationKey()
573 …doAssert(sortk1.compareTo(sortk3) == Collator::GREATER, "Result should be \"Abcda\" >>> \"abcda\""… in TestCollationKey()
574 … doAssert(sortk2.compareTo(sortk3) == Collator::EQUAL, "Result should be \"abcda\" == \"abcda\""); in TestCollationKey()
578 …doAssert(sortk1.compareTo(sortk3, success) == UCOL_GREATER, "Result should be \"Abcda\" >>> \"abcd… in TestCollationKey()
579 …doAssert(sortk2.compareTo(sortk3, success) == UCOL_EQUAL, "Result should be \"abcda\" == \"abcda\"… in TestCollationKey()
[all …]
/external/cronet/third_party/icu/source/test/intltest/
Dapicoll.cpp482 CollationKey sortk1, sortk2, sortk3; in TestHashCode() local
487 col3->getCollationKey(test2, sortk3, status); in TestHashCode()
490 doAssert(sortk2.hashCode() == sortk3.hashCode(), "Hash result not equal" ); in TestHashCode()
564 CollationKey sortk3(sortk2), sortkNew; in TestCollationKey() local
569 doAssert((sortk2 == sortk3), "The sort keys should be the same"); in TestCollationKey()
572 doAssert((sortkNew != sortk3), "The sort keys should be different"); in TestCollationKey()
573 …doAssert(sortk1.compareTo(sortk3) == Collator::GREATER, "Result should be \"Abcda\" >>> \"abcda\""… in TestCollationKey()
574 … doAssert(sortk2.compareTo(sortk3) == Collator::EQUAL, "Result should be \"abcda\" == \"abcda\""); in TestCollationKey()
578 …doAssert(sortk1.compareTo(sortk3, success) == UCOL_GREATER, "Result should be \"Abcda\" >>> \"abcd… in TestCollationKey()
579 …doAssert(sortk2.compareTo(sortk3, success) == UCOL_EQUAL, "Result should be \"abcda\" == \"abcda\"… in TestCollationKey()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dcapitst.c1194 uint8_t *sortk1 = NULL, *sortk2 = NULL, *sortk3 = NULL, *sortkEmpty = NULL; in TestSortKey() local
1261 sortk3=(uint8_t*)malloc(sizeof(uint8_t) * (sortklen+1)); in TestSortKey()
1262 memset(sortk3,0xFE, sortklen); in TestSortKey()
1263 ucol_getSortKey(col, test2, u_strlen(test2), sortk3, sortklen+1); in TestSortKey()
1269 doAssert( (memcmp(sortk2, sortk3, sortklen) == 0), "Result should be \"abcda\" == \"abcda\""); in TestSortKey()
1271 resultP = ucol_sortKeyToString(col, sortk3, toStringBuffer, toStringLen); in TestSortKey()
1286 sprintf(junk3+strlen(junk3), "%02X ",(int)( 0xFF & sortk3[i])); in TestSortKey()
1296 free(sortk3); in TestSortKey()
1339 uint8_t *sortk1, *sortk2, *sortk3; in TestHashCode() local
1365 sortk3=(uint8_t*)malloc(sizeof(uint8_t) * (sortk3len+1)); in TestHashCode()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DCollationAPITest.java434 CollationKey sortk1, sortk2, sortk3; in TestHashCode() local
438 sortk3 = col3.getCollationKey(test2); in TestHashCode()
441 doAssert(sortk2.hashCode() == sortk3.hashCode(), "Hash result not equal" ); in TestHashCode()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationAPITest.java431 CollationKey sortk1, sortk2, sortk3; in TestHashCode() local
435 sortk3 = col3.getCollationKey(test2); in TestHashCode()
438 doAssert(sortk2.hashCode() == sortk3.hashCode(), "Hash result not equal" ); in TestHashCode()