#include "wx/defs.h"
#endif
-char *
-copystring (const char *s)
-{
- if (s == NULL) s = "";
- size_t len = strlen (s) + 1;
-
- char *news = new char[len];
- memcpy (news, s, len); // Should be the fastest
-
- return news;
-}
-
#ifdef __WXMSW__
// from filefn.cpp
void WXDLLEXPORT wxSplitPath(const char *pszFileName,
{
wxCHECK_RET( pszFileName, _("NULL file name in wxSplitPath") );
- const char *pDot = strrchr(pszFileName, FILE_SEP_EXT);
- const char *pSepUnix = strrchr(pszFileName, FILE_SEP_PATH_UNIX);
- const char *pSepDos = strrchr(pszFileName, FILE_SEP_PATH_DOS);
+ const char *pDot = strrchr(pszFileName, wxFILE_SEP_EXT);
+ const char *pSepUnix = strrchr(pszFileName, wxFILE_SEP_PATH_UNIX);
+ const char *pSepDos = strrchr(pszFileName, wxFILE_SEP_PATH_DOS);
// take the last of the two
size_t nPosUnix = pSepUnix ? pSepUnix - pszFileName : 0;
return szOrigString;
}
-#else // !MSW
-const char *wxGetTranslation(const char *str)
-{
- return str;
-}
-#endif // MSW
\ No newline at end of file
+#endif // MSW