Lines Matching refs:text

128 bool qrcodegen_encodeText(const char *text, uint8_t tempBuffer[], uint8_t qrcode[],  in qrcodegen_encodeText()  argument
131 size_t textLen = strlen(text); in qrcodegen_encodeText()
137 if (qrcodegen_isNumeric(text)) { in qrcodegen_encodeText()
140 seg = qrcodegen_makeNumeric(text, tempBuffer); in qrcodegen_encodeText()
141 } else if (qrcodegen_isAlphanumeric(text)) { in qrcodegen_encodeText()
144 seg = qrcodegen_makeAlphanumeric(text, tempBuffer); in qrcodegen_encodeText()
149 tempBuffer[i] = (uint8_t)text[i]; in qrcodegen_encodeText()
797 bool qrcodegen_isAlphanumeric(const char *text) { in qrcodegen_isAlphanumeric() argument
798 LV_ASSERT(text != NULL); in qrcodegen_isAlphanumeric()
799 for (; *text != '\0'; text++) { in qrcodegen_isAlphanumeric()
800 if (strchr(ALPHANUMERIC_CHARSET, *text) == NULL) in qrcodegen_isAlphanumeric()
808 bool qrcodegen_isNumeric(const char *text) { in qrcodegen_isNumeric() argument
809 LV_ASSERT(text != NULL); in qrcodegen_isNumeric()
810 for (; *text != '\0'; text++) { in qrcodegen_isNumeric()
811 if (*text < '0' || *text > '9') in qrcodegen_isNumeric()
912 struct qrcodegen_Segment qrcodegen_makeAlphanumeric(const char *text, uint8_t buf[]) { in qrcodegen_makeAlphanumeric() argument
913 LV_ASSERT(text != NULL); in qrcodegen_makeAlphanumeric()
915 size_t len = strlen(text); in qrcodegen_makeAlphanumeric()
926 for (; *text != '\0'; text++) { in qrcodegen_makeAlphanumeric()
927 const char *temp = strchr(ALPHANUMERIC_CHARSET, *text); in qrcodegen_makeAlphanumeric()