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

◆ TryGetShortPrefix()

bool System.Xml.XmlBaseReader.NamespaceManager.TryGetShortPrefix ( string s,
out PrefixHandleType shortPrefix )
inlineprivate

Definition at line 890 of file XmlBaseReader.cs.

891 {
892 switch (s.Length)
893 {
894 case 0:
895 shortPrefix = PrefixHandleType.Empty;
896 return true;
897 case 1:
898 {
899 char c = s[0];
900 if (c >= 'a' && c <= 'z')
901 {
902 shortPrefix = PrefixHandle.GetAlphaPrefix(c - 97);
903 return true;
904 }
905 break;
906 }
907 }
908 shortPrefix = PrefixHandleType.Empty;
909 return false;
910 }

References System.Xml.Dictionary, System.Xml.PrefixHandle.GetAlphaPrefix(), and System.s.

Referenced by System.Xml.XmlBaseReader.NamespaceManager.LookupNamespace().