Show: Delphi C++
Display Preferences

System.AnsiStrings.AnsiCompareFileName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

Personal tools
In Other Languages
Previous Versions
Assistance