unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Stan Pinte <alto_stan@wanadoo.be>
Cc: guile-user@gnu.org, david@altosw.be
Subject: Re: problem with (string-tokenize string charset)
Date: Tue, 03 Dec 2002 09:44:38 +0100	[thread overview]
Message-ID: <oprgtmkot28f9089@BEDEVPINTES> (raw)
In-Reply-To: E18J8KG-0007Th-00@giblet

On Tue, 03 Dec 2002 00:22:40 -0800, Thien-Thi Nguyen <ttn@giblet.glug.org> wrote:

> From: Stan Pinte <alto_stan@wanadoo.be>
> 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


  reply	other threads:[~2002-12-03  8:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-21  8:01 compilation problem in guile-gtk CVS Stan Pinte
2002-11-22 20:44 ` Marius Vollmer
2002-11-28  8:37   ` general debugging question Stan Pinte
2002-11-28  9:13     ` Neil Jerram
2002-11-28 17:42       ` general debugging question + Segfault in guile-gtk Stan Pinte
2002-11-28 22:34         ` Daniel Skarda
2002-11-29  7:53           ` guile-gtk-1.2 CVS % gtk-pixmap-new Stan Pinte
2002-11-29 14:01             ` Daniel Skarda
2002-12-01 11:07               ` Stan Pinte
2002-12-03  8:24               ` problem with (string-tokenize string charset) Stan Pinte
2002-12-03  8:22                 ` Thien-Thi Nguyen
2002-12-03  8:44                   ` Stan Pinte [this message]
2002-11-29  7:54           ` general debugging question + Segfault in guile-gtk Stan Pinte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=oprgtmkot28f9089@BEDEVPINTES \
    --to=alto_stan@wanadoo.be \
    --cc=david@altosw.be \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).