Definition at line 3295 of file locale_facets.h.
typedef _CharT char_type |
typedef _InIter iter_type |
dateorder date_order | ( | ) | const [inline, inherited] |
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 3021 of file locale_facets.h.
References time_get::do_date_order().
time_base::dateorder do_date_order | ( | ) | const [protected, virtual, inherited] |
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 1735 of file locale_facets.tcc.
Referenced by time_get::date_order().
_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.
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. |
Definition at line 2080 of file locale_facets.tcc.
References __timepunct::_M_date_formats(), time_get::_M_extract_via_format(), ios_base::_M_getloc(), and ios_base::eofbit.
Referenced by time_get::get_date().
_InIter do_get_monthname | ( | iter_type | __beg, | |
iter_type | __end, | |||
ios_base & | , | |||
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.
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. |
Definition at line 2142 of file locale_facets.tcc.
References time_get::_M_extract_name(), ios_base::_M_getloc(), __timepunct::_M_months(), __timepunct::_M_months_abbreviated(), ios_base::eofbit, and ios_base::failbit.
Referenced by time_get::get_monthname().
_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.
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. |
Definition at line 2063 of file locale_facets.tcc.
References time_get::_M_extract_via_format(), ios_base::_M_getloc(), __timepunct::_M_time_formats(), and ios_base::eofbit.
Referenced by time_get::get_time().
_InIter do_get_weekday | ( | iter_type | __beg, | |
iter_type | __end, | |||
ios_base & | , | |||
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.
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. |
Definition at line 2097 of file locale_facets.tcc.
References __timepunct::_M_days(), __timepunct::_M_days_abbreviated(), time_get::_M_extract_name(), ios_base::_M_getloc(), ios_base::eofbit, and ios_base::failbit.
Referenced by time_get::get_weekday().
_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.
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. |
Definition at line 2188 of file locale_facets.tcc.
References ios_base::_M_getloc(), ios_base::eofbit, ios_base::failbit, and __ctype_abstract_base::narrow().
Referenced by time_get::get_year().
iter_type 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.
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. |
Definition at line 3070 of file locale_facets.h.
References time_get::do_get_date().
iter_type 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.
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. |
Definition at line 3127 of file locale_facets.h.
References time_get::do_get_monthname().
iter_type 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.
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. |
Definition at line 3045 of file locale_facets.h.
References time_get::do_get_time().
iter_type 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.
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. |
Definition at line 3098 of file locale_facets.h.
References time_get::do_get_weekday().
iter_type 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.
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. |
Definition at line 3153 of file locale_facets.h.
References time_get::do_get_year().
locale::id id [static, inherited] |