Acme.BookStore.HttpApi.Host/node_modules/parse-json/vendor/unicode.js
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// This is autogenerated with esprima tools, see:
// https://github.com/ariya/esprima/blob/master/esprima.js
//
// PS: oh God, I hate Unicode
// ECMAScript 5.1/Unicode v6.3.0 NonAsciiIdentifierStart:
var Uni = module.exports
module.exports.isWhiteSpace = function isWhiteSpace(x) {
// section 7.2, table 2
return x === '\u0020'
|| x === '\u00A0'
|| x === '\uFEFF' // <-- this is not a Unicode WS, only a JS one
|| (x >= '\u0009' && x <= '\u000D') // 9 A B C D
// + whitespace characters from unicode, category Zs
|| x === '\u1680'
|| x === '\u180E'
|| (x >= '\u2000' && x <= '\u200A') // 0 1 2 3 4 5 6 7 8 9 A
|| x === '\u2028'
|| x === '\u2029'
|| x === '\u202F'
|| x === '\u205F'
|| x === '\u3000'
}
module.exports.isWhiteSpaceJSON = function isWhiteSpaceJSON(x) {
return x === '\u0020'
|| x === '\u0009'
|| x === '\u000A'
|| x === '\u000D'
}
module.exports.isLineTerminator = function isLineTerminator(x) {
// ok, here is the part when JSON is wrong
// section 7.3, table 3
return x === '\u000A'
|| x === '\u000D'
|| x === '\u2028'
|| x === '\u2029'
}
module.exports.isLineTerminatorJSON = function isLineTerminatorJSON(x) {
return x === '\u000A'
|| x === '\u000D'
}
module.exports.isIdentifierStart = function isIdentifierStart(x) {
return x === '$'
|| x === '_'
|| (x >= 'A' && x <= 'Z')
|| (x >= 'a' && x <= 'z')
|| (x >= '\u0080' && Uni.NonAsciiIdentifierStart.test(x))
}
module.exports.isIdentifierPart = function isIdentifierPart(x) {
return x === '$'
|| x === '_'
后面还有 11 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
