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

Function lower_unicode

crates/sre_engine/src/string.rs:454–459  ·  view source on GitHub ↗
(ch: u32)

Source from the content-addressed store, hash-verified

452}
453#[inline]
454pub fn lower_unicode(ch: u32) -> u32 {
455 // TODO: check with cpython
456 char::try_from(ch)
457 .map(|x| x.to_lowercase().next().unwrap() as u32)
458 .unwrap_or(ch)
459}
460#[inline]
461pub fn upper_unicode(ch: u32) -> u32 {
462 // TODO: check with cpython

Callers 3

_countFunction · 0.85
unicode_iscasedFunction · 0.85
unicode_tolowerFunction · 0.85

Calls 4

to_lowercaseMethod · 0.80
mapMethod · 0.45
unwrapMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected