LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY, LC_NUMERIC, LC_TIME
From cppreference.com
Defined in header <locale.h>
|
||
#define LC_ALL /*implementation defined*/ |
||
#define LC_COLLATE /*implementation defined*/ |
||
#define LC_CTYPE /*implementation defined*/ |
||
#define LC_MONETARY /*implementation defined*/ |
||
#define LC_NUMERIC /*implementation defined*/ |
||
#define LC_TIME /*implementation defined*/ |
||
Each of the above macro constants expand to integer constant expressions with distinct values that are suitable for use as the first argument of setlocale.
Constant | Explanation |
LC_ALL
|
selects the entire C locale |
LC_COLLATE
|
selects the collation category of the C locale |
LC_CTYPE
|
selects the character classification category of the C locale |
LC_MONETARY
|
selects the monetary formatting category of the C locale |
LC_NUMERIC
|
selects the numeric formatting category of the C locale |
LC_TIME
|
selects the time formatting category of the C locale |
Additional macro constants, with names that begin with LC_
followed by at least one uppercase letter, may be defined in locale.h
. For example, the POSIX specification requires LC_MESSAGES (which controls, among other things, perror and strerror), and the GNU C library additionally defines LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE, LC_MEASUREMENT, and LC_IDENTIFICATION.