|
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 |
| constexpr auto | min () const noexcept |
| Get the minimal value. More... | |
| constexpr auto | max () const noexcept |
| Get the maximum value. More... | |
Static Public Member Functions | |
| static constexpr auto | unlimited_max () noexcept |
| Get the value that means that maximum is not limited. More... | |
| 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 467 of file easy_parser.hpp.
| using restinio::easy_parser::digits_to_consume_t::underlying_int_t = std::int_fast8_t |
Definition at line 470 of file easy_parser.hpp.
|
inlinenoexcept |
A constructor for the case when min = max and both are equal to total.
Definition at line 488 of file easy_parser.hpp.
|
inlinenoexcept |
A constructor for the case when min and max are specified separately.
Definition at line 498 of file easy_parser.hpp.
|
inlinestaticnoexcept |
Returns digits_to_consume_t{1, unlimited_max()}.
Definition at line 528 of file easy_parser.hpp.
|
inlinenoexcept |
Get the maximum value.
Definition at line 513 of file easy_parser.hpp.
|
inlinenoexcept |
Get the minimal value.
Definition at line 508 of file easy_parser.hpp.
|
inlinestaticnoexcept |
Get the value that means that maximum is not limited.
Definition at line 518 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 480 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 478 of file easy_parser.hpp.
1.8.14