(min, max)
| 74 | // Returns first available and valid code in the range. |
| 75 | // |
| 76 | function 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. |
no test coverage detected
searching dependent graphs…