Show: Delphi C++
Display Preferences

System.AnsiStrings.AnsiStartsText

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AnsiStartsText(const ASubText, AText: AnsiString): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall AnsiStartsText(const System::AnsiString ASubText, const System::AnsiString AText)/* overload */;

Properties

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

Description

Test if leading part of text matches subtext without case-sensitivity.

AnsiStartsText returns true if the leading part of the given text matches the subtext with case-sensitivity and returns false otherwise. The compare operation is controlled by the current user locale.

Use AnsiStartsStr to make this test with case-sensitivity.

See Also

Personal tools
RAD Studio 10.2 Tokyo
In Other Languages
Previous Versions
Assistance