MCPcopy Index your code
hub / github.com/RustPython/RustPython / findall

Function findall

crates/stdlib/src/re.rs:137–146  ·  view source on GitHub ↗
(
        pattern: PyStrRef,
        string: PyStrRef,
        flags: OptionalArg<usize>,
        vm: &VirtualMachine,
    )

Source from the content-addressed store, hash-verified

135
136 #[pyfunction]
137 fn findall(
138 pattern: PyStrRef,
139 string: PyStrRef,
140 flags: OptionalArg<usize>,
141 vm: &VirtualMachine,
142 ) -> PyResult {
143 let flags = extract_flags(flags);
144 let regex = make_regex(vm, pattern.as_str(), flags)?;
145 do_findall(vm, &regex, string)
146 }
147
148 #[pyfunction]
149 fn split(

Callers

nothing calls this directly

Calls 4

extract_flagsFunction · 0.85
make_regexFunction · 0.85
do_findallFunction · 0.85
as_strMethod · 0.45

Tested by

no test coverage detected