localeconv

来自cppreference.com
< c | locale

 
 
本地化的支持
setlocale
localeconv
lconv
语言环境种类
Original:
Locale categories
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
LC_ALL
LC_COLLATE
LC_CTYPE
LC_MONETARY
LC_NUMERIC
LC_TIME
 
Defined in header <locale.h>
localeconv函数获取一个指针,指向一个静态对象类型lconv,它代表了目前的C语言环境的数字和货币格式规则.
Original:
The localeconv function obtains a pointer to a static object of type lconv, which represents numeric and monetary formatting rules of the current C locale.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目录

[编辑] 参数

(无)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[编辑] 返回值

指针当前lconv对象.
Original:
pointer to the current lconv object.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[编辑] 注释

通过返回的指针修改的对象引用是未定义的行为.
Original:
Modifying the object references through the returned pointer is undefined behavior.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
localeconv修改一个静态对象,把它从不同的线程不同步是不确定的行为.
Original:
localeconv modifies a static object, calling it from different threads without synchronization is undefined behavior.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[编辑] 为例

[编辑] 另请参阅

获取和设置当前的C语言环境
Original:
gets and sets the current C locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数) [edit]
格式的详细信息,返回localeconv
Original:
formatting details, returned by localeconv
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(类) [edit]
C++ documentation for localeconv