Replace this value with a string copied from string.
Synopsis
Declared in <bdljsn_json.h>
void
makeString(char const* string);
Description
Create an instance of type bsl::string in this object, using the allocator currently held by this object to supply memory. Optionally specify string to initialize the bsl::string created. This method first destroys the current value held by this object (even if the type currently held is bsl::string). The behavior is undefined unless string is valid UTF‐8 (see bdlde::Utf8Util::isValid).
Parameters
Name |
Description |
string |
UTF‐8 string value to store |
Created with MrDocs