FindMatchesBoyerMooreCaseSensitive function
Find case-sensitive matches of a string using a Boyer-Moore algorithm.
Declaration
function FindMatchesBoyerMooreCaseSensitive(const S: PAnsiChar;
const OldPattern: PAnsiChar;
const SSize: SizeInt;
const OldPatternSize: SizeInt;
out aMatches: SizeIntArray;
const aMatchAll: Boolean)
: BooleanDescription
FindMatchesBoyerMooreCaseSensitive finds occurrences of
OldPattern
(with length
OldPatternSize) in
S (with length
SSize).
The search is performed case-sensitively, and all (zero based) positions are
reported in
aMatches. If
aMatchAll is
True,
all positions will be reported. If
aMatchAll is
False,
only the first position is reported.Errors
None.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
