module Netunidata:sig
..end
Netconversion
module implements the conversion between
various character sets. By default, this module knows only a few
built-in characters sets (in particular ISO-8859-1 and US-ASCII).
Conversions to other character sets can be enabled by linking in
the netunidata
library.
There are two options to load the required tables. First, the table can be linked with the executable (static table). Second, the table can be loaded at runtime when needed (dynamic table).
For getting static tables, just specify one or several of the following findlib packages:
Netunidata.disable
.
If you want to load all tables dynamically, just specify this package:
val load : string -> unit
load key
: Loads the table for this key, if not already loaded or
statically linked in. The key is the internal name of the mapping
table (e.g. "cmapf.koi8r")val load_charset : Netconversion.charset -> unit
load_charset enc
: Loads the forward and backward mapping tables for
this charset.val enable : unit -> unit
val disable : unit -> unit
val net_db_dir : unit -> string
val set_net_db_dir : string -> unit