SetSeq2 sets the second sequence to be compared. The first sequence to be compared is not changed.
(b [][]byte)
| 224 | // SetSeq2 sets the second sequence to be compared. The first sequence to be compared is |
| 225 | // not changed. |
| 226 | func (m *SequenceMatcher) SetSeq2(b [][]byte) { |
| 227 | if &b == &m.b { |
| 228 | return |
| 229 | } |
| 230 | m.b = b |
| 231 | m.matchingBlocks = nil |
| 232 | m.opCodes = nil |
| 233 | m.fullBCount = nil |
| 234 | m.chainB() |
| 235 | } |
| 236 | |
| 237 | func (m *SequenceMatcher) chainB() { |
| 238 | // Populate line -> index mapping |
no test coverage detected