Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

AnsiCompareFileName

Compare 2 filenames.

Declaration

Source position: sysansih.inc line 15

function AnsiCompareFileName(

  const S1: string;

  const S2: string

):SizeInt;

Description

AnsiCompareFileName compares 2 filenames S1 and S2, and returns

< 0
if S1<S2.
= 0
if S1=S2.
> 0
if S1>S2.

The function actually checks FileNameCaseSensitive and returns the result of AnsiCompareStr or AnsiCompareText depending on whether FileNameCaseSensitive is True or False

Errors

None.

See also

AnsiCompareStr

  

Compare 2 ansistrings, case sensitive, using locale settings.

AnsiCompareText

  

Compare 2 ansistrings, case insensitive, using locale settings.

AnsiLowerCaseFileName

  

Convert filename to lowercase.


Documentation generated on: Nov 23 2024