Next: , Previous: , Up: iklib conditions string   [Index]


6.12.18.3 UTF-16 string encoding condition types

Encoding strings into UTF-16 bytevectors

Condition Type: &utf16-string-encoding

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

Function: make-utf16-string-encoding-error

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

Function: utf16-string-encoding-error? obj

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

Decoding strings from UTF-16 bytevectors

Condition Type: &utf16-string-decoding

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

Function: make-utf16-string-decoding-error

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

Function: utf16-string-decoding-error? obj

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

Invalid first word in UTF-16 bytevectors

Condition Type: &utf16-string-decoding-invalid-first-word

Condition object type representing an invalid 16-bit word in the position of standalone word or first word of a surrogate pair; it is derived from &utf16-string-decoding. It has the following fields:

bytevector

The bytevector object.

index

The index of the offending word.

word

The offending word.

Function: make-utf16-string-decoding-invalid-first-word bytevector index word

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

Function: utf16-string-decoding-invalid-first-word? obj

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

Function: utf16-string-decoding-invalid-first-word.bytevector cnd
Function: utf16-string-decoding-invalid-first-word.index cnd
Function: utf16-string-decoding-invalid-first-word.word cnd

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

Invalid second word in UTF-16 bytevectors

Condition Type: &utf16-string-decoding-invalid-second-word

Condition object type representing an invalid 16-bit word in the position of second word of a surrogate pair; it is derived from &utf16-string-decoding. It has the following fields:

bytevector

The bytevector object.

index

The index of the offending second word.

first-word

The correct first word.

second-word

The offending second word.

Function: make-utf16-string-decoding-invalid-second-word bytevector index first-word second-word

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

Function: utf16-string-decoding-invalid-second-word? obj

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

Function: utf16-string-decoding-invalid-second-word.bytevector cnd
Function: utf16-string-decoding-invalid-second-word.index cnd
Function: utf16-string-decoding-invalid-second-word.first-word cnd
Function: utf16-string-decoding-invalid-second-word.second-word cnd

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

Missing second word in UTF-16 bytevectors

Condition Type: &utf16-string-decoding-missing-second-word

Condition object type representing a missing 16-bit word in the position of second word of a surrogate pair; it is derived from &utf16-string-decoding. It has the following fields:

bytevector

The bytevector object.

index

The index of the correct first word.

word

The correct first word.

Function: make-utf16-string-decoding-missing-second-word bytevector index word

Build and return a new condition object of type &utf16-string-decoding-missing-second-word.

Function: utf16-string-decoding-missing-second-word? obj

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

Function: utf16-string-decoding-missing-second-word.bytevector cnd
Function: utf16-string-decoding-missing-second-word.index cnd
Function: utf16-string-decoding-missing-second-word.word cnd

Field accessors for condition objects of type &utf16-string-decoding-missing-second-word.

Standalone octet in UTF-16 bytevectors

Condition Type: &utf16-string-decoding-standalone-octet

Condition object type representing a standalone octet at the end of the byte vector; it is derived from &utf16-string-decoding. It has the following fields:

bytevector

The bytevector object.

index

The index of the octet.

octet

The offending octet.

Function: make-utf16-string-decoding-standalone-octet bytevector index octet

Build and return a new condition object of type &utf16-string-decoding-standalone-octet.

Function: utf16-string-decoding-standalone-octet? obj

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

Function: utf16-string-decoding-standalone-octet.bytevector cnd
Function: utf16-string-decoding-standalone-octet.index cnd
Function: utf16-string-decoding-standalone-octet.octet cnd

Field accessors for condition objects of type &utf16-string-decoding-standalone-octet.


Next: , Previous: , Up: iklib conditions string   [Index]