Agora  1.2.0
Agora project
fmt::v8::detail::tm_writer< OutputIt, Char > Class Template Reference

#include <chrono.h>

Public Member Functions

 tm_writer (const std::locale &loc, OutputIt out, const std::tm &tm)
 
OutputIt out () const
 
void on_text (const Char *begin, const Char *end)
 
void on_abbr_weekday ()
 
void on_full_weekday ()
 
void on_dec0_weekday (numeric_system ns)
 
void on_dec1_weekday (numeric_system ns)
 
void on_abbr_month ()
 
void on_full_month ()
 
void on_datetime (numeric_system ns)
 
void on_loc_date (numeric_system ns)
 
void on_loc_time (numeric_system ns)
 
void on_us_date ()
 
void on_iso_date ()
 
void on_utc_offset ()
 
void on_tz_name ()
 
void on_year (numeric_system ns)
 
void on_short_year (numeric_system ns)
 
void on_offset_year ()
 
void on_century (numeric_system ns)
 
void on_dec_month (numeric_system ns)
 
void on_dec0_week_of_year (numeric_system ns)
 
void on_dec1_week_of_year (numeric_system ns)
 
void on_iso_week_of_year (numeric_system ns)
 
void on_iso_week_based_year ()
 
void on_iso_week_based_short_year ()
 
void on_day_of_year ()
 
void on_day_of_month (numeric_system ns)
 
void on_day_of_month_space (numeric_system ns)
 
void on_24_hour (numeric_system ns)
 
void on_12_hour (numeric_system ns)
 
void on_minute (numeric_system ns)
 
void on_second (numeric_system ns)
 
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 ()
 

Private Member Functions

auto tm_sec () const noexcept -> int
 
auto tm_min () const noexcept -> int
 
auto tm_hour () const noexcept -> int
 
auto tm_mday () const noexcept -> int
 
auto tm_mon () const noexcept -> int
 
auto tm_year () const noexcept -> long long
 
auto tm_wday () const noexcept -> int
 
auto tm_yday () const noexcept -> int
 
auto tm_hour12 () const noexcept -> int
 
auto split_year_lower (long long year) const noexcept -> int
 
auto iso_year_weeks (long long curr_year) const noexcept -> int
 
auto iso_week_num (int tm_yday, int tm_wday) const noexcept -> int
 
auto tm_iso_week_year () const noexcept -> long long
 
auto tm_iso_week_of_year () const noexcept -> int
 
void write1 (int value)
 
void write2 (int value)
 
void write_year_extended (long long year)
 
void write_year (long long year)
 
void write_utc_offset (long offset)
 
template<typename T , enable_if_t<(has_member_data_tm_gmtoff< T >::value), int > = 0>
void format_utc_offset_impl (const T &tm)
 
template<typename T , enable_if_t<(!has_member_data_tm_gmtoff< T >::value), int > = 0>
void format_utc_offset_impl (const T &tm)
 
template<typename T , enable_if_t<(has_member_data_tm_zone< T >::value), int > = 0>
void format_tz_name_impl (const T &tm)
 
template<typename T , enable_if_t<(!has_member_data_tm_zone< T >::value), int > = 0>
void format_tz_name_impl (const T &)
 
void format_localized (char format, char modifier=0)
 

Private Attributes

const std::locale & loc_
 
const bool is_classic_
 
OutputIt out_
 
const std::tm & tm_
 

Static Private Attributes

static constexpr int days_per_week = 7
 

Constructor & Destructor Documentation

◆ tm_writer()

template<typename OutputIt , typename Char >
fmt::v8::detail::tm_writer< OutputIt, Char >::tm_writer ( const std::locale &  loc,
OutputIt  out,
const std::tm &  tm 
)
inline

Member Function Documentation

◆ format_localized()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::format_localized ( char  format,
char  modifier = 0 
)
inlineprivate
Here is the call graph for this function:

◆ format_tz_name_impl() [1/2]

template<typename OutputIt , typename Char >
template<typename T , enable_if_t<(!has_member_data_tm_zone< T >::value), int > = 0>
void fmt::v8::detail::tm_writer< OutputIt, Char >::format_tz_name_impl ( const T )
inlineprivate

◆ format_tz_name_impl() [2/2]

