* Given a codepoint, return true if it falls within one of the * scripts or script families defined above and false otherwise. * * Micro benchmarks shows that this is faster than * /[\u3000-\u30FF\u4E00-\u9FAF\uFF00-\uFF60\uAC00-\uD7AF\u0900-\u109F]/.test() * in Firefox, Chrome and Node.
(codepoint)
| 711 | */ |
| 712 | |
| 713 | function supportedCodepoint(codepoint) { |
| 714 | for (var i = 0; i < allBlocks.length; i += 2) { |
| 715 | if (codepoint >= allBlocks[i] && codepoint <= allBlocks[i + 1]) { |
| 716 | return true; |
| 717 | } |
| 718 | } |
| 719 | |
| 720 | return false; |
| 721 | } |
| 722 | // CONCATENATED MODULE: ./src/svgGeometry.js |
| 723 | /** |
| 724 | * This file provides support to domTree.js |
no outgoing calls
no test coverage detected