[][src]Macro nom::tag_no_case

macro_rules! tag_no_case {
    ($i:expr, $tag: expr) => { ... };
}

tag_no_case!(&[T]) => &[T] -> IResult<&[T], &[T]> declares a case insensitive ascii string as a suite to recognize

consumes the recognized characters

Example

 named!(test, tag_no_case!("ABcd"));

 let r = test(&b"aBCdefgh"[..]);
 assert_eq!(r, Ok((&b"efgh"[..], &b"aBCd"[..])));