RESTinio
|
Limits for number of digits to be extracted during parsing of decimal numbers. More...
#include <easy_parser.hpp>
Public Types | |
using | underlying_int_t = std::int_fast8_t |
Public Member Functions | |
constexpr | digits_to_consume_t (underlying_int_t total) noexcept |
constexpr | digits_to_consume_t (underlying_int_t min, underlying_int_t max) noexcept |
RESTINIO_NODISCARD constexpr auto | min () const noexcept |
Get the minimal value. More... | |
RESTINIO_NODISCARD constexpr auto | max () const noexcept |
Get the maximum value. More... | |
Static Public Member Functions | |
RESTINIO_NODISCARD static constexpr auto | unlimited_max () noexcept |
Get the value that means that maximum is not limited. More... | |
RESTINIO_NODISCARD static constexpr auto | from_one_to_max () noexcept |
Public Attributes | |
underlying_int_t | m_min |
Minimal number of digits to consume. More... | |
underlying_int_t | m_max |
Maximal number of digits to consume. More... | |
Limits for number of digits to be extracted during parsing of decimal numbers.
Definition at line 466 of file easy_parser.hpp.
using restinio::easy_parser::digits_to_consume_t::underlying_int_t = std::int_fast8_t |
Definition at line 469 of file easy_parser.hpp.
|
inlineconstexprnoexcept |
A constructor for the case when min = max and both are equal to total.
Definition at line 487 of file easy_parser.hpp.
|
inlineconstexprnoexcept |
A constructor for the case when min and max are specified separately.
Definition at line 497 of file easy_parser.hpp.
|
inlinestaticconstexprnoexcept |
Returns digits_to_consume_t{1, unlimited_max()}
.
Definition at line 527 of file easy_parser.hpp.
|
inlineconstexprnoexcept |
Get the maximum value.
Definition at line 512 of file easy_parser.hpp.
|
inlineconstexprnoexcept |
Get the minimal value.
Definition at line 507 of file easy_parser.hpp.
|
inlinestaticconstexprnoexcept |
Get the value that means that maximum is not limited.
Definition at line 517 of file easy_parser.hpp.
underlying_int_t restinio::easy_parser::digits_to_consume_t::m_max |
Maximal number of digits to consume.
Definition at line 479 of file easy_parser.hpp.
underlying_int_t restinio::easy_parser::digits_to_consume_t::m_min |
Minimal number of digits to consume.
Definition at line 477 of file easy_parser.hpp.