Lines Matching refs:symbols

82  * <em>symbols</em>.  The pattern may be set directly using
84 * symbols are stored in a <code>DecimalFormatSymbols</code> object. When using
85 * the <code>NumberFormat</code> factory methods, the pattern and symbols are
139 * <p>The prefixes, suffixes, and various symbols used for infinity, digits,
142 * be taken that the symbols and strings do not conflict, or parsing will be
381 * Creates a DecimalFormat using the default pattern and symbols
408 // Always applyPattern after the symbols are set
409 this.symbols = new DecimalFormatSymbols(def);
415 * Creates a DecimalFormat using the given pattern and the symbols
433 // Always applyPattern after the symbols are set
434 this.symbols = new DecimalFormatSymbols(Locale.getDefault(Locale.Category.FORMAT));
440 * Creates a DecimalFormat using the given pattern and symbols.
451 * @param symbols the set of symbols to be used
460 public DecimalFormat (String pattern, DecimalFormatSymbols symbols) {
461 // Always applyPattern after the symbols are set
462 this.symbols = (DecimalFormatSymbols)symbols.clone();
542 result.append(symbols.getNaN());
574 result.append(symbols.getInfinity());
882 char zero = symbols.getZeroDigit();
884 char grouping = symbols.getGroupingSeparator();
886 symbols.getMonetaryDecimalSeparator() :
887 symbols.getDecimalSeparator();
1016 result.append(symbols.getExponentSeparator());
1032 result.append(symbols.getMinusSign());
1262 if (text.regionMatches(pos.index, symbols.getNaN(), 0, symbols.getNaN().length())) {
1263 pos.index = pos.index + symbols.getNaN().length();
1438 if (!isExponent && text.regionMatches(position,symbols.getInfinity(),0,
1439 symbols.getInfinity().length())) {
1440 position += symbols.getInfinity().length();
1443 // We now have a string of digits, possibly with grouping symbols,
1451 char zero = symbols.getZeroDigit();
1453 symbols.getMonetaryDecimalSeparator() :
1454 symbols.getDecimalSeparator();
1455 char grouping = symbols.getGroupingSeparator();
1456 String exponentString = symbols.getExponentSeparator();
1537 if (subparse(text, pos, "", Character.toString(symbols.getMinusSign()), exponentDigits, true, stat) &&
1617 * Returns a copy of the decimal format symbols, which is generally not
1625 return (DecimalFormatSymbols) symbols.clone();
1633 * Sets the decimal format symbols, which is generally not changed
1641 symbols = (DecimalFormatSymbols) newSymbols.clone();
1896 other.symbols = (DecimalFormatSymbols) symbols.clone();
1940 && symbols.equals(other.symbols);
1972 * called any time the symbols or the affix patterns change in order to keep
2021 buffer.append(symbols.getInternationalCurrencySymbol());
2023 buffer.append(symbols.getCurrencySymbol());
2027 c = symbols.getPercent();
2030 c = symbols.getPerMill();
2033 c = symbols.getMinusSign();
2072 string = symbols.getInternationalCurrencySymbol();
2074 string = symbols.getCurrencySymbol();
2088 c = symbols.getPercent();
2093 c = symbols.getPerMill();
2098 c = symbols.getMinusSign();
2165 c = symbols.getPercent();
2168 c = symbols.getPerMill();
2171 c = symbols.getMinusSign();
2188 needQuote = affix.indexOf(symbols.getZeroDigit()) >= 0
2189 || affix.indexOf(symbols.getGroupingSeparator()) >= 0
2190 || affix.indexOf(symbols.getDecimalSeparator()) >= 0
2191 || affix.indexOf(symbols.getPercent()) >= 0
2192 || affix.indexOf(symbols.getPerMill()) >= 0
2193 || affix.indexOf(symbols.getDigit()) >= 0
2194 || affix.indexOf(symbols.getPatternSeparator()) >= 0
2195 || affix.indexOf(symbols.getMinusSign()) >= 0
2236 result.append(localized ? symbols.getGroupingSeparator() :
2240 ? (localized ? symbols.getZeroDigit() : PATTERN_ZERO_DIGIT)
2241 : (localized ? symbols.getDigit() : PATTERN_DIGIT));
2244 result.append(localized ? symbols.getDecimalSeparator() :
2248 result.append(localized ? symbols.getZeroDigit() :
2251 result.append(localized ? symbols.getDigit() :
2257 result.append(localized ? symbols.getExponentSeparator() :
2260 result.append(localized ? symbols.getZeroDigit() :
2272 negativePrefix.equals(symbols.getMinusSign() + positivePrefix)))
2275 result.append(localized ? symbols.getPatternSeparator() :
2347 zeroDigit = symbols.getZeroDigit();
2348 groupingSeparator = symbols.getGroupingSeparator();
2349 decimalSeparator = symbols.getDecimalSeparator();
2350 percent = symbols.getPercent();
2351 perMill = symbols.getPerMill();
2352 digit = symbols.getDigit();
2353 separator = symbols.getPatternSeparator();
2354 exponent = symbols.getExponentSeparator();
2355 minus = symbols.getMinusSign();
2382 // percent, per mille, and currency symbols are recognized and
2545 "symbols in pattern \"" + pattern + '"');
2796 * on this number format's symbols.
2802 return symbols.getCurrency();
2811 * on this number format's symbols.
2818 if (currency != symbols.getCurrency()) {
2819 symbols.setCurrency(currency);
2859 Currency currency = symbols.getCurrency();
2862 currency = Currency.getInstance(symbols.getInternationalCurrencySymbol());
3001 * <code>symbols</code>. If this variable is <code>null</code> then
3003 * change when <code>symbols</code> changes. This variable is always
3091 * It contains the symbols used to format numbers, e.g. the grouping separator,
3098 private DecimalFormatSymbols symbols = null; // LIU new DecimalFormatSymbols();