aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNicholas Seckar <seckar@google.com>2013-11-09 16:12:17 -0800
committerNicholas Seckar <seckar@google.com>2013-11-15 07:54:07 -0800
commit62a22a732fb134e5f34dd3e01920933ca5b16346 (patch)
tree408f11eb68a020bfbe59bc81fc4088b608d6779b /src
parent8a15121c1077fe883f428bd27dee6b99e06e48b6 (diff)
downloadexternal_protobuf-62a22a732fb134e5f34dd3e01920933ca5b16346.zip
external_protobuf-62a22a732fb134e5f34dd3e01920933ca5b16346.tar.gz
external_protobuf-62a22a732fb134e5f34dd3e01920933ca5b16346.tar.bz2
Update MessageNano#toString() to return mostly valid TextFormat.
The output of toString is now aligned with that used by non-nano and C++ runtimes, with the exception of groups. Groups should be serialized using a camelized name (e.g. "FooBar" rather than "foo_bar") however the nano runtime does not have information on which fields are groups. Changes are: - bytes fields are output within double-quotes, non-printable characters are output as octal escape sequences (i.e. \NNN); - field identifiers are output in underscored format; - unset fields are not output (rather than printing "null"); - the type name of the root message is not output. With these changes the nano toString, normal toString, and C++'s DebugString all produce equivalent output when given the same message. (Provided that message uses no deprecated features.) Change-Id: Id4791d73822846db29344db9f7bc3781c3e183a6
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions