System.AnsiStrings.AnsiCompareFileName

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

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

C++

extern DELPHI_PACKAGE int __fastcall AnsiCompareFileName(const System::AnsiString S1, const System::AnsiString S2);

Properties

Type Visibility Source Unit Parent
function public
System.AnsiStrings.pas
System.AnsiStrings.hpp
System.AnsiStrings System.AnsiStrings

Description

Compares file names.

AnsiCompareFileName compares file names.

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

On MAC OS, AnsiCompareFileName is identical to AnsiCompareStr (case-sensitive).

Note: AnsiCompareFileName supports DOS file name comparison idiosyncrasies in Far East locales (Zenkaku) on Windows.

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

See Also