(L *LState)
| 325 | } |
| 326 | |
| 327 | func strGmatch(L *LState) int { |
| 328 | str := L.CheckString(1) |
| 329 | pattern := L.CheckString(2) |
| 330 | mds, err := pm.Find(pattern, []byte(str), 0, -1) |
| 331 | if err != nil { |
| 332 | L.RaiseError(err.Error()) |
| 333 | } |
| 334 | L.Push(L.Get(UpvalueIndex(1))) |
| 335 | ud := L.NewUserData() |
| 336 | ud.Value = &strMatchData{str, 0, mds} |
| 337 | L.Push(ud) |
| 338 | return 2 |
| 339 | } |
| 340 | |
| 341 | func strLen(L *LState) int { |
| 342 | str := L.CheckString(1) |
nothing calls this directly
no test coverage detected
searching dependent graphs…