10#include <alib/measure>
12#include <string/LinearString.h>
31 template <
class SymbolType >
36template <
class SymbolType >
50 while(
i + pattern.
getContent().size() <=
string.getContent().size() ) {
51 for ( j = 0; j < pattern.
getContent().size(); j++ )
52 if ( pattern.
getContent()[j] !=
string.getContent()[
i+j])
59 if (
i + pattern.
getContent().size() ==
string.getContent().size() ) {
63 i += bcs[
string.getContent()[
i+pattern.
getContent().size()]];
static bool verbose
Verbose flag. Some algorithms print additional runtime information about internal datastructures or t...
Definition: GlobalData.h:24
static ext::reference_wrapper< ext::ostream > log
Standard loging stream. Mapped to descriptor 4.
Definition: GlobalData.h:78
Class extending the map class from the standard library. Original reason is to allow printing of the ...
Definition: map.hpp:48
Linear string.
Definition: LinearString.h:57
const ext::vector< SymbolType > & getContent() const &
Definition: LinearString.h:238
static ext::map< SymbolType, size_t > qsbcs(const string::LinearString< SymbolType > &pattern)
Definition: QuickSearchBadCharacterShiftTable.h:32
Definition: QuickSearch.h:25
static ext::set< unsigned > match(const string::LinearString< SymbolType > &string, const string::LinearString< SymbolType > &pattern)
Definition: QuickSearch.h:37
int i
Definition: AllEpsilonClosure.h:118
void start(measurements::stealth_string name, measurements::Type type)
Definition: measurements.cpp:14
void end()
Definition: measurements.cpp:19
Definition: ArithmeticCompression.h:18