1stringprep_strerror(3)              libidn              stringprep_strerror(3)
2
3
4

NAME

6       stringprep_strerror - API function
7

SYNOPSIS

9       #include <stringprep.h>
10
11       const char * stringprep_strerror(Stringprep_rc rc);
12

ARGUMENTS

14       Stringprep_rc rc
15                   a Stringprep_rc return code.
16

DESCRIPTION

18       Convert  a  return  code  integer to a text string.  This string can be
19       used to output a diagnostic message to the user.
20

STRINGPREP_OK

22       Successful operation.  This value is guaranteed to always be zero,  the
23       remaining ones are only guaranteed to hold non-zero values, for logical
24       comparison purposes.
25

STRINGPREP_CONTAINS_UNASSIGNED

27       String contain unassigned Unicode code points, which  is  forbidden  by
28       the profile.
29

STRINGPREP_CONTAINS_PROHIBITED

31       String contain code points prohibited by the profile.
32

STRINGPREP_BIDI_BOTH_L_AND_RAL

34       String contain code points with conflicting bidirection category.
35

STRINGPREP_BIDI_LEADTRAIL_NOT_RAL

37       Leading  and  trailing  character in string not of proper bidirectional
38       category.
39

STRINGPREP_BIDI_CONTAINS_PROHIBITED

41       Contains prohibited code points detected by bidirectional code.
42

STRINGPREP_TOO_SMALL_BUFFER

44       Buffer handed to function was too small.  This usually indicate a prob‐
45       lem in the calling application.
46

STRINGPREP_PROFILE_ERROR

48       The  stringprep  profile  was  inconsistent.   This usually indicate an
49       internal error in the library.
50

STRINGPREP_FLAG_ERROR

52       The supplied flag conflicted with profile.   This  usually  indicate  a
53       problem in the calling application.
54

STRINGPREP_UNKNOWN_PROFILE

56       The supplied profile name was not known to the library.
57

STRINGPREP_ICONV_ERROR

59       Could not convert string in locale encoding.
60

STRINGPREP_NFKC_FAILED

62       The  Unicode  NFKC operation failed.  This usually indicate an internal
63       error in the library.
64

STRINGPREP_MALLOC_ERROR

66       The malloc() was out of memory.  This is usually a fatal error.
67
68       Return value: Returns a pointer to a statically allocated  string  con‐
69       taining a description of the error with the return code  rc .
70

REPORTING BUGS

72       Report bugs to <bug-libidn@gnu.org>.
73       General guidelines for reporting bugs: http://www.gnu.org/gethelp/
74       GNU Libidn home page: http://www.gnu.org/software/libidn/
75
76
78       Copyright © 2002-2016 Simon Josefsson.
79       Copying  and  distribution  of this file, with or without modification,
80       are permitted in any medium  without  royalty  provided  the  copyright
81       notice and this notice are preserved.
82

SEE ALSO

84       The  full  documentation  for libidn is maintained as a Texinfo manual.
85       If the info and libidn programs are properly installed  at  your  site,
86       the command
87
88              info libidn
89
90       should  give  you access to the complete manual.  As an alternative you
91       may obtain the manual from:
92
93              http://www.gnu.org/software/libidn/manual/
94
95libidn                               1.34               stringprep_strerror(3)
Impressum