KCodecs

ChineseGroupProber.h
1/* -*- C++ -*-
2 SPDX-FileCopyrightText: 1998 Netscape Communications Corporation <developer@mozilla.org>
3
4 SPDX-License-Identifier: MIT
5*/
6
7#ifndef CHINESEGROUPPROBER_H
8#define CHINESEGROUPPROBER_H
9
10#include "nsCharSetProber.h"
11
12#define CN_NUM_OF_PROBERS 3
13namespace kencodingprober
14{
15class KCODECS_NO_EXPORT ChineseGroupProber : public nsCharSetProber
16{
17public:
18 ChineseGroupProber();
19 ~ChineseGroupProber() override;
20 nsProbingState HandleData(const char *aBuf, unsigned int aLen) override;
21 const char *GetCharSetName() override;
22 nsProbingState GetState(void) override
23 {
24 return mState;
25 }
26 void Reset(void) override;
27 float GetConfidence(void) override;
28 void SetOpion() override
29 {
30 }
31
32#ifdef DEBUG_PROBE
33 void DumpStatus() override;
34#endif
35
36protected:
37 nsProbingState mState;
38 nsCharSetProber *mProbers[CN_NUM_OF_PROBERS];
39 bool mIsActive[CN_NUM_OF_PROBERS];
40 int mBestGuess;
41 unsigned int mActiveNum;
42};
43}
44#endif /* CHINESEGROUPPROBER_H */
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.