33 if (mString.cstring ==
nullptr)
return;
35 if (mStringType == kCStringType) {
43 if (mString.cstring ==
nullptr) {
48 if (mStringType == kCStringType) {
56 if (
getType() == FCString::kCStringType) {
57 if (that.
getType() == FCString::kCStringType) {
63 if (that.
getType() == FCString::kCStringType) {
72 if (
getType() == FCString::kCStringType) {
80 if (
getType() == FCString::kCStringType) {
88 if (
getType() == FCString::kCStringType) {
89 return compareSubstring(
getCString(), substring);
91 return compareSubstring(
getFString(), substring);
This file provides overloaded compareXxx(a, b) functions which are used by the various assertXxx(a,...
A union of (const char*) and (const __FlashStringHelper*) with a discriminator.
const char * getCString() const
Get the c-string pointer.
uint8_t getType() const
Get the internal type of string.
bool hasSubstring(const char *substring) const
Determine if given substring exists.
const __FlashStringHelper * getFString() const
Get the flash string pointer.
int compareToN(const char *that, size_t n) const
Compare to C-string using the first n characters.
int compareTo(const FCString &that) const
Compare to another FCString.
void print(Print *printer) const
Convenience method for printing an FCString.
void println(Print *printer) const
Convenience method for printing an FCString.