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

◆ ResolveFormatName()

DecimalFormat System.Xml.Xsl.XsltOld.XsltCompileContext.ResolveFormatName ( string formatName)
inlineprivate

Definition at line 725 of file XsltCompileContext.cs.

726 {
727 string ns = string.Empty;
728 string local = string.Empty;
729 if (formatName != null)
730 {
731 PrefixQName.ParseQualifiedName(formatName, out var prefix, out local);
733 }
735 if (decimalFormat == null)
736 {
737 if (formatName != null)
738 {
739 throw XsltException.Create(System.SR.Xslt_NoDecimalFormat, formatName);
740 }
741 decimalFormat = new DecimalFormat(new NumberFormatInfo(), '#', '0', ';');
742 }
743 return decimalFormat;
744 }
static string Xslt_NoDecimalFormat
Definition SR.cs:1936
Definition SR.cs:7
DecimalFormat GetDecimalFormat(XmlQualifiedName name)
override string LookupNamespace(string prefix)

References System.Xml.Xsl.XsltOld.XsltCompileContext._processor, System.Xml.Xsl.XsltException.Create(), System.Xml.Dictionary, System.Xml.Xsl.XsltOld.RootAction.GetDecimalFormat(), System.Xml.Xsl.XsltOld.XsltCompileContext.LookupNamespace(), System.Xml.Xsl.XsltOld.PrefixQName.ParseQualifiedName(), System.prefix, System.Xml.Xsl.XsltOld.Processor.RootAction, and System.SR.Xslt_NoDecimalFormat.