Next: , Previous: SRFI-13 Replicate/Rotate, Up: SRFI-13


39.11.14 Miscellaneous

string-replace is for replacing a portion of a string with another string and string-tokenize splits a string into a list of strings, breaking it up at a specified character.

— Scheme Procedure: string-replace s1 s2 [start1 [end1 [start2 [end2]]]]

Return the string s1, but with the characters start1 ... end1 replaced by the characters start2 ... end2 from s2.

— Scheme Procedure: string-tokenize s [token_set [start [end]]]

Split the string s into a list of substrings, where each substring is a maximal non-empty contiguous sequence of characters from the character set token_set, which defaults to char-set:graphic from module (srfi srfi-14). If start or end indices are provided, they restrict string-tokenize to operating on the indicated substring of s.