vl-string->list


(vl-string->list string)

This function returns the list of character values for input string.

Arguments

string  (string) the string to be returned as a character value list

Return

list of integer values, or NIL for an empty string

Example

(vl-string->list "")  NIL
(vl-string->list "abc 123")  returns (97 98 99 32 49 50 51)

Remarks

in BricsCAD, each character in a string is represented by its Unicode value; therefore, forward and backward conversion between visual representation (the character) and its numerical representation (the Unicode value) is always constant across all platforms and versions, local code pages have no impact;
additionally, there is always a 1-to-1 relation (length of a string is identical to number of characters, and number of Unicode values);
this is different from AutoCAD AutoLISP, where all these conditions are not ensured, and therefore the backward + forward conversion is rather useless, and also depends on local code pages;

see (vl-list->string) function



©  Bricsys NV. All rights reserved.