-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutils.h
More file actions
31 lines (26 loc) · 703 Bytes
/
utils.h
File metadata and controls
31 lines (26 loc) · 703 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
#pragma once
#include <cstdlib>
#include <map>
#include <string>
#include <cstring>
#include <vector>
#include <cstdio>
#include <iostream>
#include <unistd.h>
#include <cmath>
#define NAME "name"
#define NAME_IG "name_ignore"
#define DIR_IG "dir_ignore"
#define PERM "perm"
using namespace std;
typedef string file_name;
typedef string file_lines;
typedef char* m_string;
string strip(string str, bool del_left);
string& deltab(string& str);
bool get_filter();
bool combining(string& options);
bool get_arg(int& argc, char** argv, string& target, string& path, int& enhence);
bool run_cmd(vector<string>& res, char* cmd);
void usage();
pair<file_name, file_lines> get_file_lines(string str);