mrdocs::js::Value::getString

Return the underlying string

Synopsis

std::string
getString() const;

Description

This function returns the value as a string.

This function performs no coercions. If the value is not a string, it is not converted to a string.

JerryScript allocates a new buffer for string extraction, so the returned value is an owning std::string rather than a view.

Behaviour is undefined if !isString()

Return Value

the underlying string

Created with MrDocs