extensions/universalchardet/src/base/nsSBCSGroupProber.h

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:9b0851b93bcb
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/. */
5
6 #ifndef nsSBCSGroupProber_h__
7 #define nsSBCSGroupProber_h__
8
9
10 #define NUM_OF_SBCS_PROBERS 14
11
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);
22
23 #ifdef DEBUG_chardet
24 void DumpStatus();
25 #endif
26
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 };
34
35 #endif /* nsSBCSGroupProber_h__ */
36

mercurial