Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ is_loc_word
Function
is_loc_word
crates/sre_engine/src/string.rs:366–368 ·
view source on GitHub ↗
(ch: u32)
Source
from the content-addressed store, hash-verified
364
}
365
#[inline]
366
pub(crate) fn is_loc_word(ch: u32) -> bool {
367
ch ==
'_'
as u32 || is_loc_alnum(ch)
368
}
369
#[inline]
370
pub(crate) const fn is_linebreak(ch: u32) -> bool {
371
ch ==
'\n'
as u32
Callers
1
category
Function · 0.85
Calls
1
is_loc_alnum
Function · 0.85
Tested by
no test coverage detected