Unicode Controls & Classes for VB6 - Version 4

cStringBuilder Class

Fast string builder for VB6

Enums
Name Description
Events
Name Description
Properties
Name Type Description
Length (Long) Returns the length of the internal string
ToString (String) Gets the internal string
TheString Sets the internal string
Methods
Name Type Description
Append Appends a string to the internal buffer
AppendByVal Appends a string to the internal buffer ByVal
AppendWithNewLine Appends a string and add also a vbNewLine at the end
Find (Long) Searches a string into the buffer and returns the position
Insert Inserts a string into the buffer in a certain position
InsertByVal Inserts a string into the buffer in a certain position ByVal
Remove Removes chars from a string
ReplaceString Replaces all occurences of a string with another
Remarks
VB can be slow to append strings together because of the continual reallocation of string size. This class pre-allocates a string in blocks and hence removes the performance restriction.