Searched refs:match_text (Results 1 – 5 of 5) sorted by relevance
148 assert_eq!(t!("abc"), match_text!(cap.get(0).unwrap())); in capture_misc()150 assert_eq!(t!("c"), match_text!(cap.get(4).unwrap())); in capture_misc()153 assert_eq!(t!("c"), match_text!(cap.name("b").unwrap())); in capture_misc()169 assert_eq!(t!("a5"), match_text!(subs[0].unwrap())); in sub_capture_matches()170 assert_eq!(t!("a"), match_text!(subs[1].unwrap())); in sub_capture_matches()171 assert_eq!(t!("5"), match_text!(subs[2].unwrap())); in sub_capture_matches()172 assert_eq!(t!("5"), match_text!(subs[4].unwrap())); in sub_capture_matches()
4 macro_rules! match_text { ($text:expr) => { $text.as_bytes() } } macro
4 macro_rules! match_text { ($text:expr) => { $text.as_str() } } macro
47 assert_eq!(match_text!(caps.name("foo").unwrap()), text!("x")); in regression_captures_rep()
98 match_text!(captures.get(1).unwrap())[0..1].to_owned()