-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathFilePath.h
More file actions
38 lines (18 loc) · 752 Bytes
/
FilePath.h
File metadata and controls
38 lines (18 loc) · 752 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
32
33
34
35
36
37
38
#pragma once
#include <vector>
#include <string>
#include "GameAPI.h"
using namespace std;
extern const string currentOblivionPath;
extern const vector<string> supportedExtensions;
bool exists (const string &path);
bool isDirectory (const string &path);
bool isExtensionSupported (const string &path);
string getFileName (const string &path);
string getFolderPath (const string &path);
string cleanPath (const string &path, bool relativize);
string trim (const string &str);
bool endsWith (const string &str, const string &ending);
bool endsWithAny (const string &str, const vector<string> &endings);
bool endsNotWith (const string &str, const string &ending);
bool endsNotWithAll (const string &str, const vector<string> &endings);