Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines
nsIUnicodeEncoder.h File Reference
#include "nscore.h"
#include "nsError.h"
#include "nsISupports.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsIUnicharEncoder
 Interface which converts a single character from Unicode into a given charset. More...
class  nsIUnicodeEncoder
 Interface for a Converter from Unicode into a Charset. More...

Defines

#define NS_IUNICODEENCODER_IID
#define NS_IUNICHARENCODER_IID
#define NS_OK_UENC_EXACTLENGTH   NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_UCONV, 0x21)
#define NS_OK_UENC_MOREOUTPUT   NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_UCONV, 0x22)
#define NS_ERROR_UENC_NOMAPPING   NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_UCONV, 0x23)
#define NS_OK_UENC_MOREINPUT   NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_UCONV, 0x24)
#define NS_UNICODEENCODER_CONTRACTID_BASE   "@mozilla.org/intl/unicode/encoder;1?charset="
#define ENCODER_BUFFER_ALLOC_IF_NEEDED(p, e, s, l, sb, sbl, al)
#define ENCODER_BUFFER_FREE_IF_NEEDED(p, sb)

Define Documentation

#define ENCODER_BUFFER_ALLOC_IF_NEEDED (   p,
  e,
  s,
  l,
  sb,
  sbl,
  al 
)
Value:
PR_BEGIN_MACRO                                          \
    if (e                                                 \
        && NS_SUCCEEDED((e)->GetMaxLength((s), (l), &(al)))\
        && ((al) > (PRInt32)(sbl))                        \
        && (nsnull!=((p)=(char*)nsMemory::Alloc((al)+1))) \
        ) {                                               \
    }                                                     \
    else {                                                \
      (p) = (char*)(sb);                                  \
      (al) = (sbl);                                       \
    }                                                     \
  PR_END_MACRO

Definition at line 102 of file nsIUnicodeEncoder.h.

Value:
PR_BEGIN_MACRO                            \
    if ((p) != (char*)(sb))                 \
      nsMemory::Free(p);                    \
  PR_END_MACRO

Definition at line 119 of file nsIUnicodeEncoder.h.

Definition at line 63 of file nsIUnicodeEncoder.h.

Value:
{ 0x299bccd0, 0xc6df, 0x11d2, \
              {0x8a, 0xa8, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36 }}

Definition at line 53 of file nsIUnicodeEncoder.h.

Value:
{ 0x2b2ca3d0, 0xa4c9, 0x11d2, \
              { 0x8a, 0xa1, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36 }}

Definition at line 47 of file nsIUnicodeEncoder.h.

Definition at line 57 of file nsIUnicodeEncoder.h.

Definition at line 66 of file nsIUnicodeEncoder.h.

Definition at line 60 of file nsIUnicodeEncoder.h.

#define NS_UNICODEENCODER_CONTRACTID_BASE   "@mozilla.org/intl/unicode/encoder;1?charset="

Definition at line 70 of file nsIUnicodeEncoder.h.