All Manuals > LispWorks® User Guide and Reference Manual > 38 The LISPWORKS Package

bmp-string

simple-bmp-string Types

Summary

String types that hold bmp-chars.

Package

lispworks

Signatures

bmp-string &optional length

simple-bmp-string &optional length

Arguments
length
The length of the string (or *, meaning any, which is the default).
Description

Instances of the type bmp-string are strings that can hold characters of type bmp-char, that is characters with code below #x10000 (that is 16-bit). This corresponds to the Basic Multilingual Plane of Unicode.

simple-bmp-string is the simple version of bmp-string, that is it is a simple-array of characters of type bmp-char.

If length is not *, then it constrains the length of the string to that number of elements.

Notes
  1. bmp-strings use less memory than cl:character strings (type text-string), but cannot hold supplementary characters (that is, characters with code #x10000 or greater).
  2. The corresponding character type is bmp-char.
Compatibility note

bmp-string was new in LispWorks 7.0. In LispWorks 6.1 and earlier versions text-string is similar to bmp-string. However, in most cases where you use text-string you probably still want to use text-string (using its new meaning, covering all the Unicode range).

See also

text-string
bmp-char
26.3 Character and String types


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:41