KICONV(3)
π 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 atolowertable in addition to a character conversion table. The difference betweenKICONV_LOWERandKICONV_FROM_LOWERistolowertocodeortolowerfromcode.KICONV_FROM_LOWERβ it generates atolowertable in addition to a character conversion table. The difference betweenKICONV_LOWERandKICONV_FROM_LOWERistolowertocodeortolowerfromcode.KICONV_UPPERβ it generates atouppertable in addition to a character conversion table. The difference betweenKICONV_UPPERandKICONV_FROM_UPPERistouppertocodeortoupperfromcode.KICONV_FROM_UPPERβ it generates atouppertable in addition to a character conversion table. The difference betweenKICONV_UPPERandKICONV_FROM_UPPERistouppertocodeortoupperfromcode.
β οΈ heads up, bestie: atolower/toupperconversion 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
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2003 Ryuichiro Imura
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms