29#ifndef Pt_System_Path_h
30#define Pt_System_Path_h
32#include <Pt/System/Api.h>
68 Path(
const char* s, std::size_t n);
268 const PathImpl* impl()
const
276 std::string _pathData;
Unicode capable basic_string.
Definition Api-String.h:67
Path & assign(const Path &p)
Assigns a path name.
Path & append(const char *s, std::size_t n)
Appends an UTF-8 encoded path name.
Path & concat(const char *s, std::size_t n)
Appends an UTF-8 encoded path name.
Path operator/(const Path &a, const Pt::String &b)
Appends a paths to another.
Definition Path.h:292
Path & operator+=(const Path &p)
Concatenates a path name.
Definition Path.h:182
Path & operator+=(const Pt::String &s)
Concatenates a path name.
Definition Path.h:189
Path & operator=(const char *s)
Assigns an UTF-8 encoded path name.
Definition Path.h:104
bool operator==(const Path &a, const Path &b)
Compares two paths.
Definition Path.h:310
Path & operator=(const Path &p)
Assignment operator.
Definition Path.h:94
std::string toLocal() const
Returns the path name in local encoding.
Pt::String toGeneric() const
Returns the path name with generic separators.
static Pt::String dirsep()
Returns the directory separator string.
Path & assign(const char *s, std::size_t n)
Assigns an UTF-8 encoded path name.
Pt::String extension() const
Returns the file name extension.
Path & operator/=(const Path &p)
Appends a path name.
Definition Path.h:137
Path & operator=(const Pt::String &s)
Assigns a path name.
Definition Path.h:99
bool empty() const
Returns true if path is empty.
Path & assign(const char *s)
Assigns an UTF-8 encoded path name.
Path & append(const char *s)
Appends an UTF-8 encoded path name.
Path & operator/=(const Pt::String &s)
Appends a path name.
Definition Path.h:144
Path operator/(const Path &a, const Path &b)
Appends a paths to another.
Definition Path.h:283
Path & concat(const Path &p)
Concatenates a path name.
static Pt::String curdir()
Returns the current directory string.
Pt::String baseName() const
Returns the file name without directory and extension.
Path & append(const Path &p)
Appends a path name.
bool operator!=(const Path &a, const Path &b)
Compares two paths.
Definition Path.h:319
Path()
Default constructor.
Path(const Path &p)
Copy constructor.
Path & append(const Pt::String &s)
Appends a path name.
int compare(const Path &p) const
Compares two paths (with strcmp semantics).
Path(const char *s, std::size_t n)
Construct from an UTF-8 encoded path name.
void clear()
Clears the path.
Pt::String dirName() const
Returns the directory part.
Path(const char *s)
Construct from an UTF-8 encoded path name.
Path & operator/=(const char *s)
Appends an UTF-8 encoded path name.
Definition Path.h:151
static Pt::String updir()
Returns the parent directory string.
Path(const Pt::String &s)
Construct from a path name.
Pt::String toString() const
Returns the path name.
Path & assign(const Pt::String &s)
Assigns a path name.
Pt::String fileName() const
Returns the file name without the directroy part.
Path operator/(const Path &a, const char *b)
Appends a paths to another.
Definition Path.h:301
Path & concat(const Pt::String &s)
Concatenates a path name.
Path & operator+=(const char *s)
Concatenates a path name.
Definition Path.h:196
Path & concat(const char *s)
Concatenates a path name.
bool operator<(const Path &a, const Path &b)
Compares two paths.
Definition Path.h:328
System programming
Definition Connection.h:26
Core module.
Definition Allocator.h:33