template<typename OutputIt , typename Char >
template<typename T , enable_if_t<(has_member_data_tm_zone< T >::value), int > = 0>
void fmt::v8::detail::tm_writer< OutputIt, Char >::format_tz_name_impl ( const T tm)
inlineprivate

◆ format_utc_offset_impl() [1/2]

template<typename OutputIt , typename Char >
template<typename T , enable_if_t<(has_member_data_tm_gmtoff< T >::value), int > = 0>
void fmt::v8::detail::tm_writer< OutputIt, Char >::format_utc_offset_impl ( const T tm)
inlineprivate

◆ format_utc_offset_impl() [2/2]

template<typename OutputIt , typename Char >
template<typename T , enable_if_t<(!has_member_data_tm_gmtoff< T >::value), int > = 0>
void fmt::v8::detail::tm_writer< OutputIt, Char >::format_utc_offset_impl ( const T tm)
inlineprivate
Here is the call graph for this function:

◆ iso_week_num()

template<typename OutputIt , typename Char >
auto fmt::v8::detail::tm_writer< OutputIt, Char >::iso_week_num ( int  tm_yday,
int  tm_wday 
) const -> int
inlineprivatenoexcept

◆ iso_year_weeks()

template<typename OutputIt , typename Char >
auto fmt::v8::detail::tm_writer< OutputIt, Char >::iso_year_weeks ( long long  curr_year) const -> int
inlineprivatenoexcept

◆ on_12_hour()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_12_hour ( numeric_system  ns)
inline

◆ on_12_hour_time()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_12_hour_time ( )
inline
Here is the call graph for this function:

◆ on_24_hour()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_24_hour ( numeric_system  ns)
inline

◆ on_24_hour_time()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_24_hour_time ( )
inline

◆ on_abbr_month()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_abbr_month ( )
inline
Here is the call graph for this function:

◆ on_abbr_weekday()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_abbr_weekday ( )
inline
Here is the call graph for this function:

◆ on_am_pm()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_am_pm ( )
inline

◆ on_century()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_century ( numeric_system  ns)
inline

◆ on_datetime()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_datetime ( numeric_system  ns)
inline

◆ on_day_of_month()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_day_of_month ( numeric_system  ns)
inline

◆ on_day_of_month_space()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_day_of_month_space ( numeric_system  ns)
inline
Here is the call graph for this function:

◆ on_day_of_year()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_day_of_year ( )
inline

◆ on_dec0_week_of_year()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_dec0_week_of_year ( numeric_system  ns)
inline

◆ on_dec0_weekday()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_dec0_weekday ( numeric_system  ns)
inline

◆ on_dec1_week_of_year()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_dec1_week_of_year ( numeric_system  ns)
inline

◆ on_dec1_weekday()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_dec1_weekday ( numeric_system  ns)
inline

◆ on_dec_month()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_dec_month ( numeric_system  ns)
inline

◆ on_duration_unit()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_duration_unit ( )
inline

◆ on_duration_value()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_duration_value ( )
inline

◆ on_full_month()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_full_month ( )
inline
Here is the call graph for this function:

◆ on_full_weekday()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_full_weekday ( )
inline
Here is the call graph for this function:

◆ on_iso_date()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_iso_date ( )
inline
Here is the call graph for this function:

◆ on_iso_time()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_iso_time ( )
inline
Here is the call graph for this function:

◆ on_iso_week_based_short_year()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_iso_week_based_short_year ( )
inline

◆ on_iso_week_based_year()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_iso_week_based_year ( )
inline

◆ on_iso_week_of_year()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_iso_week_of_year ( numeric_system  ns)
inline

◆ on_loc_date()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_loc_date ( numeric_system  ns)
inline

◆ on_loc_time()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_loc_time ( numeric_system  ns)
inline

◆ on_minute()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_minute ( numeric_system  ns)
inline

◆ on_offset_year()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_offset_year ( )
inline

◆ on_second()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_second ( numeric_system  ns)
inline

◆ on_short_year()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_short_year ( numeric_system  ns)
inline

◆ on_text()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_text ( const Char *  begin,
const Char *  end 
)
inline
Here is the call graph for this function:

◆ on_tz_name()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_tz_name ( )
inline

