#include <pstring.h>
Operations | |
PINDEX | AppendString (const PString &str) |
PINDEX | InsertString (const PString &before, const PString &str) |
PINDEX | GetStringsIndex (const PString &str) const |
PStringList & | operator+= (const PStringList &list) |
PStringList & | operator+= (const PString &str) |
PStringList | operator+ (const PStringList &array) |
PStringList | operator+ (const PString &str) |
template<typename stlContainer> | |
static PStringList | container (const stlContainer &vec) |
Public Member Functions | |
Construction | |
PStringList (PINDEX count, char const *const *strarr, BOOL caseless=FALSE) | |
PStringList (const PString &str) | |
PStringList (const PStringArray &array) | |
PStringList (const PSortedStringList &list) | |
Overrides from class PObject | |
virtual void | ReadFrom (istream &strm) |
In addition some addition functions are added that take a const PString# reference instead of a pointer as most standard collection functions do. This is more convenient for when string expressions are used as parameters to function in the collection.
See the PAbstractList# and #PList# classes and PDECLARE_LIST# macro for more information.
|
Create a PStringList from the array of C strings.
|
|
Create a PStringList of length one from the single string.
|
|
Create a PStringList from the array of strings.
|
|
Create a PStringList from the sorted list of strings.
|
|
Append a string to the list.
|
|
Create a PStringArray from an STL container |
|
Get the index of the string with the specified value. A linear search of list is performed to find the string value.
|
|
Insert a string into the list.
|
|
|
|
Create a new PStringList, and add PString or PStringList to it a new PStringList
|
|
|
|
Concatenate a PString or PStringArray to the list
|
|
Input the contents of the object from the stream. This is primarily used by the standard #operator>># function.
The default behaviour reads ' |