DragonFly On-Line Manual Pages

Search: Section:  


idn_result_tostring(3)                      DragonFly Library Functions Manual

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 surrogate 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_comparenames2(). idn_failure Generic error which is not covered by the above codes.

SEE ALSO

libidnkit(3), idn_checkname(3), idn_comparenames(3), idn_decodename(3), idn_encodename(3), idn_nameinit(3), idn_setlanguage(3), idn_setlocalcheckfile(3), idn_setlocalencoding(3), idn.conf(5) September 21, 2012 idn_result_tostring(3)

Search: Section: