MCPcopy Create free account
hub / github.com/PaddlePaddle/Serving / strip_proto

Function strip_proto

core/pdcodegen/src/pdcodegen.cpp:52–58  ·  view source on GitHub ↗

namespace google

Source from the content-addressed store, hash-verified

50} // namespace protobuf
51} // namespace google
52string strip_proto(const string& filename) {
53 if (HasSuffixString(filename, ".protolevel")) {
54 return StripSuffixString(filename, ".protolevel");
55 } else {
56 return StripSuffixString(filename, ".proto");
57 }
58}
59void string_format(std::string& source) { // NOLINT
60 size_t len = source.length();
61 std::string sep = "_";

Callers 1

GenerateMethod · 0.85

Calls 2

HasSuffixStringFunction · 0.85
StripSuffixStringFunction · 0.85

Tested by

no test coverage detected