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

Function is_uni_alnum

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

Source from the content-addressed store, hash-verified

441}
442#[inline]
443pub(crate) fn is_uni_alnum(ch: u32) -> bool {
444 // TODO: check with cpython
445 char::try_from(ch)
446 .map(|x| x.is_alphanumeric())
447 .unwrap_or(false)
448}
449#[inline]
450pub(crate) fn is_uni_word(ch: u32) -> bool {
451 ch == '_' as u32 || is_uni_alnum(ch)

Callers 1

is_uni_wordFunction · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected