Big5DistributionAnalysis Class Reference

#include <CharDistribution.h>

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

Public Member Functions

 Big5DistributionAnalysis ()

Protected Member Functions

PRInt32 GetOrder (const char *str)

Detailed Description

Definition at line 176 of file CharDistribution.h.


Constructor & Destructor Documentation

Big5DistributionAnalysis::Big5DistributionAnalysis (  ) 

Definition at line 91 of file CharDistribution.cpp.

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

00092 {
00093   mCharToFreqOrder = Big5CharToFreqOrder;
00094   mTableSize = BIG5_TABLE_SIZE;
00095   mTypicalDistributionRatio = BIG5_TYPICAL_DISTRIBUTION_RATIO;
00096 }


Member Function Documentation

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

Reimplemented from CharDistributionAnalysis.

Definition at line 185 of file CharDistribution.h.

00186   { if ((unsigned char)*str >= (unsigned char)0xa4)  
00187       if ((unsigned char)str[1] >= (unsigned char)0xa1)
00188         return 157*((unsigned char)str[0]-(unsigned char)0xa4) + (unsigned char)str[1] - (unsigned char)0xa1 +63;
00189       else
00190         return 157*((unsigned char)str[0]-(unsigned char)0xa4) + (unsigned char)str[1] - (unsigned char)0x40;
00191     else
00192       return -1;
00193   };


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