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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,20c2bb8255977a05 X-Google-Attributes: gid103376,public From: Marin David Condic Subject: Re: Strings in Ada Date: 1999/04/15 Message-ID: <3716173E.B8063AA4@pwfl.com>#1/1 X-Deja-AN: 466774764 Content-Transfer-Encoding: 7bit Sender: condicma@bogon.pwfl.com References: Content-Type: text/plain; charset=us-ascii Organization: Pratt & Whitney Mime-Version: 1.0 Reply-To: diespammer@pwfl.com Newsgroups: comp.lang.ada Date: 1999-04-15T00:00:00+00:00 List-Id: Jan Kroken wrote: > > I'm currently learning Ada and I am stuck on string handling. > What I need is a lot of source code doing advanced String > handling. Do any of you have some source, or know where to > find it? > You'll want to look at appendix A.4 of the ARM for all of the prefabricated String tools available to you in Ada. It really is quite a bit of material, but in practice, I find I mostly use "Move", "Index", "Index_Non_Blank" and maybe "Delete" or "Replace_Slice" occasionally. (Although if you know the indicese you are interested in, you can get there with "Move" about as easily as "Delete" or "Replace_Slice"...) I think you'll find that this subset of subprograms is more than adequate for most of what you want to do. (See ARM A.4.3 for the standard string versions.) The unbounded strings found in ARM A.4.5 are considerably more flexible, but at the expense of more complexity to use. I'd suggest sticking to Ada.Strings.Fixed (ARM A.4.3) until you get comfortable with the language. MDC -- Marin David Condic Real Time & Embedded Systems, Propulsion Systems Analysis United Technologies, Pratt & Whitney, Large Military Engines M/S 731-95, P.O.B. 109600, West Palm Beach, FL, 33410-9600 ***To reply, remove "bogon" from the domain name.***