OpenBoot 3.x Command Reference Manual

Manipulating Text Strings

Table I-29 Manipulating Text Strings

Command  

Stack Diagram 

Description 

",

( addr len -- ) 

Compile an array of bytes from addr of length len, at the top of the dictionary as a packed string.

" ccc"

( -- addr len ) 

Collect an input stream string, either interpreted or compiled. Within the string, "(00,ff) can be used to include arbitrary byte values.

.( ccc)

( -- )  

Display a string immediately. 

-trailing

( addr +n1 -- addr +n2 ) 

Remove trailing spaces. 

bl

( -- char ) 

ASCII code for the space character; decimal 32. 

count

( pstr -- addr +n ) 

Unpack a packed string. 

lcc

( char -- lowercase-char ) 

Convert a character to lowercase. 

left-parse-string

( addr len char -- addrR lenR addrL lenL ) 

Split a string at char (which is discarded).

pack

( addr len pstr -- pstr ) 

Make a packed string from addr len; place it at pstr.

p" ccc"

( -- pstr ) 

Collect a string from the input stream; store as a packed string. 

upc

( char -- uppercase-char ) 

Convert a character to uppercase.