Macro nom::tag_s[][src]

macro_rules! tag_s {
    ($i:expr, $tag: expr) => { ... };
}
Deprecating in 4.0.0

: Please use tag instead

tag_s!(&str) => &str -> IResult<&str, &str> declares a string as a suite to recognize

consumes the recognized characters

 fn test(input: &str) -> IResult<&str, &str> {
   tag_s!(input, "abcd")
 }
 let r = test("abcdefgh");
 assert_eq!(r,Ok(("efgh", "abcd")));