MCPcopy
hub / github.com/zxing-js/library / getAlphanumericCode

Method getAlphanumericCode

src/core/qrcode/encoder/Encoder.ts:200–205  ·  view source on GitHub ↗

* @return the code point of the table used in alphanumeric mode or * -1 if there is no corresponding code in the table.

(code: number /*int*/)

Source from the content-addressed store, hash-verified

198 * -1 if there is no corresponding code in the table.
199 */
200 public static getAlphanumericCode(code: number /*int*/): number /*int*/ {
201 if (code < Encoder.ALPHANUMERIC_TABLE.length) {
202 return Encoder.ALPHANUMERIC_TABLE[code];
203 }
204 return -1;
205 }
206
207 // public static chooseMode(content: string): Mode {
208 // return chooseMode(content, null);

Callers 3

chooseModeMethod · 0.95
Encoder.spec.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected