/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestZoneOffsetParser.java | 100 TemporalAccessor parsed = getFormatter("+HH:MM:ss", "Z").parseUnresolved("Z", pos); in test_parse_exactMatch_UTC() local 107 TemporalAccessor parsed = getFormatter("+HH:MM:ss", "Z").parseUnresolved("ZOTHER", pos); in test_parse_startStringMatch_UTC() local 114 … TemporalAccessor parsed = getFormatter("+HH:MM:ss", "Z").parseUnresolved("OTHERZOTHER", pos); in test_parse_midStringMatch_UTC() local 121 TemporalAccessor parsed = getFormatter("+HH:MM:ss", "Z").parseUnresolved("OTHERZ", pos); in test_parse_endStringMatch_UTC() local 129 TemporalAccessor parsed = getFormatter("+HH:MM:ss", "").parseUnresolved("", pos); in test_parse_exactMatch_UTC_EmptyUTC() local 136 TemporalAccessor parsed = getFormatter("+HH:MM:ss", "").parseUnresolved("OTHER", pos); in test_parse_startStringMatch_UTC_EmptyUTC() local 143 TemporalAccessor parsed = getFormatter("+HH:MM:ss", "").parseUnresolved("OTHEROTHER", pos); in test_parse_midStringMatch_UTC_EmptyUTC() local 150 TemporalAccessor parsed = getFormatter("+HH:MM:ss", "").parseUnresolved("OTHER", pos); in test_parse_endStringMatch_UTC_EmptyUTC() local 234 TemporalAccessor parsed = getFormatter(pattern, "Z").parseUnresolved(parse, pos); in test_parse_exactMatch() local 242 TemporalAccessor parsed = getFormatter(pattern, "Z").parseUnresolved(parse + ":OTHER", pos); in test_parse_startStringMatch() local [all …]
|
D | TestReducedParser.java | 132 TemporalAccessor parsed = getFormatter0(DAY_OF_YEAR, 3, 10).parseUnresolved("456", pos); in test_parse_fieldRangeIgnored() local 189 … TemporalAccessor parsed = getFormatter0(field, width, baseValue).parseUnresolved(input, ppos); in test_parseAllStrict() local 203 … TemporalAccessor parsed = getFormatter0(field, width, baseValue).parseUnresolved(input, ppos); in test_parseAllLenient() local 276 …TemporalAccessor parsed = getFormatter0(field, minWidth, maxWidth, baseValue).parseUnresolved(inpu… in test_parseStrict() local 291 …TemporalAccessor parsed = getFormatterBaseDate(field, minWidth, maxWidth, baseValue).parseUnresolv… in test_parseStrict_baseDate() local 309 …TemporalAccessor parsed = getFormatter0(field, minWidth, maxWidth, baseValue).parseUnresolved(inpu… in test_parseLenient() local 324 …TemporalAccessor parsed = getFormatterBaseDate(field, minWidth, maxWidth, baseValue).parseUnresolv… in test_parseLenient_baseDate() local 334 private void assertParsed(TemporalAccessor parsed, TemporalField field, Long value) { in assertParsed() 374 TemporalAccessor parsed = dtf.parseUnresolved(input, ppos); in test_parseAdjacent() local 422 TemporalAccessor parsed = df.parseUnresolved(input, pos); in test_reducedWithChronoYear() local [all …]
|
D | TestFractionPrinterParser.java | 246 …TemporalAccessor parsed = getFormatter(NANO_OF_SECOND, minWidth, maxWidth, true).parseUnresolved(r… in test_reverseParse() local 254 …TemporalAccessor parsed = getFormatter(NANO_OF_SECOND, minWidth, maxWidth, false).parseUnresolved(… in test_reverseParse_noDecimalPoint() local 264 …TemporalAccessor parsed = getFormatter(NANO_OF_SECOND, minWidth, maxWidth, true).parseUnresolved(r… in test_reverseParse_followedByNonDigit() local 282 …TemporalAccessor parsed = getFormatter(NANO_OF_SECOND, minWidth, maxWidth, true).parseUnresolved("… in test_reverseParse_preceededByNonDigit() local 298 …TemporalAccessor parsed = getFormatter(SECOND_OF_MINUTE, minWidth, maxWidth, true).parseUnresolved… in test_reverseParse_seconds() local 303 private void assertParsed(TemporalAccessor parsed, TemporalField field, Long value) { in assertParsed() 329 … TemporalAccessor parsed = getFormatter(field, min, max, decimalPoint).parseUnresolved(text, ppos); in test_parse_nothing() local
|
D | TestNumberParser.java | 174 TemporalAccessor parsed = dtf.parseUnresolved(text, ppos); in test_parse_fresh() local 194 TemporalAccessor parsed = dtf.parseUnresolved(text, ppos); in test_parse_textField() local 310 … TemporalAccessor parsed = getFormatter(DAY_OF_MONTH, min, max, style).parseUnresolved(input, pos); in test_parseSignsStrict() local 420 … TemporalAccessor parsed = getFormatter(DAY_OF_MONTH, min, max, style).parseUnresolved(input, pos); in test_parseSignsLenient() local 511 … TemporalAccessor parsed = getFormatter(DAY_OF_MONTH, min, max, style).parseUnresolved(input, pos); in test_parseDigitsLenient() local 548 TemporalAccessor parsed = f.parseUnresolved(input, pos); in test_parseDigitsAdjacentLenient() local
|
D | TestDateTimeFormatterBuilder.java | 228 TemporalAccessor parsed = f.parseUnresolved("123", new ParsePosition(0)); in test_appendValue_subsequent2_parse3() local 238 TemporalAccessor parsed = f.parseUnresolved("0123", new ParsePosition(0)); in test_appendValue_subsequent2_parse4() local 248 TemporalAccessor parsed = f.parseUnresolved("01234", new ParsePosition(0)); in test_appendValue_subsequent2_parse5() local 261 TemporalAccessor parsed = f.parseUnresolved("20090630", new ParsePosition(0)); in test_appendValue_subsequent3_parse6() local 278 TemporalAccessor parsed = f.parseUnresolved("12", new ParsePosition(0)); in test_appendValueReduced() local 288 TemporalAccessor parsed = f.parseUnresolved("123", ppos); in test_appendValueReduced_subsequent_parse() local 473 ZoneOffset parsed = f.parse(expected, ZoneOffset::from); in test_appendOffset_parse() local
|
D | TestCharLiteralParser.java | 108 TemporalAccessor parsed = getFormatter(c).parseUnresolved(text, ppos); in test_parse_success() local
|
D | TestStringLiteralParser.java | 111 TemporalAccessor parsed = getFormatter(s).parseUnresolved(text, ppos); in test_parse_success() local
|
D | TestTextParser.java | 126 TemporalAccessor parsed = in test_parse_noMatch1() local 134 TemporalAccessor parsed = in test_parse_noMatch2() local 142 TemporalAccessor parsed = in test_parse_noMatch_atEnd() local
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKPadPrinterParser.java | 132 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos); in test_parseStrict() local 173 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos); in test_parseLenient() local 188 TemporalAccessor parsed = builder.toFormatter().parseUnresolved("--HELLO-", pos); in test_parse_decoratedStartsWithPad() local 197 TemporalAccessor parsed = builder.toFormatter().parseUnresolved("--2", pos); in test_parse_decoratedStartsWithPad_number() local 208 TemporalAccessor parsed = builder.toFormatter().parseUnresolved("----", pos); in test_parse_decoratedEmpty_strict() local 217 TemporalAccessor parsed = builder.toFormatter().parseUnresolved("----", pos); in test_parse_decoratedEmpty_lenient() local
|
D | TCKChronoPrinterParser.java | 123 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos); in test_parseValid_caseSensitive() local 132 …TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text.toLowerCase(Locale.ENGLISH), … in test_parseValid_caseSensitive_lowercaseRejected() local 141 …TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text.toLowerCase(Locale.ENGLISH), … in test_parseValid_caseInsensitive() local 161 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos); in test_parseInvalid() local
|
D | TCKDateTimeFormatterBuilder.java | 114 LocalDate parsed = f.parse("", LocalDate::from); // blank string can be parsed in test_parseDefaulting_entireDate() local 392 ZoneOffset parsed = f.parse(expected, ZoneOffset::from); in test_appendOffset_parse() local 741 TemporalAccessor parsed = f.parseUnresolved("12309", pp); in test_adjacent_strict_firstFixedWidth() local 753 TemporalAccessor parsed = f.parseUnresolved("12309Z", pp); in test_adjacent_strict_firstVariableWidth_success() local 765 TemporalAccessor parsed = f.parseUnresolved("12309", pp); in test_adjacent_strict_firstVariableWidth_fails() local 775 TemporalAccessor parsed = f.parseUnresolved("12309", pp); in test_adjacent_lenient() local 787 TemporalAccessor parsed = f.parseUnresolved("12309Z", pp); in test_adjacent_lenient_firstVariableWidth_success() local 799 TemporalAccessor parsed = f.parseUnresolved("12309", pp); in test_adjacent_lenient_firstVariableWidth_fails() local 810 TemporalAccessor parsed = f.parseUnresolved("1230567", pp); in test_adjacent_strict_fractionFollows() local 823 TemporalAccessor parsed = f.parseUnresolved("123056", pp); in test_adjacent_strict_fractionFollows_2digit() local [all …]
|
D | TCKLocalizedFieldParser.java | 121 TemporalAccessor parsed = dtf.parseUnresolved(text, ppos); in test_parse_textField() local 153 TemporalAccessor parsed = dtf.parseUnresolved(text, ppos); in test_parse_textLocalDate() local 190 TemporalAccessor parsed = dtf.parseUnresolved(text, ppos); in test_parse_WeekBasedYear() local
|
D | TCKZoneIdPrinterParser.java | 213 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos); in test_parseSuccess_plain() local 230 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(prefixText, pos); in test_parseSuccess_prefix() local 246 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(suffixText, pos); in test_parseSuccess_suffix() local 262 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(lcText, pos); in test_parseSuccess_caseSensitive() local 285 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(lcText, pos); in test_parseSuccess_caseInsensitive() local
|
D | TCKLocalizedPrinterParser.java | 162 TemporalAccessor parsed = f.parse(text, pos); in test_date_parse() local 215 TemporalAccessor parsed = f.parse(text, pos); in test_time_parse() local
|
D | TCKInstantPrinterParser.java | 256 TemporalAccessor parsed = f.withResolverStyle(style).parse("1970-02-03T24:00:00Z"); in test_parse_endOfDay() local 268 … TemporalAccessor parsed = f.withResolverStyle(style).parse("1970-02-03T23:59:60.123456789Z"); in test_parse_leapSecond() local
|
D | TCKDateTimeFormatter.java | 185 LocalDate parsed = f.parse("2012-6-30-321", LocalDate::from); // ignored day-of-year in test_resolverFields_selectOneDateResolveYMD() local 204 LocalDate parsed = f.parse("2012-6-30-321", LocalDate::from); // ignored month/day-of-month in test_resolverFields_selectOneDateResolveYD() local 220 LocalDate parsed = f.parse("2012-321-1", LocalDate::from); // ignored wrong day-of-week in test_resolverFields_ignoreCrossCheck() local 228 TemporalAccessor parsed = f.parse("2012"); in test_resolverFields_emptyList() local 236 TemporalAccessor parsed = f.parse("2012"); in test_resolverFields_listOfOneMatching() local 244 TemporalAccessor parsed = f.parse("2012"); in test_resolverFields_listOfOneNotMatching() local 253 TemporalAccessor parsed = f.parse("2012"); in test_resolverFields_listOfOneNull() local
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKIsoFields.java | 158 LocalDate parsed = LocalDate.parse(date.getYear() + "-" + qoy + "-" + doq, f); in test_parse_quarters() local 169 LocalDate parsed = LocalDate.parse(date.getYear() + "-" + qoy + "-" + doq, f); in test_parse_quarters_SMART() local 180 LocalDate parsed = LocalDate.parse(date.getYear() + "-" + qoy + "-" + doq, f); in test_parse_quarters_LENIENT() local 226 LocalDate parsed = LocalDate.parse(str, f); in test_parse_parseLenientQuarter_SMART() local 245 LocalDate parsed = LocalDate.parse(str, f); in test_parse_parseLenientQuarter_LENIENT() local 357 LocalDate parsed = LocalDate.parse(wby + "-" + week + "-" + dow.getValue(), f); in test_parse_weeks_STRICT() local 368 LocalDate parsed = LocalDate.parse(wby + "-" + week + "-" + dow.getValue(), f); in test_parse_weeks_SMART() local 379 LocalDate parsed = LocalDate.parse(wby + "-" + week + "-" + dow.getValue(), f); in test_parse_weeks_LENIENT() local 418 LocalDate parsed = LocalDate.parse(str, f); in test_parse_parseLenientWeek_SMART() local 437 LocalDate parsed = LocalDate.parse(str, f); in test_parse_parseLenientWeek_LENIENT() local
|
D | TCKJulianFields.java | 146 LocalDate parsed = LocalDate.parse(Long.toString(value), f); in test_samples_parse_STRICT() local 154 LocalDate parsed = LocalDate.parse(Long.toString(value), f); in test_samples_parse_SMART() local 162 LocalDate parsed = LocalDate.parse(Long.toString(value), f); in test_samples_parse_LENIENT() local
|
D | TCKWeekFields.java | 392 LocalDate parsed = LocalDate.parse(str, f); in test_parse_resolve_localizedWom() local 415 LocalDate parsed = LocalDate.parse(str, f); in test_parse_resolve_localizedWom_lenient() local 460 LocalDate parsed = LocalDate.parse(str, f); in test_parse_resolve_localizedWomDow() local 484 LocalDate parsed = LocalDate.parse(str, f); in test_parse_resolve_localizedWomDow_lenient() local 506 LocalDate parsed = LocalDate.parse(str, f); in test_parse_resolve_localizedWoy() local 528 LocalDate parsed = LocalDate.parse(str, f); in test_parse_resolve_localizedWoy_lenient() local 571 LocalDate parsed = LocalDate.parse(str, f); in test_parse_resolve_localizedWoyDow() local 594 LocalDate parsed = LocalDate.parse(str, f); in test_parse_resolve_localizedWoyDow_lenient() local 617 LocalDate parsed = LocalDate.parse(str, f); in test_parse_resolve_localizedWoWBY() local 640 LocalDate parsed = LocalDate.parse(str, f); in test_parse_resolve_localizedWoWBY_lenient() local [all …]
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeParseContext.java | 109 private final ArrayList<Parsed> parsed = new ArrayList<>(); field in DateTimeParseContext 328 Parsed parsed = currentParsed(); in toResolved() local
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestDateTimeBuilderCombinations.java | 149 TemporalAccessor parsed = dtfb.toFormatter().parse(str); in test_derive() local
|
/libcore/ojluni/annotations/hiddenapi/java/time/ |
D | Duration.java | 119 java.lang.String parsed, in parseNumber() 126 java.lang.CharSequence text, java.lang.String parsed, int negate) { in parseFraction()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | LocaleLanguageRangeTest.java | 366 List<String> parsed = rangesToStrings(LanguageRange.parse("ccq-xx")); in testParse_multiEquivalent_consistency() local
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | BigDecimalTest.java | 58 BigDecimal parsed = new BigDecimal(value); in assertPrecision() local
|
/libcore/ojluni/src/main/java/java/time/ |
D | Duration.java | 411 …private static long parseNumber(CharSequence text, String parsed, int multiplier, String errorText… in parseNumber() 424 private static int parseFraction(CharSequence text, String parsed, int negate) { in parseFraction()
|