extensions/universalchardet/src/base/nsSBCSGroupProber.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 #ifndef nsSBCSGroupProber_h__
     7 #define nsSBCSGroupProber_h__
    10 #define NUM_OF_SBCS_PROBERS    14
    12 class nsCharSetProber;
    13 class nsSBCSGroupProber: public nsCharSetProber {
    14 public:
    15   nsSBCSGroupProber();
    16   virtual ~nsSBCSGroupProber();
    17   nsProbingState HandleData(const char* aBuf, uint32_t aLen);
    18   const char* GetCharSetName();
    19   nsProbingState GetState(void) {return mState;}
    20   void      Reset(void);
    21   float     GetConfidence(void);
    23 #ifdef DEBUG_chardet
    24   void  DumpStatus();
    25 #endif
    27 protected:
    28   nsProbingState mState;
    29   nsCharSetProber* mProbers[NUM_OF_SBCS_PROBERS];
    30   bool            mIsActive[NUM_OF_SBCS_PROBERS];
    31   int32_t mBestGuess;
    32   uint32_t mActiveNum;
    33 };
    35 #endif /* nsSBCSGroupProber_h__ */

mercurial