MySQL 9.2.0
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
utils.h File Reference
#include <algorithm>
#include <cstring>
#include <functional>
#include <ranges>
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  rapidjson
 
namespace  routing_guidelines
 

Functions

std::string routing_guidelines::str_strip (const std::string &s, const std::string &chars)
 
bool routing_guidelines::str_eq (std::string_view a, std::string_view b)
 
bool routing_guidelines::str_caseeq (const char *a, const char *b)
 
bool routing_guidelines::str_caseeq (const char *a, const char *b, size_t n)
 
bool routing_guidelines::str_caseeq (std::string_view lhs, std::string_view rhs)
 
int routing_guidelines::str_casecmp (const char *a, const char *b)
 Compares 2 strings case insensitive (for ascii) More...
 
int routing_guidelines::str_casecmp (const std::string &a, const std::string &b)
 
bool routing_guidelines::str_ibeginswith (std::string_view str, std::string_view prefix)
 
bool routing_guidelines::str_beginswith (std::string_view str, std::string_view prefix)
 
std::string routing_guidelines::str_upper (std::string_view s)
 Convert a copy of an ASCII string to uppercase and return. More...
 
std::string routing_guidelines::str_lower (std::string_view s)
 Convert a copy of an ASCII string to lowercase and return. More...
 
std::string routing_guidelines::mysql_unescape_string (std::string_view s)
 process escapes in a string , keep synchronous with sql_load unescape ("ntrb0ZN") More...
 
std::string routing_guidelines::like_to_regexp (std::string_view pattern)
 
template<typename Container >
bool routing_guidelines::case_contains (const Container &container, std::string_view str)
 Check if container contains identincal string independent of case. More...
 
bool routing_guidelines::is_ipv4 (const std::string &address)
 
bool routing_guidelines::is_ipv6 (const std::string &host)
 
std::string routing_guidelines::network (const std::string &address, unsigned int bitlen)
 Compute network part of an IPv4 address. More...
 
std::string routing_guidelines::format_json_error (const std::string &s, const rapidjson::ParseResult &ok, size_t chars)
 Format JSON parse error adding responsible JSON part. More...
 
bool routing_guidelines::json_document_complete (const std::string &s)
 Is JSON document held by the string complete or not. More...