RKCVTHIRA(3)
β¨ NAME β¨
hey bestie, this is RKCVTHIRA(3) from the Library Functions Manual, and the star of the show is RkCvtHira β she converts double-width katakana to double-width hiragana. iconic. π
π SYNOPSIS π
#include <canna/RK.h>
int RkCvtHira(dst, maxdst, src, srclen)
unsigned char *dst;
int maxdst;
unsigned char *src;
int srclen;
like, copy that exactly or it won't compile, bestie. π«Ά
π DESCRIPTION π
okay so RkCvtHira converts the srclen bytes of double-width katakana data to double-width hiragana, starting at the area src. slay. β¨
a null character in src is not interpreted as the end of the string. not me thinking null means stop β it does not. π
the conversion result is stored in the area dst. characters that are not subject to conversion are copied as they area (yes, the manpage says "area", we're keeping it, no cap π«Ά).
the conversion result is truncated to adjust to character boundaries in the EUC code when its byte length exceeds maxdst -1. dst is padded with null characters at the end if possible. EUC code is used to represent both src and dst. π
NULL can be specified in dst. NULL overrides the entire conversion result. periodt. π
πΈ RETURN VALUE πΈ
this function returns the byte length of the conversion result, or returns 0 if the value of maxdst is invalid. that's the whole vibe check. π₯
k bye bestie π this was RKCVTHIRA(3) from the Library Functions Manual β footer's just RKCVTHIRA(3), no version or date, just page name energy. mwah π
β¨
π¦ where this page comes from
- debian bookworm: libcanna1g-dev 3.7p3-20 Β· ISC
- debian trixie: libcanna1g-dev 3.7p3-25 Β· ISC
- ubuntu jammy: libcanna1g-dev 3.7p3-17 Β· ISC
- ubuntu noble: libcanna1g-dev 3.7p3-20 Β· ISC
- ubuntu questing: libcanna1g-dev 3.7p3-26
- ubuntu resolute: libcanna1g-dev 3.7p3-26build1 Β· ISC
- ubuntu stonking: libcanna1g-dev 3.7p3-29 Β· ISC
- Copyright 1994 NEC Corporation, Tokyo, Japan
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms