Version française
Home     About     Download     Resources     Contact us    
Browse thread
Correct way of programming a CGI script
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: skaller <skaller@u...>
Subject: Re: [Caml-list] Re: Rope is the new string
On Thu, 2007-10-11 at 15:03 +0200, Vincent Hanquez wrote:
> On Tue, Oct 09, 2007 at 06:04:57PM -0400, Chris King wrote:
> > On 10/9/07, Vincent Hanquez <tab@snarc.org> wrote:
> > > i want a UTF library to be able to do something like:
> > >
> > > type ustring = unicode_type * string
> > > of_string: string -> ustring (* raise if not unicode compliant *)
> > > to_string: ustring -> string
> > > append: ustring -> ustring -> ustring
> > > ...etc
> > 
> > Have you checked out Camomile [1]?  It handles such things quite nicely.
> 
> The problem with camomile as it's actually so massive (27 modules) that
> it's scary ;)
> 
> What i have in mind, in what should be the standard library, is a very
> simple module that define something like 20 functions at most, to
> have valid unicode strings type (of all common unicode types) and do
> common operations (append, find, ...) on it.

You can't: Camomile is massive for a reason.. the problem it
aims to solve is complex and hard to do efficiently without
a large set of specialised functions.

-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net