Home | History | Annotate | Download | only in unicode

Lines Matching refs:pattern

56  * <p>A MessageFormat is constructed from a <em>pattern</em> string
64 * behavior is defined by the pattern that you provide and the
69 * if the pattern has named arguments (see {@link #usesNamedArguments()}).
87 * a typeless argument in the pattern string
93 * (when the pattern contains only numbered arguments)
98 * and formatted according to its pattern specification
100 * A numbered pattern argument is matched with an argument name that contains that number
158 * be a valid pattern string for the Format subclass used.
344 * Constructs a new MessageFormat using the given pattern and the
347 * @param pattern Pattern used to construct object.
349 * pattern cannot be parsed, set to failure code.
352 MessageFormat(const UnicodeString& pattern,
356 * Constructs a new MessageFormat using the given pattern and locale.
357 * @param pattern Pattern used to construct object.
360 * pattern cannot be parsed, set to failure code.
363 MessageFormat(const UnicodeString& pattern,
367 * Constructs a new MessageFormat using the given pattern and locale.
368 * @param pattern Pattern used to construct object.
371 * of an error within the pattern.
373 * pattern cannot be parsed, set to failure code.
376 MessageFormat(const UnicodeString& pattern,
430 * Applies the given pattern string to this message format.
432 * @param pattern The pattern to be applied.
434 * pattern cannot be parsed, set to failure code.
437 virtual void applyPattern(const UnicodeString& pattern,
440 * Applies the given pattern string to this message format.
442 * @param pattern The pattern to be applied.
444 * of an error within the pattern.
446 * pattern cannot be parsed, set to failure code.
449 virtual void applyPattern(const UnicodeString& pattern,
454 * Sets the UMessagePatternApostropheMode and the pattern used by this message format.
455 * Parses the pattern and caches Format objects for simple argument types.
460 * and after constructing the object with an empty pattern string to minimize overhead.
462 * @param pattern The pattern to be applied.
465 * of an error within the pattern.
468 * pattern cannot be parsed, set to failure code.
471 virtual void applyPattern(const UnicodeString& pattern,
485 * Returns a pattern that can be used to recreate this object.
487 * @param appendTo Output parameter to receive the pattern.
642 * pattern cannot be parsed, set to failure code.
654 * using the given pattern.
659 * @param pattern The pattern.
665 * pattern cannot be parsed, set to failure code.
669 static UnicodeString& format(const UnicodeString& pattern,
691 * pattern cannot be parsed, set to failure code.
714 * pattern cannot be parsed, set to failure code.
749 * pattern cannot be parsed, set to failure code.
776 * Convert an 'apostrophe-friendly' pattern into a standard
777 * pattern. Standard patterns treat all apostrophes as
782 * and the resulting standard pattern string is returned.
784 * <p><b>Note</b> it is not guaranteed that the returned pattern
785 * is indeed a valid pattern. The only effect is to convert
788 * @param pattern the 'apostrophe-friendly' patttern to convert
789 * @param status Input/output error code. If the pattern
791 * @return the standard equivalent of the original pattern
794 static UnicodeString autoQuoteApostrophe(const UnicodeString& pattern,
813 * Returns argument types count in the parsed pattern.
814 * Used to distinguish pattern "{0} d" and "d".
816 * @return The number of formattable types in the pattern
892 * has an expected type, based on the pattern. For example, if
893 * the pattern contains the subformat "{3,number,integer}", then
905 * where the pattern argTypes determine how the va_arg list is read.
1047 * Returns array of argument types in the parsed pattern
1051 * @return The array of formattable types in the pattern