-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPath.h
More file actions
31 lines (25 loc) · 737 Bytes
/
Path.h
File metadata and controls
31 lines (25 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef PATH_H_GUARD_dj2434324
#define PATH_H_GUARD_dj2434324
#include "Filename.h"
namespace fs {
class Path {
Filename path;
void addDelim();
public:
Path() = default;
Path(Filename const & path);
Path append(Filename const & subpath) const;
Path append(Path const & subpath) const;
Path replaceFilename(Filename const & filename) const;
Filename asFilename() const;
operator Filename() const;
static char const delim;
static char const otherDelim;
static Filename normalize(Filename path);
static Filename changeSeparator(Filename path, char ch);
static Filename changeSeparator(Filename path, wchar_t ch);
static bool isDelim(char ch);
static bool isDelim(wchar_t ch);
};
}
#endif