[Overview][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'LazUTF8' (#lazutils)

UTF8CompareTextP

Performs a case-insensitive comparision for the specified UTF-8-encoded PChar values.

Declaration

Source position: lazutf8.pas line 178

function UTF8CompareTextP(

  S1: PChar;

  S2: PChar

):PtrInt;

Arguments

S1

  

PChar with the values used in the comparison.

S2

  

PChar with the values used in the comparison.

Function result

Integer result for the case-insensitive comparison.

Description

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:


Version 3.2 Generated 2024-02-25 Home