|
stdex
Additional custom or not Standard C++ covered algorithms
|
Test for IPv4 address. More...
#include <stdex/parser.hpp>
Public Member Functions | |
| basic_ipv4_address (const std::shared_ptr< basic_parser< T > > &digit_0, const std::shared_ptr< basic_parser< T > > &digit_1, const std::shared_ptr< basic_parser< T > > &digit_2, const std::shared_ptr< basic_parser< T > > &digit_3, const std::shared_ptr< basic_parser< T > > &digit_4, const std::shared_ptr< basic_parser< T > > &digit_5, const std::shared_ptr< basic_parser< T > > &digit_6, const std::shared_ptr< basic_parser< T > > &digit_7, const std::shared_ptr< basic_parser< T > > &digit_8, const std::shared_ptr< basic_parser< T > > &digit_9, const std::shared_ptr< basic_parser< T > > &separator, const std::locale &locale=std::locale()) | |
| virtual void | invalidate () |
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 | |
| stdex::interval< size_t > | components [4] |
| Individual component intervals. | |
| struct in_addr | value |
| IPv4 address value. | |
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_parser< T > > | m_digit_0 |
| std::shared_ptr< basic_parser< T > > | m_digit_1 |
| std::shared_ptr< basic_parser< T > > | m_digit_2 |
| std::shared_ptr< basic_parser< T > > | m_digit_3 |
| std::shared_ptr< basic_parser< T > > | m_digit_4 |
| std::shared_ptr< basic_parser< T > > | m_digit_5 |
| std::shared_ptr< basic_parser< T > > | m_digit_6 |
| std::shared_ptr< basic_parser< T > > | m_digit_7 |
| std::shared_ptr< basic_parser< T > > | m_digit_8 |
| std::shared_ptr< basic_parser< T > > | m_digit_9 |
| std::shared_ptr< basic_parser< T > > | m_separator |
Protected Attributes inherited from stdex::parser::basic_parser< T > | |
| std::locale | m_locale |
Test for IPv4 address.
|
inlineprotectedvirtual |
Implements stdex::parser::basic_parser< T >.
|
inlinevirtual |
Reimplemented from stdex::parser::basic_parser< T >.