From mboxrd@z Thu Jan 1 00:00:00 1970
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me
X-Spam-Level:
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham
autolearn_force=no version=3.4.4
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103376,a13657a6f67ac494
X-Google-Attributes: gid103376,public
X-Google-ArrivalTime: 2004-02-13 13:55:31 PST
Path:
archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!nnx.oleane.net!oleane!freenix!wanadoo.fr!not-for-mail
From: Pascal Obry
Newsgroups: comp.lang.ada
Subject: Re: Simple library functions
Date: 13 Feb 2004 22:55:30 +0100
Organization: Home - http://perso.wanadoo.fr/pascal.obry
Message-ID:
References: <19401efb.0402121137.2a20b681@posting.google.com>
<19401efb.0402122318.68154453@posting.google.com>
NNTP-Posting-Host: avelizy-103-1-1-168.w217-128.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news-reader3.wanadoo.fr 1076709331 27906 217.128.141.168 (13 Feb 2004
21:55:31 GMT)
X-Complaints-To: abuse@wanadoo.fr
NNTP-Posting-Date: 13 Feb 2004 21:55:31 GMT
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.95
Xref: archiver1.google.com comp.lang.ada:5552
Date: 2004-02-13T21:55:31+00:00
List-Id:
scallassig@mailexpire.com (Harald Korneliussen) writes:
> String strings[] = s.split();
>
> // strings[] is now {"hi", "he", "ha", "ho"}
>
> In java it takes a regexp, with " \t\n" as default. My function takes
> a set of characters (from Ada.Characters.Maps), with the set of
> whitespace as default.
You can do that easily with my String_Cutter package. See my homepage in the
Ada -> Download section.
GNAT has now an equivalent package named GNAT.String_Split.
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://perso.wanadoo.fr/pascal.obry
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595