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

Method to_lowercase

crates/wtf8/src/lib.rs:1000–1009  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

998 }
999
1000 pub fn to_lowercase(&self) -> Wtf8Buf {
1001 let mut buf = Wtf8Buf::with_capacity(self.len());
1002 for chunk in self.chunks() {
1003 match chunk {
1004 Wtf8Chunk::Utf8(s) => buf.push_str(&s.to_lowercase()),
1005 Wtf8Chunk::Surrogate(c) => buf.push(c),
1006 }
1007 }
1008 buf
1009 }
1010
1011 pub fn to_uppercase(&self) -> Wtf8Buf {
1012 let mut buf = Wtf8Buf::with_capacity(self.len());

Callers 15

runFunction · 0.80
lower_unicodeFunction · 0.80
repr_wtf8Method · 0.80
resolve_digestmodFunction · 0.80
hashlib_newFunction · 0.80
pbkdf2_hmacFunction · 0.80
createFunction · 0.80
buildMethod · 0.80
find_by_nameMethod · 0.80
parse_pyvenv_homeFunction · 0.80
parseMethod · 0.80

Calls 4

lenMethod · 0.45
chunksMethod · 0.45
push_strMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected