Skip to content

Commit 3c2dac4

Browse files
alresingdbaileychess
authored andcommitted
Add argument to FlatBufferToString for quotes around field names, default false (google#8090)
Co-authored-by: Derek Bailey <[email protected]>
1 parent 5d059d3 commit 3c2dac4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/flatbuffers/minireflect.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,9 @@ inline std::string FlatBufferToString(const uint8_t *buffer,
408408
const TypeTable *type_table,
409409
bool multi_line = false,
410410
bool vector_delimited = true,
411-
const std::string &indent = "") {
412-
ToStringVisitor tostring_visitor(multi_line ? "\n" : " ", false, indent,
411+
const std::string &indent = "",
412+
bool quotes = false) {
413+
ToStringVisitor tostring_visitor(multi_line ? "\n" : " ", quotes, indent,
413414
vector_delimited);
414415
IterateFlatBuffer(buffer, type_table, &tostring_visitor);
415416
return tostring_visitor.s;

0 commit comments

Comments
 (0)