Country/Region StringsCountry/Region Strings

可以将国家和地区字符串与语言字符串结合使用,以便创建 setlocale_wsetlocale_create_locale_wcreate_locale 函数的区域设置规范。Country and region strings can be combined with a language string to create a locale specification for the setlocale, _wsetlocale, _create_locale, and _wcreate_locale functions. 有关各种 Windows 操作系统版本支持的国家/地区名称列表,请参阅国家语言支持 (NLS) API 参考For lists of country/region names that are supported by various Windows operating system versions, see National Language Support (NLS) API Reference. 在列表中,国家/地区字符串可以是“区域设置 - 语言国家/地区”列中的任何国家/地区值,或“国家或地区名称缩写”列中的任何缩写。In the lists, the country/region string can be any of the country values in the Locale - Language Country/Region column, or any of the abbreviations in the Country or Region name abbreviation column. 有关 Windows 操作系统(按版本)中的其他语言支持信息,请参阅“[MS-LCID]:Windows 语言代码标识符 (LCID) 参考”中的附录 A:产品行为For additional language support information in Windows operating systems by version, see Appendix A: Product Behavior in [MS-LCID]: Windows Language Code Identifier (LCID) Reference.

C 运行时库实现还支持以下其他国家/地区字符串和缩写:The C run-time library implementation also supports the following additional country/region strings and abbreviations:

国家/地区字符串Country/region string 缩写Abbreviation 等效区域设置名称Equivalent locale name
americaamerica USAUSA zh-CNen-US
britainbritain GBRGBR en-GBen-GB
chinachina CHNCHN zh-CNzh-CN
czechczech CZECZE cs-CZcs-CZ
englandengland GBRGBR en-GBen-GB
great britaingreat britain GBRGBR en-GBen-GB
hollandholland NLDNLD nl-NLnl-NL
hong-konghong-kong HKGHKG zh-HKzh-HK
new-zealandnew-zealand NZLNZL en-NZen-NZ
nznz NZLNZL en-NZen-NZ
pr chinapr china CHNCHN zh-CNzh-CN
pr-chinapr-china CHNCHN zh-CNzh-CN
puerto-ricopuerto-rico PRIPRI es-PRes-PR
slovakslovak SVKSVK sk-SKsk-SK
south africasouth africa ZAFZAF af-ZAaf-ZA
south koreasouth korea KORKOR ko-KRko-KR
south-africasouth-africa ZAFZAF af-ZAaf-ZA
south-koreasouth-korea KORKOR ko-KRko-KR
trinidad & tobagotrinidad & tobago TTOTTO en-TTen-TT
ukuk GBRGBR en-GBen-GB
united-kingdomunited-kingdom GBRGBR en-GBen-GB
united-statesunited-states USAUSA zh-CNen-US
usus USAUSA zh-CNen-US

另请参阅See Also

区域设置名称、语言和国家/地区字符串 Locale Names, Languages, and Country/Region Strings
语言字符串 Language Strings
setlocale、_wsetlocale setlocale, _wsetlocale
_create_locale、_wcreate_locale_create_locale, _wcreate_locale