40 #ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_
41 #define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_
74 pathname_ = rhs.pathname_;
78 const char*
c_str()
const {
return pathname_.c_str(); }
90 const char* extension);
108 const char* extension);
111 bool IsEmpty()
const {
return pathname_.empty(); }
116 FilePath RemoveTrailingPathSeparator()
const;
124 FilePath RemoveDirectoryName()
const;
138 FilePath RemoveExtension(
const char* extension)
const;
144 bool CreateDirectoriesRecursively()
const;
150 bool CreateFolder()
const;
154 bool FileOrDirectoryExists()
const;
158 bool DirectoryExists()
const;
163 bool IsDirectory()
const;
167 bool IsRootDirectory()
const;
170 bool IsAbsolutePath()
const;
198 const char* FindLastPathSeparator()
const;
206 #endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_
Definition: gtest-death-test.h:43
FilePath()
Definition: gtest-filepath.h:61
::std::string string
Definition: gtest-port.h:872
#define GTEST_API_
Definition: gtest-port.h:768
FilePath & operator=(const FilePath &rhs)
Definition: gtest-filepath.h:68
void Set(const FilePath &rhs)
Definition: gtest-filepath.h:73
const std::string & string() const
Definition: gtest-filepath.h:77
const char * c_str() const
Definition: gtest-filepath.h:78
bool IsEmpty() const
Definition: gtest-filepath.h:111
Definition: gtest-filepath.h:59
FilePath(const std::string &pathname)
Definition: gtest-filepath.h:64
FilePath(const FilePath &rhs)
Definition: gtest-filepath.h:62