Message from discussion
RfD: Escaped Strings S\" (version 5)
The group you are posting to is a
Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 |
Newsgroups: comp.lang.forth
From: Dick van Oudheusden <dvoudheus...@gmail.com>
Date: Sun, 2 Dec 2007 02:32:15 -0800 (PST)
Local: Sun 2 Dec 2007 10:32
Subject: Re: RfD: Escaped Strings S\" (version 5)
On 30 Oct, 22:16, Peter Knaggs <pkna...@bournemouth.ac.uk> wrote: > : parse\" \ caddr len dest -- caddr' len' > \ *G Parses a string up to an unescaped '"', translating '\' > \ ** escapes to characters much as C does. The > \ ** translated string is a counted string at *\i{dest} > \ ** The supported escapes (case sensitive) are: > \ *D \a BEL (alert) > \ *D \b BS (backspace) > \ *D \e ESC (not in C99) > \ *D \f FF (form feed) > \ *D \l LF (ASCII 10) > \ *D \m CR/LF pair - for HTML etc. > \ *D \n newline - CRLF for Windows/DOS, LF for Unices > \ *D \q double-quote > \ *D \r CR (ASCII 13) > \ *D \t HT (tab) > \ *D \v VT > \ *D \z NUL (ASCII 0) > \ *D \" " > \ *D \xAB Two char Hex numerical character value > \ *D \\ backslash itself > \ *D \ before any other character represents that character
Perhaps it is also a good idea to standardize the underlying word parse\" ( -- c-addr u) in this proposal so that programmers can use it for other words, like .\" and ,\" and so on? Dick
You must Sign in before you can post messages.
You do not have the permission required to post.
|