| 13711 | |
| 13712 | |
| 13713 | static ptrdiff_t posrelat (ptrdiff_t pos, size_t len) { |
| 13714 | /* relative string position: negative means back from end */ |
| 13715 | if (pos < 0) pos += (ptrdiff_t)len + 1; |
| 13716 | return (pos >= 0) ? pos : 0; |
| 13717 | } |
| 13718 | |
| 13719 | |
| 13720 | static int str_sub (lua_State *L) { |
no outgoing calls
no test coverage detected