remove "xxx" in comment (shows up as a fixme in my searches)
This commit is contained in:
@@ -123,16 +123,11 @@ void split( const CString &Source, const CString &Deliminator, CStringArray& Add
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
void splitpath( bool UsingDirsOnly, const CString &Path, CString& Drive, CString& Dir, CString& FName, CString& Ext )
|
||||||
// Name: splitpath()
|
|
||||||
// Desc:
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
void splitpath( const bool UsingDirsOnly, const CString &Path, CString& Drive, CString& Dir, CString& FName, CString& Ext )
|
|
||||||
{
|
{
|
||||||
|
|
||||||
int nSecond;
|
int nSecond;
|
||||||
|
|
||||||
// Look for a UNC Name!
|
// Look for a UNC filename.
|
||||||
if (Path.Left(2) == "\\\\")
|
if (Path.Left(2) == "\\\\")
|
||||||
{
|
{
|
||||||
int nFirst = Path.Find("\\",3);
|
int nFirst = Path.Find("\\",3);
|
||||||
@@ -146,7 +141,7 @@ void splitpath( const bool UsingDirsOnly, const CString &Path, CString& Drive, C
|
|||||||
else if (nSecond > nFirst)
|
else if (nSecond > nFirst)
|
||||||
Drive = Path.Left(nSecond);
|
Drive = Path.Left(nSecond);
|
||||||
}
|
}
|
||||||
else if (Path.Mid(1,1) == ":" ) // normal Drive Structure
|
else if (Path.Mid(1,1) == ":" ) // drive letter
|
||||||
{
|
{
|
||||||
nSecond = 2;
|
nSecond = 2;
|
||||||
Drive = Path.Left(2);
|
Drive = Path.Left(2);
|
||||||
|
|||||||
@@ -130,10 +130,12 @@ CString vssprintf( const char *fmt, va_list argList );
|
|||||||
|
|
||||||
// Splits a Path into 4 parts (Directory, Drive, Filename, Extention). Supports UNC path names.
|
// Splits a Path into 4 parts (Directory, Drive, Filename, Extention). Supports UNC path names.
|
||||||
// param1: Whether the Supplied Path (PARAM2) contains a directory name only
|
// param1: Whether the Supplied Path (PARAM2) contains a directory name only
|
||||||
// or a file name (Reason: some directories will end with "xxx.xxx"
|
// or a file name (Reason: some directories will end with "aaa.bbb"
|
||||||
// which is like a file name).
|
// which is like a file name).
|
||||||
|
// We should just make sure all pathnames end with a slash, not special case it here.
|
||||||
|
// -glenn
|
||||||
void splitpath(
|
void splitpath(
|
||||||
const bool UsingDirsOnly,
|
bool UsingDirsOnly,
|
||||||
const CString &Path,
|
const CString &Path,
|
||||||
CString &Drive,
|
CString &Drive,
|
||||||
CString &Dir,
|
CString &Dir,
|
||||||
|
|||||||
Reference in New Issue
Block a user