MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / strip_prefix

Function strip_prefix

src/IO/PLYWriter.cpp:31–38  ·  view source on GitHub ↗

* Return the string name with prefix stripped. */

Source from the content-addressed store, hash-verified

29 * Return the string name with prefix stripped.
30 */
31 std::string strip_prefix(const std::string& name,
32 const std::string& prefix) {
33 if (name.substr(0, prefix.size()) == prefix) {
34 return name.substr(prefix.size());
35 } else {
36 return name;
37 }
38 }
39}
40
41using namespace PLYWriterHelper;

Callers 3

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected