MCPcopy Create free account
hub / github.com/TruthHun/BookStack / supportedCodepoint

Function supportedCodepoint

static/katex/katex.js:713–721  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

711 */
712
713function 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

Callers 2

getCharacterMetricsFunction · 0.70
katex.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected