System.StrUtils.AnsiMidStr
Delphi
function AnsiMidStr(const AText: string; const AStart, ACount: Integer): string;
C++
extern DELPHI_PACKAGE System::UnicodeString __fastcall AnsiMidStr(const System::UnicodeString AText, const int AStart, const int ACount)/* overload */;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.StrUtils.pas System.StrUtils.hpp |
System.StrUtils | System.StrUtils |
説明
文字列内の指定された部分に表示される,指定された長さの部分文字列を返します。
AnsiMidStr は,AText[AStart]の Count プロパティで指定した部分文字列を返します。
AStart が AText より長い場合,AnsiMidStr は空の文字列または要素を返します。
Count が有効な文字数以上の値を指定している場合は,AText[AStart]から AText の最後までの文字だけが返されます。