Markup fixes.

This commit is contained in:
Ruslan Ermilov 2004-07-05 06:59:17 +00:00
parent c81fcafd0d
commit 9f4d0646c7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131610

View File

@ -32,7 +32,7 @@
.Nm kiconv_add_xlat16_cspair , .Nm kiconv_add_xlat16_cspair ,
.Nm kiconv_add_xlat16_cspairs , .Nm kiconv_add_xlat16_cspairs ,
.Nm kiconv_add_xlat16_table .Nm kiconv_add_xlat16_table
.Nd Kernel side iconv library .Nd kernel side iconv library
.Sh LIBRARY .Sh LIBRARY
.Lb libkiconv .Lb libkiconv
.Sh SYNOPSIS .Sh SYNOPSIS
@ -57,64 +57,70 @@
.Fc .Fc
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Xr kiconv 3 .Nm kiconv
library provides multi-byte character conversion tables for kernel side library provides multi-byte character conversion tables for kernel side
iconv service. iconv service.
.Pp .Pp
The
.Fn kiconv_add_xlat16_cspair .Fn kiconv_add_xlat16_cspair
function
defines a conversion table using defines a conversion table using
.Xr iconv 3 .Xr iconv 3
between between
.Ar fromcode .Fa fromcode
charset and charset and
.Ar tocode .Fa tocode
charset. charset.
You can specify You can specify
.Ar flag .Fa flag
to determine if to determine if
.Xr tolower 3 .Xr tolower 3
/ /
.Xr toupper 3 .Xr toupper 3
conversion is included in the table. conversion is included in the table.
The The
.Ar flag .Fa flag
has following values. has following values.
.Pp .Pp
.Bl -tag -width "KICONV_FROM_LOWER" -compact .Bl -tag -width ".Dv KICONV_FROM_LOWER" -compact
.It Fa KICONV_LOWER .It Dv KICONV_LOWER
.It Fa KICONV_FROM_LOWER .It Dv KICONV_FROM_LOWER
It generates a tolower table in addition to a character conversion table. It generates a tolower table in addition to a character conversion table.
The difference between two is tolower The difference between two is tolower
.Ar tocode .Fa tocode
or tolower or tolower
.Ar fromcode . .Fa fromcode .
.It Fa KICONV_UPPER .It Dv KICONV_UPPER
.It Fa KICONV_FROM_UPPER .It Dv KICONV_FROM_UPPER
It generates a toupper table in addition to a character conversion table. It generates a toupper table in addition to a character conversion table.
The difference between two is toupper The difference between two is toupper
.Ar tocode .Fa tocode
or toupper or toupper
.Ar fromcode . .Fa fromcode .
.El .El
.Pp .Pp
A tolower/toupper conversion is limited to single-byte characters. A tolower/toupper conversion is limited to single-byte characters.
.Pp .Pp
The
.Fn kiconv_add_xlat16_cspairs .Fn kiconv_add_xlat16_cspairs
function
defines two conversion tables which are from defines two conversion tables which are from
.Ar localcode .Fa localcode
to to
.Ar foreigncode .Fa foreigncode
and from and from
.Ar foreigncode .Fa foreigncode
to to
.Ar localcode . .Fa localcode .
This conversion tables also contain both of tolower and toupper tables. These conversion tables also contain both tolower and toupper tables.
.Pp .Pp
The
.Fn kiconv_add_xlat16_table .Fn kiconv_add_xlat16_table
function
defines a conversion table directly pointed by defines a conversion table directly pointed by
.Ar data .Fa data
whose length is whose length is
.Ar datalen , .Fa datalen ,
not using not using
.Xr iconv 3 . .Xr iconv 3 .
.Sh SEE ALSO .Sh SEE ALSO