/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 | 101 getFormatter(field, style).parseUnresolved(text, new ParsePosition(pos)); in test_parse_error() 111 .parseUnresolved("XxxMondayXxx", pos) in test_parse_midStr() 119 .parseUnresolved("Wednesday", pos) in test_parse_remainderIgnored() 128 getFormatter(DAY_OF_WEEK, TextStyle.FULL).parseUnresolved("Munday", pos); in test_parse_noMatch1() 136 getFormatter(DAY_OF_WEEK, TextStyle.FULL).parseUnresolved("Monday", pos); in test_parse_noMatch2() 144 getFormatter(DAY_OF_WEEK, TextStyle.FULL).parseUnresolved("Monday", pos); in test_parse_noMatch_atEnd() 221 … assertEquals(getFormatter(field, style).parseUnresolved(input, pos).getLong(field), (long) value); in test_parseText() 228 … assertEquals(getFormatter(field, style).parseUnresolved(input, pos).getLong(field), (long) value); in test_parseNumber() 249 getFormatter(field, style).parseUnresolved(input.toUpperCase(Locale.ROOT), pos); in test_parse_strict_caseSensitive_parseUpper() 257 …assertEquals(getFormatter(field, style).parseUnresolved(input.toUpperCase(Locale.ROOT), pos).getLo… in test_parse_strict_caseInsensitive_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 | 249 …essor parsed = getFormatter(NANO_OF_SECOND, minWidth, maxWidth, true).parseUnresolved(result, pos); in test_reverseParse() 257 …ssor parsed = getFormatter(NANO_OF_SECOND, minWidth, maxWidth, false).parseUnresolved(result, pos); in test_reverseParse_noDecimalPoint() 267 …ssor parsed = getFormatter(NANO_OF_SECOND, minWidth, maxWidth, true).parseUnresolved(result + " ",… in test_reverseParse_followedByNonDigit() 285 …ssor parsed = getFormatter(NANO_OF_SECOND, minWidth, maxWidth, true).parseUnresolved(" " + result,… in test_reverseParse_preceededByNonDigit() 301 …sor parsed = getFormatter(SECOND_OF_MINUTE, minWidth, maxWidth, true).parseUnresolved(result, pos); in test_reverseParse_seconds() 332 … TemporalAccessor parsed = getFormatter(field, min, max, decimalPoint).parseUnresolved(text, ppos); in test_parse_nothing()
|
D | TestTextParserWithLocale.java | 154 assertEquals(formatter.parseUnresolved(input, pos).getLong(field), (long) expectedValue); in test_parseStandaloneText() 163 .parseUnresolved("janvier", pos); in test_parse_french_short_strict_full_noMatch() 171 .parseUnresolved("janv.", pos) in test_parse_french_short_strict_short_match() 184 assertEquals(formatter.parseUnresolved(input, pos).getLong(field), (long) expectedValue); in test_parseLenientText()
|
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 | 238 TemporalAccessor parsed = f.parseUnresolved("123", new ParsePosition(0)); in test_appendValue_subsequent2_parse3() 248 TemporalAccessor parsed = f.parseUnresolved("0123", new ParsePosition(0)); in test_appendValue_subsequent2_parse4() 258 TemporalAccessor parsed = f.parseUnresolved("01234", new ParsePosition(0)); in test_appendValue_subsequent2_parse5() 271 TemporalAccessor parsed = f.parseUnresolved("20090630", new ParsePosition(0)); in test_appendValue_subsequent3_parse6() 288 TemporalAccessor parsed = f.parseUnresolved("12", new ParsePosition(0)); in test_appendValueReduced() 298 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 | TCKLocalizedFieldParser.java | 129 TemporalAccessor parsed = dtf.parseUnresolved(text, ppos); in test_parse_textField() 161 TemporalAccessor parsed = dtf.parseUnresolved(text, ppos); in test_parse_textLocalDate() 198 TemporalAccessor parsed = dtf.parseUnresolved(text, ppos); in test_parse_WeekBasedYear() 228 TemporalAccessor parsed = df.parseUnresolved(text, ppos); in test_adjacentValuePatterns1() 251 TemporalAccessor parsed = df.parseUnresolved(text, ppos); in test_adjacentValuePatterns2() 264 TemporalAccessor parsed = df.parseUnresolved(text, ppos); in test_adjacentValuePatterns3()
|
D | TCKDateTimeFormatterBuilder.java | 1116 TemporalAccessor parsed = f.parseUnresolved("12309", pp); in test_adjacent_strict_firstFixedWidth() 1128 TemporalAccessor parsed = f.parseUnresolved("12309Z", pp); in test_adjacent_strict_firstVariableWidth_success() 1140 TemporalAccessor parsed = f.parseUnresolved("12309", pp); in test_adjacent_strict_firstVariableWidth_fails() 1150 TemporalAccessor parsed = f.parseUnresolved("12309", pp); in test_adjacent_lenient() 1162 TemporalAccessor parsed = f.parseUnresolved("12309Z", pp); in test_adjacent_lenient_firstVariableWidth_success() 1174 TemporalAccessor parsed = f.parseUnresolved("12309", pp); in test_adjacent_lenient_firstVariableWidth_fails() 1185 TemporalAccessor parsed = f.parseUnresolved("1230567", pp); in test_adjacent_strict_fractionFollows() 1198 TemporalAccessor parsed = f.parseUnresolved("123056", pp); in test_adjacent_strict_fractionFollows_2digit() 1211 TemporalAccessor parsed = f.parseUnresolved("1230", pp); in test_adjacent_strict_fractionFollows_0digit() 1223 TemporalAccessor parsed = f.parseUnresolved("1230567", pp); in test_adjacent_lenient_fractionFollows() [all …]
|
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 | TCKZoneIdPrinterParser.java | 247 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(lcText, pos); in test_ZoneId_parseSuccess_caseSensitive() 299 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(lcText, pos); in test_ZoneOrOffsetId_parseSuccess_caseSensitive() 318 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos); in test()
|
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 | 2098 public TemporalAccessor parseUnresolved(CharSequence text, ParsePosition position) { in parseUnresolved() method in DateTimeFormatter
|
/libcore/api/ |
D | current.txt | 12629 …method public java.time.temporal.TemporalAccessor parseUnresolved(CharSequence, java.text.ParsePos…
|