The class Character is an abstraction for character data.
Characters have values between 0 and 65535, and are unique objects that represent code points. A
code point is simply a numeric value--the format and graphical appearance of a character are defined by the currently selected character set. All vendors agree that the characters with values from 0-127 correspond to the ASCII standard character set. However, there is no agreement on the interpretation of other characters. Groups of characters can be composed into either a
String or a
DBString depending upon the values of the characters being composed.
CLDT does not support the Blue Book method asciiValue because it is not appropriate for characters whose value exceeds 127, the range of values converted by the ASCII standard. Rather, the
asciiValue message is replaced by the more general message
value.
Objectworks\Smalltalk does not support the message
value, but uses
asInteger as the equivalent message. Smalltalk/V does not support the message
value, but uses
asciiValue as the equivalent message.
Smalltalk/V uses the spelling asLowerCase and
asUpperCase, and does not support
asSymbol. Character conversions outside the ASCII range of values (0 to 127) vary from platform to platform and from language to language. Character conversion results might differ between platforms.
Objectworks\Smalltalk does not support
asString.
The Blue Book specifies that class Character should support messages that provide access to several of the standard ASCII nonprinting characters used for text formatting:
backspace,
cr,
esc,
newPage,
space, and
tab.
Objectworks\Smalltalk adopts this approach, and extends it to support several additional characters. The approach taken by VA Smalltalk is to supply all of the nonprinting ASCII characters in a pool dictionary called
CldtConstants as shown in
Table 2. In addition, to support the ANSI Smalltalk specification,
cr,
if,
space, and
tab are provided.
isAlphaNumeric,
isDigit,
isLetter,
isLowercase,
supplantation,
isSeparator,
isUppercase,
isVowel
Smalltalk/V uses the spelling isLowerCase and
isUpperCase. Character classifications outside the ASCII range of values (0 to 127) vary from platform to platform and from language to language.
Character conversion results might differ between platforms. Neither
Objectworks\Smalltalk nor Smalltalk/V support
isPunctuation for
Characters.
Copyright 2005, 2020 Instantiations, Inc. All rights reserved.