Bart, I agree.
With what?
You agree I should feel emabarressed?
You agree UtfCompare* should move towards WideCompare* w.r.g. the sign of the result?
I just did some testing.
Converting to WideString and then doing WideCompare* is 35-40 times slower in the case of *CompareStr and appr 2 times slower in the case of *ComaperText.
The bottleneck here being the conversion to WideString (where Utf8ToUtf16 seems to be 2 times faster than Utf8Decode b.t.w.).
(Notice that by itself WideCompareStr (called with 2 "static" widestrings) is already 4.5 times slower than Utf8CompareStr.)
People will start complaining about speed.
Testing 1 million compares
Utf8ComapareStr: 140 ticks (GetTickCount64)
Covert to Widestring then WideCompareStr: 5522 ticks
Ratio: 39.4
Bart