Check whether path starts with the sequence [first, last). */
| 271 | |
| 272 | /** Check whether path starts with the sequence [first, last). */ |
| 273 | static bool |
| 274 | startsWith( |
| 275 | ContigPath path, |
| 276 | bool rc, |
| 277 | ContigPath::const_iterator first, |
| 278 | ContigPath::const_iterator last) |
| 279 | { |
| 280 | if (rc) |
| 281 | reverseComplement(path.begin(), path.end()); |
| 282 | assert(*first == path.front()); |
| 283 | assert(first < last); |
| 284 | return unsigned(last - first) > path.size() ? false : equal(first, last, path.begin()); |
| 285 | } |
| 286 | |
| 287 | /** Check whether path starts with the sequence [first, last). */ |
| 288 | static unsigned |
no test coverage detected