CStringArray.h
Go to the documentation of this file.
int indexOf(const char *str, bool ignoreCase=true) const
Find the given string and return its index.
CStringArray(flash_string_t pstr, int length=-1)
Definition: CStringArray.h:64
bool startsWith(const String &prefix) const
Compare the start of a String Comparison is case-sensitive, must match exactly.
Definition: WString.h:522
bool operator==(const char *rhs) const
Definition: CStringArray.h:249
const char * c_str() const
Get a constant (un-modifiable) pointer to String content.
Definition: WString.h:600
size_t getBytes(unsigned char *buf, size_t bufsize, size_t index=0) const
Read contents of a String into a buffer.
bool equalsIgnoreCase(const char *rhs) const
Definition: CStringArray.h:233
Iterator(const CStringArray *array, uint16_t offset, uint16_t index)
Definition: CStringArray.h:217
const __FlashStringHelper * flash_string_t
Provides a strongly-typed pointer to allow safe implicit operation using String class methods...
Definition: WString.h:91
bool operator!=(const char *rhs) const
Definition: CStringArray.h:254
bool add(const char *str, int length=-1)
Append a new string (or array of strings) to the end of the array.
bool operator==(const String &rhs) const
Definition: CStringArray.h:269
const char * operator[](unsigned index) const
Get string at the given position.
Definition: CStringArray.h:189
String & operator=(const String &rhs)
CStringArray(const char *cstr, unsigned int length)
Definition: CStringArray.h:59
CStringArray & operator+=(T value)
Append numbers, etc. to the array.
Definition: CStringArray.h:131
bool equalsIgnoreCase(const String &rhs) const
Definition: CStringArray.h:264
bool operator!=(const String &rhs) const
Definition: CStringArray.h:274
Definition: CStringArray.h:211
size_t length(void) const
Obtain the String length in characters, excluding NUL terminator.
Definition: WString.h:228
bool contains(const String &str, bool ignoreCase=true) const
Check if array contains a string.
Definition: CStringArray.h:174
bool add(const String &str)
Append a new string (or array of strings) to the end of the array.
Definition: CStringArray.h:106
void toCharArray(char *buf, size_t bufsize, size_t index=0) const
Read contents of String into a buffer.
Definition: WString.h:591
Definition: WString.h:820
bool equalsIgnoreCase(const char *cstr) const
Class to manage a double null-terminated list of strings, such as "one\0two\0three\0".
Definition: CStringArray.h:21
bool operator==(const Iterator &rhs) const
Definition: CStringArray.h:239
int indexOf(const String &str, bool ignoreCase=true) const
Find the given string and return its index.
Definition: CStringArray.h:152
bool operator!=(const Iterator &rhs) const
Definition: CStringArray.h:244
Iterator()=default
bool contains(const char *str, bool ignoreCase=true) const
Check if array contains a string.
Definition: CStringArray.h:163
int compareTo(const char *cstr, size_t length) const