Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs | Variables
nsPSMDetectors.h File Reference
#include "nsCOMPtr.h"
#include "nsIFactory.h"
#include "nsVerifier.h"
#include "nsSJISVerifier.h"
#include "nsEUCJPVerifier.h"
#include "nsCP1252Verifier.h"
#include "nsUTF8Verifier.h"
#include "nsISO2022JPVerifier.h"
#include "nsISO2022KRVerifier.h"
#include "nsISO2022CNVerifier.h"
#include "nsHZVerifier.h"
#include "nsUCS2BEVerifier.h"
#include "nsUCS2LEVerifier.h"
#include "nsBIG5Verifier.h"
#include "nsGB2312Verifier.h"
#include "nsGB18030Verifier.h"
#include "nsEUCTWVerifier.h"
#include "nsEUCKRVerifier.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  nsEUCStatisticsMutable
class  nsEUCSampler
class  nsPSMDetector
class  nsXPCOMDetector
class  nsXPCOMStringDetector
class  nsJAPSMDetector
class  nsJAStringPSMDetector
class  nsKOPSMDetector
class  nsKOStringPSMDetector
class  nsZHTWPSMDetector
class  nsZHTWStringPSMDetector
class  nsZHCNPSMDetector
class  nsZHCNStringPSMDetector
class  nsZHPSMDetector
class  nsZHStringPSMDetector
class  nsCJKPSMDetector
class  nsCJKStringPSMDetector

Defines

#define MAX_VERIFIERS   16
#define NS_JA_PSMDETECTOR_CID   { 0x12bb8f1b, 0x2389, 0x11d3, { 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }
#define NS_JA_STRING_PSMDETECTOR_CID   { 0x12bb8f1c, 0x2389, 0x11d3, { 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }
#define NS_KO_PSMDETECTOR_CID   { 0xea06d4e1, 0x2b3d, 0x11d3, { 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }
#define NS_ZHCN_PSMDETECTOR_CID   { 0xea06d4e2, 0x2b3d, 0x11d3, { 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }
#define NS_ZHTW_PSMDETECTOR_CID   { 0xea06d4e3, 0x2b3d, 0x11d3, { 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }
#define NS_KO_STRING_PSMDETECTOR_CID   { 0xea06d4e4, 0x2b3d, 0x11d3, { 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }
#define NS_ZHCN_STRING_PSMDETECTOR_CID   { 0xea06d4e5, 0x2b3d, 0x11d3, { 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }
#define NS_ZHTW_STRING_PSMDETECTOR_CID   { 0xea06d4e6, 0x2b3d, 0x11d3, { 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }
#define NS_ZH_STRING_PSMDETECTOR_CID   { 0xfcacef21, 0x2b40, 0x11d3, { 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }
#define NS_CJK_STRING_PSMDETECTOR_CID   { 0xfcacef22, 0x2b40, 0x11d3, { 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }
#define NS_ZH_PSMDETECTOR_CID   { 0xfcacef23, 0x2b40, 0x11d3, { 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }
#define NS_CJK_PSMDETECTOR_CID   { 0xfcacef24, 0x2b40, 0x11d3, { 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }
#define ZHTW_DETECTOR_NUM_VERIFIERS   7
#define KO_DETECTOR_NUM_VERIFIERS   6
#define ZHCN_DETECTOR_NUM_VERIFIERS   8
#define JA_DETECTOR_NUM_VERIFIERS   7
#define ZH_DETECTOR_NUM_VERIFIERS   10
#define CJK_DETECTOR_NUM_VERIFIERS   15

Typedefs

typedef const
nsEUCStatisticsMutable 
nsEUCStatistics

Variables

nsVerifier *const gZhTwVerifierSet []
nsEUCStatistics *const gZhTwStatisticsSet []
nsVerifier *const gKoVerifierSet []
nsVerifier *const gZhCnVerifierSet []
nsVerifier *const gJaVerifierSet []
nsVerifier *const gZhVerifierSet []
nsEUCStatistics *const gZhStatisticsSet []
nsVerifier *const gCJKVerifierSet []
nsEUCStatistics *const gCJKStatisticsSet []

