25#ifndef MYSQL_HARNESS_STRING_UTILS_INCLUDED
26#define MYSQL_HARNESS_STRING_UTILS_INCLUDED
28#include "harness_export.h"
48std::vector<std::string>
split_string(
const std::string_view &data,
50 bool allow_empty =
true);
const char * delimiter
Definition: mysqlslap.cc:154
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1055
HARNESS_EXPORT std::vector< std::string > split_string(const std::string_view &data, const char delimiter, bool allow_empty=true)
Splits a string using a delimiter.
Definition: string_utils.cc:33
HARNESS_EXPORT void left_trim(std::string &str)
Removes leading whitespaces from the string.
Definition: string_utils.cc:58
HARNESS_EXPORT void trim(std::string &str)
Removes both leading and trailing whitespaces from the string.
Definition: string_utils.cc:67
HARNESS_EXPORT void right_trim(std::string &str)
Removes trailing whitespaces from the string.
Definition: string_utils.cc:62