"Fossies" - the Fresh Open Source Software Archive

Member "libidn2-2.1.1/doc/texi/decode.c.texi" (4 Jul 2018, 4275 Bytes) of package /linux/misc/libidn2-2.1.1a.tar.lz:


Caution: As a special service "Fossies" has tried to format the requested Texinfo source page into HTML format but that may be not always succeeeded perfectly. Alternatively you can here view or download the uninterpreted Texinfo source code. A member file download can also be achieved by clicking within a package contents listing on the according byte size field. See also the last Fossies "Diffs" side-by-side code changes report for "decode.c.texi": 2.0.5_vs_2.1.0.

idn2_to_unicode_8z4z

Function: int idn2_to_unicode_8z4z (const char * input, uint32_t ** output, G_GNUC_UNUSED int flags)

input: Input zero-terminated UTF-8 string.

output: Newly allocated UTF-32/UCS-4 output string.

flags: Currently unused.

Converts a possibly ACE encoded domain name in UTF-8 format into a UTF-32 string (punycode decoding). The output buffer will be zero-terminated and must be deallocated by the caller.

output may be NULL to test lookup of input without allocating memory.

Since: 2.0.0

idn2_to_unicode_4z4z

Function: int idn2_to_unicode_4z4z (const uint32_t * input, uint32_t ** output, int flags)

input: Input zero-terminated UTF-32 string.

output: Newly allocated UTF-32 output string.

flags: Currently unused.

Converts a possibly ACE encoded domain name in UTF-32 format into a UTF-32 string (punycode decoding). The output buffer will be zero-terminated and must be deallocated by the caller.

output may be NULL to test lookup of input without allocating memory.

Since: 2.0.0

idn2_to_unicode_44i

Function: int idn2_to_unicode_44i (const uint32_t * in, size_t inlen, uint32_t * out, size_t * outlen, int flags)

in: Input array with UTF-32 code points.

inlen: number of code points of input array

out: output array with UTF-32 code points.

outlen: on input, maximum size of output array with UTF-32 code points, on exit, actual size of output array with UTF-32 code points.

flags: Currently unused.

The ToUnicode operation takes a sequence of UTF-32 code points that make up one domain label and returns a sequence of UTF-32 code points. If the input sequence is a label in ACE form, then the result is an equivalent internationalized label that is not in ACE form, otherwise the original sequence is returned unaltered.

output may be NULL to test lookup of input without allocating memory.

Since: 2.0.0

idn2_to_unicode_8z8z

Function: int idn2_to_unicode_8z8z (const char * input, char ** output, int flags)

input: Input zero-terminated UTF-8 string.

output: Newly allocated UTF-8 output string.

flags: Currently unused.

Converts a possibly ACE encoded domain name in UTF-8 format into a UTF-8 string (punycode decoding). The output buffer will be zero-terminated and must be deallocated by the caller.

output may be NULL to test lookup of input without allocating memory.

Since: 2.0.0

idn2_to_unicode_8zlz

Function: int idn2_to_unicode_8zlz (const char * input, char ** output, int flags)

input: Input zero-terminated UTF-8 string.

output: Newly allocated output string in current locale’s character set.

flags: Currently unused.

Converts a possibly ACE encoded domain name in UTF-8 format into a string encoded in the current locale’s character set (punycode decoding). The output buffer will be zero-terminated and must be deallocated by the caller.

output may be NULL to test lookup of input without allocating memory.

Since: 2.0.0

idn2_to_unicode_lzlz

Function: int idn2_to_unicode_lzlz (const char * input, char ** output, int flags)

input: Input zero-terminated string encoded in the current locale’s character set.

output: Newly allocated output string in current locale’s character set.

flags: Currently unused.

Converts a possibly ACE encoded domain name in the locale’s character set into a string encoded in the current locale’s character set (punycode decoding). The output buffer will be zero-terminated and must be deallocated by the caller.

output may be NULL to test lookup of input without allocating memory.

Since: 2.0.0


This document was generated on February 9, 2019 using texi2html.