(s string)
| 1448 | } |
| 1449 | |
| 1450 | func catchCaret(s string) (string, int, int) { |
| 1451 | line := 1 |
| 1452 | column := 0 |
| 1453 | for i, c := range s { |
| 1454 | switch c { |
| 1455 | case '|': |
| 1456 | return s[:i] + s[i+1:], line, column |
| 1457 | case '\n': |
| 1458 | line++ |
| 1459 | column = 0 |
| 1460 | default: |
| 1461 | column++ |
| 1462 | } |
| 1463 | } |
| 1464 | return s, -1, -1 |
| 1465 | } |
| 1466 | |
| 1467 | func catchCaretUTF16(s string) (string, int, int) { |
| 1468 | line := 1 |
no outgoing calls
no test coverage detected