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

Function is_js_space

codegraph-kernel/src/rustlang.rs:1680–1687  ·  view source on GitHub ↗

JS `\s` (WhiteSpace ∪ LineTerminator), which `.replace(/\s+/g, '')` strips: unlike Rust's `char::is_whitespace`, U+FEFF yes and U+0085 no.

(c: char)

Source from the content-addressed store, hash-verified

1678/// JS `\s` (WhiteSpace ∪ LineTerminator), which `.replace(/\s+/g, '')` strips:
1679/// unlike Rust's `char::is_whitespace`, U+FEFF yes and U+0085 no.
1680fn is_js_space(c: char) -> bool {
1681 matches!(
1682 c,
1683 '\t' | '\n' | '\x0B' | '\x0C' | '\r' | ' ' | '\u{00A0}' | '\u{1680}'
1684 | '\u{2000}'..='\u{200A}' | '\u{2028}' | '\u{2029}' | '\u{202F}' | '\u{205F}'
1685 | '\u{3000}' | '\u{FEFF}'
1686 )
1687}
1688
1689/// The receiver chain a method call is written on, when it is fields and
1690/// method calls on `self` or on a name: `self.services.store`,

Callers 1

maybe_capture_fn_refsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected