Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Variables
nsCRT.h File Reference
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "plstr.h"
#include "nscore.h"
#include "prtypes.h"
#include "nsCppSharedAllocator.h"

Go to the source code of this file.

Classes

protocol  NS_COM
 A string set that takes up minimal size when there are 0 or 1 strings in the set. More...

Defines

#define NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW
#define NS_DECL_ZEROING_OPERATOR_NEW
#define NS_IMPL_ZEROING_OPERATOR_NEW(_class)
#define CRTFREEIF(x)   if (x) { nsCRT::free(x); x = 0; }
#define FF   '\014'
#define TAB   '\011'
#define CRSTR   "\015"
#define LFSTR   "\012"
#define CRLF   "\015\012" /* A CR LF equivalent string */
#define NS_IS_SPACE(VAL)   (((((intn)(VAL)) & 0x7f) == ((intn)(VAL))) && isspace((intn)(VAL)) )
#define NS_IS_CNTRL(i)   ((((unsigned int) (i)) > 0x7f) ? (int) 0 : iscntrl(i))
#define NS_IS_DIGIT(i)   ((((unsigned int) (i)) > 0x7f) ? (int) 0 : isdigit(i))
#define NS_IS_ALPHA(VAL)   ((((unsigned int) (VAL)) > 0x7f) ? (int) 0 : isalpha((int)(VAL)))

Variables

const PRUnichar kIsoLatin1ToUCS2 [256]

Define Documentation

#define CRLF   "\015\012" /* A CR LF equivalent string */

Definition at line 259 of file nsCRT.h.

#define CRSTR   "\015"

Definition at line 257 of file nsCRT.h.

#define CRTFREEIF (   x)    if (x) { nsCRT::free(x); x = 0; }

Definition at line 93 of file nsCRT.h.

#define FF   '\014'

Definition at line 254 of file nsCRT.h.

#define LFSTR   "\012"

Definition at line 258 of file nsCRT.h.

Value:
void* operator new(size_t sz) CPP_THROW_NEW { \
    void* rv = ::operator new(sz);              \
    if (rv) {                                   \
      memset(rv, 0, sz);                        \
    }                                           \
    return rv;                                  \
  }                                             \
  void operator delete(void* ptr) {             \
    ::operator delete(ptr);                     \
  }

Definition at line 62 of file nsCRT.h.

Value:
void* operator new(size_t sz) CPP_THROW_NEW; \
  void operator delete(void* ptr);

Definition at line 76 of file nsCRT.h.

Value:
void* _class::operator new(size_t sz) CPP_THROW_NEW { \
    void* rv = ::operator new(sz);                      \
    if (rv) {                                           \
      memset(rv, 0, sz);                                \
    }                                                   \
    return rv;                                          \
  }                                                     \
  void _class::operator delete(void* ptr) {             \
    ::operator delete(ptr);                             \
  }

Definition at line 80 of file nsCRT.h.

#define NS_IS_ALPHA (   VAL)    ((((unsigned int) (VAL)) > 0x7f) ? (int) 0 : isalpha((int)(VAL)))

Definition at line 280 of file nsCRT.h.

#define NS_IS_CNTRL (   i)    ((((unsigned int) (i)) > 0x7f) ? (int) 0 : iscntrl(i))

Definition at line 275 of file nsCRT.h.

#define NS_IS_DIGIT (   i)    ((((unsigned int) (i)) > 0x7f) ? (int) 0 : isdigit(i))

Definition at line 276 of file nsCRT.h.

#define NS_IS_SPACE (   VAL)    (((((intn)(VAL)) & 0x7f) == ((intn)(VAL))) && isspace((intn)(VAL)) )

Definition at line 272 of file nsCRT.h.

#define TAB   '\011'

Definition at line 255 of file nsCRT.h.


Variable Documentation