MARC::Charset::Table is a wrapper around the character mapping database,
which is implemented as a tied hash on disk. This database gets generated
by Makefile.PL on installation of MARC::Charset using
The database is essentially a key/value mapping where a key is a
MARC-8 character set code + a MARC-8 character, or an integer representing the
UCS code point. These keys map to a serialized MARC::Charset::Code object.
Add a MARC::Charset::Code to the table.
Retrieve a code using a hash key.
Looks up MARC::Charset::Code entry using a character set code and a MARC-8
use MARC::Charset::Constants qw(HEBREW);
$code = $table->lookup_by_marc8(HEBREW, chr(0x60));
Looks up a MARC::Charset::Code object using a utf8 value.
Returns a reference to a tied character database. MARC::Charset::Table
wraps access to the db, but you can get at it if you want.
Returns the path to the character encoding database. Can be called
An alternate constructor which removes the existing database and starts
afresh. Be careful with this one, its really only used on MARC::Charset