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

Function is_uni_digit

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

Source from the content-addressed store, hash-verified

390}
391#[inline]
392pub(crate) fn is_uni_digit(ch: u32) -> bool {
393 // TODO: check with cpython
394 char::try_from(ch)
395 .map(|x| x.is_ascii_digit())
396 .unwrap_or(false)
397}
398#[inline]
399pub(crate) fn is_uni_space(ch: u32) -> bool {
400 // TODO: check with cpython

Callers 1

categoryFunction · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected