(code, set)
| 57 | // assumption is that looking up astral identifier characters is |
| 58 | // rare. |
| 59 | function isInAstralSet(code, set) { |
| 60 | var pos = 0x10000; |
| 61 | for (var i = 0; i < set.length; i += 2) { |
| 62 | pos += set[i]; |
| 63 | if (pos > code) { return false } |
| 64 | pos += set[i + 1]; |
| 65 | if (pos >= code) { return true } |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | // Test whether a given character code starts an identifier. |
| 70 |
no outgoing calls
no test coverage detected
searching dependent graphs…