Moved internal header files to src dir
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#include "Telegram/http_build_query.h"
|
||||
#include "http_build_query.h"
|
||||
|
||||
std::string http_build_query(std::map<std::string, std::string> data) {
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
#ifndef __HTTP_BUILD_QUERY_H__
|
||||
#define __HTTP_BUILD_QUERY_H__
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
std::string http_build_query(std::map<std::string, std::string>);
|
||||
|
||||
#endif
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
#include "Telegram/json_encode.h"
|
||||
#include "json_encode.h"
|
||||
|
||||
std::string json_encode(std::map<std::string, std::string> parameters) {
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
#ifndef __JSON_ENCODE_H__
|
||||
#define __JSON_ENCODE_H__
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <json/json.h>
|
||||
|
||||
std::string json_encode(std::map<std::string, std::string>);
|
||||
|
||||
#endif
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
#include "Telegram/std.h"
|
||||
#include "std.h"
|
||||
|
||||
#include <pwd.h>
|
||||
#include <time.h>
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
#ifndef __STD_H__
|
||||
#define __STD_H__
|
||||
|
||||
#include <ios>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
// Makro(s)
|
||||
#define SSTR( x ) static_cast< std::ostringstream & >(( std::ostringstream() << std::dec << x ) ).str()
|
||||
|
||||
typedef unsigned long long int uint64;
|
||||
|
||||
uint64 stoi(std::string);
|
||||
std::string itos(uint64);
|
||||
std::string currentDate();
|
||||
std::vector<std::string> split(const std::string &text, char sep = ' ');
|
||||
float stof(std::string);
|
||||
std::string trim(const std::string&);
|
||||
std::string gethome();
|
||||
void Log(std::string);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user