[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MIT-Scheme-devel] checking for legal XML characters
From: |
Chris Hanson |
Subject: |
Re: [MIT-Scheme-devel] checking for legal XML characters |
Date: |
Wed, 26 Jul 2006 20:06:07 -0400 |
User-agent: |
Thunderbird 1.5.0.4 (X11/20060713) |
Taylor R Campbell wrote:
> Is there a better way to check whether a string consists solely of
> legal XML characters than this? What I really want is a way to walk
> across UTF-8 strings, with which UTF8-STRING-IN-ALPHABET? could be
> implemented, I suppose. (OK, what I *really* want is to see my
> alternative string API implemented -- module system first, though.)
OK, I created procedures for-all-chars-in-string? and
for-any-char-in-string?, which should do what you want. There's also a
procedure alphabet-predicate that creates an appropriate predicate
argument for passing into one of the former.
That about what you wanted?