#include <hstring.hpp>
Inherits std::vector< net::halfdans::String >.

Public Member Functions | |
| String & | operator[] (int _index) |
| Get a refence to the string at the specified position, but supports Python-like negative indexing. | |
| const String & | operator[] (int _index) const |
| Const variant of operator[]. | |
| void | purgeEmpty () |
| Remove strings which are completely empty, as in std::string::empty() returns true. | |
| void | stripAndPurgeEmpty (const std::string &_letters=" \t\r\n") |
| Remove string which consists only of characters from the _letters string. | |
| String& net::halfdans::StringList::operator[] | ( | int | _index | ) | [inline] |
Get a refence to the string at the specified position, but supports Python-like negative indexing.
| const String& net::halfdans::StringList::operator[] | ( | int | _index | ) | const [inline] |
| void net::halfdans::StringList::purgeEmpty | ( | ) | [inline] |
Remove strings which are completely empty, as in std::string::empty() returns true.
| void net::halfdans::StringList::stripAndPurgeEmpty | ( | const std::string & | _letters = " \t\r\n" |
) | [inline] |
Remove string which consists only of characters from the _letters string.
// list is: "1", "2 ", " 3 ", "", " ", " 5" StringList list; list.stripAndPurgeEmpty(); // list is now: "1", "2 ", " 3 ", " 5"
1.5.6