Function combine::char::upper
[−]
[src]
pub fn upper<I>() -> Upper<I> where
I: Stream<Item = char>,
Parses an uppercase letter according to std::char::is_uppercase
.
use combine::Parser; use combine::char::upper; assert_eq!(upper().parse("A"), Ok(('A', ""))); assert!(upper().parse("a").is_err());