...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
std::string
) encoding as part of the locale name, like en_US.UTF-8
or he_IL.cp1255
. UTF-8
is recommended.std::locale::facet
-- a base class that every object that describes a specific locale is derived from. Facets can be added to a locale to provide additional culture information.std::locale
class.std::wstring
under the Win32 platform, where sizeof(wchar_t)==2
.std::wstring
encoding for most POSIX platforms, where sizeof(wchar_t)==4
.