Remove surrounding quotation marks from *str if present.

Synopsis

Declared in <baljsn_parserutil.h>

static
bool
stripQuotes(std::string_view* str);

Description

If the specified *str is at least two characters long and begins and ends with quotation marks ("), then remove the first and last characters; otherwise, do not modify *str. Return true if *str was modified.

Return Value

true if *str was modified

Parameters

Name

Description

str

string view that may be trimmed of surrounding quotes

Created with MrDocs