Lines Matching defs:dir
116 // Example: FilePath("dir/file.exe").RemoveExtension("EXE") returns
117 // FilePath("dir/file"). If a case-insensitive extension is not
159 // not have a file, like "just/a/dir/", it returns the FilePath unmodified.
163 std::string dir;
165 dir = std::string(c_str(), last_sep + 1 - c_str());
167 dir = kCurrentDirectoryString;
169 return FilePath(dir);
174 // Given directory = "dir", base_name = "test", number = 0,
175 // extension = "xml", returns "dir/test.xml". If number is greater
176 // than zero (e.g., 12), returns "dir/test_12.xml".
192 // Given directory = "dir", relative_path = "test.xml", returns "dir/test.xml".
198 const FilePath dir(directory.RemoveTrailingPathSeparator());
199 return FilePath(dir.string() + kPathSeparator + relative_path.string());
278 // Examples: 'dir/foo_test.xml' or 'dir/foo_test_1.xml'.