tld_check_4t(3)
β¨ tld_check_4t(3) β¨
okay bestie, welcome to libidn β the manual page for tld_check_4t, and yes we're doing this together, no you're not reading it alone π
π NAME π
tld_check_4t β it's literally an API function, that's the whole name, periodt.
π¦ SYNOPSIS π¦
#include <tld.h>
int tld_check_4t(const uint32_t * in, size_t inlen, size_t * errpos,
const Tld_table * tld);
look at her. she's giving very much "one function, four arguments, zero drama" πΈ
π ARGUMENTS π
const uint32_t * inβ the array of unicode code points you wanna process, bestie. and listen: it does not need to be zero terminated, so don't come for me with that null byte, she doesn't need it πsize_t inlenβ how many unicode code points are in there. the count. the receipts. the number. π’size_t * errposβ this is where the position of the offending character gets returned. like, she's gonna snitch on exactly where the problem is, and she's putting it right here β¨const Tld_table * tldβ aTld_tabledata structure representing the restrictions that your input is getting tested against. the rulebook, basically π
π DESCRIPTION π
so what she does is: she tests each and every one of the code points in in to see whether they're allowed by the data structure in tld, and then she returns the position of the first character for which that is not the case in errpos. first offender gets named, fr fr π
Return value: she returns the Tld_rc value TLD_SUCCESS if all the code points are valid, or when tld is null (yes, null is a vibe, she lets it slide π«Ά). She returns TLD_INVALID if a character is not allowed, or additional error codes on general failure conditions. so like, if it's not one of those two, it's one of the extra ones, iykyk.
π REPORTING BUGS π
found a bug? don't be shy, tell the people:
- 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. (iconic behaviour honestly, no royalties, just vibes π)
β 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/
and that's the whole page, bestie!! this was libidn, version 1.44, and the manual page is tld_check_4t(3) β go forth and validate your code points, you absolute main character π§β¨π
π¦ 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