MCPcopy Create free account
hub / github.com/dchester/jsonpath / isIdentifierStart

Function isIdentifierStart

jsonpath.js:250–256  ·  view source on GitHub ↗
(ch)

Source from the content-addressed store, hash-verified

248 // 7.6 Identifier Names and Identifiers
249
250 function isIdentifierStart(ch) {
251 return (ch == 0x40) || (ch === 0x24) || (ch === 0x5F) || // $ (dollar) and _ (underscore)
252 (ch >= 0x41 && ch <= 0x5A) || // A..Z
253 (ch >= 0x61 && ch <= 0x7A) || // a..z
254 (ch === 0x5C) || // \ (backslash)
255 ((ch >= 0x80) && Regex.NonAsciiIdentifierStart.test(String.fromCharCode(ch)));
256 }
257
258 function isIdentifierPart(ch) {
259 return (ch === 0x24) || (ch === 0x5F) || // $ (dollar) and _ (underscore)

Callers 6

getEscapedIdentifierFunction · 0.85
scanHexLiteralFunction · 0.85
scanOctalLiteralFunction · 0.85
scanNumericLiteralFunction · 0.85
advanceFunction · 0.85
parseReturnStatementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected