232 [[nodiscard]] std::vector< std::pair< std::size_t , std::size_t > >
237 [[nodiscard]] std::size_t
count( std::string_view T )
const;
245 [[nodiscard]] std::size_t
size(
void )
const {
return( f_P.size() ); }
248 [[nodiscard]]
bool filtered(
void )
const {
return( f_q > 0 ); }
260 std::size_t scan( std::string_view T , F && report )
const;
263 static constexpr std::size_t npos = std::string_view::npos;
268 void automaton( std::string_view T , std::size_t from , F && report )
const;
272 std::size_t shiftOr( std::string_view T , F && report )
const;
276 std::size_t shiftOr2( std::string_view T , F && report )
const;
281 std::size_t verify(
const unsigned char * T , std::size_t n , std::size_t s ,
288 std::size_t check(
const unsigned char * T , std::size_t n , std::size_t s ,
289 std::uint64_t mask ,
const unsigned char * C ,
292 std::vector< std::string > f_P;
294 std::size_t f_least = 0;
295 std::size_t f_longest = 0;
297 std::array< std::array< std::uint8_t , 16 > , 8 > f_lo{} , f_hi{};
298 std::array< std::vector< std::uint32_t > , 8 > f_bucket;
299 std::vector< std::uint64_t > f_head;
300 std::vector< std::uint64_t > f_mask;
302 std::vector< std::uint64_t > f_sh;
304 std::vector< std::uint64_t > f_sh2;
305 std::vector< std::uint32_t > f_first;
306 std::vector< std::uint32_t > f_next;
307 std::vector< std::uint64_t > f_key;
static constexpr std::size_t kFilter
the most patterns of the filter of shuffles, beyond which the shift-or filter searches
Definition MultiSearch.h:252
std::vector< std::pair< std::size_t, std::size_t > > findAll(std::string_view T) const
the occurrences of the patterns in , by increasing start and number