locale.h

Overview

Related Modules:

IO

Description:

Provides functions to set and obtain the locale language environment.

Since:

1.0

Version:

1.0

Summary

Data Structures

Data Structure Name Description
lconv Indicates format information about a number.

Macros

Macro Name and Value Description
LC_CTYPE   0 Language symbol type, which affects character classification and case conversion.
LC_NUMERIC   1 Number type, which affects the number format.
LC_TIME   2 Time type, which affects date and time formats.
LC_COLLATE   3 Character sorting type, which affects string comparison and sorting habits.
LC_MONETARY   4 Monetary type, which affects monetary information.
LC_MESSAGES   5 Message type, which affects prompt information, error information, status information, titles, labels, buttons, and menus.
LC_ALL   6 All types, which affect all content of locale settings. If LC_ALL is set, the locale information of all types is set to be consistent with LC_ALL.

Functions

Function Name Description
setlocale (int category, const char locale) char Sets the current locale information based on input parameters.
localeconv (void) struct lconv * Obtains the locale information about a region and stores them in lconv.