KDECore
kencodingprober::JapaneseContextAnalysis Class Reference
#include <JpCntx.h>
Inheritance diagram for kencodingprober::JapaneseContextAnalysis:

Public Member Functions | |
float | GetConfidence () |
bool | GotEnoughData () |
void | HandleData (const char *aBuf, unsigned int aLen) |
void | HandleOneChar (const char *aStr, unsigned int aCharLen) |
JapaneseContextAnalysis () | |
void | Reset (void) |
void | SetOpion () |
virtual | ~JapaneseContextAnalysis () |
Protected Member Functions | |
virtual int | GetOrder (const char *str)=0 |
virtual int | GetOrder (const char *str, unsigned int *charLen)=0 |
Protected Attributes | |
bool | mDone |
int | mLastCharOrder |
unsigned int | mNeedToSkipCharNum |
unsigned int | mRelSample [NUM_OF_CATEGORY] |
unsigned int | mTotalRel |
Detailed Description
Definition at line 39 of file JpCntx.h.
Constructor & Destructor Documentation
kencodingprober::JapaneseContextAnalysis::JapaneseContextAnalysis | ( | ) | [inline] |
virtual kencodingprober::JapaneseContextAnalysis::~JapaneseContextAnalysis | ( | ) | [inline, virtual] |
Member Function Documentation
float kencodingprober::JapaneseContextAnalysis::GetConfidence | ( | void | ) |
Definition at line 172 of file JpCntx.cpp.
virtual int kencodingprober::JapaneseContextAnalysis::GetOrder | ( | const char * | str | ) | [protected, pure virtual] |
Implemented in kencodingprober::SJISContextAnalysis, and kencodingprober::EUCJPContextAnalysis.
virtual int kencodingprober::JapaneseContextAnalysis::GetOrder | ( | const char * | str, | |
unsigned int * | charLen | |||
) | [protected, pure virtual] |
Implemented in kencodingprober::SJISContextAnalysis, and kencodingprober::EUCJPContextAnalysis.
bool kencodingprober::JapaneseContextAnalysis::GotEnoughData | ( | ) | [inline] |
void kencodingprober::JapaneseContextAnalysis::HandleData | ( | const char * | aBuf, | |
unsigned int | aLen | |||
) |
Definition at line 119 of file JpCntx.cpp.
void kencodingprober::JapaneseContextAnalysis::HandleOneChar | ( | const char * | aStr, | |
unsigned int | aCharLen | |||
) | [inline] |
void kencodingprober::JapaneseContextAnalysis::Reset | ( | void | ) |
Definition at line 161 of file JpCntx.cpp.
void kencodingprober::JapaneseContextAnalysis::SetOpion | ( | ) | [inline] |
Member Data Documentation
bool kencodingprober::JapaneseContextAnalysis::mDone [protected] |
int kencodingprober::JapaneseContextAnalysis::mLastCharOrder [protected] |
unsigned int kencodingprober::JapaneseContextAnalysis::mNeedToSkipCharNum [protected] |
unsigned int kencodingprober::JapaneseContextAnalysis::mRelSample[NUM_OF_CATEGORY] [protected] |
unsigned int kencodingprober::JapaneseContextAnalysis::mTotalRel [protected] |
The documentation for this class was generated from the following files: