Lines Matching defs:dir
100 // Example: FilePath("dir/file.exe").RemoveExtension("EXE") returns
101 // FilePath("dir/file"). If a case-insensitive extension is not
126 // not have a file, like "just/a/dir/", it returns the FilePath unmodified.
130 String dir;
132 dir = String(c_str(), last_sep + 1 - c_str());
134 dir = kCurrentDirectoryString;
136 return FilePath(dir);
141 // Given directory = "dir", base_name = "test", number = 0,
142 // extension = "xml", returns "dir/test.xml". If number is greater
143 // than zero (e.g., 12), returns "dir/test_12.xml".
158 // Given directory = "dir", relative_path = "test.xml", returns "dir/test.xml".
164 const FilePath dir(directory.RemoveTrailingPathSeparator());
165 return FilePath(String::Format("%s%c%s", dir.c_str(), kPathSeparator,
245 // Examples: 'dir/foo_test.xml' or 'dir/foo_test_1.xml'.