/libcore/ojluni/src/main/java/java/time/format/ |
H A D | SignStyle.java | 81 * In strict parsing, the negative sign will be accepted and the positive sign rejected. 88 * In strict parsing, the absence of a sign will be rejected. 96 * In strict parsing, any sign will be rejected. 103 * In strict parsing, any sign will be rejected. 111 * In strict parsing, the sign will be rejected unless the pad width is exceeded. 121 * @param strict true if strict, false if lenient 125 boolean parse(boolean positive, boolean strict, boolean fixedWidth) { argument 129 return !positive || !strict; 135 return !strict [all...] |
H A D | DateTimeParseContext.java | 103 * Whether to parse using strict rules. 105 private boolean strict = true; field in class:DateTimeParseContext 128 * This retains the case sensitive and strict flags. 133 newContext.strict = strict; 263 * Checks if parsing is strict. 267 * @return true if parsing is strict, false if lenient 270 return strict; 274 * Sets whether parsing is strict or lenient. 276 * @param strict change 278 setStrict(boolean strict) argument [all...] |
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
H A D | AbstractTestPrinterParser.java | 108 protected void setStrict(boolean strict) { argument 109 if (strict) {
|
H A D | TestReducedParser.java | 138 // 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( 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 367 test_parseAdjacent(String pattern, String input, boolean strict, int pos, int parseLen, int year, int month, int day) argument 498 private static Pair strict(int parseLen, Integer parseVal) { method in class:TestReducedParser 508 private final boolean strict; field in class:TestReducedParser.Pair 509 Pair(int parseLen, Integer parseVal, boolean strict) argument [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
H A D | TCKHijrahChronology.java | 370 public void test_resolve_ymd_lenient(int y, int m, int d, HijrahDate expected, Object smart, boolean strict) { argument 391 public void test_resolve_ymd_smart(int y, int m, int d, HijrahDate expected, Object smart, boolean strict) { argument 414 public void test_resolve_ymd_strict(int y, int m, int d, HijrahDate expected, Object smart, boolean strict) { argument 419 if (strict) { 484 public void test_resolve_yd_lenient(int y, int d, HijrahDate expected, boolean smart, boolean strict) { argument 494 public void test_resolve_yd_smart(int y, int d, HijrahDate expected, boolean smart, boolean strict) { argument 513 public void test_resolve_yd_strict(int y, int d, HijrahDate expected, boolean smart, boolean strict) { argument 517 if (strict) {
|
H A D | TCKIsoChronology.java | 434 public void test_resolve_ymd_lenient(int y, int m, int d, LocalDate expected, Object smart, boolean strict) { argument 445 public void test_resolve_ymd_smart(int y, int m, int d, LocalDate expected, Object smart, boolean strict) { argument 468 public void test_resolve_ymd_strict(int y, int m, int d, LocalDate expected, Object smart, boolean strict) { argument 473 if (strict) { 518 public void test_resolve_yd_lenient(int y, int d, LocalDate expected, boolean smart, boolean strict) { argument 528 public void test_resolve_yd_smart(int y, int d, LocalDate expected, boolean smart, boolean strict) { argument 547 public void test_resolve_yd_strict(int y, int d, LocalDate expected, boolean smart, boolean strict) { argument 551 if (strict) { 625 public void test_resolve_ymaa_lenient(int y, int m, int w, int d, LocalDate expected, boolean smart, boolean strict) { argument 637 public void test_resolve_ymaa_smart(int y, int m, int w, int d, LocalDate expected, boolean smart, boolean strict) { argument 658 test_resolve_ymaa_strict(int y, int m, int w, int d, LocalDate expected, boolean smart, boolean strict) argument [all...] |
H A D | TCKMinguoChronology.java | 709 public void test_resolve_ymd_lenient(int y, int m, int d, MinguoDate expected, Object smart, boolean strict) { argument 720 public void test_resolve_ymd_smart(int y, int m, int d, MinguoDate expected, Object smart, boolean strict) { argument 743 public void test_resolve_ymd_strict(int y, int m, int d, MinguoDate expected, Object smart, boolean strict) { argument 748 if (strict) { 793 public void test_resolve_yd_lenient(int y, int d, MinguoDate expected, boolean smart, boolean strict) { argument 803 public void test_resolve_yd_smart(int y, int d, MinguoDate expected, boolean smart, boolean strict) { argument 822 public void test_resolve_yd_strict(int y, int d, MinguoDate expected, boolean smart, boolean strict) { argument 826 if (strict) { 900 public void test_resolve_ymaa_lenient(int y, int m, int w, int d, MinguoDate expected, boolean smart, boolean strict) { argument 912 public void test_resolve_ymaa_smart(int y, int m, int w, int d, MinguoDate expected, boolean smart, boolean strict) { argument 933 test_resolve_ymaa_strict(int y, int m, int w, int d, MinguoDate expected, boolean smart, boolean strict) argument [all...] |
H A D | TCKThaiBuddhistChronology.java | 685 public void test_resolve_ymd_lenient(int y, int m, int d, ThaiBuddhistDate expected, Object smart, boolean strict) { argument 696 public void test_resolve_ymd_smart(int y, int m, int d, ThaiBuddhistDate expected, Object smart, boolean strict) { argument 719 public void test_resolve_ymd_strict(int y, int m, int d, ThaiBuddhistDate expected, Object smart, boolean strict) { argument 724 if (strict) { 769 public void test_resolve_yd_lenient(int y, int d, ThaiBuddhistDate expected, boolean smart, boolean strict) { argument 779 public void test_resolve_yd_smart(int y, int d, ThaiBuddhistDate expected, boolean smart, boolean strict) { argument 798 public void test_resolve_yd_strict(int y, int d, ThaiBuddhistDate expected, boolean smart, boolean strict) { argument 802 if (strict) { 876 public void test_resolve_ymaa_lenient(int y, int m, int w, int d, ThaiBuddhistDate expected, boolean smart, boolean strict) { argument 888 public void test_resolve_ymaa_smart(int y, int m, int w, int d, ThaiBuddhistDate expected, boolean smart, boolean strict) { argument 909 test_resolve_ymaa_strict(int y, int m, int w, int d, ThaiBuddhistDate expected, boolean smart, boolean strict) argument [all...] |
H A D | TCKJapaneseChronology.java | 870 public void test_resolve_ymd_lenient(int y, int m, int d, JapaneseDate expected, Object smart, boolean strict) { argument 881 public void test_resolve_ymd_smart(int y, int m, int d, JapaneseDate expected, Object smart, boolean strict) { argument 904 public void test_resolve_ymd_strict(int y, int m, int d, JapaneseDate expected, Object smart, boolean strict) { argument 909 if (strict) { 954 public void test_resolve_yd_lenient(int y, int d, JapaneseDate expected, boolean smart, boolean strict) { argument 964 public void test_resolve_yd_smart(int y, int d, JapaneseDate expected, boolean smart, boolean strict) { argument 983 public void test_resolve_yd_strict(int y, int d, JapaneseDate expected, boolean smart, boolean strict) { argument 987 if (strict) { 1105 // strict
|
/libcore/ojluni/src/main/java/java/net/ |
H A D | URI.java | 3318 // If the strict argument is true then we require that the given 3323 // strict argument) a legal IPv4 address characters then we return -1 3331 private int scanIPv4Address(int start, int n, boolean strict) argument 3337 if ((m <= p) || (strict && (m != n)))
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | Locale.java | 1773 languageCode, false /* strict */); 1787 private static String normalizeAndValidateLanguage(String language, boolean strict) { argument 1794 if (strict) { 1898 countryCode, false /* strict */); 1910 private static String normalizeAndValidateRegion(String region, boolean strict) { argument 1918 if (strict) {
|