Class StringBuffer

String Buffer class.

Fast string buffer with "Tower of Hanoi" strategy algorithm.

Methods

StringBuffer:Create ([init=""]) Constructs a string buffer.
StringBuffer:ToString () Returns the buffered string.

Metamethods

StringBuffer.__index Base class.
StringBuffer.__tostring Returns the buffered string.
StringBuffer:__concat (val) Returns a concatenated form of this string buffer.
StringBuffer:__len () Returns the length of this string buffer.

Metamethods

StringBuffer.__index Base class.
StringBuffer.__tostring Returns the buffered string.
StringBuffer:__concat (val) Returns a concatenated form of this string buffer.
StringBuffer:__len () Returns the length of this string buffer.


Methods

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.

Metamethods

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.

Metamethods

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.
generated by LDoc 1.4.6 Last updated 2020-06-15 21:15:36