|
HARNESS_EXPORT std::vector< std::string > | mysql_harness::split_string (const std::string_view &data, const char delimiter, bool allow_empty=true) |
| Splits a string using a delimiter. More...
|
|
HARNESS_EXPORT void | mysql_harness::left_trim (std::string &str) |
| Removes leading whitespaces from the string. More...
|
|
HARNESS_EXPORT void | mysql_harness::right_trim (std::string &str) |
| Removes trailing whitespaces from the string. More...
|
|
HARNESS_EXPORT void | mysql_harness::trim (std::string &str) |
| Removes both leading and trailing whitespaces from the string. More...
|
|
HARNESS_EXPORT bool | mysql_harness::ieq (const std::string_view &a, const std::string_view &b) |
| Compares two string values for equality (case insensitive). More...
|
|
static std::optional< size_t > | mysql_harness::anonymous_namespace{string_utils.cc}::find_nth (const std::string_view &s, const char c, size_t n) |
| Finds n-th occurence of character c in string s. More...
|
|
HARNESS_EXPORT std::string | mysql_harness::limit_lines (const std::string &str, const size_t limit, const std::string &replace_with="") |
| Returns the input string with number of lines reduced to selected value. More...
|
|
HARNESS_EXPORT stdx::expected< bool, std::error_code > | mysql_harness::bool_from_string (std::string str) |
| Returns a boolean value parsed from a string. More...
|
|