template<typename_CharT,typename_InIter>dateorderstd::time_get<_CharT,_InIter>::date_order()const[inline],[inherited]
Return preferred order of month, day, and year. This function returns an enum from time_base::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
time_base::dateorder::noorder.
NOTE: The library always returns noorder at the moment.
Returns
A member of time_base::dateorder.
References std::time_get<_CharT,_InIter>::do_date_order().
template<typename_CharT,typename_InIter>_GLIBCXX_END_NAMESPACE_LDBL_OR_CXX11time_base::dateorderstd::time_get<_CharT,_InIter>::do_date_order()const[protected],[virtual],[inherited]
Return preferred order of month, day, and year. This function returns an enum from time_base::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.
Returns
A member of time_base::dateorder.
Referenced by std::time_get<_CharT,_InIter>::date_order().
template<typename_CharT,typename_InIter>_InIterstd::time_get<_CharT,_InIter>::do_get(iter_type__s,iter_type__end,ios_base&__f,ios_base::iostate&__err,tm*__tm,char__format,char__modifier)const[inline],[protected],[inherited]
Parse input string according to format. This function parses the string according to the provided format
and optional modifier. This function is a hook for derived classes to change the value returned.
Seealso
get() for more details.
Parameters__s Start of string to parse.
__end End of string to parse.
__f Source of the locale.
__err Error flags to set.
__tm Pointer to struct tm to fill in.
__format Format specifier.
__modifier Format modifier.
Returns
Iterator to first char not parsed.
References std::ios_base::eofbit, and std::ios_base::goodbit.
Referenced by std::time_get<_CharT,_InIter>::get(), and std::time_get<_CharT,_InIter>::get().
template<typename_CharT,typename_InIter>_InIterstd::time_get<_CharT,_InIter>::do_get_date(iter_type__beg,iter_type__end,ios_base&__io,ios_base::iostate&__err,tm*__tm)const[protected],[virtual],[inherited]
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.
Seealso
get_date() for details.
Parameters__beg Start of string to parse.
__end End of string to parse.
__io Source of the locale.
__err Error flags to set.
__tm Pointer to struct tm to fill in.
Returns
Iterator to first char beyond date string.
References std::ios_base::eofbit.
Referenced by std::time_get<_CharT,_InIter>::get_date().
template<typename_CharT,typename_InIter>_InIterstd::time_get<_CharT,_InIter>::do_get_monthname(iter_type__beg,iter_type__end,ios_base&__io,ios_base::iostate&__err,tm*__tm)const[protected],[virtual],[inherited]
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.
Seealso
get_monthname() for details.
Parameters__beg Start of string to parse.
__end End of string to parse.
__io Source of the locale.
__err Error flags to set.
__tm Pointer to struct tm to fill in.
Returns
Iterator to first char beyond month name.
References std::ios_base::eofbit, std::ios_base::failbit, and std::ios_base::goodbit.
Referenced by std::time_get<_CharT,_InIter>::get_monthname().
template<typename_CharT,typename_InIter>_InIterstd::time_get<_CharT,_InIter>::do_get_time(iter_type__beg,iter_type__end,ios_base&__io,ios_base::iostate&__err,tm*__tm)const[protected],[virtual],[inherited]
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.
Seealso
get_time() for details.
Parameters__beg Start of string to parse.
__end End of string to parse.
__io Source of the locale.
__err Error flags to set.
__tm Pointer to struct tm to fill in.
Returns
Iterator to first char beyond time string.
References std::ios_base::eofbit.
Referenced by std::time_get<_CharT,_InIter>::get_time().
template<typename_CharT,typename_InIter>_InIterstd::time_get<_CharT,_InIter>::do_get_weekday(iter_type__beg,iter_type__end,ios_base&__io,ios_base::iostate&__err,tm*__tm)const[protected],[virtual],[inherited]
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.
Seealso
get_weekday() for details.
Parameters__beg Start of string to parse.
__end End of string to parse.
__io Source of the locale.
__err Error flags to set.
__tm Pointer to struct tm to fill in.
Returns
Iterator to first char beyond weekday name.
References std::ios_base::eofbit, std::ios_base::failbit, and std::ios_base::goodbit.
Referenced by std::time_get<_CharT,_InIter>::get_weekday().
template<typename_CharT,typename_InIter>_InIterstd::time_get<_CharT,_InIter>::do_get_year(iter_type__beg,iter_type__end,ios_base&__io,ios_base::iostate&__err,tm*__tm)const[protected],[virtual],[inherited]
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.
Seealso
get_year() for details.
Parameters__beg Start of string to parse.
__end End of string to parse.
__io Source of the locale.
__err Error flags to set.
__tm Pointer to struct tm to fill in.
Returns
Iterator to first char beyond year.
References std::ios_base::eofbit, std::ios_base::failbit, and std::ios_base::goodbit.
Referenced by std::time_get<_CharT,_InIter>::get_year().
template<typename_CharT,typename_InIter>iter_typestd::time_get<_CharT,_InIter>::get(iter_type__s,iter_type__end,ios_base&__io,ios_base::iostate&__err,tm*__tm,char__format,char__modifier=0)const[inline],[inherited]
Parse input string according to format. This function calls time_get::do_get with the provided
parameters.
Seealso
do_get() and get().
Parameters__s Start of string to parse.
__end End of string to parse.
__io Source of the locale.
__err Error flags to set.
__tm Pointer to struct tm to fill in.
__format Format specifier.
__modifier Format modifier.
Returns
Iterator to first char not parsed.
References std::time_get<_CharT,_InIter>::do_get().
template<typename_CharT,typename_InIter>_InIterstd::time_get<_CharT,_InIter>::get(iter_type__s,iter_type__end,ios_base&__io,ios_base::iostate&__err,tm*__tm,constchar_type*__fmt,constchar_type*__fmtend)const[inline],[inherited]
Parse input string according to format. This function parses the input string according to a provided
format string. It does the inverse of time_put::put. The format string follows the format specified for
strftime(3)/strptime(3). The actual parsing is done by time_get::do_get.
Parameters__s Start of string to parse.
__end End of string to parse.
__io Source of the locale.
__err Error flags to set.
__tm Pointer to struct tm to fill in.
__fmt Start of the format string.
__fmtend End of the format string.
Returns
Iterator to first char not parsed.
References std::time_get<_CharT,_InIter>::do_get(), std::ios_base::eofbit, std::ios_base::failbit, and
std::ios_base::goodbit.
template<typename_CharT,typename_InIter>iter_typestd::time_get<_CharT,_InIter>::get_date(iter_type__beg,iter_type__end,ios_base&__io,ios_base::iostate&__err,tm*__tm)const[inline],[inherited]
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.
Parameters__beg Start of string to parse.
__end End of string to parse.
__io Source of the locale.
__err Error flags to set.
__tm Pointer to struct tm to fill in.
Returns
Iterator to first char beyond date string.
References std::time_get<_CharT,_InIter>::do_get_date().
template<typename_CharT,typename_InIter>iter_typestd::time_get<_CharT,_InIter>::get_monthname(iter_type__beg,iter_type__end,ios_base&__io,ios_base::iostate&__err,tm*__tm)const[inline],[inherited]
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.
Parameters__beg Start of string to parse.
__end End of string to parse.
__io Source of the locale.
__err Error flags to set.
__tm Pointer to struct tm to fill in.
Returns
Iterator to first char beyond month name.
References std::time_get<_CharT,_InIter>::do_get_monthname().
template<typename_CharT,typename_InIter>iter_typestd::time_get<_CharT,_InIter>::get_time(iter_type__beg,iter_type__end,ios_base&__io,ios_base::iostate&__err,tm*__tm)const[inline],[inherited]
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.
Parameters__beg Start of string to parse.
__end End of string to parse.
__io Source of the locale.
__err Error flags to set.
__tm Pointer to struct tm to fill in.
Returns
Iterator to first char beyond time string.
References std::time_get<_CharT,_InIter>::do_get_time().
template<typename_CharT,typename_InIter>iter_typestd::time_get<_CharT,_InIter>::get_weekday(iter_type__beg,iter_type__end,ios_base&__io,ios_base::iostate&__err,tm*__tm)const[inline],[inherited]
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.
Parameters__beg Start of string to parse.
__end End of string to parse.
__io Source of the locale.
__err Error flags to set.
__tm Pointer to struct tm to fill in.
Returns
Iterator to first char beyond weekday name.
References std::time_get<_CharT,_InIter>::do_get_weekday().
template<typename_CharT,typename_InIter>iter_typestd::time_get<_CharT,_InIter>::get_year(iter_type__beg,iter_type__end,ios_base&__io,ios_base::iostate&__err,tm*__tm)const[inline],[inherited]
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.
Parameters__beg Start of string to parse.
__end End of string to parse.
__io Source of the locale.
__err Error flags to set.
__tm Pointer to struct tm to fill in.
Returns
Iterator to first char beyond year.
References std::time_get<_CharT,_InIter>::do_get_year().