Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ CompileDecimalFormat()

void System.Xml.Xsl.XsltOld.ContainerAction.CompileDecimalFormat ( Compiler compiler)
inlineprotectedinherited

Definition at line 289 of file ContainerAction.cs.

290 {
293 XmlQualifiedName xmlQualifiedName = null;
294 NavigatorInput input = compiler.Input;
295 if (input.MoveToFirstAttribute())
296 {
297 do
298 {
299 if (input.Prefix.Length != 0)
300 {
301 continue;
302 }
303 string localName = input.LocalName;
304 string value = input.Value;
305 if (Ref.Equal(localName, input.Atoms.Name))
306 {
307 xmlQualifiedName = compiler.CreateXPathQName(value);
308 }
309 else if (Ref.Equal(localName, input.Atoms.DecimalSeparator))
310 {
312 }
313 else if (Ref.Equal(localName, input.Atoms.GroupingSeparator))
314 {
316 }
317 else if (Ref.Equal(localName, input.Atoms.Infinity))
318 {
320 }
321 else if (Ref.Equal(localName, input.Atoms.MinusSign))
322 {
324 }
325 else if (Ref.Equal(localName, input.Atoms.NaN))
326 {
328 }
329 else if (Ref.Equal(localName, input.Atoms.Percent))
330 {
332 }
333 else if (Ref.Equal(localName, input.Atoms.PerMille))
334 {
336 }
337 else if (Ref.Equal(localName, input.Atoms.Digit))
338 {
339 if (CheckAttribute(value.Length == 1, compiler))
340 {
342 }
343 }
344 else if (Ref.Equal(localName, input.Atoms.ZeroDigit))
345 {
346 if (CheckAttribute(value.Length == 1, compiler))
347 {
349 }
350 }
351 else if (Ref.Equal(localName, input.Atoms.PatternSeparator) && CheckAttribute(value.Length == 1, compiler))
352 {
354 }
355 }
356 while (input.MoveToNextAttribute());
357 input.ToParent();
358 }
360 if (xmlQualifiedName == null)
361 {
362 xmlQualifiedName = new XmlQualifiedName();
363 }
364 compiler.AddDecimalFormat(xmlQualifiedName, decimalFormat);
366 }
bool CheckAttribute(bool valid, Compiler compiler)

References System.Xml.Xsl.XsltOld.ContainerAction.CheckAttribute(), System.Xml.Xsl.XsltOld.CompiledAction.CheckEmpty(), System.Xml.Dictionary, System.Xml.Ref.Equal(), System.input, System.Xml.Xsl.XsltOld.NavigatorInput.LocalName, and System.value.

Referenced by System.Xml.Xsl.XsltOld.ContainerAction.CompileTopLevelElements().