PIP
0.4.0_beta2
Platform-Independent Primitives
|
Strings array class. More...
Inherits PIDeque< T >.
Public Member Functions | |
PIStringList () | |
Contructs empty strings list. | |
PIStringList (const PIString &str) | |
Contructs strings list with one string "str". | |
PIStringList (const PIString &s0, const PIString &s1) | |
Contructs empty strings list with strings "s0" and "s1". | |
PIStringList (const PIString &s0, const PIString &s1, const PIString &s2) | |
Contructs empty strings list with strings "s0", "s1" and "s2". | |
PIStringList (const PIString &s0, const PIString &s1, const PIString &s2, const PIString &s3) | |
Contructs empty strings list with strings "s0", "s1", "s2" and "s3". | |
PIString | join (const PIString &delim) const |
Join all strings in one with delimiter "delim" and return it. More... | |
PIStringList & | removeStrings (const PIString &value) |
Remove all strings equal "value" and return this. More... | |
PIStringList & | removeDuplicates () |
Remove duplicated strings and return this. More... | |
PIStringList & | trim () |
Trim all strings. More... | |
uint | contentSize () |
Return sum of lengths of all strings. | |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &s, const PIStringList &v) |
Output operator to std::ostream (cout) | |
Strings array class.
This class is based on PIVector<PIString> and expand it functionality.
Join all strings in one with delimiter "delim" and return it.
Example:
|
inline |
Remove all strings equal "value" and return this.
Example:
PIStringList & PIStringList::removeDuplicates | ( | ) |
|
inline |
Trim all strings.
Example: