Lines Matching defs:init
229 const char *src_init; /* init of source string */
235 const char *init;
408 ms->capture[level].init = s;
421 ms->capture[l].len = s - ms->capture[l].init; /* close capture */
433 memcmp(ms->capture[l].init, s, len) == 0)
442 init: /* using goto's to optimize tail recursion */
467 p += 4; goto init; /* return match(ms, s, p + 4); */
481 p = ep; goto init; /* return match(ms, s, ep); */
491 p += 2; goto init; /* return match(ms, s, p + 2) */
504 p = ep + 1; goto init; /* return match(ms, s, ep + 1); */
516 p = ep + 1; goto init; /* else return match(ms, s, ep + 1); */
530 s++; p = ep; goto init; /* return match(ms, s + 1, ep); */
548 const char *init; /* to search for a `*s2' inside `s1' */
551 while (l1 > 0 && (init = (const char *)memchr(s1, *s2, l1)) != NULL) {
552 init++; /* 1st char is already checked */
553 if (memcmp(init, s2+1, l2) == 0)
554 return init-1;
556 l1 -= init-s1;
557 s1 = init;
577 lua_pushinteger(ms->L, ms->capture[i].init - ms->src_init + 1);
579 lua_pushlstring(ms->L, ms->capture[i].init, l);
610 size_t init = posrelat(luaL_optinteger(L, 3, 1), ls);
611 if (init < 1) init = 1;
612 else if (init > ls + 1) { /* start after string's end? */
619 const char *s2 = lmemfind(s + init - 1, ls - init + 1, p, lp);
628 const char *s1 = s + init - 1;