lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> (2) Is s:find("b") as efficient as s:find("b", 1, true) ?
> (4) Can s:find("b") be considered "on par" with executing strstr(s, "b") in C?

Yes. See https://www.lua.org/source/5.3/lstrlib.c.html#str_find_aux :

	  /* explicit request or no special characters? */
	      /* do a plain search */