You.i Engine
CYIFile Class Reference

Detailed Description

This class provides functionality for working with files.

#include <utility/YiFile.h>

Static Public Member Functions

static CYIString ExtractFilenameFromPath (const CYIString &rPath)
 
static CYIString ExtractParentFromPath (const CYIString &rPath)
 

Member Function Documentation

static CYIString CYIFile::ExtractFilenameFromPath ( const CYIString rPath)
static

Parses the filename from the supplied path. The rPath provided can be absolute or relative. This function will return the name found after the last separator found in rPath. This function will return a empty string in the event that a name cannot be found, or if the path could not be parsed. This function will return the original path if the path does not contain the directory separator character.

static CYIString CYIFile::ExtractParentFromPath ( const CYIString rPath)
static

Parses the containing directory's path from the supplied path. The rPath provided can be absolute or relative. This function will return the path found before the last separator found in rPath. This function will return a empty string in the event that a directory cannot be found, or if the path could not be parsed. The returned string may end with the directory separator character.


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