strings.h File Reference
#include <stdexcept>
#include <string>
#include <vector>
Go to the source code of this file.
Namespaces |
namespace | Dv |
namespace | Dv::String |
Functions |
size_t | Dv::String::split (const std::string &input, const std::string &separator, std::vector< std::string > &output) throw () |
| Split a string consisting of substrings separated by a separator string.
|
size_t | Dv::String::split_and_trim (const std::string &input, const std::string &separator, std::vector< std::string > &output) throw () |
| Split and trim the results.
|
std::string & | Dv::String::tolower (std::string &s) throw () |
| Change (in-place) all chars in string to lower case.
|
std::string & | Dv::String::toupper (std::string &s) throw () |
| Change (in-place) all chars in string to upper case.
|
std::string & | Dv::String::trim (std::string &s) throw () |
| Remove leading and trailing white noise (as defined by isspace(3)) The argument is changed and returned.
|
std::string | Dv::String::trim (const std::string &s) throw () |
| Remove leading and trailing white noise (as defined by isspace(3)) The argument is changed and returned.
|
std::string & | Dv::String::despace (std::string &s, char c= '-') throw () |
| Replace each space character in s by a given character.
|
char * | Dv::String::trim (char *pc) throw () |
| Remove leading and trailing white noise (' ','\n','\t') from C string.
|