Lines Matching refs:pattern
44 * a C++ MessageFormat. It is constructed from a <em>pattern</em> string
49 * <p>For details about the pattern syntax and behavior,
59 * UChar pattern[100];
73 * u_uastrcpy(pattern, "On {0, date, long}, there was a {1} on planet {2,number,integer}");
75 * resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), NULL, resultlength, &status, d1, str, 7);
80 * u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, d1, str, 7);
95 * UChar pattern[100];
101 * u_uastrcpy(pattern, "The disk {1} contains {0,choice,0#no files|1#one file|1<{0,number,integer} files}");
104 * resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), NULL, resultlength, &status, testArgs[i], str);
109 * u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, testArgs[i], str);
129 * UChar pattern[100];
138 * u_uastrcpy(pattern, "{0} est {1, select, female {all\\u00E9e} other {all\\u00E9}} \\u00E0 Paris.");
141 * resultLengthOut=u_formatMessage( "fr", pattern, u_strlen(pattern), NULL, resultlength, &status, str , str1);
147 * u_formatMessage( "fr", pattern, u_strlen(pattern), result, resultlength, &status, str , str1);
166 * @param pattern The pattern specifying the message's format
167 * @param patternLength The length of pattern
172 * in pattern.
180 const UChar *pattern,
193 * @param pattern The pattern specifying the message's format
194 * @param patternLength The length of pattern
199 * in pattern.
207 const UChar *pattern,
220 * @param pattern The pattern specifying the message's format
221 * @param patternLength The length of pattern
226 * specified in pattern.
232 const UChar *pattern,
245 * @param pattern The pattern specifying the message's format
246 * @param patternLength The length of pattern
251 * specified in pattern.
257 const UChar *pattern,
270 * @param pattern The pattern specifying the message's format
271 * @param patternLength The length of pattern
276 * in pattern.
286 const UChar *pattern,
300 * @param pattern The pattern specifying the message's format
301 * @param patternLength The length of pattern
308 * in pattern.
315 const UChar *pattern,
329 * @param pattern The pattern specifying the message's format
330 * @param patternLength The length of pattern
337 * specified in pattern.
343 const UChar *pattern,
357 * @param pattern The pattern specifying the message's format
358 * @param patternLength The length of pattern
365 * specified in pattern.
371 const UChar *pattern,
388 * Open a message formatter with given pattern and for the given locale.
389 * @param pattern A pattern specifying the format to use.
390 * @param patternLength Length of the pattern to use
400 umsg_open( const UChar *pattern,
468 * Sets the pattern.
470 * @param pattern The pattern to be applied.
471 * @param patternLength Length of the pattern to use
475 * exit. If the pattern is invalid, this will be
481 const UChar* pattern,
487 * Gets the pattern.
489 * @param result A pointer to a buffer to receive the pattern.
492 * exit. If the pattern is invalid, this will be
494 * @return the pattern of the format
513 * specified in pattern.
535 * specified in pattern.
558 * specified in pattern.
580 * specified in pattern.
594 * Convert an 'apostrophe-friendly' pattern into a standard
595 * pattern. Standard patterns treat all apostrophes as
600 * and the resulting standard pattern string is returned.
602 * <p><b>Note</b> it is not guaranteed that the returned pattern
603 * is indeed a valid pattern. The only effect is to convert
606 * @param pattern the 'apostrophe-friendly' patttern to convert
607 * @param patternLength the length of pattern, or -1 if unknown and pattern is null-terminated
617 umsg_autoQuoteApostrophe(const UChar* pattern,