MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / isAbsolute

Method isAbsolute

erpcgen/src/SearchPath.cpp:122–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122bool PathSearcher::isAbsolute(const std::string &path)
123{
124#if __WIN32__
125 return path.size() >= 3 && path[1] == ':' && path[2] == PATH_SEP_CHAR;
126#else
127 return path.size() >= 1 && path[0] == PATH_SEP_CHAR;
128#endif
129}
130
131std::string PathSearcher::joinPaths(const std::string &first, const std::string &second)
132{

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected