Lolly
1.4.28
Loading...
Searching...
No Matches
lolly
data
uri.cpp
Go to the documentation of this file.
1
2
/******************************************************************************
3
* MODULE : uri.cpp
4
* DESCRIPTION: URI
5
* COPYRIGHT : (C) 2023 Darcy Shen
6
*******************************************************************************
7
* This software falls under the GNU general public license version 3 or later.
8
* It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
9
* in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
10
******************************************************************************/
11
12
#include "
uri.hpp
"
13
14
namespace
lolly
{
15
namespace
data {
16
17
string
18
uri_host
(
url
u
) {
19
return
as_string
(
u
[2][1]);
20
}
21
22
string
23
uri_path
(
url
u
) {
24
return
string
(
"/"
) *
as_string
(
u
[2][2],
URL_STANDARD
);
25
}
26
27
}
// namespace data
28
}
// namespace lolly
list
The list class represents a linked list.
Definition
list.hpp:48
string
Definition
string.hpp:40
url
Definition
url.hpp:37
lolly::data::uri_path
string uri_path(url u)
Definition
uri.cpp:23
lolly::data::uri_host
string uri_host(url u)
Definition
uri.cpp:18
lolly
Definition
lolly_tree_bench.cpp:13
as_string
string as_string(int16_t i)
Definition
string.cpp:272
uri.hpp
URL_STANDARD
#define URL_STANDARD
Definition
url.hpp:17
Generated by
1.10.0