7#ifndef __STRINGLIST_H__
8#define __STRINGLIST_H__
struct _StringList StringList
Represents a list of pointers to zero-terminated strings.
void StringList_Clear(StringList *stringList)
Clear the specified string list. All strings in the list are released. The string list can then be us...
bool StringList_AddStrings(StringList *stringList, const char **strings, size_t numStrings)
Add an array of strings to the given string list.
int StringList_Find(StringList *stringList, const char *string)
Search the given string list for the given string. If found, return the index of the found string.
void StringList_Initialize(StringList *stringList)
Initialize the given string list.
void StringList_Remove(StringList *stringList, int removeIndex)
Remove the specified string from the given string list.
bool StringList_AddString(StringList *stringList, const char *string)
Add a string to the given string list.
std::vector< std::string > StringList
Typedef for a vector of std::string.
Represents a list of pointers to zero-terminated strings.
size_t strings_count
Number of strings in the strings list.
const char ** strings
Pointer to an array of zero-terminated string pointers.
size_t allocated_count
The number of strings that can be held in the strings list.