From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.lisp.guile.user Subject: Re: problem with (string-tokenize string charset) Date: Tue, 03 Dec 2002 00:22:40 -0800 Sender: guile-user-admin@gnu.org Message-ID: References: <5.1.1.6.0.20021121085949.03260e08@pop.wanadoo.be> <87d6oxfi6t.fsf@zagadka.ping.de> <20021128093703.1fe573c2.alto_stan@wanadoo.be> <20021128184234.5c3bc15b.alto_stan@wanadoo.be> <20021129085304.0c00472b.alto_stan@wanadoo.be> <20021203092420.522c435a.alto_stan@wanadoo.be> Reply-To: ttn@glug.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1038904384 26340 80.91.224.249 (3 Dec 2002 08:33:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 3 Dec 2002 08:33:04 +0000 (UTC) Cc: guile-user@gnu.org, david@altosw.be Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18J8UH-0006qW-00 for ; Tue, 03 Dec 2002 09:33:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18J8SZ-00056b-00; Tue, 03 Dec 2002 03:31:15 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18J8S9-0004yb-00 for guile-user@gnu.org; Tue, 03 Dec 2002 03:30:49 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18J8S7-0004y9-00 for guile-user@gnu.org; Tue, 03 Dec 2002 03:30:48 -0500 Original-Received: from ca-crlsca-cuda3-c6a-b-211.crlsca.adelphia.net ([68.71.15.211] helo=giblet) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18J8S7-0004xh-00 for guile-user@gnu.org; Tue, 03 Dec 2002 03:30:47 -0500 Original-Received: from ttn by giblet with local (Exim 3.35 #1 (Debian)) id 18J8KG-0007Th-00; Tue, 03 Dec 2002 00:22:40 -0800 Original-To: alto_stan@wanadoo.be In-reply-to: <20021203092420.522c435a.alto_stan@wanadoo.be> (message from Stan Pinte on Tue, 3 Dec 2002 09:24:20 +0100) Errors-To: guile-user-admin@gnu.org X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.user:1424 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1424 From: Stan Pinte 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: - 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 _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user