8#ifndef HPP_ALIB_STRINGS_UTIL_SUBSEARCH
9#define HPP_ALIB_STRINGS_UTIL_SUBSEARCH 1
13namespace alib {
namespace strings {
namespace util {
29template<
typename TChar, lang::Case TSensitivity= lang::Case::Sensitive>
104template<lang::Case TSensitivity>
108template<lang::Case TSensitivity>
112template<lang::Case TSensitivity>
ALIB_API ~TSubstringSearch()
Destructor.
integer * kmpTable
The Knuth-Morris-Pratt prefix length table.
TAString< TChar, lang::HeapAllocator > needle
The needle set Knuth-Morris-Pratt prefix length table.
integer kmpTableLength
Length of kmpTable.
TSubstringSearch(const TString< TChar > &pNeedle=nullptr)
ALIB_API integer Search(const TString< TChar > &haystack, integer startIdx=0)
ALIB_API void Compile(const TString< TChar > &needle)
lang::integer integer
Type alias in namespace alib.