CStringArray.h
Go to the documentation of this file.
const __FlashStringHelper * flash_string_t
Provides a strongly-typed pointer to allow safe implicit operation using String class methods.
Definition: WString.h:96
Definition: CStringArray.h:263
bool operator==(const Iterator &rhs) const
Definition: CStringArray.h:290
bool operator!=(const Iterator &rhs) const
Definition: CStringArray.h:295
bool operator!=(const String &rhs) const
Definition: CStringArray.h:325
bool operator==(const String &rhs) const
Definition: CStringArray.h:320
bool equalsIgnoreCase(const char *rhs) const
Definition: CStringArray.h:284
bool equalsIgnoreCase(const String &rhs) const
Definition: CStringArray.h:315
Iterator(const Iterator &)=default
bool operator!=(const char *rhs) const
Definition: CStringArray.h:305
Iterator()=default
Iterator(const CStringArray *array, uint16_t offset, uint16_t index)
Definition: CStringArray.h:268
bool operator==(const char *rhs) const
Definition: CStringArray.h:300
Class to manage a double null-terminated list of strings, such as "one\0two\0three\0".
Definition: CStringArray.h:22
const char * c_str() const
Get a constant (un-modifiable) pointer to String content.
Definition: WString.h:616
String join(const String &separator=",") const
Get contents of array as delimited string.
const char * front() const
Get first value in array, null if empty.
Definition: CStringArray.h:197
bool contains(const char *str, bool ignoreCase=true) const
Check if array contains a string.
Definition: CStringArray.h:163
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
int indexOf(const char *str, bool ignoreCase=true) const
Find the given string and return its index.
CStringArray(const char *cstr, unsigned int length)
Definition: CStringArray.h:59
bool pushBack(const char *str)
Add item to end of array.
Definition: CStringArray.h:225
CStringArray & operator+=(T value)
Append numbers, etc. to the array.
Definition: CStringArray.h:131
bool add(const char *str, int length=-1)
Append a new string (or array of strings) to the end of the array.
const char * operator[](unsigned index) const
Get string at the given position.
Definition: CStringArray.h:189
int indexOf(const String &str, bool ignoreCase=true) const
Find the given string and return its index.
Definition: CStringArray.h:152
CStringArray(flash_string_t pstr, int length=-1)
Definition: CStringArray.h:64
size_t length(void) const
Obtain the String length in characters, excluding NUL terminator.
Definition: WString.h:243
Definition: WString.h:892
const char * c_str() const
Get a constant (un-modifiable) pointer to String content.
Definition: WString.h:616
bool startsWith(const String &prefix) const
Compare the start of a String Comparison is case-sensitive, must match exactly.
Definition: WString.h:531
int compareTo(const char *cstr, size_t length) const
size_t getBytes(unsigned char *buf, size_t bufsize, size_t index=0) const
Read contents of a String into a buffer.
void toCharArray(char *buf, size_t bufsize, size_t index=0) const
Read contents of String into a buffer.
Definition: WString.h:607
bool equalsIgnoreCase(const char *cstr) const
String & operator=(const String &rhs)
size_t length(void) const
Obtain the String length in characters, excluding NUL terminator.
Definition: WString.h:243