MCPcopy Create free account
hub / github.com/arrayfire/forge / clipPath

Function clipPath

src/backend/common/defines.hpp:19–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17{
18
19inline std::string
20clipPath(std::string path, std::string str)
21{
22 try {
23 std::string::size_type pos = path.rfind(str);
24 if(pos == std::string::npos) {
25 return path;
26 } else {
27 return path.substr(pos);
28 }
29 } catch(...) {
30 return path;
31 }
32}
33
34#if defined(OS_WIN)
35 #define __PRETTY_FUNCTION__ __FUNCSIG__

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected