Class for special_value parsing. More...
#include <special_values_parser.hpp>

Public Types | |
| typedef std::basic_string< charT > | string_type |
| typedef std::istreambuf_iterator < charT > | stream_itr_type |
| typedef date_type::duration_type | duration_type |
| typedef string_parse_tree< charT > | parse_tree_type |
| typedef parse_tree_type::parse_match_result_type | match_results |
| typedef std::vector < std::basic_string< charT > > | collection_type |
| typedef charT | char_type |
Public Member Functions | |
| special_values_parser () | |
| Creates a special_values_parser with the default set of "sv_strings". More... | |
| special_values_parser (const string_type &nadt_str, const string_type &neg_inf_str, const string_type &pos_inf_str, const string_type &min_dt_str, const string_type &max_dt_str) | |
| Creates a special_values_parser using a user defined set of element strings. More... | |
| special_values_parser (typename collection_type::iterator beg, typename collection_type::iterator end) | |
| special_values_parser (const special_values_parser< date_type, charT > &svp) | |
| void | sv_strings (const string_type &nadt_str, const string_type &neg_inf_str, const string_type &pos_inf_str, const string_type &min_dt_str, const string_type &max_dt_str) |
| Replace special value strings. More... | |
| bool | match (stream_itr_type &sitr, stream_itr_type &str_end, match_results &mr) const |
| Sets match_results.current_match to the corresponding special_value or -1. More... | |
Static Public Attributes | |
| static const char_type | nadt_string [16] |
| static const char_type | neg_inf_string [10] |
| static const char_type | pos_inf_string [10] |
| static const char_type | min_date_time_string [18] |
| static const char_type | max_date_time_string [18] |
Class for special_value parsing.
TODO: add doc-comments for which elements can be changed Parses input stream for strings representing special_values. Special values parsed are:
| typedef charT boost::date_time::special_values_parser< date_type, charT >::char_type |
| typedef std::vector<std::basic_string<charT> > boost::date_time::special_values_parser< date_type, charT >::collection_type |
| typedef date_type::duration_type boost::date_time::special_values_parser< date_type, charT >::duration_type |
| typedef parse_tree_type::parse_match_result_type boost::date_time::special_values_parser< date_type, charT >::match_results |
| typedef string_parse_tree<charT> boost::date_time::special_values_parser< date_type, charT >::parse_tree_type |
| typedef std::istreambuf_iterator<charT> boost::date_time::special_values_parser< date_type, charT >::stream_itr_type |
| typedef std::basic_string<charT> boost::date_time::special_values_parser< date_type, charT >::string_type |
|
inline |
Creates a special_values_parser with the default set of "sv_strings".
|
inline |
Creates a special_values_parser using a user defined set of element strings.
|
inline |
|
inline |
|
inline |
Sets match_results.current_match to the corresponding special_value or -1.
Referenced by boost::date_time::time_input_facet< time_type, CharT, InItrT >::check_special_value(), boost::date_time::date_input_facet< time_type::date_type, CharT, InItrT >::get(), boost::date_time::time_input_facet< time_type, CharT, InItrT >::get(), and boost::date_time::format_date_parser< time_type::date_type, CharT >::parse_date().
|
inline |
Replace special value strings.
Referenced by boost::date_time::special_values_parser< time_type::date_type, CharT >::special_values_parser().
|
static |
|
static |
|
static |
|
static |
|
static |