stringprep_ucs4_nfkc_normalize(3)
π stringprep_ucs4_nfkc_normalize(3) π
okay bestie, sit down, hydrate, and let me tell you about a little function from libidn that is lowkey doing the most important glow-up work in the whole Unicode friend group: stringprep_ucs4_nfkc_normalize(3). it takes your messy UCS4 string and gives it the canonical-form makeover. no cap. β¨
πΈ NAME πΈ
stringprep_ucs4_nfkc_normalize β literally the API function, that's the name, that's the vibe π«Ά
β¨ SYNOPSIS β¨
#include <stringprep.h>
uint32_t * stringprep_ucs4_nfkc_normalize(const uint32_t * str, ssize_t
len);
π ARGUMENTS π
const uint32_t * strβ a Unicode string, bestie. it'sconst, so hands off, we're just looking πssize_t lenβ the length of thestrarray, or-1ifstris nul-terminated. like, if you already ended it with a nul, just say-1and we'll figure it out ourselves, we got you π
π¦ DESCRIPTION π¦
Converts a UCS4 string into canonical form. the way that it does thisβ¦ iconic. for more info, go check out stringprep_utf8_nfkc_normalize() β same energy, different encoding, iykyk.
Return value: a newly allocated Unicode string, and that string is the NFKC normalized form of str. it's giving fresh-out-the-box, brand new, all yours to free later (not that we're saying it out loud but like, you know π₯).
π REPORTING BUGS π
found a bug? not me manifesting that, but fr fr, report it to:
<help-libidn@gnu.org>
General guidelines for reporting bugs live at: https://www.gnu.org/gethelp/
and the GNU Libidn home page is right here: 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. periodt. π
π 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. main character documentation energy, honestly. π§
As an alternative you may obtain the manual from:
https://www.gnu.org/software/libidn/manual/
ngl, if you're about to call this on a string you don't own, don't. it allocates. respect the allocation. π
and that's the whole page, bestie!! πΈ this was libidn, version 1.44, bringing you stringprep_ucs4_nfkc_normalize(3). stay normalized, stay iconic, mwah πβ¨ππ¦
π¦ 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