Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
OutputScope.cs
Go to the documentation of this file.
1
using
System.Diagnostics.CodeAnalysis
;
2
3
namespace
System.Xml.Xsl.XsltOld
;
4
5
internal
sealed
class
OutputScope
:
DocumentScope
6
{
7
private
string
_name
;
8
9
private
string
_nsUri
;
10
11
private
string
_prefix
;
12
13
private
XmlSpace
_space
;
14
15
private
string
_lang
;
16
17
private
bool
_mixed
;
18
19
private
bool
_toCData
;
20
21
private
HtmlElementProps
_htmlElementProps
;
22
23
internal
string
Name
=>
_name
;
24
25
internal
string
Namespace
=>
_nsUri
;
26
27
internal
string
Prefix
28
{
29
get
30
{
31
return
_prefix
;
32
}
33
set
34
{
35
_prefix
=
value
;
36
}
37
}
38
39
internal
XmlSpace
Space
40
{
41
get
42
{
43
return
_space
;
44
}
45
set
46
{
47
_space
=
value
;
48
}
49
}
50
51
internal
string
Lang
52
{
53
get
54
{
55
return
_lang
;
56
}
57
set
58
{
59
_lang
=
value
;
60
}
61
}
62
63
internal
bool
Mixed
64
{
65
get
66
{
67
return
_mixed
;
68
}
69
set
70
{
71
_mixed
=
value
;
72
}
73
}
74
75
internal
bool
ToCData
76
{
77
get
78
{
79
return
_toCData
;
80
}
81
set
82
{
83
_toCData
=
value
;
84
}
85
}
86
87
internal
HtmlElementProps
HtmlElementProps
88
{
89
get
90
{
91
return
_htmlElementProps
;
92
}
93
set
94
{
95
_htmlElementProps
=
value
;
96
}
97
}
98
99
internal
OutputScope
()
100
{
101
Init
(
string
.
Empty
,
string
.
Empty
,
string
.
Empty
,
XmlSpace
.None,
string
.
Empty
, mixed:
false
);
102
}
103
104
[
MemberNotNull
(
"_name"
)]
105
[
MemberNotNull
(
"_nsUri"
)]
106
[
MemberNotNull
(
"_prefix"
)]
107
[
MemberNotNull
(
"_lang"
)]
108
internal
void
Init
(
string
name,
string
nspace
,
string
prefix
,
XmlSpace
space
,
string
lang,
bool
mixed)
109
{
110
scopes
=
null
;
111
_name
= name;
112
_nsUri
=
nspace
;
113
_prefix
=
prefix
;
114
_space
=
space
;
115
_lang
= lang;
116
_mixed
= mixed;
117
_toCData
=
false
;
118
_htmlElementProps
=
null
;
119
}
120
121
internal
bool
FindPrefix
(
string
urn
,
out
string
prefix
)
122
{
123
for
(
NamespaceDecl
next =
scopes
; next !=
null
; next = next.
Next
)
124
{
125
if
(
Ref
.
Equal
(next.Uri,
urn
) && next.Prefix !=
null
&& next.Prefix.Length > 0)
126
{
127
prefix
= next.Prefix;
128
return
true
;
129
}
130
}
131
prefix
=
string
.Empty;
132
return
false
;
133
}
134
}
System.Empty.Empty
Empty()
Definition
Empty.cs:7
System.Empty
Definition
Empty.cs:4
System.Xml.Ref.Equal
static bool Equal(string strA, string strB)
Definition
Ref.cs:5
System.Xml.Ref
Definition
Ref.cs:4
System.Xml.Xsl.XsltOld.DocumentScope.scopes
NamespaceDecl scopes
Definition
DocumentScope.cs:5
System.Xml.Xsl.XsltOld.DocumentScope
Definition
DocumentScope.cs:4
System.Xml.Xsl.XsltOld.HtmlElementProps
Definition
HtmlElementProps.cs:6
System.Xml.Xsl.XsltOld.NamespaceDecl.Next
NamespaceDecl Next
Definition
NamespaceDecl.cs:21
System.Xml.Xsl.XsltOld.NamespaceDecl
Definition
NamespaceDecl.cs:6
System.Xml.Xsl.XsltOld.OutputScope.Space
XmlSpace Space
Definition
OutputScope.cs:40
System.Xml.Xsl.XsltOld.OutputScope._lang
string _lang
Definition
OutputScope.cs:15
System.Xml.Xsl.XsltOld.OutputScope.FindPrefix
bool FindPrefix(string urn, out string prefix)
Definition
OutputScope.cs:121
System.Xml.Xsl.XsltOld.OutputScope._mixed
bool _mixed
Definition
OutputScope.cs:17
System.Xml.Xsl.XsltOld.OutputScope._nsUri
string _nsUri
Definition
OutputScope.cs:9
System.Xml.Xsl.XsltOld.OutputScope._toCData
bool _toCData
Definition
OutputScope.cs:19
System.Xml.Xsl.XsltOld.OutputScope._name
string _name
Definition
OutputScope.cs:7
System.Xml.Xsl.XsltOld.OutputScope._prefix
string _prefix
Definition
OutputScope.cs:11
System.Xml.Xsl.XsltOld.OutputScope._htmlElementProps
HtmlElementProps _htmlElementProps
Definition
OutputScope.cs:21
System.Xml.Xsl.XsltOld.OutputScope._space
XmlSpace _space
Definition
OutputScope.cs:13
System.Xml.Xsl.XsltOld.OutputScope.Name
string Name
Definition
OutputScope.cs:23
System.Xml.Xsl.XsltOld.OutputScope.Mixed
bool Mixed
Definition
OutputScope.cs:64
System.Xml.Xsl.XsltOld.OutputScope.OutputScope
OutputScope()
Definition
OutputScope.cs:99
System.Xml.Xsl.XsltOld.OutputScope.Prefix
string Prefix
Definition
OutputScope.cs:28
System.Xml.Xsl.XsltOld.OutputScope.ToCData
bool ToCData
Definition
OutputScope.cs:76
System.Xml.Xsl.XsltOld.OutputScope.Namespace
string Namespace
Definition
OutputScope.cs:25
System.Xml.Xsl.XsltOld.OutputScope.Lang
string Lang
Definition
OutputScope.cs:52
System.Xml.Xsl.XsltOld.OutputScope.Init
void Init(string name, string nspace, string prefix, XmlSpace space, string lang, bool mixed)
Definition
OutputScope.cs:108
System.Xml.Xsl.XsltOld.OutputScope
Definition
OutputScope.cs:6
System.Diagnostics.CodeAnalysis
Definition
AllowNullAttribute.cs:1
System.Xml.Xsl.XsltOld
Definition
IXsltDebugger.cs:1
System.Xml.XmlSpace
XmlSpace
Definition
XmlSpace.cs:4
System.Xml.ValueHandleType.Dictionary
@ Dictionary
System.ExceptionArgument.value
@ value
System.ExceptionArgument.prefix
@ prefix
source
System.Private.Xml
System.Xml.Xsl.XsltOld
OutputScope.cs
Generated by
1.10.0