8#ifndef nsUniversalDetector_h__
9#define nsUniversalDetector_h__
11#include "nsCharSetProber.h"
13#define NUM_OF_CHARSET_PROBERS 3
15namespace kencodingprober
23class KCODECS_NO_EXPORT nsUniversalDetector :
public nsCharSetProber
26 nsUniversalDetector();
27 ~nsUniversalDetector()
override;
28 nsProbingState HandleData(
const char *aBuf,
unsigned int aLen)
override;
29 const char *GetCharSetName()
override;
30 void Reset(
void)
override;
31 float GetConfidence(
void)
override;
32 nsProbingState GetState()
override;
33 void SetOpion()
override
38 nsInputState mInputState;
44 const char *mDetectedCharset;
47 nsCharSetProber *mCharSetProbers[NUM_OF_CHARSET_PROBERS];
48 nsCharSetProber *mEscCharSetProber;
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.