MCPcopy Index your code
hub / github.com/formatjs/formatjs / _isWhiteSpace

Function _isWhiteSpace

packages/icu-messageformat-parser/parser.ts:1310–1319  ·  view source on GitHub ↗

* Code point equivalent of regex `\p{White_Space}`. * From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt

(c: number)

Source from the content-addressed store, hash-verified

1308 * From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
1309 */
1310function _isWhiteSpace(c: number) {
1311 return (
1312 (c >= 0x0009 && c <= 0x000d) ||
1313 c === 0x0020 ||
1314 c === 0x0085 ||
1315 (c >= 0x200e && c <= 0x200f) ||
1316 c === 0x2028 ||
1317 c === 0x2029
1318 )
1319}

Callers 1

bumpSpaceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected