quill
Public Types | Public Member Functions | Public Attributes | List of all members
detail::duration_formatter< Char, Rep, Period > Struct Template Reference
Collaboration diagram for detail::duration_formatter< Char, Rep, Period >:
Collaboration graph
[legend]

Public Types

using iterator = basic_appender< Char >
 
using rep = conditional_t< std::is_integral< Rep >::value &&sizeof(Rep)< sizeof(int), unsigned, typename make_unsigned_or_unchanged< Rep >::type >
 
using seconds = std::chrono::duration< rep >
 
using milliseconds = std::chrono::duration< rep, std::milli >
 
using tm_writer_type = tm_writer< iterator, Char >
 

Public Member Functions

 duration_formatter (iterator o, std::chrono::duration< Rep, Period > d, locale_ref loc)
 
auto handle_nan_inf () -> bool
 
auto days () const -> Rep
 
auto hour () const -> Rep
 
auto hour12 () const -> Rep
 
auto minute () const -> Rep
 
auto second () const -> Rep
 
auto time () const -> std::tm
 
void write_sign ()
 
void write (Rep value, int width, pad_type pad=pad_type::zero)
 
void write_nan ()
 
template<typename Callback , typename... Args>
void format_tm (const tm &time, Callback cb, Args... args)
 
void on_text (const Char *begin, const Char *end)
 
void on_abbr_weekday ()
 
void on_full_weekday ()
 
void on_dec0_weekday (numeric_system)
 
void on_dec1_weekday (numeric_system)
 
void on_abbr_month ()
 
void on_full_month ()
 
void on_datetime (numeric_system)
 
void on_loc_date (numeric_system)
 
void on_loc_time (numeric_system)
 
void on_us_date ()
 
void on_iso_date ()
 
void on_utc_offset (numeric_system)
 
void on_tz_name ()
 
void on_year (numeric_system, pad_type)
 
void on_short_year (numeric_system)
 
void on_offset_year ()
 
void on_century (numeric_system)
 
void on_iso_week_based_year ()
 
void on_iso_week_based_short_year ()
 
void on_dec_month (numeric_system, pad_type)
 
void on_dec0_week_of_year (numeric_system, pad_type)
 
void on_dec1_week_of_year (numeric_system, pad_type)
 
void on_iso_week_of_year (numeric_system, pad_type)
 
void on_day_of_month (numeric_system, pad_type)
 
void on_day_of_year (pad_type)
 
void on_24_hour (numeric_system ns, pad_type pad)
 
void on_12_hour (numeric_system ns, pad_type pad)
 
void on_minute (numeric_system ns, pad_type pad)
 
void on_second (numeric_system ns, pad_type pad)
 
void on_12_hour_time ()
 
void on_24_hour_time ()
 
void on_iso_time ()
 
void on_am_pm ()
 
void on_duration_value ()
 
void on_duration_unit ()
 

Public Attributes

iterator out
 
rep val
 
int precision
 
locale_ref locale
 
bool localized = false
 
seconds s
 
bool negative
 

The documentation for this struct was generated from the following file: