Clingo
|
A string builder for constructing strings. More...
#include <core.hh>
Public Member Functions | |
StringBuilder () | |
Construct an empty string builder. | |
auto | str () const -> std::string_view |
Get a view of the string built by the string builder. | |
void | clear () noexcept |
Clear the string builder, removing all content. | |
Friends | |
auto | c_cast (StringBuilder &bld) -> clingo_string_builder_t * |
Cast the string builder to its C representation. | |
A string builder for constructing strings.
Some API functions accept a string builder to construct strings in a memory-efficient way.
String builders have value semantics.
|
inline |
Get a view of the string built by the string builder.
|
friend |
Cast the string builder to its C representation.
bld | the string builder to cast |