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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e8bf1841fa090915 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-05 16:43:29 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!news.gtei.net!newsfeed.mathworks.com!wn13feed!worldnet.att.net!204.127.198.204!attbi_feed4!attbi.com!rwcrnsc53.POSTED!not-for-mail From: "Jeffrey Creem" Newsgroups: comp.lang.ada References: Subject: Re: Ada Strings Libraries for the clueless. X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: NNTP-Posting-Host: 66.31.5.146 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc53 1036543269 66.31.5.146 (Wed, 06 Nov 2002 00:41:09 GMT) NNTP-Posting-Date: Wed, 06 Nov 2002 00:41:09 GMT Organization: AT&T Broadband Date: Wed, 06 Nov 2002 00:41:09 GMT Xref: archiver1.google.com comp.lang.ada:30412 Date: 2002-11-06T00:41:09+00:00 List-Id: "Caffeine Junky" wrote in message news:eVWx9.26421$Lu1.39570@sccrnsc01... stuff deleted > 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? Number of characters in the string is just the 'length of the string. (Others have explained what this function actually does so I won't repeat it)