MCPcopy
hub / github.com/formatjs/formatjs / _isAlpha

Function _isAlpha

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

* This check if codepoint is alphabet (lower & uppercase) * @param codepoint * @returns

(codepoint: number)

Source from the content-addressed store, hash-verified

1268 * @returns
1269 */
1270function _isAlpha(codepoint: number): boolean {
1271 return (
1272 (codepoint >= 97 && codepoint <= 122) ||
1273 (codepoint >= 65 && codepoint <= 90)
1274 )
1275}
1276
1277function _isAlphaOrSlash(codepoint: number): boolean {
1278 return _isAlpha(codepoint) || codepoint === 47 /* '/' */

Callers 3

parseMessageMethod · 0.85
parseTagMethod · 0.85
_isAlphaOrSlashFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected