System.StrUtils.DupeString

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DupeString(const AText: string; ACount: Integer): string;

C++

extern DELPHI_PACKAGE System::UnicodeString __fastcall DupeString(const System::UnicodeString AText, int ACount)/* overload */;

Properties

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

Description

Returns the concatenation of a string with itself a specified number of repeats.

DupeString returns a string containing ACount repeats of the string specified by AText. For example,

S := DupeString('Ha', 5);

sets S to the string 'HaHaHaHaHa'.

See Also