XPCOM glue classes

These "glue" classes are provided to make it easier to use XPCOM from C++ code. When these classes are used by a component, you may need to link the component against the XPCOM glue library.

NS ConvertASCIItoUTF16 external
Class Declaration
NS ConvertUTF16toUTF8 external
Class Declaration
NS ConvertUTF8toUTF16 external
Class Declaration
NS LossyConvertUTF16toASCII external
Class Declaration
NS_ConvertASCIItoUTF16
Class Declaration
NS_ConvertUTF16toUTF8
Class Declaration
NS_ConvertUTF8toUTF16
Class Declaration
NS_LossyConvertUTF16toASCII
Class Declaration
NS_OVERRIDE
NS_OVERRIDE is a macro which allows C++ code in Mozilla to specify that a method is intended to override a base class method. If there is no base class method with the same signature, a compiler with static-checking enabled will fail to compile.
NS_POSTCONDITION
Macro
NS_PRECONDITION
Macro
PromiseFlatCString (External)
Class Declaration
PromiseFlatString (External)
Class Declaration
nsACString
The nsACString abstract class represents a character string composed of single-byte storage units. This class is typically used to represent ASCII or UTF-8 character arrays.
nsACString (External)
Class Declaration
nsACString_internal
Class Declaration
nsAString
The nsAString abstract class represents a character string composed of double-byte storage units. This class is typically used to represent Unicode character arrays.
nsAString (External)
Class Declaration
nsAString_internal
Class Declaration
nsAdoptingCString
Class Declaration
nsAdoptingString
Class Declaration
nsAutoRef
nsAutoRef<t> is a template class implementing an object that holds a handle to a resource that must be released, typically on destruction of the object.</t>
nsAutoRefTraits
nsAutoRefTraits<t> is a template class describing traits of resources held by objects of class nsAutoRef<T> and/or nsCountedRef<T>.</t>
nsAutoString
Class Declaration
nsAutoString (External)
Class Declaration
nsCAutoString
Class Declaration
nsCAutoString (External)
Class Declaration
nsCOMPtr
This utility class simplifies managing XPCOM interface references from C++ code.
nsCString
Class Declaration
nsCString external
Class Declaration
nsCStringContainer (External)
Class Declaration
nsCStringEncoding
The nsCStringEncoding enumeration describes the set of character encodings understood by the NS_CStringToUTF16 and NS_UTF16ToCString functions.
nsCountedRef
nsCountedRef<t> is a template class implementing an object that takes a strong reference to a reference-counted resource that must be released, typically on destruction of the object.</t>
nsDependentCString
Class Declaration
nsDependentCString external
Class Declaration
nsDependentCSubstring
Class Declaration
nsDependentCSubstring external
Class Declaration
nsDependentString
Class Declaration
nsDependentString external
Class Declaration
nsDependentSubstring
Class Declaration
nsDependentSubstring external
Class Declaration
nsEmbedCString
The nsEmbedCString concrete class provides a way to construct a nsACString object that allocates null-terminated storage.
nsEmbedString
The nsEmbedString concrete class provides a way to construct a nsAString object that allocates null-terminated storage.
nsFixedCString
Class Declaration
nsFixedString
Class Declaration
nsLiteralCString (External)
Class Declaration
nsLiteralString (External)
Class Declaration
nsMemory
The nsMemory class provides static helper routines to manage memory. These routines allow easy access to XPCOM's global nsIMemory implementation without having to go through the service manager to get it.
nsPromiseFlatCString
Class Declaration
nsPromiseFlatString
Class Declaration
nsRefPtr
nsRefPtr is a general class to implement reference counting pointers for objects. It is similar to nsCOMPtr, but does not require that the type be an XPCOM interface.  Like with nsCOMPtr, it is the responsibility of the object itself to implement reference counting. This is done using the functions AddRef() and Release(), which respectively modify a variable of type nsAutoRefCnt, which basically is a wrapper around a count of the number of references refering to the class.
nsString
Class Declaration
nsString external
Class Declaration
nsStringContainer (External)
Class Declaration
nsSupportsWeakReference
Inherit from this C++ class to add canonical support for nsISupportsWeakReference.
nsXPIDLCString
Class Declaration
nsXPIDLString
Class Declaration

Document Tags and Contributors

 Contributors to this page: Sheppy
 Last updated by: Sheppy,