Searched refs:capture_names (Results 1 – 8 of 8) sorted by relevance
/third_party/rust/crates/regex/regex-capi/src/ |
D | rure.rs | 23 capture_names: HashMap<String, i32>, field 53 capture_names: bytes::CaptureNames<'static>, field 128 let mut capture_names = HashMap::new(); localVariable 129 for (i, name) in re.capture_names().enumerate() { 131 capture_names.insert(name.to_owned(), i as i32); 136 capture_names: capture_names, 240 re.capture_names.get(name).map(|&i|i).unwrap_or(-1) 250 capture_names: re.re.capture_names(), 278 let cn = match it.capture_names.next() {
|
/third_party/rust/crates/regex/tests/ |
D | api.rs | 75 fn capture_names() { in capture_names() function 78 assert_eq!((3, Some(3)), re.capture_names().size_hint()); in capture_names() 81 re.capture_names().collect::<Vec<_>>() in capture_names()
|
D | macros.rs | 33 r.capture_names()
|
/third_party/rust/crates/regex/src/ |
D | re_unicode.rs | 719 pub fn capture_names(&self) -> CaptureNames<'_> { in capture_names() method 720 CaptureNames(self.0.capture_names().iter()) in capture_names() 725 self.0.capture_names().len() in captures_len()
|
D | re_bytes.rs | 661 pub fn capture_names(&self) -> CaptureNames<'_> { in capture_names() method 662 CaptureNames(self.0.capture_names().iter()) in capture_names() 667 self.0.capture_names().len() in captures_len()
|
D | exec.rs | 1305 pub fn capture_names(&self) -> &[Option<String>] { in capture_names() method
|
/third_party/rust/crates/regex/regex-syntax/src/ast/ |
D | parse.rs | 148 capture_names: RefCell::new(vec![]), in build() 253 capture_names: RefCell<Vec<ast::CaptureName>>, field 428 let mut names = self.parser().capture_names.borrow_mut(); in add_capture_name()
|
/third_party/rust/crates/regex/ |
D | CHANGELOG.md | 910 `iter_named` should use the `capture_names` method on `Regex`.
|