Lines Matching defs:__sstr
88 __format_sub_seconds(basic_stringstream<_CharT>& __sstr, const chrono::duration<_Rep, _Period>& __value) {
89 __sstr << std::use_facet<numpunct<_CharT>>(__sstr.getloc()).decimal_point();
110 std::format_to(std::ostreambuf_iterator<_CharT>{__sstr},
115 std::format_to(std::ostreambuf_iterator<_CharT>{__sstr},
122 _LIBCPP_HIDE_FROM_ABI void __format_sub_seconds(basic_stringstream<_CharT>& __sstr, const _Tp& __value) {
123 __formatter::__format_sub_seconds(__sstr, __value.time_since_epoch());
128 __format_sub_seconds(basic_stringstream<_CharT>& __sstr, const chrono::hh_mm_ss<_Duration>& __value) {
129 __sstr << std::use_facet<numpunct<_CharT>>(__sstr.getloc()).decimal_point();
131 std::format_to(std::ostreambuf_iterator<_CharT>{__sstr},
136 std::format_to(std::ostreambuf_iterator<_CharT>{__sstr},
146 __format_sub_seconds(basic_stringstream<_CharT>& __sstr, const chrono::zoned_time<_Duration, _TimeZonePtr>& __value) {
147 __formatter::__format_sub_seconds(__sstr, __value.get_local_time().time_since_epoch());
169 _LIBCPP_HIDE_FROM_ABI void __format_year(basic_stringstream<_CharT>& __sstr, int __year) {
171 __sstr << _CharT('-');
181 __sstr << std::format(_LIBCPP_STATICALLY_WIDEN(_CharT, "{:04}"), __year);
185 _LIBCPP_HIDE_FROM_ABI void __format_century(basic_stringstream<_CharT>& __sstr, int __year) {
193 __sstr << std::format(_LIBCPP_STATICALLY_WIDEN(_CharT, "{:02}"), __century);
201 __format_zone_offset(basic_stringstream<_CharT>& __sstr, chrono::seconds __offset, bool __modifier) {
203 __sstr << _CharT('-');
206 __sstr << _CharT('+');
210 std::ostreambuf_iterator<_CharT> __out_it{__sstr};
214 __sstr << _CharT(':');
243 basic_stringstream<_CharT>& __sstr, const _Tp& __value, basic_string_view<_CharT> __chrono_specs) {
246 const auto& __facet = std::use_facet<time_put<_CharT>>(__sstr.getloc());
255 __sstr << _CharT('\n');
258 __sstr << _CharT('\t');
261 __sstr << *__it;
268 __formatter::__format_century(__sstr, __year);
271 {__sstr}, __sstr, _CharT(' '), std::addressof(__t), std::to_address(__s), std::to_address(__it + 1));
280 __sstr << chrono::duration_cast<chrono::days>(chrono::duration_cast<chrono::seconds>(__value)).count();
283 {__sstr}, __sstr, _CharT(' '), std::addressof(__t), std::to_address(__s), std::to_address(__it + 1));
288 __sstr << chrono::__units_suffix<_CharT, typename _Tp::period>();
304 __sstr << std::format(_LIBCPP_STATICALLY_WIDEN(_CharT, "{}"), __value.count());
312 {__sstr}, __sstr, _CharT(' '), std::addressof(__t), std::to_address(__s), std::to_address(__it + 1));
314 __formatter::__format_sub_seconds(__sstr, __value);
347 __sstr << std::format(_LIBCPP_STATICALLY_WIDEN(_CharT, "{:02}"), (std::abs(__t.tm_year + 1900)) % 100);
355 __formatter::__format_year(__sstr, __t.tm_year + 1900);
362 __formatter::__format_year(__sstr, __t.tm_year + 1900);
363 __sstr << std::format(_LIBCPP_STATICALLY_WIDEN(_CharT, "-{:02}-{:02}"), __t.tm_mon + 1, __t.tm_mday);
367 __formatter::__format_zone_offset(__sstr, __z.__offset, false);
372 ranges::copy(__z.__abbrev, std::ostreambuf_iterator<_CharT>{__sstr});
383 {__sstr}, __sstr, _CharT(' '), std::addressof(__t), std::to_address(__s), std::to_address(__it + 1));
384 __formatter::__format_sub_seconds(__sstr, __value);
394 __formatter::__format_zone_offset(__sstr, __z.__offset, true);
400 {__sstr}, __sstr, _CharT(' '), std::addressof(__t), std::to_address(__s), std::to_address(__it + 1));
404 __sstr << *__it;
619 basic_stringstream<_CharT> __sstr;
626 __sstr.imbue(__ctx.locale());
628 __sstr.imbue(locale::classic());
631 __sstr << __value;
638 __sstr << _CharT('-');
639 __formatter::__format_chrono_using_chrono_specs(__sstr, -__value, __chrono_specs);
641 __formatter::__format_chrono_using_chrono_specs(__sstr, __value, __chrono_specs);
643 __formatter::__format_chrono_using_chrono_specs(__sstr, __value, __chrono_specs);
684 __sstr << _CharT('-');
687 __formatter::__format_chrono_using_chrono_specs(__sstr, __value, __chrono_specs);
691 return __formatter::__write_string(__sstr.view(), __ctx.out(), __specs);