plptools
Loading...
Searching...
No Matches
Path Class Reference

Conveniences for working with paths. More...

#include <path.h>

Static Public Member Functions

static std::string getEPOCBasename (std::string path)
 Returns the last path component of an EPOC path. More...
 
static char * getEPOCDirname (const char *path)
 Compute parent directory of an EPOC directory. More...
 
static char * resolveEPOCPath (const char *path, const char *initialPath)
 Returns a new absolute EPOC path, determined by resolving path relative to initialPath. More...
 

Detailed Description

Conveniences for working with paths.

These methods currently have a mishmash of C and C++ as they're a collection of various utilities from around plptools. Hopefully they can be unified in the future.

Definition at line 36 of file path.h.

Member Function Documentation

◆ getEPOCBasename()

std::string Path::getEPOCBasename ( std::string  path)
static

Returns the last path component of an EPOC path.

If the path doesn't contain any EPOC path separators (\), the returned string matches the path.

Definition at line 31 of file path.cc.

◆ getEPOCDirname()

char * Path::getEPOCDirname ( const char *  path)
static

Compute parent directory of an EPOC directory.

Definition at line 39 of file path.cc.

◆ resolveEPOCPath()

char * Path::resolveEPOCPath ( const char *  path,
const char *  initialPath 
)
static

Returns a new absolute EPOC path, determined by resolving path relative to initialPath.

If path is already an absolute path, this returns path.

Definition at line 64 of file path.cc.


The documentation for this class was generated from the following files: