Lolly 1.4.27
Loading...
Searching...
No Matches
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
14namespace lolly {
15namespace data {
16
17string
19 return as_string (u[2][1]);
20}
21
22string
24 return string ("/") * as_string (u[2][2], URL_STANDARD);
25}
26
27} // namespace data
28} // namespace lolly
The list class represents a linked list.
Definition list.hpp:48
Definition url.hpp:37
string uri_path(url u)
Definition uri.cpp:23
string uri_host(url u)
Definition uri.cpp:18
string as_string(int16_t i)
Definition string.cpp:310
#define URL_STANDARD
Definition url.hpp:17