TAnsiStringBuilder.EnsureCapacity function
Set the capacity if needed.
Declaration
function EnsureCapacity(aCapacity: Integer): IntegerDescription
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
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
