MCPcopy Create free account
hub / github.com/davidblewett/rure-python / iter

Method iter

regex/src/re_trait.rs:40–42  ·  view source on GitHub ↗

Creates an iterator of all the capture group positions in order of appearance in the regular expression. Positions are byte indices in terms of the original string matched.

(&self)

Source from the content-addressed store, hash-verified

38 /// appearance in the regular expression. Positions are byte indices
39 /// in terms of the original string matched.
40 pub fn iter(&self) -> SubCapturesPosIter {
41 SubCapturesPosIter { idx: 0, locs: self }
42 }
43
44 /// Returns the total number of capturing groups.
45 ///

Callers 15

fmtMethod · 0.45
into_iterMethod · 0.45
matchesMethod · 0.45
num_charsMethod · 0.45
fmtMethod · 0.45
read_varu32Function · 0.45
pFunction · 0.45
into_iterMethod · 0.45
compile_manyMethod · 0.45
cMethod · 0.45
c_classMethod · 0.45
compileMethod · 0.45

Calls

no outgoing calls

Tested by 1

sub_capture_matchesFunction · 0.36