acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
url_domain.h
1
// url_domain_base based on particle for once upon a time globals by
2
// camilo on 204-06-03 17:50 <3ThomasBorregaardSorensen!!
3
#pragma once
4
5
6
class
CLASS_DECL_ACME url_domain_base :
7
virtual
public
::particle
8
{
9
public
:
10
11
12
string
m_strOriginalName;
13
14
15
const_char_pointer m_pszRadix;
16
character_count m_iLenRadix;
17
const_char_pointer m_pszSuffix;
18
character_count m_iLenSuffix;
19
const_char_pointer m_pszDomain;
20
character_count m_iLenDomain;
21
const_char_pointer m_pszPrefix;
22
character_count m_iLenPrefix;
23
const_char_pointer m_pszTopLevel;
24
character_count m_iLenTopLevel;
25
const_char_pointer m_pszName;
26
character_count m_iLenName;
27
28
::collection::count m_iCount;
29
bool
m_bHasWww;
30
31
32
url_domain_base();
33
34
35
void
create(const ::scoped_string & scopedstrServerName);
36
37
38
virtual
string
get_name(const ::scoped_string & scopedstrServerName);
39
40
41
};
42
43
44
class
CLASS_DECL_ACME
url_domain
:
45
public
url_domain_base
46
{
47
public
:
48
49
50
string
m_strRadix;
51
string
m_strSuffix;
52
string
m_strDomain;
53
string
m_strPrefix;
54
string
m_strTopLevel;
55
string
m_strName;
56
57
string
m_strTextRadix;
58
string
m_strTextSuffix;
59
string
m_strTextDomain;
60
string
m_strTextPrefix;
61
string
m_strTextTopLevel;
62
string
m_strTextName;
63
64
void
create(const ::scoped_string & scopedstrServerName);
65
66
67
};
68
69
70
71
bool
CLASS_DECL_ACME server_is_top_domain(const_char_pointer pszTop1, character_count iLen1, const_char_pointer pszTop2, character_count iLen2);
72
73
inline
bool
CLASS_DECL_ACME server_is_top_domain(const ::scoped_string & scopedstrTop1, const ::scoped_string & scopedstrTop2)
74
{
75
76
return
server_is_top_domain(scopedstrTop1, scopedstrTop1.length(), scopedstrTop2, scopedstrTop2.length());
77
78
}
79
80
url_domain
Definition
url_domain.h:46
prototype
prototype
url_domain.h
Generated by
1.17.0