1stringprep_profile(3)               libidn               stringprep_profile(3)
2
3
4

NAME

6       stringprep_profile - API function
7

SYNOPSIS

9       #include <stringprep.h>
10
11       int  stringprep_profile(const char * in, char ** out, const char * pro‐
12       file, Stringprep_profile_flags flags);
13

ARGUMENTS

15       const char * in
16                   input array with UTF-8 string to prepare.
17
18       char ** out output variable with pointer to newly allocate string.
19
20       const char * profile
21                   name of stringprep profile to use.
22
23       Stringprep_profile_flags flags
24                   a Stringprep_profile_flags value, or 0.
25

DESCRIPTION

27       Prepare the input zero terminated UTF-8 string according to the string‐
28       prep profile, and return the result in a newly allocated variable.
29
30       Note  that  you must convert strings entered in the systems locale into
31       UTF-8 before using this function, see stringprep_locale_to_utf8().
32
33       The output  out variable must be deallocated by the caller.
34
35       The  flags are one of Stringprep_profile_flags values, or 0.
36
37       The  profile specifies the name of the stringprep profile to  use.   It
38       must be one of the internally supported stringprep profiles.
39
40       Return value: Returns STRINGPREP_OK iff successful, or an error code.
41

REPORTING BUGS

43       Report bugs to <bug-libidn@gnu.org>.
44       General guidelines for reporting bugs: http://www.gnu.org/gethelp/
45       GNU Libidn home page: http://www.gnu.org/software/libidn/
46
47
49       Copyright © 2002-2016 Simon Josefsson.
50       Copying  and  distribution  of this file, with or without modification,
51       are permitted in any medium  without  royalty  provided  the  copyright
52       notice and this notice are preserved.
53

SEE ALSO

55       The  full  documentation  for libidn is maintained as a Texinfo manual.
56       If the info and libidn programs are properly installed  at  your  site,
57       the command
58
59              info libidn
60
61       should  give  you access to the complete manual.  As an alternative you
62       may obtain the manual from:
63
64              http://www.gnu.org/software/libidn/manual/
65
66libidn                               1.34                stringprep_profile(3)
Impressum