/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
H A D | TestMessageFormat.java | 38 import com.ibm.icu.text.MessageFormat; 146 MessageFormat fmt = new MessageFormat(pattern); in TestBug2() 149 errln("MessageFormat pattern creation failed."); in TestBug2() 202 MessageFormat form = null; in TestPattern() 204 form = new MessageFormat(testCases[i], Locale.US); in TestPattern() 206 errln("MessageFormat for " + testCases[i] + " creation failed."); in TestPattern() 235 // errln("MessageFormat failed test #5"); in TestPattern() 236 // logln(String("MessageFormat failed test #5 with error code ")+(int)success); in TestPattern() 249 // errln("MessageFormat faile in TestPattern() [all...] |
H A D | MessageRegressionTest.java | 20 * @summary Regression tests for MessageFormat and associated classes 53 import com.ibm.icu.text.MessageFormat; 60 * Null exception when formatting pattern with MessageFormat 73 MessageFormat messageFormatter = new MessageFormat(""); in Test4074764() 81 errln("MessageFormat with one param test failed."); in Test4074764() 88 errln("MessageFormat with no param test failed."); in Test4074764() 97 //we get an NullPointerException in MessageFormat.java(617) in Test4074764() 99 //we get an StringArrayIndexOutOfBoundsException in MessageFormat.java(614) in Test4074764() 109 * MessageFormat [all...] |
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/ |
H A D | TestMessageFormat.java | 39 import ohos.global.icu.text.MessageFormat; 149 MessageFormat fmt = new MessageFormat(pattern); in TestBug2() 152 errln("MessageFormat pattern creation failed."); in TestBug2() 205 MessageFormat form = null; in TestPattern() 207 form = new MessageFormat(testCases[i], Locale.US); in TestPattern() 209 errln("MessageFormat for " + testCases[i] + " creation failed."); in TestPattern() 238 // errln("MessageFormat failed test #5"); in TestPattern() 239 // logln(String("MessageFormat failed test #5 with error code ")+(int)success); in TestPattern() 252 // errln("MessageFormat faile in TestPattern() [all...] |
H A D | MessageRegressionTest.java | 21 * @summary Regression tests for MessageFormat and associated classes 54 import ohos.global.icu.text.MessageFormat; 63 * Null exception when formatting pattern with MessageFormat 76 MessageFormat messageFormatter = new MessageFormat(""); in Test4074764() 84 errln("MessageFormat with one param test failed."); in Test4074764() 91 errln("MessageFormat with no param test failed."); in Test4074764() 100 //we get an NullPointerException in MessageFormat.java(617) in Test4074764() 102 //we get an StringArrayIndexOutOfBoundsException in MessageFormat.java(614) in Test4074764() 112 * MessageFormat [all...] |
/third_party/icu/icu4c/source/i18n/ |
H A D | msgfmt.cpp | 55 // class MessageFormat 85 // MessageFormat Type List Number, Date, Time or Choice 162 return icu::MessageFormat::equalFormats(key1.pointer, key2.pointer); in equalFormatsForHash() 170 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(MessageFormat) 231 // Creates a MessageFormat instance based on the pattern. 233 MessageFormat::MessageFormat(const UnicodeString& pattern, in MessageFormat() function in MessageFormat 254 MessageFormat::MessageFormat(const UnicodeString& pattern, in MessageFormat() function in MessageFormat 276 MessageFormat function in MessageFormat 299 MessageFormat::MessageFormat(const MessageFormat& that) MessageFormat() function in MessageFormat [all...] |
H A D | tmutfmt.cpp | 205 // the value is a pair of MessageFormat* in parseObject() 206 MessageFormat** patterns = (MessageFormat**)valueTok.pointer; in parseObject() 209 MessageFormat* pattern = patterns[style]; in parseObject() 426 LocalPointer<MessageFormat> messageFormat(new MessageFormat( 431 MessageFormat** formatters = 432 (MessageFormat**)countToPatterns->get(pluralCountUniStr); 434 LocalMemory<MessageFormat *> localFormatters( 435 (MessageFormat **)uprv_mallo [all...] |
H A D | umsg.cpp | 15 * This is a C wrapper to MessageFormat C++ API. 40 * MessageFormat. It is never instantiated; it exists only for C++ 45 static const Formattable::Type* getArgTypeList(const MessageFormat& m, 47 static UBool hasArgTypeConflicts(const MessageFormat& m) { in hasArgTypeConflicts() 52 MessageFormatAdapter::getArgTypeList(const MessageFormat& m, in getArgTypeList() 251 MessageFormat* retVal = new MessageFormat(patString,Locale(locale),*parseError,*status); in umsg_open() 269 delete (MessageFormat*) format; in umsg_close() 284 UMessageFormat retVal = (UMessageFormat)((MessageFormat*)fmt)->clone(); in umsg_clone() 299 ((MessageFormat*)fm in umsg_setLocale() [all...] |
/third_party/node/deps/icu-small/source/i18n/ |
H A D | msgfmt.cpp | 55 // class MessageFormat 85 // MessageFormat Type List Number, Date, Time or Choice 162 return icu::MessageFormat::equalFormats(key1.pointer, key2.pointer); in equalFormatsForHash() 170 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(MessageFormat) 231 // Creates a MessageFormat instance based on the pattern. 233 MessageFormat::MessageFormat(const UnicodeString& pattern, in MessageFormat() function in MessageFormat 254 MessageFormat::MessageFormat(const UnicodeString& pattern, in MessageFormat() function in MessageFormat 276 MessageFormat function in MessageFormat 299 MessageFormat::MessageFormat(const MessageFormat& that) MessageFormat() function in MessageFormat [all...] |
H A D | tmutfmt.cpp | 209 // the value is a pair of MessageFormat* in parseObject() 210 MessageFormat** patterns = (MessageFormat**)valueTok.pointer; in parseObject() 213 MessageFormat* pattern = patterns[style]; in parseObject() 430 LocalPointer<MessageFormat> messageFormat(new MessageFormat( 435 MessageFormat** formatters = 436 (MessageFormat**)countToPatterns->get(pluralCountUniStr); 438 LocalMemory<MessageFormat *> localFormatters( 439 (MessageFormat **)uprv_mallo [all...] |
H A D | umsg.cpp | 15 * This is a C wrapper to MessageFormat C++ API. 40 * MessageFormat. It is never instantiated; it exists only for C++ 45 static const Formattable::Type* getArgTypeList(const MessageFormat& m, 47 static UBool hasArgTypeConflicts(const MessageFormat& m) { in hasArgTypeConflicts() 52 MessageFormatAdapter::getArgTypeList(const MessageFormat& m, in getArgTypeList() 251 MessageFormat* retVal = new MessageFormat(patString,Locale(locale),*parseError,*status); in umsg_open() 269 delete (MessageFormat*) format; in umsg_close() 284 UMessageFormat retVal = (UMessageFormat)((MessageFormat*)fmt)->clone(); in umsg_clone() 299 ((MessageFormat*)fm in umsg_setLocale() [all...] |
/third_party/skia/third_party/externals/icu/source/i18n/ |
H A D | msgfmt.cpp | 55 // class MessageFormat 85 // MessageFormat Type List Number, Date, Time or Choice 162 return icu::MessageFormat::equalFormats(key1.pointer, key2.pointer); in equalFormatsForHash() 170 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(MessageFormat) 231 // Creates a MessageFormat instance based on the pattern. 233 MessageFormat::MessageFormat(const UnicodeString& pattern, in MessageFormat() function in MessageFormat 254 MessageFormat::MessageFormat(const UnicodeString& pattern, in MessageFormat() function in MessageFormat 276 MessageFormat function in MessageFormat 299 MessageFormat::MessageFormat(const MessageFormat& that) MessageFormat() function in MessageFormat [all...] |
H A D | tmutfmt.cpp | 205 // the value is a pair of MessageFormat* in parseObject() 206 MessageFormat** patterns = (MessageFormat**)valueTok.pointer; in parseObject() 209 MessageFormat* pattern = patterns[style]; in parseObject() 426 LocalPointer<MessageFormat> messageFormat(new MessageFormat( in put() 431 MessageFormat** formatters = in put() 432 (MessageFormat**)countToPatterns->get(pluralCountUniStr); in put() 434 LocalMemory<MessageFormat *> localFormatters( in put() 435 (MessageFormat **)uprv_mallo in put() [all...] |
/third_party/icu/icu4c/source/test/intltest/ |
H A D | tmsgfmt.cpp | 188 LocalPointer<MessageFormat> fmt(new MessageFormat(pattern, status)); in testBug2() 190 dataerrln("MessageFormat pattern creation failed. - %s", u_errorName(status)); in testBug2() 195 errln("MessageFormat::toPattern() failed."); in testBug2() 302 LocalPointer<MessageFormat> form; in PatternTest() 305 form.adoptInstead(new MessageFormat(testCases[i], Locale::getUS(), success)); in PatternTest() 307 dataerrln("MessageFormat creation failed.#1 - %s", u_errorName(success)); in PatternTest() 308 logln(((UnicodeString)"MessageFormat for ") + testCases[i] + " creation failed.\n"); in PatternTest() 331 dataerrln("MessageFormat failed test #3 - %s", u_errorName(success)); in PatternTest() 356 errln("MessageFormat faile in PatternTest() [all...] |
H A D | msfmrgts.cpp | 77 * Null exception when formatting pattern with MessageFormat 92 MessageFormat *messageFormatter = new MessageFormat("", status); in Test4074764() 94 failure(status, "couldn't create MessageFormat"); in Test4074764() 109 errln("MessageFormat with one param test failed."); in Test4074764() 128 errln("MessageFormat with no param test failed."); in Test4074764() 138 //we get an NullPointerException in MessageFormat.java(617) in Test4074764() 140 //we get an StringArrayIndexOutOfBoundsException in MessageFormat.java(614) in Test4074764() 152 * MessageFormat.toPattern has weird rounding behavior. 162 MessageFormat *fm [all...] |
/third_party/icu/icu4c/source/samples/plurfmtsample/ |
H A D | plurfmtsample.cpp | 41 // Constructs a MessageFormat for given pattern and locale. in PluralFormatExample() 42 MessageFormat* msgfmtEn = new MessageFormat("{0,number} {1}", locEn,status); in PluralFormatExample() 43 MessageFormat* msgfmtSl = new MessageFormat("{0,number} {1}", locSl,status); in PluralFormatExample() 46 u_printf("Output by using PluralFormat and MessageFormat API\n"); in PluralFormatExample() 49 // Use MessageFormat.format () to format the objects and append to the given StringBuffer in PluralFormatExample() 66 MessageFormat* altMsgfmtEn = new MessageFormat(msgPatEn, locEn,status); in PluralFormatExample() 67 MessageFormat* altMsgfmtS in PluralFormatExample() [all...] |
/third_party/skia/third_party/externals/icu/source/samples/plurfmtsample/ |
H A D | plurfmtsample.cpp | 41 // Constructs a MessageFormat for given pattern and locale. in PluralFormatExample() 42 MessageFormat* msgfmtEn = new MessageFormat("{0,number} {1}", locEn,status); in PluralFormatExample() 43 MessageFormat* msgfmtSl = new MessageFormat("{0,number} {1}", locSl,status); in PluralFormatExample() 46 u_printf("Output by using PluralFormat and MessageFormat API\n"); in PluralFormatExample() 49 // Use MessageFormat.format () to format the objects and append to the given StringBuffer in PluralFormatExample() 66 MessageFormat* altMsgfmtEn = new MessageFormat(msgPatEn, locEn,status); in PluralFormatExample() 67 MessageFormat* altMsgfmtS in PluralFormatExample() [all...] |
/third_party/icu/icu4j/samples/src/com/ibm/icu/samples/text/pluralformat/ |
H A D | PluralFormatSample.java | 13 import com.ibm.icu.text.MessageFormat; 42 // Constructs a MessageFormat for the specified locale and pattern. in PluralFormatExample() 43 MessageFormat msgfmtEn = new MessageFormat("{0,number} {1}", locEn); in PluralFormatExample() 44 MessageFormat msgfmtSl = new MessageFormat("{0,number} {1}", locSl); in PluralFormatExample() 47 System.out.println("Output by using PluralFormat and MessageFormat API\n"); in PluralFormatExample() 50 // Use MessageFormat.format () to format the objects and appends to the given StringBuffer in PluralFormatExample() 67 MessageFormat altMsgfmtEn = new MessageFormat(msgPatE in PluralFormatExample() [all...] |
/third_party/icu/icu4c/source/i18n/unicode/ |
H A D | msgfmt.h | 53 * <p>MessageFormat prepares strings for display to users, 58 * <p>A MessageFormat is constructed from a <em>pattern</em> string 61 * <p><code>MessageFormat</code> differs from the other <code>Format</code> 62 * classes in that you create a <code>MessageFormat</code> object with one 64 * method). Factory methods aren't necessary because <code>MessageFormat</code> 80 * <p>An argument might have a "complex" type with nested MessageFormat sub-patterns. 91 * <p>When formatting, MessageFormat takes a collection of argument values 106 * <code>MessageFormat</code> uses patterns of the following form: 148 * only in program syntax, like quoting in MessageFormat. 276 * MessageFormat 345 class U_I18N_API MessageFormat : public Format { global() class [all...] |
/third_party/node/deps/icu-small/source/i18n/unicode/ |
H A D | msgfmt.h | 53 * <p>MessageFormat prepares strings for display to users, 58 * <p>A MessageFormat is constructed from a <em>pattern</em> string 61 * <p><code>MessageFormat</code> differs from the other <code>Format</code> 62 * classes in that you create a <code>MessageFormat</code> object with one 64 * method). Factory methods aren't necessary because <code>MessageFormat</code> 80 * <p>An argument might have a "complex" type with nested MessageFormat sub-patterns. 91 * <p>When formatting, MessageFormat takes a collection of argument values 106 * <code>MessageFormat</code> uses patterns of the following form: 148 * only in program syntax, like quoting in MessageFormat. 276 * MessageFormat 345 class U_I18N_API MessageFormat : public Format { global() class [all...] |
/third_party/skia/third_party/externals/icu/source/i18n/unicode/ |
H A D | msgfmt.h | 53 * <p>MessageFormat prepares strings for display to users, 58 * <p>A MessageFormat is constructed from a <em>pattern</em> string 61 * <p><code>MessageFormat</code> differs from the other <code>Format</code> 62 * classes in that you create a <code>MessageFormat</code> object with one 64 * method). Factory methods aren't necessary because <code>MessageFormat</code> 80 * <p>An argument might have a "complex" type with nested MessageFormat sub-patterns. 91 * <p>When formatting, MessageFormat takes a collection of argument values 106 * <code>MessageFormat</code> uses patterns of the following form: 148 * only in program syntax, like quoting in MessageFormat. 276 * MessageFormat 345 class U_I18N_API MessageFormat : public Format { global() class [all...] |
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/util/ |
H A D | ElapsedTimer.java | 15 import ohos.global.icu.text.MessageFormat; 31 * More advanced: NumberFormat and/or MessageFormat can be provided in the constructor 53 private MessageFormat myMsgFormat = null; 58 public ElapsedTimer(MessageFormat aMsgFmt) { in ElapsedTimer() 66 public ElapsedTimer(MessageFormat aMsgFmt, NumberFormat aNumFmt) { in ElapsedTimer() 72 myMsgFormat = new MessageFormat(pattern); in ElapsedTimer() 76 myMsgFormat = new MessageFormat(pattern); in ElapsedTimer()
|
/third_party/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/ |
H A D | ElapsedTimer.java | 14 import com.ibm.icu.text.MessageFormat; 29 * More advanced: NumberFormat and/or MessageFormat can be provided in the constructor 50 private MessageFormat myMsgFormat = null; 55 public ElapsedTimer(MessageFormat aMsgFmt) { in ElapsedTimer() 63 public ElapsedTimer(MessageFormat aMsgFmt, NumberFormat aNumFmt) { in ElapsedTimer() 69 myMsgFormat = new MessageFormat(pattern); in ElapsedTimer() 73 myMsgFormat = new MessageFormat(pattern); in ElapsedTimer()
|
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/layout/ |
H A D | ScriptIDModuleWriter.java | 14 import com.ibm.icu.text.MessageFormat; 46 MessageFormat format = new MessageFormat(scriptPreamble); in writeScriptHeader() 60 format = new MessageFormat(scriptPreambleStable); in writeScriptHeader() 85 format = new MessageFormat(scriptPreambleStable); in writeScriptHeader() 133 MessageFormat format = new MessageFormat(languagePreamble); in writeLanguageHeader() 148 format = new MessageFormat(languagePreambleStable); in writeLanguageHeader() 170 format = new MessageFormat(languagePreambleStable); in writeLanguageHeader() 247 MessageFormat forma in updateScriptAndLanguages() [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
H A D | TimeUnitFormat.java | 264 MessageFormat pattern = (MessageFormat) (patternEntry.getValue())[styl]; in parseObject() 423 final MessageFormat messageFormat = new MessageFormat(pattern, locale); in put() 502 final MessageFormat messageFormat = new MessageFormat(pattern, locale); in searchInTree() 527 MessageFormat messageFormat = null; in searchInTree() 529 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_SECOND, locale); in searchInTree() 531 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_MINUTE, locale); in searchInTree() 533 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_HOU in searchInTree() [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
H A D | TimeUnitFormat.java | 266 MessageFormat pattern = (MessageFormat) (patternEntry.getValue())[styl]; in parseObject() 425 final MessageFormat messageFormat = new MessageFormat(pattern, locale); in put() 504 final MessageFormat messageFormat = new MessageFormat(pattern, locale); in searchInTree() 529 MessageFormat messageFormat = null; in searchInTree() 531 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_SECOND, locale); in searchInTree() 533 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_MINUTE, locale); in searchInTree() 535 messageFormat = new MessageFormat(DEFAULT_PATTERN_FOR_HOU in searchInTree() [all...] |