A Writer that stores the text in a string.
Use ToString() to get the result.
|
$write(text)
status @public | Writes text and returns OK.
|
|
$writeByte(byte)
status @public | Appends one byte byte and returns OK.
|
|
$byteSize()
int @public | Returns the current string length in bytes.
|
|
$Size()
int @public | Returns the current string length in characters.
|
|
$empty()
bool @public | Returns TRUE if the size is zero.
|
|
$ToString()
string @public | Returns the current string.
|
|
$remove()
int @public | Takes one character from the end of the string and returns it.
|
|
$clear() @public | Clear the contents of the writer, reset it to empty, free buffer.
|
|
$truncate() @public | Clear the contents of the writer, reset it to empty, keeping the buffer.
|
|
Inherited from IO.Writer:
|
|
$write(text)
status @public | Writes text converted to a string.
|
|
$write(number)
status @public | Writes number as a decimal number.
|
|
$write(number)
status @public | Writes number as a decimal number.
|
|
$write(number)
status @public | Writes number as a decimal number.
|
|
$write(flag)
status @public | Writes flag as "TRUE" or "FALSE".
|
|
$write(ok)
status @public | Writes ok as "FAIL" or "OK".
|
|
$write(arg)
status @public | Writes arg depending on its actual type.
Returns FAIL or OK.
|
|
$writeChar(char)
status @public | Writes char as a UTF-8 byte sequence.
|
|
$print(text)
status @public | Writes text and appends a newline.
Returns FAIL or OK.
|
|
$print(number)
status @public | Writes number and appends a newline.
Returns FAIL or OK.
|
|
$print(number)
status @public | Writes number and appends a newline.
Returns FAIL or OK.
|
|
$print(number)
status @public | Writes number and appends a newline.
Returns FAIL or OK.
|
|
$print(flag)
status @public | Writes flag as "TRUE" or "FALSE" and appends a newline.
Returns FAIL or OK.
|
|
$print(ok)
status @public | Writes ok as "FAIL" or "OK" and appends a newline.
Returns FAIL or OK.
|
|
$print(arg)
status @public | Writes arg depending on its actual type and appends a newline.
Returns FAIL or OK.
|
|
$print()
status @public | Writes a newline and returns FAIL or OK.
|
|
$format(fmt, arguments)
status @public | Formats the string and writes it with a newline appended.
|
|