Macro peel_ip::prelude::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
named!(test, tag_no_case!("ABcd")); let r = test(&b"aBCdefgh"[..]); assert_eq!(r, Done(&b"efgh"[..], &b"aBCd"[..]));