Home
last modified time | relevance | path

Searched refs:decimalStyle (Results 1 – 7 of 7) sorted by relevance

/libcore/ojluni/src/test/java/time/test/java/time/format/
DAbstractTestPrinterParser.java88 protected DecimalStyle decimalStyle; field in AbstractTestPrinterParser
97 decimalStyle = DecimalStyle.STANDARD; in setUp()
117 return builder.toFormatter(locale).withDecimalStyle(decimalStyle); in getFormatter()
121 return builder.appendLiteral(c).toFormatter(locale).withDecimalStyle(decimalStyle); in getFormatter()
125 return builder.appendLiteral(s).toFormatter(locale).withDecimalStyle(decimalStyle); in getFormatter()
129 return builder.appendText(field).toFormatter(locale).withDecimalStyle(decimalStyle); in getFormatter()
133 return builder.appendText(field, style).toFormatter(locale).withDecimalStyle(decimalStyle); in getFormatter()
137 …pendValue(field, minWidth, maxWidth, signStyle).toFormatter(locale).withDecimalStyle(decimalStyle); in getFormatter()
141 …urn builder.appendOffset(pattern, noOffsetText).toFormatter(locale).withDecimalStyle(decimalStyle); in getFormatter()
145 return builder.appendPattern(pattern).toFormatter(locale).withDecimalStyle(decimalStyle); in getPatternFormatter()
DTestReducedPrinter.java84 …endValueReduced(field, width, width, baseValue).toFormatter(locale).withDecimalStyle(decimalStyle); in getFormatter0()
88 …ueReduced(field, minWidth, maxWidth, baseValue).toFormatter(locale).withDecimalStyle(decimalStyle); in getFormatter0()
92 …Width, maxWidth, LocalDate.of(baseValue, 1, 1)).toFormatter(locale).withDecimalStyle(decimalStyle); in getFormatterBaseDate()
DTestReducedParser.java100 …endValueReduced(field, width, width, baseValue).toFormatter(locale).withDecimalStyle(decimalStyle); in getFormatter0()
104 …ueReduced(field, minWidth, maxWidth, baseValue).toFormatter(locale).withDecimalStyle(decimalStyle); in getFormatter0()
108 …Width, maxWidth, LocalDate.of(baseValue, 1, 1)).toFormatter(locale).withDecimalStyle(decimalStyle); in getFormatterBaseDate()
DTestNumberParser.java172 …ilder.appendValue(DAY_OF_YEAR, subsequentWidth).toFormatter(locale).withDecimalStyle(decimalStyle); in test_parse_fresh()
192 …ilder.appendValue(DAY_OF_YEAR, subsequentWidth).toFormatter(locale).withDecimalStyle(decimalStyle); in test_parse_textField()
547 .appendValue(DAY_OF_MONTH, 2).toFormatter(locale).withDecimalStyle(decimalStyle); in test_parseDigitsAdjacentLenient()
DTestFractionPrinterParser.java85 …action(field, minWidth, maxWidth, decimalPoint).toFormatter(locale).withDecimalStyle(decimalStyle); in getFormatter()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatter.java496 private final DecimalStyle decimalStyle; field in DateTimeFormatter
1373 Locale locale, DecimalStyle decimalStyle, in DateTimeFormatter() argument
1379 this.decimalStyle = Objects.requireNonNull(decimalStyle, "decimalStyle"); in DateTimeFormatter()
1413 …return new DateTimeFormatter(printerParser, locale, decimalStyle, resolverStyle, resolverFields, c… in withLocale()
1423 return decimalStyle; in getDecimalStyle()
1434 public DateTimeFormatter withDecimalStyle(DecimalStyle decimalStyle) { in withDecimalStyle() argument
1435 if (this.decimalStyle.equals(decimalStyle)) { in withDecimalStyle()
1438 …return new DateTimeFormatter(printerParser, locale, decimalStyle, resolverStyle, resolverFields, c… in withDecimalStyle()
1492 …return new DateTimeFormatter(printerParser, locale, decimalStyle, resolverStyle, resolverFields, c… in withChronology()
1549 …return new DateTimeFormatter(printerParser, locale, decimalStyle, resolverStyle, resolverFields, c… in withZone()
[all …]
DDateTimeFormatterBuilder.java2553 DecimalStyle decimalStyle = context.getDecimalStyle(); in format() local
2560 str = decimalStyle.convertNumberToI18N(str); in format()
2566 buf.append(decimalStyle.getPositiveSign()); in format()
2570 buf.append(decimalStyle.getPositiveSign()); in format()
2578 buf.append(decimalStyle.getNegativeSign()); in format()
2587 buf.append(decimalStyle.getZeroDigit()); in format()
2948 DecimalStyle decimalStyle = context.getDecimalStyle(); in format() local
2953 buf.append(decimalStyle.getDecimalSeparator()); in format()
2956 buf.append(decimalStyle.getZeroDigit()); in format()
2963 str = decimalStyle.convertNumberToI18N(str); in format()
[all …]