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

Method IsAbsolutePath

tests/external/gmock-1.7.0/gtest/src/gtest-filepath.cc:260–271  ·  view source on GitHub ↗

Returns true if pathname describes an absolute path.

Source from the content-addressed store, hash-verified

258
259// Returns true if pathname describes an absolute path.
260bool FilePath::IsAbsolutePath() const {
261 const char* const name = pathname_.c_str();
262#if GTEST_OS_WINDOWS
263 return pathname_.length() >= 3 &&
264 ((name[0] >= 'a' && name[0] <= 'z') ||
265 (name[0] >= 'A' && name[0] <= 'Z')) &&
266 name[1] == ':' &&
267 IsPathSeparator(name[2]);
268#else
269 return IsPathSeparator(name[0]);
270#endif
271}
272
273// Returns a pathname for a file that does not currently exist. The pathname
274// will be directory/base_name.extension or

Callers 2

TESTFunction · 0.45

Calls 1

IsPathSeparatorFunction · 0.70

Tested by

no test coverage detected