EUCKRDistributionAnalysis Class Reference

#include <CharDistribution.h>

Inheritance diagram for EUCKRDistributionAnalysis:
Inheritance graph
[legend]
Collaboration diagram for EUCKRDistributionAnalysis:
Collaboration graph
[legend]

Public Member Functions

 EUCKRDistributionAnalysis ()
virtual ~EUCKRDistributionAnalysis ()

Protected Member Functions

PRInt32 GetOrder (const char *str)

Detailed Description

Definition at line 140 of file CharDistribution.h.


Constructor & Destructor Documentation

EUCKRDistributionAnalysis::EUCKRDistributionAnalysis (  ) 

Definition at line 77 of file CharDistribution.cpp.

References CharDistributionAnalysis::mCharToFreqOrder, CharDistributionAnalysis::mTableSize, and CharDistributionAnalysis::mTypicalDistributionRatio.

00078 {
00079   mCharToFreqOrder = EUCKRCharToFreqOrder;
00080   mTableSize = EUCKR_TABLE_SIZE;
00081   mTypicalDistributionRatio = EUCKR_TYPICAL_DISTRIBUTION_RATIO;
00082 }

virtual EUCKRDistributionAnalysis::~EUCKRDistributionAnalysis (  )  [inline, virtual]

Definition at line 144 of file CharDistribution.h.

00144 {}


Member Function Documentation

PRInt32 EUCKRDistributionAnalysis::GetOrder ( const char *  str  )  [inline, protected, virtual]

Reimplemented from CharDistributionAnalysis.

Definition at line 150 of file CharDistribution.h.

00151   { if ((unsigned char)*str >= (unsigned char)0xb0)  
00152       return 94*((unsigned char)str[0]-(unsigned char)0xb0) + (unsigned char)str[1] - (unsigned char)0xa1;
00153     else
00154       return -1;
00155   };


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.2-20100208