Functions | |
std::ios_base & | boost::locale::as::posix (std::ios_base &ios) |
Format values with "POSIX" or "C" locale. More... | |
std::ios_base & | boost::locale::as::number (std::ios_base &ios) |
Format a number. More... | |
std::ios_base & | boost::locale::as::currency (std::ios_base &ios) |
Format currency, number is treated like amount of money. More... | |
std::ios_base & | boost::locale::as::percent (std::ios_base &ios) |
Format percent, value 0.3 is treated as 30%. More... | |
std::ios_base & | boost::locale::as::date (std::ios_base &ios) |
Format a date, number is treated as POSIX time. More... | |
std::ios_base & | boost::locale::as::time (std::ios_base &ios) |
Format a time, number is treated as POSIX time. More... | |
std::ios_base & | boost::locale::as::datetime (std::ios_base &ios) |
Format a date and time, number is treated as POSIX time. More... | |
std::ios_base & | boost::locale::as::strftime (std::ios_base &ios) |
Create formatted date time, Please note, this manipulator only changes formatting mode, and not format itself, so you are probably looking for ftime manipulator. More... | |
std::ios_base & | boost::locale::as::spellout (std::ios_base &ios) |
Spell the number, like "one hundred and ten". More... | |
std::ios_base & | boost::locale::as::ordinal (std::ios_base &ios) |
Write an order of the number like 4th. More... | |
std::ios_base & | boost::locale::as::currency_default (std::ios_base &ios) |
Set default currency formatting style – national, like "$". More... | |
std::ios_base & | boost::locale::as::currency_iso (std::ios_base &ios) |
Set ISO currency formatting style, like "USD", (requires ICU >= 4.2) More... | |
std::ios_base & | boost::locale::as::currency_national (std::ios_base &ios) |
Set national currency formatting style, like "$". More... | |
std::ios_base & | boost::locale::as::time_default (std::ios_base &ios) |
set default (medium) time formatting style More... | |
std::ios_base & | boost::locale::as::time_short (std::ios_base &ios) |
set short time formatting style More... | |
std::ios_base & | boost::locale::as::time_medium (std::ios_base &ios) |
set medium time formatting style More... | |
std::ios_base & | boost::locale::as::time_long (std::ios_base &ios) |
set long time formatting style More... | |
std::ios_base & | boost::locale::as::time_full (std::ios_base &ios) |
set full time formatting style More... | |
std::ios_base & | boost::locale::as::date_default (std::ios_base &ios) |
set default (medium) date formatting style More... | |
std::ios_base & | boost::locale::as::date_short (std::ios_base &ios) |
set short date formatting style More... | |
std::ios_base & | boost::locale::as::date_medium (std::ios_base &ios) |
set medium date formatting style More... | |
std::ios_base & | boost::locale::as::date_long (std::ios_base &ios) |
set long date formatting style More... | |
std::ios_base & | boost::locale::as::date_full (std::ios_base &ios) |
set full date formatting style More... | |
template<typename CharType > | |
details::add_ftime< CharType > | boost::locale::as::ftime (std::basic_string< CharType > const &format) |
Set strftime like formatting string. More... | |
template<typename CharType > | |
details::add_ftime< CharType > | boost::locale::as::ftime (CharType const *format) |
See ftime(std::basic_string<CharType> const &format) More... | |
std::ios_base & | boost::locale::as::gmt (std::ios_base &ios) |
Set GMT time zone to stream. More... | |
std::ios_base & | boost::locale::as::local_time (std::ios_base &ios) |
Set local time zone to stream. More... | |
details::set_timezone | boost::locale::as::time_zone (char const *id) |
Set time zone using id. More... | |
details::set_timezone | boost::locale::as::time_zone (std::string const &id) |
Set time zone using id. More... | |
details::set_domain | boost::locale::as::domain (std::string const &id) |
Manipulator for switching message domain in ostream,. More... | |
|
inline |
#include <boost_1_57_0/boost/locale/formatting.hpp>
Format currency, number is treated like amount of money.
References boost::locale::flags::currency, boost::locale::ios_info::display_flags(), and boost::locale::ios_info::get().
|
inline |
#include <boost_1_57_0/boost/locale/formatting.hpp>
Set default currency formatting style – national, like "$".
References boost::locale::flags::currency_default, boost::locale::ios_info::currency_flags(), and boost::locale::ios_info::get().
|
inline |
#include <boost_1_57_0/boost/locale/formatting.hpp>
Set ISO currency formatting style, like "USD", (requires ICU >= 4.2)
References boost::locale::ios_info::currency_flags(), boost::locale::flags::currency_iso, and boost::locale::ios_info::get().
|
inline |
#include <boost_1_57_0/boost/locale/formatting.hpp>
Set national currency formatting style, like "$".
References boost::locale::ios_info::currency_flags(), boost::locale::flags::currency_national, and boost::locale::ios_info::get().
|
inline |
#include <boost_1_57_0/boost/locale/formatting.hpp>
Format a date, number is treated as POSIX time.
References boost::locale::flags::date, boost::locale::ios_info::display_flags(), and boost::locale::ios_info::get().
|
inline |
#include <boost_1_57_0/boost/locale/formatting.hpp>
set default (medium) date formatting style
References boost::locale::flags::date_default, boost::locale::ios_info::date_flags(), and boost::locale::ios_info::get().
|
inline |
#include <boost_1_57_0/boost/locale/formatting.hpp>
set full date formatting style
References boost::locale::ios_info::date_flags(), boost::locale::flags::date_full, and boost::locale::ios_info::get().
|
inline |
#include <boost_1_57_0/boost/locale/formatting.hpp>
set long date formatting style
References boost::locale::ios_info::date_flags(), boost::locale::flags::date_long, and boost::locale::ios_info::get().
|
inline |
#include <boost_1_57_0/boost/locale/formatting.hpp>
set medium date formatting style
References boost::locale::ios_info::date_flags(), boost::locale::flags::date_medium, and boost::locale::ios_info::get().
|
inline |
#include <boost_1_57_0/boost/locale/formatting.hpp>
set short date formatting style
References boost::locale::ios_info::date_flags(), boost::locale::flags::date_short, and boost::locale::ios_info::get().
|
inline |
#include <boost_1_57_0/boost/locale/formatting.hpp>
Format a date and time, number is treated as POSIX time.
References boost::locale::flags::datetime, boost::locale::ios_info::display_flags(), and boost::locale::ios_info::get().
|
inline |
#include <boost_1_57_0/boost/locale/message.hpp>
Manipulator for switching message domain in ostream,.
Referenced by boost::locale::basic_message< char_type >::str().
details::add_ftime<CharType> boost::locale::as::ftime | ( | std::basic_string< CharType > const & | format | ) |
#include <boost_1_57_0/boost/locale/formatting.hpp>
Set strftime like formatting string.
Please note, formatting flags are very similar but not exactly the same as flags for C function strftime. Differences: some flags as "%e" do not add blanks to fill text up to two spaces, not all flags supported.
Flags:
details::add_ftime<CharType> boost::locale::as::ftime | ( | CharType const * | format | ) |
|
inline |
#include <boost_1_57_0/boost/locale/formatting.hpp>
Set GMT time zone to stream.
References boost::locale::ios_info::get(), and boost::locale::ios_info::time_zone().
|
inline |
#include <boost_1_57_0/boost/locale/formatting.hpp>
Set local time zone to stream.
References boost::locale::ios_info::get(), boost::locale::time_zone::global(), and boost::locale::ios_info::time_zone().
|
inline |
#include <boost_1_57_0/boost/locale/formatting.hpp>
Format a number.
Note, unlike standard number formatting, integers would be treated like real numbers when std::fixed or std::scientific manipulators were applied
References boost::locale::ios_info::display_flags(), boost::locale::ios_info::get(), and boost::locale::flags::number.
|
inline |
#include <boost_1_57_0/boost/locale/formatting.hpp>
Write an order of the number like 4th.
References boost::locale::ios_info::display_flags(), boost::locale::ios_info::get(), and boost::locale::flags::ordinal.
|
inline |
#include <boost_1_57_0/boost/locale/formatting.hpp>
Format percent, value 0.3 is treated as 30%.
References boost::locale::ios_info::display_flags(), boost::locale::ios_info::get(), and boost::locale::flags::percent.
|
inline |
#include <boost_1_57_0/boost/locale/formatting.hpp>
Format values with "POSIX" or "C" locale.
Note, if locale was created with additional non-classic locale then These numbers may be localized
References boost::locale::ios_info::display_flags(), boost::locale::ios_info::get(), and boost::locale::flags::posix.
|
inline |
#include <boost_1_57_0/boost/locale/formatting.hpp>
Spell the number, like "one hundred and ten".
References boost::locale::ios_info::display_flags(), boost::locale::ios_info::get(), and boost::locale::flags::spellout.
|
inline |
#include <boost_1_57_0/boost/locale/formatting.hpp>
Create formatted date time, Please note, this manipulator only changes formatting mode, and not format itself, so you are probably looking for ftime manipulator.
References boost::locale::ios_info::display_flags(), boost::locale::ios_info::get(), and boost::locale::flags::strftime.
|
inline |
#include <boost_1_57_0/boost/locale/formatting.hpp>
Format a time, number is treated as POSIX time.
References boost::locale::ios_info::display_flags(), boost::locale::ios_info::get(), and boost::locale::flags::time.
|
inline |
#include <boost_1_57_0/boost/locale/formatting.hpp>
set default (medium) time formatting style
References boost::locale::ios_info::get(), boost::locale::flags::time_default, and boost::locale::ios_info::time_flags().
|
inline |
#include <boost_1_57_0/boost/locale/formatting.hpp>
set full time formatting style
References boost::locale::ios_info::get(), boost::locale::ios_info::time_flags(), and boost::locale::flags::time_full.
|
inline |
#include <boost_1_57_0/boost/locale/formatting.hpp>
set long time formatting style
References boost::locale::ios_info::get(), boost::locale::ios_info::time_flags(), and boost::locale::flags::time_long.
|
inline |
#include <boost_1_57_0/boost/locale/formatting.hpp>
set medium time formatting style
References boost::locale::ios_info::get(), boost::locale::ios_info::time_flags(), and boost::locale::flags::time_medium.
|
inline |
#include <boost_1_57_0/boost/locale/formatting.hpp>
set short time formatting style
References boost::locale::ios_info::get(), boost::locale::ios_info::time_flags(), and boost::locale::flags::time_short.
|
inline |
#include <boost_1_57_0/boost/locale/formatting.hpp>
Set time zone using id.
References boost::chrono::set_timezone().
|
inline |
#include <boost_1_57_0/boost/locale/formatting.hpp>
Set time zone using id.
References boost::chrono::set_timezone().