Lolly 1.4.28
Loading...
Searching...
No Matches
blank_url.cpp
Go to the documentation of this file.
1
2/******************************************************************************
3 * MODULE : blank_url.cpp
4 * DESCRIPTION: url rooted with //
5 * COPYRIGHT : (C) 1999 Joris van der Hoeven
6 * 2023 Darcy Shen
7 *******************************************************************************
8 * This software falls under the GNU general public license version 3 or later.
9 * It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
10 * in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
11 ******************************************************************************/
12
13#include "url.hpp"
14
16 : url (url_root ("blank") * url_get_name (name)) {}
17
19 : url (url_root ("blank") * url_get_name (string (name))) {}
20
21bool
23 return is_root (u, "blank");
24}
25
26bool
28 return is_root_blank (u) || (is_concat (u) && is_rooted_blank (u[1])) ||
29 (is_or (u) && is_rooted_blank (u[1]) && is_rooted_blank (u[2]));
30}
bool is_rooted_blank(url u)
Definition blank_url.cpp:27
bool is_root_blank(url u)
Definition blank_url.cpp:22
blank_url(const char *name)
Definition blank_url.cpp:18
The list class represents a linked list.
Definition list.hpp:48
Definition url.hpp:37
url url_root(string protocol)
Definition url.cpp:96
url url_get_name(string s, int type, int i)
Definition url.cpp:190
bool is_root(url u, string s)
Definition url.cpp:668
bool is_or(url u)
Definition url.hpp:178
bool is_concat(url u)
Definition url.hpp:174