Lines Matching defs:text
93 // value maps to the index in the string. For checking text and encoding segments.
129 bool qrcodegen_encodeText(const char *text, uint8_t tempBuffer[], uint8_t qrcode[],
132 size_t textLen = strlen(text);
138 if (qrcodegen_isNumeric(text)) {
141 seg = qrcodegen_makeNumeric(text, tempBuffer);
142 } else if (qrcodegen_isAlphanumeric(text)) {
145 seg = qrcodegen_makeAlphanumeric(text, tempBuffer);
150 tempBuffer[i] = (uint8_t)text[i];
810 bool qrcodegen_isNumeric(const char *text) {
811 assert(text != NULL);
812 for (; *text != '\0'; text++) {
813 if (*text < '0' || *text > '9')
821 bool qrcodegen_isAlphanumeric(const char *text) {
822 assert(text != NULL);
823 for (; *text != '\0'; text++) {
824 if (strchr(ALPHANUMERIC_CHARSET, *text) == NULL)
925 struct qrcodegen_Segment qrcodegen_makeAlphanumeric(const char *text, uint8_t buf[]) {
926 assert(text != NULL);
928 size_t len = strlen(text);
939 for (; *text != '\0'; text++) {
940 const char *temp = strchr(ALPHANUMERIC_CHARSET, *text);