many miscellaneous fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1998 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-03-29 16:46:18 +00:00
parent 8826f46f0d
commit 0fb67cd196
7 changed files with 1826 additions and 1732 deletions

View File

@@ -274,6 +274,12 @@ bool wxFileExists(const char *pszFileName)
}
*/
bool wxDirExists( const wxString& dir )
{
struct stat st;
return ((stat(dir, &st) != -1) && S_ISDIR(st.st_mode) ? TRUE : FALSE);
}
bool
wxIsAbsolutePath (const wxString& filename)
{
@@ -785,7 +791,7 @@ wxMac2UnixFilename (char *s)
if (*s == ':')
*s = '/';
else
*s = wxToLower (*s); // Case INDEPENDENT
*s = tolower(*s); // Case INDEPENDENT
s++;
}
}
@@ -830,7 +836,7 @@ wxDos2UnixFilename (char *s)
*s = '/';
#ifdef __WXMSW__
else
*s = wxToLower (*s); // Case INDEPENDENT
*s = tolower(*s); // Case INDEPENDENT
#endif
s++;
}