System.StrUtils.StartsText

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

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

C++

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

プロパティ

種類 可視性 ソース ユニット
function public
System.StrUtils.pas
System.StrUtils.hpp
System.StrUtils System.StrUtils

説明

StartsText は、文字列 AText が部分文字列 ASubText で始まるかどうかを判断します。その際、大文字小文字を区別しないアルゴリズムが使用されます。ASubText が AText の先頭に一致する場合は true、それ以外の場合は false が返ります。

大文字小文字を区別して比較する場合は、StartsStr ルーチンを使用します。

関連項目