MySQL 8.0.31
Source Code Documentation
common.cc File Reference
#include <cassert>
#include <cstring>
#include <fstream>
#include <memory>
#include <sstream>
#include <stdexcept>
#include <system_error>
#include "common.h"
#include "harness_assert.h"
#include "my_thread.h"
#include <pthread.h>
#include <sys/stat.h>

Namespaces

namespace  mysql_harness
 

Functions

static const std::string & mysql_harness::truncate_string_backend (const std::string &input, std::string &output, size_t max_len)
 
HARNESS_EXPORT const std::string & mysql_harness::truncate_string (const std::string &input, size_t max_len=80)
 Return a truncated version of input string (fast version) More...
 
HARNESS_EXPORT std::string mysql_harness::truncate_string_r (const std::string &input, size_t max_len=80)
 Return a truncated version of input string (reentrant version) More...