std::time_get_byname - Online Linux Manual PageSection : 3
Updated : 19 Jun 2018
Source : libstdc++
NAMEstd::time_get_byname − class time_get_byname [22.2.5.2].
SYNOPSIS
Inherits std::time_get< _CharT, _InIter >.
Public Typestypedef basic_string< _CharT > __string_type
typedef _CharT char_type
enum dateorder { no_order, dmy, mdy, ymd, ydm }
typedef _InIter iter_type
Public Member Functionsdateorder date_order () const
iter_type get_date (iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, tm *__tm) const
iter_type get_monthname (iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, tm *__tm) const
iter_type get_time (iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, tm *__tm) const
iter_type get_weekday (iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, tm *__tm) const
iter_type get_year (iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, tm *__tm) const
time_get_byname (const char *, size_t __refs=0)
Static Public Attributesstatic locale::id id
Protected Member Functionsiter_type _M_extract_name (iter_type __beg, iter_type __end, int &__member, const _CharT **__names, size_t __indexlen, ios_base &__io, ios_base::iostate &__err) const
iter_type _M_extract_num (iter_type __beg, iter_type __end, int &__member, int __min, int __max, size_t __len, ios_base &__io, ios_base::iostate &__err) const
iter_type _M_extract_via_format (iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, tm *__tm, const _CharT *__format) const
virtual dateorder do_date_order () const
virtual iter_type do_get_date (iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, tm *__tm) const
virtual iter_type do_get_monthname (iter_type __beg, iter_type __end, ios_base &, ios_base::iostate &__err, tm *__tm) const
virtual iter_type do_get_time (iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, tm *__tm) const
virtual iter_type do_get_weekday (iter_type __beg, iter_type __end, ios_base &, ios_base::iostate &__err, tm *__tm) const
virtual iter_type do_get_year (iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, tm *__tm) const
Static Protected Member Functionsstatic __c_locale _S_clone_c_locale (__c_locale &__cloc)
static void _S_create_c_locale (__c_locale &__cloc, const char *__s, __c_locale __old=0)
static void _S_destroy_c_locale (__c_locale &__cloc)
static __c_locale _S_get_c_locale ()
static const char * _S_get_c_name ()
Friendsclass locale::_Impl
Detailed Description
template<typename _CharT, typename _InIter> class std::time_get_byname< _CharT, _InIter >class time_get_byname [22.2.5.2]. Definition at line 674 of file locale_facets_nonio.h.
Member Typedef Documentation
template<typename _CharT , typename _InIter > typedef _CharT std::time_get_byname< _CharT, _InIter >::char_typePublic typedefs. Reimplemented from std::time_get< _CharT, _InIter >. Definition at line 678 of file locale_facets_nonio.h.
template<typename _CharT , typename _InIter > typedef _InIter std::time_get_byname< _CharT, _InIter >::iter_typePublic typedefs. Reimplemented from std::time_get< _CharT, _InIter >. Definition at line 679 of file locale_facets_nonio.h.
Member Function Documentation
template<typename _CharT , typename _InIter > dateorder std::time_get< _CharT, _InIter >::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. Returns: A member of timebase::dateorder. Definition at line 400 of file locale_facets_nonio.h.
template<typename _CharT , typename _InIter > time_base::dateorder std::time_get< _CharT, _InIter >::do_date_order () const [inline, 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. Returns: A member of timebase::dateorder. Definition at line 603 of file locale_facets_nonio.tcc.
template<typename _CharT , typename _InIter > _InIter std::time_get< _CharT, _InIter >::do_get_date (iter_type __beg, iter_type __end, ios_base & __io, ios_base::iostate & __err, tm * __tm) const [inline, 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. See also: 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. Definition at line 955 of file locale_facets_nonio.tcc. References std::ios_base::_M_getloc(), and std::ios_base::eofbit.
template<typename _CharT , typename _InIter > _InIter std::time_get< _CharT, _InIter >::do_get_monthname (iter_type __beg, iter_type __end, ios_base & __io, ios_base::iostate & __err, tm * __tm) const [inline, 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. See also: 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. Definition at line 1021 of file locale_facets_nonio.tcc. References std::ios_base::_M_getloc(), std::ios_base::eofbit, std::ios_base::failbit, and std::ios_base::goodbit.
template<typename _CharT , typename _InIter > _InIter std::time_get< _CharT, _InIter >::do_get_time (iter_type __beg, iter_type __end, ios_base & __io, ios_base::iostate & __err, tm * __tm) const [inline, 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. See also: 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. Definition at line 938 of file locale_facets_nonio.tcc. References std::ios_base::_M_getloc(), and std::ios_base::eofbit.
template<typename _CharT , typename _InIter > _InIter std::time_get< _CharT, _InIter >::do_get_weekday (iter_type __beg, iter_type __end, ios_base & __io, ios_base::iostate & __err, tm * __tm) const [inline, 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. See also: 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. Definition at line 972 of file locale_facets_nonio.tcc. References std::ios_base::_M_getloc(), std::ios_base::eofbit, std::ios_base::failbit, and std::ios_base::goodbit.
template<typename _CharT , typename _InIter > _InIter std::time_get< _CharT, _InIter >::do_get_year (iter_type __beg, iter_type __end, ios_base & __io, ios_base::iostate & __err, tm * __tm) const [inline, 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. See also: 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. Definition at line 1070 of file locale_facets_nonio.tcc. References std::ios_base::_M_getloc(), std::ios_base::eofbit, std::ios_base::failbit, and std::__ctype_abstract_base< _CharT >::narrow().
template<typename _CharT , typename _InIter > iter_type std::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. Definition at line 449 of file locale_facets_nonio.h.
template<typename _CharT , typename _InIter > iter_type std::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. Definition at line 506 of file locale_facets_nonio.h.
template<typename _CharT , typename _InIter > iter_type std::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. Definition at line 424 of file locale_facets_nonio.h.
template<typename _CharT , typename _InIter > iter_type std::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. Definition at line 477 of file locale_facets_nonio.h.
template<typename _CharT , typename _InIter > iter_type std::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. Definition at line 532 of file locale_facets_nonio.h.
Member Data Documentation
template<typename _CharT , typename _InIter > locale::id std::time_get< _CharT, _InIter >::id [inline, static, inherited]Numpunct facet id. Definition at line 373 of file locale_facets_nonio.h.
AuthorGenerated automatically by Doxygen for libstdc++ from the source code. 0
Johanes Gumabo
Data Size : 70,759 byte
man-std::time_get_byname.3Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 2 / 190,161
Visitor ID : :
Visitor IP : 18.224.43.98 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.