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 */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.StrUtils.pas System.StrUtils.hpp |
System.StrUtils | System.StrUtils |
Description
Returns the substring of a specified length that appears at a specified position in a string.
AnsiMidStr returns a substring Count characters at AText[AStart].
If AStart is larger than the length of AText, AnsiMidStr returns an empty string.
If Count specifies more characters than are available, only the characters from AText[AStart] to the end of AText are returned.