Logo Search packages:      
Sourcecode: xulrunner-1.9 version File versions

nsMultiTableEncoderSupport Class Reference

#include <nsUCSupport.h>

Inheritance diagram for nsMultiTableEncoderSupport:

nsEncoderSupport nsIUnicodeEncoder nsISupports nsISupports

List of all members.

Detailed Description

Support class for a multi-table-driven Unicode encoder.


Catalin Rotaru [CATA]

Definition at line 452 of file nsUCSupport.h.

Public Types

enum  { kOnError_Signal, kOnError_CallBack, kOnError_Replace }

Public Member Functions

NS_IMETHOD Convert (const PRUnichar *aSrc, PRInt32 *aSrcLength, char *aDest, PRInt32 *aDestLength)
NS_IMETHOD FillInfo (PRUint32 *aInfo)
NS_IMETHOD Finish (char *aDest, PRInt32 *aDestLength)
NS_IMETHOD GetMaxLength (const PRUnichar *aSrc, PRInt32 aSrcLength, PRInt32 *aDestLength)
 nsMultiTableEncoderSupport (PRInt32 aTableCount, uScanClassID *aScanClassArray, uShiftOutTable **aShiftOutTable, uMappingTable **aMappingTable, PRUint32 aMaxLengthFactor)
NS_IMETHOD SetOutputErrorBehavior (PRInt32 aBehavior, nsIUnicharEncoder *aEncoder, PRUnichar aChar)
virtual ~nsMultiTableEncoderSupport ()
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

Protected Member Functions

NS_IMETHOD ConvertNoBuff (const PRUnichar *aSrc, PRInt32 *aSrcLength, char *aDest, PRInt32 *aDestLength)
NS_IMETHOD ConvertNoBuffNoErr (const PRUnichar *aSrc, PRInt32 *aSrcLength, char *aDest, PRInt32 *aDestLength)
NS_IMETHOD FinishNoBuff (char *aDest, PRInt32 *aDestLength)
nsresult FlushBuffer (char **aDest, const char *aDestEnd)

Protected Attributes

char * mBuffer
PRInt32 mBufferCapacity
char * mBufferEnd
char * mBufferStart
PRInt32 mErrBehavior
PRUnichar mErrChar
nsCOMPtr< nsIUnicharEncodermErrEncoder
uMappingTable ** mMappingTable
PRUint32 mMaxLengthFactor
uScanClassID * mScanClassArray
uShiftOutTable ** mShiftOutTable
PRInt32 mTableCount

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

Generated by  Doxygen 1.6.0   Back to index