Previous: , Up: Strings and Characters   [Contents][Index]

5.8.6 Counted string words

count ( c-addr1 – c-addr2 u ) core “count”

c-addr2 is the first character and u the length of the counted string at c-addr1.

The following word has no useful interpretation semantics (unlike s") and no interpretive counterpart (unlike [char]), so you should use it only inside colon definitions (if at all):

C" ( compilation "ccc<quote>" – ; run-time  – c-addr  ) core-ext “c-quote”

Compilation: parse a string ccc delimited by a " (double quote). At run-time, return c-addr which specifies the counted string ccc. Interpretation semantics are undefined.