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

◆ LoadDecimalFormat()

void System.Xml.Xsl.Xslt.XsltLoader.LoadDecimalFormat ( NsDecl stylesheetNsList)
inlineprivate

Definition at line 944 of file XsltLoader.cs.

945 {
948 XmlQualifiedName xmlQualifiedName;
949 if (_input.MoveToXsltAttribute(0, "name"))
950 {
954 {
955 xmlQualifiedName = new XmlQualifiedName();
956 }
957 }
958 else
959 {
960 xmlQualifiedName = new XmlQualifiedName();
961 }
962 string text = DecimalFormatDecl.Default.InfinitySymbol;
963 if (_input.MoveToXsltAttribute(1, "infinity"))
964 {
965 text = _input.Value;
966 }
967 string text2 = DecimalFormatDecl.Default.NanSymbol;
968 if (_input.MoveToXsltAttribute(2, "NaN"))
969 {
971 }
972 char[] characters = DecimalFormatDecl.Default.Characters;
973 char[] array = new char[8];
974 for (int i = 0; i < 8; i++)
975 {
976 array[i] = ParseCharAttribute(3 + i, _decimalFormatAttributes[3 + i].name, characters[i]);
977 }
978 for (int j = 0; j < 7; j++)
979 {
980 for (int k = j + 1; k < 7; k++)
981 {
982 if (array[j] == array[k])
983 {
986 break;
987 }
988 }
989 }
991 {
993 _input.MoveToXsltAttribute(1, "infinity");
995 _input.MoveToXsltAttribute(2, "NaN");
997 for (int l = 0; l < 8; l++)
998 {
1001 }
1002 }
1003 else
1004 {
1005 DecimalFormatDecl item = new DecimalFormatDecl(xmlQualifiedName, text, text2, new string(array));
1007 }
1009 }
static string Xslt_DecimalFormatRedefined
Definition SR.cs:1940
static string Xslt_DecimalFormatSignsNotDistinct
Definition SR.cs:1938
Definition SR.cs:7
bool ExitForwardsCompatible(bool fwdCompat)
Definition Compiler.cs:315
DecimalFormats DecimalFormats
Definition Compiler.cs:89
bool MoveToXsltAttribute(int attNum, string attName)
Definition XsltInput.cs:681
readonly XsltInput.XsltAttribute[] _decimalFormatAttributes
Definition XsltLoader.cs:93
void ReportError(string res, params string[] args)
static NsDecl MergeNamespaces(NsDecl thisList, NsDecl parentList)
void CheckError(bool cond, string res, params string[] args)
bool ResolveQName(bool ignoreDefaultNs, string qname, out string localName, out string namespaceName, out string prefix)
char ParseCharAttribute(int attNum, string attName, char defVal)

References System.Xml.Xsl.Xslt.XsltLoader._compiler, System.Xml.Xsl.Xslt.XsltLoader._decimalFormatAttributes, System.Xml.Xsl.Xslt.XsltLoader._input, System.array, System.Xml.Xsl.Xslt.XsltLoader.CheckError(), System.Xml.Xsl.Xslt.XsltLoader.CheckNoContent(), System.Collections.ObjectModel.KeyedCollection< TKey, TItem >.Contains(), System.Xml.Xsl.Xslt.Compiler.DecimalFormats, System.Xml.Xsl.Xslt.DecimalFormatDecl.Default, System.Xml.Dictionary, System.Xml.Xsl.Xslt.Compiler.EnterForwardsCompatible(), System.Xml.Xsl.Xslt.Compiler.ExitForwardsCompatible(), System.Xml.Xsl.Xslt.XsltInput.ForwardCompatibility, System.Xml.Xsl.Xslt.XsltInput.GetAttributes(), System.item, System.Xml.Xsl.Xslt.XsltLoader.MergeNamespaces(), System.Xml.Xsl.Xslt.XsltInput.MoveToXsltAttribute(), System.Xml.Xsl.Xslt.XsltInput.ContextInfo.nsList, System.Xml.Xsl.Xslt.XsltLoader.ParseCharAttribute(), System.Xml.Xsl.Xslt.XsltLoader.ReportError(), System.Xml.Xsl.Xslt.XsltLoader.ResolveQName(), System.text, System.Xml.Xsl.Xslt.XsltInput.Value, System.SR.Xslt_DecimalFormatRedefined, and System.SR.Xslt_DecimalFormatSignsNotDistinct.

Referenced by System.Xml.Xsl.Xslt.XsltLoader.LoadRealStylesheet().