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

Method char_len

crates/vm/src/stdlib/_io.rs:3640–3646  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

3638
3639 #[inline]
3640 fn char_len(&self) -> usize {
3641 if self.is_full_slice() {
3642 self.0.char_len()
3643 } else {
3644 self.slice().code_points().count()
3645 }
3646 }
3647
3648 #[inline]
3649 fn is_full_slice(&self) -> bool {

Callers 13

ordFunction · 0.45
repr_wtf8Method · 0.45
len_pystrMethod · 0.45
tellMethod · 0.45
writeMethod · 0.45
utf8_lenMethod · 0.45
read_chunkMethod · 0.45
get_decoded_charsMethod · 0.45
encodeMethod · 0.45
mbcs_encodeFunction · 0.45
oem_encodeFunction · 0.45
encode_code_page_errorsFunction · 0.45

Calls 4

is_full_sliceMethod · 0.80
code_pointsMethod · 0.80
countMethod · 0.45
sliceMethod · 0.45

Tested by

no test coverage detected