◆ on_us_date()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_us_date ( )
inline
Here is the call graph for this function:

◆ on_utc_offset()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_utc_offset ( )
inline

◆ on_year()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::on_year ( numeric_system  ns)
inline

◆ out()

template<typename OutputIt , typename Char >
OutputIt fmt::v8::detail::tm_writer< OutputIt, Char >::out ( ) const
inline

◆ split_year_lower()

template<typename OutputIt , typename Char >
auto fmt::v8::detail::tm_writer< OutputIt, Char >::split_year_lower ( long long  year) const -> int
inlineprivatenoexcept

◆ tm_hour()

template<typename OutputIt , typename Char >
auto fmt::v8::detail::tm_writer< OutputIt, Char >::tm_hour ( ) const -> int
inlineprivatenoexcept

◆ tm_hour12()

template<typename OutputIt , typename Char >
auto fmt::v8::detail::tm_writer< OutputIt, Char >::tm_hour12 ( ) const -> int
inlineprivatenoexcept

◆ tm_iso_week_of_year()

template<typename OutputIt , typename Char >
auto fmt::v8::detail::tm_writer< OutputIt, Char >::tm_iso_week_of_year ( ) const -> int
inlineprivatenoexcept

◆ tm_iso_week_year()

template<typename OutputIt , typename Char >
auto fmt::v8::detail::tm_writer< OutputIt, Char >::tm_iso_week_year ( ) const -> long long
inlineprivatenoexcept

◆ tm_mday()

template<typename OutputIt , typename Char >
auto fmt::v8::detail::tm_writer< OutputIt, Char >::tm_mday ( ) const -> int
inlineprivatenoexcept

◆ tm_min()

template<typename OutputIt , typename Char >
auto fmt::v8::detail::tm_writer< OutputIt, Char >::tm_min ( ) const -> int
inlineprivatenoexcept

◆ tm_mon()

template<typename OutputIt , typename Char >
auto fmt::v8::detail::tm_writer< OutputIt, Char >::tm_mon ( ) const -> int
inlineprivatenoexcept

◆ tm_sec()

template<typename OutputIt , typename Char >
auto fmt::v8::detail::tm_writer< OutputIt, Char >::tm_sec ( ) const -> int
inlineprivatenoexcept

◆ tm_wday()

template<typename OutputIt , typename Char >
auto fmt::v8::detail::tm_writer< OutputIt, Char >::tm_wday ( ) const -> int
inlineprivatenoexcept

◆ tm_yday()

template<typename OutputIt , typename Char >
auto fmt::v8::detail::tm_writer< OutputIt, Char >::tm_yday ( ) const -> int
inlineprivatenoexcept

◆ tm_year()

template<typename OutputIt , typename Char >
auto fmt::v8::detail::tm_writer< OutputIt, Char >::tm_year ( ) const -> long long
inlineprivatenoexcept

◆ write1()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::write1 ( int  value)
inlineprivate
Here is the call graph for this function:

◆ write2()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::write2 ( int  value)
inlineprivate
Here is the call graph for this function:

◆ write_utc_offset()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::write_utc_offset ( long  offset)
inlineprivate

◆ write_year()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::write_year ( long long  year)
inlineprivate

◆ write_year_extended()

template<typename OutputIt , typename Char >
void fmt::v8::detail::tm_writer< OutputIt, Char >::write_year_extended ( long long  year)
inlineprivate
Here is the call graph for this function:

Member Data Documentation

◆ days_per_week

template<typename OutputIt , typename Char >
constexpr int fmt::v8::detail::tm_writer< OutputIt, Char >::days_per_week = 7
staticconstexprprivate

◆ is_classic_

template<typename OutputIt , typename Char >
const bool fmt::v8::detail::tm_writer< OutputIt, Char >::is_classic_
private

◆ loc_

template<typename OutputIt , typename Char >
const std::locale& fmt::v8::detail::tm_writer< OutputIt, Char >::loc_
private

◆ out_

template<typename OutputIt , typename Char >
OutputIt fmt::v8::detail::tm_writer< OutputIt, Char >::out_
private

◆ tm_

template<typename OutputIt , typename Char >
const std::tm& fmt::v8::detail::tm_writer< OutputIt, Char >::tm_
private

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