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

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

?? lstrlib.c

?? Ubuntu packages of security software。 相當不錯的源碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
          if (!m) return NULL;          s++; p=ep; goto init;  /* else return match(ms, s+1, ep); */        }      }    }  }}static const char *lmemfind (const char *s1, size_t l1,                               const char *s2, size_t l2) {  if (l2 == 0) return s1;  /* empty strings are everywhere */  else if (l2 > l1) return NULL;  /* avoids a negative `l1' */  else {    const char *init;  /* to search for a `*s2' inside `s1' */    l2--;  /* 1st char will be checked by `memchr' */    l1 = l1-l2;  /* `s2' cannot be found after that */    while (l1 > 0 && (init = (const char *)memchr(s1, *s2, l1)) != NULL) {      init++;   /* 1st char is already checked */      if (memcmp(init, s2+1, l2) == 0)        return init-1;      else {  /* correct `l1' and `s1' to try again */        l1 -= init-s1;        s1 = init;      }    }    return NULL;  /* not found */  }}static void push_onecapture (MatchState *ms, int i, const char *s,                                                    const char *e) {  if (i >= ms->level) {    if (i == 0)  /* ms->level == 0, too */      lua_pushlstring(ms->L, s, e - s);  /* add whole match */    else      luaL_error(ms->L, "invalid capture index");  }  else {    ptrdiff_t l = ms->capture[i].len;    if (l == CAP_UNFINISHED) luaL_error(ms->L, "unfinished capture");    if (l == CAP_POSITION)      lua_pushinteger(ms->L, ms->capture[i].init - ms->src_init + 1);    else      lua_pushlstring(ms->L, ms->capture[i].init, l);  }}static int push_captures (MatchState *ms, const char *s, const char *e) {  int i;  int nlevels = (ms->level == 0 && s) ? 1 : ms->level;  luaL_checkstack(ms->L, nlevels, "too many captures");  for (i = 0; i < nlevels; i++)    push_onecapture(ms, i, s, e);  return nlevels;  /* number of strings pushed */}static int str_find_aux (lua_State *L, int find) {  size_t l1, l2;  const char *s = luaL_checklstring(L, 1, &l1);  const char *p = luaL_checklstring(L, 2, &l2);  ptrdiff_t init = posrelat(luaL_optinteger(L, 3, 1), l1) - 1;  if (init < 0) init = 0;  else if ((size_t)(init) > l1) init = (ptrdiff_t)l1;  if (find && (lua_toboolean(L, 4) ||  /* explicit request? */      strpbrk(p, SPECIALS) == NULL)) {  /* or no special characters? */    /* do a plain search */    const char *s2 = lmemfind(s+init, l1-init, p, l2);    if (s2) {      lua_pushinteger(L, s2-s+1);      lua_pushinteger(L, s2-s+l2);      return 2;    }  }  else {    MatchState ms;    int anchor = (*p == '^') ? (p++, 1) : 0;    const char *s1=s+init;    ms.L = L;    ms.src_init = s;    ms.src_end = s+l1;    do {      const char *res;      ms.level = 0;      if ((res=match(&ms, s1, p)) != NULL) {        if (find) {          lua_pushinteger(L, s1-s+1);  /* start */          lua_pushinteger(L, res-s);   /* end */          return push_captures(&ms, NULL, 0) + 2;        }        else          return push_captures(&ms, s1, res);      }    } while (s1++ < ms.src_end && !anchor);  }  lua_pushnil(L);  /* not found */  return 1;}static int str_find (lua_State *L) {  return str_find_aux(L, 1);}static int str_match (lua_State *L) {  return str_find_aux(L, 0);}static int gmatch_aux (lua_State *L) {  MatchState ms;  size_t ls;  const char *s = lua_tolstring(L, lua_upvalueindex(1), &ls);  const char *p = lua_tostring(L, lua_upvalueindex(2));  const char *src;  ms.L = L;  ms.src_init = s;  ms.src_end = s+ls;  for (src = s + (size_t)lua_tointeger(L, lua_upvalueindex(3));       src <= ms.src_end;       src++) {    const char *e;    ms.level = 0;    if ((e = match(&ms, src, p)) != NULL) {      lua_Integer newstart = e-s;      if (e == src) newstart++;  /* empty match? go at least one position */      lua_pushinteger(L, newstart);      lua_replace(L, lua_upvalueindex(3));      return push_captures(&ms, src, e);    }  }  return 0;  /* not found */}static int gmatch (lua_State *L) {  luaL_checkstring(L, 1);  luaL_checkstring(L, 2);  lua_settop(L, 2);  lua_pushinteger(L, 0);  lua_pushcclosure(L, gmatch_aux, 3);  return 1;}static int gfind_nodef (lua_State *L) {  return luaL_error(L, LUA_QL("string.gfind") " was renamed to "                       LUA_QL("string.gmatch"));}static void add_s (MatchState *ms, luaL_Buffer *b, const char *s,                                                   const char *e) {  size_t l, i;  const char *news = lua_tolstring(ms->L, 3, &l);  for (i = 0; i < l; i++) {    if (news[i] != L_ESC)      luaL_addchar(b, news[i]);    else {      i++;  /* skip ESC */      if (!isdigit(uchar(news[i])))        luaL_addchar(b, news[i]);      else if (news[i] == '0')          luaL_addlstring(b, s, e - s);      else {        push_onecapture(ms, news[i] - '1', s, e);        luaL_addvalue(b);  /* add capture to accumulated result */      }    }  }}static void add_value (MatchState *ms, luaL_Buffer *b, const char *s,                                                       const char *e) {  lua_State *L = ms->L;  switch (lua_type(L, 3)) {    case LUA_TNUMBER:    case LUA_TSTRING: {      add_s(ms, b, s, e);      return;    }    case LUA_TFUNCTION: {      int n;      lua_pushvalue(L, 3);      n = push_captures(ms, s, e);      lua_call(L, n, 1);      break;    }    case LUA_TTABLE: {      push_onecapture(ms, 0, s, e);      lua_gettable(L, 3);      break;    }    default: {      luaL_argerror(L, 3, "string/function/table expected");       return;    }  }  if (!lua_toboolean(L, -1)) {  /* nil or false? */    lua_pop(L, 1);    lua_pushlstring(L, s, e - s);  /* keep original text */  }  else if (!lua_isstring(L, -1))    luaL_error(L, "invalid replacement value (a %s)", luaL_typename(L, -1));   luaL_addvalue(b);  /* add result to accumulator */}static int str_gsub (lua_State *L) {  size_t srcl;  const char *src = luaL_checklstring(L, 1, &srcl);  const char *p = luaL_checkstring(L, 2);  int max_s = luaL_optint(L, 4, srcl+1);  int anchor = (*p == '^') ? (p++, 1) : 0;  int n = 0;  MatchState ms;  luaL_Buffer b;  luaL_buffinit(L, &b);  ms.L = L;  ms.src_init = src;  ms.src_end = src+srcl;  while (n < max_s) {    const char *e;    ms.level = 0;    e = match(&ms, src, p);    if (e) {      n++;      add_value(&ms, &b, src, e);    }    if (e && e>src) /* non empty match? */      src = e;  /* skip it */    else if (src < ms.src_end)      luaL_addchar(&b, *src++);    else break;    if (anchor) break;  }  luaL_addlstring(&b, src, ms.src_end-src);  luaL_pushresult(&b);  lua_pushinteger(L, n);  /* number of substitutions */  return 2;}/* }====================================================== *//* maximum size of each formatted item (> len(format('%99.99f', -1e308))) */#define MAX_ITEM	512/* valid flags in a format specification */#define FLAGS	"-+ #0"/*** maximum size of each format specification (such as '%-099.99d')** (+10 accounts for %99.99x plus margin of error)*/#define MAX_FORMAT	(sizeof(FLAGS) + sizeof(LUA_INTFRMLEN) + 10)static void addquoted (lua_State *L, luaL_Buffer *b, int arg) {  size_t l;  const char *s = luaL_checklstring(L, arg, &l);  luaL_addchar(b, '"');  while (l--) {    switch (*s) {      case '"': case '\\': case '\n': {        luaL_addchar(b, '\\');        luaL_addchar(b, *s);        break;      }      case '\0': {        luaL_addlstring(b, "\\000", 4);        break;      }      default: {        luaL_addchar(b, *s);        break;      }    }    s++;  }  luaL_addchar(b, '"');}static const char *scanformat (lua_State *L, const char *strfrmt, char *form) {  const char *p = strfrmt;  while (strchr(FLAGS, *p)) p++;  /* skip flags */  if ((size_t)(p - strfrmt) >= sizeof(FLAGS))    luaL_error(L, "invalid format (repeated flags)");  if (isdigit(uchar(*p))) p++;  /* skip width */  if (isdigit(uchar(*p))) p++;  /* (2 digits at most) */  if (*p == '.') {    p++;    if (isdigit(uchar(*p))) p++;  /* skip precision */    if (isdigit(uchar(*p))) p++;  /* (2 digits at most) */  }  if (isdigit(uchar(*p)))    luaL_error(L, "invalid format (width or precision too long)");  *(form++) = '%';  strncpy(form, strfrmt, p - strfrmt + 1);  form += p - strfrmt + 1;  *form = '\0';  return p;}static void addintlen (char *form) {  size_t l = strlen(form);  char spec = form[l - 1];  strcpy(form + l - 1, LUA_INTFRMLEN);  form[l + sizeof(LUA_INTFRMLEN) - 2] = spec;  form[l + sizeof(LUA_INTFRMLEN) - 1] = '\0';}static int str_format (lua_State *L) {  int arg = 1;  size_t sfl;  const char *strfrmt = luaL_checklstring(L, arg, &sfl);  const char *strfrmt_end = strfrmt+sfl;  luaL_Buffer b;  luaL_buffinit(L, &b);  while (strfrmt < strfrmt_end) {    if (*strfrmt != L_ESC)      luaL_addchar(&b, *strfrmt++);    else if (*++strfrmt == L_ESC)      luaL_addchar(&b, *strfrmt++);  /* %% */    else { /* format item */      char form[MAX_FORMAT];  /* to store the format (`%...') */      char buff[MAX_ITEM];  /* to store the formatted item */      arg++;      strfrmt = scanformat(L, strfrmt, form);      switch (*strfrmt++) {        case 'c': {          sprintf(buff, form, (int)luaL_checknumber(L, arg));          break;        }        case 'd':  case 'i': {          addintlen(form);          sprintf(buff, form, (LUA_INTFRM_T)luaL_checknumber(L, arg));          break;        }        case 'o':  case 'u':  case 'x':  case 'X': {          addintlen(form);          sprintf(buff, form, (unsigned LUA_INTFRM_T)luaL_checknumber(L, arg));          break;        }        case 'e':  case 'E': case 'f':        case 'g': case 'G': {          sprintf(buff, form, (double)luaL_checknumber(L, arg));          break;        }        case 'q': {          addquoted(L, &b, arg);          continue;  /* skip the 'addsize' at the end */        }        case 's': {          size_t l;          const char *s = luaL_checklstring(L, arg, &l);          if (!strchr(form, '.') && l >= 100) {            /* no precision and string is too long to be formatted;               keep original string */            lua_pushvalue(L, arg);            luaL_addvalue(&b);            continue;  /* skip the `addsize' at the end */          }          else {            sprintf(buff, form, s);            break;          }        }        default: {  /* also treat cases `pnLlh' */          return luaL_error(L, "invalid option to " LUA_QL("format"));        }      }      luaL_addlstring(&b, buff, strlen(buff));    }  }  luaL_pushresult(&b);  return 1;}static const luaL_Reg strlib[] = {  {"byte", str_byte},  {"char", str_char},  {"dump", str_dump},  {"find", str_find},  {"format", str_format},  {"gfind", gfind_nodef},  {"gmatch", gmatch},  {"gsub", str_gsub},  {"len", str_len},  {"lower", str_lower},  {"match", str_match},  {"rep", str_rep},  {"reverse", str_reverse},  {"sub", str_sub},  {"upper", str_upper},  {NULL, NULL}};static void createmetatable (lua_State *L) {  lua_createtable(L, 0, 1);  /* create metatable for strings */  lua_pushliteral(L, "");  /* dummy string */  lua_pushvalue(L, -2);  lua_setmetatable(L, -2);  /* set string metatable */  lua_pop(L, 1);  /* pop dummy string */  lua_pushvalue(L, -2);  /* string library... */  lua_setfield(L, -2, "__index");  /* ...is the __index metamethod */  lua_pop(L, 1);  /* pop metatable */}/*** Open string library*/LUALIB_API int luaopen_string (lua_State *L) {  luaL_register(L, LUA_STRLIBNAME, strlib);#if defined(LUA_COMPAT_GFIND)  lua_getfield(L, -1, "gmatch");  lua_setfield(L, -2, "gfind");#endif  createmetatable(L);  return 1;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品美女久久久久高潮| 色噜噜久久综合| 不卡一区二区在线| 99re6这里只有精品视频在线观看| 色偷偷88欧美精品久久久| 欧美在线观看一区二区| 日韩一卡二卡三卡国产欧美| 久久久蜜臀国产一区二区| 亚洲视频免费在线观看| 日韩综合小视频| 国产精品99久| 欧洲一区二区av| 久久综合色天天久久综合图片| 最新高清无码专区| 男人操女人的视频在线观看欧美| 丰满放荡岳乱妇91ww| 欧美日韩高清一区二区| 久久精品一二三| 亚洲成人一区在线| 成人免费av资源| 91精品国产入口| 亚洲色图视频网站| 精品综合免费视频观看| 色屁屁一区二区| 久久精品一区八戒影视| 天堂午夜影视日韩欧美一区二区| 福利一区福利二区| 69堂成人精品免费视频| 中文字幕在线免费不卡| 久久aⅴ国产欧美74aaa| 欧美视频一区在线观看| 国产蜜臀av在线一区二区三区| 三级影片在线观看欧美日韩一区二区| 国产成人精品综合在线观看 | 午夜欧美电影在线观看| 国产黄色精品网站| 日韩欧美精品在线视频| 亚洲午夜一二三区视频| 成人爽a毛片一区二区免费| 欧美一级久久久久久久大片| 伊人夜夜躁av伊人久久| 婷婷六月综合网| 欧美日韩色综合| 中文字幕中文字幕中文字幕亚洲无线 | 欧美性猛交一区二区三区精品| 久久久噜噜噜久噜久久综合| 天天操天天干天天综合网| 色婷婷激情一区二区三区| 国产三区在线成人av| 久久激情五月激情| 欧美日韩国产一级| 亚洲夂夂婷婷色拍ww47| 99视频在线观看一区三区| 久久久精品日韩欧美| 蜜桃av一区二区| 在线电影一区二区三区| 亚洲国产wwwccc36天堂| 色成年激情久久综合| 亚洲欧洲国产日本综合| 懂色av一区二区三区免费看| 久久无码av三级| 老鸭窝一区二区久久精品| 91精品国产综合久久久久久久| 亚洲妇熟xx妇色黄| 在线免费观看不卡av| 亚洲精品久久久蜜桃| a在线播放不卡| 中文字幕中文字幕一区| 不卡欧美aaaaa| 国产精品青草综合久久久久99| 国产黄色精品网站| 亚洲国产高清aⅴ视频| 国产成人精品三级| 国产欧美精品区一区二区三区 | 久久久精品国产免大香伊| 精品亚洲国产成人av制服丝袜| 欧美电影免费观看高清完整版| 蜜桃精品视频在线| 日韩欧美国产一区二区三区| 麻豆成人久久精品二区三区红| 91精品福利在线一区二区三区 | 日韩精品在线网站| 日本不卡一二三区黄网| 精品日韩欧美在线| 麻豆精品视频在线观看免费| 日韩精品一区国产麻豆| 国产成人在线视频网站| 综合久久综合久久| 欧美日韩日日摸| 美美哒免费高清在线观看视频一区二区 | 国产精品99精品久久免费| 中文字幕第一区二区| 99re视频精品| 亚洲国产综合91精品麻豆| 91麻豆精品国产自产在线| 免费日本视频一区| 久久久久久日产精品| 国产精品亚洲成人| 最新不卡av在线| 欧美精品乱人伦久久久久久| 久久99国产精品尤物| 国产人伦精品一区二区| 91麻豆成人久久精品二区三区| 亚洲午夜电影网| 精品国产区一区| proumb性欧美在线观看| 亚洲一区二区三区四区五区中文| 欧美一区二区啪啪| 国产成人综合在线| 一区二区三区视频在线观看| 日韩一区二区三区四区| 国产一区二区调教| 亚洲免费观看高清| 欧美va亚洲va香蕉在线| 不卡一区二区三区四区| 亚洲电影在线免费观看| 亚洲精品在线观看视频| 91麻豆精品秘密| 麻豆精品在线播放| 亚洲人妖av一区二区| 制服.丝袜.亚洲.中文.综合| 国产成人亚洲综合a∨婷婷| 一区二区在线观看视频| 精品88久久久久88久久久| 色av综合在线| 国产一区二区影院| 亚洲成a天堂v人片| 中文字幕va一区二区三区| 欧美日韩高清不卡| 高清免费成人av| 蜜桃视频一区二区| 一区二区三区波多野结衣在线观看 | 亚洲日本丝袜连裤袜办公室| 日韩欧美一区二区久久婷婷| 91美女视频网站| 国内精品伊人久久久久av一坑 | 欧美性生交片4| 国产精品伊人色| 奇米影视在线99精品| 亚洲欧美一区二区三区国产精品 | 国产夫妻精品视频| 日本欧美一区二区在线观看| 自拍偷拍欧美激情| 亚洲精品一区二区三区四区高清| 欧洲视频一区二区| 成人午夜激情片| 久久69国产一区二区蜜臀| 亚洲国产综合视频在线观看| 中文字幕在线播放不卡一区| 亚洲精品在线网站| 91精品国产欧美日韩| 色综合久久99| 福利电影一区二区| 精品一区二区久久| 视频精品一区二区| 亚洲成a天堂v人片| 亚洲伦在线观看| 国产精品免费丝袜| 久久精品综合网| 精品国产免费人成电影在线观看四季 | 欧美激情自拍偷拍| 精品欧美一区二区久久| 欧美精品久久天天躁| 色网综合在线观看| 91视视频在线观看入口直接观看www | 欧美日韩三级一区二区| 91福利视频网站| 色婷婷精品大视频在线蜜桃视频 | 亚洲一二三四区| 亚洲欧美激情一区二区| 国产精品卡一卡二| 国产精品美女久久久久久久网站| 精品国产一二三| 精品国产电影一区二区| 日韩欧美国产精品一区| 日韩一区二区三区视频在线| 91精品一区二区三区在线观看| 欧美日韩亚洲综合一区| 欧美系列在线观看| 欧美在线三级电影| 欧美日韩精品电影| 欧美电影一区二区| 欧美人与z0zoxxxx视频| 欧美久久高跟鞋激| 91精选在线观看| 欧美一级日韩免费不卡| 欧美一区二区播放| 日韩精品一区二区三区swag| 精品欧美久久久| 国产亚洲一区二区在线观看| 国产人成亚洲第一网站在线播放| 久久久精品综合| 国产精品久久久久影院| 亚洲欧洲综合另类| 一区二区三区高清| 亚洲3atv精品一区二区三区| 婷婷国产v国产偷v亚洲高清| 日日夜夜精品视频免费| 狠狠色丁香婷婷综合| 粉嫩嫩av羞羞动漫久久久|