| Current File : //usr/man/man3/punycode_decode.3 |
'\" te
.\" DO NOT MODIFY THIS FILE! It was generated by gdoc.
.TH "punycode_decode" 3 "1.19" "libidn" "libidn"
.SH NAME
punycode_decode \- API function
.SH SYNOPSIS
.B #include <punycode.h>
.sp
.BI "int punycode_decode(size_t " input_length ", const char [] " input ", size_t * " output_length ", punycode_uint [] " output ", unsigned char [] " case_flags ");"
.SH ARGUMENTS
.IP "size_t input_length" 12
The number of ASCII code points in the \fIinput\fP array.
.IP "const char [] input" 12
An array of ASCII code points (0..7F).
.IP "size_t * output_length" 12
The caller passes in the maximum number of code
points that it can receive into the \fIoutput\fP array (which is also
the maximum number of flags that it can receive into the
\fIcase_flags\fP array, if \fIcase_flags\fP is not a \fBNULL\fP pointer). On
successful return it will contain the number of code points
actually output (which is also the number of flags actually
output, if case_flags is not a null pointer). The decoder will
never need to output more code points than the number of ASCII
code points in the input, because of the way the encoding is
defined. The number of code points output cannot exceed the
maximum possible value of a punycode_uint, even if the supplied
\fIoutput_length\fP is greater than that.
.IP "punycode_uint [] output" 12
An array of code points like the input argument of
\fBpunycode_encode()\fP (see above).
.IP "unsigned char [] case_flags" 12
A \fBNULL\fP pointer (if the flags are not needed by the
caller) or an array of boolean values parallel to the \fIoutput\fP
array. Nonzero (true, flagged) suggests that the corresponding
Unicode character be forced to uppercase by the caller (if
possible), and zero (false, unflagged) suggests that it be forced
to lowercase (if possible). ASCII code points (0..7F) are output
already in the proper case, but their flags will be set
appropriately so that applying the flags would be harmless.
.SH "DESCRIPTION"
Converts Punycode to a sequence of code points (presumed to be
Unicode code points).
.SH "RETURN VALUE"
The return value can be any of the \fBPunycode_status\fP
values defined above. If not \fBPUNYCODE_SUCCESS\fP, then
\fIoutput_length\fP, \fIoutput\fP, and \fIcase_flags\fP might contain garbage.
.SH "REPORTING BUGS"
Report bugs to <bug-libidn@gnu.org>.
GNU Libidn home page: http://www.gnu.org/software/libidn/
General help using GNU software: http://www.gnu.org/gethelp/
.SH COPYRIGHT
Copyright \(co 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Simon Josefsson.
.br
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
.\" Oracle has added the ARC stability level to this manual page
.SH ATTRIBUTES
See
.BR attributes (5)
for descriptions of the following attributes:
.sp
.TS
box;
cbp-1 | cbp-1
l | l .
ATTRIBUTE TYPE ATTRIBUTE VALUE
=
Availability library/libidn
=
Stability Uncommitted
.TE
.PP
.SH "SEE ALSO"
The full documentation for
.B libidn
is maintained as a Texinfo manual. If the
.B info
and
.B libidn
programs are properly installed at your site, the command
.IP
.B info libidn
.PP
should give you access to the complete manual.
.SH NOTES
.\" Oracle has added source availability information to this manual page
This software was built from source available at https://java.net/projects/solaris-userland. The original community source was downloaded from http://ftp.gnu.org/gnu/libidn/libidn-1.19.tar.gz
Further information about this software can be found on the open source community website at http://www.gnu.org/software/libidn/.