Lines Matching refs:path

7 // platform's conventions for pathnames.  It supports the following path
24 // For more arcane bits of path trivia, see below.
41 // final path component (BaseName), and appending a relative pathname string
93 // like \\server\share\path, by permitting c:\\server\share\path as an
124 // To print path names portably use PRIsFP (based on PRIuS and friends from
126 // base::StringPrintf("Path is %" PRIsFP ".\n", PATH_CSTR(path);
167 // A special path component meaning "this directory."
170 // A special path component meaning "the parent directory."
178 explicit FilePath(StringViewType path);
205 // Returns a vector of all of the components of the provided path. It is
206 // equivalent to calling DirName().value() on the path's root component,
220 // symlinks or directory navigation (e.g. ".."). A path is *NOT* its own
224 // If IsParent(child) holds, appends to path (if non-NULL) the
225 // relative path to child and returns true. For example, if parent
228 // *path holds "/Users/johndoe/Library/Caches", then after
229 // parent.AppendRelativePath(child, path) is called *path will hold
232 bool AppendRelativePath(const FilePath& child, FilePath* path) const;
234 // Returns a FilePath corresponding to the directory containing the path
242 // Returns a FilePath corresponding to the last path component of this
245 // this is the only situation in which BaseName will return an absolute path.
248 // Returns ".jpg" for path "C:\pics\jojo.jpg", or an empty string if
251 // of the value of path. For common double-extensions like .tar.gz and
254 // new_path = path.RemoveExtension().value().append(path.Extension());
255 // ASSERT(new_path == path.value());
260 // Returns the path's file extension, as in Extension(), but will
269 // Returns "C:\pics\jojo" for path "C:\pics\jojo.jpg"
274 // Removes the path's file extension, as in RemoveExtension(), but
278 // Inserts |suffix| after the file name portion of |path| but before the
281 // path == "C:\pics\jojo.jpg" suffix == " (1)", returns "C:\pics\jojo (1).jpg"
282 // path == "jojo.jpg" suffix == " (1)", returns "jojo (1).jpg"
283 // path == "C:\pics\jojo" suffix == " (1)", returns "C:\pics\jojo (1)"
284 // path == "C:\pics.old\jojo" suffix == " (1)", returns "C:\pics.old\jojo (1)"
299 // Returns a FilePath by appending a separator and the supplied path
300 // component to this object's path. Append takes care to avoid adding
301 // excessive separators if this object's path already ends with a separator.
302 // If this object's path is kCurrentDirectory, a new FilePath corresponding
303 // only to |component| is returned. |component| must be a relative path;
304 // it is an error to pass an absolute path.
309 // for paths is well defined, it can handle ASCII path components as well. Mac
316 // Returns true if this FilePath contains an absolute path. On Windows, an
317 // absolute path begins with either a drive letter specification followed by
319 // platforms, an absolute path begins with a separator character.
322 // Returns true if the patch ends with a path separator character.
326 // the input path is empty, an empty FilePath will be returned.
334 // directory (e.g. has a path component that is "..").
337 // Return a Unicode human-readable version of this path.
339 // path. Only use this when displaying paths to users, not just when you
343 // Return the path as ASCII, or the empty string if the path is not ASCII.
348 // Return the path as 8-bit. On Linux this isn't guaranteed to be UTF-8.
351 // Normalize all path separators to backslash on Windows
355 // Normalize all path separattors to given type on Windows
360 // Remove trailing separators from this object. If the path is absolute, it