Class Documentation

struct nsEUCStatisticsMutable

Definition at line 116 of file nsPSMDetectors.h.

Class Members
float mFirstByteFreq
float mFirstByteMean
float mFirstByteStdDev
float mFirstByteWeight
float mSecoundByteFreq
float mSecoundByteMean
float mSecoundByteStdDev
float mSecoundByteWeight

Define Documentation

Definition at line 177 of file nsPSMDetectors.h.

Definition at line 170 of file nsPSMDetectors.h.

Definition at line 164 of file nsPSMDetectors.h.

Definition at line 63 of file nsPSMDetectors.h.

#define NS_CJK_PSMDETECTOR_CID   { 0xfcacef24, 0x2b40, 0x11d3, { 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }

Definition at line 113 of file nsPSMDetectors.h.

#define NS_CJK_STRING_PSMDETECTOR_CID   { 0xfcacef22, 0x2b40, 0x11d3, { 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }

Definition at line 104 of file nsPSMDetectors.h.

#define NS_JA_PSMDETECTOR_CID   { 0x12bb8f1b, 0x2389, 0x11d3, { 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }

Definition at line 66 of file nsPSMDetectors.h.

#define NS_JA_STRING_PSMDETECTOR_CID   { 0x12bb8f1c, 0x2389, 0x11d3, { 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }

Definition at line 70 of file nsPSMDetectors.h.

#define NS_KO_PSMDETECTOR_CID   { 0xea06d4e1, 0x2b3d, 0x11d3, { 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }

Definition at line 74 of file nsPSMDetectors.h.

#define NS_KO_STRING_PSMDETECTOR_CID   { 0xea06d4e4, 0x2b3d, 0x11d3, { 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }

Definition at line 87 of file nsPSMDetectors.h.

#define NS_ZH_PSMDETECTOR_CID   { 0xfcacef23, 0x2b40, 0x11d3, { 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }

Definition at line 109 of file nsPSMDetectors.h.

#define NS_ZH_STRING_PSMDETECTOR_CID   { 0xfcacef21, 0x2b40, 0x11d3, { 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }

Definition at line 100 of file nsPSMDetectors.h.

#define NS_ZHCN_PSMDETECTOR_CID   { 0xea06d4e2, 0x2b3d, 0x11d3, { 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }

Definition at line 78 of file nsPSMDetectors.h.

#define NS_ZHCN_STRING_PSMDETECTOR_CID   { 0xea06d4e5, 0x2b3d, 0x11d3, { 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }

Definition at line 91 of file nsPSMDetectors.h.

#define NS_ZHTW_PSMDETECTOR_CID   { 0xea06d4e3, 0x2b3d, 0x11d3, { 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }

Definition at line 82 of file nsPSMDetectors.h.

#define NS_ZHTW_STRING_PSMDETECTOR_CID   { 0xea06d4e6, 0x2b3d, 0x11d3, { 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }

Definition at line 95 of file nsPSMDetectors.h.

Definition at line 173 of file nsPSMDetectors.h.

Definition at line 167 of file nsPSMDetectors.h.

Definition at line 160 of file nsPSMDetectors.h.


Typedef Documentation

Definition at line 127 of file nsPSMDetectors.h.


Variable Documentation

Definition at line 183 of file nsPSMDetectors.cpp.

Definition at line 165 of file nsPSMDetectors.cpp.

Definition at line 126 of file nsPSMDetectors.cpp.

Definition at line 102 of file nsPSMDetectors.cpp.

Definition at line 113 of file nsPSMDetectors.cpp.

Definition at line 151 of file nsPSMDetectors.cpp.

Definition at line 90 of file nsPSMDetectors.cpp.

Definition at line 138 of file nsPSMDetectors.cpp.