Equivalent to the std::back_insert_iterator in function, with some convenience helpers for string concatenation.
More...
#include <strings_internal.h>
|
using | value_type = void |
|
using | difference_type = void |
|
using | iterator_category = std::output_iterator_tag |
|
using | pointer = void |
|
using | reference = void |
|
Equivalent to the std::back_insert_iterator in function, with some convenience helpers for string concatenation.
Definition at line 242 of file strings_internal.h.
◆ StringBuilder()
StringBuilder::StringBuilder |
( |
std::string & |
string | ) |
|
|
inline |
Create the builder of an external buffer.
- Parameters
-
string | The string to write to. |
Definition at line 257 of file strings_internal.h.
◆ CurrentIndex()
size_t StringBuilder::CurrentIndex |
( |
| ) |
|
|
inline |
◆ operator+=() [1/2]
Operator to add a character to the end of the buffer.
- Parameters
-
value | The character to add. |
- Returns
- Reference to this inserter.
Definition at line 281 of file strings_internal.h.
Referenced by operator=().
◆ operator+=() [2/2]
Operator to append the given string to the output buffer.
- Parameters
-
- Returns
- Reference to this inserter.
Definition at line 292 of file strings_internal.h.
◆ operator=()
Operator to add a character to the end of the buffer.
Like the back insert iterators this also increases the position of the end of the buffer.
- Parameters
-
value | The character to add. |
- Returns
- Reference to this inserter.
Definition at line 271 of file strings_internal.h.
References operator+=().
◆ operator[]()
char& StringBuilder::operator[] |
( |
size_t |
index | ) |
|
|
inline |
Get the reference to the character at the given index.
- Returns
- The reference to the character.
Definition at line 330 of file strings_internal.h.
◆ RemoveElementsFromBack()
void StringBuilder::RemoveElementsFromBack |
( |
size_t |
amount | ) |
|
|
inline |
Remove the given amount of characters from the back of the string.
- Parameters
-
amount | The amount of characters to remove. |
Definition at line 312 of file strings_internal.h.
◆ Utf8Encode()
void StringBuilder::Utf8Encode |
( |
char32_t |
c | ) |
|
|
inline |
Encode the given Utf8 character into the output buffer.
- Parameters
-
c | The character to encode. |
Definition at line 302 of file strings_internal.h.
The documentation for this class was generated from the following file: