idn_result_tostring(3)
πΈ NAME πΈ
Okay bestie, welcome to idn_result_tostring(3) β the Library Functions Manual page that turns your error codes into actual words. π
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 π
So the idn_result_tostring() function takes an error code result and returns a pointer to the corresponding message string. Itβs giving βerror code, but make it readableβ, and honestly? We love that. π«Ά
Hereβs the complete list of error codes β no skips, no cap:
idn_successβ The call succeeded. Slay. β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 overU+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()orrealloc()function returnedNULL.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_PROHCHECKfailed.idn_prohibited(obsolete) β Same asidn_prohcheck_error.idn_unascheck_errorβIDN_UNASCHECKfailed.idn_nfccheck_errorβIDN_NFCCHECKfailed.idn_prefcheck_errorβIDN_PREFCHECKfailed.idn_hyphcheck_errorβIDN_HYPHCHECKfailed.idn_combcheck_errorβIDN_COMBCHECKfailed.idn_ctxjcheck_errorβIDN_CTXJCHECKfailed.idn_ctxocheck_errorβIDN_CTXOCHECKorIDN_CTXOLITECHECKfailed.idn_bidicheck_errorβIDN_BIDICHECKfailed.idn_localcheck_errorβIDN_LOCALCHECKfailed.idn_lencheck_errorβIDN_LENCHECKfailed.idn_invalid_length(obsolete) β Same asidn_lencheck_error.idn_rtcheck_errorβIDN_RTCHECKfailed.idn_tr46check_errorβIDN_TR46CHECKfailed.idn_neqβ Not equivalent domain names. This error code is returned fromidn_comparenames()andidn_comparenames2(). πidn_failureβ Generic error which is not covered by the above codes.
π¦ SEE ALSO π¦
Go click around, bestie β these are the iconically related pages:
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)
Catch you later, bestie π β this was idn_result_tostring(3) from the Library Functions Manual, dated Sep 21, 2012. Periodt. π
π¦ where this page comes from
- nixos 26.05: idnkit 2.3
- nixpkgs unstable: idnkit 2.3
- Copyright (c) 2000-2002 Japan Network Information Center. All rights reserved
- Copyright (c) 2000-2002 Japan Network Information Center. All rights reserved."
- Copyright (c) 2010-2012 Japan Registry Services Co., Ltd. All rights reserved."
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms