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

Function is_loc_alnum

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

Source from the content-addressed store, hash-verified

357}
358#[inline]
359pub(crate) fn is_loc_alnum(ch: u32) -> bool {
360 // FIXME: Ignore the locales
361 u8::try_from(ch)
362 .map(|x| x.is_ascii_alphanumeric())
363 .unwrap_or(false)
364}
365#[inline]
366pub(crate) fn is_loc_word(ch: u32) -> bool {
367 ch == '_' as u32 || is_loc_alnum(ch)

Callers 1

is_loc_wordFunction · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected