39__rw_put_time (
const __rw_facet*,
char*, _RWSTD_SIZE_T,
40 _STD::ios_base&,
char,
const _RWSTD_C::tm*,
41 char,
char,
int,
int);
43#ifndef _RWSTD_NO_WCHAR_T
47__rw_put_time (
const __rw_facet*,
wchar_t*, _RWSTD_SIZE_T,
48 _STD::ios_base&,
wchar_t,
const _RWSTD_C::tm*,
49 char,
char,
int,
int);
59template <
class _CharT,
class _OutputIter>
60_RW::__rw_facet_id time_put<_CharT, _OutputIter>::id;
65template <
class _CharT,
class _InputIter>
66 time_put<_CharT, _InputIter>::
73template <
class _CharT,
class _OutputIter >
74 typename time_put<_CharT, _OutputIter>::iter_type
75time_put<_CharT, _OutputIter>::
76do_put (iter_type __it, ios_base &__flags, char_type __fill,
77 const tm *__tmb,
char __fmt,
char __modifier )
const
79 char_type __buf [256];
81 const char_type *__end =
82 _RW::__rw_put_time (
this, __buf + 0,
sizeof __buf /
sizeof *__buf,
83 __flags, __fill, __tmb, __fmt, __modifier, -1, -1);
86 streamsize __pad = __flags.width () - streamsize (__end - __buf);
94 for (; __pad--; ++__it)
98 for (
const char_type *__p = __buf; __p != __end; ++__p, ++__it) {
103 for (; __pad-- > 0; ++__it)
110template <
class _CharT,
class _OutputIter >
111typename time_put<_CharT, _OutputIter>::iter_type
112time_put<_CharT, _OutputIter>::
113put (iter_type __it, ios_base &__flags, char_type __fill,
const tm *__tmb,
114 const char_type *__pat,
const char_type *__end)
const
119 __end = __pat + char_traits<char_type>::length (__pat);
121 const ctype<char_type> &__ctp =
124 for (; __pat != __end; ++__pat) {
126 if (
'%' == __ctp.narrow (*__pat, 0) && __pat + 1 < __end) {
128 char __fmtmod = __ctp.narrow (*++__pat, 0);
131 if (
'E' == __fmtmod) {
133 __fmt = __ctp.narrow (__pat [1], 0);
137 case 'c':
case 'C':
case 'x':
case 'X':
case 'y':
case 'Y':
148 else if (
'O' == __fmtmod) {
150 __fmt = __ctp.narrow (__pat [1], 0);
154 case 'd':
case 'e':
case 'H':
case 'I':
case 'm':
case 'M':
155 case 'S':
case 'u':
case 'U':
case 'V':
case 'w':
case 'W':
172 if (
char (-1) != __fmt) {
173 __it = do_put (__it, __flags, __fill, __tmb, __fmt, __fmtmod);
188template <
class _CharT,
class _OutputIter>
189 time_put_byname<_CharT, _OutputIter>::
#define _RWSTD_IOS_ADJUSTFIELD
#define _RWSTD_USE_FACET(type, arg)
#define _RWSTD_NAMESPACE(name)
#define _RWSTD_ASSERT(ignore)