tld_check_4z(3)
β¨ tld_check_4z β¨
okay bestie, welcome to libidn's tld_check_4z(3) β she's an API function and she's here to vibe-check your code points π
π SYNOPSIS π
#include <tld.h>
int tld_check_4z(const uint32_t * in, size_t * errpos, const Tld_table
** overrides);
like yes, she's a function, she takes three things, and she has opinions πΈ
π¦ ARGUMENTS π¦
const uint32_t * inβ a zero-terminated array of unicode code points, aka the lil squad you're about to interrogate. no cap.size_t * errposβ the position of the offending character gets returned right here. the snitch slot, if you will πconst Tld_table ** overridesβ aTld_tablearray of extra domain restriction structures. these complement and supersede the built-in info, so they're giving main character energy over the defaults π
π DESCRIPTION π
so what she does is: she tests each of the code points in in to see whether or not they're allowed β by the info in overrides, or by the built-in TLD restriction data. it's giving vibe check, but for unicode.
when data for the same TLD is available both internally and in overrides, the info in overrides takes precedence. sorry built-ins, the overrides ate π
if several entries for a specific TLD are found, the first one is used. first come, first served, periodt.
if overrides is NULL, only the built-in information is used. no overrides, no drama, just defaults.
the position of the first offending character is returned in errpos. the first one, bestie β she's not gonna list every single one, she found the problem and she's telling you π«Ά
Return value: returns the Tld_rc value TLD_SUCCESS if all code points are valid or when tld is null, TLD_INVALID if a character is not allowed, or additional error codes on general failure conditions. so like, three possible moods: slay, nope, and "something else went wrong, idk" π
π REPORTING BUGS π
found a bug? spill it, but do it officially:
- report bugs to <help-libidn@gnu.org> π
- general guidelines for reporting bugs: https://www.gnu.org/gethelp/
- GNU Libidn home page: https://www.gnu.org/software/libidn/
π COPYRIGHT π
Copyright Β© 2002-2026 Simon Josefsson.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.
(translation: go off, just keep the receipts π§Ύ)
π SEE ALSO π
the full documentation for libidn is maintained as a Texinfo manual. if the info and libidn programs are properly installed at your site, the command
info libidn
should give you access to the complete manual. as an alternative you may obtain the manual from:
https://www.gnu.org/software/libidn/manual/
fr fr, that's the whole page. go forth and validate those code points, bestie π
and that's a wrap on the libidn 1.44 edition of tld_check_4z(3) β she's iconic, she's specific, she's never leaving the group chat βπ
π¦ where this page comes from
- arch rolling: libidn 1.44-1 Β· GPL3 AND LGPL
- epel 10: libidn-devel 1.44-1.el10_3 Β· (LGPL-3.0-or-later OR GPL-2.0-or-later) AND GPL-3.0-or-later AND GFDL-1.3-or-later
- fedora 43: libidn-devel 1.44-1.fc43 Β· (LGPL-3.0-or-later OR GPL-2.0-or-later) AND GPL-3.0-or-later AND GFDL-1.3-or-later
- fedora 43: libidn-devel 1.44-1.fc43 Β· (LGPL-3.0-or-later OR GPL-2.0-or-later) AND GPL-3.0-or-later AND GFDL-1.3-or-later
- fedora 44: libidn-devel 1.44-1.fc44 Β· (LGPL-3.0-or-later OR GPL-2.0-or-later) AND GPL-3.0-or-later AND GFDL-1.3-or-later
- fedora 44: libidn-devel 1.44-1.fc44 Β· (LGPL-3.0-or-later OR GPL-2.0-or-later) AND GPL-3.0-or-later AND GFDL-1.3-or-later
- ubuntu stonking: libidn-dev 1.44-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms