if (s)
while (*s)
{
- if (*s == _T('\\'))
- *s = _T('/');
+ if (*s == wxT('\\'))
+ *s = wxT('/');
#ifdef __WXMSW__
else
*s = wxTolower(*s); // Case INDEPENDENT
#else // !MSW, !DOS and !OS/2 VAC++
wxUnusedVar(perm);
#ifdef __WXWINCE__
- if ( CreateDirectory(dir, NULL) == 0 )
+ if ( CreateDirectory(dir.fn_str(), NULL) == 0 )
#else
if ( wxMkDir(dir.fn_str()) != 0 )
#endif
#if defined(__OS2__)
if ( ::DosDeleteDir(dir.c_str()) != 0 )
#elif defined(__WXWINCE__)
- if ( RemoveDirectory(dir) == 0 )
+ if ( RemoveDirectory(dir.fn_str()) == 0 )
#else
if ( wxRmDir(dir.fn_str()) != 0 )
#endif
while ( wxEndsWithPathSeparator(strPath) )
{
size_t len = strPath.length();
- if ( len == 1 || (len == 3 && strPath[len - 2] == _T(':')) )
+ if ( len == 1 || (len == 3 && strPath[len - 2] == wxT(':')) )
break;
strPath.Truncate(len - 1);
#ifdef __OS2__
// OS/2 can't handle "d:", it wants either "d:\" or "d:."
- if (strPath.length() == 2 && strPath[1u] == _T(':'))
- strPath << _T('.');
+ if (strPath.length() == 2 && strPath[1u] == wxT(':'))
+ strPath << wxT('.');
#endif
#if defined(__WXPALMOS__)
{
#if defined(__WXPALMOS__)
// TODO
- if(buf && sz>0) buf[0] = _T('\0');
+ if(buf && sz>0) buf[0] = wxT('\0');
return buf;
#elif defined(__WXWINCE__)
// TODO
- if(buf && sz>0) buf[0] = _T('\0');
+ if(buf && sz>0) buf[0] = wxT('\0');
return buf;
#else
if ( !buf )
// sense at all to me - empty string is a better error indicator
// (NULL might be even better but I'm afraid this could lead to
// problems with the old code assuming the return is never NULL)
- buf[0] = _T('\0');
+ buf[0] = wxT('\0');
}
else // ok, but we might need to massage the path into the right format
{
#if defined(__OS2__)
if (d[1] == ':')
{
- ::DosSetDefaultDisk(wxToupper(d[0]) - _T('A') + 1);
+ ::DosSetDefaultDisk(wxToupper(d[0]) - wxT('A') + 1);
// do not call DosSetCurrentDir when just changing drive,
// since it requires e.g. "d:." instead of "d:"!
if (d.length() == 2)
{
// we assume that it's not empty
wxCHECK_MSG( !szFile.empty(), false,
- _T("empty file name in wxFindFileInPath"));
+ wxT("empty file name in wxFindFileInPath"));
// skip path separator in the beginning of the file name if present
wxString szFile2;
}
else
{
- wxFAIL_MSG( _T("missing '|' in the wildcard string!") );
+ wxFAIL_MSG( wxT("missing '|' in the wildcard string!") );
}
break;
{
wxString before = descriptions[k].Left(pos);
wxString after = descriptions[k].Mid(pos+filters[k].Len());
- pos = before.Find(_T('('),true);
- if (pos>before.Find(_T(')'),true))
+ pos = before.Find(wxT('('),true);
+ if (pos>before.Find(wxT(')'),true))
{
before = before.Left(pos+1);
before << filters[k];
- pos = after.Find(_T(')'));
- int pos1 = after.Find(_T('('));
+ pos = after.Find(wxT(')'));
+ int pos1 = after.Find(wxT('('));
if (pos != wxNOT_FOUND && (pos<pos1 || pos1==wxNOT_FOUND))
{
before << after.Mid(pos);