This class holds an external data - beyond existing fmtflags that std::ios_base holds. More...
#include <formatting.hpp>
Public Member Functions | |
void | display_flags (uint64_t flags) |
Set a flags that define a way for format data like number, spell, currency etc. More... | |
void | currency_flags (uint64_t flags) |
Set a flags that define how to format currency. More... | |
void | date_flags (uint64_t flags) |
Set a flags that define how to format date. More... | |
void | time_flags (uint64_t flags) |
Set a flags that define how to format time. More... | |
void | datetime_flags (uint64_t flags) |
Set a flags that define how to format both date and time. More... | |
void | domain_id (int) |
Set special message domain identification. More... | |
void | time_zone (std::string const &) |
Set time zone for formatting dates and time. More... | |
template<typename CharType > | |
void | date_time_pattern (std::basic_string< CharType > const &str) |
Set date/time pattern (strftime like) More... | |
uint64_t | display_flags () const |
Get a flags that define a way for format data like number, spell, currency etc. More... | |
uint64_t | currency_flags () const |
Get a flags that define how to format currency. More... | |
uint64_t | date_flags () const |
Get a flags that define how to format date. More... | |
uint64_t | time_flags () const |
Get a flags that define how to format time. More... | |
uint64_t | datetime_flags () const |
Get a flags that define how to format both date and time. More... | |
int | domain_id () const |
Get special message domain identification. More... | |
std::string | time_zone () const |
Get time zone for formatting dates and time. More... | |
template<typename CharType > | |
std::basic_string< CharType > | date_time_pattern () const |
Get date/time pattern (strftime like) More... | |
Static Public Member Functions | |
static ios_info & | get (std::ios_base &ios) |
Get ios_info instance for specific stream object. More... | |
This class holds an external data - beyond existing fmtflags that std::ios_base holds.
You should almost never create this object directly. Instead, you should access it via ios_info::get(stream_object) static member function. It automatically creates default formatting data for that stream
void boost::locale::ios_info::currency_flags | ( | uint64_t | flags | ) |
Set a flags that define how to format currency.
Referenced by boost::locale::as::currency_default(), boost::locale::as::currency_iso(), and boost::locale::as::currency_national().
uint64_t boost::locale::ios_info::currency_flags | ( | ) | const |
Get a flags that define how to format currency.
void boost::locale::ios_info::date_flags | ( | uint64_t | flags | ) |
Set a flags that define how to format date.
Referenced by boost::locale::as::date_default(), boost::locale::as::date_full(), boost::locale::as::date_long(), boost::locale::as::date_medium(), and boost::locale::as::date_short().
uint64_t boost::locale::ios_info::date_flags | ( | ) | const |
Get a flags that define how to format date.
|
inline |
Set date/time pattern (strftime like)
References boost::asio::s.
|
inline |
Get date/time pattern (strftime like)
References boost::asio::s.
void boost::locale::ios_info::datetime_flags | ( | uint64_t | flags | ) |
Set a flags that define how to format both date and time.
uint64_t boost::locale::ios_info::datetime_flags | ( | ) | const |
Get a flags that define how to format both date and time.
void boost::locale::ios_info::display_flags | ( | uint64_t | flags | ) |
Set a flags that define a way for format data like number, spell, currency etc.
Referenced by boost::locale::as::currency(), boost::locale::as::date(), boost::locale::as::datetime(), boost::locale::as::number(), boost::locale::operator<<(), boost::locale::operator>>(), boost::locale::as::ordinal(), boost::locale::as::percent(), boost::locale::as::posix(), boost::locale::as::spellout(), boost::locale::as::strftime(), and boost::locale::as::time().
uint64_t boost::locale::ios_info::display_flags | ( | ) | const |
Get a flags that define a way for format data like number, spell, currency etc.
void boost::locale::ios_info::domain_id | ( | int | ) |
Set special message domain identification.
Referenced by boost::locale::basic_format< CharType >::write(), and boost::locale::basic_message< char_type >::write().
int boost::locale::ios_info::domain_id | ( | ) | const |
Get special message domain identification.
|
static |
Get ios_info instance for specific stream object.
Referenced by boost::locale::as::currency(), boost::locale::as::currency_default(), boost::locale::as::currency_iso(), boost::locale::as::currency_national(), boost::locale::as::date(), boost::locale::as::date_default(), boost::locale::as::date_full(), boost::locale::as::date_long(), boost::locale::as::date_medium(), boost::locale::as::date_short(), boost::locale::as::datetime(), boost::locale::as::gmt(), boost::locale::as::local_time(), boost::locale::as::number(), boost::locale::operator<<(), boost::locale::operator>>(), boost::locale::as::ordinal(), boost::locale::as::percent(), boost::locale::as::posix(), boost::locale::as::spellout(), boost::locale::as::strftime(), boost::locale::as::time(), boost::locale::as::time_default(), boost::locale::as::time_full(), boost::locale::as::time_long(), boost::locale::as::time_medium(), boost::locale::as::time_short(), boost::locale::basic_format< CharType >::write(), and boost::locale::basic_message< char_type >::write().
void boost::locale::ios_info::time_flags | ( | uint64_t | flags | ) |
Set a flags that define how to format time.
Referenced by boost::locale::as::time_default(), boost::locale::as::time_full(), boost::locale::as::time_long(), boost::locale::as::time_medium(), and boost::locale::as::time_short().
uint64_t boost::locale::ios_info::time_flags | ( | ) | const |
Get a flags that define how to format time.
void boost::locale::ios_info::time_zone | ( | std::string const & | ) |
Set time zone for formatting dates and time.
Referenced by boost::locale::as::gmt(), and boost::locale::as::local_time().
std::string boost::locale::ios_info::time_zone | ( | ) | const |
Get time zone for formatting dates and time.