1 Star 0 Fork 4.9K

Cain / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
locale-h.md 7.62 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

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.

1
https://gitee.com/cain_qin/docs.git
git@gitee.com:cain_qin/docs.git
cain_qin
docs
docs
master

搜索帮助