System.SysUtils.SameFileName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function SameFileName(const S1, S2: string): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall SameFileName(const System::UnicodeString S1, const System::UnicodeString S2)/* overload */;

Properties

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

Description

Compares file names based on the current locale.

SameFileName compares two file names in the same way as AnsiCompareFileName. SameFileName returns True if the file names match, False otherwise. Like AnsiCompareFileName, SameFileName supports locales and MBCS strings; see the AnsiCompareFileName topic for more details.

See Also