Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions | Variables
nsPersistentProperties.cpp File Reference
#include "nsID.h"
#include "nsCRT.h"
#include "nsReadableUtils.h"
#include "nsIInputStream.h"
#include "nsIUnicharInputStream.h"
#include "pratom.h"
#include "nsEnumeratorUtils.h"
#include "nsPrintfCString.h"
#include "nsPersistentProperties.h"
#include "nsIProperties.h"
#include "nsProperties.h"

Go to the source code of this file.

Classes

struct  PropertyTableEntry

Defines

#define PL_ARENA_CONST_ALIGN_MASK   3
#define IS_WHITE_SPACE(c)   (((c) == ' ') || ((c) == '\t') || ((c) == '\r') || ((c) == '\n'))

Functions

static PRUnicharArenaStrdup (const nsAFlatString &aString, PLArenaPool *aArena)
static char * ArenaStrdup (const nsAFlatCString &aString, PLArenaPool *aArena)
 AddElemToArray (PLDHashTable *table, PLDHashEntryHdr *hdr, PRUint32 i, void *arg)

Variables

static struct PLDHashTableOps

Define Documentation

#define IS_WHITE_SPACE (   c)    (((c) == ' ') || ((c) == '\t') || ((c) == '\r') || ((c) == '\n'))

Definition at line 381 of file nsPersistentProperties.cpp.

Definition at line 49 of file nsPersistentProperties.cpp.


Function Documentation

AddElemToArray ( PLDHashTable table,
PLDHashEntryHdr hdr,
PRUint32  i,
void arg 
)

Definition at line 325 of file nsPersistentProperties.cpp.

Here is the call graph for this function:

static PRUnichar* ArenaStrdup ( const nsAFlatString aString,
PLArenaPool aArena 
) [static]

Definition at line 62 of file nsPersistentProperties.cpp.

{
  void *mem;
  // add one to include the null terminator
  PRInt32 len = (aString.Length()+1) * sizeof(PRUnichar);
  PL_ARENA_ALLOCATE(mem, aArena, len);
  NS_ASSERTION(mem, "Couldn't allocate space!\n");
  if (mem) {
    memcpy(mem, aString.get(), len);
  }
  return NS_STATIC_CAST(PRUnichar*, mem);
}

Here is the call graph for this function:

static char* ArenaStrdup ( const nsAFlatCString aString,
PLArenaPool aArena 
) [static]

Definition at line 76 of file nsPersistentProperties.cpp.

{
  void *mem;
  // add one to include the null terminator
  PRInt32 len = (aString.Length()+1) * sizeof(char);
  PL_ARENA_ALLOCATE(mem, aArena, len);
  NS_ASSERTION(mem, "Couldn't allocate space!\n");
  if (mem)
    memcpy(mem, aString.get(), len);
  return NS_STATIC_CAST(char*, mem);
}

Here is the call graph for this function:


Variable Documentation

struct PLDHashTableOps [static]