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

CompareFilenameStarts

Compares file names using the number characters in common.

Declaration

Source position: lazfileutils.pas line 31

function CompareFilenameStarts(

  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 compared values.

Description

CompareFilenameStarts is an Integer function used to compare the specified file names to determine their relative sort order. Arguments in Filename1 and Filename2 do not need to be the same length. When they have different lengths, the number of characters common to both are used in the comparison. CompareFilenameStarts calls CompareFileNames to perform the comparison, and get the return value for the function.

See CompareFilenames for more information about the numeric return value and its meaning.

See also

CompareFileNames

  

Gets the relative sort order for the specified file names.


Version 3.2 Generated 2024-02-25 Home