Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsStringBundle.cpp File Reference
#include "nsStringBundle.h"
#include "nsID.h"
#include "nsString.h"
#include "nsReadableUtils.h"
#include "nsIStringBundle.h"
#include "nsStringBundleService.h"
#include "nsStringBundleTextOverride.h"
#include "nsXPCOM.h"
#include "nsISupportsPrimitives.h"
#include "nsArray.h"
#include "nsArrayEnumerator.h"
#include "nscore.h"
#include "nsHashtable.h"
#include "nsMemory.h"
#include "plstr.h"
#include "nsNetUtil.h"
#include "nsIURL.h"
#include "nsIComponentManager.h"
#include "nsIGenericFactory.h"
#include "nsIMemory.h"
#include "nsIObserverService.h"
#include "pratom.h"
#include "prmem.h"
#include "nsIModule.h"
#include "nsCOMArray.h"
#include "nsAutoLock.h"
#include "nsTextFormatter.h"
#include "nsIErrorService.h"
#include "nsITimelineService.h"
#include "nsICategoryManager.h"
#include "nsPrintfCString.h"
#include "nsIEventQueueService.h"
#include "prenv.h"
#include "nsCRT.h"

Go to the source code of this file.

Classes

struct  bundleCacheEntry_t

Defines

#define MAX_CACHED_BUNDLES   16
#define GLOBAL_PROPERTIES   "chrome://global/locale/xpcom.properties"

Functions

static NS_DEFINE_CID (kErrorServiceCID, NS_ERRORSERVICE_CID)
static NS_DEFINE_CID (kPersistentPropertiesCID, NS_IPERSISTENTPROPERTIES_CID)
 NS_IMPL_THREADSAFE_ISUPPORTS1 (nsStringBundle, nsIStringBundle) NS_IMETHODIMP nsStringBundle
 NS_IMPL_THREADSAFE_ISUPPORTS3 (nsStringBundleService, nsIStringBundleService, nsIObserver, nsISupportsWeakReference) nsStringBundleService

Class Documentation

struct bundleCacheEntry_t

Definition at line 532 of file nsStringBundle.cpp.

Collaboration diagram for bundleCacheEntry_t:
Class Members
PRCList list
nsIStringBundle * mBundle
nsCStringKey * mHashKey

Define Documentation

#define GLOBAL_PROPERTIES   "chrome://global/locale/xpcom.properties"

Definition at line 754 of file nsStringBundle.cpp.

Definition at line 530 of file nsStringBundle.cpp.


Function Documentation

static NS_DEFINE_CID ( kErrorServiceCID  ,
NS_ERRORSERVICE_CID   
) [static]
static NS_DEFINE_CID ( kPersistentPropertiesCID  ,
NS_IPERSISTENTPROPERTIES_CID   
) [static]

Definition at line 241 of file nsStringBundle.cpp.

{
  nsresult rv;
  rv = LoadProperties();
  NS_ENSURE_SUCCESS(rv, rv);
  
  *aResult = nsnull;
  nsAutoString tmpstr;

  rv = GetStringFromID(aID, tmpstr);
  NS_ENSURE_SUCCESS(rv, rv);

  *aResult = ToNewUnicode(tmpstr);
  NS_ENSURE_TRUE(*aResult, NS_ERROR_OUT_OF_MEMORY);

  return NS_OK;
}

Here is the call graph for this function:

Definition at line 557 of file nsStringBundle.cpp.

{
  flushBundleCache();
  PL_FinishArenaPool(&mCacheEntryPool);
}