Node:SRFI-13 Miscellaneous, 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.

string-replace s1 s2 [start1 end1 start2 end2] Scheme Procedure
Return the string s1, but with the characters start1 ... end1 replaced by the characters start2 ... end2 from s2.

string-tokenize s [token_char start end] Scheme Procedure
Split the string s into a list of substrings, where each substring is a maximal non-empty contiguous sequence of characters equal to the character token_char, or whitespace, if token_char is not given. If token_char is a character set, it is used for finding the token borders.