BloombergLP::bslstl::BoyerMooreHorspoolSearcher_GeneralImp::badCharacterSkip

Return the haystack advance for a mismatched rightmost character.

Synopsis

Declared in <bslstl_boyermoorehorspoolsearcher.h>

BoyerMooreHorspoolSearcher_GeneralImp<RNDACC_ITR_NEEDLE, HASH, EQUAL>::difference_type
badCharacterSkip(value_type const& value) const;

Description

Return the number of positions to advance the search in the haystack when the specified value is found in the rightmost position of the current (unsuccessful) match attempt.

Return Value

number of positions to advance the haystack search

Parameters

NameDescription
valuecharacter at the rightmost position of the failed match