System.StrUtils.StartsStr

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function StartsStr(const ASubText, AText: string): Boolean;

C++

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

Properties

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

Description

Determines whether the substring ASubText begins the string AText using a case sensitive algorithm.

If ASubText matches the begining of AText, the result is True, otherwise it is False. For a case insensitive comparison, use the StartsText routine.

See Also