MySQL 8.0.40
Source Code Documentation
|
#include "utilities.h"
#include <algorithm>
#include <cassert>
#include <cstdarg>
#include <cstring>
#include <string>
#include "mysql/harness/utility/string.h"
Namespaces | |
namespace | mysql_harness |
namespace | mysql_harness::utility |
Functions | |
std::string | mysql_harness::utility::dirname (const std::string &path) |
std::string | mysql_harness::utility::basename (const std::string &path) |
void | mysql_harness::utility::strip (std::string *str, const char *chars=" \t\n\r\f\v") |
Remove starting and trailing delimiters from string. More... | |
std::string | mysql_harness::utility::strip_copy (std::string str, const char *chars) |
HARNESS_EXPORT std::string | mysql_harness::utility::string_format (const char *format,...) |
std::vector< std::string > | mysql_harness::utility::wrap_string (const std::string &to_wrap, size_t width, size_t indent_size) |
bool HARNESS_EXPORT | mysql_harness::utility::ends_with (const std::string &str, const std::string &suffix) |
Checks whether string ends with the specified suffix. More... | |
bool HARNESS_EXPORT | mysql_harness::utility::starts_with (const std::string &str, const std::string &prefix) |
Checks whether string starts with the specified prefix. More... | |