Class std.strbuf
String buffers.
Metamethods
std.strbuf:__concat (buffer, str) | Support concatenation of StrBuf objects. |
std.strbuf:__tostring (buffer) | Support fast conversion to Lua string. |
Methods
std.strbuf:concat (s) | Add a string to a buffer. |
std.strbuf:tostring (self) | Convert a buffer to a string. |
Metamethods
- std.strbuf:__concat (buffer, str)
-
Support concatenation of StrBuf objects.
buffer = buffer .. str
Parameters:
- buffer std.strbuf StrBuf object
- str string a string or string-like object
Returns:
-
std.strbuf
modified
buffer
See also:
- std.strbuf:__tostring (buffer)
-
Support fast conversion to Lua string.
str = tostring (buffer)
Parameters:
- buffer std.strbuf Strbuf object
Returns:
-
string
concatenation of buffer contents
See also:
Methods
- std.strbuf:concat (s)
-
Add a string to a buffer.
Parameters:
- s string string to add
Returns:
-
std.strbuf
modified buffer
- std.strbuf:tostring (self)
-
Convert a buffer to a string.
Parameters:
- self
Returns:
-
string
stringified
self