MCPcopy Create free account
hub / github.com/cryptii/cryptii / _isBasic

Method _isBasic

src/Encoder/Bootstring.js:404–407  ·  view source on GitHub ↗

* Checks wether the given code point is considered to be basic. * @param {number} codePoint Unicode code point * @return {boolean} True, if the given code point is basic

(codePoint)

Source from the content-addressed store, hash-verified

402 * @return {boolean} True, if the given code point is basic
403 */
404 _isBasic (codePoint) {
405 const { basicRangeStart, basicRangeEnd } = this.getSettingValues()
406 return codePoint >= basicRangeStart && codePoint <= basicRangeEnd
407 }
408
409 /**
410 * Translates a Unicode code point into a basic code point digit.

Callers 2

performEncodeMethod · 0.95
performDecodeMethod · 0.95

Calls 1

getSettingValuesMethod · 0.80

Tested by

no test coverage detected