pub fn upper<Input>() -> impl Parser<Input, Output = u8, PartialState = ()>
Expand description
Parses an uppercase ASCII letter (A–Z).
use combine::Parser;
use combine::parser::byte::upper;
assert_eq!(upper().parse(&b"A"[..]), Ok((b'A', &b""[..])));
assert!(upper().parse(&b"a"[..]).is_err());