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

Function qrcodegen_isAlphanumeric

modules/data/qrcode/qrcodegen.c:693–700  ·  view source on GitHub ↗

Public function - see documentation comment in header file.

Source from the content-addressed store, hash-verified

691
692// Public function - see documentation comment in header file.
693bool qrcodegen_isAlphanumeric(const char *text) {
694 assert(text != NULL);
695 for (; c_read8(text) != '\0'; text++) {
696 if (c_strchr(ALPHANUMERIC_CHARSET, c_read8(text)) == NULL)
697 return false;
698 }
699 return true;
700}
701
702
703// 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