Struct xpcom::interfaces::nsIScriptableUnicodeConverter [] [src]

#[repr(C)]
pub struct nsIScriptableUnicodeConverter { /* fields omitted */ }

interface nsIScriptableUnicodeConverter : nsISupports

/**
 * This interface is a unicode encoder for use by scripts
 *
 * @created         8/Jun/2000
 * @author          Makoto Kato [m_kato@ga2.so-net.ne.jp]
 */

Methods

impl nsIScriptableUnicodeConverter
[src]

[src]

Cast this nsIScriptableUnicodeConverter to one of its base interfaces.

impl nsIScriptableUnicodeConverter
[src]

[src]

/**
   * Converts the data from Unicode to one Charset.
   * Returns the converted string. After converting, Finish should be called
   * and its return value appended to this return value.
   */

ACString ConvertFromUnicode (in AString aSrc);

[src]

/**
   * Returns the terminator string.
   * Should be called after ConvertFromUnicode() and appended to that
   * function's return value.
   */

ACString Finish ();

[src]

/**
   * Converts the data from one Charset to Unicode.
   */

AString ConvertToUnicode (in ACString aSrc);

[src]

/**
   * Converts an array of bytes to a unicode string.
   */

AString convertFromByteArray ([array, size_is (aCount), const] in octet aData, in unsigned long aCount);

[src]

/**
   * Convert a unicode string to an array of bytes. Finish does not need to be
   * called.
   */

void convertToByteArray (in AString aString, [optional] out unsigned long aLen, [array, size_is (aLen), retval] out octet aData);

[src]

/**
   * Converts a unicode string to an input stream. The bytes in the stream are
   * encoded according to the charset attribute.
   * The returned stream will be nonblocking.
   */

nsIInputStream convertToInputStream (in AString aString);

[src]

/**
   * Current character set.
   *
   * @throw NS_ERROR_UCONV_NOCONV
   *        The requested charset is not supported.
   */

attribute ACString charset;

[src]

/**
   * Current character set.
   *
   * @throw NS_ERROR_UCONV_NOCONV
   *        The requested charset is not supported.
   */

attribute ACString charset;

[src]

/**
   * Meaningless
   */

attribute boolean isInternal;

[src]

/**
   * Meaningless
   */

attribute boolean isInternal;

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIScriptableUnicodeConverter
[src]

IID: nsIID = nsID(4084130596, 23580, 17279, [186, 16, 43, 77, 183, 161, 128, 49])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIScriptableUnicodeConverter
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIScriptableUnicodeConverter
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.