Encode::UTR22 - Implement Unicode TR22 complex conversions


Encode-UTR22 documentation  | view source Contained in the Encode-UTR22 distribution.

Index


NAME

Top

Encode::UTR22 - Implement Unicode TR22 complex conversions

DESCRIPTION

Top

Implements all of UTR22 except: validity, header, bidirectional re-ordering, history, v attribute for versioning, aliases - that's the job of another module fbu and fub are treated synonymously with single directional a, with equal priority

Supports UTR22c extensions including: contexts, reordering

INSTANCE VARIABLES

Top

'info'

Hash containing attributes from the <characterMapping> element.

'sub'

Two element array containing, in order, the bytes and Unicode replacement characters

'classes'

Hash, indexed by classname, returning Encode::UTR22::Regexp::class (Encode::UTR22::Regexp::class) object.

'rules'

Array of rules, each rule being a hash.

'contexts'

Hash, indexed by contextname, returning Encode::UTR22::Regexp::group (Encode::UTR22::Regexp::group) object representing a context expression.

'orders'

Hash, indexed by 'bytes' or 'unicode', returning hash containing ordering elements 'b', 'u', 'bctxt', 'actxt'

METHODS

Top

new( $infile [, %parms ] )

Create new instance, parsing and compiling the UTR22 xml

process_file( $infile [, %params ] )

Create and return a new instance, and parse (but do not compile) a UTR22 xml file

compile( [ %params ] )

Compile a UTR22 object. Parameters recognized

'toBytes'

Determines which direction that map will be compiled. True = compile for Unicode to Bytes. False = compile for Bytes to Unicode. Default is both.

'debug'

Turn on debugging.

decode( $sourceByteString [, CHECK] )

Perform Bytes to Unicode conversion.

encode( $sourceUnicodeString [, CHECK])

Perform Unicode to Bytes conversion.

COPYRIGHT

Top


Encode-UTR22 documentation  | view source Contained in the Encode-UTR22 distribution.