The time_get template uses protected virtual functions to provide the actual results. The public accessors forward the call to the virtual functions. These virtual functions are hooks for developers to implement the behavior they require from the time_get facet.
Definition at line 3057 of file locale_facets.h.
|
Public typedefs.
Reimplemented in std::time_get_byname< _CharT, _InIter >. Definition at line 3063 of file locale_facets.h. |
|
Public typedefs.
Reimplemented in std::time_get_byname< _CharT, _InIter >. Definition at line 3064 of file locale_facets.h. |
|
Constructor performs initialization. This is the constructor provided by the standard.
Definition at line 3079 of file locale_facets.h. |
|
Destructor.
Definition at line 3235 of file locale_facets.h. |
|
Return preferred order of month, day, and year. This function returns an enum from timebase::dateorder giving the preferred ordering if the format "x" given to time_put::put() only uses month, day, and year. If the format "x" for the associated locale uses other fields, this function returns timebase::dateorder::noorder. NOTE: The library always returns noorder at the moment.
Definition at line 3096 of file locale_facets.h. |
|
Return preferred order of month, day, and year. This function returns an enum from timebase::dateorder giving the preferred ordering if the format "x" given to time_put::put() only uses month, day, and year. This function is a hook for derived classes to change the value returned.
Definition at line 1806 of file locale_facets.tcc. |
|
Parse input date string. This function parses a date according to the format "X" and puts the results into a user-supplied struct tm. This function is a hook for derived classes to change the value returned.
Definition at line 2158 of file locale_facets.tcc. References std::__timepunct< _CharT >::_M_date_formats(), std::time_get< _CharT, _InIter >::_M_extract_via_format(), std::ios_base::_M_getloc(), and std::ios_base::eofbit. |
|
Parse input month string. This function parses a month name and puts the results into a user-supplied struct tm. This function is a hook for derived classes to change the value returned.
Definition at line 2224 of file locale_facets.tcc. References std::time_get< _CharT, _InIter >::_M_extract_name(), std::ios_base::_M_getloc(), std::__timepunct< _CharT >::_M_months(), std::__timepunct< _CharT >::_M_months_abbreviated(), std::ios_base::eofbit, std::ios_base::failbit, and std::ios_base::goodbit. |
|
Parse input time string. This function parses a time according to the format "x" and puts the results into a user-supplied struct tm. This function is a hook for derived classes to change the value returned.
Definition at line 2141 of file locale_facets.tcc. References std::time_get< _CharT, _InIter >::_M_extract_via_format(), std::ios_base::_M_getloc(), std::__timepunct< _CharT >::_M_time_formats(), and std::ios_base::eofbit. |
|
Parse input weekday string. This function parses a weekday name and puts the results into a user-supplied struct tm. This function is a hook for derived classes to change the value returned.
Definition at line 2175 of file locale_facets.tcc. References std::__timepunct< _CharT >::_M_days(), std::__timepunct< _CharT >::_M_days_abbreviated(), std::time_get< _CharT, _InIter >::_M_extract_name(), std::ios_base::_M_getloc(), std::ios_base::eofbit, std::ios_base::failbit, and std::ios_base::goodbit. |
|
Parse input year string. This function reads up to 4 characters to parse a year string and puts the results into a user-supplied struct tm. This function is a hook for derived classes to change the value returned.
Definition at line 2273 of file locale_facets.tcc. References std::ios_base::_M_getloc(), and std::__ctype_abstract_base< _CharT >::narrow(). |
|
Parse input date string. This function parses a date according to the format "X" and puts the results into a user-supplied struct tm. The result is returned by calling time_get::do_get_date(). If there is a valid date string according to format "X", tm will be filled in accordingly and the returned iterator will point to the first character beyond the date string. If an error occurs before the end, err |= ios_base::failbit. If parsing reads all the characters, err |= ios_base::eofbit.
Definition at line 3145 of file locale_facets.h. |
|
Parse input month string. This function parses a month name and puts the results into a user-supplied struct tm. The result is returned by calling time_get::do_get_monthname(). Parsing starts by parsing an abbreviated month name. If a valid abbreviation is followed by a character that would lead to the full month name, parsing continues until the full name is found or an error occurs. Otherwise parsing finishes at the end of the abbreviated name. If an error occurs before the end, err |= ios_base::failbit. If parsing reads all the characters, err |= ios_base::eofbit.
Definition at line 3202 of file locale_facets.h. |
|
Parse input time string. This function parses a time according to the format "x" and puts the results into a user-supplied struct tm. The result is returned by calling time_get::do_get_time(). If there is a valid time string according to format "x", tm will be filled in accordingly and the returned iterator will point to the first character beyond the time string. If an error occurs before the end, err |= ios_base::failbit. If parsing reads all the characters, err |= ios_base::eofbit.
Definition at line 3120 of file locale_facets.h. |
|
Parse input weekday string. This function parses a weekday name and puts the results into a user-supplied struct tm. The result is returned by calling time_get::do_get_weekday(). Parsing starts by parsing an abbreviated weekday name. If a valid abbreviation is followed by a character that would lead to the full weekday name, parsing continues until the full name is found or an error occurs. Otherwise parsing finishes at the end of the abbreviated name. If an error occurs before the end, err |= ios_base::failbit. If parsing reads all the characters, err |= ios_base::eofbit.
Definition at line 3173 of file locale_facets.h. |
|
Parse input year string. This function reads up to 4 characters to parse a year string and puts the results into a user-supplied struct tm. The result is returned by calling time_get::do_get_year(). 4 consecutive digits are interpreted as a full year. If there are exactly 2 consecutive digits, the library interprets this as the number of years since 1900. If an error occurs before the end, err |= ios_base::failbit. If parsing reads all the characters, err |= ios_base::eofbit.
Definition at line 3228 of file locale_facets.h. |
|
Numpunct facet id.
Definition at line 3069 of file locale_facets.h. |