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

Lines Matching defs:CPath

34  * like wxFileName. But in addition CPath serves to enable
40 * and any function that returns wxStrings or CPath objects,
50 class CPath
54 CPath();
57 explicit CPath(const wxString& path);
60 CPath(const CPath& other);
72 static CPath FromUniv(const wxString& path);
73 /** Creates an 'universal' path from the specified CPath. */
74 static wxString ToUniv(const CPath& path);
78 CPath& operator=(const CPath& other);
80 bool operator<(const CPath& other) const;
82 bool operator==(const CPath& other) const;
84 bool operator!=(const CPath& other) const;
120 CPath GetPath() const;
122 CPath GetFullName() const;
130 * empty CPath object will not be considered equal to a path to the root.
132 bool IsSameDir(const CPath& other) const;
134 /** Returns a CPath created from joining the two objects. */
135 CPath JoinPaths(const CPath& other) const;
136 /** Returns a CPath with invalid chars removed, and spaces escaped if specified. */
137 CPath Cleanup(bool keepSpaces = true, bool isFAT32 = false) const;
138 /** Returns a CPath with a postfix before the file-extension. Must be ASCII. */
139 CPath AddPostfix(const wxString& postfix) const;
141 /** Returns a CPath object with the extension appended. Empty strings are ignored. */
142 CPath AppendExt(const wxString& ext) const;
143 /** Returns a CPath with the (last, if multiple) extension removed. */
144 CPath RemoveExt() const;
145 /** Returns a CPath object with all extensions removed. */
146 CPath RemoveAllExt() const;
150 bool StartsWith(const CPath& other) const;
169 static bool RenameFile(const CPath& src, const CPath& dst, bool overwrite = false);
175 static bool CloneFile(const CPath& src, const CPath& dst, bool overwrite = false);
178 static bool BackupFile(const CPath& src, const wxString& appendix);
181 static bool RemoveFile(const CPath& file);
183 static bool RemoveDir(const CPath& file);
185 static bool MakeDir(const CPath& file);
195 static time_t GetModificationTime(const CPath& file);
197 static sint64 GetFreeSpaceAt(const CPath& path);
207 friend int CmpAny(const CPath& ArgA, const CPath& ArgB);
210 // Make CPath printable in CFormat
212 inline CFormat& CFormat::operator%(CPath value)
222 inline int CmpAny(const CPath& ArgA, const CPath& ArgB)