All Manuals > LispWorks® User Guide and Reference Manual > 36 The EXTERNAL-FORMAT Package

encode-lisp-string Function

Summary

Converts a string to an encoded binary vector.

Package

external-format

Signature

encode-lisp-string string external-format &key start end => vector

Arguments
string
A string.
external-format
An external format spec.
start, end
Bounding index designators of string.
Values
vector
A binary vector.
Description

The function encode-lisp-string converts the part of string bounded by start and end to a binary vector vector encoded in encoding external-format.

The element type of vector matches the external-format-foreign-type of external-format.

Compatibility notes

This function exists in LispWorks 5.0 but is not documented and does not take the :start and :end arguments. Also, it was inefficient prior to LispWorks 5.0.1.

See also

26.6 External Formats to translate Lisp characters from/to external encodings
decode-external-string


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