33#ifndef DART_COMMON_STRING_HPP_
34#define DART_COMMON_STRING_HPP_
42std::string
toUpper(std::string str);
48std::string
toLower(std::string str);
55 const std::string& str,
const std::string& whitespaces =
" \n\r\t");
59 const std::string& str,
const std::string& whitespaces =
" \n\r\t");
63 const std::string& str,
const std::string& whitespaces =
" \n\r\t");
66std::vector<std::string>
split(
67 const std::string& str,
const std::string& delimiters =
" \n\r\t");
void toUpperInPlace(std::string &str)
Converts string to upper cases in place.
Definition String.cpp:47
std::string trimLeft(const std::string &str, const std::string &whitespaces)
Trims left side of string.
Definition String.cpp:72
std::string toLower(std::string str)
Converts string to lower cases.
Definition String.cpp:53
std::vector< std::string > split(const std::string &str, const std::string &delimiters)
Splits string given delimiters.
Definition String.cpp:86
std::string toUpper(std::string str)
Converts string to upper cases.
Definition String.cpp:40
std::string trimRight(const std::string &str, const std::string &whitespaces)
Trims right side of string.
Definition String.cpp:79
void toLowerInPlace(std::string &str)
Converts string to lower cases in place.
Definition String.cpp:60
std::string trim(const std::string &str, const std::string &whitespaces)
Trims both sides of string.
Definition String.cpp:66