XML:UnicodeCodec:Latin1

Import List

    XML:UnicodeCodec
 
Class List
Codec
Factory
Class Summary: Codec [Detail]
  +---XML:UnicodeCodec.Codec
       |
       +--XML:UnicodeCodec:Latin1.Codec
Inherited Fields

From XML:UnicodeCodec.Codec:

          bom, invalidChars

Method Summary
Decode(VAR ARRAY OF CHAR, LONGINT, LONGINT, VAR ARRAY OF LONGCHAR, LONGINT, LONGINT, VAR LONGINT, VAR LONGINT)

          Decodes the bytes in `source[sourceStart, sourceEnd[' into the Unicode sequence `dest[destStart, destEnd['.
Encode(VAR ARRAY OF LONGCHAR, LONGINT, LONGINT, VAR ARRAY OF CHAR, LONGINT, LONGINT, VAR LONGINT, VAR LONGINT)

          Encodes the Unicode characters in `source[sourceStart, sourceEnd[' into the byte sequence `dest[destStart, destEnd['.
Inherited Methods

From XML:UnicodeCodec.Codec:

          Decode, Encode, EncodeBOM

 
Class Summary: Factory [Detail]
  +---XML:UnicodeCodec.Factory
       |
       +--XML:UnicodeCodec:Latin1.Factory
Inherited Fields

From XML:UnicodeCodec.Factory:

          bom

Method Summary
GetEncodingName(VAR ARRAY OF CHAR)

          Returns the preferred MIME name for the factory's encoding.
NewCodec(): Codec

          Creates a new codec from factory f.
NewCodecBOM(VAR ARRAY OF CHAR, LONGINT, LONGINT, VAR LONGINT): Codec

          Creates a new codec from factoriy f, taking the byte order mark into account.
Inherited Methods

From XML:UnicodeCodec.Factory:

          GetEncodingName, NewCodec, NewCodecBOM

 
Variable Summary
factory-: Factory

          

Class Detail: Codec
Method Detail

Decode

PROCEDURE (codec: Codec) Decode(VAR source: ARRAY OF CHAR; 
                 sourceStart: LONGINT; 
                 sourceEnd: LONGINT; 
                 VAR dest: ARRAY OF LONGCHAR; 
                 destStart: LONGINT; 
                 destEnd: LONGINT; 
                 VAR sourceDone: LONGINT; 
                 VAR destDone: LONGINT)

Decodes the bytes in `source[sourceStart, sourceEnd[' into the Unicode sequence `dest[destStart, destEnd['.

[Description inherited from Decode]

Redefines: Decode


Encode

PROCEDURE (codec: Codec) Encode(VAR source: ARRAY OF LONGCHAR; 
                 sourceStart: LONGINT; 
                 sourceEnd: LONGINT; 
                 VAR dest: ARRAY OF CHAR; 
                 destStart: LONGINT; 
                 destEnd: LONGINT; 
                 VAR sourceDone: LONGINT; 
                 VAR destDone: LONGINT)

Encodes the Unicode characters in `source[sourceStart, sourceEnd[' into the byte sequence `dest[destStart, destEnd['.

[Description inherited from Encode]

Redefines: Encode

 
Class Detail: Factory
Method Detail

GetEncodingName

PROCEDURE (f: Factory) GetEncodingName(VAR name: ARRAY OF CHAR)

Returns the preferred MIME name for the factory's encoding.

[Description inherited from GetEncodingName]

Redefines: GetEncodingName


NewCodec

PROCEDURE (f: Factory) NewCodec(): Codec

Creates a new codec from factory f. This should not be called for factories with an Factory.bom of bomOptional or bomRequired.

[Description inherited from NewCodec]

Redefines: NewCodec


NewCodecBOM

PROCEDURE (f: Factory) NewCodecBOM(VAR source: ARRAY OF CHAR; 
                      sourceStart: LONGINT; 
                      sourceEnd: LONGINT; 
                      VAR sourceDone: LONGINT): Codec

Creates a new codec from factoriy f, taking the byte order mark into account. The exact behaviour of this procedure depends on the value of f.bom.

bomNotApplicable

Any byte order mark is ignored, and sourceDone is set to sourceStart.

bomOptional

If the source begins with a byte order mark, it is removed from the input and the correspondig codec is returned, and the parameter sourceDone is set after the end of the byte order mark. If there is no byte order mark, sourceDone is set to sourceStart and the default codec is returned.

bomRequired

In the presence of a byte order mark, this is just like bomOptional, but without a byter order mark the returned codec's Codec.invalidChars counter is set to one and sourceDone is set to sourceStart.

Pre-condition: sourceEnd-sourceStart >= maxUTF8EncodingLength, or sourceEnd designates the end of the byte sequence being decoded. This means, that at least one complete character is encoded in the input sequence, or the input sequence ends with a possibly incomplete character.

[Description inherited from NewCodecBOM]

Redefines: NewCodecBOM

 
Variable Detail

factory

VAR factory-: Factory