Skip to content

Commit

Permalink
Add argument to FlatBufferToString for quotes around field names, def…
Browse files Browse the repository at this point in the history
…ault false (#8090)

Co-authored-by: Derek Bailey <derekbailey@google.com>
  • Loading branch information
alresing and dbaileychess authored Nov 18, 2023
1 parent a9c0845 commit 11789e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/flatbuffers/minireflect.h
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,9 @@ inline std::string FlatBufferToString(const uint8_t *buffer,
const TypeTable *type_table,
bool multi_line = false,
bool vector_delimited = true,
const std::string &indent = "") {
ToStringVisitor tostring_visitor(multi_line ? "\n" : " ", false, indent,
const std::string &indent = "",
bool quotes = false) {
ToStringVisitor tostring_visitor(multi_line ? "\n" : " ", quotes, indent,
vector_delimited);
IterateFlatBuffer(buffer, type_table, &tostring_visitor);
return tostring_visitor.s;
Expand Down

0 comments on commit 11789e4

Please sign in to comment.