MCPcopy
hub / github.com/fontello/fontello / checkValidCode

Function checkValidCode

client/fontello/models/_lib/codes_tracker.js:66–71  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

64// Returns true if code is valid and not used.
65//
66function checkValidCode(code) {
67 return code >= UNICODE_CODES_MIN &&
68 code <= UNICODE_CODES_MAX &&
69 (code < RESTRICTED_BLOCK_MIN || code > RESTRICTED_BLOCK_MAX) &&
70 !RESTRICTED_SINGLE_CODES[code];
71}
72
73
74// Returns first available and valid code in the range.

Callers 5

findCodeFunction · 0.85
findPrivateUseAreaFunction · 0.85
findAsciiFunction · 0.85
findUnicodeFunction · 0.85
observeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…