System.SysUtils.TStringBuilder.EnsureCapacity

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function EnsureCapacity(aCapacity: Integer): Integer;

C++

int __fastcall EnsureCapacity(int aCapacity);

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils TStringBuilder

Description

Sets the Capacity property to the supplied value, if the new capacity is larger than the old capacity.

Sets the Capacity property to the supplied value, if the new capacity is larger than the old capacity. Also allocates more memory for the character array if needed. Returns the new capacity.

See Also