(code, set)
| 17774 | // assumption is that looking up astral identifier characters is |
| 17775 | // rare. |
| 17776 | function isInAstralSet(code, set) { |
| 17777 | var pos = 0x10000; |
| 17778 | for (var i = 0; i < set.length; i += 2) { |
| 17779 | pos += set[i]; |
| 17780 | if (pos > code) { return false } |
| 17781 | pos += set[i + 1]; |
| 17782 | if (pos >= code) { return true } |
| 17783 | } |
| 17784 | } |
| 17785 | |
| 17786 | // Test whether a given character code starts an identifier. |
| 17787 |
no outgoing calls
no test coverage detected