|
stdex
Additional custom or not Standard C++ covered algorithms
|
Test for decimal integer possibly containing thousand separators. More...
#include <stdex/parser.hpp>
Public Member Functions | |
| basic_integer10ts (const std::shared_ptr< basic_integer10< T > > &digits, const std::shared_ptr< basic_set< T > > &separator, const std::locale &locale=std::locale()) | |
| virtual void | invalidate () |
Public Member Functions inherited from stdex::parser::basic_integer< T > | |
| basic_integer (const std::locale &locale=std::locale()) | |
Public Member Functions inherited from stdex::parser::basic_parser< T > | |
| basic_parser (const std::locale &locale=std::locale()) | |
| bool | search (_In_reads_or_z_opt_(end) const T *text, size_t start=0, size_t end=SIZE_MAX, int flags=match_default) |
| bool | match (_In_reads_or_z_opt_(end) const T *text, size_t start=0, size_t end=SIZE_MAX, int flags=match_default) |
| bool | match (const std::basic_string_view< T, std::char_traits< T > > text, size_t start=0, size_t end=SIZE_MAX, int flags=match_default) |
Public Attributes | |
| size_t | digit_count |
| Total number of digits in integer. | |
| bool | has_separators |
| Did integer have any separators? | |
Public Attributes inherited from stdex::parser::basic_integer< T > | |
| size_t | value |
| Calculated value of the numeral. | |
Public Attributes inherited from stdex::parser::basic_parser< T > | |
| stdex::interval< size_t > | interval |
| Region of the last match. | |
Protected Member Functions | |
| virtual bool | do_match (_In_reads_or_z_opt_(end) const T *text, size_t start=0, size_t end=SIZE_MAX, int flags=match_default) |
Protected Member Functions inherited from stdex::parser::basic_parser< T > | |
Protected Attributes | |
| std::shared_ptr< basic_integer10< T > > | m_digits |
| std::shared_ptr< basic_set< T > > | m_separator |
Protected Attributes inherited from stdex::parser::basic_parser< T > | |
| std::locale | m_locale |
Test for decimal integer possibly containing thousand separators.
|
inlineprotectedvirtual |
Implements stdex::parser::basic_parser< T >.
|
inlinevirtual |
Reimplemented from stdex::parser::basic_integer< T >.