Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Thursday, June 13, 2019
 
 

idn_result_tostring (3)

Name

idn_result_tostring - return a string corresponding with an error code

Synopsis

#include <idn/result.h>

char *
idn_result_tostring(idn_result_t result);

Description

idn_result_tostring(3)     Library Functions Manual     idn_result_tostring(3)



NAME
       idn_result_tostring - return a string corresponding with an error code

SYNOPSIS
       #include <idn/result.h>

       char *
       idn_result_tostring(idn_result_t result);


DESCRIPTION
       idn_result_tostring() function takes an error code result and returns a
       pointer to the corresponding message string.

       The following is a complete list of the error codes.

       idn_success    The call succeeded.

       idn_notfound   Specified information does not exist.

       idn_invalid_encoding
                      The encoding of the specified string is not valid.

       idn_invalid_syntax
                      There is a syntax error in the configuration file.

       idn_invalid_name
                      The specified name is not valid.

       idn_invalid_message (obsolete)
                      Invalid message.

       idn_invalid_action
                      The specified action value is not valid.

       idn_invalid_codepoint
                      The specified string contains an  invalid  Unicode  code
                      point; U+0000, U+D800..U+DFFF (for representing a surro-
                      gate pair) or over U+10FFFF.

       idn_buffer_overflow
                      The specified buffer is too small to hold the result.

       idn_noentry    The specified key does not exist in a hash table.

       idn_nomemory   malloc() or realloc() function returned NULL.

       idn_nofile     The specified file cannot not be opened.

       idn_nomapping  A character does not have  the  mapping  to  the  target
                      character set.

       idn_context_required (obsolete)
                      Context information required.

       idn_prohcheck_error
                      IDN_PROHCHECK failed.

       idn_prohibited (obsolete)
                      Same as idn_prohcheck_error.

       idn_unascheck_error
                      IDN_UNASCHECK failed.

       idn_nfccheck_error
                      IDN_NFCCHECK failed.

       idn_prefcheck_error
                      IDN_PREFCHECK failed.

       idn_hyphcheck_error
                      IDN_HYPHCHECK failed.

       idn_combcheck_error
                      IDN_COMBCHECK failed.

       idn_ctxjcheck_error
                      IDN_CTXJCHECK failed.

       idn_ctxocheck_error
                      IDN_CTXOCHECK or IDN_CTXOLITECHECK failed.

       idn_bidicheck_error
                      IDN_BIDICHECK failed.

       idn_localcheck_error
                      IDN_LOCALCHECK failed.

       idn_lencheck_error
                      IDN_LENCHECK failed.

       idn_invalid_length (obsolete)
                      Same as idn_lencheck_error.

       idn_rtcheck_error
                      IDN_RTCHECK failed.

       idn_tr46check_error
                      IDN_TR46CHECK failed.

       idn_neq        Not   equivalent  domain  names.   This  error  code  is
                      returned  from   idn_comparenames()   and   idn_compare-
                      names2().

       idn_failure    Generic error which is not covered by the above codes.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+------------------------------+
       |ATTRIBUTE TYPE |       ATTRIBUTE VALUE        |
       +---------------+------------------------------+
       |Availability   | library/idnkit/header-idnkit |
       +---------------+------------------------------+
       |Stability      | Committed                    |
       +---------------+------------------------------+
SEE ALSO
       libidnkit(3), idn_checkname(3), idn_comparenames(3), idn_decodename(3),
       idn_encodename(3),  idn_nameinit(3),   idn_setlanguage(3),   idn_setlo-
       calcheckfile(3), idn_setlocalencoding(3), idn.conf(5)



NOTES
       This     software     was    built    from    source    available    at
       https://github.com/oracle/solaris-userland.   The  original   community
       source was downloaded from  https://jprs.co.jp/idn/idnkit-2.3.tar.bz2

       Further information about this software can be found on the open source
       community website at https://jprs.co.jp/idn.



                                 Sep 21, 2012           idn_result_tostring(3)