BloombergLP::bdljsn::Tokenizer::value

Load the current token value into data when applicable.

Synopsis

Declared in <bdljsn_tokenizer.h>

int
value(std::string_view* data) const;

Description

Load into the specified data the value of the specified token if the current token's type is e_ELEMENT_NAME or e_ELEMENT_VALUE or leave data unmodified otherwise. Return 0 on success and a non-zero value otherwise. Note that the returned data is only valid until the next manipulator call on this object.

Return Value

0 on success and a non-zero value otherwise

Parameters

NameDescription
datareceives the token value for name or value tokens