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

Method replacen

crates/wtf8/src/lib.rs:1182–1185  ·  view source on GitHub ↗
(&self, from: &Wtf8, to: &Wtf8, n: usize)

Source from the content-addressed store, hash-verified

1180 }
1181
1182 pub fn replacen(&self, from: &Wtf8, to: &Wtf8, n: usize) -> Wtf8Buf {
1183 let w = self.bytes.replacen(from, to, n);
1184 unsafe { Wtf8Buf::from_bytes_unchecked(w) }
1185 }
1186}
1187
1188impl AsRef<Wtf8> for str {

Callers 2

do_subFunction · 0.80
replaceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected