[Overview][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 35

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.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.