(L *LState)
| 390 | } |
| 391 | |
| 392 | func strRep(L *LState) int { |
| 393 | str := L.CheckString(1) |
| 394 | n := L.CheckInt(2) |
| 395 | if n < 0 { |
| 396 | L.Push(emptyLString) |
| 397 | } else { |
| 398 | L.Push(LString(strings.Repeat(str, n))) |
| 399 | } |
| 400 | return 1 |
| 401 | } |
| 402 | |
| 403 | func strReverse(L *LState) int { |
| 404 | str := L.CheckString(1) |
nothing calls this directly
no test coverage detected
searching dependent graphs…