WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIAtomService

IID:8c0e6018-6a06-47f5-bfa1-2e051705c9de
Inherits From:nsISupports

This interface is intended to be used as a service. To create an object implementing this interface:

var obj = Components.classes["@mozilla.org/atom-service;1"].
            getService(Components.interfaces.nsIAtomService);

This interface is implemented by the following components:


Methods

nsIAtom getAtom ( PRUnichar* value ) [noscript] nsIAtom getAtomUTF8 ( char* value ) nsIAtom getPermanentAtom ( PRUnichar* value ) [noscript] nsIAtom getPermanentAtomUTF8 ( char* value )

nsIAtom getAtom ( PRUnichar* value )

Version of NS_NewAtom that doesn't require linking against the XPCOM library. See nsIAtom.idl.

Arguments:
value

nsIAtom getAtomUTF8 ( char* value )

Get an atom with a utf8 string.

Arguments:
value

nsIAtom getPermanentAtom ( PRUnichar* value )

Version of NS_NewPermanentAtom that doesn't require linking against the XPCOM library. See nsIAtom.idl.

Arguments:
value

nsIAtom getPermanentAtomUTF8 ( char* value )

Arguments:
value

Reference documentation is generated from Mozilla's source.