#include <pstring.h>
Public Member Functions | |
Construction | |
PStringSet (PINDEX count, char const *const *strarr, BOOL caseless=FALSE) | |
PStringSet (const PString &str) | |
Overrides from class PObject | |
virtual void | ReadFrom (istream &strm) |
Operations | |
void | Include (const PString &key) |
PStringSet & | operator+= (const PString &key) |
void | Exclude (const PString &key) |
PStringSet & | operator-= (const PString &key) |
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.
Unlike the normal sets, this will delete the PStrings removed from it. This complements the automatic creation of new PString objects when literals or expressions are used.
See the PAbstractSet# and #PSet# classes and #PDECLARE_SET# macro for more information.
|
Create a PStringArray from the array of C strings.
|
|
Create a PStringSet containing the single string.
|
|
Exclude the spcified string value from the set.
|
|
Include the spcified string value into the set.
|
|
Include the spcified string value into the set.
|
|
Exclude the spcified string value from the set.
|
|
Input the contents of the object from the stream. This is primarily used by the standard #operator>># function.
The default behaviour reads '
|