stdex
Additional custom or not Standard C++ covered algorithms
|
Test for chemical formula. More...
#include <stdex/parser.hpp>
Public Member Functions | |
basic_chemical_formula (const std::shared_ptr< basic_parser< T > > &element, const std::shared_ptr< basic_parser< T > > &digit, const std::shared_ptr< basic_parser< T > > &sign, const std::locale &locale=std::locale()) | |
virtual void | invalidate () |
![]() | |
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) |
Public Attributes | |
bool | has_digits |
bool | has_charge |
![]() | |
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) |
Protected Attributes | |
std::shared_ptr< basic_parser< T > > | m_element |
std::shared_ptr< basic_parser< T > > | m_digit |
std::shared_ptr< basic_parser< T > > | m_sign |
![]() | |
std::locale | m_locale |
Test for chemical formula.
|
inlineprotectedvirtual |
Implements stdex::parser::basic_parser< T >.
|
inlinevirtual |
Reimplemented from stdex::parser::basic_parser< T >.