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:531
bool operator==(const char *rhs) const
Definition: CStringArray.h:291
const char * c_str() const
Get a constant (un-modifiable) pointer to String content.
Definition: WString.h:616
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:275
Iterator(const CStringArray *array, uint16_t offset, uint16_t index)
Definition: CStringArray.h:259
bool operator!=(const char *rhs) const
Definition: CStringArray.h:296
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:311
const char * operator[](unsigned index) const
Get string at the given position.
Definition: CStringArray.h:189
bool pushBack(const char *str)
Add item to end of array.
Definition: CStringArray.h:225
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:306
const __FlashStringHelper * flash_string_t
Provides a strongly-typed pointer to allow safe implicit operation using String class methods...
Definition: WString.h:96
bool operator!=(const String &rhs) const
Definition: CStringArray.h:316
Definition: CStringArray.h:253
size_t length(void) const
Obtain the String length in characters, excluding NUL terminator.
Definition: WString.h:243
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:607
Definition: WString.h:891
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:281
int indexOf(const String &str, bool ignoreCase=true) const
Find the given string and return its index.
Definition: CStringArray.h:152
const char * front() const
Get first value in array, null if empty.
Definition: CStringArray.h:197
bool operator!=(const Iterator &rhs) const
Definition: CStringArray.h:286
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
1.8.13