1RKCVTKANA(3) Library Functions Manual RKCVTKANA(3)
2
3
4
6 RkCvtKana - convert double-width hiragana to double-width katakana
7
9 #include <canna/RK.h>
10 int RkCvtKana(dst, maxdst, src, srclen)
11 unsigned char *dst;
12 int maxdst;
13 unsigned char *src;
14 int srclen;
15
17 RkCvtKana converts the srclen bytes of double-width hiragana data to
18 double-width katakana, starting at the area src. A null character in
19 src is not interpreted as the end of the string. The conversion result
20 is stored in the area dst. Characters that are not subject to converā
21 sion are copied as they area. The conversion result is truncated to
22 adjust to character boundaries in the EUC code when its byte length
23 exceeds maxdst -1. dst is padded with null characters at the end if
24 possible. EUC code is used to represent both src and dst.
25
26 NULL can be specified in dst. NULL overrides the entire conversion
27 result.
28
30 This function returns the byte length of the conversion result, or
31 returns 0 if the value of maxdst is invalid.
32
33
34
35 RKCVTKANA(3)