[Overview][Resource strings][Constants][Types][Procedures and functions][Index] |
Algorithm to use in StringReplace
Source position: strutils.pp line 269
type TStringReplaceAlgorithm = ( |
||
sraDefault, |
|
Use the sysutils algorithm, which does a straightforward linear search and replace |
sraManySmall, |
|
Use an approach which is suitable for a string with many occurrences of the same small text |
sraBoyerMoore |
|
Use a Boyer-Moore search algorithm |
); |
TStringReplaceAlgorithm enumerates the available algorithms to StringReplace
Depending on the kind of data that is being treated, one or the other of these algorithms may produce faster results.
|
Optimized search-and-replace algorithm |