LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIUnicodeNormalizer.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/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           0 : class NS_NO_VTABLE 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_IMETHOD NormalizeUnicodeNFD(const nsAString & aSrc, nsAString & aDest) = 0;
      34             : 
      35             :   /* void NormalizeUnicodeNFC (in AString aSrc, out AString aDest); */
      36             :   NS_IMETHOD NormalizeUnicodeNFC(const nsAString & aSrc, nsAString & aDest) = 0;
      37             : 
      38             :   /* void NormalizeUnicodeNFKD (in AString aSrc, out AString aDest); */
      39             :   NS_IMETHOD NormalizeUnicodeNFKD(const nsAString & aSrc, nsAString & aDest) = 0;
      40             : 
      41             :   /* void NormalizeUnicodeNFKC (in AString aSrc, out AString aDest); */
      42             :   NS_IMETHOD NormalizeUnicodeNFKC(const nsAString & aSrc, nsAString & aDest) = 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_IMETHOD NormalizeUnicodeNFD(const nsAString & aSrc, nsAString & aDest) override; \
      51             :   NS_IMETHOD NormalizeUnicodeNFC(const nsAString & aSrc, nsAString & aDest) override; \
      52             :   NS_IMETHOD NormalizeUnicodeNFKD(const nsAString & aSrc, nsAString & aDest) override; \
      53             :   NS_IMETHOD NormalizeUnicodeNFKC(const nsAString & aSrc, nsAString & aDest) override; 
      54             : 
      55             : /* Use this macro when declaring the members of this interface when the
      56             :    class doesn't implement the interface. This is useful for forwarding. */
      57             : #define NS_DECL_NON_VIRTUAL_NSIUNICODENORMALIZER \
      58             :   nsresult NormalizeUnicodeNFD(const nsAString & aSrc, nsAString & aDest); \
      59             :   nsresult NormalizeUnicodeNFC(const nsAString & aSrc, nsAString & aDest); \
      60             :   nsresult NormalizeUnicodeNFKD(const nsAString & aSrc, nsAString & aDest); \
      61             :   nsresult NormalizeUnicodeNFKC(const nsAString & aSrc, nsAString & aDest); 
      62             : 
      63             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      64             : #define NS_FORWARD_NSIUNICODENORMALIZER(_to) \
      65             :   NS_IMETHOD NormalizeUnicodeNFD(const nsAString & aSrc, nsAString & aDest) override { return _to NormalizeUnicodeNFD(aSrc, aDest); } \
      66             :   NS_IMETHOD NormalizeUnicodeNFC(const nsAString & aSrc, nsAString & aDest) override { return _to NormalizeUnicodeNFC(aSrc, aDest); } \
      67             :   NS_IMETHOD NormalizeUnicodeNFKD(const nsAString & aSrc, nsAString & aDest) override { return _to NormalizeUnicodeNFKD(aSrc, aDest); } \
      68             :   NS_IMETHOD NormalizeUnicodeNFKC(const nsAString & aSrc, nsAString & aDest) override { return _to NormalizeUnicodeNFKC(aSrc, aDest); } 
      69             : 
      70             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      71             : #define NS_FORWARD_SAFE_NSIUNICODENORMALIZER(_to) \
      72             :   NS_IMETHOD NormalizeUnicodeNFD(const nsAString & aSrc, nsAString & aDest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NormalizeUnicodeNFD(aSrc, aDest); } \
      73             :   NS_IMETHOD NormalizeUnicodeNFC(const nsAString & aSrc, nsAString & aDest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NormalizeUnicodeNFC(aSrc, aDest); } \
      74             :   NS_IMETHOD NormalizeUnicodeNFKD(const nsAString & aSrc, nsAString & aDest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NormalizeUnicodeNFKD(aSrc, aDest); } \
      75             :   NS_IMETHOD NormalizeUnicodeNFKC(const nsAString & aSrc, nsAString & aDest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NormalizeUnicodeNFKC(aSrc, aDest); } 
      76             : 
      77             : #if 0
      78             : /* Use the code below as a template for the implementation class for this interface. */
      79             : 
      80             : /* Header file */
      81             : class nsUnicodeNormalizer : public nsIUnicodeNormalizer
      82             : {
      83             : public:
      84             :   NS_DECL_ISUPPORTS
      85             :   NS_DECL_NSIUNICODENORMALIZER
      86             : 
      87             :   nsUnicodeNormalizer();
      88             : 
      89             : private:
      90             :   ~nsUnicodeNormalizer();
      91             : 
      92             : protected:
      93             :   /* additional members */
      94             : };
      95             : 
      96             : /* Implementation file */
      97             : NS_IMPL_ISUPPORTS(nsUnicodeNormalizer, nsIUnicodeNormalizer)
      98             : 
      99             : nsUnicodeNormalizer::nsUnicodeNormalizer()
     100             : {
     101             :   /* member initializers and constructor code */
     102             : }
     103             : 
     104             : nsUnicodeNormalizer::~nsUnicodeNormalizer()
     105             : {
     106             :   /* destructor code */
     107             : }
     108             : 
     109             : /* void NormalizeUnicodeNFD (in AString aSrc, out AString aDest); */
     110             : NS_IMETHODIMP nsUnicodeNormalizer::NormalizeUnicodeNFD(const nsAString & aSrc, nsAString & aDest)
     111             : {
     112             :     return NS_ERROR_NOT_IMPLEMENTED;
     113             : }
     114             : 
     115             : /* void NormalizeUnicodeNFC (in AString aSrc, out AString aDest); */
     116             : NS_IMETHODIMP nsUnicodeNormalizer::NormalizeUnicodeNFC(const nsAString & aSrc, nsAString & aDest)
     117             : {
     118             :     return NS_ERROR_NOT_IMPLEMENTED;
     119             : }
     120             : 
     121             : /* void NormalizeUnicodeNFKD (in AString aSrc, out AString aDest); */
     122             : NS_IMETHODIMP nsUnicodeNormalizer::NormalizeUnicodeNFKD(const nsAString & aSrc, nsAString & aDest)
     123             : {
     124             :     return NS_ERROR_NOT_IMPLEMENTED;
     125             : }
     126             : 
     127             : /* void NormalizeUnicodeNFKC (in AString aSrc, out AString aDest); */
     128             : NS_IMETHODIMP nsUnicodeNormalizer::NormalizeUnicodeNFKC(const nsAString & aSrc, nsAString & aDest)
     129             : {
     130             :     return NS_ERROR_NOT_IMPLEMENTED;
     131             : }
     132             : 
     133             : /* End of implementation class template. */
     134             : #endif
     135             : 
     136             : 
     137             : #endif /* __gen_nsIUnicodeNormalizer_h__ */

Generated by: LCOV version 1.13