/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestNumberParser.java | 72 import java.time.format.SignStyle; 90 {DAY_OF_MONTH, 1, 2, SignStyle.NEVER, "12", -1, IndexOutOfBoundsException.class}, in data_error() 91 {DAY_OF_MONTH, 1, 2, SignStyle.NEVER, "12", 3, IndexOutOfBoundsException.class}, in data_error() 96 …public void test_parse_error(TemporalField field, int min, int max, SignStyle style, String text, … in test_parse_error() 110 {1, 2, SignStyle.NEVER, 0, "12", 0, 2, 12L}, // normal in provider_parseData() 111 {1, 2, SignStyle.NEVER, 0, "Xxx12Xxx", 3, 5, 12L}, // parse in middle in provider_parseData() 112 {1, 2, SignStyle.NEVER, 0, "99912999", 3, 5, 12L}, // parse in middle in provider_parseData() 113 {2, 4, SignStyle.NEVER, 0, "12345", 0, 4, 1234L}, // stops at max width in provider_parseData() 114 {2, 4, SignStyle.NEVER, 0, "12-45", 0, 2, 12L}, // stops at dash in provider_parseData() 115 {2, 4, SignStyle.NEVER, 0, "123-5", 0, 3, 123L}, // stops at dash in provider_parseData() [all …]
|
D | TestNumberPrinter.java | 69 import java.time.format.SignStyle; 84 getFormatter(DAY_OF_MONTH, 1, 2, SignStyle.NEVER).formatTo(EMPTY_DTA, buf); in test_print_emptyCalendrical() 89 getFormatter(DAY_OF_MONTH, 1, 2, SignStyle.NEVER).formatTo(LocalDate.of(2012, 1, 3), buf); in test_print_append() 187 …getFormatter(DAY_OF_MONTH, minPad, maxPad, SignStyle.NOT_NEGATIVE).formatTo(new MockFieldValue(DAY… in test_pad_NOT_NEGATIVE() 204 …getFormatter(DAY_OF_MONTH, minPad, maxPad, SignStyle.NEVER).formatTo(new MockFieldValue(DAY_OF_MON… in test_pad_NEVER() 220 …getFormatter(DAY_OF_MONTH, minPad, maxPad, SignStyle.NORMAL).formatTo(new MockFieldValue(DAY_OF_MO… in test_pad_NORMAL() 236 …getFormatter(DAY_OF_MONTH, minPad, maxPad, SignStyle.ALWAYS).formatTo(new MockFieldValue(DAY_OF_MO… 252 …getFormatter(DAY_OF_MONTH, minPad, maxPad, SignStyle.EXCEEDS_PAD).formatTo(new MockFieldValue(DAY_… 271 … assertEquals(getFormatter(HOUR_OF_DAY, 1, 19, SignStyle.NORMAL).toString(), "Value(HourOfDay)"); 275 …assertEquals(getFormatter(HOUR_OF_DAY, 2, 2, SignStyle.NOT_NEGATIVE).toString(), "Value(HourOfDay,… [all …]
|
D | TestDateTimeFormatterBuilder.java | 81 import java.time.format.SignStyle; 182 builder.appendValue(DAY_OF_MONTH, 2, 3, SignStyle.NORMAL); in test_appendValue_3arg() 189 builder.appendValue(null, 2, 3, SignStyle.NORMAL); in test_appendValue_3arg_nullField() 194 builder.appendValue(DAY_OF_MONTH, 0, 2, SignStyle.NORMAL); in test_appendValue_3arg_minWidthTooSmall() 199 builder.appendValue(DAY_OF_MONTH, 20, 2, SignStyle.NORMAL); in test_appendValue_3arg_minWidthTooBig() 204 builder.appendValue(DAY_OF_MONTH, 2, 0, SignStyle.NORMAL); in test_appendValue_3arg_maxWidthTooSmall() 209 builder.appendValue(DAY_OF_MONTH, 2, 20, SignStyle.NORMAL); in test_appendValue_3arg_maxWidthTooBig() 214 builder.appendValue(DAY_OF_MONTH, 4, 2, SignStyle.NORMAL); in test_appendValue_3arg_maxWidthMinWidth() 225 builder.appendValue(MONTH_OF_YEAR, 1, 2, SignStyle.NORMAL).appendValue(DAY_OF_MONTH, 2); in test_appendValue_subsequent2_parse3() 235 builder.appendValue(MONTH_OF_YEAR, 1, 2, SignStyle.NORMAL).appendValue(DAY_OF_MONTH, 2); in test_appendValue_subsequent2_parse4() [all …]
|
D | AbstractTestPrinterParser.java | 69 import java.time.format.SignStyle; 136 …eTimeFormatter getFormatter(TemporalField field, int minWidth, int maxWidth, SignStyle signStyle) { in getFormatter()
|
D | TestDateTimeFormatter.java | 86 import java.time.format.SignStyle; 103 .appendValue(DAY_OF_MONTH, 1, 2, SignStyle.NOT_NEGATIVE) in test_withLocale_same()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKSignStyle.java | 64 import java.time.format.SignStyle; 85 for (SignStyle style : SignStyle.values()) { in test_valueOf() 86 assertEquals(SignStyle.valueOf(style.name()), style); in test_valueOf() 93 {LocalDate.of(0, 10, 2), SignStyle.ALWAYS, null, "+00"}, in data_signStyle() 94 {LocalDate.of(2001, 10, 2), SignStyle.ALWAYS, null, "+2001"}, in data_signStyle() 95 {LocalDate.of(-2001, 10, 2), SignStyle.ALWAYS, null, "-2001"}, in data_signStyle() 97 {LocalDate.of(2001, 10, 2), SignStyle.NORMAL, null, "2001"}, in data_signStyle() 98 {LocalDate.of(-2001, 10, 2), SignStyle.NORMAL, null, "-2001"}, in data_signStyle() 100 {LocalDate.of(2001, 10, 2), SignStyle.NEVER, null, "2001"}, in data_signStyle() 101 {LocalDate.of(-2001, 10, 2), SignStyle.NEVER, null, "2001"}, in data_signStyle() [all …]
|
D | TCKPadPrinterParser.java | 69 import java.time.format.SignStyle; 131 builder.padNext(3, '#').appendValue(MONTH_OF_YEAR, 1, 3, SignStyle.NORMAL); in test_parseStrict() 172 builder.parseLenient().padNext(3, '#').appendValue(MONTH_OF_YEAR, 1, 3, SignStyle.NORMAL); in test_parseLenient() 196 builder.padNext(3, '-').appendValue(MONTH_OF_YEAR, 1, 2, SignStyle.NORMAL); in test_parse_decoratedStartsWithPad_number()
|
D | TCKDateTimeFormatterBuilder.java | 76 import java.time.format.SignStyle; 162 builder.appendValue(null, 2, 3, SignStyle.NORMAL); in test_appendValue_3arg_nullField() 167 builder.appendValue(DAY_OF_MONTH, 0, 2, SignStyle.NORMAL); in test_appendValue_3arg_minWidthTooSmall() 172 builder.appendValue(DAY_OF_MONTH, 20, 2, SignStyle.NORMAL); in test_appendValue_3arg_minWidthTooBig() 177 builder.appendValue(DAY_OF_MONTH, 2, 0, SignStyle.NORMAL); in test_appendValue_3arg_maxWidthTooSmall() 182 builder.appendValue(DAY_OF_MONTH, 2, 20, SignStyle.NORMAL); in test_appendValue_3arg_maxWidthTooBig() 187 builder.appendValue(DAY_OF_MONTH, 4, 2, SignStyle.NORMAL); in test_appendValue_3arg_maxWidthMinWidth()
|
D | TCKDateTimeFormatter.java | 97 import java.time.format.SignStyle; 130 .appendValue(DAY_OF_MONTH, 1, 2, SignStyle.NOT_NEGATIVE) in setUp()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | SignStyle.java | 76 public enum SignStyle { enum
|
D | DateTimeFormatterBuilder.java | 395 appendValue(new NumberPrinterParser(field, 1, 19, SignStyle.NORMAL)); in appendValue() 452 … NumberPrinterParser pp = new NumberPrinterParser(field, width, width, SignStyle.NOT_NEGATIVE); in appendValue() 489 TemporalField field, int minWidth, int maxWidth, SignStyle signStyle) { in appendValue() 490 if (minWidth == maxWidth && signStyle == SignStyle.NOT_NEGATIVE) { in appendValue() 638 if (pp.minWidth == pp.maxWidth && pp.signStyle == SignStyle.NOT_NEGATIVE) { in appendValue() 1721 appendValue(field, count, 19, SignStyle.NORMAL); in parseField() 1723 appendValue(field, count, 19, SignStyle.EXCEEDS_PAD); in parseField() 2485 private final SignStyle signStyle; 2496 NumberPrinterParser(TemporalField field, int minWidth, int maxWidth, SignStyle signStyle) { in NumberPrinterParser() 2515 …protected NumberPrinterParser(TemporalField field, int minWidth, int maxWidth, SignStyle signStyle… in NumberPrinterParser() [all …]
|
D | DateTimeFormatter.java | 705 .appendValue(YEAR, 4, 10, SignStyle.EXCEEDS_PAD) 1040 .appendValue(YEAR, 4, 10, SignStyle.EXCEEDS_PAD) 1084 .appendValue(IsoFields.WEEK_BASED_YEAR, 4, 10, SignStyle.EXCEEDS_PAD) 1249 .appendValue(DAY_OF_MONTH, 1, 2, SignStyle.NOT_NEGATIVE)
|
/libcore/ojluni/src/main/java/java/time/ |
D | Year.java | 84 import java.time.format.SignStyle; 149 .appendValue(YEAR, 4, 10, SignStyle.EXCEEDS_PAD)
|
D | YearMonth.java | 87 import java.time.format.SignStyle; 136 .appendValue(YEAR, 4, 10, SignStyle.EXCEEDS_PAD)
|
/libcore/ |
D | openjdk_java_files.bp | 852 "ojluni/src/main/java/java/time/format/SignStyle.java",
|