|
@@ -6,6 +6,16 @@
|
|
|
private
|
|
|
const
|
|
|
DefaultCapacity = 64;
|
|
|
+ type
|
|
|
+ TCharEnumerator = record
|
|
|
+ private
|
|
|
+ FCurrentPosition: PSBChar;
|
|
|
+ FEndPosition: PSBChar;
|
|
|
+ Function GetCurrent: SBChar; inline;
|
|
|
+ public
|
|
|
+ Function MoveNext: Boolean; inline;
|
|
|
+ property Current: SBChar read GetCurrent;
|
|
|
+ end;
|
|
|
private
|
|
|
Function GetCapacity: Integer;
|
|
|
Procedure SetCapacity(AValue: Integer);
|
|
@@ -76,6 +86,8 @@
|
|
|
Function EnsureCapacity(aCapacity: Integer): Integer;
|
|
|
Function Equals(StringBuilder: TGenericStringBuilder): Boolean; reintroduce;
|
|
|
|
|
|
+ Function GetEnumerator: TCharEnumerator; inline;
|
|
|
+
|
|
|
Function Insert(Index: Integer; const AValue: Boolean): TGenericStringBuilder;
|
|
|
Function Insert(Index: Integer; const AValue: Byte): TGenericStringBuilder;
|
|
|
Function Insert(Index: Integer; const AValue: SBChar): TGenericStringBuilder;
|