(source, keyword string, before int, after int)
| 378 | } |
| 379 | |
| 380 | func findKeywordBefore(source, keyword string, before int, after int) int { |
| 381 | if before > len(source) { |
| 382 | before = len(source) |
| 383 | } |
| 384 | if after < 0 { |
| 385 | after = 0 |
| 386 | } |
| 387 | return findKeywordOutsideSQL(source, keyword, after, before, true) |
| 388 | } |
| 389 | |
| 390 | func findKeywordAfter(source, keyword string, start int, end int) int { |
| 391 | if start < 0 { |
no test coverage detected