Subversion Repositories HomeAutomation

Rev

Rev 976 | Rev 997 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 976 Rev 981
Line 28... Line 28...
28
using namespace std;
28
using namespace std;
29
 
29
 
30
#include <cmath>
30
#include <cmath>
31
#include <sys/types.h>
31
#include <sys/types.h>
32
#include <dirent.h>
32
#include <dirent.h>
-
 
33
 
-
 
34
string niceTime();
33
 
35
 
34
string hex2bin(string hex);
36
string hex2bin(string hex);
35
string bin2hex(string bin);
37
string bin2hex(string bin);
36
 
38
 
37
float bin2float(string bin);
39
float bin2float(string bin);
38
string float2bin(float num, int length);
40
string float2bin(float num, int length);
39
 
41
 
40
unsigned int bin2uint(string bin);
42
unsigned int bin2uint(string bin);
41
string uint2bin(unsigned int num, int length);
43
string uint2bin(unsigned int num, int length);
-
 
44
 
-
 
45
string uint2hex(unsigned int num, int length);
42
 
46
 
43
vector<string> explode(string delimiter, string str);
47
vector<string> explode(string delimiter, string str);
44
string strtoupper(string s);
48
string strtoupper(string s);
45
string strtolower(string s);
49
string strtolower(string s);
46
string trim(string s);
50
string trim(string s);
47
string trim(string s, char c);
51
string trim(string s, char c);
48
int stoi(const string s);
52
int stoi(const string s);
49
string itos(int i);
53
string itos(int i);
-
 
54
string utos(unsigned int i);
-
 
55
unsigned int stou(const string s);
50
float stof(const string s);
56
float stof(const string s);
51
string ftos(float f);
57
string ftos(float f);
52
string str_replace(string search, string replace, string str);
58
string str_replace(string search, string replace, string str);
53
string file_get_contents(string filename);
59
string file_get_contents(string filename);
54
bool file_exists(string filename);
60
bool file_exists(string filename);