MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / IsAbsolutePath

Method IsAbsolutePath

src/core/file_unix.cpp:464–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462/////////////////////////////////////////////////////////////////////////
463
464bool cDosPath::IsAbsolutePath(const TSTRING& in)
465{
466 if (in.empty())
467 return false;
468
469 if (in[0] == '/')
470 return true;
471
472 if (in.length() >= 2 && in[1] == ':')
473 return true;
474
475 return false;
476}
477
478// For paths of type C:\DOS
479TSTRING cDosPath::AsPosix(const TSTRING& in)

Callers 3

ParseObjectListMethod · 0.45
ParseObjectNameMethod · 0.45
yyparse.cppFile · 0.45

Calls 3

emptyMethod · 0.80
lengthMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected