KICONV(3)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’… KICONV(3) β€” kernel side iconv library ✨

okay bestie, welcome to the KICONV(3) page from the Library Functions Manual β€” this one is all about the kernel side iconv library, and it's giving multi-byte character conversion tables for the kernel side iconv service. no cap, we're gonna keep every function, every flag, and every single detail. periodt. πŸ’–

🌸 NAME 🌸

kiconv_add_xlat16_cspair, kiconv_add_xlat16_cspairs, kiconv_add_xlat16_table β€” kernel side iconv library.

πŸ¦‹ LIBRARY πŸ¦‹

Kernel side iconv library (libkiconv, -lkiconv).

✨ SYNOPSIS ✨

       #include <sys/iconv.h>

       int
       kiconv_add_xlat16_cspair(const char *tocode, const char *fromcode,
           int flag);

       int
       kiconv_add_xlat16_cspairs(const char *foreigncode,
           const char *localcode);

       int
       kiconv_add_xlat16_table(const char *tocode, const char *fromcode,
           const void *data, int datalen);

πŸ’– DESCRIPTION πŸ’–

The kiconv library provides multi-byte character conversion tables for kernel side iconv service. it's literally the main character of kernel-side conversion tables, iykyk. πŸ‘‘

πŸŽ€ kiconv_add_xlat16_cspair() πŸŽ€

The kiconv_add_xlat16_cspair() function defines a conversion table using iconv(3) between fromcode charset and tocode charset. You can specify flag to determine if tolower(3) / toupper(3) conversion is included in the table. the flag has following values, bestie:

  • KICONV_LOWER β€” it generates a tolower table in addition to a character conversion table. The difference between KICONV_LOWER and KICONV_FROM_LOWER is tolower tocode or tolower fromcode.
  • KICONV_FROM_LOWER β€” it generates a tolower table in addition to a character conversion table. The difference between KICONV_LOWER and KICONV_FROM_LOWER is tolower tocode or tolower fromcode.
  • KICONV_UPPER β€” it generates a toupper table in addition to a character conversion table. The difference between KICONV_UPPER and KICONV_FROM_UPPER is toupper tocode or toupper fromcode.
  • KICONV_FROM_UPPER β€” it generates a toupper table in addition to a character conversion table. The difference between KICONV_UPPER and KICONV_FROM_UPPER is toupper tocode or toupper fromcode.
⚠️ heads up, bestie: a tolower/toupper conversion is limited to single-byte characters. that's the vibe check for this part. πŸ’€

πŸ¦‹ kiconv_add_xlat16_cspairs() πŸ¦‹

The kiconv_add_xlat16_cspairs() function defines two conversion tables which are from localcode to foreigncode and from foreigncode to localcode. These conversion tables also contain both tolower and toupper tables. it's giving two-for-one conversion table energy, and honestly? obsessed. 🫢

🌈 kiconv_add_xlat16_table() 🌈

The kiconv_add_xlat16_table() function defines a conversion table directly pointed by data whose length is datalen, not using iconv(3). no iconv(3) here β€” it's direct, it's literal, it's the main character move. ✨

🌟 SEE ALSO 🌟


okay that's the whole page, bestie! source/version: Debian; date: July 17, 2003. mwah πŸ’‹

πŸ“¦ where this page comes from