7#ifndef nsEscCharSetProber_h__
8#define nsEscCharSetProber_h__
10#include "nsCharSetProber.h"
11#include "nsCodingStateMachine.h"
13#define NUM_OF_ESC_CHARSETS 4
14namespace kencodingprober
16class KCODECS_NO_EXPORT nsEscCharSetProber :
public nsCharSetProber
19 nsEscCharSetProber(
void);
20 ~nsEscCharSetProber(
void)
override;
21 nsProbingState HandleData(
const char *aBuf,
unsigned int aLen)
override;
22 const char *GetCharSetName()
override
24 return mDetectedCharset;
26 nsProbingState GetState(
void)
override
30 void Reset(
void)
override;
31 float GetConfidence(
void)
override
35 void SetOpion()
override
40 void GetDistribution(
unsigned int aCharLen,
const char *aStr);
42 nsCodingStateMachine *mCodingSM[NUM_OF_ESC_CHARSETS];
43 unsigned int mActiveSM;
44 nsProbingState mState;
45 const char *mDetectedCharset;
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:08 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.