18.6.2.2495 X\STRING- x-string-minus XCHAR EXT

( xc-addr u1 -- xc-addr u2 )

Search for the penultimate xchar in the string xc-addr u1. The string xc-addr u2 contains all xchars of xc-addr u1, but the last. Unlike XCHAR-, X\STRING- can be implemented in encodings where xchar boundaries can only reliably detected when scanning in forward direction.

Implementation:

: X\STRING- ( xc-addr u -- xc-addr u' )
   OVER + XCHAR- OVER - ;

ContributeContributions

AntonErtlavatar of AntonErtl [253] PronounciationComment2022-08-14 17:47:05

The pronounciation is given as "x-string-minus". If I hear this, I type XSTRING- or X-STRING-. A better pronounciation would be "x-backslash-string-minus"

Reply New Version