Lines Matching defs:FilePath

3535 // FilePath - a class for file and directory pathname manipulation which
3540 // A FilePath with a value ending in a path separator ("like/this/") represents
3546 class GTEST_API_ FilePath {
3548 FilePath() : pathname_("") { }
3549 FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) { }
3551 explicit FilePath(const std::string& pathname) : pathname_(pathname) {
3555 FilePath& operator=(const FilePath& rhs) {
3560 void Set(const FilePath& rhs) {
3568 static FilePath GetCurrentDir();
3574 static FilePath MakeFileName(const FilePath& directory,
3575 const FilePath& base_name,
3582 static FilePath ConcatPaths(const FilePath& directory,
3583 const FilePath& relative_path);
3593 static FilePath GenerateUniqueFileName(const FilePath& directory,
3594 const FilePath& base_name,
3603 FilePath RemoveTrailingPathSeparator() const;
3605 // Returns a copy of the FilePath with the directory part removed.
3606 // Example: FilePath("path/to/file").RemoveDirectoryName() returns
3607 // FilePath("file"). If there is no directory part ("just_a_file"), it returns
3608 // the FilePath unmodified. If there is no file part ("just_a_dir/") it
3609 // returns an empty FilePath ("").
3611 FilePath RemoveDirectoryName() const;
3614 // Example: FilePath("path/to/file").RemoveFileName() returns "path/to/".
3615 // If the FilePath is "a_file" or "/a_file", RemoveFileName returns
3616 // FilePath("./") or, on Windows, FilePath(".\\"). If the filepath does
3617 // not have a file, like "just/a/dir/", it returns the FilePath unmodified.
3619 FilePath RemoveFileName() const;
3621 // Returns a copy of the FilePath with the case-insensitive extension removed.
3622 // Example: FilePath("dir/file.exe").RemoveExtension("EXE") returns
3623 // FilePath("dir/file"). If a case-insensitive extension is not
3624 // found, returns a copy of the original FilePath.
3625 FilePath RemoveExtension(const char* extension) const;
3629 // directories for any reason. Will also return false if the FilePath does
3639 // Returns true if FilePath describes something in the file-system,
3647 // Returns true if FilePath ends with a path separator, which indicates that
3671 // but some of the functions in FilePath will not handle that correctly. In
3683 // the FilePath. On Windows, for example, both '/' and '\' are valid path
3688 }; // class FilePath