Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsParserMsgUtils.cpp File Reference
#include "nsIServiceManager.h"
#include "nsIStringBundle.h"
#include "nsXPIDLString.h"
#include "nsParserMsgUtils.h"
#include "nsNetCID.h"

Go to the source code of this file.

Functions

static NS_DEFINE_CID (kStringBundleServiceCID, NS_STRINGBUNDLESERVICE_CID)
static nsresult GetBundle (const char *aPropFileName, nsIStringBundle **aBundle)

Function Documentation

static nsresult GetBundle ( const char *  aPropFileName,
nsIStringBundle **  aBundle 
) [static]

Definition at line 48 of file nsParserMsgUtils.cpp.

{
  NS_ENSURE_ARG_POINTER(aPropFileName);
  NS_ENSURE_ARG_POINTER(aBundle);

  // Create a bundle for the localization
  nsresult rv;
  
  nsCOMPtr<nsIStringBundleService> stringService = 
    do_GetService(kStringBundleServiceCID, &rv);
  if (NS_SUCCEEDED(rv))
    rv = stringService->CreateBundle(aPropFileName, aBundle);
  
  return rv;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static NS_DEFINE_CID ( kStringBundleServiceCID  ,
NS_STRINGBUNDLESERVICE_CID   
) [static]