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

Function StripPrefixString

core/pdcodegen/plugin/strutil.h:95–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95inline string StripPrefixString(const string& str, const string& prefix) {
96 if (HasPrefixString(str, prefix)) {
97 return str.substr(prefix.size());
98 } else {
99 return str;
100 }
101}
102
103// ----------------------------------------------------------------------
104// HasSuffixString()

Callers

nothing calls this directly

Calls 2

HasPrefixStringFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected