From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stan Pinte Newsgroups: gmane.lisp.guile.user Subject: Re: problem with (string-tokenize string charset) Date: Tue, 03 Dec 2002 09:44:38 +0100 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> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed X-Trace: main.gmane.org 1038905025 28060 80.91.224.249 (3 Dec 2002 08:43:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 3 Dec 2002 08:43:45 +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 18J8ed-0007I4-00 for ; Tue, 03 Dec 2002 09:43:43 +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 18J8fv-0002ne-00; Tue, 03 Dec 2002 03:45:03 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18J8fc-0002it-00 for guile-user@gnu.org; Tue, 03 Dec 2002 03:44:44 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18J8fa-0002ii-00 for guile-user@gnu.org; Tue, 03 Dec 2002 03:44:44 -0500 Original-Received: from maho3msx2.corp.emc.com ([128.221.11.32]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18J8fa-0002ie-00 for guile-user@gnu.org; Tue, 03 Dec 2002 03:44:42 -0500 Original-Received: from BEDEVPINTES ([10.68.1.19]) by maho3msx2.corp.emc.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id YDWACVWQ; Tue, 3 Dec 2002 03:44:39 -0500 Original-To: ttn@glug.org User-Agent: Opera M2 7.0 build 2349 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:1425 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1425 On Tue, 03 Dec 2002 00:22:40 -0800, Thien-Thi Nguyen wrote: > 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: 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 _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user