Home | History | Annotate | Download | only in src

Lines Matching defs:dir

115 // Example: FilePath("dir/file.exe").RemoveExtension("EXE") returns
116 // FilePath("dir/file"). If a case-insensitive extension is not
157 // not have a file, like "just/a/dir/", it returns the FilePath unmodified.
161 String dir;
163 dir = String(c_str(), last_sep + 1 - c_str());
165 dir = kCurrentDirectoryString;
167 return FilePath(dir);
172 // Given directory = "dir", base_name = "test", number = 0,
173 // extension = "xml", returns "dir/test.xml". If number is greater
174 // than zero (e.g., 12), returns "dir/test_12.xml".
189 // Given directory = "dir", relative_path = "test.xml", returns "dir/test.xml".
195 const FilePath dir(directory.RemoveTrailingPathSeparator());
196 return FilePath(String::Format("%s%c%s", dir.c_str(), kPathSeparator,
276 // Examples: 'dir/foo_test.xml' or 'dir/foo_test_1.xml'.