slice-til-string ( n string search -- n' string payload end-string )


Vocabulary
modern.slices

Inputs
nan object
stringan object
searchan object


Outputs
n'an object
stringan object
payloadan object
end-stringan object


Definition


:: slice-til-string
( n string search -- n' string payload end-string )
n string search subseq-index-from :> n' n'
[ n string search subseq-expected-but-got-eof ] unless
n' search length + string n n' string ?<slice>
n' dup search length + string ?<slice> ;