• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/ICU-531.30/icuSources/test/intltest/

Lines Matching +defs:type +defs:prefix +defs:key

91     static UnicodeString printCollationKey(const CollationKey &key);
103 void parseString(int32_t &start, UnicodeString &prefix, UnicodeString &s, UErrorCode &errorCode);
118 CollationKey &key, IcuTestErrorCode &errorCode);
868 const char *type = NULL; // default type
871 if(type != NULL) {
872 localeWithType.setKeywordValue("collation", type, errorCode);
893 // identify the prefix, and only get the CEs for the prefix+string,
894 // not also for the prefix.
896 // It would help in an unusual case where a contraction starting in the prefix
917 } while((type = types->next(NULL, errorCode)) != NULL);
938 UnicodeString CollationTest::printCollationKey(const CollationKey &key) {
940 const uint8_t *p = key.getByteArray(length);
964 void CollationTest::parseString(int32_t &start, UnicodeString &prefix, UnicodeString &s,
971 prefix = fileLine.tempSubStringBetween(start, pipeIndex).unescape();
972 if(prefix.isEmpty()) {
973 errln("empty prefix on line %d", (int)fileLineNumber);
980 prefix.remove();
1035 UnicodeString prefix;
1036 parseString(start, prefix, s, errorCode);
1037 if(errorCode.isSuccess() && !prefix.isEmpty()) {
1038 errln("prefix string not allowed for test string: on line %d", (int)fileLineNumber);
1306 CollationKey &key, IcuTestErrorCode &errorCode) {
1308 coll->getCollationKey(s, length, key, errorCode);
1317 const uint8_t *keyBytes = key.getByteArray(keyLength);
1320 errln("Collator(%s).getCollationKey() wrote an empty or unterminated key",
1323 infoln(printCollationKey(key));
1344 infoln(printCollationKey(key));
1354 infoln(printCollationKey(key));
1358 // If s contains U+FFFE, check that merged segments make the same key.
1374 // Get the sort key for another segment and merge it into mergedKey.
1398 // key2 is the sort key for the first segment.
1417 infoln(printCollationKey(key));
1422 // Check that internalNextSortKeyPart() makes the same key, with several part sizes.
1439 infoln(printCollationKey(key));
1488 CollationKey key;
1489 if(!getCollationKey(norm, fileLine, s.getBuffer(), s.length(), key, errorCode)) { return FALSE; }
1499 infoln(printCollationKey(key));
1510 infoln(printCollationKey(key));
1524 infoln(printCollationKey(key));
1535 infoln(printCollationKey(key));
1566 infoln(printCollationKey(key));
1577 infoln(printCollationKey(key));
1590 infoln(printCollationKey(key));
1601 infoln(printCollationKey(key));
1620 infoln(printCollationKey(key));
1624 order = prevKey.compareTo(key, errorCode);
1632 infoln(printCollationKey(key));
1639 const uint8_t *bytes = key.getByteArray(keyLength);
1659 infoln(printCollationKey(key));