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 UAA02840; Fri, 20 Feb 2004 20:57:29 +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 UAA03524 for ; Fri, 20 Feb 2004 20:57:27 +0100 (MET) Received: from speakeasy.org (dialup-67.75.199.152.Dial1.Seattle.Level3.net [67.75.199.152]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i1KJvOae004989 for ; Fri, 20 Feb 2004 20:57:25 +0100 Received: (from shawnw@localhost) by speakeasy.org (8.10.1/8.10.1) id i1KJsQp28177 for caml-list@inria.fr; Fri, 20 Feb 2004 11:54:26 -0800 Date: Fri, 20 Feb 2004 11:54:26 -0800 From: Shawn Wagner To: caml-list@inria.fr Subject: Re: [Caml-list] [repost] Request for more String functions Message-ID: <20040220195426.GZ27866@speakeasy.org> Mail-Followup-To: caml-list@inria.fr References: <20040220172813.GB8332@redhat.com> <20040220194449.GA15238@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040220194449.GA15238@redhat.com> User-Agent: Mutt/1.4.2i 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; shawnw:01 caml-list:01 2004:99 2004:99 val:01 char:01 val:01 char:01 extlib:01 raevnos:01 pennmush:01 extlib:01 truncate:01 truncate:01 shawnw:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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). > > Along with: > > String.truncate - truncate a string to a given length This one's in it too. -- Shawn Wagner shawnw@speakeasy.org ------------------- 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