29 #ifndef Pt_System_Path_h
30 #define Pt_System_Path_h
32 #include <Pt/System/Api.h>
33 #include <Pt/String.h>
66 explicit Path(
const char* s);
70 explicit Path(
const char* s, std::size_t n);
88 Path& assign(
const char* s);
92 Path& assign(
const char* s, std::size_t n);
102 {
return assign(s); }
107 {
return assign(s); }
127 Path& append(
const char* s);
133 Path& append(
const char* s, std::size_t n);
140 {
return append(p); }
147 {
return append(s); }
154 {
return append(s); }
174 Path& concat(
const char* s);
180 Path& concat(
const char* s, std::size_t n);
185 {
return concat(p); }
192 {
return concat(s); }
199 {
return concat(s); }
235 int compare(
const Path& p)
const;
245 std::string toLocal()
const;
263 const PathImpl* impl()
const
271 std::string _pathData;
332 #endif // Pt_System_Path_h
bool operator!=(const Path &a, const Path &b)
Compares two paths.
Definition: Path.h:314
Path operator/(const Path &a, const Path &b)
Appends a paths to another.
Definition: Path.h:278
int compare(const Path &p) const
Compares two paths (with strcmp semantics).
Represents a path in the file-system.
Definition: Path.h:47
Path & operator/=(const char *s)
Appends an UTF-8 encoded path name.
Definition: Path.h:153
Path operator/(const Path &a, const char *b)
Appends a paths to another.
Definition: Path.h:296
Path & operator/=(const Path &p)
Appends a path name.
Definition: Path.h:139
Path & operator/=(const Pt::String &s)
Appends a path name.
Definition: Path.h:146
Path & operator=(const Path &p)
Assignment operator.
Definition: Path.h:96
Path operator/(const Path &a, const Pt::String &b)
Appends a paths to another.
Definition: Path.h:287
Path & operator+=(const Pt::String &s)
Concatenates a path name.
Definition: Path.h:191
Unicode capable basic_string.
Definition: String.h:42
Path & operator=(const char *s)
Assigns an UTF-8 encoded path name.
Definition: Path.h:106
Path & operator+=(const char *s)
Concatenates a path name.
Definition: Path.h:198
bool operator==(const Path &a, const Path &b)
Compares two paths.
Definition: Path.h:305
Path & operator=(const Pt::String &s)
Assigns a path name.
Definition: Path.h:101
bool operator<(const Path &a, const Path &b)
Compares two paths.
Definition: Path.h:323
Path & operator+=(const Path &p)
Concatenates a path name.
Definition: Path.h:184