MySQL 9.2.0
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
anonymous_namespace{destination.cc} Namespace Reference

Functions

constexpr int8_t from_digit (char c)
 
template<class T >
requires (std::is_unsigned_v<T>)
stdx::expected< T, std::error_code > from_chars (const std::string &value, int base=10)
 convert a numeric string to a number. More...
 
stdx::expected< mysql_harness::TcpDestination, std::error_code > make_tcp_destination_ipv6 (const std::string &endpoint)
 

Function Documentation

◆ from_chars()

template<class T >
requires (std::is_unsigned_v<T>)
stdx::expected< T, std::error_code > anonymous_namespace{destination.cc}::from_chars ( const std::string &  value,
int  base = 10 
)

convert a numeric string to a number.

variant for unsigned integers like port numbers.

Contrary to strtol() it

  • has no locale support
  • '-0' doesn't parse as valid (as strtol() does)
  • does not handle prefixes like 0x for hex, no 0 for octal.

◆ from_digit()

constexpr int8_t anonymous_namespace{destination.cc}::from_digit ( char  c)
constexpr

◆ make_tcp_destination_ipv6()

stdx::expected< mysql_harness::TcpDestination, std::error_code > anonymous_namespace{destination.cc}::make_tcp_destination_ipv6 ( const std::string &  endpoint)