UTF8CompareTextP function
Performs a case-insensitive comparision for the specified UTF-8-encoded PChar values.
Declaration
function UTF8CompareTextP(S1: PChar; S2: PChar): PtrIntDescription
Converts values in S1 and S2 to UTF-16 encoding, and calls WideCompareText to get the return value for the case-insensitive comparison. The return value contains the relative difference between the compared values. For instance:
- <0 when S1<S2.
- 0 when S1=S2.
- >0 when S1>S2.
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
