Lines Matching refs:init
229 const char *init; member
409 ms->capture[level].init = s; in start_capture()
422 ms->capture[l].len = s - ms->capture[l].init; /* close capture */ in end_capture()
434 memcmp(ms->capture[l].init, s, len) == 0) in match_capture()
443 init: /* using goto's to optimize tail recursion */ in match()
468 p += 4; goto init; /* return match(ms, s, p + 4); */ in match()
482 p = ep; goto init; /* return match(ms, s, ep); */ in match()
492 p += 2; goto init; /* return match(ms, s, p + 2) */ in match()
505 p = ep + 1; goto init; /* return match(ms, s, ep + 1); */ in match()
517 p = ep + 1; goto init; /* else return match(ms, s, ep + 1); */ in match()
531 s++; p = ep; goto init; /* return match(ms, s + 1, ep); */ in match()
549 const char *init; /* to search for a `*s2' inside `s1' */ in lmemfind() local
552 while (l1 > 0 && (init = (const char *)memchr(s1, *s2, l1)) != NULL) { in lmemfind()
553 init++; /* 1st char is already checked */ in lmemfind()
554 if (memcmp(init, s2+1, l2) == 0) in lmemfind()
555 return init-1; in lmemfind()
557 l1 -= init-s1; in lmemfind()
558 s1 = init; in lmemfind()
578 lua_pushinteger(ms->L, ms->capture[i].init - ms->src_init + 1); in push_onecapture()
580 lua_pushlstring(ms->L, ms->capture[i].init, l); in push_onecapture()
611 size_t init = posrelat(luaL_optinteger(L, 3, 1), ls); in str_find_aux() local
612 if (init < 1) init = 1; in str_find_aux()
613 else if (init > ls + 1) { /* start after string's end? */ in str_find_aux()
620 const char *s2 = lmemfind(s + init - 1, ls - init + 1, p, lp); in str_find_aux()
629 const char *s1 = s + init - 1; in str_find_aux()