~efargaspro/+junk/codeblocks-16.01-release

« back to all changes in this revision

Viewing changes to src/include/mozilla_chardet/nsSBCSGroupProber.h.org

  • Committer: damienlmoore at gmail
  • Date: 2016-02-02 02:43:22 UTC
  • Revision ID: damienlmoore@gmail.com-20160202024322-yql5qmtbwdyamdwd
Code::BlocksĀ 16.01

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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