pub fn gmatch(state: &mut LuaState) -> Result<usize, LuaError>Expand description
string.gmatch(s, pattern [, init]) — return an iterator for all matches.
PORT NOTE: C uses lua_newuserdatauv for the GMatchState plus a 3-upvalue
C closure. The port keeps the iterator state in a 4-element Lua table held
in a single upvalue (see gmatch_aux) so the matcher can update all fields
through the existing table mutation path.