Lines Matching refs:l1
444 static const char *lmemfind (const char *s1, size_t l1, in lmemfind() argument
447 else if (l2 > l1) return NULL; /* avoids a negative `l1' */ in lmemfind()
451 l1 = l1-l2; /* `s2' cannot be found after that */ in lmemfind()
452 while (l1 > 0 && (init = (const char *)memchr(s1, *s2, l1)) != NULL) { in lmemfind()
457 l1 -= init-s1; in lmemfind()
496 size_t l1, l2; in str_find_aux() local
497 const char *s = luaL_checklstring(L, 1, &l1); in str_find_aux()
499 ptrdiff_t init = posrelat(luaL_optinteger(L, 3, 1), l1) - 1; 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()
518 ms.src_end = s+l1; in str_find_aux()