Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ShouldStripSpace()

bool System.Xml.Xsl.Runtime.WhitespaceRuleLookup.ShouldStripSpace ( string localName,
string namespaceName )
inline

Definition at line 114 of file WhitespaceRuleLookup.cs.

115 {
117 InternalWhitespaceRule internalWhitespaceRule = _qnames[_ruleTemp] as InternalWhitespaceRule;
118 int count = _wildcards.Count;
119 while (count-- != 0)
120 {
121 InternalWhitespaceRule internalWhitespaceRule2 = _wildcards[count] as InternalWhitespaceRule;
122 if (internalWhitespaceRule != null)
123 {
124 if (internalWhitespaceRule.Priority > internalWhitespaceRule2.Priority)
125 {
126 return !internalWhitespaceRule.PreserveSpace;
127 }
128 if (internalWhitespaceRule.PreserveSpace == internalWhitespaceRule2.PreserveSpace)
129 {
130 continue;
131 }
132 }
133 if ((internalWhitespaceRule2.LocalName == null || (object)internalWhitespaceRule2.LocalName == localName) && (internalWhitespaceRule2.NamespaceName == null || (object)internalWhitespaceRule2.NamespaceName == namespaceName))
134 {
135 return !internalWhitespaceRule2.PreserveSpace;
136 }
137 }
138 if (internalWhitespaceRule != null)
139 {
140 return !internalWhitespaceRule.PreserveSpace;
141 }
142 return false;
143 }
void Init(string localName, string namespaceName, bool preserveSpace, int priority)

References System.Xml.Xsl.Runtime.WhitespaceRuleLookup._qnames, System.Xml.Xsl.Runtime.WhitespaceRuleLookup._ruleTemp, System.Xml.Xsl.Runtime.WhitespaceRuleLookup._wildcards, System.count, System.Collections.ArrayList.Count, System.Xml.Dictionary, and System.Xml.Xsl.Runtime.WhitespaceRuleLookup.InternalWhitespaceRule.Init().

Referenced by System.Xml.Xsl.Runtime.WhitespaceRuleReader.Read().