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

Method replace

crates/wtf8/src/lib.rs:1177–1180  ·  view source on GitHub ↗
(&self, from: &Wtf8, to: &Wtf8)

Source from the content-addressed store, hash-verified

1175 }
1176
1177 pub fn replace(&self, from: &Wtf8, to: &Wtf8) -> Wtf8Buf {
1178 let w = self.bytes.replace(from, to);
1179 unsafe { Wtf8Buf::from_bytes_unchecked(w) }
1180 }
1181
1182 pub fn replacen(&self, from: &Wtf8, to: &Wtf8, n: usize) -> Wtf8Buf {
1183 let w = self.bytes.replacen(from, to, n);

Callers 13

find_specMethod · 0.45
destroyMethod · 0.45
detachMethod · 0.45
compileFunction · 0.45
normalize_cipher_nameFunction · 0.45
_parseMethod · 0.45
unparse_exprMethod · 0.45
unparse_fstring_strMethod · 0.45
compile_whileMethod · 0.45
compile_forMethod · 0.45
type_matches_pathFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected