36 lines
561 B
C++
36 lines
561 B
C++
|
#ifndef TV_FUNCTIONS_H
|
||
|
#define TV_FUNCTIONS_H
|
||
|
|
||
|
#include <map>
|
||
|
#include <set>
|
||
|
#include <string>
|
||
|
#include <unordered_map>
|
||
|
#include <unordered_set>
|
||
|
#include <vector>
|
||
|
|
||
|
#include "../network/network.hpp"
|
||
|
|
||
|
#ifdef _WIN32
|
||
|
|
||
|
using string = std::wstring;
|
||
|
using char_t = wchar_t;
|
||
|
|
||
|
std::wstring utf8_to_wstring( const std::string &utf8 );
|
||
|
|
||
|
#else
|
||
|
|
||
|
using string = std::string;
|
||
|
using char_t = char;
|
||
|
|
||
|
#define TEXT( x ) x
|
||
|
|
||
|
#endif
|
||
|
|
||
|
#ifdef __APPLE__
|
||
|
void error( int status, int i_errno, const char *fmt, ... );
|
||
|
#endif
|
||
|
|
||
|
// CLI functions
|
||
|
string encodeUrl( const string &url );
|
||
|
#endif
|