C# Class Gnu.Inet.Encoding.IDNA

Exibir arquivo Open project: pexip/os-libidn

Public Methods

Method Description
ToASCII ( string input ) : string

Converts a Unicode string to ASCII using the procedure in RFC3490 section 4.1. Unassigned characters are not allowed and STD3 ASCII rules are enforced. The input string may be a domain name containing dots.

ToASCII ( string input, bool allowUnassigned, bool useSTD3ASCIIRules ) : string

Converts a Unicode string to ASCII using the procedure in RFC3490 section 4.1. Unassigned characters are not allowed and STD3 ASCII rules are enforced.

ToUnicode ( string input ) : string

Converts an ASCII-encoded string to Unicode. Unassigned characters are not allowed and STD3 hostnames are enforced. Input may be domain name containing dots.

ToUnicode ( string input, bool allowUnassigned, bool useSTD3ASCIIRules ) : string

Converts an ASCII-encoded string to Unicode.

Method Details

ToASCII() public static method

Converts a Unicode string to ASCII using the procedure in RFC3490 section 4.1. Unassigned characters are not allowed and STD3 ASCII rules are enforced. The input string may be a domain name containing dots.
public static ToASCII ( string input ) : string
input string Unicode string.
return string

ToASCII() public static method

Converts a Unicode string to ASCII using the procedure in RFC3490 section 4.1. Unassigned characters are not allowed and STD3 ASCII rules are enforced.
public static ToASCII ( string input, bool allowUnassigned, bool useSTD3ASCIIRules ) : string
input string Unicode string.
allowUnassigned bool Unassigned characters, allowed or not?
useSTD3ASCIIRules bool STD3 ASCII rules, enforced or not?
return string

ToUnicode() public static method

Converts an ASCII-encoded string to Unicode. Unassigned characters are not allowed and STD3 hostnames are enforced. Input may be domain name containing dots.
public static ToUnicode ( string input ) : string
input string ASCII input string.
return string

ToUnicode() public static method

Converts an ASCII-encoded string to Unicode.
public static ToUnicode ( string input, bool allowUnassigned, bool useSTD3ASCIIRules ) : string
input string ASCII input string.
allowUnassigned bool Allow unassigned Unicode characters.
useSTD3ASCIIRules bool Check that the output conforms to STD3.
return string