These versions of ProtobufStringToString and SetProtobufString get used by tools/proto_text's generated code. They have the same name as the versions in core/platform/protobuf.h, so the generation code doesn't need to determine if the type is Cord or string at generation time.
| 74 | // in core/platform/protobuf.h, so the generation code doesn't need to determine |
| 75 | // if the type is Cord or string at generation time. |
| 76 | inline string ProtobufStringToString(const Cord& s) { return s.ToString(); } |
| 77 | inline void SetProtobufStringSwapAllowed(string* src, Cord* dest) { |
| 78 | dest->CopyFrom(*src); |
| 79 | } |