MySQL 9.6.0
Source Code Documentation
mysql::strconv::Boundary_set_text_format Struct Reference

Tag to identify the formatting algorithm for boundary sets of integrals, and provide the separator strings and logic to skip whitespace around tokens. More...

#include <boundary_set_text_format.h>

Inheritance diagram for mysql::strconv::Boundary_set_text_format:
[legend]

Public Member Functions

 Boundary_set_text_format (const std::string_view &boundary_separator="-", const std::string_view &interval_separator=",", Allow_redundant_separators allow_redundant_separators=Allow_redundant_separators::yes, Allow_empty allow_empty=Allow_empty::yes, Skip_whitespace skip_whitespace_arg=Skip_whitespace::yes) noexcept
 
 Boundary_set_text_format (const Text_format &) noexcept
 
constexpr auto parent () const
 Fallback to Text_format to read/write types that don't have encode_impl/decode_impl implemented for Boundary_set_text_format. More...
 
void before_token (Parser &parser) const
 Skip whitespace before tokens, if m_skip_whitespace == true. More...
 
void after_token (Parser &parser) const
 Skip whitespace after tokens, if m_skip_whitespace == true. More...
 

Public Attributes

std::string_view m_boundary_separator
 Separator between start and end of a single interval. More...
 
std::string_view m_interval_separator
 Separator between end of one interval and start of next interval. More...
 
Allow_redundant_separators m_allow_redundant_separators
 When true, accept and skip extra interval separators before and after intervals. More...
 
Allow_empty m_allow_empty
 When true, accept the empty set. More...
 
Skip_whitespace m_skip_whitespace
 When true, accept and skip whitespace between tokens. More...
 

Detailed Description

Tag to identify the formatting algorithm for boundary sets of integrals, and provide the separator strings and logic to skip whitespace around tokens.

Constructor & Destructor Documentation

◆ Boundary_set_text_format() [1/2]

mysql::strconv::Boundary_set_text_format::Boundary_set_text_format ( const std::string_view &  boundary_separator = "-",
const std::string_view &  interval_separator = ",",
Allow_redundant_separators  allow_redundant_separators = Allow_redundant_separators::yes,
Allow_empty  allow_empty = Allow_empty::yes,
Skip_whitespace  skip_whitespace_arg = Skip_whitespace::yes 
)
inlineexplicitnoexcept

◆ Boundary_set_text_format() [2/2]

mysql::strconv::Boundary_set_text_format::Boundary_set_text_format ( const Text_format )
inlineexplicitnoexcept

Member Function Documentation

◆ after_token()

void mysql::strconv::Boundary_set_text_format::after_token ( Parser parser) const
inline

Skip whitespace after tokens, if m_skip_whitespace == true.

◆ before_token()

void mysql::strconv::Boundary_set_text_format::before_token ( Parser parser) const
inline

Skip whitespace before tokens, if m_skip_whitespace == true.

◆ parent()

constexpr auto mysql::strconv::Boundary_set_text_format::parent ( ) const
inlineconstexpr

Fallback to Text_format to read/write types that don't have encode_impl/decode_impl implemented for Boundary_set_text_format.

Member Data Documentation

◆ m_allow_empty

Allow_empty mysql::strconv::Boundary_set_text_format::m_allow_empty

When true, accept the empty set.

◆ m_allow_redundant_separators

Allow_redundant_separators mysql::strconv::Boundary_set_text_format::m_allow_redundant_separators

When true, accept and skip extra interval separators before and after intervals.

◆ m_boundary_separator

std::string_view mysql::strconv::Boundary_set_text_format::m_boundary_separator

Separator between start and end of a single interval.

◆ m_interval_separator

std::string_view mysql::strconv::Boundary_set_text_format::m_interval_separator

Separator between end of one interval and start of next interval.

◆ m_skip_whitespace

Skip_whitespace mysql::strconv::Boundary_set_text_format::m_skip_whitespace

When true, accept and skip whitespace between tokens.


The documentation for this struct was generated from the following file: