MCPcopy Create free account
hub / github.com/apache/brpc / AppendToStringT

Function AppendToStringT

src/butil/strings/string_piece.cc:70–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68
69template<typename STR>
70void AppendToStringT(const BasicStringPiece<STR>& self, STR* target) {
71 if (!self.empty())
72 target->append(self.data(), self.size());
73}
74
75void AppendToString(const StringPiece& self, std::string* target) {
76 AppendToStringT(self, target);

Callers 1

AppendToStringFunction · 0.85

Calls 4

emptyMethod · 0.45
appendMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected