X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.XML%2FSystem.Xml%2FXmlChar.cs;h=3bdd932c82be9a7973888b893695d650df98eab1;hb=099042bca09af2174e0905e0b4b245d146db9ec2;hp=0a76ae0789807c543ed44e11002ed7d27c2d1297;hpb=405dc3ea6cf92549587bad34d414e7cf427b6ebb;p=mono.git diff --git a/mcs/class/System.XML/System.Xml/XmlChar.cs b/mcs/class/System.XML/System.Xml/XmlChar.cs index 0a76ae07898..3bdd932c82b 100644 --- a/mcs/class/System.XML/System.Xml/XmlChar.cs +++ b/mcs/class/System.XML/System.Xml/XmlChar.cs @@ -8,8 +8,6 @@ // (C) 2001 Jason Diamond http://injektilo.org/ // -using System; - namespace System.Xml { internal class XmlChar @@ -43,6 +41,11 @@ namespace System.Xml return result; } + internal static bool IsPubidChar(int ch) + { + return IsWhitespace(ch) | ('a' <= ch && ch <= 'z') | ('A' <= ch && ch <= 'Z') | ('0' <= ch && ch <= '9') | "-'()+,./:=?;!*#@$_%".IndexOf((char)ch) >= 0; + } + private static byte[] firstNamePages = { 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x00,