/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | AbstractTestPrinterParser.java | 88 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()
|
D | TestReducedPrinter.java | 84 …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()
|
D | TestNumberParser.java | 172 …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()
|
D | TestReducedParser.java | 100 …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()
|
D | TestFractionPrinterParser.java | 85 …action(field, minWidth, maxWidth, decimalPoint).toFormatter(locale).withDecimalStyle(decimalStyle); in getFormatter()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatter.java | 496 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 …]
|
D | DateTimeFormatterBuilder.java | 2553 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 …]
|