|
From: | Stan Pinte |
Subject: | Re: problem with (string-tokenize string charset) |
Date: | Tue, 03 Dec 2002 09:44:38 +0100 |
User-agent: | Opera M2 7.0 build 2349 |
On Tue, 03 Dec 2002 00:22:40 -0800, Thien-Thi Nguyen <address@hidden> wrote:
From: Stan Pinte <address@hidden> Date: Tue, 3 Dec 2002 09:24:20 +0100 guile> (string-tokenize "stan-henry" (char-set #\-)) ("-") --> as documented, this should return ("stan" "henry"). perhaps you aren't seeing this documentation:
Indeed. The "make install" target from guile-core-2002... doesn't seem to update the "info" documentation for guile.
Is this a known issue? thanks a lot for the clarificaction! Stan.
- 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. the token set defines the charset of the tokens, rather than of the delimiter; you need to invert it to get the desired behavior. e.g.: guile-tools --source split-string-no-nulls | fgrep -A5 '. sep' thi
-- Stan Pinte
[Prev in Thread] | Current Thread | [Next in Thread] |