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

◆ ParseWhitespaceRules()

void System.Xml.Xsl.Xslt.XsltLoader.ParseWhitespaceRules ( string elements,
bool preserveSpace )
inlineprivate

Definition at line 2090 of file XsltLoader.cs.

2091 {
2092 if (elements == null || elements.Length == 0)
2093 {
2094 return;
2095 }
2096 string[] array = XmlConvert.SplitString(elements);
2097 for (int i = 0; i < array.Length; i++)
2098 {
2099 string text;
2100 if (!_compiler.ParseNameTest(array[i], out var prefix, out var localName, this))
2101 {
2103 }
2104 else if (prefix == null || prefix.Length == 0)
2105 {
2106 text = prefix;
2107 }
2108 else
2109 {
2111 if (text == null)
2112 {
2114 }
2115 }
2116 int index = ((localName == null) ? 1 : 0) + ((text == null) ? 1 : 0);
2118 }
2119 }
bool ParseNameTest(string nameTest, out string prefix, out string localName, IErrorHelper errorHelper)
Definition Compiler.cs:258
void AddWhitespaceRule(int index, WhitespaceRule rule)
Definition Stylesheet.cs:55
string LookupXmlNamespace(string prefix)

References System.Xml.Xsl.Xslt.XsltLoader._compiler, System.Xml.Xsl.Xslt.XsltLoader._curStylesheet, System.Xml.Xsl.Xslt.XsltLoader._input, System.Xml.Xsl.Xslt.Stylesheet.AddWhitespaceRule(), System.array, System.Xml.Xsl.Xslt.Compiler.CreatePhantomNamespace(), System.index, System.Xml.Xsl.Xslt.XsltInput.LookupXmlNamespace(), System.Xml.Xsl.Xslt.Compiler.ParseNameTest(), System.prefix, System.Xml.XmlConvert.SplitString(), and System.text.

Referenced by System.Xml.Xsl.Xslt.XsltLoader.LoadPreserveSpace(), and System.Xml.Xsl.Xslt.XsltLoader.LoadStripSpace().