Lines Matching defs:ls
766 const char *s, size_t ls, const char *p, size_t lp) {
770 ms->src_end = s + ls;
782 size_t ls, lp;
783 const char *s = luaL_checklstring(L, 1, &ls);
785 size_t init = posrelatI(luaL_optinteger(L, 3, 1), ls) - 1;
786 if (init > ls) { /* start after string's end? */
793 const char *s2 = lmemfind(s + init, ls - init, p, lp);
807 prepstate(&ms, L, s, ls, p, lp);
863 size_t ls, lp;
864 const char *s = luaL_checklstring(L, 1, &ls);
866 size_t init = posrelatI(luaL_optinteger(L, 3, 1), ls) - 1;
870 if (init > ls) /* start after string's end? */
871 init = ls + 1; /* avoid overflows in 's + init' */
872 prepstate(&gm->ms, L, s, ls, p, lp);