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

Method captures_nfa

regex/src/exec.rs:935–943  ·  view source on GitHub ↗

Like find_nfa, but fills in captures. `slots` should have length equal to `2 * nfa.captures.len()`.

(
        &self,
        slots: &mut [Slot],
        text: &[u8],
        start: usize,
    )

Source from the content-addressed store, hash-verified

933 ///
934 /// `slots` should have length equal to `2 * nfa.captures.len()`.
935 fn captures_nfa(
936 &self,
937 slots: &mut [Slot],
938 text: &[u8],
939 start: usize,
940 ) -> Option<(usize, usize)> {
941 self.captures_nfa_type(
942 MatchNfaType::Auto, slots, text, start, text.len())
943 }
944
945 /// Like captures_nfa, but allows specification of type of NFA engine.
946 fn captures_nfa_type(

Callers 1

captures_read_atMethod · 0.80

Calls 2

captures_nfa_typeMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected