#include <CharDistribution.h>


| Public Member Functions | |
| Big5DistributionAnalysis () | |
| Protected Member Functions | |
| PRInt32 | GetOrder (const char *str) | 
Definition at line 176 of file CharDistribution.h.
| 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 }
| 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 };
 1.6.2-20100208
 1.6.2-20100208