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

Method split

crates/wtf8/src/lib.rs:1037–1041  ·  view source on GitHub ↗
(&self, pat: &Wtf8)

Source from the content-addressed store, hash-verified

1035 }
1036
1037 pub fn split(&self, pat: &Wtf8) -> impl Iterator<Item = &Self> {
1038 self.as_bytes()
1039 .split_str(pat)
1040 .map(|w| unsafe { Wtf8::from_bytes_unchecked(w) })
1041 }
1042
1043 pub fn splitn(&self, n: usize, pat: &Wtf8) -> impl Iterator<Item = &Self> {
1044 self.as_bytes()

Callers 15

iomdParserFunction · 0.45
newChunkIdFunction · 0.45
test_benchmarks.pyFile · 0.45
create_test_functionFunction · 0.45
get_test_filesFunction · 0.45
getSuiteDescriptionMethod · 0.45
builtin_str.pyFile · 0.45
builtin_bytes.pyFile · 0.45
stdlib_ctypes.pyFile · 0.45
parse_optsFunction · 0.45
split_pathsFunction · 0.45

Calls 2

mapMethod · 0.45
as_bytesMethod · 0.45

Tested by 3

create_test_functionFunction · 0.36
get_test_filesFunction · 0.36
getSuiteDescriptionMethod · 0.36