GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
KICONV(3) FreeBSD Library Functions Manual KICONV(3)

kiconv_add_xlat16_cspair, kiconv_add_xlat16_cspairs, kiconv_add_xlat16_table
kernel side iconv library

Kernel-side iconv Library (libkiconv, -lkiconv)

#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);

The kiconv library provides multi-byte character conversion tables for kernel side iconv service.

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.

 
It generates a tolower table in addition to a character conversion table. The difference between two is tolower tocode or tolower fromcode.
 
It generates a toupper table in addition to a character conversion table. The difference between two is toupper tocode or toupper fromcode.

A tolower/toupper conversion is limited to single-byte characters.

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.

The kiconv_add_xlat16_table() function defines a conversion table directly pointed by data whose length is datalen, not using iconv(3).

iconv(3), tolower(3), toupper(3)
July 17, 2003 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.