Next: strings pad, Previous: strings fold, Up: strings [Index]
Wrapper for substring
accepting a string view as argument.
The function %string-copy*
is an alias for substring
; the
macro string-copy*
is an alias for substring*
.
These exist for symmetry with the
(vicare containers vectors)
library; they allow more confidence in converting a vector function into a string function, and vice versa, by just replacing the stringvector
with the stringstring
, and vice versa.
Like %string-copy*
, but copy the elements in the reverse order
from the selected substring of str.
(string-reverse-copy* (view "543210") (start 1) (past 5))) ⇒ "1234"
Write the selected source substring into the selected destination
substring. This function is the side–effecting variant of
substring
and substring*
. This function supports copying
over the same string.
The selected destination substring starts at dst-start in dst-str and may extend until the end of the string. In the destination string view dst-S: If a past index is specified, it is ignored.
Like %string-copy*!
, but this copies the elements in the reverse
order. This function supports copying over the same string.
Return the first or last nchars of the selected substring. These functions always return a newly allocated string.
Drop the first or last nchars of the selected substring and return the resulting string. These functions always return a newly allocated string.
Next: strings pad, Previous: strings fold, Up: strings [Index]