/external/icu4c/i18n/ |
H A D | tblcoll.cpp | 445 CollationKey& sortkey, 448 return getCollationKey(source.getBuffer(), source.length(), sortkey, status); 453 CollationKey& sortkey, 457 return sortkey.setToBogus(); 461 return sortkey.setToBogus(); 468 return sortkey.reset(); 473 if (sortkey.fCapacity >= (sourceLen * 3)) { 475 result = sortkey.fBytes; 476 resultCapacity = sortkey.fCapacity; 485 if (result == sortkey 443 getCollationKey( const UnicodeString& source, CollationKey& sortkey, UErrorCode& status) const argument 451 getCollationKey(const UChar* source, int32_t sourceLen, CollationKey& sortkey, UErrorCode& status) const argument [all...] |
H A D | Android.mk | 54 sortkey.cpp strmatch.cpp strrepl.cpp \
|
/external/icu4c/tools/dumpce/ |
H A D | dumpce.cpp | 165 uint8_t sortkey[64]; local 166 uint8_t *psortkey = sortkey; 172 iter->iteratordata_.endp - codepoint, sortkey, 64); 177 -1, sortkey, 64); 358 fprintf(OUTPUT_, "# and zz are the sortkey values in hexadecimals\n"); 824 uint8_t sortkey[32]; local 826 ucol_getSortKey(COLLATOR_, element.ch, element.count, sortkey, 32); 828 while (sortkey[i] != 0) { 829 if (sortkey[i] == 1) { 833 fprintf(OUTPUT_, "%02x", sortkey[ [all...] |
/external/icu4c/test/cintltst/ |
H A D | citertst.c | 1829 uint8_t *sortkey, int sklen) 1840 log_err("0x%02x ", sortkey[count]); 1872 uint8_t sortkey[128]; local 1876 sklen = ucol_getSortKey(coll, codepoints, length, sortkey, 128); 1877 while (sortkey[count] != 0) { 1878 if (sortkey[count] == 2 || (sortkey[count] == 3 && count01 > 0 && strengthIndex != 4)) { 1879 printSortKeyError(codepoints, length, sortkey, sklen); 1882 if (sortkey[count] == 1) { 1889 printSortKeyError(codepoints, length, sortkey, skle 1828 printSortKeyError(const UChar *codepoints, int length, uint8_t *sortkey, int sklen) argument [all...] |
H A D | capitst.c | 50 static char* U_EXPORT2 ucol_sortKeyToString(const UCollator *coll, const uint8_t *sortkey, char *buffer, uint32_t *len) { argument 56 const uint8_t *currentSk = sortkey; 1197 log_verbose("getting sortkey for an empty string\n"); 1203 log_err("Empty string generated wrong sortkey!\n"); 1210 log_err("Invalid string didn't return sortkey size of 0\n"); 1214 log_verbose("testing sortkey ends...\n"); 1531 uint8_t sortkey[512], lower[512], upper[512]; local 1660 skSize = ucol_getSortKey(coll, buffer, buffSize, sortkey, 512); 1661 lowerSize = ucol_getBound(sortkey, skSize, UCOL_BOUND_LOWER, 1, lower, 512, &status); 1662 upperSize = ucol_getBound(sortkey, skSiz [all...] |
H A D | callcoll.c | 145 /* this function makes a string with representation of a sortkey */ 146 static char* U_EXPORT2 sortKeyToString(const UCollator *coll, const uint8_t *sortkey, char *buffer, uint32_t *len) { argument 153 const uint8_t *currentSk = sortkey; 238 log_err("Partial sortkey size buffer too small. Please consider increasing the buffer!\n"); 335 /*log_verbose("partial sortkey test piecesize=");*/ 342 log_err("Partial sortkey comparison returned wrong result (%i exp. %i): %s, %s (size %i)\n", 353 log_err("Partial sortkey comparison gets different result when normalization is on: %s, %s (size %i)\n", 397 log_verbose("Generated sortkey: %s\n", sortKeyToString(myCollation, sortKey1, buffer, &len)); 401 log_verbose("Generated sortkey: %s\n", sortKeyToString(myCollation, sortKey2, buffer, &len));
|
H A D | cmsccoll.c | 337 uint8_t sortkey[256]; 371 sortkeysize = ucol_getSortKey(coll, m, sizem, sortkey, 256); 373 fprintf(stderr, "%s\n", ucol_sortKeyToString(coll, sortkey, buffer, &len)); 4840 unsigned char sortkey[256]; local 4860 sortkey[sortkey_length-1] = 0xAA; 4863 sortkey_length = ucol_getSortKey(coll, ustr, ustr_length, sortkey, 4867 if (sortkey[sortkey_length-1] == 0xAA) { 4872 sortkey[sortkey_length-1] = 0xAA; 4875 sortkey_length = ucol_getSortKey(coll, ustr, ustr_length, sortkey, 4879 if (sortkey[sortkey_lengt [all...] |
/external/icu4c/test/intltest/ |
H A D | apicoll.cpp | 38 #include "unicode/sortkey.h" 636 logln("testing sortkey ends..."); 653 logln("testing sortkey begins..."); 1144 // Clone the key2 sortkey for later. 1209 "Binary format for 'abcda' sortkey different for secondary strength!"); 1253 logln("testing sortkey ends..."); 1702 uint8_t sortkey[512], lower[512], upper[512]; local 1807 skSize = coll->getSortKey(buffer, buffSize, sortkey, 512); 1808 lowerSize = ucol_getBound(sortkey, skSize, UCOL_BOUND_LOWER, 1, lower, 512, &status); 1809 upperSize = ucol_getBound(sortkey, skSiz [all...] |