Module idna

Data Types

idna_flags()

idna_flags() = [{uts46, boolean()} | {std3_rules, boolean()} | {transitional, boolean()}]

Function Index

alabel/1
check_context/1
check_hyphen/1
check_initial_combiner/1
check_label/1
check_label/4validate a label of a domain.
check_label_length/1
check_nfc/1
decode/1decode an International Domain Name encoded with the IDNA protocol.
decode/2decode an International Domain Name encoded with the IDNA protocol.
encode/1encode Internationalized Domain Names using IDNA protocol.
encode/2encode Internationalized Domain Names using IDNA protocol.
from_ascii/1like to_ascii/1
to_ascii/1encode an International Domain Name to IDNA protocol (compatibility API).
to_unicode/1decode an an encoded International Domain Nam eusing thz IDNA protocol (compatibility API).
ulabel/1
utf8_to_ascii/1

Function Details

alabel/1

alabel(Label0) -> any()

check_context/1

check_context(Label) -> any()

check_hyphen/1

check_hyphen(Label) -> any()

check_initial_combiner/1

check_initial_combiner(X1) -> any()

check_label/1

check_label(Label::string()) -> ok

check_label/4

check_label(Label, CheckHyphens, CheckJoiners, CheckBidi) -> Result

validate a label of a domain

check_label_length/1

check_label_length(Label) -> any()

check_nfc/1

check_nfc(Label) -> any()

decode/1

decode(Domain::string()) -> string()

decode an International Domain Name encoded with the IDNA protocol

decode/2

decode(Domain0::string(), Options::idna_flags()) -> string()

decode an International Domain Name encoded with the IDNA protocol

encode/1

encode(Domain::string()) -> string()

encode Internationalized Domain Names using IDNA protocol

encode/2

encode(Domain0::string(), Options::idna_flags()) -> string()

encode Internationalized Domain Names using IDNA protocol. Input can be mapped to uniccode using [uts46](https://unicode.org/reports/tr46/#Introduction) by setting the uts46 flag to true (default is false). If transition from IDNA 2003 to IDNA 2008 is needed, the flag transitional can be set to true, (default is false). If conformance to STD3 is needed, the flag std3_rules can be set to true. (default is false).

from_ascii/1

from_ascii(Domain::nonempty_string()) -> nonempty_string()

like to_ascii/1

to_ascii/1

to_ascii(Domain::string()) -> string()

encode an International Domain Name to IDNA protocol (compatibility API)

to_unicode/1

to_unicode(Domain::string()) -> string()

decode an an encoded International Domain Nam eusing thz IDNA protocol (compatibility API)

ulabel/1

ulabel(Label0) -> any()

utf8_to_ascii/1

utf8_to_ascii(Domain) -> any()


Generated by EDoc