亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? dcgettext.c

?? 站點映像程序
?? C
字號:
/* dcgettext.c -- implemenatation of the dcgettext(3) function   Copyright (C) 1995 Free Software Foundation, Inc.This program is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe 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 ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */#ifdef HAVE_CONFIG_H# include <config.h>#endif#include <sys/types.h>#ifdef __GNUC__# define alloca __builtin_alloca#else# if defined HAVE_ALLOCA_H || defined _LIBC#  include <alloca.h># else#  ifdef _AIX #pragma alloca#  else#   ifndef allocachar *alloca ();#   endif#  endif# endif#endif#include <errno.h>#ifndef errnoextern int errno;#endif#if defined STDC_HEADERS || defined _LIBC# include <stdlib.h>#elsechar *getenv ();# ifdef HAVE_MALLOC_H#  include <malloc.h># elsevoid free ();# endif#endif#if defined HAVE_STRING_H || defined _LIBC# include <string.h>#else# include <strings.h>#endif#if !HAVE_STRCHR && !defined _LIBC# ifndef strchr#  define strchr index# endif#endif#if defined HAVE_UNISTD_H || defined _LIBC# include <unistd.h>#endif#include "gettext.h"#include "gettextP.h"#ifdef _LIBC# include <libintl.h>#else# include "libgettext.h"#endif#include "hash-string.h"/* @@ end of prolog @@ */#ifdef _LIBC/* Rename the non ANSI C functions.  This is required by the standard   because some ANSI C functions will require linking with this object   file and the name space must not be polluted.  */# define getcwd __getcwd# define stpcpy __stpcpy#endif#if !defined HAVE_GETCWD && !defined _LIBCchar *getwd ();# define getcwd(buf, max) getwd (buf)#elsechar *getcwd ();#endif/* Amount to increase buffer size by in each try.  */#define PATH_INCR 32/* The following is from pathmax.h.  *//* Non-POSIX BSD systems might have gcc's limits.h, which doesn't define   PATH_MAX but might cause redefinition warnings when sys/param.h is   later included (as on MORE/BSD 4.3).  */#if defined(_POSIX_VERSION) || (defined(HAVE_LIMITS_H) && !defined(__GNUC__))# include <limits.h>#endif#ifndef _POSIX_PATH_MAX# define _POSIX_PATH_MAX 255#endif#if !defined(PATH_MAX) && defined(_PC_PATH_MAX)# define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX))#endif/* Don't include sys/param.h if it already has been.  */#if defined(HAVE_SYS_PARAM_H) && !defined(PATH_MAX) && !defined(MAXPATHLEN)# include <sys/param.h>#endif#if !defined(PATH_MAX) && defined(MAXPATHLEN)# define PATH_MAX MAXPATHLEN#endif#ifndef PATH_MAX# define PATH_MAX _POSIX_PATH_MAX#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.  And even worse: POSIX   defines this not at all.  So we can use this feature only on selected   system (e.g. those using GNU C Library).  */#ifdef _LIBC# define HAVE_LOCALE_NULL#endif/* Name of the default domain used for gettext(3) prior any call to   textdomain(3).  The default value for this is "messages".  */const char _nl_default_default_domain[] = "messages";/* Value used as the default domain for gettext(3).  */const char *_nl_current_default_domain = _nl_default_default_domain;/* Contains the default location of the message catalogs.  */const char _nl_default_dirname[] = GNULOCALEDIR;/* List with bindings of specific domains created by bindtextdomain()   calls.  */struct binding *_nl_domain_bindings;/* Prototypes for local functions.  */static char *find_msg __P ((struct loaded_domain *domain, const char *msgid));static const char *category_to_name __P((int category));static const char *guess_category_value __P((int category,					     const char *categoryname));/* Names for the libintl functions are a problem.  They must not clash   with existing names and they should follow ANSI C.  But this source   code is also used in GNU C Library where the names have a __   prefix.  So we have to make a difference here.  */#ifdef _LIBC# define DCGETTEXT __dcgettext#else# define DCGETTEXT dcgettext__#endif/* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY   locale.  */char *DCGETTEXT (domainname, msgid, category)     const char *domainname;     const char *msgid;     int category;{  struct loaded_domain *domain;  struct binding *binding;  const char *categoryname;  const char *categoryvalue;  char *dirname, *xdomainname;  char *single_locale;  char *retval;  /* If no real MSGID is given return NULL.  */  if (msgid == NULL)    return NULL;  /* If DOMAINNAME is NULL, we are interested in the default domain.  If     CATEGORY is not LC_MESSAGES this might not make much sense but the     defintion left this undefined.  */  if (domainname == NULL)    domainname = _nl_current_default_domain;  /* First find matching binding.  */  for (binding = _nl_domain_bindings; binding != NULL; binding = binding->next)    {      int compare = strcmp (domainname, binding->domainname);      if (compare == 0)	/* We found it!  */	break;      if (compare < 0)	{	  /* It is not in the list.  */	  binding = NULL;	  break;	}    }  if (binding == NULL)    dirname = (char *) _nl_default_dirname;  else if (binding->dirname[0] == '/')    dirname = binding->dirname;  else    {      /* We have a relative path.  Make it absolute now.  */      size_t dirname_len = strlen (binding->dirname) + 1;      size_t path_max;      char *ret;      path_max = (unsigned) PATH_MAX;      path_max += 2;		/* The getcwd docs say to do this.  */      dirname = (char *) alloca (path_max + dirname_len);      errno = 0;      while ((ret = getcwd (dirname, path_max)) == NULL && errno == ERANGE)	{	  path_max += PATH_INCR;	  dirname = (char *) alloca (path_max + dirname_len);	  errno = 0;	}      if (ret == NULL)	/* We cannot get the current working directory.  Don't signal an	   error but simply return the default string.  */	return (char *) msgid;      /* We don't want libintl.a to depend on any other library.  So	 we avoid the non-standard function stpcpy.  In GNU C Library	 this function is available, though.  Also allow the symbol	 HAVE_STPCPY to be defined.  */#if defined _LIBC || defined HAVE_STPCPY      stpcpy (stpcpy (strchr (dirname, '\0'), "/"), binding->dirname);#else      strcat (dirname, "/");      strcat (dirname, binding->dirname);#endif    }  /* Now determine the symbolic name of CATEGORY and its value.  */  categoryname = category_to_name (category);  categoryvalue = guess_category_value (category, categoryname);  xdomainname = (char *) alloca (strlen (categoryname)				 + strlen (domainname) + 5);  /* We don't want libintl.a to depend on any other library.  So we     avoid the non-standard function stpcpy.  In GNU C Library this     function is available, though.  Also allow the symbol HAVE_STPCPY     to be defined.  */#if defined _LIBC || defined HAVE_STPCPY  stpcpy (stpcpy (stpcpy (stpcpy (xdomainname, categoryname), "/"),		  domainname),	  ".mo");#else  strcpy (xdomainname, categoryname);  strcat (xdomainname, "/");  strcat (xdomainname, domainname);  strcat (xdomainname, ".mo");#endif  /* Creating working area.  */  single_locale = (char *) alloca (strlen (categoryvalue) + 1);  /* Search for the given string.  This is a loop because we perhaps     got an ordered list of languages to consider for th translation.  */  while (1)    {      /* Make CATEGORYVALUE point to the next element of the list.  */      while (categoryvalue[0] != '\0' && categoryvalue[0] == ':')	++categoryvalue;      if (categoryvalue[0] == '\0')	{	  /* The whole contents of CATEGORYVALUE has been searched but	     no valid entry has been found.  We solve this situation	     by implicitely appending a "C" entry, i.e. no translation	     will take place.  */	  single_locale[0] = 'C';	  single_locale[1] = '\0';	}      else	{	  char *cp = single_locale;	  while (categoryvalue[0] != '\0' && categoryvalue[0] != ':')	    *cp++ = *categoryvalue++;	  *cp = '\0';	}      /* If the current locale value is C (or POSIX) we don't load a	 domain.  Return the MSGID.  */      if (strcmp (single_locale, "C") == 0	  || strcmp (single_locale, "POSIX") == 0)	return (char *) msgid;      /* Find structure describing the message catalog matching the	 DOMAINNAME and CATEGORY.  */      domain = _nl_find_domain (dirname, single_locale, xdomainname);      if (domain != NULL)	{	  retval = find_msg (domain, msgid);	  if (retval == NULL)	    {	      int cnt;	      for (cnt = 0; domain->successor[cnt] != NULL; ++cnt)		{		  retval = find_msg (domain->successor[cnt], msgid);		  if (retval != NULL)		    break;		}	    }	  if (retval != NULL)	    return retval;	}    }  /* NOTREACHED */}#ifdef _LIBC/* Alias for function name in GNU C Library.  */weak_alias (__dcgettext, dcgettext);#endifstatic char *find_msg (domain, msgid)     struct loaded_domain *domain;     const char *msgid;{  size_t top, act, bottom;  if (domain->decided == 0)    _nl_load_domain (domain);  if (domain->data == NULL)    return NULL;  /* Locate the MSGID and its translation.  */  if (domain->hash_size > 2 && domain->hash_tab != NULL)    {      /* Use the hashing table.  */      nls_uint32 len = strlen (msgid);      nls_uint32 hash_val = hash_string (msgid);      nls_uint32 idx = hash_val % domain->hash_size;      nls_uint32 incr = 1 + (hash_val % (domain->hash_size - 2));      nls_uint32 nstr = W (domain->must_swap, domain->hash_tab[idx]);      if (nstr == 0)	/* Hash table entry is empty.  */	return NULL;      if (W (domain->must_swap, domain->orig_tab[nstr - 1].length) == len	  && strcmp (msgid,		     domain->data + W (domain->must_swap,				       domain->orig_tab[nstr - 1].offset)) == 0)	return (char *) domain->data + W (domain->must_swap,					  domain->trans_tab[nstr - 1].offset);      while (1)	{	  if (idx >= W (domain->must_swap, domain->hash_size) - incr)	    idx -= W (domain->must_swap, domain->hash_size) - incr;	  else	    idx += incr;	  nstr = W (domain->must_swap, domain->hash_tab[idx]);	  if (nstr == 0)	    /* Hash table entry is empty.  */	    return NULL;	  if (W (domain->must_swap, domain->orig_tab[nstr - 1].length) == len	      && strcmp (msgid,			 domain->data + W (domain->must_swap,					   domain->orig_tab[nstr - 1].offset))	         == 0)	    return (char *) domain->data	      + W (domain->must_swap, domain->trans_tab[nstr - 1].offset);	}      /* NOTREACHED */    }  /* Now we try the default method:  binary search in the sorted     array of messages.  */  bottom = 0;  top = domain->nstrings;  while (bottom < top)    {      int cmp_val;      act = (bottom + top) / 2;      cmp_val = strcmp (msgid, domain->data			       + W (domain->must_swap,				    domain->orig_tab[act].offset));      if (cmp_val < 0)	top = act;      else if (cmp_val > 0)	bottom = act + 1;      else	break;    }  /* If an translation is found return this.  */  return bottom >= top ? NULL : (char *) domain->data                                + W (domain->must_swap,				     domain->trans_tab[act].offset);}/* Return string representation of locale CATEGORY.  */static const char *category_to_name (category)     int category;{  const char *retval;  switch (category)  {#ifdef LC_COLLATE  case LC_COLLATE:    retval = "LC_COLLATE";    break;#endif#ifdef LC_CTYPE  case LC_CTYPE:    retval = "LC_CTYPE";    break;#endif#ifdef LC_MONETARY  case LC_MONETARY:    retval = "LC_MONETARY";    break;#endif#ifdef LC_NUMERIC  case LC_NUMERIC:    retval = "LC_NUMERIC";    break;#endif#ifdef LC_TIME  case LC_TIME:    retval = "LC_TIME";    break;#endif#ifdef LC_MESSAGES  case LC_MESSAGES:    retval = "LC_MESSAGES";    break;#endif#ifdef LC_RESPONSE  case LC_RESPONSE:    retval = "LC_RESPONSE";    break;#endif#ifdef LC_ALL  case LC_ALL:    /* This might not make sense but is perhaps better than any other       value.  */    retval = "LC_ALL";    break;#endif  default:    /* If you have a better idea for a default value let me know.  */    retval = "LC_XXX";  }  return retval;}/* Guess value of current locale from value of the environment variables.  */static const char *guess_category_value (category, categoryname)     int category;     const char *categoryname;{  const char *retval;  /* The highest priority value is the `LANGUAGE' environment     variable.  This is a GNU extension.  */  retval = getenv ("LANGUAGE");  if (retval != NULL && retval[0] != '\0')    return retval;  /* `LANGUAGE' is not set.  So we have to proceed with 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  return setlocale (category, NULL);#else  /* Setting of LC_ALL overwrites all other.  */  retval = getenv ("LC_ALL");  if (retval != NULL && retval[0] != '\0')    return retval;  /* Next comes the name of the desired category.  */  retval = getenv (categoryname);  if (retval != NULL && retval[0] != '\0')    return retval;  /* Last possibility is the LANG environment variable.  */  retval = getenv ("LANG");  if (retval != NULL && retval[0] != '\0')    return retval;  /* We use C as the default domain.  POSIX says this is implementation     defined.  */  return "C";#endif}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区大片| 91在线免费视频观看| 国产精品你懂的在线欣赏| 色婷婷久久久综合中文字幕 | 免费精品视频在线| 欧美成人精品二区三区99精品| 中文字幕日韩精品一区| 7777精品伊人久久久大香线蕉的| 自拍视频在线观看一区二区| 欧美高清你懂得| 99久久久久免费精品国产 | 久久九九全国免费| 欧美男人的天堂一二区| 不卡的av在线播放| 韩国一区二区视频| 美女一区二区三区| 亚洲成a人v欧美综合天堂下载 | 欧美综合久久久| 国产河南妇女毛片精品久久久| 国产调教视频一区| 日韩欧美国产三级电影视频| 欧美在线不卡视频| 夫妻av一区二区| 国产麻豆欧美日韩一区| 看电影不卡的网站| 青青草伊人久久| 天天操天天干天天综合网| 亚洲自拍与偷拍| 亚洲色图20p| 亚洲色图视频网| 亚洲欧洲精品一区二区精品久久久 | 亚洲精品一区二区在线观看| 欧美亚男人的天堂| 在线观看成人免费视频| 视频一区中文字幕国产| 亚洲伊人色欲综合网| 亚洲美女淫视频| 亚洲精品国产一区二区三区四区在线 | 91精品国产综合久久福利| 亚洲一区二区三区激情| 一区二区三区精品视频在线| 亚洲色图在线播放| 亚洲激情在线激情| 一区二区三区中文字幕电影| 久久蜜臀中文字幕| 久久久久久免费| 国产欧美视频在线观看| 亚洲国产成人午夜在线一区 | 成人国产精品免费| 成人福利视频在线| 成人免费视频一区二区| av一区二区久久| 91原创在线视频| 91成人免费网站| 欧美日韩国产免费一区二区| 欧美精品三级在线观看| 日韩一级免费一区| 精品sm捆绑视频| 国产精品免费丝袜| 一区二区三区四区视频精品免费 | 欧美一级二级三级蜜桃| 欧美一区二区在线播放| 精品精品欲导航| 亚洲国产成人在线| 亚洲激情欧美激情| 亚洲va欧美va人人爽| 美女国产一区二区| 国产传媒日韩欧美成人| 91猫先生在线| 欧美一区欧美二区| 国产精品伦理一区二区| 亚洲综合视频在线观看| 久久99精品久久久久久国产越南| 亚洲免费在线观看| 日本在线播放一区二区三区| 久久激情五月激情| av在线不卡网| 日韩午夜电影av| 国产精品成人免费在线| 午夜精品久久久久久久99水蜜桃 | 蓝色福利精品导航| 国产91对白在线观看九色| 国产一区二区精品久久| 91免费看`日韩一区二区| 欧美日本一道本| 国产欧美日本一区视频| 亚洲国产欧美另类丝袜| 国产福利91精品一区| 欧美视频在线观看一区二区| 久久综合av免费| 亚洲福利电影网| 国产精品18久久久久久久久| 欧美午夜免费电影| 久久精品视频网| 天堂一区二区在线| av亚洲产国偷v产偷v自拍| 欧美一区二区三区视频在线观看| 欧美日韩中文国产| 久久你懂得1024| 一区二区三区波多野结衣在线观看| 亚洲欧美日韩小说| 黑人巨大精品欧美黑白配亚洲| 麻豆91小视频| 欧洲av在线精品| 1024精品合集| 精品在线一区二区三区| 99在线精品一区二区三区| 欧美成人一区二区三区片免费| 色网综合在线观看| 国产欧美精品一区二区三区四区| 国产欧美一区在线| 毛片av一区二区三区| 欧美亚男人的天堂| 国产精品美女久久久久久2018 | 欧美久久高跟鞋激| 国产精品国产三级国产aⅴ无密码| 中文字幕巨乱亚洲| 国产在线播放一区三区四| 5858s免费视频成人| 一区二区成人在线观看| 成人av影院在线| 欧美成人猛片aaaaaaa| 首页国产欧美久久| 欧美日韩中字一区| 亚洲妇女屁股眼交7| 91在线精品秘密一区二区| 国产精品污网站| 成人一区二区视频| 国产欧美久久久精品影院 | 国产一区二区三区四区在线观看| 国产精品一区二区久久不卡| 日韩美女主播在线视频一区二区三区| 日韩欧美国产系列| 理论电影国产精品| 91精品啪在线观看国产60岁| 婷婷激情综合网| 欧美精选一区二区| 日本欧美在线看| 日韩欧美色电影| 激情都市一区二区| 精品久久久久久无| 国产成人精品www牛牛影视| 久久久不卡网国产精品二区| 国产精品一线二线三线| 国产欧美日韩精品在线| 国产99久久久国产精品潘金网站| 欧美专区在线观看一区| 亚洲高清免费在线| 3d成人h动漫网站入口| 肉色丝袜一区二区| 精品国产一区二区三区久久影院| 中文字幕在线免费不卡| 成人免费高清视频| 亚洲欧美日本韩国| 欧美老肥妇做.爰bbww| 麻豆成人久久精品二区三区小说| 99国产一区二区三精品乱码| 1区2区3区国产精品| 91国产免费观看| 日韩电影在线一区二区| 精品88久久久久88久久久| 国产成人99久久亚洲综合精品| 这里只有精品99re| 狠狠色丁香久久婷婷综合_中 | 日韩电影在线免费看| 91精品国产综合久久精品麻豆 | 欧美体内she精视频| 99久久er热在这里只有精品15 | 日韩精品91亚洲二区在线观看| 国产乱妇无码大片在线观看| 亚洲国产精品成人综合 | 国产精品一区二区三区乱码| 久久久久国产精品麻豆ai换脸 | 欧美mv日韩mv国产网站| 国产成人综合在线播放| 精品国产成人系列| 欧美极品少妇xxxxⅹ高跟鞋 | 日韩免费电影网站| 波多野结衣视频一区| 亚洲www啪成人一区二区麻豆| 不卡av在线免费观看| 亚洲欧美日韩电影| 精品盗摄一区二区三区| 91免费小视频| 激情欧美一区二区| 一级日本不卡的影视| 精品久久一区二区| 91福利精品视频| 国产精品66部| 国产自产视频一区二区三区| 精品日韩一区二区| 欧美性感一类影片在线播放| 国产一区二区91| 亚洲bt欧美bt精品| 欧美国产国产综合| 欧美成人一级视频| 欧美精品久久天天躁| av在线不卡电影| 国产精品中文欧美| 美女网站在线免费欧美精品|