DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/comm-central/intl/locale/nsICollation.idl
 */

#ifndef __gen_nsICollation_h__
#define __gen_nsICollation_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#include "js/GCAnnotations.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsICollation; /* forward declaration */


/* starting interface:    nsICollationFactory */
#define NS_ICOLLATIONFACTORY_IID_STR "04971e14-d6b3-4ada-8cbb-c3a13842b349"

#define NS_ICOLLATIONFACTORY_IID \
  {0x04971e14, 0xd6b3, 0x4ada, \
    { 0x8c, 0xbb, 0xc3, 0xa1, 0x38, 0x42, 0xb3, 0x49 }}

class NS_NO_VTABLE nsICollationFactory : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICOLLATIONFACTORY_IID)

  /* nsICollation CreateCollation (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateCollation(nsICollation **_retval) = 0;

  /* nsICollation CreateCollationForLocale (in ACString locale); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateCollationForLocale(const nsACString& locale, nsICollation **_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsICollationFactory, NS_ICOLLATIONFACTORY_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICOLLATIONFACTORY \
  NS_IMETHOD CreateCollation(nsICollation **_retval) override; \
  NS_IMETHOD CreateCollationForLocale(const nsACString& locale, nsICollation **_retval) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSICOLLATIONFACTORY \
  nsresult CreateCollation(nsICollation **_retval); \
  nsresult CreateCollationForLocale(const nsACString& locale, nsICollation **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICOLLATIONFACTORY(_to) \
  NS_IMETHOD CreateCollation(nsICollation **_retval) override { return _to CreateCollation(_retval); } \
  NS_IMETHOD CreateCollationForLocale(const nsACString& locale, nsICollation **_retval) override { return _to CreateCollationForLocale(locale, _retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICOLLATIONFACTORY(_to) \
  NS_IMETHOD CreateCollation(nsICollation **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateCollation(_retval); } \
  NS_IMETHOD CreateCollationForLocale(const nsACString& locale, nsICollation **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateCollationForLocale(locale, _retval); } 


/* starting interface:    nsICollation */
#define NS_ICOLLATION_IID_STR "b0132cc0-3786-4557-9874-910d7def5f93"

#define NS_ICOLLATION_IID \
  {0xb0132cc0, 0x3786, 0x4557, \
    { 0x98, 0x74, 0x91, 0x0d, 0x7d, 0xef, 0x5f, 0x93 }}

class NS_NO_VTABLE nsICollation : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICOLLATION_IID)

  enum {
    kCollationStrengthDefault = 0,
    kCollationCaseInsensitiveAscii = 1,
    kCollationAccentInsenstive = 2,
    kCollationCaseSensitive = 0,
    kCollationCaseInSensitive = 3
  };

  /* void initialize (in ACString locale); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Initialize(const nsACString& locale) = 0;

  /* long compareString (in long strength, in AString string1, in AString string2); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CompareString(int32_t strength, const nsAString& string1, const nsAString& string2, int32_t *_retval) = 0;

  /* [noscript] void allocateRawSortKey (in long strength, in AString stringIn, [array, size_is (outLen)] out octet key, out unsigned long outLen); */
  NS_IMETHOD AllocateRawSortKey(int32_t strength, const nsAString& stringIn, uint8_t **key, uint32_t *outLen) = 0;

  /* [noscript] long compareRawSortKey ([array, size_is (len1), const] in octet key1, in unsigned long len1, [array, size_is (len2), const] in octet key2, in unsigned long len2); */
  NS_IMETHOD CompareRawSortKey(const uint8_t *key1, uint32_t len1, const uint8_t *key2, uint32_t len2, int32_t *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsICollation, NS_ICOLLATION_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICOLLATION \
  NS_IMETHOD Initialize(const nsACString& locale) override; \
  NS_IMETHOD CompareString(int32_t strength, const nsAString& string1, const nsAString& string2, int32_t *_retval) override; \
  NS_IMETHOD AllocateRawSortKey(int32_t strength, const nsAString& stringIn, uint8_t **key, uint32_t *outLen) override; \
  NS_IMETHOD CompareRawSortKey(const uint8_t *key1, uint32_t len1, const uint8_t *key2, uint32_t len2, int32_t *_retval) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSICOLLATION \
  nsresult Initialize(const nsACString& locale); \
  nsresult CompareString(int32_t strength, const nsAString& string1, const nsAString& string2, int32_t *_retval); \
  nsresult AllocateRawSortKey(int32_t strength, const nsAString& stringIn, uint8_t **key, uint32_t *outLen); \
  nsresult CompareRawSortKey(const uint8_t *key1, uint32_t len1, const uint8_t *key2, uint32_t len2, int32_t *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICOLLATION(_to) \
  NS_IMETHOD Initialize(const nsACString& locale) override { return _to Initialize(locale); } \
  NS_IMETHOD CompareString(int32_t strength, const nsAString& string1, const nsAString& string2, int32_t *_retval) override { return _to CompareString(strength, string1, string2, _retval); } \
  NS_IMETHOD AllocateRawSortKey(int32_t strength, const nsAString& stringIn, uint8_t **key, uint32_t *outLen) override { return _to AllocateRawSortKey(strength, stringIn, key, outLen); } \
  NS_IMETHOD CompareRawSortKey(const uint8_t *key1, uint32_t len1, const uint8_t *key2, uint32_t len2, int32_t *_retval) override { return _to CompareRawSortKey(key1, len1, key2, len2, _retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICOLLATION(_to) \
  NS_IMETHOD Initialize(const nsACString& locale) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Initialize(locale); } \
  NS_IMETHOD CompareString(int32_t strength, const nsAString& string1, const nsAString& string2, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CompareString(strength, string1, string2, _retval); } \
  NS_IMETHOD AllocateRawSortKey(int32_t strength, const nsAString& stringIn, uint8_t **key, uint32_t *outLen) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AllocateRawSortKey(strength, stringIn, key, outLen); } \
  NS_IMETHOD CompareRawSortKey(const uint8_t *key1, uint32_t len1, const uint8_t *key2, uint32_t len2, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CompareRawSortKey(key1, len1, key2, len2, _retval); } 


#endif /* __gen_nsICollation_h__ */