MySQL 8.3.0
Source Code Documentation
utilities.h File Reference
#include <memory>
#include <ostream>
#include <string>
#include <vector>
#include "harness_export.h"

Go to the source code of this file.

Classes

class  mysql_harness::utility::Range< Type >
 Class to turn C array into range. More...
 
class  mysql_harness::utility::Range< Type >::iterator
 
class  mysql_harness::utility::RangeReverse< Range >
 Class for creating a reverse range from another range. More...
 

Namespaces

namespace  mysql_harness
 
namespace  mysql_harness::utility
 

Functions

template<class Type >
Range< Type > mysql_harness::utility::make_range (Type *ptr, size_t length)
 Create a range from a plain C array. More...
 
template<typename Range >
RangeReverse< Range > mysql_harness::utility::reverse (Range &x)
 Iterate over a range in reverse. More...
 
template<class Map >
std::pair< typename Map::iterator, typename Map::iterator > mysql_harness::utility::find_range_first (Map &assoc, const typename Map::key_type::first_type &first, typename Map::iterator start)
 
template<class Map >
std::pair< typename Map::iterator, typename Map::iterator > mysql_harness::utility::find_range_first (Map &assoc, const typename Map::key_type::first_type &first)
 
template<class Map >
std::pair< typename Map::const_iterator, typename Map::const_iterator > mysql_harness::utility::find_range_first (const Map &assoc, const typename Map::key_type::first_type &first, typename Map::const_iterator start)
 
template<class Map >
std::pair< typename Map::const_iterator, typename Map::const_iterator > mysql_harness::utility::find_range_first (const Map &assoc, const typename Map::key_type::first_type &first)
 
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)
 
bool mysql_harness::utility::matches_glob (const std::string &word, const std::string &pattern)
 
bool mysql_harness::utility::regex_pattern_matches (const std::string &s, const std::string &pattern)