Skia
2DGraphicsLibrary
|
Functions for modifying SkStrings which represent paths on the filesystem. More...
#include <SkOSFile.h>
Static Public Member Functions | |
static SkString | Join (const char *rootPath, const char *relativePath) |
Assembles rootPath and relativePath into a single path, like this: rootPath/relativePath. More... | |
static SkString | Basename (const char *fullPath) |
Return the name of the file, ignoring the directory structure. More... | |
static SkString | Dirname (const char *fullPath) |
Given a qualified file name returns the directory. More... | |
Functions for modifying SkStrings which represent paths on the filesystem.
|
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. |
|
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. |
|
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.