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

Function is_uni_space

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

Source from the content-addressed store, hash-verified

397}
398#[inline]
399pub(crate) fn is_uni_space(ch: u32) -> bool {
400 // TODO: check with cpython
401 is_space(ch)
402 || matches!(
403 ch,
404 0x0009
405 | 0x000A
406 | 0x000B
407 | 0x000C
408 | 0x000D
409 | 0x001C
410 | 0x001D
411 | 0x001E
412 | 0x001F
413 | 0x0020
414 | 0x0085
415 | 0x00A0
416 | 0x1680
417 | 0x2000
418 | 0x2001
419 | 0x2002
420 | 0x2003
421 | 0x2004
422 | 0x2005
423 | 0x2006
424 | 0x2007
425 | 0x2008
426 | 0x2009
427 | 0x200A
428 | 0x2028
429 | 0x2029
430 | 0x202F
431 | 0x205F
432 | 0x3000
433 )
434}
435#[inline]
436pub(crate) const fn is_uni_linebreak(ch: u32) -> bool {
437 matches!(

Callers 1

categoryFunction · 0.85

Calls 1

is_spaceFunction · 0.85

Tested by

no test coverage detected