Синтаксис:
#include <clocale> char *setlocale( int category, const char * locale );
Аргумент category может принимать следующие значения:
| Значение | Описание |
|---|---|
| LC_ALL | All of the locale |
| LC_TIME | Date and time formatting |
| LC_NUMERIC | Number formatting |
| LC_COLLATE | String collation and regular expression matching |
| LC_CT | Regular expression matching, conversion, case-sensitive comparison, wide character functions, and character classification. |
| LC_MESSAGES | For natural language messages |