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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e8bf1841fa090915,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-05 13:40:26 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!204.127.198.204!attbi_feed4!attbi.com!sccrnsc01.POSTED!not-for-mail From: Caffeine Junky Subject: Ada Strings Libraries for the clueless. Newsgroups: comp.lang.ada User-Agent: Pan/0.11.3 (Unix) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Comment-To: ALL Message-ID: NNTP-Posting-Host: 12.241.145.39 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc01 1036532426 12.241.145.39 (Tue, 05 Nov 2002 21:40:26 GMT) NNTP-Posting-Date: Tue, 05 Nov 2002 21:40:26 GMT Organization: AT&T Broadband Date: Tue, 05 Nov 2002 21:40:26 GMT Xref: archiver1.google.com comp.lang.ada:30401 Date: 2002-11-05T21:40:26+00:00 List-Id: Recently I've actually taken the time to peruse the Ada.Strings section of the Ada LRM. Lot's of nifty functions there, although I'm somewhat fuzzy on what exactly they do. Probably because I havent bothered to play with Strings at all until recently. Example.. Ada.Strings.Fixed function Index (Source : in String; Pattern : in String; Going : in Direction := Forward; Mapping : in Maps.Character_Mapping := Maps.Identity) return Natural; Now, the gist of this function is pretty clear. It looks at a String and returns the number of how many Characters are in the string(I'm assuming.) But what's this "Pattern" string I'm supposed to pass to it? Does it only count the characters in the String that match the Pattern given in the Pattern variable? Now, to be fair, %95 of this section of the LRM is self-explanatory and pretty simple to understand. I'm just running into a few things here and there that are somewhat ambiguous. Or maybe I'm just dim-witted or low on Caffiene at the moment. Note: I'm focusing on the Strings libraries at the moment cause I'm teaching myself to write very stable and fast buffers/pipes specifically for text. "But Junky, why not make them generic buffers for everything?" Because that's not what I'm doing right now. Heh. I dont really need a tutorial on this, just a quick run down on what these functions are really asking for. Any pointers would be appreciated. Caffiene Junky Caffinated Corps.