Home | History | Annotate | Download | only in unicode

Lines Matching refs:pattern

54  * <p>A MessageFormat is constructed from a <em>pattern</em> string
62 * behavior is defined by the pattern that you provide and the
67 * if the pattern has named arguments (see {@link #usesNamedArguments()}).
85 * a typeless argument in the pattern string
91 * (when the pattern contains only numbered arguments)
96 * and formatted according to its pattern specification
98 * A numbered pattern argument is matched with an argument name that contains that number
151 * be a valid pattern string for the Format subclass used.
335 * Constructs a new MessageFormat using the given pattern and the
338 * @param pattern Pattern used to construct object.
340 * pattern cannot be parsed, set to failure code.
343 MessageFormat(const UnicodeString& pattern,
347 * Constructs a new MessageFormat using the given pattern and locale.
348 * @param pattern Pattern used to construct object.
351 * pattern cannot be parsed, set to failure code.
354 MessageFormat(const UnicodeString& pattern,
358 * Constructs a new MessageFormat using the given pattern and locale.
359 * @param pattern Pattern used to construct object.
362 * of an error within the pattern.
364 * pattern cannot be parsed, set to failure code.
367 MessageFormat(const UnicodeString& pattern,
421 * Applies the given pattern string to this message format.
423 * @param pattern The pattern to be applied.
425 * pattern cannot be parsed, set to failure code.
428 virtual void applyPattern(const UnicodeString& pattern,
431 * Applies the given pattern
433 * @param pattern The pattern to be applied.
435 * of an error within the pattern.
437 * pattern cannot be parsed, set to failure code.
440 virtual void applyPattern(const UnicodeString& pattern,
445 * Sets the UMessagePatternApostropheMode and the pattern used by this message format.
446 * Parses the pattern and caches Format objects for simple argument types.
451 * and after constructing the object with an empty pattern string to minimize overhead.
453 * @param pattern The pattern to be applied.
456 * of an error within the pattern.
459 * pattern cannot be parsed, set to failure code.
462 virtual void applyPattern(const UnicodeString& pattern,
476 * Returns a pattern that can be used to recreate this object.
478 * @param appendTo Output parameter to receive the pattern.
633 * pattern cannot be parsed, set to failure code.
645 * using the given pattern.
650 * @param pattern The pattern.
656 * pattern cannot be parsed, set to failure code.
660 static UnicodeString& format(const UnicodeString& pattern,
682 * pattern cannot be parsed, set to failure code.
701 * pattern cannot be parsed, set to failure code.
724 * pattern cannot be parsed, set to failure code.
759 * pattern cannot be parsed, set to failure code.
786 * Convert an 'apostrophe-friendly' pattern into a standard
787 * pattern. Standard patterns treat all apostrophes as
792 * and the resulting standard pattern string is returned.
794 * <p><b>Note</b> it is not guaranteed that the returned pattern
795 * is indeed a valid pattern. The only effect is to convert
798 * @param pattern the 'apostrophe-friendly' patttern to convert
799 * @param status Input/output error code. If the pattern
801 * @return the standard equivalent of the original pattern
804 static UnicodeString autoQuoteApostrophe(const UnicodeString& pattern,
822 * Returns argument types count in the parsed pattern.
823 * Used to distinguish pattern "{0} d" and "d".
825 * @return The number of formattable types in the pattern
897 * has an expected type, based on the pattern. For example, if
898 * the pattern contains the subformat "{3,number,integer}", then
910 * where the pattern argTypes determine how the va_arg list is read.
1037 * Returns array of argument types in the parsed pattern
1041 * @return The array of formattable types in the pattern