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

CompareStringListItemsUTF8LowerCase

Performs lowercase comparison of values in a string list

Declaration

Source position: lazutf8classes.pas line 52

function CompareStringListItemsUTF8LowerCase(

  List: TStringList;

  Index1: Integer;

  Index2: Integer

):Integer;

Arguments

List

  

String list with values for the comparison

Index1

  

Ordinal position for the first string value

Index2

  

Ordinal position for the second string value

Function result

Relative order for the compared values

Description

CompareStringListItemsUTF8LowerCase is an Integer function used to perform lowercase comparison of string values in a string list. List is the TStrings descendant with values for the comparison. Index1 and Index2 specify the ordinal positions in List for strings used in the comparison.

CompareStringListItemsUTF8LowerCase converts the string values to lowercase using UTF8LowerCase, and calls the CompareStr function to perform the comparison. The return value is in the following ranges:

String at Index1 comes before String at Index2
Strings have the same value
String at Index1 comes after String at Index2
The latest version of this document can be found at lazarus-ccr.sourceforge.net.