SetSeq2 sets the second sequence to be compared. The first sequence to be compared is not changed.
(b []string)
| 134 | // SetSeq2 sets the second sequence to be compared. The first sequence to be compared is |
| 135 | // not changed. |
| 136 | func (m *SequenceMatcher) SetSeq2(b []string) { |
| 137 | if &b == &m.b { |
| 138 | return |
| 139 | } |
| 140 | m.b = b |
| 141 | m.matchingBlocks = nil |
| 142 | m.opCodes = nil |
| 143 | m.fullBCount = nil |
| 144 | m.chainB() |
| 145 | } |
| 146 | |
| 147 | func (m *SequenceMatcher) chainB() { |
| 148 | // Populate line -> index mapping |
no test coverage detected