(L *LState)
| 412 | } |
| 413 | |
| 414 | func strSub(L *LState) int { |
| 415 | str := L.CheckString(1) |
| 416 | start := luaIndex2StringIndex(str, L.CheckInt(2), true) |
| 417 | end := luaIndex2StringIndex(str, L.OptInt(3, -1), false) |
| 418 | l := len(str) |
| 419 | if start >= l || end < start { |
| 420 | L.Push(emptyLString) |
| 421 | } else { |
| 422 | L.Push(LString(str[start:end])) |
| 423 | } |
| 424 | return 1 |
| 425 | } |
| 426 | |
| 427 | func strUpper(L *LState) int { |
| 428 | str := L.CheckString(1) |
nothing calls this directly
no test coverage detected
searching dependent graphs…