Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
nsUnicodeFallbackCache Class Reference

#include <nsUnicodeFallbackCache.h>

Collaboration diagram for nsUnicodeFallbackCache:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsUnicodeFallbackCache ()
 ~nsUnicodeFallbackCache ()
PRBool Get (PRUnichar aChar, ScriptCode &oScript)
void Set (PRUnichar aChar, ScriptCode aScript)

Static Public Member Functions

static nsUnicodeFallbackCacheGetSingleton ()

Static Private Member Functions

static PR_CALLBACK PLHashNumber HashKey (const void *aKey)
static PR_CALLBACK PRIntn CompareKeys (const void *v1, const void *v2)
static PR_CALLBACK PRIntn CompareValues (const void *v1, const void *v2)
static PR_CALLBACK PRIntn FreeHashEntries (PLHashEntry *he, PRIntn italic, void *arg)

Private Attributes

struct PLHashTablemTable
PRUint32 mCount

Static Private Attributes

static nsUnicodeFallbackCachegSingleton

Detailed Description

Definition at line 46 of file nsUnicodeFallbackCache.h.


Constructor & Destructor Documentation

Definition at line 49 of file nsUnicodeFallbackCache.h.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 57 of file nsUnicodeFallbackCache.h.

Here is the call graph for this function:


Member Function Documentation

static PR_CALLBACK PRIntn nsUnicodeFallbackCache::CompareKeys ( const void v1,
const void v2 
) [inline, static, private]

Definition at line 93 of file nsUnicodeFallbackCache.h.

       {
              return  (((PRUnichar ) NS_PTR_TO_INT32(v1)) == 
                  ((PRUnichar ) NS_PTR_TO_INT32(v2)));
       };

Here is the caller graph for this function:

static PR_CALLBACK PRIntn nsUnicodeFallbackCache::CompareValues ( const void v1,
const void v2 
) [inline, static, private]

Definition at line 99 of file nsUnicodeFallbackCache.h.

       {
              return (((ScriptCode) NS_PTR_TO_INT32(v1)) == 
                  ((ScriptCode) NS_PTR_TO_INT32(v2)));
       };

Here is the caller graph for this function:

static PR_CALLBACK PRIntn nsUnicodeFallbackCache::FreeHashEntries ( PLHashEntry he,
PRIntn  italic,
void arg 
) [inline, static, private]

Definition at line 104 of file nsUnicodeFallbackCache.h.

       {
              return HT_ENUMERATE_REMOVE;
       };

Here is the caller graph for this function:

PRBool nsUnicodeFallbackCache::Get ( PRUnichar  aChar,
ScriptCode &  oScript 
) [inline]

Definition at line 67 of file nsUnicodeFallbackCache.h.

       {
              ScriptCode ret = (ScriptCode) 
                  NS_PTR_TO_INT32(PL_HashTableLookup(mTable, (void*)aChar));
              oScript = 0x00FF & ret ;
              return 0x00 != (0xFF00 & ret);
       };

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 81 of file nsUnicodeFallbackCache.h.

Here is the call graph for this function:

static PR_CALLBACK PLHashNumber nsUnicodeFallbackCache::HashKey ( const void aKey) [inline, static, private]

Definition at line 88 of file nsUnicodeFallbackCache.h.

       {
              return (PRUnichar) NS_PTR_TO_INT32(aKey);
       };

Here is the caller graph for this function:

void nsUnicodeFallbackCache::Set ( PRUnichar  aChar,
ScriptCode  aScript 
) [inline]

Definition at line 75 of file nsUnicodeFallbackCache.h.

       {
              PL_HashTableAdd(mTable,(void*) aChar, (void*)(aScript | 0xFF00));
              mCount ++;
       };

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 112 of file nsUnicodeFallbackCache.h.

Definition at line 110 of file nsUnicodeFallbackCache.h.

Definition at line 109 of file nsUnicodeFallbackCache.h.


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