SetSeq1 sets the first sequence to be compared. The second sequence to be compared is not changed. SequenceMatcher computes and caches detailed information about the second sequence, so if you want to compare one sequence S against many sequences, use .SetSeq2(s) once and call .SetSeq1(x) repeatedl
(a [][]byte)
| 213 | // |
| 214 | // See also SetSeqs() and SetSeq2(). |
| 215 | func (m *SequenceMatcher) SetSeq1(a [][]byte) { |
| 216 | if &a == &m.a { |
| 217 | return |
| 218 | } |
| 219 | m.a = a |
| 220 | m.matchingBlocks = nil |
| 221 | m.opCodes = nil |
| 222 | } |
| 223 | |
| 224 | // SetSeq2 sets the second sequence to be compared. The first sequence to be compared is |
| 225 | // not changed. |
no outgoing calls
no test coverage detected