I have to compare a partial string “SKILL_______EU_______WAND_______CLERIC_______BASE_____01” with “SKILL”.It’s meant to check if the first four characters are “SKILL”.or the first character only,optimization is needed here!
My problems:
- I don’t know how to do an optimized comparison.
- It has to be repeated 35 000 times so it must be something very
fast.
Thanks!
Use StrUtils.AnsiStartsStr for case-sensitive, StrUtils.AnsiStartsText for case-insensitive
(add StrUtils to your uses clause)