MCPcopy Create free account
hub / github.com/KaTeX/KaTeX / supportedCodepoint

Function supportedCodepoint

src/unicodeScripts.ts:117–124  ·  view source on GitHub ↗
(codepoint: number)

Source from the content-addressed store, hash-verified

115 * in Firefox, Chrome and Node.
116 */
117export function supportedCodepoint(codepoint: number): boolean {
118 for (let i = 0; i < allBlocks.length; i += 2) {
119 if (codepoint >= allBlocks[i] && codepoint <= allBlocks[i + 1]) {
120 return true;
121 }
122 }
123 return false;
124}

Callers 3

unicode-spec.tsFile · 0.90
parseSymbolMethod · 0.90
getCharacterMetricsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected