Searched defs:lenient (Results 1 - 3 of 3) sorted by relevance

/libcore/ojluni/src/test/java/time/test/java/time/format/
H A DTestReducedParser.java138 // Parse data and values that are consistent whether strict or lenient
214 // Parse data and values in strict and lenient modes.
222 {YEAR, 2, 2, 2010, "3", 0, strict(0, null), lenient(1, 3)},
223 {YEAR, 2, 2, 2010, "4", 0, strict(0, null), lenient(1, 4)},
224 {YEAR, 2, 2, 2010, "5", 1, strict(1, null), lenient(1, null)},
225 {YEAR, 2, 2, 2010, "6-2", 0, strict(0, null), lenient(1, 6)},
226 {YEAR, 2, 2, 2010, "9", 0, strict(0, null), lenient(1, 9)},
229 {YEAR, 1, 4, 2000, "7A", 0, strict(1, 2007), lenient(1, 2007)},
230 {YEAR, 2, 2, 2010, "8A", 0, strict(0, null), lenient(1, 8)},
233 {YEAR, 2, 4, 2000, "-1", 0, strict(0, null), lenient(
272 test_parseStrict(TemporalField field, int minWidth, int maxWidth, int baseValue, String input, int pos, Pair strict, Pair lenient) argument
287 test_parseStrict_baseDate(TemporalField field, int minWidth, int maxWidth, int baseValue, String input, int pos, Pair strict, Pair lenient) argument
305 test_parseLenient(TemporalField field, int minWidth, int maxWidth, int baseValue, String input, int pos, Pair strict, Pair lenient) argument
320 test_parseLenient_baseDate(TemporalField field, int minWidth, int maxWidth, int baseValue, String input, int pos, Pair strict, Pair lenient) argument
501 private static Pair lenient(int parseLen, Integer parseVal) { method in class:TestReducedParser
[all...]
/libcore/ojluni/src/main/java/java/text/
H A DDateFormat.java372 * <p> By default, parsing is lenient: If the input is not in the form used
708 * Specify whether or not date/time parsing is to be lenient. With
709 * lenient parsing, the parser may use heuristics to interpret inputs that
715 * getCalendar().setLenient(lenient)
721 * @param lenient when {@code true}, parsing is lenient
724 public void setLenient(boolean lenient) argument
726 calendar.setLenient(lenient);
730 * Tell whether date/time parsing is to be lenient.
736 * @return {@code true} if the {@link #calendar} is lenient;
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DCalendar.java105 * fields, <em>lenient</em> and <em>non-lenient</em>. When a
106 * <code>Calendar</code> is in lenient mode, it accepts a wider range of
109 * the calendar fields are normalized. For example, a lenient
113 * <p>When a <code>Calendar</code> is in non-lenient mode, it throws an
117 * non-lenient <code>GregorianCalendar</code> throws an exception upon
356 // the Calendar is lenient, the fields are also renormalized to standard
896 private boolean lenient = true; field in class:Calendar
1083 private boolean lenient = true; field in class:Calendar.Builder
1139 * normalized in lenient mod
1324 setLenient(boolean lenient) argument
2915 setLenient(boolean lenient) argument
[all...]

Completed in 50 milliseconds