Name

locale::category type — Bitmask of facet categories

Synopsis

typedef int category;
static const category
  none, collate, ctype, monetary, numeric, time, messages,
  all = collate|ctype|monetary|numeric|time|messages;

The category type is an int and represents a bitmask of category identifiers, as listed in Table 13-21. Each category represents a set of one or more related facets. When combining locales, you can copy all the facets in one or more categories. Category identifiers can be combined using bitwise operators.

Table 13-21. Standard categories and their facets

Literal

Facets

collate

collate<char>

collate<wchar_t>

ctype

ctype<char>

ctype<wchar_t>

codecvt<char,char,mbstate_t>

codecvt<wchar_t,char,mbstate_t>

messages

messages<char>

messages<wchar_t>

monetary

money_get<char>

money_get<wchar_t>

money_put<char>

money_put<wchar_t>

moneypunct<char>

moneypunct<wchar_t>

moneypunct<char,true>

moneypunct<wchar_t,true>

numeric

num_get<char>

num_get<wchar_t>

num_put<char>

num_put<wchar_t>

numpunct<char>

numpunct<wchar_t>

time

time_get<char>

time_get<wchar_t>

time_put<char>

time_put<wchar_t>

See Also

locale class

Get C++ In a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.