Lines Matching defs:sortkey
42 static char* U_EXPORT2 ucol_sortKeyToString(const UCollator *coll, const uint8_t *sortkey, char *buffer, uint32_t len) {
48 while ((b = *sortkey++) != 0) {
1096 log_verbose("testing SortKey begins...\n");
1145 doAssert( (sortklen == osortklen), "Sortkey length should be the same (abcda, abcda)");
1191 log_verbose("getting sortkey for an empty string\n");
1197 log_err("Empty string generated wrong sortkey!\n");
1204 log_err("Invalid string didn't return sortkey size of 0\n");
1208 log_verbose("testing sortkey ends...\n");
1525 uint8_t sortkey[512], lower[512], upper[512];
1654 skSize = ucol_getSortKey(coll, buffer, buffSize, sortkey, 512);
1655 lowerSize = ucol_getBound(sortkey, skSize, UCOL_BOUND_LOWER, 1, lower, 512, &status);
1656 upperSize = ucol_getBound(sortkey, skSize, UCOL_BOUND_UPPER_LONG, 1, upper, 512, &status);
1659 skSize = ucol_getSortKey(coll, buffer, buffSize, sortkey, 512);
1660 if(strcmp((const char *)lower, (const char *)sortkey) > 0) {
1663 if(strcmp((const char *)upper, (const char *)sortkey) <= 0) {
1677 uint8_t sortKey[256];
1684 memset(sortKey, filler, 256);
1685 skLen2 = ucol_getSortKey(coll, uString, strLen, sortKey, i);
1687 log_err("For buffer size %i, got different sortkey length. Expected %i got %i\n", i, skLen, skLen2);
1690 if(sortKey[j] != filler) {
1969 log_err("Wrong preflight size for merged sortkey\n");
1984 log_err("Empty sortkey didn't produce a level separator\n");