⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 localename.c

📁 Doc++,可以根据你的C/C++和java的源码文件中的注释行自动生成Html说明文件的工具
💻 C
📖 第 1 页 / 共 2 页
字号:
/* Determine the current selected locale.   Copyright (C) 1995-1999, 2000-2002 Free Software Foundation, Inc.   This program is free software; you can redistribute it and/or modify it   under the terms of the GNU Library General Public License as published   by the Free Software Foundation; either version 2, or (at your option)   any later version.   This program is distributed in the hope that it will be useful,   but WITHOUT ANY WARRANTY; without even the implied warranty of   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU   Library General Public License for more details.   You should have received a copy of the GNU Library General Public   License along with this program; if not, write to the Free Software   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,   USA.  *//* Written by Ulrich Drepper <drepper@gnu.org>, 1995.  *//* Win32 code written by Tor Lillqvist <tml@iki.fi>.  */#ifdef HAVE_CONFIG_H# include <config.h>#endif#include <stdlib.h>#include <locale.h>#if defined _WIN32 || defined __WIN32__# undef WIN32   /* avoid warning on mingw32 */# define WIN32#endif#ifdef WIN32# define WIN32_LEAN_AND_MEAN# include <windows.h>/* Mingw headers don't have latest language and sublanguage codes.  */# ifndef LANG_AFRIKAANS# define LANG_AFRIKAANS 0x36# endif# ifndef LANG_ALBANIAN# define LANG_ALBANIAN 0x1c# endif# ifndef LANG_ARABIC# define LANG_ARABIC 0x01# endif# ifndef LANG_ARMENIAN# define LANG_ARMENIAN 0x2b# endif# ifndef LANG_ASSAMESE# define LANG_ASSAMESE 0x4d# endif# ifndef LANG_AZERI# define LANG_AZERI 0x2c# endif# ifndef LANG_BASQUE# define LANG_BASQUE 0x2d# endif# ifndef LANG_BELARUSIAN# define LANG_BELARUSIAN 0x23# endif# ifndef LANG_BENGALI# define LANG_BENGALI 0x45# endif# ifndef LANG_CATALAN# define LANG_CATALAN 0x03# endif# ifndef LANG_DIVEHI# define LANG_DIVEHI 0x65# endif# ifndef LANG_ESTONIAN# define LANG_ESTONIAN 0x25# endif# ifndef LANG_FAEROESE# define LANG_FAEROESE 0x38# endif# ifndef LANG_FARSI# define LANG_FARSI 0x29# endif# ifndef LANG_GALICIAN# define LANG_GALICIAN 0x56# endif# ifndef LANG_GEORGIAN# define LANG_GEORGIAN 0x37# endif# ifndef LANG_GUJARATI# define LANG_GUJARATI 0x47# endif# ifndef LANG_HEBREW# define LANG_HEBREW 0x0d# endif# ifndef LANG_HINDI# define LANG_HINDI 0x39# endif# ifndef LANG_INDONESIAN# define LANG_INDONESIAN 0x21# endif# ifndef LANG_KANNADA# define LANG_KANNADA 0x4b# endif# ifndef LANG_KASHMIRI# define LANG_KASHMIRI 0x60# endif# ifndef LANG_KAZAK# define LANG_KAZAK 0x3f# endif# ifndef LANG_KONKANI# define LANG_KONKANI 0x57# endif# ifndef LANG_KYRGYZ# define LANG_KYRGYZ 0x40# endif# ifndef LANG_LATVIAN# define LANG_LATVIAN 0x26# endif# ifndef LANG_LITHUANIAN# define LANG_LITHUANIAN 0x27# endif# ifndef LANG_MACEDONIAN# define LANG_MACEDONIAN 0x2f# endif# ifndef LANG_MALAY# define LANG_MALAY 0x3e# endif# ifndef LANG_MALAYALAM# define LANG_MALAYALAM 0x4c# endif# ifndef LANG_MANIPURI# define LANG_MANIPURI 0x58# endif# ifndef LANG_MARATHI# define LANG_MARATHI 0x4e# endif# ifndef LANG_MONGOLIAN# define LANG_MONGOLIAN 0x50# endif# ifndef LANG_NEPALI# define LANG_NEPALI 0x61# endif# ifndef LANG_ORIYA# define LANG_ORIYA 0x48# endif# ifndef LANG_PUNJABI# define LANG_PUNJABI 0x46# endif# ifndef LANG_SANSKRIT# define LANG_SANSKRIT 0x4f# endif# ifndef LANG_SERBIAN# define LANG_SERBIAN 0x1a# endif# ifndef LANG_SINDHI# define LANG_SINDHI 0x59# endif# ifndef LANG_SLOVAK# define LANG_SLOVAK 0x1b# endif# ifndef LANG_SORBIAN# define LANG_SORBIAN 0x2e# endif# ifndef LANG_SWAHILI# define LANG_SWAHILI 0x41# endif# ifndef LANG_SYRIAC# define LANG_SYRIAC 0x5a# endif# ifndef LANG_TAMIL# define LANG_TAMIL 0x49# endif# ifndef LANG_TATAR# define LANG_TATAR 0x44# endif# ifndef LANG_TELUGU# define LANG_TELUGU 0x4a# endif# ifndef LANG_THAI# define LANG_THAI 0x1e# endif# ifndef LANG_UKRAINIAN# define LANG_UKRAINIAN 0x22# endif# ifndef LANG_URDU# define LANG_URDU 0x20# endif# ifndef LANG_UZBEK# define LANG_UZBEK 0x43# endif# ifndef LANG_VIETNAMESE# define LANG_VIETNAMESE 0x2a# endif# ifndef SUBLANG_ARABIC_SAUDI_ARABIA# define SUBLANG_ARABIC_SAUDI_ARABIA 0x01# endif# ifndef SUBLANG_ARABIC_IRAQ# define SUBLANG_ARABIC_IRAQ 0x02# endif# ifndef SUBLANG_ARABIC_EGYPT# define SUBLANG_ARABIC_EGYPT 0x03# endif# ifndef SUBLANG_ARABIC_LIBYA# define SUBLANG_ARABIC_LIBYA 0x04# endif# ifndef SUBLANG_ARABIC_ALGERIA# define SUBLANG_ARABIC_ALGERIA 0x05# endif# ifndef SUBLANG_ARABIC_MOROCCO# define SUBLANG_ARABIC_MOROCCO 0x06# endif# ifndef SUBLANG_ARABIC_TUNISIA# define SUBLANG_ARABIC_TUNISIA 0x07# endif# ifndef SUBLANG_ARABIC_OMAN# define SUBLANG_ARABIC_OMAN 0x08# endif# ifndef SUBLANG_ARABIC_YEMEN# define SUBLANG_ARABIC_YEMEN 0x09# endif# ifndef SUBLANG_ARABIC_SYRIA# define SUBLANG_ARABIC_SYRIA 0x0a# endif# ifndef SUBLANG_ARABIC_JORDAN# define SUBLANG_ARABIC_JORDAN 0x0b# endif# ifndef SUBLANG_ARABIC_LEBANON# define SUBLANG_ARABIC_LEBANON 0x0c# endif# ifndef SUBLANG_ARABIC_KUWAIT# define SUBLANG_ARABIC_KUWAIT 0x0d# endif# ifndef SUBLANG_ARABIC_UAE# define SUBLANG_ARABIC_UAE 0x0e# endif# ifndef SUBLANG_ARABIC_BAHRAIN# define SUBLANG_ARABIC_BAHRAIN 0x0f# endif# ifndef SUBLANG_ARABIC_QATAR# define SUBLANG_ARABIC_QATAR 0x10# endif# ifndef SUBLANG_AZERI_LATIN# define SUBLANG_AZERI_LATIN 0x01# endif# ifndef SUBLANG_AZERI_CYRILLIC# define SUBLANG_AZERI_CYRILLIC 0x02# endif# ifndef SUBLANG_CHINESE_MACAU# define SUBLANG_CHINESE_MACAU 0x05# endif# ifndef SUBLANG_ENGLISH_SOUTH_AFRICA# define SUBLANG_ENGLISH_SOUTH_AFRICA 0x07# endif# ifndef SUBLANG_ENGLISH_JAMAICA# define SUBLANG_ENGLISH_JAMAICA 0x08# endif# ifndef SUBLANG_ENGLISH_CARIBBEAN# define SUBLANG_ENGLISH_CARIBBEAN 0x09# endif# ifndef SUBLANG_ENGLISH_BELIZE# define SUBLANG_ENGLISH_BELIZE 0x0a# endif# ifndef SUBLANG_ENGLISH_TRINIDAD# define SUBLANG_ENGLISH_TRINIDAD 0x0b# endif# ifndef SUBLANG_ENGLISH_ZIMBABWE# define SUBLANG_ENGLISH_ZIMBABWE 0x0c# endif# ifndef SUBLANG_ENGLISH_PHILIPPINES# define SUBLANG_ENGLISH_PHILIPPINES 0x0d# endif# ifndef SUBLANG_FRENCH_LUXEMBOURG# define SUBLANG_FRENCH_LUXEMBOURG 0x05# endif# ifndef SUBLANG_FRENCH_MONACO# define SUBLANG_FRENCH_MONACO 0x06# endif# ifndef SUBLANG_GERMAN_LUXEMBOURG# define SUBLANG_GERMAN_LUXEMBOURG 0x04# endif# ifndef SUBLANG_GERMAN_LIECHTENSTEIN# define SUBLANG_GERMAN_LIECHTENSTEIN 0x05# endif# ifndef SUBLANG_KASHMIRI_INDIA# define SUBLANG_KASHMIRI_INDIA 0x02# endif# ifndef SUBLANG_MALAY_MALAYSIA# define SUBLANG_MALAY_MALAYSIA 0x01# endif# ifndef SUBLANG_MALAY_BRUNEI_DARUSSALAM# define SUBLANG_MALAY_BRUNEI_DARUSSALAM 0x02# endif# ifndef SUBLANG_NEPALI_INDIA# define SUBLANG_NEPALI_INDIA 0x02# endif# ifndef SUBLANG_SERBIAN_LATIN# define SUBLANG_SERBIAN_LATIN 0x02# endif# ifndef SUBLANG_SERBIAN_CYRILLIC# define SUBLANG_SERBIAN_CYRILLIC 0x03# endif# ifndef SUBLANG_SPANISH_GUATEMALA# define SUBLANG_SPANISH_GUATEMALA 0x04# endif# ifndef SUBLANG_SPANISH_COSTA_RICA# define SUBLANG_SPANISH_COSTA_RICA 0x05# endif# ifndef SUBLANG_SPANISH_PANAMA# define SUBLANG_SPANISH_PANAMA 0x06# endif# ifndef SUBLANG_SPANISH_DOMINICAN_REPUBLIC# define SUBLANG_SPANISH_DOMINICAN_REPUBLIC 0x07# endif# ifndef SUBLANG_SPANISH_VENEZUELA# define SUBLANG_SPANISH_VENEZUELA 0x08# endif# ifndef SUBLANG_SPANISH_COLOMBIA# define SUBLANG_SPANISH_COLOMBIA 0x09# endif# ifndef SUBLANG_SPANISH_PERU# define SUBLANG_SPANISH_PERU 0x0a# endif# ifndef SUBLANG_SPANISH_ARGENTINA# define SUBLANG_SPANISH_ARGENTINA 0x0b# endif# ifndef SUBLANG_SPANISH_ECUADOR# define SUBLANG_SPANISH_ECUADOR 0x0c# endif# ifndef SUBLANG_SPANISH_CHILE# define SUBLANG_SPANISH_CHILE 0x0d# endif# ifndef SUBLANG_SPANISH_URUGUAY# define SUBLANG_SPANISH_URUGUAY 0x0e# endif# ifndef SUBLANG_SPANISH_PARAGUAY# define SUBLANG_SPANISH_PARAGUAY 0x0f# endif# ifndef SUBLANG_SPANISH_BOLIVIA# define SUBLANG_SPANISH_BOLIVIA 0x10# endif# ifndef SUBLANG_SPANISH_EL_SALVADOR# define SUBLANG_SPANISH_EL_SALVADOR 0x11# endif# ifndef SUBLANG_SPANISH_HONDURAS# define SUBLANG_SPANISH_HONDURAS 0x12# endif# ifndef SUBLANG_SPANISH_NICARAGUA# define SUBLANG_SPANISH_NICARAGUA 0x13# endif# ifndef SUBLANG_SPANISH_PUERTO_RICO# define SUBLANG_SPANISH_PUERTO_RICO 0x14# endif# ifndef SUBLANG_SWEDISH_FINLAND# define SUBLANG_SWEDISH_FINLAND 0x02# endif# ifndef SUBLANG_URDU_PAKISTAN# define SUBLANG_URDU_PAKISTAN 0x01# endif# ifndef SUBLANG_URDU_INDIA# define SUBLANG_URDU_INDIA 0x02# endif# ifndef SUBLANG_UZBEK_LATIN# define SUBLANG_UZBEK_LATIN 0x01# endif# ifndef SUBLANG_UZBEK_CYRILLIC# define SUBLANG_UZBEK_CYRILLIC 0x02# endif#endif/* XPG3 defines the result of 'setlocale (category, NULL)' as:   "Directs 'setlocale()' to query 'category' and return the current    setting of 'local'."   However it does not specify the exact format.  Neither do SUSV2 and   ISO C 99.  So we can use this feature only on selected systems (e.g.   those using GNU C Library).  */#if defined _LIBC || (defined __GNU_LIBRARY__ && __GNU_LIBRARY__ >= 2)# define HAVE_LOCALE_NULL#endif/* Determine the current locale's name, and canonicalize it into XPG syntax     language[_territory[.codeset]][@modifier]   The codeset part in the result is not reliable; the locale_charset()   should be used for codeset information instead.   The result must not be freed; it is statically allocated.  */const char *_nl_locale_name (category, categoryname)     int category;     const char *categoryname;{

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -