Previous: , Up: iklib conditions string   [Index]


6.12.18.4 UTF-32 string encoding condition types

Encoding strings into UTF-32 bytevectors

Condition Type: &utf32-string-encoding

Condition object type representing an error while encoding a string into a UTF-32 bytevector; it is derived from &string-encoding.

Function: make-utf32-string-encoding-error

Build and return a new condition object of type &utf32-string-encoding.

Function: utf32-string-encoding-error? obj

Return #t if obj is a condition object of type &utf32-string-encoding; otherwise return #f.

Decoding strings from UTF-32 bytevectors

Condition Type: &utf32-string-decoding

Condition object type representing an error while decoding a UTF-32 bytevector into a string; it is derived from &string-decoding.

Function: make-utf32-string-decoding-error

Build and return a new condition object of type &utf32-string-decoding.

Function: utf32-string-decoding-error? obj

Return #t if obj is a condition object of type &utf32-string-decoding; otherwise return #f.

Invalid 32-bit word in UTF-32 bytevectors

Condition Type: &utf32-string-decoding-invalid-word

Condition object type representing an invalid 32-bit word; it is derived from &utf32-string-decoding. It has the following fields:

bytevector

The bytevector object.

index

The index of the offending word.

word

The offending word.

Function: make-utf32-string-decoding-invalid-word bytevector index word

Build and return a new condition object of type &utf32-string-decoding-invalid-word.

Function: utf32-string-decoding-invalid-word? obj

Return #t if obj is a condition object of type &utf32-string-decoding-invalid-word; otherwise return #f.

Function: utf32-string-decoding-invalid-word.bytevector cnd
Function: utf32-string-decoding-invalid-word.index cnd
Function: utf32-string-decoding-invalid-word.word cnd

Field accessors for condition objects of type &utf32-string-decoding-invalid-word.

Orphan octets at end of UTF-32 bytevectors

Condition Type: &utf32-string-decoding-orphan-octets

Condition object type representing the presence of 1, 2 or 3 orphan octets at the end of the UTF-32 bytevector; it is derived from &utf32-string-decoding. It has the following fields:

bytevector

The bytevector object.

index

The index of the first octet.

octets

A list of fixnums representing the octets.

Function: make-utf32-string-decoding-orphan-octets bytevector index octets

Build and return a new condition object of type &utf32-string-decoding-orphan-octets.

Function: utf32-string-decoding-orphan-octets? obj

Return #t if obj is a condition object of type &utf32-string-decoding-orphan-octets; otherwise return #f.

Function: utf32-string-decoding-orphan-octets.bytevector cnd
Function: utf32-string-decoding-orphan-octets.index cnd
Function: utf32-string-decoding-orphan-octets.octets cnd

Previous: , Up: iklib conditions string   [Index]