Home
last modified time | relevance | path

Searched refs:parseUnresolved (Results 1 – 18 of 18) sorted by relevance

/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestZoneOffsetParser.java91 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 …]
DTestTextParser.java100 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 …]
DTestSettingsParser.java98 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()
DTestReducedParser.java123 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 …]
DTestFractionPrinterParser.java246 …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()
DTestCharLiteralParser.java108 TemporalAccessor parsed = getFormatter(c).parseUnresolved(text, ppos); in test_parse_success()
132 getFormatter(c).parseUnresolved(text, ppos); in test_parse_error()
DTestStringLiteralParser.java111 TemporalAccessor parsed = getFormatter(s).parseUnresolved(text, ppos); in test_parse_success()
135 getFormatter(s).parseUnresolved(text, ppos); in test_parse_error()
DTestNumberParser.java98 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()
DTestDateTimeFormatterBuilder.java228 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/
DTCKPadPrinterParser.java95 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()
DTCKChronoPrinterParser.java98 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()
DTCKDateTimeFormatterBuilder.java741 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 …]
DTCKZoneIdPrinterParser.java213 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()
DTCKLocalizedFieldParser.java121 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()
DTCKDateTimeFormatters.java249 …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 …]
DTCKDateTimeFormatter.java696 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/
DDateTimeFormatter.java1997 public TemporalAccessor parseUnresolved(CharSequence text, ParsePosition position) { in parseUnresolved() method in DateTimeFormatter
/libcore/api/
Dcurrent.txt11714 …method public java.time.temporal.TemporalAccessor parseUnresolved(CharSequence, java.text.ParsePos…