String help functions.
More...
#include <String.h>
List of all members.
Public Member Functions |
| String () |
| The constructor.
|
| ~String () |
| The destructor.
|
Static Public Member Functions |
template<class T > |
static std::vector< T > | convertTo (std::vector< std::string > strVec) |
template<class T > |
static T | convertTo (std::string str) |
| convert a string to some kind of variable example: int i = String::convertTo<int>( "16" );
|
static std::string | downCase (std::string text) |
static std::vector< std::string > | explode (const std::string &text, const std::string &separators, bool keepSeparators=false) |
| splits a string into substrings at certain separators
|
template<class C > |
static std::string | implode (C &container, const std::string &separator) |
static std::string | removeCharacters (std::string text, std::string characters) |
template<class T > |
static std::string | toString (T value) |
| convert a variable of arbitrary type T to a string (must be writable to a stream)
|
static std::string | upCase (std::string text) |
Detailed Description
String help functions.
- Author:
- David Gossow (RX)
Definition at line 24 of file String.h.
Constructor & Destructor Documentation
Member Function Documentation
template<class T >
static std::vector<T> String::convertTo |
( |
std::vector< std::string > |
strVec | ) |
[inline, static] |
static std::vector<std::string> String::explode |
( |
const std::string & |
text, |
|
|
const std::string & |
separators, |
|
|
bool |
keepSeparators = false |
|
) |
| [static] |
splits a string into substrings at certain separators
- Parameters:
-
separators | string containing all possible separators |
template<class C >
static std::string String::implode |
( |
C & |
container, |
|
|
const std::string & |
separator |
|
) |
| [inline, static] |
convert a variable of arbitrary type T to a string (must be writable to a stream)
Definition at line 96 of file String.h.
The documentation for this class was generated from the following file: