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

◆ Lang()

bool MS.Internal.Xml.XPath.BooleanFunctions.Lang ( XPathNodeIterator nodeIterator)
inlineprivate

Definition at line 90 of file BooleanFunctions.cs.

91 {
92 string text = _arg.Evaluate(nodeIterator).ToString();
93 string xmlLang = nodeIterator.Current.XmlLang;
94 if (xmlLang.StartsWith(text, StringComparison.OrdinalIgnoreCase))
95 {
96 if (xmlLang.Length != text.Length)
97 {
98 return xmlLang[text.Length] == '-';
99 }
100 return true;
101 }
102 return false;
103 }
object Evaluate(XPathNodeIterator nodeIterator)

References MS.Internal.Xml.XPath.BooleanFunctions._arg, System.Xml.XPath.XPathNodeIterator.Current, MS.Internal.Xml.XPath.Query.Evaluate(), System.text, and System.Xml.XPath.XPathNavigator.XmlLang.

Referenced by MS.Internal.Xml.XPath.BooleanFunctions.Evaluate().