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

📄 localename.c

📁 mp3解码库文件,已成功地用到了dm642平台,请大家放心使用
💻 C
📖 第 1 页 / 共 3 页
字号:
# define LANG_THAI 0x1e# endif# ifndef LANG_TIBETAN# define LANG_TIBETAN 0x51# endif# ifndef LANG_TIGRINYA# define LANG_TIGRINYA 0x73# endif# ifndef LANG_TSONGA# define LANG_TSONGA 0x31# endif# ifndef LANG_TSWANA# define LANG_TSWANA 0x32# endif# ifndef LANG_TURKMEN# define LANG_TURKMEN 0x42# 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_VENDA# define LANG_VENDA 0x33# endif# ifndef LANG_VIETNAMESE# define LANG_VIETNAMESE 0x2a# endif# ifndef LANG_WELSH# define LANG_WELSH 0x52# endif# ifndef LANG_XHOSA# define LANG_XHOSA 0x34# endif# ifndef LANG_YI# define LANG_YI 0x78# endif# ifndef LANG_YIDDISH# define LANG_YIDDISH 0x3d# endif# ifndef LANG_YORUBA# define LANG_YORUBA 0x6a# endif# ifndef LANG_ZULU# define LANG_ZULU 0x35# 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_BENGALI_INDIA# define SUBLANG_BENGALI_INDIA 0x00# endif# ifndef SUBLANG_BENGALI_BANGLADESH# define SUBLANG_BENGALI_BANGLADESH 0x01# 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_ENGLISH_INDONESIA# define SUBLANG_ENGLISH_INDONESIA 0x0e# endif# ifndef SUBLANG_ENGLISH_HONGKONG# define SUBLANG_ENGLISH_HONGKONG 0x0f# endif# ifndef SUBLANG_ENGLISH_INDIA# define SUBLANG_ENGLISH_INDIA 0x10# endif# ifndef SUBLANG_ENGLISH_MALAYSIA# define SUBLANG_ENGLISH_MALAYSIA 0x11# endif# ifndef SUBLANG_ENGLISH_SINGAPORE# define SUBLANG_ENGLISH_SINGAPORE 0x12# endif# ifndef SUBLANG_FRENCH_LUXEMBOURG# define SUBLANG_FRENCH_LUXEMBOURG 0x05# endif# ifndef SUBLANG_FRENCH_MONACO# define SUBLANG_FRENCH_MONACO 0x06# endif# ifndef SUBLANG_FRENCH_WESTINDIES# define SUBLANG_FRENCH_WESTINDIES 0x07# endif# ifndef SUBLANG_FRENCH_REUNION# define SUBLANG_FRENCH_REUNION 0x08# endif# ifndef SUBLANG_FRENCH_CONGO# define SUBLANG_FRENCH_CONGO 0x09# endif# ifndef SUBLANG_FRENCH_SENEGAL# define SUBLANG_FRENCH_SENEGAL 0x0a# endif# ifndef SUBLANG_FRENCH_CAMEROON# define SUBLANG_FRENCH_CAMEROON 0x0b# endif# ifndef SUBLANG_FRENCH_COTEDIVOIRE# define SUBLANG_FRENCH_COTEDIVOIRE 0x0c# endif# ifndef SUBLANG_FRENCH_MALI# define SUBLANG_FRENCH_MALI 0x0d# endif# ifndef SUBLANG_FRENCH_MOROCCO# define SUBLANG_FRENCH_MOROCCO 0x0e# endif# ifndef SUBLANG_FRENCH_HAITI# define SUBLANG_FRENCH_HAITI 0x0f# 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_PUNJABI_INDIA# define SUBLANG_PUNJABI_INDIA 0x00# endif# ifndef SUBLANG_PUNJABI_PAKISTAN# define SUBLANG_PUNJABI_PAKISTAN 0x01# endif# ifndef SUBLANG_ROMANIAN_ROMANIA# define SUBLANG_ROMANIAN_ROMANIA 0x00# endif# ifndef SUBLANG_ROMANIAN_MOLDOVA# define SUBLANG_ROMANIAN_MOLDOVA 0x01# endif# ifndef SUBLANG_SERBIAN_LATIN# define SUBLANG_SERBIAN_LATIN 0x02# endif# ifndef SUBLANG_SERBIAN_CYRILLIC# define SUBLANG_SERBIAN_CYRILLIC 0x03# endif# ifndef SUBLANG_SINDHI_INDIA# define SUBLANG_SINDHI_INDIA 0x00# endif# ifndef SUBLANG_SINDHI_PAKISTAN# define SUBLANG_SINDHI_PAKISTAN 0x01# 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_TAMAZIGHT_ARABIC# define SUBLANG_TAMAZIGHT_ARABIC 0x01# endif# ifndef SUBLANG_TAMAZIGHT_LATIN# define SUBLANG_TAMAZIGHT_LATIN 0x02# endif# ifndef SUBLANG_TIGRINYA_ETHIOPIA# define SUBLANG_TIGRINYA_ETHIOPIA 0x00# endif# ifndef SUBLANG_TIGRINYA_ERITREA# define SUBLANG_TIGRINYA_ERITREA 0x01# 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 (int category, const char *categoryname){  const char *retval;#ifndef WIN32  /* Use the POSIX methods of looking to 'LC_ALL', 'LC_xxx', and 'LANG'.     On some systems this can be done by the 'setlocale' function itself.  */# if defined HAVE_SETLOCALE && defined HAVE_LC_MESSAGES && defined HAVE_LOCALE_NULL  retval = setlocale (category, NULL);# else  /* Setting of LC_ALL overwrites all other.  */  retval = getenv ("LC_ALL");  if (retval == NULL || retval[0] == '\0')    {      /* Next comes the name of the desired category.  */      retval = getenv (categoryname);      if (retval == NULL || retval[0] == '\0')	{	  /* Last possibility is the LANG environment variable.  */	  retval = getenv ("LANG");	  if (retval == NULL || retval[0] == '\0')	    /* We use C as the default domain.  POSIX says this is	       implementation defined.  */	    retval = "C";	}    }# endif  return retval;#else /* WIN32 */  /* Return an XPG style locale name language[_territory][@modifier].     Don't even bother determining the codeset; it's not useful in this     context, because message catalogs are not specific to a single     codeset.  */  LCID lcid;  LANGID langid;  int primary, sub;  /* Let the user override the system settings through environment     variables, as on POSIX systems.  */  retval = getenv ("LC_ALL");  if (retval != NULL && retval[0] != '\0')    return retval;  retval = getenv (categoryname);  if (retval != NULL && retval[0] != '\0')    return retval;  retval = getenv ("LANG");  if (retval != NULL && retval[0] != '\0')    return retval;  /* Use native Win32 API locale ID.  */  lcid = GetThreadLocale ();  /* Strip off the sorting rules, keep only the language part.  */  langid = LANGIDFROMLCID (lcid);

⌨️ 快捷键说明

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