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

Method split

crates/stdlib/src/re.rs:350–357  ·  view source on GitHub ↗
(
            &self,
            search_text: PyStrRef,
            maxsplit: OptionalArg<PyIntRef>,
            vm: &VirtualMachine,
        )

Source from the content-addressed store, hash-verified

348
349 #[pymethod]
350 fn split(
351 &self,
352 search_text: PyStrRef,
353 maxsplit: OptionalArg<PyIntRef>,
354 vm: &VirtualMachine,
355 ) -> PyResult {
356 do_split(vm, self, search_text, maxsplit.into_option())
357 }
358
359 #[pymethod]
360 fn findall(&self, search_text: PyStrRef, vm: &VirtualMachine) -> PyResult {

Callers 4

mainFunction · 0.45
check_locale_name_allFunction · 0.45
nextMethod · 0.45
parse_cipher_stringFunction · 0.45

Calls 2

do_splitFunction · 0.85
into_optionMethod · 0.80

Tested by

no test coverage detected