• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/src/common/

Lines Matching defs:format

15    wxPATH_UNIX: standard Unix format, used under Darwin as well, absolute file
21 wxPATH_DOS: DOS/Windows format, absolute file names have the form:
27 wxPATH_MAC: Mac OS 8/9 and Mac OS X under CodeWarrior 7 format, absolute file
39 wxPATH_VMS: VMS native format, absolute file names have the form
261 static wxString wxGetVolumeString(const wxString& volume, wxPathFormat format)
267 format = wxFileName::GetFormat(format);
273 if ( format == wxPATH_DOS && volume.length() > 1 )
277 else if ( format == wxPATH_DOS || format == wxPATH_VMS )
279 path << volume << wxFileName::GetVolumeSeparator(format);
294 // return true if the format used is the DOS/Windows one and the string looks
296 static bool IsUNCPath(const wxString& path, wxPathFormat format)
298 return format == wxPATH_DOS &&
331 wxPathFormat format)
342 if ( IsUNCPath(path, format) )
347 SetPath(pathNonUNC, format);
351 SetPath(path, format);
361 void wxFileName::SetPath( const wxString& pathOrig, wxPathFormat format )
373 format = GetFormat( format );
378 SplitVolume(pathOrig, &volume, &path, format);
389 switch (format)
409 // TODO: what is the relative path format here?
414 wxFAIL_MSG( _T("Unknown path format") );
423 m_relative = !IsPathSeparator(leadingChar, format);
432 wxStringTokenizer tn( path, GetPathSeparators(format) );
442 if (format == wxPATH_MAC)
454 wxPathFormat format)
458 SplitPath(fullpath, &volume, &path, &name, &ext, &hasExt, format);
460 Assign(volume, path, name, ext, hasExt, format);
465 wxPathFormat format)
472 fullpath += GetPathSeparator(format);
483 SplitPath(fullname, &volDummy, &pathDummy, &name, &ext, &hasExt, format);
488 SplitPath(fullpath, &volume, &path, &nameDummy, &extDummy, format);
495 &name, &ext, &hasExt, format);
496 SplitPath(fullpath, &volume, &path, NULL, NULL, format);
499 Assign(volume, path, name, ext, hasExt, format);
505 wxPathFormat format)
509 SplitVolume(pathOrig, &volume, &path, format);
511 Assign(volume, path, name, ext, format);
514 void wxFileName::AssignDir(const wxString& dir, wxPathFormat format)
516 Assign(dir, wxEmptyString, format);
535 wxFileName wxFileName::FileName(const wxString& file, wxPathFormat format)
537 return wxFileName(file, format);
541 wxFileName wxFileName::DirName(const wxString& dir, wxPathFormat format)
544 fn.AssignDir(dir, format);
1152 wxPathFormat format)
1157 wxString pathOrig = GetFullPath(format);
1172 format = GetFormat(format);
1175 if ( (flags & wxPATH_NORM_ABSOLUTE) && !IsAbsolute(format) )
1188 if ( (format == wxPATH_UNIX) && (flags & wxPATH_NORM_TILDE) )
1235 if ( curDir.IsAbsolute(format) )
1281 if (GetShortcutTarget(GetFullPath(format), filename))
1290 if ( (flags & wxPATH_NORM_LONG) && (format == wxPATH_DOS) )
1298 if ( (flags & wxPATH_NORM_CASE) && !IsCaseSensitive(format) )
1405 bool wxFileName::IsAbsolute(wxPathFormat format) const
1412 if ( !GetVolumeSeparator(format).empty() )
1414 // this format has volumes and an absolute path must have one, it's not
1423 bool wxFileName::MakeRelativeTo(const wxString& pathBase, wxPathFormat format)
1425 wxFileName fnBase = wxFileName::DirName(pathBase, format);
1429 Normalize(wxPATH_NORM_ALL & ~wxPATH_NORM_CASE, cwd, format);
1430 fnBase.Normalize(wxPATH_NORM_ALL & ~wxPATH_NORM_CASE, cwd, format);
1432 bool withCase = IsCaseSensitive(format);
1459 if ( format == wxPATH_UNIX || format == wxPATH_DOS )
1480 bool wxFileName::SameAs(const wxFileName& filepath, wxPathFormat format) const
1487 fn1.Normalize(wxPATH_NORM_ALL | wxPATH_NORM_CASE, cwd, format);
1488 fn2.Normalize(wxPATH_NORM_ALL | wxPATH_NORM_CASE, cwd, format);
1500 bool wxFileName::IsCaseSensitive( wxPathFormat format )
1503 return GetFormat(format) == wxPATH_UNIX;
1507 wxString wxFileName::GetForbiddenChars(wxPathFormat format)
1512 // If asserts, wxPathFormat has been changed. In case of a new path format
1515 switch ( GetFormat(format) )
1518 wxFAIL_MSG( wxT("Unknown path format") );
1542 wxString wxFileName::GetVolumeSeparator(wxPathFormat WXUNUSED_IN_WINCE(format))
1549 if ( (GetFormat(format) == wxPATH_DOS) ||
1550 (GetFormat(format) == wxPATH_VMS) )
1561 wxString wxFileName::GetPathSeparators(wxPathFormat format)
1564 switch ( GetFormat(format) )
1593 wxString wxFileName::GetPathTerminators(wxPathFormat format)
1595 format = GetFormat(format);
1599 return format == wxPATH_VMS ? wxString(_T(']')) : GetPathSeparators(format);
1603 bool wxFileName::IsPathSeparator(wxChar ch, wxPathFormat format)
1607 return ch != _T('\0') && GetPathSeparators(format).Find(ch) != wxNOT_FOUND;
1680 wxString wxFileName::GetPath( int flags, wxPathFormat format ) const
1682 format = GetFormat( format );
1689 fullpath += wxGetVolumeString(GetVolume(), format);
1693 switch ( format )
1706 wxFAIL_MSG( wxT("Unknown path format") );
1737 if ( format == wxPATH_VMS )
1745 switch (format)
1761 wxFAIL_MSG( wxT("Unexpected path format") );
1779 fullpath += GetPathSeparator(format);
1782 if ( format == wxPATH_VMS )
1790 wxString wxFileName::GetFullPath( wxPathFormat format ) const
1794 format);
1951 wxPathFormat wxFileName::GetFormat( wxPathFormat format )
1953 if (format == wxPATH_NATIVE)
1956 format = wxPATH_DOS;
1958 format = wxPATH_MAC;
1960 format = wxPATH_VMS;
1962 format = wxPATH_UNIX;
1965 return format;
1977 wxPathFormat format)
1979 format = GetFormat(format);
1984 if ( IsUNCPath(fullpath, format) )
1989 fullpath.find_first_of(GetPathTerminators(format));
2000 if ( format == wxPATH_DOS || format == wxPATH_VMS )
2002 wxString sepVol = GetVolumeSeparator(format);
2028 wxPathFormat format)
2030 format = GetFormat(format);
2033 SplitVolume(fullpathWithVolume, pstrVolume, &fullpath, format);
2037 size_t posLastSlash = fullpath.find_last_of(GetPathTerminators(format));
2043 (format == wxPATH_VMS && fullpath[posLastDot - 1] == _T(']'))) )
2077 if ( !len && format != wxPATH_MAC)
2083 if ( format == wxPATH_VMS )
2141 wxPathFormat format)
2144 SplitPath(fullpath, &volume, path, name, ext, format);
2148 path->Prepend(wxGetVolumeString(volume, format));