MySQL 9.2.0
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
utils.cc File Reference
#include "utils.h"
#include <algorithm>
#include <memory>
#include <stdexcept>
#include <rapidjson/document.h>
#include <rapidjson/error/en.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <ifaddrs.h>
#include <net/if.h>
#include <netdb.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include <errno.h>

Namespaces

namespace  routing_guidelines
 

Functions

std::string routing_guidelines::str_strip (const std::string &s, const std::string &chars)
 
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...
 
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)
 
int routing_guidelines::get_protocol_family (const std::string &address)
 Provides the protocol family for the given literal address. 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...
 
bool routing_guidelines::json_document_complete (const std::string &s)
 Is JSON document held by the string complete or not. More...