stdex
Additional custom or not Standard C++ covered algorithms
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Attributes | List of all members
stdex::parser::basic_ipv4_address< T > Class Template Reference

Test for IPv4 address. More...

#include <stdex/parser.hpp>

Inheritance diagram for stdex::parser::basic_ipv4_address< T >:
stdex::parser::basic_parser< T >

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 bool match (_In_reads_or_z_(end) const T *text, size_t start=0, size_t end=(size_t) -1, int flags=match_default)
 
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_(end) const T *text, size_t start=0, size_t end=(size_t) -1, int flags=match_default)
 
virtual bool match (_In_reads_or_z_(end) const T *text, size_t start=0, size_t end=(size_t) -1, int flags=match_default)=0
 
template<class _Traits , class _Ax >
bool match (const std::basic_string< T, _Traits, _Ax > &text, size_t start=0, size_t end=(size_t) -1, int flags=match_default)
 
virtual void invalidate ()
 

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 >
interval< size_t > interval
 Region of the last match.
 

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
 

Detailed Description

template<class T>
class stdex::parser::basic_ipv4_address< T >

Test for IPv4 address.

Member Function Documentation

◆ invalidate()

template<class T >
virtual void stdex::parser::basic_ipv4_address< T >::invalidate ( )
inlinevirtual

Reimplemented from stdex::parser::basic_parser< T >.

◆ match()

template<class T >
virtual bool stdex::parser::basic_ipv4_address< T >::match ( _In_reads_or_z_(end) const T *  text,
size_t  start = 0,
size_t  end = (size_t)-1,
int  flags = match_default 
)
inlinevirtual

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