MCPcopy Create free account
hub / github.com/MariaDB/server / PlugIsAbsolutePath

Function PlugIsAbsolutePath

storage/connect/plugutil.cpp:234–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232} // end of PlugRemoveType
233
234BOOL PlugIsAbsolutePath(LPCSTR path)
235{
236#if defined(_WIN32)
237 return ((path[0] >= 'a' && path[0] <= 'z') ||
238 (path[0] >= 'A' && path[0] <= 'Z')) && path[1] == ':';
239#else
240 return path[0] == '/';
241#endif
242}
243
244/***********************************************************************/
245/* Set the full path of a file relatively to a given path. */

Callers 2

SetPathFunction · 0.85
PlugSetPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected