Lines Matching defs:text
102 QrSegment QrSegment::makeAlphanumeric(const char *text) {
107 for (; *text != '\0'; text++, charCount++) {
108 const char *temp = std::strchr(ALPHANUMERIC_CHARSET, *text);
125 vector<QrSegment> QrSegment::makeSegments(const char *text) {
128 if (*text == '\0'); // Leave result empty
129 else if (isNumeric(text))
130 result.push_back(makeNumeric(text));
131 else if (isAlphanumeric(text))
132 result.push_back(makeAlphanumeric(text));
135 for (; *text != '\0'; text++)
136 bytes.push_back(static_cast<uint8_t>(*text));
196 bool QrSegment::isNumeric(const char *text) {
197 for (; *text != '\0'; text++) {
198 char c = *text;
206 bool QrSegment::isAlphanumeric(const char *text) {
207 for (; *text != '\0'; text++) {
208 if (std::strchr(ALPHANUMERIC_CHARSET, *text) == nullptr)
247 QrCode QrCode::encodeText(const char *text, Ecc ecl) {
248 vector<QrSegment> segs = QrSegment::makeSegments(text);