Localization Library - Cppreference
Localization Library - Cppreference
The locale facility includes internationalization s upport for character clas s ication and s tring collation,
numeric, monetary, and date/time formatting and pars ing, and mes s age retrieval. Locale s ettings control
the behavior of s tream I/O, regular expres s ion library, and other components of the C++ s tandard
library.
Locales
Dened in header <locale>
locale
use_facet
has_facet
Character classication
isspace(std::locale)
Character conversions
toupper(std::locale)
tolower(std::locale)
wstring_convert(C++11)
wbuffer_convert(C++11)
performs convers ion between a byte s tream buer and a wide s tream
buer
(c lass template)
ctype_base
codecvt_base
messages_base
time_base
money_base
Facet categories
ctype
ctype<char>
codecvt
collate
messages
time_get
time_put
num_get
num_put
numpunct
money_get
money_put
moneypunct
ctype_byname
codecvt_byname
messages_byname
collate_byname
time_get_byname
time_put_byname
numpunct_byname
moneypunct_byname
codecvt_utf8(C++11)
codecvt_utf16(C++11)
C library locales
Dened in header <clocale>
setlocale
LC_ALL
LC_COLLATE
LC_CTYPE
locale categories for std::setlocale
LC_MONETARY (mac ro c onstant)
LC_NUMERIC
LC_TIME
queries numeric and monetary formatting details of the current locale
localeconv (func tion)
lconv
See also
C documentation for Localization support
Retrieved from "http://en.c ppreferenc e.c om/mwiki/index.php?title=c pp/loc ale& oldid=71006"