stdex
Additional custom or not Standard C++ covered algorithms
Loading...
Searching...
No Matches
stdex::parser::basic_parser< T > Class Template Referenceabstract

Base template for all parsers. More...

#include <stdex/parser.hpp>

Inheritance diagram for stdex::parser::basic_parser< T >:
stdex::parser::basic_angle< T > stdex::parser::basic_any_cu< T > stdex::parser::basic_bol< T > stdex::parser::basic_chemical_formula< T > stdex::parser::basic_creditor_reference< T > stdex::parser::basic_css_cdc< T > stdex::parser::basic_css_cdo< T > stdex::parser::basic_css_comment< T > stdex::parser::basic_css_import< T > stdex::parser::basic_css_string< T > stdex::parser::basic_css_uri< T > stdex::parser::basic_cu< T > stdex::parser::basic_date< T > stdex::parser::basic_dns_domain_char< T > stdex::parser::basic_dns_name< T > stdex::parser::basic_email_address< T > stdex::parser::basic_emoticon< T > stdex::parser::basic_eol< T > stdex::parser::basic_fraction< T > stdex::parser::basic_html_declaration_condition_end< T > stdex::parser::basic_html_declaration_condition_start< T > stdex::parser::basic_html_ident< T > stdex::parser::basic_html_tag< T > stdex::parser::basic_html_value< T > stdex::parser::basic_iban< T > stdex::parser::basic_integer< T > stdex::parser::basic_ipv4_address< T > stdex::parser::basic_ipv6_address< T > stdex::parser::basic_ipv6_scope_id_char< T > stdex::parser::basic_iterations< T > stdex::parser::basic_json_string< T > stdex::parser::basic_mime_type< T > stdex::parser::basic_mixed_numeral< T > stdex::parser::basic_monetary_numeral< T > stdex::parser::basic_noop< T > stdex::parser::basic_phone_number< T > stdex::parser::basic_punct_cu< T > stdex::parser::basic_scientific_numeral< T > stdex::parser::basic_score< T > stdex::parser::basic_set< T > stdex::parser::basic_si_reference< T > stdex::parser::basic_si_reference_delimiter< T > stdex::parser::basic_si_reference_part< T > stdex::parser::basic_signed_numeral< T > stdex::parser::basic_space_cu< T > stdex::parser::basic_space_or_punct_cu< T > stdex::parser::basic_string< T > stdex::parser::basic_time< T > stdex::parser::basic_url< T > stdex::parser::basic_url_password_char< T > stdex::parser::basic_url_path< T > stdex::parser::basic_url_path_char< T > stdex::parser::basic_url_username_char< T > stdex::parser::parser_collection< T >

Public Member Functions

 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)
 
virtual void invalidate ()
 

Public Attributes

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)=0
 

Protected Attributes

std::locale m_locale
 

Detailed Description

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

Base template for all parsers.

Member Function Documentation

◆ do_match()

template<class T >
virtual bool stdex::parser::basic_parser< T >::do_match ( _In_reads_or_z_opt_(end) const T * text,
size_t start = 0,
size_t end = SIZE_MAX,
int flags = match_default )
protectedpure virtual

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