17.05.2015 Views

zl:1 - FTP

zl:1 - FTP

zl:1 - FTP

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

37 ascii-to-char<br />

"control" characters. Thus (ascii-code "soh") and (ascii-code #\J,)<br />

return 1. (ascii-code #\c-A) returns #0101, not 1; there is no mapping between<br />

Symbolics character set control characters and ASCII control characters.<br />

Valid ASCII special character names are listed below. All numbers are in<br />

octal.<br />

NUL 000<br />

SOH 001<br />

STX 002<br />

ETX 003<br />

EOT 004<br />

ENQ 005<br />

ACK 006<br />

BEL 007<br />

BS 010<br />

TAB 011<br />

HT 011<br />

LF 012<br />

NL 012<br />

VT 013<br />

FF 014<br />

CR 015<br />

SO 016<br />

SI 017<br />

DLE 020<br />

DC1 021<br />

DC2 022<br />

DC3 023<br />

DC4 024<br />

NAK 025<br />

SYN 026<br />

ETB 027<br />

CAN 030<br />

EM 031<br />

SUB 032<br />

ESC 033<br />

ALT 033<br />

FS 034<br />

OS 035<br />

RS 036<br />

US 037<br />

SP 040<br />

DEL 177<br />

I<br />

ascii-to-char code Function<br />

Converts code (an ASCII code) to the corresponding character. The caller<br />

must ignore LF after CR if desired. See the section "ASCII String<br />

Functions" in Symbolics Common Lisp: Language Concepts.<br />

The functions char-to-ascii and ascii-to-char provide the primitive conversions<br />

needed by ASCII-translating streams. They do not translate the<br />

Return character into a CR-LF pair; the caller must handle that. They just<br />

translate #\return into CR and #\line into LF. Except for CR-LF,<br />

char-to-ascii and ascii-to-char are wholly compatible with the ASCIItranslating<br />

streams.<br />

They ignore Symbolics Lisp Machine control characters; the translation of<br />

#\c-g is the ASCII code for G, not the ASCII code to ring the bell, also<br />

known as "control 0." (ascii-to-char (ascii-code "BEL"» is #/1t, not #\c-G.<br />

The translation from ASCII to character never produces a Lisp Machine<br />

control character.<br />

ascii-to-string ascii-array Function<br />

Converts ascii-array, an sys:art-8b array representing ASCII characters,<br />

into a Lisp string. Note that the length of the string can vary depending<br />

on whether ascii-array contained a newline character or Carriage Return<br />

Line Feed characters. See the section "ASCII Characters" in Symbolics<br />

Common Lisp: Language Concepts.<br />

Example:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!