Lines Matching refs:Year
300 Year => (4, true, Parsed::set_year), in parse_internal()
463 Item::Numeric(Numeric::Year, Pad::Zero), in from_str()
550 check!("1987", [num!(Year)]; year: 1987); in test_parse()
551 check!("1987 ", [num!(Year)]; TOO_LONG); in test_parse()
552 check!("0x12", [num!(Year)]; TOO_LONG); // `0` is parsed in test_parse()
553 check!("x123", [num!(Year)]; INVALID); in test_parse()
554 check!("2015", [num!(Year)]; year: 2015); in test_parse()
555 check!("0000", [num!(Year)]; year: 0); in test_parse()
556 check!("9999", [num!(Year)]; year: 9999); in test_parse()
557 check!(" \t987", [num!(Year)]; year: 987); in test_parse()
558 check!("5", [num!(Year)]; year: 5); in test_parse()
559 check!("5\0", [num!(Year)]; TOO_LONG); in test_parse()
560 check!("\05", [num!(Year)]; INVALID); in test_parse()
561 check!("", [num!(Year)]; TOO_SHORT); in test_parse()
562 check!("12345", [num!(Year), lit!("5")]; year: 1234); in test_parse()
563 check!("12345", [nums!(Year), lit!("5")]; year: 1234); in test_parse()
564 check!("12345", [num0!(Year), lit!("5")]; year: 1234); in test_parse()
565 check!("12341234", [num!(Year), num!(Year)]; year: 1234); in test_parse()
566 check!("1234 1234", [num!(Year), num!(Year)]; year: 1234); in test_parse()
567 check!("1234 1235", [num!(Year), num!(Year)]; IMPOSSIBLE); in test_parse()
568 check!("1234 1234", [num!(Year), lit!("x"), num!(Year)]; INVALID); in test_parse()
569 check!("1234x1234", [num!(Year), lit!("x"), num!(Year)]; year: 1234); in test_parse()
570 check!("1234xx1234", [num!(Year), lit!("x"), num!(Year)]; INVALID); in test_parse()
571 check!("1234 x 1234", [num!(Year), lit!("x"), num!(Year)]; INVALID); in test_parse()
574 check!("-42", [num!(Year)]; year: -42); in test_parse()
575 check!("+42", [num!(Year)]; year: 42); in test_parse()
576 check!("-0042", [num!(Year)]; year: -42); in test_parse()
577 check!("+0042", [num!(Year)]; year: 42); in test_parse()
578 check!("-42195", [num!(Year)]; year: -42195); in test_parse()
579 check!("+42195", [num!(Year)]; year: 42195); in test_parse()
580 check!(" -42195", [num!(Year)]; year: -42195); in test_parse()
581 check!(" +42195", [num!(Year)]; year: 42195); in test_parse()
582 check!(" - 42", [num!(Year)]; INVALID); in test_parse()
583 check!(" + 42", [num!(Year)]; INVALID); in test_parse()
584 check!("-", [num!(Year)]; TOO_SHORT); in test_parse()
585 check!("+", [num!(Year)]; TOO_SHORT); in test_parse()
597 [num!(Year), num!(IsoYear)]; in test_parse()
761 [num!(Year), lit!("-"), num!(Month), lit!("-"), num!(Day), lit!("T"), in test_parse()
766 [num!(Year), num!(Month), num!(Day), in test_parse()
772 fix!(ShortMonthName), sp!(" "), num!(Year), sp!(" "), num!(Hour), lit!(":"), in test_parse()
779 num!(Second), sp!(" "), fix!(TimezoneName), sp!(" "), num!(Year)]; in test_parse()
783 [num!(Year), num!(Month), num!(Day), num!(Hour), num!(Minute), num!(Second)]; in test_parse()