___lc_codepage_func___lc_codepage_func

内部 CRT 函数。Internal CRT function. 检索线程的当前代码页。Retrieves the current code page of the thread.

语法Syntax

UINT ___lc_codepage_func(void);  

返回值Return Value

线程的当前代码页。The current code page of the thread.

备注Remarks

___lc_codepage_func 是一个内部 CRT 函数,其他 CRT 函数可将其用于从 CRT 数据的线程本地存储中获取当前代码页。___lc_codepage_func is an internal CRT function that is used by other CRT functions to get the current code page from the thread local storage for CRT data. 也可通过使用 _get_current_locale 函数提供此信息。This information is also available by using the _get_current_locale function.

代码页是单字节或双字节代码到单独字符的映射。A code page is a mapping of single-byte or double-byte codes to individual characters. 不同的代码页包含不同的特殊字符,通常会对一种语言或一组语言进行自定义。Different code pages include different special characters, typically customized for a language or a group of languages. 有关代码页的详细信息,请参见 Code PagesFor more information about code pages, see Code Pages.

内部 CRT 函数特定于实现且会根据每个发行版本发生更改。Internal CRT functions are implementation-specific and subject to change with each release. 不建议在代码中使用它们。We don't recommend their use in your code.

要求Requirements

例程Routine 必需的标头Required header
___lc_codepage_func crt\src\setlocal.hcrt\src\setlocal.h

另请参阅See Also

_get_current_locale _get_current_locale
setlocale、_wsetlocale setlocale, _wsetlocale
_create_locale、_wcreate_locale _create_locale, _wcreate_locale
_free_locale_free_locale