stdex
Additional custom or not Standard C++ covered algorithms
|
Test for date. More...
#include <stdex/parser.hpp>
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 () |
![]() | |
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 |
![]() | |
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 |
![]() | |
std::locale | m_locale |
Test for date.
|
inlinevirtual |
Reimplemented from stdex::parser::basic_parser< T >.
|
inlinevirtual |
Implements stdex::parser::basic_parser< T >.