System.StrUtils.AnsiStartsText

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

extern DELPHI_PACKAGE bool __fastcall AnsiStartsText(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

Indicates whether one string is a (case-insensitive) prefix of another.

AnsiStartsText returns true if the string specified by ASubText appears as the leading part of the string specified by AText. Comparison is performed case-insensitively and uses the current system locale.

See Also