MCPcopy
hub / github.com/fontello/fontello / findCode

Function findCode

client/fontello/models/_lib/codes_tracker.js:76–83  ·  view source on GitHub ↗
(min, max)

Source from the content-addressed store, hash-verified

74// Returns first available and valid code in the range.
75//
76function findCode(min, max) {
77 for (var code = min; code <= max; code += 1) {
78 if (checkValidCode(code) && !usedCodes[code]) {
79 return code;
80 }
81 }
82 return -1;
83}
84
85
86// Returns first available and valid code in the Unicode Private Use Area.

Callers 2

findPrivateUseAreaFunction · 0.85
findAsciiFunction · 0.85

Calls 1

checkValidCodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…