Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATFileSystem::SplitPath
static CATResult CATFileSystem::SplitPath ( const CATString fullPath,
CATString directory,
CATString filename,
bool  keepTrailingSep = true 
) [inline, static]

SplitPath splits the string into a directory and a base filename.

This function may be somewhat platform independant, although the path seperator is predefined in GGConfig.

Parameters:
fullPath - the path to split
directory - ref to receive the base directory. If keepTrailingSep is true, it will end in a seperator.
filename - ref to receive the base filename w/o path.
keepTrailingSep - if true, leaves a trailing seperator on the path.
Returns:
CATResult - CAT_SUCCESS on success.
See also:
BuildPath

Definition at line 331 of file CATFileSystem.h.

References CAT_ERR_PATH_EMPTY, CAT_PATHSEPERATOR, CAT_STAT_PATH_NO_DIRECTORY, CAT_STAT_PATH_NO_FILE, CAT_SUCCESS, CATRESULT, CATRESULTFILE, CATString::GetWChar(), CATString::IsEmpty(), CATString::Left(), CATString::LengthCalc(), CATString::ReverseFind(), and CATString::Right().

Referenced by CATFileSystem_Win32::FindFirst(), CATApp::LoadSkin(), GASPilot::OnStart(), and CATApp::OSOnAppCreate().


Generated on Mon Feb 11 04:10:28 2008 for Game Accessibility Suite by doxygen 1.5.4