Function combine::byte::upper [] [src]

pub fn upper<I>() -> Upper<I> where
    I: Stream<Item = u8>, 

Parses an uppercase ASCII letter (A–Z).

use combine::Parser;
use combine::byte::upper;
assert_eq!(upper().parse(&b"A"[..]), Ok((b'A', &b""[..])));
assert!(upper().parse(&b"a"[..]).is_err());