LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIUnicodeNormalizer.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 1 100.0 %
Date: 2012-06-02 Functions: 1 1 100.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/intl/unicharutil/idl/nsIUnicodeNormalizer.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIUnicodeNormalizer_h__
       6                 : #define __gen_nsIUnicodeNormalizer_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.h"
      11                 : #endif
      12                 : 
      13                 : /* For IDL files that don't want to include root IDL files. */
      14                 : #ifndef NS_NO_VTABLE
      15                 : #define NS_NO_VTABLE
      16                 : #endif
      17                 : #define NS_UNICODE_NORMALIZER_CID { 0xa665e49a, 0xf3e6, 0x4fed, { 0x9f, 0x31, 0xf7, 0xc5, 0x68, 0xa2, 0x98, 0x99 } }
      18                 : #define NS_UNICODE_NORMALIZER_CONTRACTID "@mozilla.org/intl/unicodenormalizer;1"
      19                 : 
      20                 : /* starting interface:    nsIUnicodeNormalizer */
      21                 : #define NS_IUNICODENORMALIZER_IID_STR "b43a461f-1bcf-4329-820b-66e48c979e14"
      22                 : 
      23                 : #define NS_IUNICODENORMALIZER_IID \
      24                 :   {0xb43a461f, 0x1bcf, 0x4329, \
      25                 :     { 0x82, 0x0b, 0x66, 0xe4, 0x8c, 0x97, 0x9e, 0x14 }}
      26                 : 
      27            1419 : class NS_NO_VTABLE NS_SCRIPTABLE nsIUnicodeNormalizer : public nsISupports {
      28                 :  public: 
      29                 : 
      30                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUNICODENORMALIZER_IID)
      31                 : 
      32                 :   /* void NormalizeUnicodeNFD (in AString aSrc, out AString aDest); */
      33                 :   NS_SCRIPTABLE NS_IMETHOD NormalizeUnicodeNFD(const nsAString & aSrc, nsAString & aDest NS_OUTPARAM) = 0;
      34                 : 
      35                 :   /* void NormalizeUnicodeNFC (in AString aSrc, out AString aDest); */
      36                 :   NS_SCRIPTABLE NS_IMETHOD NormalizeUnicodeNFC(const nsAString & aSrc, nsAString & aDest NS_OUTPARAM) = 0;
      37                 : 
      38                 :   /* void NormalizeUnicodeNFKD (in AString aSrc, out AString aDest); */
      39                 :   NS_SCRIPTABLE NS_IMETHOD NormalizeUnicodeNFKD(const nsAString & aSrc, nsAString & aDest NS_OUTPARAM) = 0;
      40                 : 
      41                 :   /* void NormalizeUnicodeNFKC (in AString aSrc, out AString aDest); */
      42                 :   NS_SCRIPTABLE NS_IMETHOD NormalizeUnicodeNFKC(const nsAString & aSrc, nsAString & aDest NS_OUTPARAM) = 0;
      43                 : 
      44                 : };
      45                 : 
      46                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIUnicodeNormalizer, NS_IUNICODENORMALIZER_IID)
      47                 : 
      48                 : /* Use this macro when declaring classes that implement this interface. */
      49                 : #define NS_DECL_NSIUNICODENORMALIZER \
      50                 :   NS_SCRIPTABLE NS_IMETHOD NormalizeUnicodeNFD(const nsAString & aSrc, nsAString & aDest NS_OUTPARAM); \
      51                 :   NS_SCRIPTABLE NS_IMETHOD NormalizeUnicodeNFC(const nsAString & aSrc, nsAString & aDest NS_OUTPARAM); \
      52                 :   NS_SCRIPTABLE NS_IMETHOD NormalizeUnicodeNFKD(const nsAString & aSrc, nsAString & aDest NS_OUTPARAM); \
      53                 :   NS_SCRIPTABLE NS_IMETHOD NormalizeUnicodeNFKC(const nsAString & aSrc, nsAString & aDest NS_OUTPARAM); 
      54                 : 
      55                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      56                 : #define NS_FORWARD_NSIUNICODENORMALIZER(_to) \
      57                 :   NS_SCRIPTABLE NS_IMETHOD NormalizeUnicodeNFD(const nsAString & aSrc, nsAString & aDest NS_OUTPARAM) { return _to NormalizeUnicodeNFD(aSrc, aDest); } \
      58                 :   NS_SCRIPTABLE NS_IMETHOD NormalizeUnicodeNFC(const nsAString & aSrc, nsAString & aDest NS_OUTPARAM) { return _to NormalizeUnicodeNFC(aSrc, aDest); } \
      59                 :   NS_SCRIPTABLE NS_IMETHOD NormalizeUnicodeNFKD(const nsAString & aSrc, nsAString & aDest NS_OUTPARAM) { return _to NormalizeUnicodeNFKD(aSrc, aDest); } \
      60                 :   NS_SCRIPTABLE NS_IMETHOD NormalizeUnicodeNFKC(const nsAString & aSrc, nsAString & aDest NS_OUTPARAM) { return _to NormalizeUnicodeNFKC(aSrc, aDest); } 
      61                 : 
      62                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      63                 : #define NS_FORWARD_SAFE_NSIUNICODENORMALIZER(_to) \
      64                 :   NS_SCRIPTABLE NS_IMETHOD NormalizeUnicodeNFD(const nsAString & aSrc, nsAString & aDest NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->NormalizeUnicodeNFD(aSrc, aDest); } \
      65                 :   NS_SCRIPTABLE NS_IMETHOD NormalizeUnicodeNFC(const nsAString & aSrc, nsAString & aDest NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->NormalizeUnicodeNFC(aSrc, aDest); } \
      66                 :   NS_SCRIPTABLE NS_IMETHOD NormalizeUnicodeNFKD(const nsAString & aSrc, nsAString & aDest NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->NormalizeUnicodeNFKD(aSrc, aDest); } \
      67                 :   NS_SCRIPTABLE NS_IMETHOD NormalizeUnicodeNFKC(const nsAString & aSrc, nsAString & aDest NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->NormalizeUnicodeNFKC(aSrc, aDest); } 
      68                 : 
      69                 : #if 0
      70                 : /* Use the code below as a template for the implementation class for this interface. */
      71                 : 
      72                 : /* Header file */
      73                 : class nsUnicodeNormalizer : public nsIUnicodeNormalizer
      74                 : {
      75                 : public:
      76                 :   NS_DECL_ISUPPORTS
      77                 :   NS_DECL_NSIUNICODENORMALIZER
      78                 : 
      79                 :   nsUnicodeNormalizer();
      80                 : 
      81                 : private:
      82                 :   ~nsUnicodeNormalizer();
      83                 : 
      84                 : protected:
      85                 :   /* additional members */
      86                 : };
      87                 : 
      88                 : /* Implementation file */
      89                 : NS_IMPL_ISUPPORTS1(nsUnicodeNormalizer, nsIUnicodeNormalizer)
      90                 : 
      91                 : nsUnicodeNormalizer::nsUnicodeNormalizer()
      92                 : {
      93                 :   /* member initializers and constructor code */
      94                 : }
      95                 : 
      96                 : nsUnicodeNormalizer::~nsUnicodeNormalizer()
      97                 : {
      98                 :   /* destructor code */
      99                 : }
     100                 : 
     101                 : /* void NormalizeUnicodeNFD (in AString aSrc, out AString aDest); */
     102                 : NS_IMETHODIMP nsUnicodeNormalizer::NormalizeUnicodeNFD(const nsAString & aSrc, nsAString & aDest NS_OUTPARAM)
     103                 : {
     104                 :     return NS_ERROR_NOT_IMPLEMENTED;
     105                 : }
     106                 : 
     107                 : /* void NormalizeUnicodeNFC (in AString aSrc, out AString aDest); */
     108                 : NS_IMETHODIMP nsUnicodeNormalizer::NormalizeUnicodeNFC(const nsAString & aSrc, nsAString & aDest NS_OUTPARAM)
     109                 : {
     110                 :     return NS_ERROR_NOT_IMPLEMENTED;
     111                 : }
     112                 : 
     113                 : /* void NormalizeUnicodeNFKD (in AString aSrc, out AString aDest); */
     114                 : NS_IMETHODIMP nsUnicodeNormalizer::NormalizeUnicodeNFKD(const nsAString & aSrc, nsAString & aDest NS_OUTPARAM)
     115                 : {
     116                 :     return NS_ERROR_NOT_IMPLEMENTED;
     117                 : }
     118                 : 
     119                 : /* void NormalizeUnicodeNFKC (in AString aSrc, out AString aDest); */
     120                 : NS_IMETHODIMP nsUnicodeNormalizer::NormalizeUnicodeNFKC(const nsAString & aSrc, nsAString & aDest NS_OUTPARAM)
     121                 : {
     122                 :     return NS_ERROR_NOT_IMPLEMENTED;
     123                 : }
     124                 : 
     125                 : /* End of implementation class template. */
     126                 : #endif
     127                 : 
     128                 : 
     129                 : #endif /* __gen_nsIUnicodeNormalizer_h__ */

Generated by: LCOV version 1.7