string definitions



p4_blank_ : BLANK ( str-ptr str-len -- )

FILL a given buffer with BL blanks

reference: ../src/string.c:0066

p4_cmove_ : CMOVE ( from-ptr to-ptr len -- )

memcpy an area from->to for len bytes, starting at the lower addresses, see CMOVE>

reference: ../src/string.c:0076

p4_cmove_up_ : CMOVE> ( from-ptr to-ptr len -- )

memcpy an area from->to for len bytes, starting with the higher addresses, see CMOVE

reference: ../src/string.c:0091

p4_compare_ : COMPARE ( str-ptr1 str-len1 str-ptr2 str-len2 -- n )

compare both str-buffers, return 0 if they are equal, -1 if lower or shorter, and 1 if greater or longer

reference: ../src/string.c:0108

p4_dash_trailing_ : -TRAILING ( str-ptr str-len -- str-ptr str-len' )

check the given buffer if it contains whitespace at its end. If so, shorten str-len to meet the last non-whitespace character in the buffer.

reference: ../src/string.c:0038

p4_s_quote_execution_ : ((S")) ( -- string-address string-length )

execution compiled by S"

reference: ../src/string.c:0164

p4_search

reference: ../src/string.c:0136

p4_search_ : SEARCH ( str-ptr1 str-len1 str-ptr2 str-len2 -- str-ptr1' str-len1' flag )

search the str-buffer1 for the text of str-buffer2, if it is contained return TRUE and return buffer-values that point to the contained string, otherwise return FALSE and leave the original str-buffer1.

reference: ../src/string.c:0133

p4_slash_string_

reference: ../src/string.c:0048

p4_sliteral_ : SLITERAL ( -- string ) (runtime) compile-only

this word does almost the same as LITERAL - it takes an S" string as specified in the CS-STACK at compile time and compiles into the current definition where it is returned as if there were a direct string-literal. This can be used to compute a string-literal at compile-time and hardwire it.
 example:
   : ORIGINAL-HOME  [ $HOME COUNT ] SLITERAL ; ( -- str-ptr str-len )

reference: ../src/string.c:0158

p4_alloc_string

reference: ../src/string.c:0161