Provides a mechanism for building strings without reallocation on each addition.
Appends a new string to the end of the existing string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(string_builder), | intent(inout) | :: | this |
The string_builder object. |
||
| character(len=*), | intent(in) | :: | x |
The string to append. |
Appends a new string to the end of the existing string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(string_builder), | intent(inout) | :: | this |
The string_builder object. |
||
| type(string), | intent(in) | :: | x |
The string to append. |
Initializes the string_builder object.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(string_builder), | intent(inout) | :: | this |
The string_builder object. |
Returns the length of the stored string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(string_builder), | intent(in) | :: | this |
The string_builder object. |
The lenght of the stored string.
Returns the buffer contents as a string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(string_builder), | intent(in) | :: | this |
The string_builder object. |
The resulting string.