Struct xpcom::interfaces::nsITextToSubURI [] [src]

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

interface nsITextToSubURI : nsISupports

Methods

impl nsITextToSubURI
[src]

[src]

Cast this nsITextToSubURI to one of its base interfaces.

impl nsITextToSubURI
[src]

[src]

ACString ConvertAndEscape (in ACString charset, in AString text);

[src]

AString UnEscapeAndConvert (in ACString charset, in ACString text);

[src]

/**
   * Unescapes the given URI fragment (for UI purpose only)
   * Note:
   * <ul>
   *  <li> escaping back the result (unescaped string) is not guaranteed to
   *       give the original escaped string
   *  <li> In case of a conversion error, the URI fragment (escaped) is
   *       assumed to be in UTF-8 and converted to AString (UTF-16)
   *  <li> In case of successful conversion any resulting character listed
   *       in network.IDN.blacklist_chars (except space) is escaped
   *  <li> Always succeeeds (callers don't need to do error checking)
   * </ul>
   *
   * @param aCharset the charset to convert from
   * @param aURIFragment the URI (or URI fragment) to unescape
   * @return Unescaped aURIFragment  converted to unicode
   */

AString unEscapeURIForUI (in ACString aCharset, in AUTF8String aURIFragment);

[src]

/**
   * Unescapes only non ASCII characters in the given URI fragment
   * note: this method assumes the URI as UTF-8 and fallbacks to the given
   * charset if the charset is an ASCII superset
   *
   * @param aCharset the charset to convert from
   * @param aURIFragment the URI (or URI fragment) to unescape
   * @return Unescaped aURIFragment  converted to unicode
   * @throws NS_ERROR_UCONV_NOCONV when there is no decoder for aCharset
   *         or NS_ERROR_UDEC_ILLEGALINPUT in case of conversion failure
   */

AString unEscapeNonAsciiURI (in ACString aCharset, in AUTF8String aURIFragment);

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 nsITextToSubURI
[src]

IID: nsIID = nsID(2332306980, 28551, 4563, [179, 200, 0, 128, 95, 138, 102, 112])

[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 nsITextToSubURI
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsITextToSubURI
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.