CLCS

Required Kinds of Specialized Arrays

Vectors whose elements are restricted to type

character or a subtype of character

are called strings . Strings are of type string. Figure 15–2 lists some defined names related to strings.

Strings are specialized arrays and might logically have been included in this chapter. However, for purposes of readability most information about strings does not appear in this chapter; see instead Strings.

charstring-equalstring-upcase
make-stringstring-greaterpstring/=
nstring-capitalizestring-left-trimstring<
nstring-downcasestring-lesspstring<=
nstring-upcasestring-not-equalstring=
scharstring-not-greaterpstring>
stringstring-not-lesspstring>=
string-capitalizestring-right-trim
string-downcasestring-trim
Figure 15–2: Operators that Manipulate Strings

Vectors whose elements are restricted to type bit are called bit vectors . Bit vectors are of type bit-vector. Figure 15–3 lists some defined names for operations on bit arrays.

bitbit-iorbit-orc2
bit-andbit-nandbit-xor
bit-andc1bit-norsbit
bit-andc2bit-not
bit-eqvbit-orc1
Figure 15–3: Operators that Manipulate Bit Arrays