summaryrefslogtreecommitdiff
path: root/src/gmutil.h
blob: 4a1fdee9ef11c1e1f446abc114efac45ae938d09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <the_Foundation/range.h>
#include <the_Foundation/string.h>

iDeclareType(Url)

struct Impl_Url {
    iRangecc protocol;
    iRangecc host;
    iRangecc port;
    iRangecc path;
    iRangecc query;
};

void            init_Url                (iUrl *, const iString *text);

const iString * absoluteUrl_String      (const iString *, const iString *urlMaybeRelative);
void            urlEncodeSpaces_String  (iString *);