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

Test for Roman numeral. More...

#include <stdex/parser.hpp>

Inheritance diagram for stdex::parser::basic_roman_numeral< T >:
stdex::parser::basic_integer< T > stdex::parser::basic_parser< T >

Public Member Functions

 basic_roman_numeral (const std::shared_ptr< basic_parser< T > > &digit_1, const std::shared_ptr< basic_parser< T > > &digit_5, const std::shared_ptr< basic_parser< T > > &digit_10, const std::shared_ptr< basic_parser< T > > &digit_50, const std::shared_ptr< basic_parser< T > > &digit_100, const std::shared_ptr< basic_parser< T > > &digit_500, const std::shared_ptr< basic_parser< T > > &digit_1000, const std::shared_ptr< basic_parser< T > > &digit_5000, const std::shared_ptr< basic_parser< T > > &digit_10000, 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)
 
- Public Member Functions inherited from stdex::parser::basic_integer< T >
 basic_integer (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_(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 ()
 

Protected Attributes

std::shared_ptr< basic_parser< T > > m_digit_1
 
std::shared_ptr< basic_parser< T > > m_digit_5
 
std::shared_ptr< basic_parser< T > > m_digit_10
 
std::shared_ptr< basic_parser< T > > m_digit_50
 
std::shared_ptr< basic_parser< T > > m_digit_100
 
std::shared_ptr< basic_parser< T > > m_digit_500
 
std::shared_ptr< basic_parser< T > > m_digit_1000
 
std::shared_ptr< basic_parser< T > > m_digit_5000
 
std::shared_ptr< basic_parser< T > > m_digit_10000
 
- Protected Attributes inherited from stdex::parser::basic_parser< T >
std::locale m_locale
 

Additional Inherited Members

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

Detailed Description

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

Test for Roman numeral.

Member Function Documentation

◆ match()

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