7 #ifndef ROHDESCHWARZ_HELPERS_HPP
8 #define ROHDESCHWARZ_HELPERS_HPP
25 std::string
leftTrim(std::string text);
37 std::string
trim(
const std::string& text);
99 bool isQuoted(
const std::string& text);
108 std::string
quote(
const char* text,
char quote_character =
'\'');
117 std::string
quote(
const std::string& text,
char quote_character =
'\'');
125 std::string
unquote(
const char* text);
133 std::string
unquote(
const std::string& text);
144 std::vector<std::string>
split(
const char* csvList,
const char separator =
',');
153 std::vector<std::string>
split(
const std::string& csvList,
const char separator =
',');
std::string unquote(const char *text)
Removes quotes from beginning and end of string.
bool isRightQuote(const char *text)
Checks for a quote at the end of the string.
std::string trim(const std::string &text)
Trims whitespace beginning and end of string.
std::string quote(const char *text, char quote_character='\'')
Surrounds string in quotes.
bool isLeftQuote(const char *text)
Checks for a quote at the beginning of the string.
std::vector< std::string > split(const char *csvList, const char separator=',')
Splits string on separator.
std::string leftTrim(std::string text)
Trims whitespace from left (beginning) of string.
bool isQuoted(const char *text)
Checks for quotes at the beginning and end of the string.
std::string rightTrim(std::string text)
Trims whitespace from right (end) of string.