2 .\" Copyright (c) 2003 Ryuichiro Imura
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 .\" $FreeBSD: head/lib/libkiconv/kiconv.3 247337 2013-02-26 19:46:02Z jmg $
32 .Nm kiconv_add_xlat16_cspair ,
33 .Nm kiconv_add_xlat16_cspairs ,
34 .Nm kiconv_add_xlat16_table
35 .Nd kernel side iconv library
41 .Fo kiconv_add_xlat16_cspair
42 .Fa "const char *tocode"
43 .Fa "const char *fromcode"
47 .Fo kiconv_add_xlat16_cspairs
48 .Fa "const char *foreigncode"
49 .Fa "const char *localcode"
52 .Fo kiconv_add_xlat16_table
53 .Fa "const char *tocode"
54 .Fa "const char *fromcode"
55 .Fa "const void *data"
61 library provides multi-byte character conversion tables for kernel side
65 .Fn kiconv_add_xlat16_cspair
67 defines a conversion table using
80 conversion is included in the table.
85 .Bl -tag -width ".Dv KICONV_FROM_LOWER" -compact
87 .It Dv KICONV_FROM_LOWER
88 It generates a tolower table in addition to a character conversion table.
89 The difference between two is tolower
94 .It Dv KICONV_FROM_UPPER
95 It generates a toupper table in addition to a character conversion table.
96 The difference between two is toupper
102 A tolower/toupper conversion is limited to single-byte characters.
105 .Fn kiconv_add_xlat16_cspairs
107 defines two conversion tables which are from
115 These conversion tables also contain both tolower and toupper tables.
118 .Fn kiconv_add_xlat16_table
120 defines a conversion table directly pointed by