-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUtils.hpp
More file actions
29 lines (26 loc) · 696 Bytes
/
Utils.hpp
File metadata and controls
29 lines (26 loc) · 696 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
#pragma once
#include <vector>
#include <string>
using namespace std;
extern const string LWS;
vector<string> split(const string &str, const string &del);
string trimStr(const string &s, const string &trim);
extern "C"
{
int ft_atoi(const char *);
int ft_atoi_base(const char *,int);
char *ft_itoa(int n);
char *ft_strdup(const char *);
int ft_toupper(int c);
}
enum FileType
{
DoesNotExist,
File,
Directory
};
string convertStrToUpWithUdsc(const string &str);
FileType getFileType(const string &path);
string getFileExt(const string &path);
string join(const string &delimiter, const vector<string> &v);
vector<string> refineStrVector(const vector<string> &v);