bool
wxIsAbsolutePath (const wxString& filename)
{
- if (filename != "")
+ if (filename != _T(""))
{
if (filename[0] == _T('/')
#ifdef __VMS__
/* prefix ~ */
if (nm[1] == SEP || nm[1] == 0)
{ /* ~/filename */
+ // FIXME: wxGetUserHome could return temporary storage in Unicode mode
if ((s = WXSTRINGCAST wxGetUserHome(_T(""))) != NULL) {
if (*++nm)
nm++;
was_sep = (*s == SEP);
nnm = *s ? s + 1 : s;
*s = 0;
+ // FIXME: wxGetUserHome could return temporary storage in Unicode mode
if ((home = WXSTRINGCAST wxGetUserHome(wxString(nm + 1))) == NULL) {
if (was_sep) /* replace only if it was there: */
*s = SEP;
// Return just the directory, or NULL if no directory
wxString wxPathOnly (const wxString& path)
{
- if (path != "")
+ if (path != _T(""))
{
wxChar buf[_MAXPATHLEN];
#endif
}
-bool wxEndsWithPathSeparator(const char *pszFileName)
+bool wxEndsWithPathSeparator(const wxChar *pszFileName)
{
- size_t len = Strlen(pszFileName);
+ size_t len = wxStrlen(pszFileName);
if ( len == 0 )
return FALSE;
else