|
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 ~.
|
| 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> |
| bool | valid (const string &) |
| | Is this string type valid.
|
| template<class String> |
| bool | stripInvalid (string &) |
| | Strip invalid characters from the given string.
|
| template<class String> |
| String | validate (const string &) |
| | Return a valid String from the given string.
|
Static Public Attributes |
| int | debug |
| | Debug switch.
|
| const string | null |
| | Null string.
|
Friends |
| Istream & | operator>> (Istream &, string &) |
| Ostream & | operator<< (Ostream &, const string &) |