/external/icu4c/test/intltest/ |
plurfmts.cpp | 52 UnicodeString otherPattern = UnicodeString("other{#}"); 53 UnicodeString message=UnicodeString("ERROR: PluralFormat basic test"); 91 UnicodeString us = UnicodeString(""); 145 pf->parseObject((UnicodeString)"",*f,*pp); 159 UnicodeString patternTestData[PLURAL_PATTERN_DATA] = { 165 UnicodeString patternOddTestResult[PLURAL_PATTERN_DATA] = { 171 UnicodeString patternEvenTestResult[PLURAL_PATTERN_DATA] = [all...] |
uobjtest.cpp | 52 dataerrln(UnicodeString(#c " - new " #x " - got err status ") + UnicodeString(u_errorName(status))); \ 59 dataerrln(UnicodeString(#c " - " #f " - got err status ") + UnicodeString(u_errorName(status))); \ 66 dataerrln(UnicodeString(#c " - " #f " - got err status ") + UnicodeString(u_errorName(status))); \ 71 delete testClass(Transliterator::createInstance(UnicodeString(t), UTRANS_FORWARD,parseError,status), #c, "Transliterator: " #t, c ::getStaticClassID()); \ 73 dataerrln(UnicodeString(#c " - Transliterator: " #t " - got err status ") + UnicodeString(u_errorName(status))); \ 80 dataerrln(UnicodeString(#c " - new " #x " - got err status ") + UnicodeString(u_errorName(status))); [all...] |
astrotst.cpp | 23 #define CASE(id,test) case id: name = #test; if (exec) { logln(#test "---"); logln((UnicodeString)""); test(); } break 100 logln((UnicodeString)"Sun position is " + result.toString() + (UnicodeString)"; " /* + result.toHmsString()*/ + " Sun longitude is " + longitude ); 124 logln((UnicodeString)"Moon position is " + result.toString() + (UnicodeString)"; " /* + result->toHmsString()*/); 140 logln((UnicodeString)"result is " + result.toString() + (UnicodeString)"; " /* + result.toHmsString()*/ ); 180 logln((UnicodeString)" date: " + anAstro->getTime()); 181 logln((UnicodeString)" cent: " + anAstro->getJulianCentury()); 182 logln((UnicodeString)" gw sidereal: " + anAstro->getGreenwichSidereal()) [all...] |
tzfmttst.cpp | 43 SimpleTimeZone unknownZone(-31415, (UnicodeString)"Etc/Unknown"); 56 Calendar *cal = Calendar::createInstance(TimeZone::createTimeZone((UnicodeString)"UTC"), status); 110 UnicodeString localGMTString; 111 SimpleDateFormat gmtFmt(UnicodeString("ZZZZ"), LOCALES[locidx], status); 121 SimpleDateFormat *sdf = new SimpleDateFormat((UnicodeString)PATTERNS[patidx], LOCALES[locidx], status); 123 dataerrln((UnicodeString)"new SimpleDateFormat failed for pattern " + 130 const UnicodeString *tzid; 135 UnicodeString tzstr; 161 UnicodeString outtzid; 166 errln((UnicodeString)"Failed to get offsets from time zone" + *tzid) [all...] |
transtst.cpp | 218 UnicodeString name; 220 const UnicodeString& id = *avail->snext(ec); 225 UnicodeString id2 = Transliterator::getAvailableID(i); 227 errln(UnicodeString("FAIL: getAvailableID(") + 232 errln(UnicodeString("FAIL: getAvailableID(") + 245 if (id.compare((UnicodeString)"Thai-Latin") != 0) 247 dataerrln(UnicodeString("FAIL: Couldn't create ") + id + 263 logln(UnicodeString("OK: ") + name + " (" + id + ")"); 266 UnicodeString rules; 271 errln(UnicodeString("FAIL: ") + id [all...] |
incaltst.h | 42 void simpleTest(const Locale& loc, const UnicodeString& expect, UDate expectDate, UErrorCode& status); 46 static UnicodeString value(Calendar* calendar);
|
restest.h | 48 void record_pass(UnicodeString passMessage); 49 void record_fail(UnicodeString errMessage);
|
thcoll.cpp | 94 UnicodeString lastWord, word; 102 UnicodeString str; 103 logln((UnicodeString)"Word " + wordCount + ": " + IntlTest::prettify(word, str)); 115 logln((UnicodeString)"Words checked: " + wordCount); 141 UnicodeString lastWord, word; 149 UnicodeString str; 150 logln((UnicodeString)"Word " + wordCount + ": " + IntlTest::prettify(word, str)); 159 UnicodeString str; 160 UnicodeString msg = 161 UnicodeString("--------------------------------------------\n" [all...] |
numrgts.h | 54 void roundingTest(DecimalFormat *df, double x, UnicodeString& expected); 98 UBool failure(UErrorCode status, const UnicodeString& msg, UBool possibleDataError=FALSE); 99 UBool failure(UErrorCode status, const UnicodeString& msg, const char *l, UBool possibleDataError=FALSE); 100 UBool failure(UErrorCode status, const UnicodeString& msg, const Locale& l, UBool possibleDataError=FALSE);
|
regextst.h | 56 virtual void regex_find(const UnicodeString &pat, const UnicodeString &flags, 57 const UnicodeString &input, const char *srcPath, int32_t line); 63 static const char* extractToAssertBuf(const UnicodeString& message);
|
tztest.h | 104 static UnicodeString& formatOffset(int32_t offset, UnicodeString& rv); 105 static UnicodeString& formatTZID(int32_t offset, UnicodeString& rv);
|
callimts.cpp | 56 UnicodeString theDate; 66 logln(UnicodeString(" ") + theDate + " " + CalendarTest::calToStr(*cal)); 68 logln(UnicodeString("OK: got ") + dt + ", wanted " + millis); 69 logln(UnicodeString(" ") + theDate); 181 errln((UnicodeString)"FAIL: Wrong calendar type: " + cal->getType() 217 errln((UnicodeString)"FAIL: [" + calType + "] Maximum value of DAY_OF_YEAR is too big: " 222 errln((UnicodeString)"FAIL: [" + calType + "] Least maximum value of DAY_OF_YEAR is too small: " 230 errln((UnicodeString)"FAIL: [" + calType + "] Maximum value of WEEK_OF_YEAR is too big: " 235 errln((UnicodeString)"FAIL: [" + calType + "] Least maximum value of WEEK_OF_YEAR is too small: " 242 errln((UnicodeString)"FAIL: [" + calType + "] Maximum value of DAY_OF_WEEK_IN_MONTH is incorrect: [all...] |
/libcore/luni/src/main/native/ |
libcore_icu_NativeDecimalFormat.cpp | 58 UnicodeString groupingSeparator(groupingSeparator0); 61 result->setSymbol(DecimalFormatSymbols::kCurrencySymbol, currencySymbol.unicodeString()); 62 result->setSymbol(DecimalFormatSymbols::kDecimalSeparatorSymbol, UnicodeString(decimalSeparator)); 63 result->setSymbol(DecimalFormatSymbols::kDigitSymbol, UnicodeString(digit)); 64 result->setSymbol(DecimalFormatSymbols::kExponentialSymbol, exponentSeparator.unicodeString()); 67 result->setSymbol(DecimalFormatSymbols::kInfinitySymbol, infinity.unicodeString()); 68 result->setSymbol(DecimalFormatSymbols::kIntlCurrencySymbol, internationalCurrencySymbol.unicodeString()); 69 result->setSymbol(DecimalFormatSymbols::kMinusSignSymbol, UnicodeString(minusSign)); 70 result->setSymbol(DecimalFormatSymbols::kMonetarySeparatorSymbol, UnicodeString(monetaryDecimalSeparator)); 71 result->setSymbol(DecimalFormatSymbols::kNaNSymbol, nan.unicodeString()); [all...] |
/external/icu4c/i18n/ |
fmtable_cnv.cpp | 30 // This API is useless. The API that takes a UnicodeString is actually just as good. 37 fValue.fString = new UnicodeString(stringToCopy);
|
dtptngen.cpp | 228 //static const UnicodeString repeatedPattern=UnicodeString(repeatedPatterns); 392 UnicodeString 393 DateTimePatternGenerator::getSkeleton(const UnicodeString& pattern, UErrorCode& 399 UnicodeString 400 DateTimePatternGenerator::getBaseSkeleton(const UnicodeString& pattern, UErrorCode& /*status*/) { 407 UnicodeString dfPattern; 408 UnicodeString conflictingString; 446 DateTimePatternGenerator::hackTimes(const UnicodeString& hackPattern, UErrorCode& status) { 447 UnicodeString conflictingString [all...] |
currfmt.cpp | 54 UnicodeString& CurrencyFormat::format(const Formattable& obj, 55 UnicodeString& appendTo, 62 void CurrencyFormat::parseObject(const UnicodeString& source,
|
currfmt.h | 71 virtual UnicodeString& format(const Formattable& obj, 72 UnicodeString& appendTo, 79 virtual void parseObject(const UnicodeString& source,
|
selfmt.cpp | 44 SelectFormat::SelectFormat(const UnicodeString& pat, 57 SelectFormat::applyPattern(const UnicodeString& newPattern, UErrorCode& status) { 68 UnicodeString& 70 UnicodeString& appendTo, 85 UnicodeString& 86 SelectFormat::format(const UnicodeString& keyword, 87 UnicodeString& appendTo, 114 UnicodeString& 115 SelectFormat::toPattern(UnicodeString& appendTo) { 126 const UnicodeString& keyword, UErrorCode& ec) [all...] |
/external/icu4c/samples/translit/answers/ |
unaccent.cpp | 27 UnicodeString str(c); 44 UnicodeString str("a");
|
/external/icu4c/samples/translit/ |
unaccent.cpp | 29 UnicodeString str(c); 46 UnicodeString str("a");
|
/external/icu4c/common/ |
util.h | 31 * Append a number to the given UnicodeString in the given radix. 43 static UnicodeString& appendNumber(UnicodeString& result, int32_t n, 50 * This method should really be in UnicodeString (or similar). For 61 static UBool escapeUnprintable(UnicodeString& result, UChar32 c); 76 // static int32_t quotedIndexOf(const UnicodeString& text, 88 static int32_t skipWhitespace(const UnicodeString& str, int32_t& pos, 124 static UBool parseChar(const UnicodeString& id, int32_t& pos, UChar ch); 145 static int32_t parsePattern(const UnicodeString& rule, int32_t pos, int32_t limit, 146 const UnicodeString& pattern, int32_t* parsedInts) [all...] |
normalizer2.cpp | 39 Normalizer2::getRawDecomposition(UChar32, UnicodeString &) const { 59 virtual UnicodeString & 60 normalize(const UnicodeString &src, 61 UnicodeString &dest, 72 virtual UnicodeString & 73 normalizeSecondAndAppend(UnicodeString &first, 74 const UnicodeString &second, 85 virtual UnicodeString & 86 append(UnicodeString &first, 87 const UnicodeString &second [all...] |
/external/icu4c/samples/msgfmt/answers/ |
main_0.cpp | 17 UnicodeString str;
|
main_1.cpp | 16 UnicodeString str;
|
/external/icu4c/samples/datefmt/answers/ |
main_0.cpp | 21 TimeZone* createZone(const UnicodeString& id) { 22 UnicodeString str; 39 UnicodeString str;
|