41 std::vector<std::string>
explode(
const std::string& _string,
const char _delim);
44 void replace(std::string& _string,
const std::string& _search,
const std::string& _replace);
47 std::string
XERUS_warn_unused trim(
const std::string& _string,
const std::string& whitespace =
" \t\n\r\v");
50 std::string
XERUS_warn_unused reduce(
const std::string& _string,
const std::string& whitespace =
" \t\n\r\v",
const std::string& fill =
" ");
The main namespace of xerus.
std::string XERUS_warn_unused trim(const std::string &_string, const std::string &whitespace=" \\")
: Removes all leading and trailing whitespaces from _string.
#define XERUS_warn_unused
std::string XERUS_warn_unused reduce(const std::string &_string, const std::string &whitespace=" \\", const std::string &fill=" ")
: Removes all leading and trailing whitespaces from _string, and reduces all double whitespaces to on...
std::string XERUS_warn_unused demangle_cxa(const std::string &_cxa)
Demangles the function and class names created by gcc into a more readable format.
std::string XERUS_warn_unused normalize_pathname(const std::string &_name)
Resolves 'folder/..' occurences in pathnames.
void replace(std::string &_string, const std::string &_search, const std::string &_replace)
: Replaces all occurences of _search in _string by _replace.
Header file for global shorthand notations of elementary integer types and attribute lists...
std::vector< std::string > explode(const std::string &_string, const char _delim)
: Explodes a string at positions indicated by _delim.