MCPcopy Create free account
hub / github.com/RenderKit/embree / removeQuotes

Function removeQuotes

tutorials/common/tutorial/benchmark.cpp:79–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79std::string removeQuotes(std::string const &str)
80{
81 std::string res = str;
82 if (startsWith(res, "\""))
83 res = res.substr(1, res.length());
84 if (endsWith(res, "\""))
85 res = res.substr(0, res.length() - 1);
86 return res;
87}
88
89std::string getFileName(std::string const &path)
90{

Callers

nothing calls this directly

Calls 3

substrMethod · 0.80
startsWithFunction · 0.70
endsWithFunction · 0.70

Tested by

no test coverage detected