Struct xpcom::interfaces::nsIIDNService
[−]
[src]
#[repr(C)]pub struct nsIIDNService { /* fields omitted */ }
interface nsIIDNService : nsISupports
/**
* nsIIDNService interface.
*
* IDN (Internationalized Domain Name) support. Provides facilities
* for manipulating IDN hostnames according to the specification set
* forth by the IETF.
*
* IDN effort:
* http://www.ietf.org/html.characters/idn-charter.html
* http://www.i-dns.net
*
* IDNA specification:
* http://search.ietf.org/internet-drafts/draft-ietf-idn-idna-06.txt
*/
Methods
impl nsIIDNService
[src]
pub fn coerce<T: nsIIDNServiceCoerce>(&self) -> &T
[src]
Cast this nsIIDNService
to one of its base interfaces.
impl nsIIDNService
[src]
pub unsafe fn ConvertUTF8toACE(
&self,
input: &nsACString,
_retval: &mut nsACString
) -> nsresult
[src]
&self,
input: &nsACString,
_retval: &mut nsACString
) -> nsresult
/**
* Prepares the input hostname according to IDNA ToASCII operation,
* the input hostname is assumed to be UTF8-encoded.
*/
ACString convertUTF8toACE (in AUTF8String input);
pub unsafe fn ConvertACEtoUTF8(
&self,
input: &nsACString,
_retval: &mut nsACString
) -> nsresult
[src]
&self,
input: &nsACString,
_retval: &mut nsACString
) -> nsresult
/**
* This is the ToUnicode operation as specified in the IDNA proposal,
* with an additional step to encode the result in UTF-8.
* It takes an ACE-encoded hostname and performs ToUnicode to it, then
* encodes the resulting string into UTF8.
*/
AUTF8String convertACEtoUTF8 (in ACString input);
pub unsafe fn IsACE(&self, input: &nsACString, _retval: *mut bool) -> nsresult
[src]
/**
* Checks if the input string is ACE encoded or not.
*/
boolean isACE (in ACString input);
pub unsafe fn Normalize(
&self,
input: &nsACString,
_retval: &mut nsACString
) -> nsresult
[src]
&self,
input: &nsACString,
_retval: &mut nsACString
) -> nsresult
/**
* Performs the unicode normalization needed for hostnames in IDN,
* for callers that want early normalization.
*/
AUTF8String normalize (in AUTF8String input);
pub unsafe fn ConvertToDisplayIDN(
&self,
input: &nsACString,
isASCII: *mut bool,
_retval: &mut nsACString
) -> nsresult
[src]
&self,
input: &nsACString,
isASCII: *mut bool,
_retval: &mut nsACString
) -> nsresult
/**
* Normalizes and converts a host to UTF-8 if the host is in the IDN
* whitelist, otherwise converts it to ACE. This is useful for display
* purposes and to ensure an encoding consistent with nsIURI::GetHost().
* If the result is ASCII or ACE encoded, |isASCII| will be true.
*/
AUTF8String convertToDisplayIDN (in AUTF8String input, out boolean isASCII);
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 nsIIDNService
[src]
const IID: nsIID
IID: nsIID = nsID(2777851406, 13857, 20249, [163, 24, 43, 242, 51, 207, 173, 62])
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 nsIIDNService
[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 nsIIDNService
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.