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

Method to_uppercase

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

Source from the content-addressed store, hash-verified

1009 }
1010
1011 pub fn to_uppercase(&self) -> Wtf8Buf {
1012 let mut buf = Wtf8Buf::with_capacity(self.len());
1013 for chunk in self.chunks() {
1014 match chunk {
1015 Wtf8Chunk::Utf8(s) => buf.push_str(&s.to_uppercase()),
1016 Wtf8Chunk::Surrogate(c) => buf.push(c),
1017 }
1018 }
1019 buf
1020 }
1021
1022 #[inline]
1023 pub const fn is_ascii(&self) -> bool {

Callers 9

upper_unicodeFunction · 0.80
register_converterFunction · 0.80
build_row_cast_mapMethod · 0.80
subscriptMethod · 0.80
format_serial_numberFunction · 0.80
format_boolMethod · 0.80
istitleMethod · 0.80
getenvironmentFunction · 0.80
upperMethod · 0.80

Calls 4

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

Tested by

no test coverage detected