-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtools.h
58 lines (50 loc) · 2.12 KB
/
tools.h
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef TOOLS_H
#define TOOLS_H
#include <string.h>
#include <cmath>
#include <iostream>
#include <fstream>
#include <sstream>
#include <unistd.h>
#include <QString>
#include <vector>
int dayNumber(int day, int month, int year);
std::string dayname(int day);
std::string getMonthName(int monthNumber);
int numberOfDays (int monthNumber, int year);
int getwordnumericvalue(std::string word, int reduced, int reversed, int type);
bool findword(int c1, std::string line);
void eraseAllSubStr(std::string & mainStr, const std::string & toErase);
void savelog(std::string line);
void logtime();
std::string isprime(int prime);
std::string istriangular(int tri);
int reduce(int sum);
int reverse(int sum);
QString deletelastline();
QString savetext(std::string line);
std::string tolowerCase(std::string &str);
int eu_amdate(int eu_am, int d1, int d2, int m1, int m2, int ns);
int daynr(int dd,int mm,int year);
int daynrleft(int dd, int mm, int year);
int getnprime(int prime);
int getntriangular(int tri);
int eu_amdate(int eu_am, int d1, int d2, int m1, int m2, int ns);
int spanofdate(int d2, int m2, int y2, int dd, int mm, int year);
std::string formattext(std::string line, int color, int bold);
QString listnumbers(char type);
int valid_date(int dd, int mm, int yy);
void savetotemp(std::string line);
void replaceAll( std::string &s, const std::string &search, const std::string &replace );
void replaceAllQ( QString &s, const QString &search, const QString &replace );
QString listhistory(QString filter);
void createSettings(std::string file, std:: string entry);
QString readSettings(std::string file, std::string entry);
void writeSettings(char file[], std::string entry,std::string settings);
QString Qformattext(QString line, int color, int bold);
bool is_number(const std::string& s);
QString numberproperties(QString number);
QString numberseat(char type, int number);
int a_seconddate(QString output_type);
int monthbeetween(int m_from, int m_to, int daysbeetween,QChar type);
#endif // TOOLS_H