MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / qrcodegen_isNumeric

Function qrcodegen_isNumeric

modules/data/qrcode/qrcodegen.c:704–711  ·  view source on GitHub ↗

Public function - see documentation comment in header file.

Source from the content-addressed store, hash-verified

702
703// Public function - see documentation comment in header file.
704bool qrcodegen_isNumeric(const char *text) {
705 assert(text != NULL);
706 for (; c_read8(text) != '\0'; text++) {
707 if (c_read8(text) < '0' || c_read8(text) > '9')
708 return false;
709 }
710 return true;
711}
712
713
714// Public function - see documentation comment in header file.

Callers 1

qrcodegen_encodeTextFunction · 0.85

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected