|
Public Member Functions |
| otStringList () |
void | append (const char *str) |
void | append (otString &str) |
bool | insert (U32 pos, const char *str) |
| Insert a string at the specified position.
|
bool | insert (U32 pos, otString &str) |
| Insert a string at the specified position.
|
bool | remove (U32 pos) |
| Remove selected string.
|
otString | join (const char *sep) |
| Joins all the string list's strings into a single string with each element separated by the given separator (which can be an empty string).
|
U32 | size () |
| Returns the number of items in the list.
|
int | indexOf (const char *str_find, U32 initial_position=0) |
| Returns the index position of the first occurrence of value in the list, searching forward from index position from. Returns -1 if no item matched.
|
int | indexOf (otString &str_find, U32 initial_position=0) |
| Returns the index position of the first occurrence of value in the list, searching forward from index position from. Returns -1 if no item matched.
|
void | sort () |
| Sorts the list of strings in ascending order (case sensitively).
|
otString | at (U32 pos) |
| Read an item at the specified index.
|
const char * | cstr (U32 pos) |
| Read an item at the specified index.
|
void | close () |
| Free all allocated memory e set the size to 0.
|