CompareFilenamesIgnoreCase function
Gets the relative sort order for case-insensitive file names.
Declaration
function CompareFilenamesIgnoreCase(const Filename1: string;
const Filename2: string): IntegerArguments
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
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
