-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathUtils.h
More file actions
26 lines (22 loc) · 684 Bytes
/
Utils.h
File metadata and controls
26 lines (22 loc) · 684 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
#ifndef _MEMUSE_UTILS_
#define _MEMUSE_UTILS_
#include <string>
#include <vector>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <iostream>
#include <unistd.h>
#include "tinydir.h"
using namespace std;
string grepLineWith(string path, string contains);
string grepValueXInSequence(string path, int x);
int valueXInIntegersFile(string path, int x);
vector<string> getProcDirs();
string cleanSpacesAndEtc(string s);
int stringToInt(string s, bool formated);
string removeSubstring(string s, string subs);
string getValueFromLineWithTagRemovingTag(string path, string contains);
int getPageSizeInKB();
string fillWithSpacesIfSmallerThan(string s, int x);
#endif