scanAngleDest reads a "<...>" destination beginning at the "<", returning the index just past the closing ">".
(src []byte, i, hi int)
| 627 | // scanAngleDest reads a "<...>" destination beginning at the "<", returning the |
| 628 | // index just past the closing ">". |
| 629 | func scanAngleDest(src []byte, i, hi int) (int, bool) { |
| 630 | i++ |
| 631 | for i < hi && src[i] != '>' && src[i] != '\n' { |
| 632 | if src[i] == '\\' && i+1 < hi { |
| 633 | i++ |
| 634 | } |
| 635 | i++ |
| 636 | } |
| 637 | if i >= hi || src[i] != '>' { |
| 638 | return 0, false |
| 639 | } |
| 640 | return i + 1, true |
| 641 | } |
| 642 | |
| 643 | // linkReferenceDestination finds the destination in a link reference |
| 644 | // definition, as the "./f.png" of [ref]: ./f.png "a title", so that rewriting |
no outgoing calls
no test coverage detected