Back to index

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

#include <nsClassicDetectors.h>

Inheritance diagram for nsClassicStringDetector:
Inheritance graph
Collaboration diagram for nsClassicStringDetector:
Collaboration graph

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS nsClassicStringDetector (const char *language)
virtual ~nsClassicStringDetector ()
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 79 of file nsClassicDetectors.h.

Constructor & Destructor Documentation

Definition at line 272 of file nsClassicDetectors.cpp.

Definition at line 277 of file nsClassicDetectors.cpp.


Member Function Documentation

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

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]

Definition at line 91 of file nsClassicDetectors.h.

char nsClassicStringDetector::mLanguage[32] [protected]

Definition at line 92 of file nsClassicDetectors.h.

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