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

Function EnsureString

src/butil/strings/string_util.h:263–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261BUTIL_EXPORT bool IsStringASCII(const string16& str);
262
263inline std::string EnsureString(const std::string& s) {
264 return s;
265}
266
267inline std::string EnsureString(std::string&& s) {
268 return std::move(s);

Callers 15

GetTypeUrlFunction · 0.85
value_invalidFunction · 0.85
JsonValueToProtoFieldFunction · 0.85
JsonMapToProtoMapFunction · 0.85
JsonValueToProtoMessageFunction · 0.85
ConvertMethod · 0.85
_PbFieldToJsonMethod · 0.85
ProcessNsheadRequestMethod · 0.85
CallMethodMethod · 0.85
service_nameMethod · 0.85
AddServiceInternalMethod · 0.85
RemoveServiceMethod · 0.85

Calls 1

moveFunction · 0.70

Tested by

no test coverage detected