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

◆ ValidateNameAttribute()

void System.Xml.Schema.Preprocessor.ValidateNameAttribute ( XmlSchemaObject xso)
inlineprivate

Definition at line 1894 of file Preprocessor.cs.

1895 {
1896 string nameAttribute = xso.NameAttribute;
1897 if (nameAttribute == null || nameAttribute.Length == 0)
1898 {
1900 }
1901 nameAttribute = XmlComplianceUtil.NonCDataNormalize(nameAttribute ?? string.Empty);
1902 int num = ValidateNames.ParseNCName(nameAttribute, 0);
1903 if (num != nameAttribute.Length)
1904 {
1905 string[] array = XmlException.BuildCharExceptionArgs(nameAttribute, num);
1906 string msg = System.SR.Format(System.SR.Xml_BadNameCharWithPos, array[0], array[1], num);
1908 }
1909 else
1910 {
1912 }
1913 }
void Add(TKey key, TValue value)
static string Sch_InvalidNameAttributeEx
Definition SR.cs:1138
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string Xml_BadNameCharWithPos
Definition SR.cs:210
static string Sch_NullValue
Definition SR.cs:1156
Definition SR.cs:7
void SendValidationEvent(string code, XmlSchemaObject source)

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.array, System.Xml.XmlException.BuildCharExceptionArgs(), System.Xml.Dictionary, System.SR.Format(), System.Xml.Schema.XmlSchemaObject.NameAttribute, System.Xml.XmlComplianceUtil.NonCDataNormalize(), System.Xml.ValidateNames.ParseNCName(), System.SR.Sch_InvalidNameAttributeEx, System.SR.Sch_NullValue, System.Xml.Schema.BaseProcessor.SendValidationEvent(), and System.SR.Xml_BadNameCharWithPos.

Referenced by System.Xml.Schema.Preprocessor.PreprocessAttribute(), System.Xml.Schema.Preprocessor.PreprocessAttributeGroup(), System.Xml.Schema.Preprocessor.PreprocessComplexType(), System.Xml.Schema.Preprocessor.PreprocessElement(), System.Xml.Schema.Preprocessor.PreprocessGroup(), System.Xml.Schema.Preprocessor.PreprocessIdentityConstraint(), System.Xml.Schema.Preprocessor.PreprocessLocalAttribute(), System.Xml.Schema.Preprocessor.PreprocessLocalElement(), System.Xml.Schema.Preprocessor.PreprocessNotation(), and System.Xml.Schema.Preprocessor.PreprocessSimpleType().