Struct xpcom::interfaces::nsITextToSubURI
[−]
[src]
#[repr(C)]pub struct nsITextToSubURI { /* fields omitted */ }
interface nsITextToSubURI : nsISupports
Methods
impl nsITextToSubURI
[src]
pub fn coerce<T: nsITextToSubURICoerce>(&self) -> &T
[src]
Cast this nsITextToSubURI
to one of its base interfaces.
impl nsITextToSubURI
[src]
pub unsafe fn ConvertAndEscape(
&self,
charset: &nsACString,
text: &nsAString,
_retval: &mut nsACString
) -> nsresult
[src]
&self,
charset: &nsACString,
text: &nsAString,
_retval: &mut nsACString
) -> nsresult
ACString ConvertAndEscape (in ACString charset, in AString text);
pub unsafe fn UnEscapeAndConvert(
&self,
charset: &nsACString,
text: &nsACString,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
charset: &nsACString,
text: &nsACString,
_retval: &mut nsAString
) -> nsresult
AString UnEscapeAndConvert (in ACString charset, in ACString text);
pub unsafe fn UnEscapeURIForUI(
&self,
aCharset: &nsACString,
aURIFragment: &nsACString,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
aCharset: &nsACString,
aURIFragment: &nsACString,
_retval: &mut nsAString
) -> nsresult
/**
* 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);
pub unsafe fn UnEscapeNonAsciiURI(
&self,
aCharset: &nsACString,
aURIFragment: &nsACString,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
aCharset: &nsACString,
aURIFragment: &nsACString,
_retval: &mut nsAString
) -> nsresult
/**
* 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>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsITextToSubURI
[src]
const IID: nsIID
IID: nsIID = nsID(2332306980, 28551, 4563, [179, 200, 0, 128, 95, 138, 102, 112])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[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]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsITextToSubURI
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.