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,4f316de357ae35e9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-30 06:48:43 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dennison@telepath.com (Ted Dennison) Newsgroups: comp.lang.ada Subject: Re: FAQ and string functions Date: 30 Jul 2002 06:48:43 -0700 Organization: http://groups.google.com/ Message-ID: <4519e058.0207300548.15eeb65c@posting.google.com> References: <20020730093206.A8550@videoproject.kiev.ua> NNTP-Posting-Host: 65.115.221.98 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1028036923 927 127.0.0.1 (30 Jul 2002 13:48:43 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 30 Jul 2002 13:48:43 GMT Xref: archiver1.google.com comp.lang.ada:27481 Date: 2002-07-30T13:48:43+00:00 List-Id: Oleg Goodyckov wrote in message news:<20020730093206.A8550@videoproject.kiev.ua>... > Can anybody say me where can I find FAQ of this newsgroup? Unfortunately, we currently do not have an up-to-date FAQ. > If no, can anybody talk me exists and if yes, where can I get string > processing functions set for Ada? I'm talking about string processing like > Perl's manner: string split to list of tokens by delimiter and back. Push, > pop, slice and so on. There is all sorts of stuff like that in the Ada.Strings.* packages. See section A.4 of the online LRM at http://adaic.org/standards/95lrm/html/RM-TOC.html . More generally, read *everything* in Annexes A and K before asking any more "does Ada have XYZ?" questions. Strings in Ada are particularly tricky for newcommers. One trap is underuse of perfectly sized string constants. Most strings get their value once and never need it changed. If that is the case, its fairly easy to declare the string at the point its value is known, with the perfect bounds, by using a string constant (possibly inside a "declare" block). If you do that, it becomes very easy to deal with. Also, note that a lot of string handling stuff that requires routines in other languages is trivial in Ada. For instance, you can take a slice of any array (including strings) with something like "Array_Name(5..8)". Any two arrays of the same type (including strings) can be concatenated with "&". Most numeric types (and enumerations) can be converted to strings with the 'image attribute. -- T.E.D. Home - mailto:dennison@telepath.com (Yahoo: Ted_Dennison) Homepage - http://www.telepath.com/~dennison/Ted/TED.html