Home
last modified time | relevance | path

Searched refs:UnicodeString (Results 1 – 25 of 548) sorted by relevance

12345678910>>...22

/external/icu4c/test/intltest/
Ddtptngts.cpp43 UnicodeString patternData[] = { in testAPI()
44 UnicodeString("yM"), // 00 in testAPI()
45 UnicodeString("yMMM"), // 01 in testAPI()
46 UnicodeString("yMd"), // 02 in testAPI()
47 UnicodeString("yMMMd"), // 03 in testAPI()
48 UnicodeString("Md"), // 04 in testAPI()
49 UnicodeString("MMMd"), // 05 in testAPI()
50 UnicodeString("MMMMd"), // 06 in testAPI()
51 UnicodeString("yQQQ"), // 07 in testAPI()
52 UnicodeString("hhmm"), // 08 in testAPI()
[all …]
Dmiscdtfm.cpp27 #define CASE(id,test) case id: name = #test; if (exec) { logln(#test "---"); logln((UnicodeString)"…
46 errcheckln(status, UnicodeString("FAIL: ") + msg + " failed, error " + u_errorName(status)); in failure()
62 UnicodeString dstring [] = { in test4097450()
63 UnicodeString("97"), in test4097450()
64 UnicodeString("1997"), in test4097450()
65 UnicodeString("97"), in test4097450()
66 UnicodeString("1997"), in test4097450()
67 UnicodeString("01"), in test4097450()
68 UnicodeString("2001"), in test4097450()
69 UnicodeString("01"), in test4097450()
[all …]
Ddcfmapts.cpp24 if (exec) logln((UnicodeString)"TestSuite DecimalFormatAPI"); in runIndexedTest()
28 logln((UnicodeString)"DecimalFormat API test---"); logln((UnicodeString)""); in runIndexedTest()
33 … errln((UnicodeString)"ERROR: Could not set default locale, test may not give correct results"); in runIndexedTest()
41 logln((UnicodeString)"DecimalFormat Rounding test---"); in runIndexedTest()
47 logln((UnicodeString)"DecimalFormat Rounding Increment test---"); in runIndexedTest()
53 logln((UnicodeString)"CurrencyPluralInfo API test---"); in runIndexedTest()
71 logln((UnicodeString)"Testing DecimalFormat constructors"); in testAPI()
80 const UnicodeString pattern("#,##0.# FF"); in testAPI()
83 errln((UnicodeString)"ERROR: Could not create DecimalFormat (pattern)"); in testAPI()
90 errln((UnicodeString)"ERROR: Could not create DecimalFormatSymbols (French)"); in testAPI()
[all …]
Dintltest.h46 #pragma map(IntlTest::log( const UnicodeString &message ),"logos390")
52 UnicodeString UCharToUnicodeString(UChar c);
53 UnicodeString Int64ToUnicodeString(int64_t num);
55 UnicodeString operator+(const UnicodeString& left, long num);
56 UnicodeString operator+(const UnicodeString& left, unsigned long num);
57 UnicodeString operator+(const UnicodeString& left, double num);
58 UnicodeString operator+(const UnicodeString& left, char num);
59 UnicodeString operator+(const UnicodeString& left, short num);
60 UnicodeString operator+(const UnicodeString& left, int num);
61 UnicodeString operator+(const UnicodeString& left, unsigned char num);
[all …]
Dicusvtst.cpp93 virtual UnicodeString& debug(UnicodeString& result) const { in debug()
100 virtual UnicodeString& debugClass(UnicodeString& result) const { in debugClass()
113 ICUServiceKey* createKey(const UnicodeString* id, UErrorCode& status) const { in createKey()
117 …virtual ICUServiceFactory* createSimpleFactory(UObject* obj, const UnicodeString& id, UBool visibl… in createSimpleFactory()
154 UnicodeString append(UnicodeString& result, const UObject* obj) in append()
160 const UnicodeString* s; in append()
163 if ((s = dynamic_cast<const UnicodeString*>(obj)) != NULL) { in append()
178 UnicodeString&
179 ICUServiceTest::lrmsg(UnicodeString& result, const UnicodeString& message, const UObject* lhs, cons… in lrmsg()
190 ICUServiceTest::confirmBoolean(const UnicodeString& message, UBool val) in confirmBoolean()
[all …]
Ddtfmrgts.cpp24 #define CASE(id,test) case id: name = #test; if (exec) { logln(#test "---"); logln((UnicodeString)"…
72 logln((UnicodeString) "today: " + today); in Test4029195()
78 UnicodeString pat; in Test4029195()
86 UnicodeString fmtd; in Test4029195()
92 UnicodeString todayS; in Test4029195()
98 logln((UnicodeString)"today date: " + today); in Test4029195()
104 UnicodeString rt; in Test4029195()
133 UnicodeString str; in Test4052408()
140 UnicodeString expected[] = { in Test4052408()
141 (UnicodeString) "", //"ERA_FIELD", in Test4052408()
[all …]
Dtranstst.h374 void expectT(const UnicodeString& id,
375 const UnicodeString& source,
376 const UnicodeString& expectedResult);
378 void expect(const UnicodeString& rules,
379 const UnicodeString& source,
380 const UnicodeString& expectedResult,
383 void expect(const UnicodeString& id,
384 const UnicodeString& rules,
385 const UnicodeString& source,
386 const UnicodeString& expectedResult,
[all …]
Ddtfmttst.cpp167 UnicodeString actualPattern(EXPECTED[i].actualPattern, -1, US_INV); in TestPatterns()
168 UnicodeString expectedPattern(EXPECTED[i].expectedPattern, -1, US_INV); in TestPatterns()
188 UnicodeString pattern = generator->getBestPattern(actualPattern, errorCode); in TestPatterns()
198 UnicodeString expectedLocalPattern(EXPECTED[i].expectedLocalPattern, -1, US_INV); in TestPatterns()
199 UnicodeString actualLocalPattern1; in TestPatterns()
200 UnicodeString actualLocalPattern2; in TestPatterns()
230 SimpleDateFormat *sdf = new SimpleDateFormat((UnicodeString)"zzzz", status); in TestWallyWedel()
259 const UnicodeString* id = ids->snext(status); in TestWallyWedel()
274 UnicodeString dstOffset = (UnicodeString)"" + sign + (hours < 10 ? "0" : "") + in TestWallyWedel()
286 UnicodeString fmtOffset; in TestWallyWedel()
[all …]
/external/icu4c/i18n/unicode/
Ddecimfmt.h724 DecimalFormat(const UnicodeString& pattern,
745 DecimalFormat( const UnicodeString& pattern,
762 DecimalFormat( const UnicodeString& pattern,
822 DecimalFormat( const UnicodeString& pattern,
843 DecimalFormat( const UnicodeString& pattern,
902 virtual UnicodeString& format(double number,
903 UnicodeString& appendTo,
919 virtual UnicodeString& format(double number,
920 UnicodeString& appendTo,
937 virtual UnicodeString& format(double number,
[all …]
Dtzfmt.h242 UnicodeString& getGMTPattern(UnicodeString& pattern) const;
252 void setGMTPattern(const UnicodeString& pattern, UErrorCode& status);
262UnicodeString& getGMTOffsetPattern(UTimeZoneFormatGMTOffsetPatternType type, UnicodeString& patter…
272 …void setGMTOffsetPattern(UTimeZoneFormatGMTOffsetPatternType type, const UnicodeString& pattern, U…
283 UnicodeString& getGMTOffsetDigits(UnicodeString& digits) const;
297 void setGMTOffsetDigits(const UnicodeString& digits, UErrorCode& status);
306 UnicodeString& getGMTZeroFormat(UnicodeString& gmtZeroFormat) const;
315 void setGMTZeroFormat(const UnicodeString& gmtZeroFormat, UErrorCode& status);
346UnicodeString& formatOffsetRFC822(int32_t offset, UnicodeString& result, UErrorCode& status) const;
358UnicodeString& formatOffsetISO8601(int32_t offset, UnicodeString& result, UErrorCode& status) cons…
[all …]
Ddtfmtsym.h190 const UnicodeString* getEras(int32_t& count) const;
198 void setEras(const UnicodeString* eras, int32_t count);
207 const UnicodeString* getEraNames(int32_t& count) const;
215 void setEraNames(const UnicodeString* eraNames, int32_t count);
224 const UnicodeString* getNarrowEras(int32_t& count) const;
232 void setNarrowEras(const UnicodeString* narrowEras, int32_t count);
240 const UnicodeString* getMonths(int32_t& count) const;
249 void setMonths(const UnicodeString* months, int32_t count);
258 const UnicodeString* getShortMonths(int32_t& count) const;
266 void setShortMonths(const UnicodeString* shortMonths, int32_t count);
[all …]
Drbnf.h520 RuleBasedNumberFormat(const UnicodeString& rules, UParseError& perror, UErrorCode& status);
545 RuleBasedNumberFormat(const UnicodeString& rules, const UnicodeString& localizations,
563 RuleBasedNumberFormat(const UnicodeString& rules, const Locale& locale,
592 RuleBasedNumberFormat(const UnicodeString& rules, const UnicodeString& localizations,
662 virtual UnicodeString getRules() const;
678 virtual UnicodeString getRuleSetName(int32_t index) const;
710 virtual UnicodeString getRuleSetDisplayName(int32_t index,
721 virtual UnicodeString getRuleSetDisplayName(const UnicodeString& ruleSetName,
735 virtual UnicodeString& format(int32_t number,
736 UnicodeString& toAppendTo,
[all …]
Dtranslit.h248 UnicodeString ID;
311 typedef Transliterator* (U_EXPORT2 *Factory)(const UnicodeString& ID, Token context);
324 Transliterator(const UnicodeString& ID, UnicodeFilter* adoptedFilter);
349 static Transliterator* createBasicInstance(const UnicodeString& id,
350 const UnicodeString* canon);
470 const UnicodeString& insertion,
541 const UnicodeString* insertion,
718 virtual const UnicodeString& getID(void) const;
729 static UnicodeString& U_EXPORT2 getDisplayName(const UnicodeString& ID,
730 UnicodeString& result);
[all …]
Ddtptngen.h117 UnicodeString getSkeleton(const UnicodeString& pattern, UErrorCode& status);
132 UnicodeString getBaseSkeleton(const UnicodeString& pattern, UErrorCode& status);
154 UDateTimePatternConflict addPattern(const UnicodeString& pattern,
156 UnicodeString& conflictingPattern,
177 void setAppendItemFormat(UDateTimePatternField field, const UnicodeString& value);
187 const UnicodeString& getAppendItemFormat(UDateTimePatternField field) const;
200 void setAppendItemName(UDateTimePatternField field, const UnicodeString& value);
210 const UnicodeString& getAppendItemName(UDateTimePatternField field) const;
231 void setDateTimeFormat(const UnicodeString& dateTimeFormat);
238 const UnicodeString& getDateTimeFormat() const;
[all …]
Dsmpdtfmt.h251 SimpleDateFormat(const UnicodeString& pattern,
275 SimpleDateFormat(const UnicodeString& pattern,
276 const UnicodeString& override,
291 SimpleDateFormat(const UnicodeString& pattern,
316 SimpleDateFormat(const UnicodeString& pattern,
317 const UnicodeString& override,
330 SimpleDateFormat(const UnicodeString& pattern,
343 SimpleDateFormat(const UnicodeString& pattern,
401 virtual UnicodeString& format( Calendar& cal,
402 UnicodeString& appendTo,
[all …]
Dchoicfmt.h181 ChoiceFormat(const UnicodeString& pattern,
198 const UnicodeString* formats,
217 const UnicodeString* formats,
269 virtual void applyPattern(const UnicodeString& pattern,
282 virtual void applyPattern(const UnicodeString& pattern,
293 virtual UnicodeString& toPattern(UnicodeString &pattern) const;
309 const UnicodeString* formatsToCopy,
324 const UnicodeString* formats,
355 virtual const UnicodeString* getFormats(int32_t& count) const;
371 virtual UnicodeString& format(double number,
[all …]
Ddtitvfmt.h235 const UnicodeString& skeleton,
268 const UnicodeString& skeleton,
288 const UnicodeString& skeleton,
328 const UnicodeString& skeleton,
384 virtual UnicodeString& format(const Formattable& obj,
385 UnicodeString& appendTo,
403 UnicodeString& format(const DateInterval* dtInterval,
404 UnicodeString& appendTo,
429 UnicodeString& format(Calendar& fromCalendar,
431 UnicodeString& appendTo,
[all …]
Dtimezone.h177 static TimeZone* U_EXPORT2 createTimeZone(const UnicodeString& ID);
254 static int32_t U_EXPORT2 countEquivalentIDs(const UnicodeString& id);
275 static const UnicodeString U_EXPORT2 getEquivalentID(const UnicodeString& id,
336 static UnicodeString& U_EXPORT2 getCanonicalID(const UnicodeString& id,
337 UnicodeString& canonicalID, UErrorCode& status);
354 static UnicodeString& U_EXPORT2 getCanonicalID(const UnicodeString& id,
355 UnicodeString& canonicalID, UBool& isSystemID, UErrorCode& status);
481 UnicodeString& getID(UnicodeString& ID) const;
496 void setID(const UnicodeString& ID);
560 UnicodeString& getDisplayName(UnicodeString& result) const;
[all …]
/external/icu4c/common/unicode/
Dunistr.h96 #define US_INV icu::UnicodeString::kInvariant
116 # define UNICODE_STRING(cs, _length) icu::UnicodeString(TRUE, (const UChar *)U_DECLARE_UTF16(cs),…
118 # define UNICODE_STRING(cs, _length) icu::UnicodeString(TRUE, (const UChar *)L ## cs, _length)
120 # define UNICODE_STRING(cs, _length) icu::UnicodeString(TRUE, (const UChar *)cs, _length)
122 # define UNICODE_STRING(cs, _length) icu::UnicodeString(cs, _length, US_INV)
246 class U_COMMON_API UnicodeString : public Replaceable
279 inline UBool operator== (const UnicodeString& text) const;
288 inline UBool operator!= (const UnicodeString& text) const;
297 inline UBool operator> (const UnicodeString& text) const;
306 inline UBool operator< (const UnicodeString& text) const;
[all …]
Dnormalizer2.h195 UnicodeString
196 normalize(const UnicodeString &src, UErrorCode &errorCode) const { in normalize()
197 UnicodeString result; in normalize()
214 virtual UnicodeString &
215 normalize(const UnicodeString &src,
216 UnicodeString &dest,
232 virtual UnicodeString &
233 normalizeSecondAndAppend(UnicodeString &first,
234 const UnicodeString &second,
250 virtual UnicodeString &
[all …]
/external/icu4c/i18n/
Dtransreg.h26 class UnicodeString; variable
47 TransliteratorAlias(const UnicodeString& aliasID, const UnicodeSet* compoundFilter);
52 TransliteratorAlias(const UnicodeString& ID, const UnicodeString& idBlocks,
59 TransliteratorAlias(const UnicodeString& theID,
60 const UnicodeString& rules,
110 UnicodeString ID;
111 UnicodeString aliasesOrRules;
175 Transliterator* get(const UnicodeString& ID,
194 Transliterator* reget(const UnicodeString& ID,
213 void put(const UnicodeString& ID,
[all …]
Dtridpars.h68 UnicodeString source; // not null
69 UnicodeString target; // not null
70 UnicodeString variant; // may be null
71 UnicodeString filter; // may be null
73 Specs(const UnicodeString& s, const UnicodeString& t,
74 const UnicodeString& v, UBool sawS,
75 const UnicodeString& f);
100 UnicodeString canonID;
101 UnicodeString basicID;
102 UnicodeString filter;
[all …]
Dlocdspnm.cpp70 UnicodeString& get(const char* tableKey, const char* itemKey,
71 UnicodeString& result) const;
72 UnicodeString& get(const char* tableKey, const char* subTableKey, const char* itemKey,
73 UnicodeString& result) const;
75 UnicodeString& getNoFallback(const char* tableKey, const char* itemKey,
76 UnicodeString &result) const;
77 UnicodeString& getNoFallback(const char* tableKey, const char* subTableKey, const char* itemKey,
78 UnicodeString &result) const;
81 inline UnicodeString &
82 ICUDataTable::get(const char* tableKey, const char* itemKey, UnicodeString& result) const { in get()
[all …]
/external/icu4c/common/
Dserv.h72 const UnicodeString _id;
84 ICUServiceKey(const UnicodeString& id);
96 virtual const UnicodeString& getID() const;
105 virtual UnicodeString& canonicalID(UnicodeString& result) const;
114 virtual UnicodeString& currentID(UnicodeString& result) const;
130 virtual UnicodeString& currentDescriptor(UnicodeString& result) const;
150 virtual UBool isFallbackOf(const UnicodeString& id) const;
159 virtual UnicodeString& prefix(UnicodeString& result) const;
170 static UnicodeString& parsePrefix(UnicodeString& result);
181 static UnicodeString& parseSuffix(UnicodeString& result);
[all …]
Dservloc.h67 UnicodeString _primaryID;
68 UnicodeString _fallbackID;
69 UnicodeString _currentID;
79 static LocaleKey* createWithCanonicalFallback(const UnicodeString* primaryID,
80 const UnicodeString* canonicalFallbackID,
86 static LocaleKey* createWithCanonicalFallback(const UnicodeString* primaryID,
87 const UnicodeString* canonicalFallbackID,
98 LocaleKey(const UnicodeString& primaryID,
99 const UnicodeString& canonicalPrimaryID,
100 const UnicodeString* canonicalFallbackID,
[all …]

12345678910>>...22