Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsIIDNService Interface Reference

nsIIDNService interface. More...

import "nsIIDNService.idl";

Inheritance diagram for nsIIDNService:
Inheritance graph
[legend]
Collaboration diagram for nsIIDNService:
Collaboration graph
[legend]

List of all members.

Public Member Functions

ACString convertUTF8toACE (in AUTF8String input)
 Prepares the input hostname according to IDNA ToASCII operation, the input hostname is assumed to be UTF8-encoded.
AUTF8String convertACEtoUTF8 (in ACString input)
 This is the ToUnicode operation as specified in the IDNA proposal, with an additional step to encode the result in UTF-8.
boolean isACE (in ACString input)
 Checks if the input string is ACE encoded or not.
AUTF8String normalize (in AUTF8String input)
 Performs the unicode normalization needed for hostnames in IDN, for callers that want early normalization.

Detailed Description

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

Definition at line 62 of file nsIIDNService.idl.


Member Function Documentation

AUTF8String nsIIDNService::convertACEtoUTF8 ( in ACString  input)

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.

ACString nsIIDNService::convertUTF8toACE ( in AUTF8String  input)

Prepares the input hostname according to IDNA ToASCII operation, the input hostname is assumed to be UTF8-encoded.

The current input is string, but this may change pending Bug 84186.

boolean nsIIDNService::isACE ( in ACString  input)

Checks if the input string is ACE encoded or not.

AUTF8String nsIIDNService::normalize ( in AUTF8String  input)

Performs the unicode normalization needed for hostnames in IDN, for callers that want early normalization.


The documentation for this interface was generated from the following file: