|
|
| StringFormatOutput (StringEncoding encoding, IGrowableBuffer &buffer) |
| |
| | StringFormatOutput (StringEncoding encoding, Console &destination) |
| | Constructs a StringFormatOutput object pushing to a console.
|
| |
| bool | append (StringView text) |
| | Appends the StringView (eventually converting it) to destination buffer.
|
| |
| void | onFormatBegin () |
| | Method to be called when format begins, so that it can be rolled back on failure.
|
| |
| void | onFormatFailed () |
| | Method to be called when format fails (will rollback buffer to length before onFormatBegin)
|
| |
| bool | onFormatSucceeded () |
| | Method to be called when format succeeds.
|
| |
◆ StringFormatOutput()
| SC::StringFormatOutput::StringFormatOutput |
( |
StringEncoding | encoding, |
|
|
Console & | destination ) |
Constructs a StringFormatOutput object pushing to a console.
- Parameters
-
| encoding | The given encoding |
| destination | The destination console |
◆ append()
| bool SC::StringFormatOutput::append |
( |
StringView | text | ) |
|
|
nodiscard |
Appends the StringView (eventually converting it) to destination buffer.
- Parameters
-
| text | The StringView to be appended to buffer or console |
- Returns
true if conversion succeeded
◆ onFormatBegin()
| void SC::StringFormatOutput::onFormatBegin |
( |
| ) |
|
Method to be called when format begins, so that it can be rolled back on failure.
◆ onFormatFailed()
| void SC::StringFormatOutput::onFormatFailed |
( |
| ) |
|
Method to be called when format fails (will rollback buffer to length before onFormatBegin)
◆ onFormatSucceeded()
| bool SC::StringFormatOutput::onFormatSucceeded |
( |
| ) |
|
|
nodiscard |
Method to be called when format succeeds.
- Returns
true if IGrowableBuffer is still valid
The documentation for this struct was generated from the following file: