(source string, start, end int, closeCh byte)
| 474 | } |
| 475 | |
| 476 | func skipQuotedSQL(source string, start, end int, closeCh byte) int { |
| 477 | i := start + 1 |
| 478 | for i < end { |
| 479 | if source[i] == closeCh { |
| 480 | if i+1 < end && source[i+1] == closeCh { |
| 481 | i += 2 |
| 482 | continue |
| 483 | } |
| 484 | return i + 1 |
| 485 | } |
| 486 | i++ |
| 487 | } |
| 488 | return end |
| 489 | } |
| 490 | |
| 491 | func skipLineComment(source string, start, end int) int { |
| 492 | for start < end && source[start] != '\n' { |
no outgoing calls
no test coverage detected