The Battle for Wesnoth  1.19.8+dev
Variables
utils::implementation Namespace Reference

Variables

static constexpr std::array descriptors
 
static constexpr auto deconstruct_format
 

Variable Documentation

◆ deconstruct_format

constexpr auto utils::implementation::deconstruct_format
staticconstexpr
Initial value:
= std::tuple<
std::chrono::hours,
std::chrono::minutes,
std::chrono::seconds
>{}
std::chrono::duration< int, std::ratio< 2629746 > > months
Definition: chrono.hpp:42
std::chrono::duration< int, std::ratio< 31556952 > > years
Definition: chrono.hpp:43
std::chrono::duration< int, std::ratio< 604800 > > weeks
Definition: chrono.hpp:41
std::chrono::duration< int, std::ratio< 86400 > > days
Definition: chrono.hpp:40

Definition at line 48 of file format_timespan.hpp.

Referenced by utils::format_timespan().

◆ descriptors

constexpr std::array utils::implementation::descriptors
staticconstexpr
Initial value:
{
std::tuple{ N_n("timespan^$num year", "timespan^$num years") },
std::tuple{ N_n("timespan^$num month", "timespan^$num months") },
std::tuple{ N_n("timespan^$num week", "timespan^$num weeks") },
std::tuple{ N_n("timespan^$num day", "timespan^$num days") },
std::tuple{ N_n("timespan^$num hour", "timespan^$num hours") },
std::tuple{ N_n("timespan^$num minute", "timespan^$num minutes") },
std::tuple{ N_n("timespan^$num second", "timespan^$num seconds") },
}
#define N_n(String1, String2)
Definition: gettext.hpp:102

Definition at line 29 of file format_timespan.hpp.

Referenced by utils::format_timespan().