Lolly
1.4.28
Loading...
Searching...
No Matches
System
Classes
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
15
blank_url::blank_url
(
string
name
)
16
:
url
(
url_root
(
"blank"
) *
url_get_name
(
name
)) {}
17
18
blank_url::blank_url
(
const
char
*
name
)
19
:
url
(
url_root
(
"blank"
) *
url_get_name
(
string
(
name
))) {}
20
21
bool
22
is_root_blank
(
url
u
) {
23
return
is_root
(
u
,
"blank"
);
24
}
25
26
bool
27
is_rooted_blank
(
url
u
) {
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
}
is_rooted_blank
bool is_rooted_blank(url u)
Definition
blank_url.cpp:27
is_root_blank
bool is_root_blank(url u)
Definition
blank_url.cpp:22
blank_url::blank_url
blank_url(const char *name)
Definition
blank_url.cpp:18
list
The list class represents a linked list.
Definition
list.hpp:48
string
Definition
string.hpp:40
url
Definition
url.hpp:37
url_root
url url_root(string protocol)
Definition
url.cpp:96
url_get_name
url url_get_name(string s, int type, int i)
Definition
url.cpp:190
is_root
bool is_root(url u, string s)
Definition
url.cpp:668
url.hpp
is_or
bool is_or(url u)
Definition
url.hpp:178
is_concat
bool is_concat(url u)
Definition
url.hpp:174
Generated by
1.10.0