Lines Matching refs:pattern
98 * every currency format pattern,
99 * including the pattern of default currecny style
103 // negative prefix pattern
105 // negative suffix pattern
107 // positive prefix pattern
109 // positive suffix pattern
135 /* affix for currency formatting when the currency sign in the pattern
136 * equals to 3, such as the pattern contains 3 currency sign or
225 * CURRENCY_SIGN is seen in a pattern, then the decimal separator is
261 // pattern in the default locale.
263 DecimalFormat::DecimalFormat(const UnicodeString& pattern,
267 construct(status, parseError, &pattern);
272 // pattern and the number format symbols in the default locale. The
275 DecimalFormat::DecimalFormat(const UnicodeString& pattern,
282 construct(status, parseError, &pattern, symbolsToAdopt);
285 DecimalFormat::DecimalFormat( const UnicodeString& pattern,
292 construct(status,parseErr, &pattern, symbolsToAdopt);
297 // pattern and the number format symbols in the default locale. The
300 DecimalFormat::DecimalFormat(const UnicodeString& pattern,
305 construct(status, parseError, &pattern, new DecimalFormatSymbols(symbols));
310 // pattern, the number format symbols, and the number format style.
313 DecimalFormat::DecimalFormat(const UnicodeString& pattern,
320 construct(status, parseError, &pattern, symbolsToAdopt);
345 // pattern and the number format symbols in the desired locale. The
351 const UnicodeString* pattern,
375 // Uses the default locale's number format pattern if there isn't
377 if (pattern == NULL)
402 pattern = &str;
407 fImpl = new DecimalFormatImpl(this, *pattern, adoptedSymbols.getAlias(), parseErr, status);
424 // apply pattern
431 // the pattern used in format is not fixed until formatting,
433 // will be used to pick the right pattern based on plural count.
434 // Here, set the pattern as the pattern of plural count == "other".
436 pattern need to be re-applied
439 // TODO(refactor): Revisit, we are setting the pattern twice.
445 patternUsed = pattern;
476 const UnicodeString& pattern,
490 pattern,
1072 // First, parse against current pattern.
1073 // Since current pattern could be set by applyPattern(),
1074 // it could be an arbitrary pattern, and it may not be the one
1660 // if we didn't see a decimal and it is required, check to see if the pattern had one
1695 // "x" with pattern "#0.00" (return index and error index both 0)
1696 // parse "$" with pattern "$#0.00". (return index 0 and error index
1819 * the input. Pattern white space and input white space are
1825 * @param affixPat affix pattern used for currency affix comparison.
1908 * the input. Pattern white space and input white space are
1910 * @param affix pattern string, taken as a literal
1955 // We may have a pattern like: \u200F \u0020
1959 // match of the run of Pattern_White_Space in the pattern,
1983 // Advance over run in pattern
1995 // If we skip UWhiteSpace in the input text, we need to skip it in the pattern.
2119 * @param affixPat pattern string
2374 // Gets the positive prefix of the number pattern.
2383 // Sets the positive prefix of the number pattern.
2392 // Gets the negative prefix of the number pattern.
2401 // Gets the negative prefix of the number pattern.
2410 // Gets the positive suffix of the number pattern.
2419 // Sets the positive suffix of the number pattern.
2428 // Gets the negative suffix of the number pattern.
2437 // Sets the negative suffix of the number pattern.
2446 // Gets the multiplier of the number pattern.
2458 // Sets the multiplier of the number pattern.
2724 // Gets the grouping size of the number pattern. For example, thousand or 10
2734 // Gets the grouping size of the number pattern.
2793 // Checks if decimal point pattern match is required
2801 // Checks if decimal point pattern match is required
2811 // Emits the pattern of this DecimalFormat instance.
2820 // Emits the localized pattern this DecimalFormat instance.
2833 DecimalFormat::applyPattern(const UnicodeString& pattern, UErrorCode& status)
2835 if (pattern.indexOf(kCurrencySign) != -1) {
2838 fImpl->applyPattern(pattern, status);
2844 DecimalFormat::applyPattern(const UnicodeString& pattern,
2848 if (pattern.indexOf(kCurrencySign) != -1) {
2851 fImpl->applyPattern(pattern, parseError, status);
2856 DecimalFormat::applyLocalizedPattern(const UnicodeString& pattern, UErrorCode& status)
2858 if (pattern.indexOf(kCurrencySign) != -1) {
2861 fImpl->applyLocalizedPattern(pattern, status);
2867 DecimalFormat::applyLocalizedPattern(const UnicodeString& pattern,
2871 if (pattern.indexOf(kCurrencySign) != -1) {
2874 fImpl->applyLocalizedPattern(pattern, parseError, status);