Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Attributes
nsKOStringCharsetClassicDetector Class Reference

#include <nsClassicDetectors.h>

Inheritance diagram for nsKOStringCharsetClassicDetector:
Inheritance graph
Collaboration diagram for nsKOStringCharsetClassicDetector:
Collaboration graph

List of all members.

Public Member Functions

 nsKOStringCharsetClassicDetector ()
NS_IMETHOD DoIt (const char *aBuf, PRUint32 aLen, const char **oCharset, nsDetectionConfident &oConfident)

Protected Attributes

char mCharset [65]
char mLanguage [32]

Detailed Description

Definition at line 116 of file nsClassicDetectors.h.

Constructor & Destructor Documentation

Definition at line 119 of file nsClassicDetectors.h.

Member Function Documentation

NS_IMETHODIMP nsClassicStringDetector::DoIt ( const char *  aBuf,
PRUint32  aLen,
const char **  oCharset,
nsDetectionConfident oConfident 
) [virtual, inherited]

Implements nsIStringCharsetDetector.

Definition at line 282 of file nsClassicDetectors.cpp.

  oConfident = eNoAnswerMatch;
  *oCharset = "";

  if (!PL_strcasecmp("ja", mLanguage) &&
      NS_SUCCEEDED(JA_AutoCharsetDetectBuffer(aBuf, (PRInt32) aLen, mCharset))) {
    *oCharset = mCharset;
    oConfident = eBestAnswer;

  return NS_OK;

Here is the call graph for this function:

Member Data Documentation

char nsClassicStringDetector::mCharset[65] [protected, inherited]

Definition at line 91 of file nsClassicDetectors.h.

char nsClassicStringDetector::mLanguage[32] [protected, inherited]

Definition at line 92 of file nsClassicDetectors.h.

The documentation for this class was generated from the following file: