Home | History | Annotate | Download | only in intltest

Lines Matching refs:UnicodeString

27 //  02/10/98    damiba      Added test for compare(UnicodeString&, UnicodeString&, int32_t)
53 errln(UnicodeString("ERROR : ") + message);
146 UnicodeString abau=UNICODE_STRING_SIMPLE("\\x61\\x62\\xe4").unescape();
147 UnicodeString abss=UNICODE_STRING_SIMPLE("\\x61\\x62\\xdf").unescape();
178 UnicodeString name;
182 doAssert((name == UnicodeString("Englisch (Vereinigte Staaten)")), "getDisplayName failed");
186 doAssert((name == UnicodeString("English (United States)")), "getDisplayName failed");
192 doAssert((name == UnicodeString("English (United States)")), "getDisplayName failed if this is an English machine");
298 UnicodeString ruleset1("&9 < a, A < b, B < c, C; ch, cH, Ch, CH < d, D, e, E");
299 UnicodeString ruleset2("&9 < a, A < b, B < c, C < d, D, e, E");
342 UnicodeString rule1 = col1->getRules();
343 UnicodeString rule2 = col2->getRules();
344 UnicodeString rule3 = col3->getRules();
356 UnicodeString rule4 = col4->getRules();
380 UnicodeString rules;
444 UnicodeString test1("abCda");
445 UnicodeString test2("abcda");
520 UnicodeString test1("Abcda");
521 UnicodeString test2("abcda");
554 UnicodeString test1("Abcda"), test2("abcda");
661 UnicodeString testString1("XFILE What subset of all possible test cases has the highest probability of detecting the most errors?");
662 UnicodeString testString2("Xf_ile What subset of all possible test cases has the lowest probability of detecting the least errors?");
817 errln((UnicodeString)"Expected NULLORDER got" + position);
824 iterator1->setText((UnicodeString)"hello there", success);
846 UnicodeString ruleset1("< a, A < b, B < c, C; ch, cH, Ch, CH < d, D, e, E");
847 UnicodeString ruleset2("< a, A < b, B < c, C < d, D, e, E");
879 const UnicodeString& defRules = ((RuleBasedCollator*)col3)->getRules();
933 UnicodeString *ruleset = new UnicodeString("< a, A < b, B < c, C < d, D, e, E");
945 UnicodeString first((UChar)0x0061);
946 UnicodeString second((UChar)0x0062);
947 UnicodeString copiedEnglishRules(((RuleBasedCollator*)col1)->getRules());
958 errln(UnicodeString("English rule difference. ")
959 + copiedEnglishRules + UnicodeString("\ngetRules=") + ((RuleBasedCollator*)col2)->getRules());
966 errln(UnicodeString("English rule difference. ")
967 + copiedEnglishRules + UnicodeString("\ngetRules=") + col3->getRules());
985 UnicodeString test1("Abcda"), test2("abcda");
1043 UnicodeString dispName;
1044 logln(UnicodeString("Locale name: ")
1045 + UnicodeString(list[i].getName())
1046 + UnicodeString(" , the display name is : ")
1047 + UnicodeString(list[i].getDisplayName(dispName)));
1056 const UnicodeString* locStr;
1067 logln(UnicodeString("Locale name is: ") + *locStr);
1080 logln(UnicodeString("Locale name is: ") + UnicodeString(locCStr));
1176 UnicodeString strtest1(test1);
1178 UnicodeString strtest2(test2);
1180 UnicodeString strtest3(test3);
1263 UnicodeString rule("&a < ab < c/aba < d < z < ch");
1269 UnicodeString str(ch);
1380 UnicodeString name;
1381 UnicodeString result;
1523 uint32_t newerVarTop = coll->setVariableTop(UnicodeString(vt, 1), status);
1526 errln("Didn't set vartop properly from UnicodeString!\n");
1789 UnicodeString buff;
1793 buff = UnicodeString(setTest[i].rules, "").unescape();
1801 buff = UnicodeString(setTest[i].tests[j], "").unescape();
1845 UnicodeString str("testing");
1866 virtual EComparisonResult compare(const UnicodeString& source,
1867 const UnicodeString& target) const
1872 virtual EComparisonResult compare(const UnicodeString& source,
1873 const UnicodeString& target,
1888 virtual UCollationResult compare(const UnicodeString& source,
1889 const UnicodeString& target,
1891 virtual UCollationResult compare(const UnicodeString& source,
1892 const UnicodeString& target,
1900 virtual CollationKey& getCollationKey(const UnicodeString& source,
1920 virtual uint32_t setVariableTop(const UnicodeString varTop,
1925 virtual int32_t getSortKey(const UnicodeString& source,
1952 UCollationResult TestCollator::compare(const UnicodeString& source,
1953 const UnicodeString& target,
1963 UCollationResult TestCollator::compare(const UnicodeString& source,
1964 const UnicodeString& target,
1981 UnicodeString s(source, sourceLength);
1982 UnicodeString t(target, targetLength);
1986 CollationKey& TestCollator::getCollationKey(const UnicodeString& source,
2004 //s tack allocation used since collationkey does not keep the unicodestring
2005 UnicodeString str(source, sourceLength);
2009 int32_t TestCollator::getSortKey(const UnicodeString& source, uint8_t* result,
2022 UnicodeString str(source, sourceLength);
2093 uint32_t TestCollator::setVariableTop(const UnicodeString varTop,
2145 UnicodeString abc("abc", 3);
2146 UnicodeString bcd("bcd", 3);
2156 UnicodeString keyarray(bytes, length, NULL, status);
2174 UnicodeString displayName;
2178 UnicodeString a("a");
2179 UnicodeString b("b");
2197 UnicodeString first((UChar)0x0061);
2198 UnicodeString second((UChar)0);
2199 RuleBasedCollator *coll = new RuleBasedCollator(UnicodeString(buf, len), status);
2260 void CollationAPITest::dump(UnicodeString msg, RuleBasedCollator* c, UErrorCode& status) {