Vcl.Menus.AnsiSameCaption
Delphi
function AnsiSameCaption(const Text1, Text2: string): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall AnsiSameCaption(const System::UnicodeString Text1, const System::UnicodeString Text2);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Menus.pas Vcl.Menus.hpp |
Vcl.Menus | Vcl.Menus |
Description
Indicates whether two strings are the same based on the current locale, ignoring case information and accelerator characters.
AnsiSameCaption compares Text1
to Text2
, without case sensitivity and ignoring any ampersands (&) that are included to create accelerator characters. The compare operation is controlled by the current locale. The return value is True if the two strings have the same value, False otherwise.