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

◆ TryVerifyNMTOKEN()

static Exception System.Xml.XmlConvert.TryVerifyNMTOKEN ( string name)
inlinestaticpackage

Definition at line 412 of file XmlConvert.cs.

413 {
414 if (name == null || name.Length == 0)
415 {
416 return new XmlException(System.SR.Xml_EmptyName, string.Empty);
417 }
418 int num = ValidateNames.ParseNmtokenNoNamespaces(name, 0);
419 if (num != name.Length)
420 {
421 return new XmlException(System.SR.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(name, num));
422 }
423 return null;
424 }
static string Xml_EmptyName
Definition SR.cs:292
static string Xml_BadNameChar
Definition SR.cs:44
Definition SR.cs:7

References System.Xml.XmlException.BuildCharExceptionArgs(), System.Text.RegularExpressions.name, System.Xml.ValidateNames.ParseNmtokenNoNamespaces(), System.SR.Xml_BadNameChar, System.SR.Xml_EmptyName, and System.Xml.XmlException.

Referenced by System.Xml.Schema.StringFacetsChecker.CheckBuiltInFacets().