EUCJPDistributionAnalysis Class Reference

#include <CharDistribution.h>

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

Public Member Functions

 EUCJPDistributionAnalysis ()

Protected Member Functions

PRInt32 GetOrder (const char *str)

Detailed Description

Definition at line 221 of file CharDistribution.h.


Constructor & Destructor Documentation

EUCJPDistributionAnalysis::EUCJPDistributionAnalysis (  ) 

Definition at line 105 of file CharDistribution.cpp.

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

00106 {
00107   mCharToFreqOrder = JISCharToFreqOrder;
00108   mTableSize = JIS_TABLE_SIZE;
00109   mTypicalDistributionRatio = JIS_TYPICAL_DISTRIBUTION_RATIO;
00110 }


Member Function Documentation

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

Reimplemented from CharDistributionAnalysis.

Definition at line 230 of file CharDistribution.h.

00231   { if ((unsigned char)*str >= (unsigned char)0xa0)  
00232       return 94*((unsigned char)str[0]-(unsigned char)0xa1) + (unsigned char)str[1] - (unsigned char)0xa1;
00233     else
00234       return -1;
00235   };


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