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

Test for date. More...

#include <stdex/parser.hpp>

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

Public Types

enum class  format {
  dmy = 0x1 , mdy = 0x2 , ymd = 0x4 , ym = 0x8 ,
  my = 0x10 , dm = 0x20 , md = 0x40
}
 

Public Member Functions

 basic_date (int format_mask, const std::shared_ptr< basic_integer< T > > &_day, const std::shared_ptr< basic_integer< T > > &_month, const std::shared_ptr< basic_integer< T > > &_year, const std::shared_ptr< basic_set< T > > &separator, const std::shared_ptr< basic_parser< T > > &space, 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

format format
 
std::shared_ptr< basic_integer< T > > day
 
std::shared_ptr< basic_integer< T > > month
 
std::shared_ptr< basic_integer< T > > year
 
- Public Attributes inherited from stdex::parser::basic_parser< T >
interval< size_t > interval
 Region of the last match.
 

Static Protected Member Functions

static bool is_valid (size_t day, size_t month)
 

Protected Attributes

int m_format_mask
 
std::shared_ptr< basic_set< T > > m_separator
 
std::shared_ptr< basic_parser< T > > m_space
 
- Protected Attributes inherited from stdex::parser::basic_parser< T >
std::locale m_locale
 

Detailed Description

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

Test for date.

Member Function Documentation

◆ invalidate()

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

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

◆ match()

template<class T >
virtual bool stdex::parser::basic_date< 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: