BloombergLP::bdljsn::StringUtil::readUnquotedString

Load into value the UTF-8 equivalent of an unquoted JSON string.

Synopses

Declared in <bdljsn_stringutil.h>

Load into value the UTF-8 equivalent of an unquoted JSON string.

static
int
readUnquotedString(
    bsl::string* value,
    std::string_view const& string,
    int flags = e_NONE);
» more...

Load into value the UTF-8 equivalent of an unquoted JSON string.

static
int
readUnquotedString(
    std::pmr::string* value,
    std::string_view const& string,
    int flags = e_NONE);
» more...

Load into value the UTF-8 equivalent of an unquoted JSON string.

static
int
readUnquotedString(
    std::string* value,
    std::string_view const& string,
    int flags = e_NONE);
» more...

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
valuereceives the decoded UTF-8 string
stringunquoted JSON string contents to decode
flagsoptional decoding variance flags