Stringstream¶
| Spice | |
|---|---|
StringStream struct¶
Helper data structure to construct strings. It is useful to avoid copying large strings around.
Constructors¶
ctor¶
| Spice | |
|---|---|
Construct an empty string stream
ctor¶
| Spice | |
|---|---|
Construct a string stream initialized with a raw string
Parameters
| Name | Type | Description |
|---|---|---|
input |
string |
Initial buffer content |
ctor¶
| Spice | |
|---|---|
Construct a string stream initialized with a String
Parameters
| Name | Type | Description |
|---|---|---|
input |
const String& |
Initial buffer content |
Methods¶
clear¶
| Spice | |
|---|---|
Clear the buffer
str¶
| Spice | |
|---|---|
Get the value of the buffer
Returns: const String& — Resulting String object
Functions¶
endl¶
| Spice | |
|---|---|
Return end line character
Returns: char — End line character
Operators¶
operator¶
| Spice | |
|---|---|
Append a raw string to the buffer
Returns: StringStream&
operator¶
| Spice | |
|---|---|
Append a String to the buffer
Returns: StringStream&
operator¶
| Spice | |
|---|---|
Append a single char to the buffer
Returns: StringStream&