/external/chromium_org/third_party/icu/source/samples/plurfmtsample/ |
plurfmtsample.cpp | 20 u_printf(" Use PluralFormat and Messageformat to get Plural Form for languages below:\n"); 35 // Constructs a MessageFormat for given pattern and locale. 36 MessageFormat* msgfmtEn = new MessageFormat("{0,number} {1}", locEn,status); 37 MessageFormat* msgfmtSl = new MessageFormat("{0,number} {1}", locSl,status); 40 u_printf("Output by using PluralFormat and MessageFormat API\n"); 43 // Use MessageFormat.format () to format the objects and append to the given StringBuffer 60 MessageFormat* altMsgfmtEn = new MessageFormat(msgPatEn, locEn,status) [all...] |
/external/icu/icu4c/source/samples/plurfmtsample/ |
plurfmtsample.cpp | 20 u_printf(" Use PluralFormat and Messageformat to get Plural Form for languages below:\n"); 35 // Constructs a MessageFormat for given pattern and locale. 36 MessageFormat* msgfmtEn = new MessageFormat("{0,number} {1}", locEn,status); 37 MessageFormat* msgfmtSl = new MessageFormat("{0,number} {1}", locSl,status); 40 u_printf("Output by using PluralFormat and MessageFormat API\n"); 43 // Use MessageFormat.format () to format the objects and append to the given StringBuffer 60 MessageFormat* altMsgfmtEn = new MessageFormat(msgPatEn, locEn,status) [all...] |
/external/chromium_org/chrome/third_party/chromevox/third_party/closure-library/closure/goog/i18n/ |
messageformat.js | 63 goog.provide('goog.i18n.MessageFormat'); 72 * Constructor of MessageFormat. 78 goog.i18n.MessageFormat = function(pattern) { 106 goog.i18n.MessageFormat.LITERAL_PLACEHOLDER_ = '\uFDDF_'; 114 goog.i18n.MessageFormat.Element_ = { 125 goog.i18n.MessageFormat.BlockType_ = { 140 goog.i18n.MessageFormat.OTHER_ = 'other'; 148 goog.i18n.MessageFormat.REGEX_LITERAL_ = new RegExp("'([{}#].*?)'", 'g'); 156 goog.i18n.MessageFormat.REGEX_DOUBLE_APOSTROPHE_ = new RegExp("''", 'g'); 170 goog.i18n.MessageFormat.prototype.format = function(namedParameters) [all...] |
/external/chromium_org/third_party/icu/source/i18n/ |
msgfmt.cpp | 51 // class MessageFormat 81 // MessageFormat Type List Number, Date, Time or Choice 158 return icu::MessageFormat::equalFormats(key1.pointer, key2.pointer); 166 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(MessageFormat) 227 // Creates a MessageFormat instance based on the pattern. 229 MessageFormat::MessageFormat(const UnicodeString& pattern, 250 MessageFormat::MessageFormat(const UnicodeString& pattern, 272 MessageFormat::MessageFormat(const UnicodeString& pattern [all...] |
tmutfmt.cpp | 226 MessageFormat* pattern = ((MessageFormat**)countToPattern->get(count))[fStyle]; 269 // the value is a pair of MessageFormat* 270 MessageFormat** patterns = (MessageFormat**)valueTok.pointer; 273 MessageFormat* pattern = patterns[style]; 506 MessageFormat* messageFormat = new MessageFormat(pattern, fLocale, err); 509 messageFormat->setFormat(0, *fNumberFormat) [all...] |
/external/icu/icu4c/source/i18n/ |
msgfmt.cpp | 51 // class MessageFormat 81 // MessageFormat Type List Number, Date, Time or Choice 158 return icu::MessageFormat::equalFormats(key1.pointer, key2.pointer); 166 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(MessageFormat) 227 // Creates a MessageFormat instance based on the pattern. 229 MessageFormat::MessageFormat(const UnicodeString& pattern, 250 MessageFormat::MessageFormat(const UnicodeString& pattern, 272 MessageFormat::MessageFormat(const UnicodeString& pattern [all...] |
tmutfmt.cpp | 201 // the value is a pair of MessageFormat* 202 MessageFormat** patterns = (MessageFormat**)valueTok.pointer; 205 MessageFormat* pattern = patterns[style]; 431 MessageFormat* messageFormat = new MessageFormat(pattern, getLocale(err), err); 433 MessageFormat** formatters = (MessageFormat**)countToPatterns->get(pluralCountUniStr); 435 formatters = (MessageFormat**)uprv_malloc(UTMUTFMT_FORMAT_STYLE_COUNT*sizeof(MessageFormat*)) [all...] |
/external/chromium_org/third_party/icu/source/i18n/unicode/ |
msgfmt.h | 49 * <p>MessageFormat prepares strings for display to users, 54 * <p>A MessageFormat is constructed from a <em>pattern</em> string 57 * <p><code>MessageFormat</code> differs from the other <code>Format</code> 58 * classes in that you create a <code>MessageFormat</code> object with one 60 * method). Factory methods aren't necessary because <code>MessageFormat</code> 77 * <p>An argument might have a "complex" type with nested MessageFormat sub-patterns. 88 * <p>When formatting, MessageFormat takes a collection of argument values 103 * <code>MessageFormat</code> uses patterns of the following form: 145 * only in program syntax, like quoting in MessageFormat. 254 * MessageFormat::format [all...] |
selfmt.h | 32 class MessageFormat; 44 * <p>Note: Typically, select formatting is done via <code>MessageFormat</code> 87 * <code>MessageFormat</code>. 101 * <p>The resulting keyword is provided to <code>MessageFormat</code> as a 142 * <p>Each message is a MessageFormat pattern string enclosed in {curly braces}.</p> 158 * MessageFormat *msgFmt = new MessageFormat(UnicodeString("{0} est {1, select, female {allée} other {allé}} à Paris."), Locale("fr"), status); 344 friend class MessageFormat;
|
/external/icu/icu4c/source/i18n/unicode/ |
msgfmt.h | 49 * <p>MessageFormat prepares strings for display to users, 54 * <p>A MessageFormat is constructed from a <em>pattern</em> string 57 * <p><code>MessageFormat</code> differs from the other <code>Format</code> 58 * classes in that you create a <code>MessageFormat</code> object with one 60 * method). Factory methods aren't necessary because <code>MessageFormat</code> 77 * <p>An argument might have a "complex" type with nested MessageFormat sub-patterns. 88 * <p>When formatting, MessageFormat takes a collection of argument values 103 * <code>MessageFormat</code> uses patterns of the following form: 145 * only in program syntax, like quoting in MessageFormat. 254 * MessageFormat::format [all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
tmsgfmt.h | 19 * TestMessageFormat tests MessageFormat, and also a few unctions in ChoiceFormat 30 * regression test for a specific bug regarding MessageFormat using ChoiceFormat 38 * test MessageFormat with various given patterns 47 * tests the static MessageFormat::format method 64 * tests MessageFormat functionality with a SelectFormat. 71 * Internal method to format a MessageFormat object with passed args 73 void internalFormat(MessageFormat* msgFmt , 78 * Internal method to create a MessageFormat object with passed args 80 MessageFormat* internalCreate( 84 * Verify that MessageFormat accomodates more than 10 argument [all...] |
tmsgfmt.cpp | 181 MessageFormat *fmt = new MessageFormat(pattern, status); 183 dataerrln("MessageFormat pattern creation failed. - %s", u_errorName(status)); 188 errln("MessageFormat::toPattern() failed."); 296 MessageFormat *form = 0; 299 form = new MessageFormat(testCases[i], Locale::getUS(), success); 301 dataerrln("MessageFormat creation failed.#1 - %s", u_errorName(success)); 302 logln(((UnicodeString)"MessageFormat for ") + testCases[i] + " creation failed.\n"); 325 dataerrln("MessageFormat failed test #3 - %s", u_errorName(success)); 348 errln("MessageFormat failed test #5") [all...] |
msfmrgts.cpp | 73 * Null exception when formatting pattern with MessageFormat 88 MessageFormat *messageFormatter = new MessageFormat("", status); 90 failure(status, "couldn't create MessageFormat"); 95 failure(status, "messageFormat->applyPattern"); 104 if( tempBuffer != "Message with param:BUG" || failure(status, "messageFormat->format")) 105 errln("MessageFormat with one param test failed."); 123 if( tempBuffer != "Message without param" || failure(status, "messageFormat->format")) 124 errln("MessageFormat with no param test failed."); 129 if (tempBuffer != "Message without param" || failure(status, "messageFormat->format") [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/performance/ui/ |
Messages.java | 13 import java.text.MessageFormat; 72 return MessageFormat.format(message, bindings);
|
/external/icu/icu4c/source/test/intltest/ |
tmsgfmt.h | 19 * TestMessageFormat tests MessageFormat, and also a few unctions in ChoiceFormat 30 * regression test for a specific bug regarding MessageFormat using ChoiceFormat 38 * test MessageFormat with various given patterns 47 * tests the static MessageFormat::format method 64 * tests MessageFormat functionality with a SelectFormat. 71 * Internal method to format a MessageFormat object with passed args 73 void internalFormat(MessageFormat* msgFmt , 78 * Internal method to create a MessageFormat object with passed args 80 MessageFormat* internalCreate( 84 * Verify that MessageFormat accomodates more than 10 argument [all...] |
tmsgfmt.cpp | 181 MessageFormat *fmt = new MessageFormat(pattern, status); 183 dataerrln("MessageFormat pattern creation failed. - %s", u_errorName(status)); 188 errln("MessageFormat::toPattern() failed."); 296 MessageFormat *form = 0; 299 form = new MessageFormat(testCases[i], Locale::getUS(), success); 301 dataerrln("MessageFormat creation failed.#1 - %s", u_errorName(success)); 302 logln(((UnicodeString)"MessageFormat for ") + testCases[i] + " creation failed.\n"); 325 dataerrln("MessageFormat failed test #3 - %s", u_errorName(success)); 348 errln("MessageFormat failed test #5") [all...] |
/external/chromium_org/third_party/icu/source/samples/msgfmt/answers/ |
main_2.cpp | 28 MessageFormat msg(PATTERN, status); 29 check(status, "MessageFormat::ct"); 38 check(status, "MessageFormat::format");
|
main_3.cpp | 28 MessageFormat msg(PATTERN, status); 29 check(status, "MessageFormat::ct"); 38 check(status, "MessageFormat::format");
|
/external/chromium_org/third_party/icu/source/samples/msgfmt/ |
main.cpp | 28 MessageFormat msg(PATTERN, status); 29 check(status, "MessageFormat::ct"); 38 check(status, "MessageFormat::format");
|
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/check/ |
Assert.java | 13 import java.text.MessageFormat; 129 * the format of error message suitable for {@link MessageFormat}. 132 * {@link MessageFormat}. For example 137 String message = "null argument expected: " + MessageFormat.format(errorFormat, args); //$NON-NLS-1$ 196 * the format of error message suitable for {@link MessageFormat}. 199 * {@link MessageFormat}. For example 204 String message = "null argument: " + MessageFormat.format(errorFormat, args); //$NON-NLS-1$ 227 * {@link MessageFormat}. For example <code>"{0} expected, but {1} found."</code>. 230 String message = MessageFormat.format(errorFormat, args); 300 * {@link MessageFormat}. For example <code>"{0} expected, but {1} found."</code> [all...] |
/external/icu/icu4c/source/samples/msgfmt/answers/ |
main_2.cpp | 28 MessageFormat msg(PATTERN, status); 29 check(status, "MessageFormat::ct"); 38 check(status, "MessageFormat::format");
|
main_3.cpp | 28 MessageFormat msg(PATTERN, status); 29 check(status, "MessageFormat::ct"); 38 check(status, "MessageFormat::format");
|
/external/icu/icu4c/source/samples/msgfmt/ |
main.cpp | 28 MessageFormat msg(PATTERN, status); 29 check(status, "MessageFormat::ct"); 38 check(status, "MessageFormat::format");
|
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/model/property/editor/ |
CharacterPropertyEditor.java | 18 import java.text.MessageFormat; 73 MessageFormat.format(ModelMessages.CharacterPropertyEditor_notValid, text));
|
DoubleObjectPropertyEditor.java | 18 import java.text.MessageFormat; 85 MessageFormat.format(ModelMessages.DoubleObjectPropertyEditor_notValidDouble, text));
|