MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / is_js_space

Function is_js_space

codegraph-kernel/src/kotlin.rs:78–85  ·  view source on GitHub ↗

JS `\s` for the #750 inner-callee strip.

(c: char)

Source from the content-addressed store, hash-verified

76
77/// JS `\s` for the #750 inner-callee strip.
78fn is_js_space(c: char) -> bool {
79 matches!(
80 c,
81 '\t' | '\n' | '\x0B' | '\x0C' | '\r' | ' ' | '\u{00A0}' | '\u{1680}'
82 | '\u{2000}'..='\u{200A}' | '\u{2028}' | '\u{2029}' | '\u{202F}' | '\u{205F}'
83 | '\u{3000}' | '\u{FEFF}'
84 )
85}
86fn strip_js_ws(s: &str) -> String {
87 s.chars().filter(|c| !is_js_space(*c)).collect()
88}

Callers 1

strip_js_wsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected