From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id DAA15261; Sat, 21 Feb 2004 03:08:02 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id DAA14853 for ; Sat, 21 Feb 2004 03:07:58 +0100 (MET) Received: from deliver.epitech.net (deliver.epitech.net [163.5.0.25]) by concorde.inria.fr (8.12.10/8.12.10) with SMTP id i1L27vaf016141 for ; Sat, 21 Feb 2004 03:07:57 +0100 Received: from epita.fr ([10.42.1.60]) by deliver.epitech.net (SAVSMTP 3.1.2.35) with SMTP id M2004022103054122322 for ; Sat, 21 Feb 2004 03:05:41 +0100 Received: from kualalumpur.lrde.epita.fr (kualalumpur.lrde.epita.fr [10.223.13.1]) by epita.fr id i1L27sN16627 for EPITA Paris France Sat, 21 Feb 2004 03:07:54 +0100 (CET) Received: from sandrock.lrde.epita.fr ([10.223.13.45]) by kualalumpur.lrde.epita.fr with esmtp (Exim 3.36 #1 (Debian)) id 1AuMYZ-00075d-00 for ; Sat, 21 Feb 2004 03:07:51 +0100 Received: from chojin by sandrock.lrde.epita.fr with local (Exim 3.36 #1 (Debian)) id 1AuMYW-0001eF-00 for ; Sat, 21 Feb 2004 03:07:48 +0100 To: caml-list@inria.fr Subject: Re: [Caml-list] [repost] Request for more String functions References: <20040220172813.GB8332@redhat.com> <20040220194449.GA15238@redhat.com> <20040220195426.GZ27866@speakeasy.org> From: ChoJin Date: Sat, 21 Feb 2004 03:07:47 +0100 In-Reply-To: <20040220195426.GZ27866@speakeasy.org> (Shawn Wagner's message of "Fri, 20 Feb 2004 11:54:26 -0800") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Reasonable Discussion, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 lrde:01 shawnw:01 2004:99 2004:99 val:01 char:01 val:01 char:01 extlib:01 raevnos:01 pennmush:01 extlib:01 bool:01 bool:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Shawn Wagner writes: > On Fri, Feb 20, 2004 at 07:44:49PM +0000, Richard Jones wrote: >> On Fri, Feb 20, 2004 at 11:34:39AM -0800, Dustin Sallings wrote: >> > val split : string -> char -> int -> string list >> > val split_chars : string -> char list -> int -> string list >> > val strstr : string -> string -> int -> int >> > val ends_with : string -> string -> bool >> > val begins_with : string -> string -> bool >> > val string_of_chars : char list -> string >> >> Yes, ends_with and begins_with - I keep copying those functions from >> file to file. It'd be great to have them in the std lib. > > Many of these (And everything the OP asked for, though I had to add > some of them just now) are in my extlib library > (http://raevnos.pennmush.org/code/extlib/), though under different names. > It's a collection of things that would be useful in the standard libraries > that come with ocaml, but aren't there. I keep adding to it all the time > (Also just added the getpgid/setpgid functions also just requested on the > list). I'm a beginner in ocaml, but from time to time I have to convert a char to a string. And I was surprised when I couldn't find "string_of_char". Is there a better way than String.make 1 my_char ? -- Best Regards ChoJin ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners