gasp.info: String Builtins
Go backward to Expressions
Go up to Syntax Details
Go to the top op gasp
String primitives
You can use these primitives to manipulate strings (in the argument
field of GASP statements):
`.LEN("STR")'
Calculate the length of string `"STR"', as an absolute expression.
For example, `.RES.B .LEN("sample")' reserves six bytes of memory.
`.INSTR("STRING", "SEG", IX)'
Search for the first occurrence of SEG after position IX of
STRING. For example, `.INSTR("ABCDEFG", "CDE", 0)' evaluates to
the absolute result `2'.
The result is `-1' if SEG does not occur in STRING after position
IX.
`.SUBSTR("STRING",START,LEN)'
The substring of STRING beginning at byte number START and
extending for LEN bytes.
Created Wed Sep 1 16:42:12 2004 on bee with info_to_html version 0.9.6.