Home
last modified time | relevance | path

Searched refs:capture_names (Results 1 – 8 of 8) sorted by relevance

/third_party/rust/crates/regex/regex-capi/src/
Drure.rs23 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/
Dapi.rs75 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()
Dmacros.rs33 r.capture_names()
/third_party/rust/crates/regex/src/
Dre_unicode.rs719 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()
Dre_bytes.rs661 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()
Dexec.rs1305 pub fn capture_names(&self) -> &[Option<String>] { in capture_names() method
/third_party/rust/crates/regex/regex-syntax/src/ast/
Dparse.rs148 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/
DCHANGELOG.md910 `iter_named` should use the `capture_names` method on `Regex`.