8#ifndef KENCODINGPROBER_H
9#define KENCODINGPROBER_H
14#include <kcodecs_export.h>
20#include <QCoreApplication>
24class KEncodingProberPrivate;
134 ProberType proberType()
const;
152 std::unique_ptr<KEncodingProberPrivate>
const d;
Provides encoding detection(probe) capabilities.
Definition kencodingprober.h:60
void reset()
reset the prober's internal state and data.
static QString nameForProberType(ProberType proberType)
map ProberType to language string
KEncodingProber(ProberType proberType=Universal)
Default ProberType is Universal(detect all possible encodings)
ProberState feed(const QByteArray &data)
The main class method.
ProberState state() const
void setProberType(ProberType proberType)
change current prober's ProberType and reset the prober
QByteArray encoding() const
static ProberType proberTypeForName(const QString &lang)
ProberState
Definition kencodingprober.h:64
@ Probing
Need more data to make a decision.
Definition kencodingprober.h:67
@ NotMe
Sure not included in current ProberType's all supported encodings
Definition kencodingprober.h:66
@ FoundIt
Sure find the encoding.
Definition kencodingprober.h:65