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

CompareFilenamesIgnoreCase

Gets the relative sort order for case-insensitive file names.

Declaration

Source position: lazfileutils.pas line 30

function CompareFilenamesIgnoreCase(

  const Filename1: string;

  const Filename2: string

):Integer;

Arguments

Filename1

  

First file name for the comparison.

Filename2

  

Second file name for the comparison.

Function result

Relative sort order for the file names.

Description

CompareFilenamesIgnoreCase is an overloaded Integer function used to compare the specified file names to get their relative order in case-insensitive sorting operations. CompareFilenamesIgnoreCase provides alternate implementations which accept String or PChar values (and their lengths) as arguments. The implementations are platform- and/or OS-specific; they consider whether the file system is case sensitive, and when UTF-8 encoding is supported.

The return value indicates the relative order in a case-insensitive sort operation, and can contain the following values:

<0
Filename1 comes before Filename2
0
Filename1 and Filename2 to have the same value
>0
Filename1 comes after Filename2

See also

CompareFilenames

  

Gets the relative sort order for the specified file names.


Version 4.0 Generated 2025-05-03 Home