Lines Matching refs:UnicodeString
28 int32_t getInt(UnicodeString str)
69 UnicodeString trans="Latin-Greek";
70 UnicodeString ID;
86 ID = (UnicodeString) Transliterator::getAvailableID(i);
99 ID=(UnicodeString)Transliterator::getAvailableID(i);
100 if(ID != (UnicodeString)Transliterator::getAvailableID(0)){
151 UnicodeString TransID[]={
216 UnicodeString dispNames[]= {
232 UnicodeString name="";
234 UnicodeString message;
270 UnicodeString Data[]={
272 "Any-Hex", "hello", UnicodeString("\\u0068\\u0065\\u006C\\u006C\\u006F", "") ,
273 "Hex-Any", UnicodeString("\\u0068\\u0065\\u006C\\u006C\\u006F", ""), "hello" ,
275 "Latin-Devanagari",UnicodeString("kra ksha khra gra cra dya dhya",""), CharsToUnicodeString("\\u0915\\u094D\\u0930 \\u0915\\u094D\\u0936 \\u0916\\u094D\\u0930 \\u0917\\u094D\\u0930 \\u091a\\u094D\\u0930 \\u0926\\u094D\\u092F \\u0927\\u094D\\u092F") ,
284 UnicodeString gotResult;
285 UnicodeString temp;
286 UnicodeString message;
302 message=t->getID() + "->transliterate(UnicodeString, UnicodeString) for\n\t Source:" + prettify(Data[i+1]);
321 UnicodeString Data2[]={
323 "Any-Hex", "hello! How are you?", "0", "5", UnicodeString("\\u0068\\u0065\\u006C\\u006C\\u006F", ""), UnicodeString("\\u0068\\u0065\\u006C\\u006C\\u006F! How are you?", "") ,
324 "Any-Hex", "hello! How are you?", "7", "12", UnicodeString("\\u0048\\u006F\\u0077\\u0020\\u0061", ""), UnicodeString("hello! \\u0048\\u006F\\u0077\\u0020\\u0061re you?", ""),
333 UnicodeString gotResBuf;
334 UnicodeString temp;
350 doTest(t->getID() + ".transliterate(UnicodeString, int32_t, int32_t, UnicodeString):(" + start + "," + limit + ") for \n\t source: " + prettify(Data2[i+1]), gotResBuf, Data2[i+4]);
382 UnicodeString rs="This is the replaceable String";
383 UnicodeString Data[] = {
385 "2", "3", UnicodeString("Th\\u0069s is the replaceable String", ""),
386 "21", "23", UnicodeString("Th\\u0069s is the repl\\u0061\\u0063eable String", ""),
387 "14", "17", UnicodeString("Th\\u0069s is t\\u0068\\u0065\\u0020repl\\u0061\\u0063eable String", ""),
390 UnicodeString message;
418 UnicodeString context;
421 context += (UnicodeString)" at " + parseError.preContext;
424 context += (UnicodeString)" | " + parseError.postContext;
426 errln((UnicodeString)"FAIL: can't create Any-Hex, " +
427 (UnicodeString)u_errorName(status) + context);
431 UnicodeString rs= "Transliterate this-''";
432 UnicodeString insertion="abc";
433 UnicodeString expected=UnicodeString("Transliterate this-'\\u0061\\u0062\\u0063'", "");
436 errln("FAIL: " + t->getID()+ ".translitere(Replaceable, int[], UnicodeString, UErrorCode)-->" + (UnicodeString)u_errorName(status));
438 UnicodeString message="transliterate";
455 errln("FAIL: invalid index values didn't throw U_ILLEGAL_ARGUMENT_ERROR throw" + (UnicodeString)u_errorName(status));
461 UnicodeString Data[]={
463 "a", UnicodeString("\\u0061", "") ,
464 "bbb", UnicodeString("\\u0061\\u0062\\u0062\\u0062", "") ,
465 "ca", UnicodeString("\\u0061\\u0062\\u0062\\u0062\\u0063\\u0061", "") ,
466 " ", UnicodeString("\\u0061\\u0062\\u0062\\u0062\\u0063\\u0061\\u0020", "") ,
467 "", UnicodeString("\\u0061\\u0062\\u0062\\u0062\\u0063\\u0061\\u0020", "") ,
469 "a", UnicodeString("\\u0061", "") ,
470 "b", UnicodeString("\\u0061\\u0062", "") ,
471 "z", UnicodeString("\\u0061\\u0062\\u007A", "") ,
472 "", UnicodeString("\\u0061\\u0062\\u007A", "")
485 UnicodeString s;
487 logln("Testing transliterate(Replaceable, int32_t, UnicodeString, UErrorCode)");
489 UnicodeString log;
494 errln("FAIL: " + t->getID()+ ".transliterate(Replaceable, int32_t[], UnicodeString, UErrorCode)-->" + (UnicodeString)u_errorName(status));
511 UnicodeString log;
517 errln("FAIL: " + t->getID()+ ".transliterate(Replaceable, int32_t[], UChar, UErrorCode)-->" + (UnicodeString)u_errorName(status));
531 UnicodeString Data[]={
534 "abc", UnicodeString("Initial String: add-\\u0061\\u0062\\u0063-", ""), "19", "20", "20",
535 "a", UnicodeString("In\\u0069\\u0061tial String: add-\\u0061\\u0062\\u0063-", ""), "2", "3", "2" ,
536 "b", UnicodeString("\\u0062In\\u0069\\u0061tial String: add-\\u0061\\u0062\\u0063-", ""), "0", "0", "0" ,
537 "", UnicodeString("\\u0062In\\u0069\\u0061tial String: add-\\u0061\\u0062\\u0063-", ""), "0", "0", "0" ,
549 UnicodeString rs;
550 UnicodeString dataStr;
551 logln("Testing transliterate(Replaceable, int32_t, UnicodeString, UErrorCode)");
580 UnicodeString s="This is the main string";
581 UnicodeString Data[] = {
583 "1", "3", "2", UnicodeString("Th\\u0069s is the main string", ""),
584 "20", "21", "20", UnicodeString("Th\\u0069s is the mai\\u006E string", "")
598 UnicodeString log;
604 errln("FAIL: " + t->getID()+ ".transliterate(Replaceable, int32_t[], UErrorCode)-->" + (UnicodeString)u_errorName(status));
617 UnicodeString s("Transliterate using null transliterator");
622 UnicodeString replaceable=s;
627 doTest((UnicodeString)"nulTrans->transliterate", replaceable, s);
639 doTest((UnicodeString)"NullTransliterator->handleTransliterate", replaceable, s);
721 virtual UnicodeString& toPattern(UnicodeString& result,
742 virtual UnicodeString& toPattern(UnicodeString& result,
763 virtual UnicodeString& toPattern(UnicodeString& result,
790 UnicodeString got, temp, message;
791 UnicodeString data="ABCabcbbCBa";
798 UnicodeString exp=UnicodeString("A\\u0042Ca\\u0062c\\u0062\\u0062C\\u0042a", "");
811 exp=UnicodeString("\\u0041\\u0042\\u0043\\u0061\\u0062\\u0063\\u0062\\u0062\\u0043\\u0042\\u0061", "");
820 exp=UnicodeString("\\u0068eell\\u006Fe", "");
827 exp=UnicodeString("\\u0061\\u0072e\\u0020\\u0077ell", "");
834 exp=UnicodeString("\\u0068o\\u002C\\u0020wow\\u0021", "");
841 exp=UnicodeString("ow\\u006C", "");
852 void TransliteratorAPITest::keyboardAux(Transliterator *t, UnicodeString DATA[], UnicodeString& s, int32_t begin, int32_t end) {
856 UnicodeString log;
864 errln("FAIL: " + t->getID()+ ".transliterate(Replaceable, int32_t[], UnicodeString, UErrorCode)-->" + (UnicodeString)u_errorName(status));
876 void TransliteratorAPITest::displayOutput(const UnicodeString& got, const UnicodeString& expected, UnicodeString& log, UTransPosition& index){
878 UnicodeString a, b, c, d, e;
901 void TransliteratorAPITest::doTest(const UnicodeString& message, const UnicodeString& result, const UnicodeString& expected){
903 logln((UnicodeString)"Ok: " + prettify(message) + " passed \"" + prettify(expected) + "\"");
905 dataerrln((UnicodeString)"FAIL:" + message + " failed Got-->" + prettify(result)+ ", Expected--> " + prettify(expected) );
924 UnicodeString id;
925 UnicodeString clonedId;
939 UnicodeString rules;
940 UnicodeString clonedRules;