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

Function is_digit

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

Source from the content-addressed store, hash-verified

351}
352#[inline]
353pub(crate) fn is_digit(ch: u32) -> bool {
354 u8::try_from(ch)
355 .map(|x| x.is_ascii_digit())
356 .unwrap_or(false)
357}
358#[inline]
359pub(crate) fn is_loc_alnum(ch: u32) -> bool {
360 // FIXME: Ignore the locales

Callers 1

categoryFunction · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected