Begin converting URL struct into modern C++ class
This commit is contained in:
@ -15,6 +15,11 @@
|
||||
#include "d_size.h"
|
||||
#include "../dlib/dlib.h"
|
||||
|
||||
extern "C++"
|
||||
{
|
||||
#include <string>
|
||||
}
|
||||
|
||||
|
||||
#define URL_HTTP_PORT 80
|
||||
#define URL_HTTPS_PORT 443
|
||||
@ -98,7 +103,7 @@ struct DilloUrl {
|
||||
const char *hostname; /**/
|
||||
int port;
|
||||
int flags;
|
||||
Dstr *data; /**< POST */
|
||||
std::string data; /**< POST */
|
||||
int ismap_url_len; /**< Used by server side image maps */
|
||||
int illegal_chars; /**< number of illegal chars */
|
||||
int illegal_chars_spc; /**< number of illegal space chars */
|
||||
@ -114,7 +119,7 @@ const char *a_Url_hostname(const DilloUrl *u);
|
||||
DilloUrl* a_Url_dup(const DilloUrl *u);
|
||||
int a_Url_cmp(const DilloUrl *A, const DilloUrl *B);
|
||||
void a_Url_set_flags(DilloUrl *u, int flags);
|
||||
void a_Url_set_data(DilloUrl *u, Dstr **data);
|
||||
void a_Url_set_data(DilloUrl *u, std::string_view data);
|
||||
void a_Url_set_ismap_coords(DilloUrl *u, char *coord_str);
|
||||
char *a_Url_decode_hex_str(const char *str);
|
||||
char *a_Url_encode_hex_str(const char *str);
|
||||
|
||||
Reference in New Issue
Block a user