Show: Delphi C++
Display Preferences

System.StrUtils.DupeString

From XE2 API Documentation
Jump to: navigation, search

Delphi

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

C++

extern 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

Personal tools
Previous Versions
Translations