numlib::fromAscii -- decoding
of ASCII codes
IntroductionIf L is a list of ASCII codes then
numlib::fromAscii(L) returns the string coded
by L.
Call(s)numlib::fromAscii(listOfCodes)
ParameterslistOfCodes |
- | a list of ASCII codes |
Returnsa string
Related
Functions
Details0 and 8 and between
11 and 31, are ignored.numlib::fromAscii returns an error if its argument is
not a list of integers between 0 and 127,
i. e., not a list of legal ASCII codes.Error: Unexpected 'identifier' [col 3]
Example
1Non-printable characters are ignored, but tabulator and newline characters are decoded.
>> L := [0,1,2,3,9,10,31,10,9,32,45,32,101,105,110,32,
84,101,115,116,32,61,32,97,32,116,101,115,116]:
>> numlib::fromAscii(L)
"\t\n\n\t - ein Test = a test"