Lines Matching refs:name
40 Ref::Named(name) => {
42 caps.name(name).map(|m| m.as_str()).unwrap_or(""),
82 Ref::Named(name) => {
84 caps.name(name).map(|m| m.as_bytes()).unwrap_or(b""),
93 /// The reference is either a capture group name or a number.
124 /// Parses a possible reference to a capture group name in the given text,
150 str::from_utf8(&rep[i..cap_end]).expect("valid UTF-8 capture name");
168 // When looking at braced names, we don't put any restrictions on the name,
169 // so it's possible it could be invalid UTF-8. But a capture group name
185 /// Returns true if and only if the given byte is allowed in a capture name.
198 ($name:ident, $text:expr) => {
200 fn $name() {
204 ($name:ident, $text:expr, $capref:expr) => {
206 fn $name() {