implemented wxFileName::SplitPath(), wxSplitPath() now just calls it

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-12-31 01:15:33 +00:00
parent 844f90fba6
commit 9e8d860761
4 changed files with 114 additions and 66 deletions

View File

@@ -610,10 +610,10 @@ static void TestFileNameConstruction()
for ( size_t n = 0; n < WXSIZEOF(filenames); n++ )
{
wxFileName fn(filenames[n]);
wxFileName fn(filenames[n], wxPATH_UNIX);
printf("Filename: '%s'\t", fn.GetFullPath().c_str());
if ( !fn.Normalize() )
if ( !fn.Normalize(wxPATH_NORM_ALL, _T(""), wxPATH_UNIX) )
{
puts("ERROR (couldn't be normalized)");
}
@@ -3964,6 +3964,12 @@ int main(int argc, char **argv)
#ifdef TEST_FILENAME
TestFileNameConstruction();
if ( 0 )
{
TestFileNameCwd();
TestFileNameComparison();
TestFileNameOperations();
}
#endif // TEST_FILENAME
#ifdef TEST_THREADS