(pos, length int)
| 9 | ) |
| 10 | |
| 11 | func relativePosition(pos, length int) int { |
| 12 | if pos >= 0 { |
| 13 | return pos |
| 14 | } else if -pos > length { |
| 15 | return 0 |
| 16 | } |
| 17 | return length + pos + 1 |
| 18 | } |
| 19 | |
| 20 | func findHelper(l *State, isFind bool) int { |
| 21 | s, p := CheckString(l, 1), CheckString(l, 2) |
no outgoing calls
no test coverage detected