System.AnsiStrings.AnsiMidStr

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AnsiMidStr(const AText: AnsiString; const AStart, ACount: Integer): AnsiString;

C++

extern DELPHI_PACKAGE System::AnsiString __fastcall AnsiMidStr(const System::AnsiString AText, const int AStart, const int ACount)/* overload */;

Properties

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

Description

Returns substring of specified length at specified position in string.

AnsiMidStr returns a substring ACount 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. This function supports multi-byte character strings (MBCS) AnsiStrings.

See Also