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

NextPrevUpTopContentsIndex

text-string

simple-text-string

Types
Summary

The text string types.

Package

lispworks

Signature

text-string length

simple-text-string length

Arguments

length

The length of the string (or *, meaning any).

Description

text-string is the type of strings that can hold any character, that is, (vector cl:character length). This is the string type that is guaranteed to always hold any character used in writing text (program text or natural language).

simple-text-string is the simple version of text-string, that is, the string itself is simple. Equivalent to:

(simple-vector cl:character length)
Notes

text-string uses 32 bits per character. Applications that use many strings and are very large, when they know they do not use the full Unicode range, can consider using base-string (up to 8 bits) or bmp-string (up to 16 bits) to reduce memory usage.

Compatibility note

In LispWorks 6.1 and earlier versions, text-string uses 16 bits per character.

See also

bmp-string
base-string
text-string-p
Character and String types


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex