/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestZoneOffsetParser.java | 91 getFormatter(pattern, noOffsetText).parseUnresolved(text, new ParsePosition(pos)); in test_parse_error() 100 TemporalAccessor parsed = getFormatter("+HH:MM:ss", "Z").parseUnresolved("Z", pos); in test_parse_exactMatch_UTC() 107 TemporalAccessor parsed = getFormatter("+HH:MM:ss", "Z").parseUnresolved("ZOTHER", pos); in test_parse_startStringMatch_UTC() 114 … TemporalAccessor parsed = getFormatter("+HH:MM:ss", "Z").parseUnresolved("OTHERZOTHER", pos); in test_parse_midStringMatch_UTC() 121 TemporalAccessor parsed = getFormatter("+HH:MM:ss", "Z").parseUnresolved("OTHERZ", pos); in test_parse_endStringMatch_UTC() 129 TemporalAccessor parsed = getFormatter("+HH:MM:ss", "").parseUnresolved("", pos); in test_parse_exactMatch_UTC_EmptyUTC() 136 TemporalAccessor parsed = getFormatter("+HH:MM:ss", "").parseUnresolved("OTHER", pos); in test_parse_startStringMatch_UTC_EmptyUTC() 143 TemporalAccessor parsed = getFormatter("+HH:MM:ss", "").parseUnresolved("OTHEROTHER", pos); in test_parse_midStringMatch_UTC_EmptyUTC() 150 TemporalAccessor parsed = getFormatter("+HH:MM:ss", "").parseUnresolved("OTHER", pos); in test_parse_endStringMatch_UTC_EmptyUTC() 234 TemporalAccessor parsed = getFormatter(pattern, "Z").parseUnresolved(parse, pos); in test_parse_exactMatch() [all …]
|
D | TestTextParser.java | 100 getFormatter(field, style).parseUnresolved(text, new ParsePosition(pos)); in test_parse_error() 110 .parseUnresolved("XxxMondayXxx", pos) in test_parse_midStr() 118 .parseUnresolved("Wednesday", pos) in test_parse_remainderIgnored() 127 getFormatter(DAY_OF_WEEK, TextStyle.FULL).parseUnresolved("Munday", pos); in test_parse_noMatch1() 135 getFormatter(DAY_OF_WEEK, TextStyle.FULL).parseUnresolved("Monday", pos); in test_parse_noMatch2() 143 getFormatter(DAY_OF_WEEK, TextStyle.FULL).parseUnresolved("Monday", pos); in test_parse_noMatch_atEnd() 251 … assertEquals(getFormatter(field, style).parseUnresolved(input, pos).getLong(field), (long) value); in test_parseText() 258 … assertEquals(getFormatter(field, style).parseUnresolved(input, pos).getLong(field), (long) value); in test_parseNumber() 266 assertEquals(formatter.parseUnresolved(input, pos).getLong(field), (long) expectedValue); in test_parseStandaloneText() 287 getFormatter(field, style).parseUnresolved(input.toUpperCase(Locale.ROOT), pos); in test_parse_strict_caseSensitive_parseUpper() [all …]
|
D | TestSettingsParser.java | 98 getFormatter().parseUnresolved("a", pos); in test_parse_changeStyle_sensitive() 105 getFormatter().parseUnresolved("a", pos); in test_parse_changeStyle_insensitive() 112 getFormatter().parseUnresolved("a", pos); in test_parse_changeStyle_strict() 119 getFormatter().parseUnresolved("a", pos); in test_parse_changeStyle_lenient()
|
D | TestReducedParser.java | 123 getFormatter0(field, width, baseValue).parseUnresolved(text, new ParsePosition(pos)); in test_parse_error() 132 TemporalAccessor parsed = getFormatter0(DAY_OF_YEAR, 3, 10).parseUnresolved("456", pos); in test_parse_fieldRangeIgnored() 189 … TemporalAccessor parsed = getFormatter0(field, width, baseValue).parseUnresolved(input, ppos); in test_parseAllStrict() 203 … TemporalAccessor parsed = getFormatter0(field, width, baseValue).parseUnresolved(input, ppos); in test_parseAllLenient() 276 …Accessor parsed = getFormatter0(field, minWidth, maxWidth, baseValue).parseUnresolved(input, ppos); in test_parseStrict() 291 …r parsed = getFormatterBaseDate(field, minWidth, maxWidth, baseValue).parseUnresolved(input, ppos); in test_parseStrict_baseDate() 309 …Accessor parsed = getFormatter0(field, minWidth, maxWidth, baseValue).parseUnresolved(input, ppos); in test_parseLenient() 324 …r parsed = getFormatterBaseDate(field, minWidth, maxWidth, baseValue).parseUnresolved(input, ppos); in test_parseLenient_baseDate() 374 TemporalAccessor parsed = dtf.parseUnresolved(input, ppos); in test_parseAdjacent() 422 TemporalAccessor parsed = df.parseUnresolved(input, pos); in test_reducedWithChronoYear() [all …]
|
D | TestFractionPrinterParser.java | 246 …essor parsed = getFormatter(NANO_OF_SECOND, minWidth, maxWidth, true).parseUnresolved(result, pos); in test_reverseParse() 254 …ssor parsed = getFormatter(NANO_OF_SECOND, minWidth, maxWidth, false).parseUnresolved(result, pos); in test_reverseParse_noDecimalPoint() 264 …ssor parsed = getFormatter(NANO_OF_SECOND, minWidth, maxWidth, true).parseUnresolved(result + " ",… in test_reverseParse_followedByNonDigit() 282 …ssor parsed = getFormatter(NANO_OF_SECOND, minWidth, maxWidth, true).parseUnresolved(" " + result,… in test_reverseParse_preceededByNonDigit() 298 …sor parsed = getFormatter(SECOND_OF_MINUTE, minWidth, maxWidth, true).parseUnresolved(result, pos); in test_reverseParse_seconds() 329 … TemporalAccessor parsed = getFormatter(field, min, max, decimalPoint).parseUnresolved(text, ppos); in test_parse_nothing()
|
D | TestCharLiteralParser.java | 108 TemporalAccessor parsed = getFormatter(c).parseUnresolved(text, ppos); in test_parse_success() 132 getFormatter(c).parseUnresolved(text, ppos); in test_parse_error()
|
D | TestStringLiteralParser.java | 111 TemporalAccessor parsed = getFormatter(s).parseUnresolved(text, ppos); in test_parse_success() 135 getFormatter(s).parseUnresolved(text, ppos); in test_parse_error()
|
D | TestNumberParser.java | 98 getFormatter(field, min, max, style).parseUnresolved(text, new ParsePosition(pos)); in test_parse_error() 174 TemporalAccessor parsed = dtf.parseUnresolved(text, ppos); in test_parse_fresh() 194 TemporalAccessor parsed = dtf.parseUnresolved(text, ppos); in test_parse_textField() 310 … TemporalAccessor parsed = getFormatter(DAY_OF_MONTH, min, max, style).parseUnresolved(input, pos); in test_parseSignsStrict() 420 … TemporalAccessor parsed = getFormatter(DAY_OF_MONTH, min, max, style).parseUnresolved(input, pos); in test_parseSignsLenient() 511 … TemporalAccessor parsed = getFormatter(DAY_OF_MONTH, min, max, style).parseUnresolved(input, pos); in test_parseDigitsLenient() 548 TemporalAccessor parsed = f.parseUnresolved(input, pos); in test_parseDigitsAdjacentLenient()
|
D | TestDateTimeFormatterBuilder.java | 228 TemporalAccessor parsed = f.parseUnresolved("123", new ParsePosition(0)); in test_appendValue_subsequent2_parse3() 238 TemporalAccessor parsed = f.parseUnresolved("0123", new ParsePosition(0)); in test_appendValue_subsequent2_parse4() 248 TemporalAccessor parsed = f.parseUnresolved("01234", new ParsePosition(0)); in test_appendValue_subsequent2_parse5() 261 TemporalAccessor parsed = f.parseUnresolved("20090630", new ParsePosition(0)); in test_appendValue_subsequent3_parse6() 278 TemporalAccessor parsed = f.parseUnresolved("12", new ParsePosition(0)); in test_appendValueReduced() 288 TemporalAccessor parsed = f.parseUnresolved("123", ppos); in test_appendValueReduced_subsequent_parse()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKPadPrinterParser.java | 95 builder.toFormatter().parseUnresolved("--Z", new ParsePosition(-1)); in test_parse_negativePosition() 101 builder.toFormatter().parseUnresolved("--Z", new ParsePosition(4)); in test_parse_offEndPosition() 132 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos); in test_parseStrict() 173 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos); in test_parseLenient() 188 TemporalAccessor parsed = builder.toFormatter().parseUnresolved("--HELLO-", pos); in test_parse_decoratedStartsWithPad() 197 TemporalAccessor parsed = builder.toFormatter().parseUnresolved("--2", pos); in test_parse_decoratedStartsWithPad_number() 208 TemporalAccessor parsed = builder.toFormatter().parseUnresolved("----", pos); in test_parse_decoratedEmpty_strict() 217 TemporalAccessor parsed = builder.toFormatter().parseUnresolved("----", pos); in test_parse_decoratedEmpty_lenient()
|
D | TCKChronoPrinterParser.java | 98 builder.appendChronologyId().toFormatter().parseUnresolved("ISO", new ParsePosition(-1)); in test_parse_negativePosition() 103 builder.appendChronologyId().toFormatter().parseUnresolved("ISO", new ParsePosition(4)); in test_parse_offEndPosition() 123 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos); in test_parseValid_caseSensitive() 132 …TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text.toLowerCase(Locale.ENGLISH), … in test_parseValid_caseSensitive_lowercaseRejected() 141 …TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text.toLowerCase(Locale.ENGLISH), … in test_parseValid_caseInsensitive() 161 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos); in test_parseInvalid()
|
D | TCKDateTimeFormatterBuilder.java | 741 TemporalAccessor parsed = f.parseUnresolved("12309", pp); in test_adjacent_strict_firstFixedWidth() 753 TemporalAccessor parsed = f.parseUnresolved("12309Z", pp); in test_adjacent_strict_firstVariableWidth_success() 765 TemporalAccessor parsed = f.parseUnresolved("12309", pp); in test_adjacent_strict_firstVariableWidth_fails() 775 TemporalAccessor parsed = f.parseUnresolved("12309", pp); in test_adjacent_lenient() 787 TemporalAccessor parsed = f.parseUnresolved("12309Z", pp); in test_adjacent_lenient_firstVariableWidth_success() 799 TemporalAccessor parsed = f.parseUnresolved("12309", pp); in test_adjacent_lenient_firstVariableWidth_fails() 810 TemporalAccessor parsed = f.parseUnresolved("1230567", pp); in test_adjacent_strict_fractionFollows() 823 TemporalAccessor parsed = f.parseUnresolved("123056", pp); in test_adjacent_strict_fractionFollows_2digit() 836 TemporalAccessor parsed = f.parseUnresolved("1230", pp); in test_adjacent_strict_fractionFollows_0digit() 848 TemporalAccessor parsed = f.parseUnresolved("1230567", pp); in test_adjacent_lenient_fractionFollows() [all …]
|
D | TCKZoneIdPrinterParser.java | 213 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos); in test_parseSuccess_plain() 230 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(prefixText, pos); in test_parseSuccess_prefix() 246 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(suffixText, pos); in test_parseSuccess_suffix() 262 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(lcText, pos); in test_parseSuccess_caseSensitive() 285 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(lcText, pos); in test_parseSuccess_caseInsensitive()
|
D | TCKLocalizedFieldParser.java | 121 TemporalAccessor parsed = dtf.parseUnresolved(text, ppos); in test_parse_textField() 153 TemporalAccessor parsed = dtf.parseUnresolved(text, ppos); in test_parse_textLocalDate() 190 TemporalAccessor parsed = dtf.parseUnresolved(text, ppos); in test_parse_WeekBasedYear()
|
D | TCKDateTimeFormatters.java | 249 …assertParseMatch(DateTimeFormatter.ISO_LOCAL_DATE.parseUnresolved(input, new ParsePosition(0)), ex… in test_parse_isoLocalDate() 256 …assertParseMatch(DateTimeFormatter.ISO_LOCAL_DATE.parseUnresolved("+999999999-08-06", new ParsePos… in test_parse_isoLocalDate_999999999() 263 …assertParseMatch(DateTimeFormatter.ISO_LOCAL_DATE.parseUnresolved("+1000000000-08-06", new ParsePo… in test_parse_isoLocalDate_1000000000() 274 …assertParseMatch(DateTimeFormatter.ISO_LOCAL_DATE.parseUnresolved("-999999999-08-06", new ParsePos… in test_parse_isoLocalDate_M999999999() 281 …assertParseMatch(DateTimeFormatter.ISO_LOCAL_DATE.parseUnresolved("-1000000000-08-06", new ParsePo… in test_parse_isoLocalDate_M1000000000() 343 …assertParseMatch(DateTimeFormatter.ISO_OFFSET_DATE.parseUnresolved(input, new ParsePosition(0)), e… in test_parse_isoOffsetDate() 403 …assertParseMatch(DateTimeFormatter.ISO_DATE.parseUnresolved(input, new ParsePosition(0)), expected… in test_parse_isoDate() 473 …assertParseMatch(DateTimeFormatter.ISO_LOCAL_TIME.parseUnresolved(input, new ParsePosition(0)), ex… in test_parse_isoLocalTime() 543 …assertParseMatch(DateTimeFormatter.ISO_OFFSET_TIME.parseUnresolved(input, new ParsePosition(0)), e… in test_parse_isoOffsetTime() 615 …assertParseMatch(DateTimeFormatter.ISO_TIME.parseUnresolved(input, new ParsePosition(0)), expected… in test_parse_isoTime() [all …]
|
D | TCKDateTimeFormatter.java | 696 TemporalAccessor result = test.parseUnresolved("ONE30XXX", pos); in test_parseUnresolved_StringParsePosition() 706 TemporalAccessor result = test.parseUnresolved("ONEXXX", pos); in test_parseUnresolved_StringParsePosition_parseError() 717 TemporalAccessor result = test.parseUnresolved("XXX6-6", pos); in test_parseUnresolved_StringParsePosition_duplicateFieldSameValue() 728 TemporalAccessor result = test.parseUnresolved("XXX6-7", pos); in test_parseUnresolved_StringParsePosition_duplicateFieldDifferentValue() 738 test.parseUnresolved((String) null, pos); in test_parseUnresolved_StringParsePosition_nullString() 744 test.parseUnresolved("ONE30", (ParsePosition) null); in test_parseUnresolved_StringParsePosition_nullParsePosition() 751 test.parseUnresolved("ONE30", pos); in test_parseUnresolved_StringParsePosition_invalidPosition()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatter.java | 1997 public TemporalAccessor parseUnresolved(CharSequence text, ParsePosition position) { in parseUnresolved() method in DateTimeFormatter
|
/libcore/api/ |
D | current.txt | 11714 …method public java.time.temporal.TemporalAccessor parseUnresolved(CharSequence, java.text.ParsePos…
|