Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsI18nModule.cpp File Reference
#include "nsIGenericFactory.h"
#include "nsCOMPtr.h"
#include "nsICategoryManager.h"
#include "nsIServiceManager.h"
#include "nsCharDetConstructors.h"
#include "nsLWBrkConstructors.h"
#include "nsSemanticUnitScanner.h"
#include "nsUcharUtilConstructors.h"
#include "nsStrBundleConstructors.h"
#include "nsLocaleConstructors.h"

Go to the source code of this file.

Functions

static NS_METHOD AddCategoryEntry (const char *category, const char *key, const char *value)
static NS_METHOD DeleteCategoryEntry (const char *category, const char *key)
static NS_METHOD nsMetaCharsetObserverRegistrationProc (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const char *componentType, const nsModuleComponentInfo *info)
static NS_METHOD nsMetaCharsetObserverUnegistrationProc (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const nsModuleComponentInfo *info)
static NS_METHOD nsDetectionAdaptorRegistrationProc (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const char *componentType, const nsModuleComponentInfo *info)
static NS_METHOD nsJAPSMDetectorRegistrationProc (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const char *componentType, const nsModuleComponentInfo *info)
static NS_METHOD nsKOPSMDetectorRegistrationProc (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const char *componentType, const nsModuleComponentInfo *info)
static NS_METHOD nsZHTWPSMDetectorRegistrationProc (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const char *componentType, const nsModuleComponentInfo *info)
static NS_METHOD nsZHCNPSMDetectorRegistrationProc (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const char *componentType, const nsModuleComponentInfo *info)
static NS_METHOD nsZHPSMDetectorRegistrationProc (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const char *componentType, const nsModuleComponentInfo *info)
static NS_METHOD nsCJKPSMDetectorRegistrationProc (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const char *componentType, const nsModuleComponentInfo *info)
static NS_METHOD nsRUProbDetectorRegistrationProc (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const char *componentType, const nsModuleComponentInfo *info)
static NS_METHOD nsUKProbDetectorRegistrationProc (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const char *componentType, const nsModuleComponentInfo *info)

Variables

static nsModuleComponentInfo components []

Function Documentation

static NS_METHOD AddCategoryEntry ( const char *  category,
const char *  key,
const char *  value 
) [static]

Definition at line 63 of file nsI18nModule.cpp.

{
  nsresult rv;
  nsCOMPtr<nsICategoryManager> 
    categoryManager(do_GetService("@mozilla.org/categorymanager;1", &rv));
  if (NS_FAILED(rv)) return rv;
  
  return categoryManager->AddCategoryEntry(category, key, value, 
                                           PR_TRUE, PR_TRUE,
                                           nsnull);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static NS_METHOD DeleteCategoryEntry ( const char *  category,
const char *  key 
) [static]

Definition at line 78 of file nsI18nModule.cpp.

{
  nsresult rv;
  nsCOMPtr<nsICategoryManager> 
    categoryManager(do_GetService("@mozilla.org/categorymanager;1", &rv));
  if (NS_FAILED(rv)) return rv;
  
  return categoryManager->DeleteCategoryEntry(category, key, PR_TRUE);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static NS_METHOD nsCJKPSMDetectorRegistrationProc ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  registryLocation,
const char *  componentType,
const nsModuleComponentInfo info 
) [static]

Definition at line 182 of file nsI18nModule.cpp.

{
  return AddCategoryEntry(NS_CHARSET_DETECTOR_CATEGORY,
                          "cjk_parallel_state_machine",
                          info->mContractID);
}

Here is the call graph for this function:

static NS_METHOD nsDetectionAdaptorRegistrationProc ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  registryLocation,
const char *  componentType,
const nsModuleComponentInfo info 
) [static]

Definition at line 112 of file nsI18nModule.cpp.

Here is the call graph for this function:

static NS_METHOD nsJAPSMDetectorRegistrationProc ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  registryLocation,
const char *  componentType,
const nsModuleComponentInfo info 
) [static]

Definition at line 122 of file nsI18nModule.cpp.

{
  return AddCategoryEntry(NS_CHARSET_DETECTOR_CATEGORY,
                          "ja_parallel_state_machine",
                          info->mContractID);
}

Here is the call graph for this function:

static NS_METHOD nsKOPSMDetectorRegistrationProc ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  registryLocation,
const char *  componentType,
const nsModuleComponentInfo info 
) [static]

Definition at line 134 of file nsI18nModule.cpp.

{
  return AddCategoryEntry(NS_CHARSET_DETECTOR_CATEGORY,
                          "ko_parallel_state_machine",
                          info->mContractID);
}

Here is the call graph for this function:

static NS_METHOD nsMetaCharsetObserverRegistrationProc ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  registryLocation,
const char *  componentType,
const nsModuleComponentInfo info 
) [static]

Definition at line 90 of file nsI18nModule.cpp.

{
  return AddCategoryEntry("parser-service-category", 
                          "Meta Charset Service",
                          NS_META_CHARSET_CONTRACTID);
}

Here is the call graph for this function:

static NS_METHOD nsMetaCharsetObserverUnegistrationProc ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  registryLocation,
const nsModuleComponentInfo info 
) [static]

Definition at line 102 of file nsI18nModule.cpp.

{
  return DeleteCategoryEntry("parser-service-category",
                             "Meta Charset Service");
}

Here is the call graph for this function:

static NS_METHOD nsRUProbDetectorRegistrationProc ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  registryLocation,
const char *  componentType,
const nsModuleComponentInfo info 
) [static]

Definition at line 194 of file nsI18nModule.cpp.

Here is the call graph for this function:

static NS_METHOD nsUKProbDetectorRegistrationProc ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  registryLocation,
const char *  componentType,
const nsModuleComponentInfo info 
) [static]

Definition at line 206 of file nsI18nModule.cpp.

Here is the call graph for this function:

static NS_METHOD nsZHCNPSMDetectorRegistrationProc ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  registryLocation,
const char *  componentType,
const nsModuleComponentInfo info 
) [static]

Definition at line 158 of file nsI18nModule.cpp.

{
  return AddCategoryEntry(NS_CHARSET_DETECTOR_CATEGORY,
                          "zhcn_parallel_state_machine",
                          info->mContractID);
}

Here is the call graph for this function:

static NS_METHOD nsZHPSMDetectorRegistrationProc ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  registryLocation,
const char *  componentType,
const nsModuleComponentInfo info 
) [static]

Definition at line 170 of file nsI18nModule.cpp.

{
  return AddCategoryEntry(NS_CHARSET_DETECTOR_CATEGORY,
                          "zh_parallel_state_machine",
                          info->mContractID);
}

Here is the call graph for this function:

static NS_METHOD nsZHTWPSMDetectorRegistrationProc ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  registryLocation,
const char *  componentType,
const nsModuleComponentInfo info 
) [static]

Definition at line 146 of file nsI18nModule.cpp.

{
  return AddCategoryEntry(NS_CHARSET_DETECTOR_CATEGORY,
                          "zhtw_parallel_state_machine",
                          info->mContractID);
}

Here is the call graph for this function:


Variable Documentation

Definition at line 218 of file nsI18nModule.cpp.