Set the capacity if needed.
Source position: syssbh.inc line 86
public function TAnsiStringBuilder.EnsureCapacity( |
aCapacity: Integer |
):Integer; |
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.
If aCapacity is larger than MaxCapacity or negative, an ERangeError exception is raised.
|
Maximum capacity of the string buffer. |