Sather Home Page

Section 8.3.2.8:
UCS2

immutable class UCS2 < $IS_EQ, $IS_LT{UCS2}, $NIL
$IS_EQ $IS_LT $NIL

Inheritance map

Formal Types

types

SAME = UCS2 ;
UCS2 = token ;

This class implements the concept of a character encoding which is applicable to a given culture. It consists only of those codes in the Unicode standard Basic Multi-lingual Plane (BMP), having only sixteen bit values.


This class definition is the same as the UNICODE class except for the following two reader routines.

asize :CARD

This returns the size (in octets) of objects of this class.

Invalid : SAME

This routine is required for use where it may be appropriate to set some object to a value which is not a valid code bit-pattern. See ISO/IEC 10646 or the implementation of the class UNICODE for details of valid bit-patterns.


Language Index Library Index Codes Index
Comments or enquiries should be made toKeith Hopper.
Page last modified: Thursday, 26 April 2001.
Produced with Amaya