Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
nsUCSupport.cpp File Reference
#include "pratom.h"
#include "nsIComponentManager.h"
#include "nsICharRepresentable.h"
#include "nsUCSupport.h"

Go to the source code of this file.

Defines

#define DEFAULT_BUFFER_CAPACITY   16

Functions

static NS_DEFINE_CID (kUnicodeEncodeHelperCID, NS_UNICODEENCODEHELPER_CID)
static NS_DEFINE_CID (kUnicodeDecodeHelperCID, NS_UNICODEDECODEHELPER_CID)
 NS_IMPL_QUERY_INTERFACE2 (nsBasicEncoder, nsIUnicodeEncoder, nsICharRepresentable) nsEncoderSupport

Define Documentation

Definition at line 47 of file nsUCSupport.cpp.


Function Documentation

static NS_DEFINE_CID ( kUnicodeEncodeHelperCID  ,
NS_UNICODEENCODEHELPER_CID   
) [static]
static NS_DEFINE_CID ( kUnicodeDecodeHelperCID  ,
NS_UNICODEDECODEHELPER_CID   
) [static]

Definition at line 370 of file nsUCSupport.cpp.

                                                            :
  mMaxLengthFactor(aMaxLengthFactor)
{
  mBufferCapacity = DEFAULT_BUFFER_CAPACITY;
  mBuffer = new char[mBufferCapacity];

  mErrBehavior = kOnError_Signal;
  mErrChar = 0;

  Reset();
}