Example Program
Exact Searching
Exact string matching.
File "find_exact.cpp"
A tutorial about the use of exact find algorithms.
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 |
This function prints the positions of all occurrences of needle within haystack .
It uses the algorithm specified by TAlgorithm that is passed as a Specialization to Pattern.
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 |
The main function calls printAllOccs for different exact string matching algorithms.
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 |
SeqAn - Sequence Analysis Library - www.seqan.de