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:92
Definition: CStringArray.h:270
bool operator==(const Iterator &rhs) const
Definition: CStringArray.h:297
bool operator!=(const Iterator &rhs) const
Definition: CStringArray.h:302
bool operator!=(const String &rhs) const
Definition: CStringArray.h:332
bool operator==(const String &rhs) const
Definition: CStringArray.h:327
bool equalsIgnoreCase(const char *rhs) const
Definition: CStringArray.h:291
bool equalsIgnoreCase(const String &rhs) const
Definition: CStringArray.h:322
Iterator(const Iterator &)=default
bool operator!=(const char *rhs) const
Definition: CStringArray.h:312
Iterator()=default
Iterator(const CStringArray *array, uint16_t offset, uint16_t index)
Definition: CStringArray.h:275
bool operator==(const char *rhs) const
Definition: CStringArray.h:307
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:609
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:204
bool contains(const char *str, bool ignoreCase=true) const
Check if array contains a string.
Definition: CStringArray.h:170
bool contains(const String &str, bool ignoreCase=true) const
Check if array contains a string.
Definition: CStringArray.h:181
CStringArray(StringSumHelper &&rval) noexcept
Definition: CStringArray.h:79
CStringArray & operator+=(const T &value)
Append numbers, etc. to the array.
Definition: CStringArray.h:138
bool add(const String &str)
Append a new string (or array of strings) to the end of the array.
Definition: CStringArray.h:113
String release()
Give up underlying String object to caller so it can be manipulated.
Definition: CStringArray.h:95
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:232
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:196
int indexOf(const String &str, bool ignoreCase=true) const
Find the given string and return its index.
Definition: CStringArray.h:159
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:238
Definition: WString.h:884
const char * c_str() const
Get a constant (un-modifiable) pointer to String content.
Definition: WString.h:609
bool startsWith(const String &prefix) const
Compare the start of a String Comparison is case-sensitive, must match exactly.
Definition: WString.h:524
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:600
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:238
1.9.1