Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TUnicodeStringBuilder.EnsureCapacity

Set the capacity if needed.

Declaration

Source position: syssbh.inc line 86

public function TUnicodeStringBuilder.EnsureCapacity(

  aCapacity: Integer

):Integer;

Description

EnsureCapacity checks that aCapacity is in the allowed range (less than MaxCapacity) and if the current capacity is less than aCapacity, increases the capacity to aCapacity.

Errors

If aCapacity is larger than MaxCapacity or negative, an ERangeError exception is raised.

See also

MaxCapacity

  

Maximum capacity of the string buffer.


Documentation generated on: Oct 27 2024