13 #ifndef _SMING_CORE_DATA_C_STRING_ARRAY_H_ 14 #define _SMING_CORE_DATA_C_STRING_ARRAY_H_ 44 bool add(
const char* str,
unsigned length = 0);
52 return add(str.c_str(), str.length());
60 int indexOf(
const char* str)
const;
96 const char*
getValue(
unsigned index)
const;
118 unsigned count()
const;
121 mutable unsigned stringCount = 0;
124 #endif // _SMING_CORE_DATA_C_STRING_ARRAY_H_ unsigned count() const
Get quantity of strings in array.
void clear()
Empty the array.
Definition: CStringArray.h:109
bool contains(const char *str) const
Check if array contains a string.
Definition: CStringArray.h:77
int indexOf(const String &str) const
Find the given string and return its index.
Definition: CStringArray.h:67
The string class.
Definition: WString.h:104
const char * operator[](unsigned index) const
Get string at the given position.
Definition: CStringArray.h:102
const char * getValue(unsigned index) const
Get string at the given position.
bool add(const char *str, unsigned length=0)
Append a new string to the end of the array.
bool add(const String &str)
Append a new string to the end of the array.
Definition: CStringArray.h:50
bool contains(const String &str) const
Check if array contains a string.
Definition: CStringArray.h:87
Class to manage a double null-terminated list of strings, such as "one\0two\0three".
Definition: CStringArray.h:33
int indexOf(const char *str) const
Find the given string and return its index.