Lines Matching refs:init
176 const char *init; member
334 ms->capture[level].init = s; in start_capture()
347 ms->capture[l].len = s - ms->capture[l].init; /* close capture */ in end_capture()
359 memcmp(ms->capture[l].init, s, len) == 0) in match_capture()
366 init: /* using goto's to optimize tail recursion */ in match()
382 p+=4; goto init; /* else return match(ms, s, p+4); */ in match()
394 p=ep; goto init; /* else return match(ms, s, ep); */ in match()
400 p+=2; goto init; /* else return match(ms, s, p+2) */ in match()
422 p=ep+1; goto init; /* else return match(ms, s, ep+1); */ in match()
435 s++; p=ep; goto init; /* else return match(ms, s+1, ep); */ in match()
449 const char *init; /* to search for a `*s2' inside `s1' */ in lmemfind() local
452 while (l1 > 0 && (init = (const char *)memchr(s1, *s2, l1)) != NULL) { in lmemfind()
453 init++; /* 1st char is already checked */ in lmemfind()
454 if (memcmp(init, s2+1, l2) == 0) in lmemfind()
455 return init-1; in lmemfind()
457 l1 -= init-s1; in lmemfind()
458 s1 = init; in lmemfind()
478 lua_pushinteger(ms->L, ms->capture[i].init - ms->src_init + 1); in push_onecapture()
480 lua_pushlstring(ms->L, ms->capture[i].init, l); in push_onecapture()
499 ptrdiff_t init = posrelat(luaL_optinteger(L, 3, 1), l1) - 1; in str_find_aux() local
500 if (init < 0) init = 0; in str_find_aux()
501 else if ((size_t)(init) > l1) init = (ptrdiff_t)l1; in str_find_aux()
505 const char *s2 = lmemfind(s+init, l1-init, p, l2); in str_find_aux()
515 const char *s1=s+init; in str_find_aux()