Delphi - Differences between CompareStr and CompareString

I hope someone can shed some light on this for me: What are the differences in Delphi 2009 between the functions CompareStr(defined in SysUtils) and CompareString(from the Windows API)?

Both allow you to specify the language that will be used, is Windows just more "complete" due to the available comparison flags? Is it therefore faster than the other?

+5
source share
1 answer

CompareString uses local information, so things like ae and æ are treated as matches, and sorting is suitable for a geographic region.

CompareStr ('', loInvariantLocale) - . CompareStr ('', loUserLocale) CompareString , , , CompareString. , CompareString.

+6

All Articles