Exemplo n.º 1
0
        private static void checkCharClasses()
        {
            if (charClassN != null)
            {
                return;
            }

            charClassN = new XmlBCharClass();
            charClassN.init("0123456789");

            charClassA = new XmlBCharClass();
            charClassA.init("ABCDEFGHIJKLMNOPQRSTUVWXYZ");

            charClassE = new XmlBCharClass();
            charClassE.init(" ");

            charClassC = new XmlBCharClass();
            charClassC.init("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ");

            charClassH = new XmlBCharClass();
            charClassH.init("0123456789ABCDEF");

            charClassX = new XmlBCharClass();
            charClassX.init("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz/-?:().,+{}\' ");

            charClassY = new XmlBCharClass();
            charClassY.init("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ.,-()/=+:?!%&*<>\'\" ");

            charClassZ = new XmlBCharClass();
            charClassZ.init("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.,-()/=+:?!%&*<>;{@#\'\" ");

            charClassD = new XmlBCharClassD();
            charClassD.init("0123456789,");
        }
        private static void checkCharClasses()
        {
            if (charClassN != null)
                return;

            charClassN = new XmlBCharClass();
            charClassN.init("0123456789");

            charClassA = new XmlBCharClass();
            charClassA.init("ABCDEFGHIJKLMNOPQRSTUVWXYZ");

            charClassE = new XmlBCharClass();
            charClassE.init(" ");

            charClassC = new XmlBCharClass();
            charClassC.init("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ");

            charClassH = new XmlBCharClass();
            charClassH.init("0123456789ABCDEF");

            charClassX = new XmlBCharClass();
            charClassX.init("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz/-?:().,+{}\' ");

            charClassY = new XmlBCharClass();
            charClassY.init("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ.,-()/=+:?!%&*<>\'\" ");

            charClassZ = new XmlBCharClass();
            charClassZ.init("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.,-()/=+:?!%&*<>;{@#\'\" ");

            charClassD = new XmlBCharClassD();
            charClassD.init("0123456789,");
        }