MySQL  8.0.19
Source Code Documentation
utilities.cc File Reference
#include "utilities.h"
#include <algorithm>
#include <cassert>
#include <cstdarg>
#include <cstdio>
#include <cstring>

Namespaces

 mysql_harness
 
 mysql_harness::utility
 

Functions

string mysql_harness::utility::dirname (const string &path)
 
string mysql_harness::utility::basename (const string &path)
 
void mysql_harness::utility::strip (string *str, const char *chars)
 
string mysql_harness::utility::strip_copy (string str, const char *chars)
 
string mysql_harness::utility::string_format (const char *format,...)
 
vector< string > mysql_harness::utility::wrap_string (const 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...
 
std::string mysql_harness::utility::get_message_error (int errcode)