Home
last modified time | relevance | path

Searched refs:strict (Results 1 – 15 of 15) sorted by relevance

/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestReducedParser.java222 {YEAR, 2, 2, 2010, "3", 0, strict(0, null), lenient(1, 3)}, in provider_parseLenientSensitive()
223 {YEAR, 2, 2, 2010, "4", 0, strict(0, null), lenient(1, 4)}, in provider_parseLenientSensitive()
224 {YEAR, 2, 2, 2010, "5", 1, strict(1, null), lenient(1, null)}, in provider_parseLenientSensitive()
225 {YEAR, 2, 2, 2010, "6-2", 0, strict(0, null), lenient(1, 6)}, in provider_parseLenientSensitive()
226 {YEAR, 2, 2, 2010, "9", 0, strict(0, null), lenient(1, 9)}, in provider_parseLenientSensitive()
229 {YEAR, 1, 4, 2000, "7A", 0, strict(1, 2007), lenient(1, 2007)}, in provider_parseLenientSensitive()
230 {YEAR, 2, 2, 2010, "8A", 0, strict(0, null), lenient(1, 8)}, in provider_parseLenientSensitive()
233 {YEAR, 2, 4, 2000, "-1", 0, strict(0, null), lenient(2, -1)}, in provider_parseLenientSensitive()
234 {YEAR, 2, 4, 2000, "-10", 0, strict(0, null), lenient(3, -10)}, in provider_parseLenientSensitive()
237 {YEAR, 2, 4, 2000, "+1", 0, strict(0, null), lenient(2, 1)}, in provider_parseLenientSensitive()
[all …]
DAbstractTestPrinterParser.java108 protected void setStrict(boolean strict) { in setStrict() argument
109 if (strict) { in setStrict()
DTestNonIsoFormatter.java197 public void test_lenientEraYear(Chronology chrono, String lenient, String strict) { in test_lenientEraYear() argument
204 … assertEquals(LocalDate.parse(lenient+mdStr, dtfLenient), LocalDate.parse(strict+mdStr, dtf)); in test_lenientEraYear()
/libcore/ojluni/src/main/java/java/time/format/
DSignStyle.java125 boolean parse(boolean positive, boolean strict, boolean fixedWidth) { in parse() argument
129 return !positive || !strict; in parse()
135 return !strict && !fixedWidth; in parse()
DDateTimeParseContext.java105 private boolean strict = true; field in DateTimeParseContext
133 newContext.strict = strict; in copy()
270 return strict; in isStrict()
278 void setStrict(boolean strict) { in setStrict() argument
279 this.strict = strict; in setStrict()
DDateTimeFormatterBuilder.java2282 final boolean strict = context.isStrict(); in parse()
2292 if (strict) { in parse()
2303 if (resultPos != endPos && strict) { in parse()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKIsoChronology.java434 …d test_resolve_ymd_lenient(int y, int m, int d, LocalDate expected, Object smart, boolean strict) { in test_resolve_ymd_lenient() argument
445 …oid test_resolve_ymd_smart(int y, int m, int d, LocalDate expected, Object smart, boolean strict) { in test_resolve_ymd_smart() argument
468 …id test_resolve_ymd_strict(int y, int m, int d, LocalDate expected, Object smart, boolean strict) { in test_resolve_ymd_strict() argument
473 if (strict) { in test_resolve_ymd_strict()
518 …lic void test_resolve_yd_lenient(int y, int d, LocalDate expected, boolean smart, boolean strict) { in test_resolve_yd_lenient() argument
528 …ublic void test_resolve_yd_smart(int y, int d, LocalDate expected, boolean smart, boolean strict) { in test_resolve_yd_smart() argument
547 …blic void test_resolve_yd_strict(int y, int d, LocalDate expected, boolean smart, boolean strict) { in test_resolve_yd_strict() argument
551 if (strict) { in test_resolve_yd_strict()
625 …solve_ymaa_lenient(int y, int m, int w, int d, LocalDate expected, boolean smart, boolean strict) { in test_resolve_ymaa_lenient() argument
637 …resolve_ymaa_smart(int y, int m, int w, int d, LocalDate expected, boolean smart, boolean strict) { in test_resolve_ymaa_smart() argument
[all …]
DTCKHijrahChronology.java370 … test_resolve_ymd_lenient(int y, int m, int d, HijrahDate expected, Object smart, boolean strict) { in test_resolve_ymd_lenient() argument
391 …id test_resolve_ymd_smart(int y, int m, int d, HijrahDate expected, Object smart, boolean strict) { in test_resolve_ymd_smart() argument
414 …d test_resolve_ymd_strict(int y, int m, int d, HijrahDate expected, Object smart, boolean strict) { in test_resolve_ymd_strict() argument
419 if (strict) { in test_resolve_ymd_strict()
484 …ic void test_resolve_yd_lenient(int y, int d, HijrahDate expected, boolean smart, boolean strict) { in test_resolve_yd_lenient() argument
494 …blic void test_resolve_yd_smart(int y, int d, HijrahDate expected, boolean smart, boolean strict) { in test_resolve_yd_smart() argument
513 …lic void test_resolve_yd_strict(int y, int d, HijrahDate expected, boolean smart, boolean strict) { in test_resolve_yd_strict() argument
517 if (strict) { in test_resolve_yd_strict()
DTCKThaiBuddhistChronology.java685 …resolve_ymd_lenient(int y, int m, int d, ThaiBuddhistDate expected, Object smart, boolean strict) { in test_resolve_ymd_lenient() argument
696 …t_resolve_ymd_smart(int y, int m, int d, ThaiBuddhistDate expected, Object smart, boolean strict) { in test_resolve_ymd_smart() argument
719 …_resolve_ymd_strict(int y, int m, int d, ThaiBuddhistDate expected, Object smart, boolean strict) { in test_resolve_ymd_strict() argument
724 if (strict) { in test_resolve_ymd_strict()
769 …d test_resolve_yd_lenient(int y, int d, ThaiBuddhistDate expected, boolean smart, boolean strict) { in test_resolve_yd_lenient() argument
779 …oid test_resolve_yd_smart(int y, int d, ThaiBuddhistDate expected, boolean smart, boolean strict) { in test_resolve_yd_smart() argument
798 …id test_resolve_yd_strict(int y, int d, ThaiBuddhistDate expected, boolean smart, boolean strict) { in test_resolve_yd_strict() argument
802 if (strict) { in test_resolve_yd_strict()
876 …maa_lenient(int y, int m, int w, int d, ThaiBuddhistDate expected, boolean smart, boolean strict) { in test_resolve_ymaa_lenient() argument
888 …_ymaa_smart(int y, int m, int w, int d, ThaiBuddhistDate expected, boolean smart, boolean strict) { in test_resolve_ymaa_smart() argument
[all …]
DTCKMinguoChronology.java709 … test_resolve_ymd_lenient(int y, int m, int d, MinguoDate expected, Object smart, boolean strict) { in test_resolve_ymd_lenient() argument
720 …id test_resolve_ymd_smart(int y, int m, int d, MinguoDate expected, Object smart, boolean strict) { in test_resolve_ymd_smart() argument
743 …d test_resolve_ymd_strict(int y, int m, int d, MinguoDate expected, Object smart, boolean strict) { in test_resolve_ymd_strict() argument
748 if (strict) { in test_resolve_ymd_strict()
793 …ic void test_resolve_yd_lenient(int y, int d, MinguoDate expected, boolean smart, boolean strict) { in test_resolve_yd_lenient() argument
803 …blic void test_resolve_yd_smart(int y, int d, MinguoDate expected, boolean smart, boolean strict) { in test_resolve_yd_smart() argument
822 …lic void test_resolve_yd_strict(int y, int d, MinguoDate expected, boolean smart, boolean strict) { in test_resolve_yd_strict() argument
826 if (strict) { in test_resolve_yd_strict()
900 …olve_ymaa_lenient(int y, int m, int w, int d, MinguoDate expected, boolean smart, boolean strict) { in test_resolve_ymaa_lenient() argument
912 …esolve_ymaa_smart(int y, int m, int w, int d, MinguoDate expected, boolean smart, boolean strict) { in test_resolve_ymaa_smart() argument
[all …]
DTCKJapaneseChronology.java879 …est_resolve_ymd_lenient(int y, int m, int d, JapaneseDate expected, Object smart, boolean strict) { in test_resolve_ymd_lenient() argument
890 … test_resolve_ymd_smart(int y, int m, int d, JapaneseDate expected, Object smart, boolean strict) { in test_resolve_ymd_smart() argument
913 …test_resolve_ymd_strict(int y, int m, int d, JapaneseDate expected, Object smart, boolean strict) { in test_resolve_ymd_strict() argument
918 if (strict) { in test_resolve_ymd_strict()
963 … void test_resolve_yd_lenient(int y, int d, JapaneseDate expected, boolean smart, boolean strict) { in test_resolve_yd_lenient() argument
973 …ic void test_resolve_yd_smart(int y, int d, JapaneseDate expected, boolean smart, boolean strict) { in test_resolve_yd_smart() argument
992 …c void test_resolve_yd_strict(int y, int d, JapaneseDate expected, boolean smart, boolean strict) { in test_resolve_yd_strict() argument
996 if (strict) { in test_resolve_yd_strict()
/libcore/ojluni/src/main/java/java/util/
DLocale.java1884 private static String normalizeAndValidateLanguage(String language, boolean strict) { in normalizeAndValidateLanguage() argument
1891 if (strict) { in normalizeAndValidateLanguage()
2053 private static String normalizeAndValidateRegion(String region, boolean strict) { in normalizeAndValidateRegion() argument
2061 if (strict) { in normalizeAndValidateRegion()
/libcore/ojluni/annotations/hiddenapi/java/util/
DLocale.java210 java.lang.String language, boolean strict) { in normalizeAndValidateLanguage() argument
235 java.lang.String region, boolean strict) { in normalizeAndValidateRegion() argument
/libcore/ojluni/annotations/hiddenapi/java/net/
DURI.java772 private int scanIPv4Address(int start, int n, boolean strict) in scanIPv4Address() argument
/libcore/ojluni/src/main/java/java/net/
DURI.java3331 private int scanIPv4Address(int start, int n, boolean strict) in scanIPv4Address() argument
3337 if ((m <= p) || (strict && (m != n))) in scanIPv4Address()