Class StringBuffer
String Buffer class.
Fast string buffer with "Tower of Hanoi" strategy algorithm.
-
StringBuffer:Create ([init=""])
-
Constructs a string buffer.
Parameters:
- init
string
The init string.
(default "")
Returns:
StringBuffer
A new string buffer.
-
StringBuffer:ToString ()
-
Returns the buffered string.
Returns:
string
The buffered string.
-
StringBuffer.__index
-
Base class.
-
StringBuffer.__tostring
-
Returns the buffered string.
-
StringBuffer:__concat (val)
-
Returns a concatenated form of this string buffer.
Parameters:
- val
string
The string to concat.
-
StringBuffer:__len ()
-
Returns the length of this string buffer.
Returns:
number
The length of this string buffer.
-
StringBuffer.__index
-
Base class.
-
StringBuffer.__tostring
-
Returns the buffered string.
-
StringBuffer:__concat (val)
-
Returns a concatenated form of this string buffer.
Parameters:
- val
string
The string to concat.
-
StringBuffer:__len ()
-
Returns the length of this string buffer.
Returns:
number
The length of this string buffer.