Flutter Engine
The Flutter Engine
|
#include <SkOSPath.h>
Static Public Member Functions | |
static SkString | Join (const char *rootPath, const char *relativePath) |
static SkString | Basename (const char *fullPath) |
static SkString | Dirname (const char *fullPath) |
Static Public Attributes | |
static constexpr char | SEPARATOR = '/' |
Functions for modifying SkStrings which represent paths on the filesystem.
Definition at line 16 of file SkOSPath.h.
|
static |
Return the name of the file, ignoring the directory structure. Behaves like python's os.path.basename. If the fullPath is /dir/subdir/, an empty string is returned.
fullPath | Full path to the file. |
Definition at line 23 of file SkOSPath.cpp.
|
static |
Given a qualified file name returns the directory. Behaves like python's os.path.dirname. If the fullPath is /dir/subdir/ the return will be /dir/subdir/
fullPath | Full path to the file. |
Definition at line 36 of file SkOSPath.cpp.
|
static |
Assembles rootPath and relativePath into a single path, like this: rootPath/relativePath. It is okay to call with a NULL rootPath and/or relativePath. A path separator will still be inserted.
Uses SkPATH_SEPARATOR, to work on all platforms.
Definition at line 14 of file SkOSPath.cpp.
|
staticconstexpr |
Definition at line 21 of file SkOSPath.h.