caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Sylvain Kerjean <skerjean@irisa.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Ocaml interface to ctype.h functions
Date: Tue, 05 Jun 2001 18:44:09 +0200	[thread overview]
Message-ID: <3B1D0C59.B7A518FC@irisa.fr> (raw)
In-Reply-To: <20010605182909.A16268@pauillac.inria.fr>

Xavier Leroy wrote:
> 
> It's mostly a matter of knowing what we want these classification
> functions to do.  Meanwhile, it might be easier to define your own
> isalpha, etc, predicates; at least you get to choose the encoding!
> Besides, it's really easy using pattern-matching, e.g. for ASCII:
> 
> let isalpha = function 'A'..'Z'|'a'..'z' -> true | _ -> false
>

I did it at the compiler level, shortcutting (is it english ??) the call
to  the C isalpha function
in the lexer and coded my own in order to support accented letters in my
compiler (it worked bad on BeOS). But i realize i coudln't share my
programs anymore with an unmodified compiler :/

So I think it is a good idea to have standard characters let's say
simple ascii and let users
re-implement an isalpha() predicate at the user level ...
And if there are some good unicode coders here, i am greatfully
interested !


-- 
Sylvain Kerjean
IRISA-INRIA, Campus de Beaulieu, 35042 Rennes cedex, France
Tél: +33 (0) 2 99 84 75 99, Fax: +33 (0) 2 99 84 71 71
-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr


  reply	other threads:[~2001-06-05 17:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-02  6:24 Shawn Wagner
2001-06-02 13:25 ` Michael Hicks
2001-06-02 21:04   ` Shawn Wagner
     [not found]     ` <shawnw@speakeasy.org>
2001-06-05  7:35       ` Luc MAZARDO
2001-06-05 13:59         ` Shawn Wagner
2001-06-05 16:29 ` Xavier Leroy
2001-06-05 16:44   ` Sylvain Kerjean [this message]
2001-06-05 18:17   ` Chris Hecker
2001-06-11 16:00   ` Shawn Wagner

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

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

  git send-email \
    --in-reply-to=3B1D0C59.B7A518FC@irisa.fr \
    --to=skerjean@irisa.fr \
    --cc=caml-list@inria.fr \
    /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 NNTP newsgroup(s).