提供位掩码值表示标准方面系列的integer类型。
typedef int category;
static const int collate = LC_COLLATE;
static const int ctype = LC_CTYPE;
static const int monetary = LC_MONETARY;
static const int numeric = LC_NUMERIC;
static const int time = LC_TIME;
static const int messages = LC_MESSAGES;
static const int all = LC_ALL;
static const int none = 0;
备注
该类型在表示位掩码键入本地的清单组件提供一组类别区域设置或可以使用表示任何对应的C区域设置类别的 int 类型的同义词。元素是:
逐份打印,用C类别LC_COLLATE相应
ctype,用C类别LC_CTYPE相应
monetary,用C类别LC_MONETARY相应
numeric,用C类别LC_NUMERIC相应
时间,用C类别LC_TIME相应
messages,使用POSIX类别LC_MESSAGES相应
此外,两种有用的值为:
none,与任何C类别相对应
all,与所有类别相应LC_ALL C联合
您可以表示分类的任意一组使用 OR 使用这些常量,在 monetary |时间。
要求
标头: <locale>
命名空间: std