|
Public Member Functions |
| | string () |
| | Construct null.
|
| | string (const std::string &) |
| | Construct from std::string.
|
| | string (const char *) |
| | Construct as copy of character array.
|
| | string (const char *, const size_type) |
| | Construct as copy of specified number of characters.
|
| | string (const char) |
| | Construct from a single character.
|
| | string (Istream &) |
| | Construct from Istream.
|
| size_type | count (const char) const |
| | Count and return the number of a given character in the string.
|
| string & | replace (const string &oldStr, const string &newStr, size_type start=0) |
| | Replace first occurence of sub-string oldStr with newStr.
|
| string & | replaceAll (const string &oldStr, const string &newStr, size_type start=0) |
| | Replace all occurences of sub-string oldStr with newStr.
|
| string & | expand () |
| | Expand all occurences of environment variables and ~.
|
| bool | removeRepeated (const char character) |
| | Remove repeated characters returning true if string changed.
|
| string | removeRepeated (const char character) const |
| | Return string with repeated characters removed.
|
| bool | removeTrailing (const char character) |
| | Remove trailing character returning true if string changed.
|
| string | removeTrailing (const char character) const |
| | Return string with trailing character removed.
|
| string | operator() (const size_type i, const size_type n) const |
| string | operator() (const size_type n) const |
Static Public Member Functions |
| template<class String> |
| static bool | valid (const string &) |
| | Is this string type valid.
|
| template<class String> |
| static bool | stripInvalid (string &) |
| | Strip invalid characters from the given string.
|
| template<class String> |
| static String | validate (const string &) |
| | Return a valid String from the given string.
|
Static Public Attributes |
| static int | debug |
| | Debug switch.
|
| static const string | null |
| | Null string.
|
Friends |
| Istream & | operator>> (Istream &, string &) |
| Ostream & | operator<< (Ostream &, const string &) |
Classes |
| class | hash |
| | Hashing function class. More...
|