utility/strutil.h File Reference
#include <string>
#include <vector>
Go to the source code of this file.
Functions |
void | tokenize (const std::string &str, const std::string &delimiters, std::vector< std::string > &tokens) |
std::string | trim (const std::string myString, const std::string &delimiters=" \t\r\n") |
std::string | fix (const std::string myString, const std::string &delimiters=" \t\r\n") |
std::string & | clean_type_name (std::string &arg) |
bool | endswith (const std::string &full, const std::string &ending) |
Function Documentation
std::string& clean_type_name |
( |
std::string & |
arg |
) |
|
bool endswith |
( |
const std::string & |
full, |
|
|
const std::string & |
ending | |
|
) |
| | |
std::string fix |
( |
const std::string |
myString, |
|
|
const std::string & |
delimiters = " \t\r\n" | |
|
) |
| | |
Fix the user-given path whenever possible
References c, and trim().
void tokenize |
( |
const std::string & |
str, |
|
|
const std::string & |
delimiters, |
|
|
std::vector< std::string > & |
tokens | |
|
) |
| | |
std::string trim |
( |
const std::string |
myString, |
|
|
const std::string & |
delimiters = " \t\r\n" | |
|
) |
| | |