This is NO page from the
dpans'94 document.
It is an experimental draft for public review, here at FORTH.SF.NET |
RFC 2002 |
TOC |
See:
A.20 The optional ZChar word set
See:
A.26.2 Additional terms
backslash encoding ascii encoding meaning \a hex 07 BEL - bell \b hex 08 BS - backspace \t hex 09 HT - horizontal tabulator \n hex 0A LF - line feed / new line \v hex 0B VT - vertical tabulator \f hex 0C FF - form feed / new page \r hex 0D CR - carriage return \\ hex 5C a single backslash itself \q hex 22 a single doublequote \e hex 1B a terminal escape controlThe sequences of a backslash followed by a number are called octalescapes, the sequence of backslash followed by an [x] character are called hexescapes. The transconding of other backslash sequences is system dependent.
See:
A.26.2 Additional terms
See:
A.26.2 Additional terms
See:
A.26.2 Additional terms
See:
17 string extensions word set.
See:
3.2.6 Environmental queries
Table 26.2 - Environmental query strings
String Value data type Constant? Meaning ------ --------------- --------- ------- ZCHAR-EXT flag no zchar extensions word set present
The phrase Providing name(s) from the ZChar Extensions word set shall be appended to the label of any Standard System that provides portions of the ZChar Extensions word set.
The phrase Providing the ZChar Extensions word set shall be appended to the label of any Standard System that provides all of the Environment and ZChar Extensions word sets.
The phrase Requiring name(s) from the ZChar Extensions word set shall be appended to the label of Standard Programs that require the system to provide portions of the ZChar Extensions word set.
The phrase Requiring the ZChar Extensions word set shall be appended to the label of Standard Programs that require the system to provide all of the Environment and ZChar Extensions word sets.
26.6.1.0001 Z"
Interpretation: Interpretation semantics for this word are undefined.
Compilation: ( "ccc<quote>" -- )
Parse ccc delimited by " (double-quote). Append the run-time semantics given below to the current definition.
Run-time: ( -- z-addr )
Return z-addr describing a string consisting of the characters ccc plus a terminating null zchar. A program shall not alter the returned string.
See:
3.4.1 Parsing,
6.2.0855 C" ,
6.1.2165 S" ,
11.6.1.2165 S" ,
26.6.1.0002 ZCOUNT
( z-addr -- z-addr u )
Return the character string specification for the zchar string stored at c-addr. The returned c-addr is the same for these strings. u is number of zchars up to the terminating null charachter, which is the length of the string.
See:
6.1.0980 COUNT
26.6.2.0003 ZSTRLEN
26.6.2.0003 ZSTRLEN
( z-addr -- u )
Return the length of the zchar string stored at c-addr which is the number of zchars up to the terminating null charachter from z-addr.
See:
26.6.2.0002 ZCOUNT
26.6.2.0004 ZMOVE
( z-addr1 z-addr2 -- )
Copy consecutive characters from the data space starting at c-addr1 to that starting at c-addr2, proceeding character-by-character from lower addresses to higher addresses until the terminating null character in z-addr1 is encountered which is copied last.
See:
17.6.1.0910 CMOVE ,
17.6.1.0920 CMOVE>
26.6.2.0005 APPENDZ / Z+PLACE
( c-addr u z-addr -- )
Adjust the destination z-addr by looking for its terminating null character. If u is greater than zero, copy u consecutive characters from the data space starting at c-addr to that starting at the null character, proceeding character-by-character from lower addresses to higher addresses. Place a null character in the destination area after copying
See:
26.6.2.0004 ZMOVE ,
26.6.2.0006 ZPLACE
26.6.2.0006 ZPLACE
( c-addr u z-addr -- )
If u is greater than zero, copy u consecutive characters from the data space starting at c-addr to that starting at z-addr, proceeding character-by-character from lower addresses to higher addresses. Always place a null character in the destination area as the end of the z-addr.
See:
26.6.1.0004 ZMOVE ,
26.6.6.0005 Z+PLACE / APPENDZ
26.6.2.0007 C\"
Interpretation: Interpretation semantics for this word are undefined.
Compilation: ( "backslash-string<quote>" -- )
Parse the backslash-string definition up to the final " (double-quote) and append the run-time semantics given below to the current definition.
Run-time: ( -- c-addr )
Return c-addr, a counted string consisting of the characters of the backslash-string. A program shall not alter the returned string.
See:
3.4.1 Parsing ,
26.4.1 backslash-string ,
26.2.005 Z\" ,
6.2.0855 C" ,
6.1.2165 S" ,
11.6.1.2165 S" ,
26.6.2.0008 S\"
Interpretation: Interpretation semantics for this word are undefined.
Compilation: ( "backslash-string<quote>" -- )
Parse the backslash-string definition up to the final " (double-quote) and append the run-time semantics given below to the current definition.
Run-time: ( -- c-addr u )
Return c-addr and u describing a string consisting of the characters ccc. A program shall not alter the returned string.
See:
3.4.1 Parsing ,
26.4.1 backslash-string ,
26.2.005 Z\" ,
6.2.0855 C" ,
6.1.2165 S" ,
11.6.1.2165 S" ,
26.6.2.0009 Z\"
Interpretation: Interpretation semantics for this word are undefined.
Compilation: ( "backslash-string<quote>" -- )
Parse the backslash-string definition up to the final " (double-quote) and append the run-time semantics given below to the current definition.
Run-time: ( -- z-addr )
Return z-addr, a zchar string consisting of the characters of the backslash-string plus the required null character at the end. A program shall not alter the returned string.
See:
3.4.1 Parsing ,
26.4.1 backslash-string ,
26.2.0003 C\" ,
26.2.0004 S\" ,
6.2.0855 C" ,
6.1.2165 S" ,
11.6.1.2165 S" ,