Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
formatting.hpp File Reference
#include <boost/locale/config.hpp>
#include <boost/cstdint.hpp>
#include <boost/locale/time_zone.hpp>
#include <ostream>
#include <istream>
#include <string>
#include <string.h>
#include <typeinfo>
Include dependency graph for formatting.hpp:
This graph shows which files directly or indirectly include this file:

Classes

class  boost::locale::ios_info
 This class holds an external data - beyond existing fmtflags that std::ios_base holds. More...
 

Namespaces

 boost
 Duration formatting facet for input.
 
 boost::locale
 This is the main namespace that encloses all localization classes.
 
 boost::locale::flags
 This namespace holds additional formatting flags that can be set using ios_info.
 
 boost::locale::as
 This namespace includes all manipulators that can be used on IO streams.
 

Enumerations

enum  boost::locale::flags::display_flags_type {
  boost::locale::flags::posix = 0,
  boost::locale::flags::number = 1,
  boost::locale::flags::currency = 2,
  boost::locale::flags::percent = 3,
  boost::locale::flags::date = 4,
  boost::locale::flags::time = 5,
  boost::locale::flags::datetime = 6,
  boost::locale::flags::strftime = 7,
  boost::locale::flags::spellout = 8,
  boost::locale::flags::ordinal = 9,
  boost::locale::flags::display_flags_mask = 31,
  boost::locale::flags::currency_default = 0 << 5,
  boost::locale::flags::currency_iso = 1 << 5,
  boost::locale::flags::currency_national = 2 << 5,
  boost::locale::flags::currency_flags_mask = 3 << 5,
  boost::locale::flags::time_default = 0 << 7,
  boost::locale::flags::time_short = 1 << 7,
  boost::locale::flags::time_medium = 2 << 7,
  boost::locale::flags::time_long = 3 << 7,
  boost::locale::flags::time_full = 4 << 7,
  boost::locale::flags::time_flags_mask = 7 << 7,
  boost::locale::flags::date_default = 0 << 10,
  boost::locale::flags::date_short = 1 << 10,
  boost::locale::flags::date_medium = 2 << 10,
  boost::locale::flags::date_long = 3 << 10,
  boost::locale::flags::date_full = 4 << 10,
  boost::locale::flags::date_flags_mask = 7 << 10,
  boost::locale::flags::datetime_flags_mask = date_flags_mask | time_flags_mask
}
 Formatting flags, each one of them has corresponding manipulation in namespace as. More...
 
enum  boost::locale::flags::pattern_type {
  boost::locale::flags::datetime_pattern,
  boost::locale::flags::time_zone_id
}
 Special string patters that can be used for text formatting. More...
 
enum  boost::locale::flags::value_type { boost::locale::flags::domain_id }
 Special integer values that can be used for formatting. More...
 

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...