40 return num ==
s.Length;
66 return num ==
s.Length;
101 if (num == 0 || num !=
s.Length)
136 if (num == 0 || num !=
s.Length)
149 localName =
s.Substring(num + 1);
161 if (
s.Length != 0 &&
s[0] ==
'*')
163 prefix = (localName =
null);
171 localName =
s.Substring(0, num);
172 if (num <
s.Length &&
s[num] ==
':')
198 prefix = (localName =
null);
201 if (num == 0 || num !=
s.Length)
239 if (
s[0] !=
'x' &&
s[0] !=
'X')
243 if (
s[1] !=
'm' &&
s[1] !=
'M')
247 if (
s[2] !=
'l' &&
s[2] !=
'L')
256 if (!
s.Equals(
"http://www.w3.org/XML/1998/namespace"))
258 return s.Equals(
"http://www.w3.org/2000/xmlns/");
275 if ((flags &
Flags.NCNames) != 0)
286 if ((flags &
Flags.CheckLocalName) != 0)
294 if (localName.Length == 0 || (localName.Length == 3 &&
StartsWithXml(localName)))
303 else if (localName.Length != 0)
313 if (ns.Length == 0 && localName.Equals(
"xmlns"))
326 if (localName.Length == 0)
337 if ((flags &
Flags.CheckPrefixMapping) != 0)
370 if (!ns.Equals(
"http://www.w3.org/XML/1998/namespace"))
380 if (
prefix.Equals(
"xmlns"))
398 if (
prefix.Length != 0 || ns.Length != 0)
408 if (
prefix.Length != 0 || ns.Length != 0)
428 return prefix +
":" + localName;
433 int num = name.IndexOf(
':');
440 if (num == 0 || name.Length - 1 == num)
446 prefix = name.Substring(0, num);
448 lname = name.Substring(num, name.Length - num);
static string Xml_PrefixForEmptyNs
static string Xml_EmptyName
static string Xml_BadStartNameChar
static string Format(string resourceFormat, object p1)
static string Xml_InvalidPIName
static string Xml_XmlPrefix
static string Xml_NamespaceDeclXmlXmlns
static string Xml_BadNameChar
static string XmlNoNameAllowed
static string Xdom_Empty_LocalName
static string Xml_XmlnsPrefix
static int ParseNCName(string s)
static bool IsNameNoNamespaces(string s)
static int ParseNameNoNamespaces(string s, int offset)
static void ThrowInvalidName(string s, int offsetStartChar, int offsetBadChar)
static Exception GetInvalidNameException(string s, int offsetStartChar, int offsetBadChar)
static void ParseQNameThrow(string s, out string prefix, out string localName)
static int ParseQName(string s, int offset, out int colonOffset)
static string ParseNCNameThrow(string s)
static int ParseNmtoken(string s, int offset)
static bool ValidateNameInternal(string prefix, string localName, string ns, XPathNodeType nodeKind, Flags flags, bool throwOnError)
static bool ValidateName(string prefix, string localName, string ns, XPathNodeType nodeKind, Flags flags)
static void ValidateNameThrow(string prefix, string localName, string ns, XPathNodeType nodeKind, Flags flags)
static int ParseNmtokenNoNamespaces(string s, int offset)
static int ParseQNameThrow(string s)
static bool IsNmtokenNoNamespaces(string s)
static int ParseNCName(string s, int offset)
static bool ParseNCNameInternal(string s, bool throwOnError)
static void ParseNameTestThrow(string s, out string prefix, out string localName)
static bool IsReservedNamespace(string s)
static bool StartsWithXml(string s)
static string CreateName(string prefix, string localName)
static void SplitQName(string name, out string prefix, out string lname)
static bool IsStartNCNameSingleChar(char ch)
static bool IsNCNameSingleChar(char ch)
static bool IsNameSingleChar(char ch)
static string[] BuildCharExceptionArgs(string data, int invCharIndex)