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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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-08-01 15:57:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!news.uar.net!carrier.kiev.ua!news.lucky.net!not-for-mail From: Oleg Goodyckov Newsgroups: comp.lang.ada Subject: Re: FAQ and string functions Date: Thu, 1 Aug 2002 19:47:20 +0300 Organization: unknown Distribution: world Message-ID: <20020801194720.Q1080@videoproject.kiev.ua> References: <20020730093206.A8550@videoproject.kiev.ua> <4519e058.0207300548.15eeb65c@posting.google.com> <20020731104643.C1083@videoproject.kiev.ua> <4519e058.0208010629.5e6182ca@posting.google.com> Reply-To: og@videoproject.kiev.ua NNTP-Posting-Host: news.lucky.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.lucky.net 1028242619 15473 193.193.193.102 (1 Aug 2002 22:56:59 GMT) X-Complaints-To: usenet@news.lucky.net NNTP-Posting-Date: Thu, 1 Aug 2002 22:56:59 +0000 (UTC) Keywords: 265282490 X-Return-Path: oleg@videoproject.kiev.ua Xref: archiver1.google.com comp.lang.ada:27589 Date: 2002-08-01T19:47:20+03:00 List-Id: On Thu, Aug 01, 2002 at 07:29:33AM -0700, Ted Dennison wrote: > > Well, it should be hardly shocking that the "standard" Perl has more > string handling goodies than the standard Ada. Perl was made for > string handling. If it can't even beat a compiled general-purpose As I know, Perl was made for reach wide expression ability. > programming language like Ada in this reguard, it should give up its > scripting credentials and go run security in airports or something. Perl can do it after Ada will be provided with simple split/join function. For first time. > However, you are right that much of this *can* be done in Ada. If you > want more powerful string parsing capabilities, there are lots of > options for you. Very lot of... But for pity nothing apropriate. > One good one (which I see has already been mentioned) is the Gnat > string handling packages. They provide very powerful pattern matching > capability, which is probably the style of working you are used to if > you are a Perl user. The main drawback to this is that it isn't > avilable to you if you are using a compiler other than Gnat (iow: it's > not compiler-portable). Understand, please, pattern matching is very important and good ability. But splitting is a little bit another. Even another at all. Main purpose of splitting is to allow a DIRECT(RANDOM) ACCESS to any token (in defined by pattern sence) in string. And for now (for me) nothing more. Split string, count items, independently process them and join back to string. This is very basic and simple operation. > Another, even more powerful option, if you need something really > sophisiticated, is the OpenToken packages > (http://www.telepath.com/~dennison/Ted/OpenToken/OpenToken.html ). Ok. I'll try. > They are written in standard Ada, and should be portable to any > compiler (although there have been minor issues in the past). > > > So, by all of diversity of GENERIC string's handling tools in Ada, > > convinient tool is not present. > > Well, we are currently looking at beefing up the standard library for > the next version of the language. Perhaps you are saying you believe > string handling needs attention? Saing onestly, I'm very surprized, that so basic and simple operation as splitting/joining of string is not present in Ada natively. And most surprize for me is that most people don't understand me in my complaint. So, may ba Ada community solves tasks which are very far from string handling (I'm novice) and string handlig functions is not very necessary in that kind of work. I don't know alredy. For novice like me string handling is very poor without split/join pair. It is only one (may be except not very good organization of package documentation) condition which prevents to use Ada anywhere. By me.