Supported Locale Names

EWL C++ predefines only two names: " C" and "". However, other names sent to the locale constructor are interpreted as file names containing data to create a named locale. So localizing your program is as easy as creating a data file specifying the desired behavior. The format for this data file is outlined below for each different facet.

A locale is a collection of facets. And a facet is a class that provides a certain behavior. The " C" locale contains the following facets:

A named locale replaces many of these facets with " _byname" versions, whose behavior can vary based on the name passed.

The behavior of each of these " _byname" facets can be specified with a data file. A single data file can contain data for all of the byname facets. That way, when you code:

  locale myloc("MyLocale");

  

then the file " MyLocale" will be used for each " _byname" facet in myloc.

Note: Unnamed namespaces are displayed using a compiler generated unique name that has the form: __unnamed_<filename> where <filename> is the source file name of the main translation unit that contains the unnamed namespace.