Boost.Locale
boost::locale::as Namespace Reference

This namespace includes all manipulators that can be used on IO streams. More...

Functions

std::ios_base & posix (std::ios_base &ios)
 
std::ios_base & number (std::ios_base &ios)
 
std::ios_base & currency (std::ios_base &ios)
 Format currency, number is treated like amount of money.
 
std::ios_base & percent (std::ios_base &ios)
 Format percent, value 0.3 is treated as 30%.
 
std::ios_base & date (std::ios_base &ios)
 Format a date, number is treated as POSIX time.
 
std::ios_base & time (std::ios_base &ios)
 Format a time, number is treated as POSIX time.
 
std::ios_base & datetime (std::ios_base &ios)
 Format a date and time, number is treated as POSIX time.
 
std::ios_base & strftime (std::ios_base &ios)
 
std::ios_base & spellout (std::ios_base &ios)
 Spell the number, like "one hundred and ten".
 
std::ios_base & ordinal (std::ios_base &ios)
 Write an order of the number like 4th.
 
std::ios_base & currency_default (std::ios_base &ios)
 Set default currency formatting style – national, like "$".
 
std::ios_base & currency_iso (std::ios_base &ios)
 Set ISO currency formatting style, like "USD", (requires ICU >= 4.2)
 
std::ios_base & currency_national (std::ios_base &ios)
 Set national currency formatting style, like "$".
 
std::ios_base & time_default (std::ios_base &ios)
 set default (medium) time formatting style
 
std::ios_base & time_short (std::ios_base &ios)
 set short time formatting style
 
std::ios_base & time_medium (std::ios_base &ios)
 set medium time formatting style
 
std::ios_base & time_long (std::ios_base &ios)
 set long time formatting style
 
std::ios_base & time_full (std::ios_base &ios)
 set full time formatting style
 
std::ios_base & date_default (std::ios_base &ios)
 set default (medium) date formatting style
 
std::ios_base & date_short (std::ios_base &ios)
 set short date formatting style
 
std::ios_base & date_medium (std::ios_base &ios)
 set medium date formatting style
 
std::ios_base & date_long (std::ios_base &ios)
 set long date formatting style
 
std::ios_base & date_full (std::ios_base &ios)
 set full date formatting style
 
template<typename CharType >
unspecified_type ftime (const std::basic_string< CharType > &format)
 
template<typename CharType >
unspecified_type ftime (const CharType *format)
 See ftime(std::basic_string<CharType> const &format)
 
std::ios_base & gmt (std::ios_base &ios)
 Set GMT time zone to stream.
 
std::ios_base & local_time (std::ios_base &ios)
 Set local time zone to stream.
 
unspecified_type time_zone (const char *id)
 Set time zone using id.
 
unspecified_type time_zone (const std::string &id)
 Set time zone using id.
 
unspecified_type domain (const std::string &id)
 

Detailed Description

This namespace includes all manipulators that can be used on IO streams.