Exemplo n.º 1
0
        ////////////////////////////////////////////////////////////////
        // methods
        ////////////////////////////////////////////////////////////////
        public SBCSGroupProber()
            : base()
        {
            this.probers  = new CharsetProber[14];
            this.isActive = new bool[14];

            this.probers[0] = new SingleByteCharsetProber(win1251Model);
            this.probers[1] = new SingleByteCharsetProber(koi8rModel);
            this.probers[2] = new SingleByteCharsetProber(latin5Model);
            this.probers[3] = new SingleByteCharsetProber(macCyrillicModel);
            this.probers[4] = new SingleByteCharsetProber(ibm866Model);
            this.probers[5] = new SingleByteCharsetProber(ibm855Model);
            this.probers[6] = new SingleByteCharsetProber(latin7Model);
            this.probers[7] = new SingleByteCharsetProber(win1253Model);
            this.probers[8] = new SingleByteCharsetProber(latin5BulgarianModel);
            this.probers[9] = new SingleByteCharsetProber(win1251BulgarianModel);

            HebrewProber hebprober = new HebrewProber();

            this.probers[10] = hebprober;
            this.probers[11] = new SingleByteCharsetProber(hebrewModel, false, hebprober);
            this.probers[12] = new SingleByteCharsetProber(hebrewModel, true, hebprober);
            hebprober.setModalProbers(this.probers[11], this.probers[12]);
            this.probers[13] = new SingleByteCharsetProber(thaiModel);

            reset();
        }
Exemplo n.º 2
0
        ////////////////////////////////////////////////////////////////
        // methods
        ////////////////////////////////////////////////////////////////
        public SBCSGroupProber()
            : base()
        {
            this.probers = new CharsetProber[14];
            this.isActive = new bool[14];

            this.probers[0] = new SingleByteCharsetProber(win1251Model);
            this.probers[1] = new SingleByteCharsetProber(koi8rModel);
            this.probers[2] = new SingleByteCharsetProber(latin5Model);
            this.probers[3] = new SingleByteCharsetProber(macCyrillicModel);
            this.probers[4] = new SingleByteCharsetProber(ibm866Model);
            this.probers[5] = new SingleByteCharsetProber(ibm855Model);
            this.probers[6] = new SingleByteCharsetProber(latin7Model);
            this.probers[7] = new SingleByteCharsetProber(win1253Model);
            this.probers[8] = new SingleByteCharsetProber(latin5BulgarianModel);
            this.probers[9] = new SingleByteCharsetProber(win1251BulgarianModel);

            HebrewProber hebprober = new HebrewProber();
            this.probers[10] = hebprober;
            this.probers[11] = new SingleByteCharsetProber(hebrewModel, false, hebprober);
            this.probers[12] = new SingleByteCharsetProber(hebrewModel, true, hebprober);
            hebprober.setModalProbers(this.probers[11], this.probers[12]);
            this.probers[13] = new SingleByteCharsetProber(thaiModel);

            reset();
        }