EUCTWDistributionAnalysis Class Reference

#include <CharDistribution.h>

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

Public Member Functions

 EUCTWDistributionAnalysis ()
virtual ~EUCTWDistributionAnalysis ()

Protected Member Functions

PRInt32 GetOrder (const char *str)

Detailed Description

Definition at line 120 of file CharDistribution.h.


Constructor & Destructor Documentation

EUCTWDistributionAnalysis::EUCTWDistributionAnalysis (  ) 

Definition at line 70 of file CharDistribution.cpp.

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

00071 {
00072   mCharToFreqOrder = EUCTWCharToFreqOrder;
00073   mTableSize = EUCTW_TABLE_SIZE;
00074   mTypicalDistributionRatio = EUCTW_TYPICAL_DISTRIBUTION_RATIO;
00075 }

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

Definition at line 124 of file CharDistribution.h.

00124 {}


Member Function Documentation

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

Reimplemented from CharDistributionAnalysis.

Definition at line 131 of file CharDistribution.h.

00132   { if ((unsigned char)*str >= (unsigned char)0xc4)  
00133       return 94*((unsigned char)str[0]-(unsigned char)0xc4) + (unsigned char)str[1] - (unsigned char)0xa1;
00134     else
00135       return -1;
00136   };


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