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

Method GetString

src/butil/version.cc:166–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166const std::string Version::GetString() const {
167 DCHECK(IsValid());
168 std::string version_str;
169 size_t count = components_.size();
170 for (size_t i = 0; i < count - 1; ++i) {
171 version_str.append(IntToString(components_[i]));
172 version_str.append(".");
173 }
174 version_str.append(IntToString(components_[count - 1]));
175 return version_str;
176}
177
178} // namespace butil

Callers 15

TEST_FFunction · 0.80
string_append_valueFunction · 0.80
convert_enum_typeFunction · 0.80
convert_int64_typeFunction · 0.80
convert_uint64_typeFunction · 0.80
JsonValueToProtoFieldFunction · 0.80
JsonMapToProtoMapFunction · 0.80
ProtoMessageToJsonFunction · 0.80
WriteAMFObjectFunction · 0.80
ListDiscoveryNodesFunction · 0.80

Calls 3

IntToStringFunction · 0.85
sizeMethod · 0.45
appendMethod · 0.45

Tested by 1

TEST_FFunction · 0.64