extensions/universalchardet/src/base/nsSBCSGroupProber.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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