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

TStringListUTF8.DoCompareText

Compares UTF-8-encoded lines in the string list.

Declaration

Source position: lazutf8classes.pas line 28

protected function TStringListUTF8.DoCompareText(

  const s1: string;

  const s2: string

):PtrInt; override;

Arguments

s1

  

First string value for the comparison.

s2

  

Second string value for the comparison.

Function result

Value from the string comparison.

Description

DoCompareText is PtrInt function used to compare the specified values using UTF-8 string comparison routines. DoCompareText uses the value in CaseSensitive to determine the routine used for the comparison. When CaseSensitive contains True, the UTF8CompareStr is used. Otherwise, UTF8CompareText is called. The return value contains the result from the routine.