8 if (string_ == s) {
return 0; }
9 if (string_ ==
nullptr) {
return -1; }
10 if (s ==
nullptr) {
return 1; }
12 const char* a = (
const char*) string_;
14 bool isCstring = (type_ == kTypeCstring);
26 uint8_t ca = isCstring ? *a : pgm_read_byte(a);
32 if (0 < ca && ca < numKeywords_) {
33 const char* k = keywords_[ca];
44 return (
int) ca - (int) cb;
50 return (
int) ca - (int) cb;
53 if (ca ==
'\0')
return 0;
60 if (
this == &s) {
return 0; }
61 if (string_ == s.string_) {
return 0; }
62 if (string_ ==
nullptr) {
return -1; }
63 if (s.string_ ==
nullptr) {
return 1; }
68 char ca = aiter.
get();
69 char cb = biter.
get();
84 const char* s = (
const char*) string_;
85 if (s ==
nullptr)
return;
87 bool isCstring = (type_ == kTypeCstring);
93 char c = isCstring ? *s : pgm_read_byte(s);
97 if (c < numKeywords_) {
98 printer.print(keywords_[(uint8_t) c]);
An interator that points to a character inside a KString.
void next()
Advance the iterator one character,.
char get()
Return the current character referenced by the iterator.
A wrapper class around a normal c-string or Arduino f-string which is encoded and compressed using ke...
void printTo(Print &printer)
Expand and print the current string to the given printer.
int compareTo(const char *s)
Compare this string against a c-string s and return <0, 0 or >0 if this string is <,...