RAD Studio VCL Reference
AnsiStrings.AnsiCompareFileName Function

Compare file names.

function AnsiCompareFileName(const S1: AnsiString; const S2: AnsiString): Integer;
int AnsiCompareFileName(const AnsiString S1, const AnsiString S2);

AnsiCompareFileName compares file names, supporting DOS file name comparison idiosyncrasies in Far East locales (Zenkaku) on Windows.  

In non-MBCS (Multi-Byte Character Set) locales on Windows, AnsiCompareFileName is identical to AnsiCompareText (case insensitive).  

On Linux, AnsiCompareFileName is identical to AnsiCompareStr (case sensitive).  

For general purpose file name comparisons, you should use this function instead of AnsiCompareText


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!