Lines Matching refs:pattern
51 * specified at once in a <EM>pattern</EM>. By using different
91 * {@link #format(const UnicodeString& pattern,const Formattable* arguments,int32_t cnt,UnicodeString& appendTo,UErrorCode& success)},
111 * <LI>If one of the arguments does not occur in the pattern, it
119 * some part of the parse is ambiguous. For example, if the pattern
124 * then the rightmost subformat in the pattern string will produce the
174 * The pattern is of the following form. Legend:
214 * a ChoiceFormat, the pattern must always be specified, since there
224 * If a pattern is used, then unquoted braces in the pattern, if any,
275 * or by using a pattern (see ChoiceFormat for more information) as in:
290 * <EM>Note:</EM> Subformats are numbered by their order in the pattern.
323 * Constructs a new MessageFormat using the given pattern and the
326 * @param pattern Pattern used to construct object.
328 * pattern cannot be parsed, set to failure code.
331 MessageFormat(const UnicodeString& pattern,
335 * Constructs a new MessageFormat using the given pattern and locale.
336 * @param pattern Pattern used to construct object.
339 * pattern cannot be parsed, set to failure code.
342 MessageFormat(const UnicodeString& pattern,
346 * Constructs a new MessageFormat using the given pattern and locale.
347 * @param pattern Pattern used to construct object.
350 * of error within the pattern.
352 * pattern cannot be parsed, set to failure code.
355 MessageFormat(const UnicodeString& pattern,
410 * Applies the given pattern string to this message format.
412 * @param pattern The pattern to be applied.
414 * pattern cannot be parsed, set to failure code.
417 virtual void applyPattern(const UnicodeString& pattern,
420 * Applies the given pattern string to this message format.
422 * @param pattern The pattern to be applied.
424 * of error within pattern.
426 * pattern cannot be parsed, set to failure code.
429 virtual void applyPattern(const UnicodeString& pattern,
434 * Returns a pattern that can be used to recreate this object.
436 * @param appendTo Output parameter to receive the pattern.
575 * pattern cannot be parsed, set to failure code.
587 * using the given pattern.
589 * @param pattern The pattern.
595 * pattern cannot be parsed, set to failure code.
599 static UnicodeString& format(const UnicodeString& pattern,
618 * pattern cannot be parsed, set to failure code.
637 * pattern cannot be parsed, set to failure code.
660 * pattern cannot be parsed, set to failure code.
692 * pattern cannot be parsed, set to failure code.
721 * Convert an 'apostrophe-friendly' pattern into a standard
722 * pattern. Standard patterns treat all apostrophes as
727 * and the resulting standard pattern string is returned.
729 * <p><b>Note</b> it is not guaranteed that the returned pattern
730 * is indeed a valid pattern. The only effect is to convert
733 * @param pattern the 'apostrophe-friendly' patttern to convert
734 * @param status Input/output error code. If the pattern
736 * @return the standard equivalent of the original pattern
739 static UnicodeString autoQuoteApostrophe(const UnicodeString& pattern,
756 * Returns argument types count in the parsed pattern.
757 * Used to distinguish pattern "{0} d" and "d".
759 * @return The number of formattable types in the pattern
804 * pattern text fPattern, and an argument number. The argument
820 * has an expected type, based on the pattern. For example, if
821 * the pattern contains the subformat "{3,number,integer}", then
919 * Returns array of argument types in the parsed pattern
923 * @return The array of formattable types in the pattern