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.1 required=5.0 tests=AXB_XMAILER_MIMEOLE_OL_024C2, BAYES_00,MAILING_LIST_MULTI,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,819faa6c1dfaa502 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-08 02:40:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: "David C. Hoos, Sr." Newsgroups: comp.lang.ada Subject: Re: Array help needed.. Date: Wed, 8 May 2002 04:39:24 -0500 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <6x%B8.41360$uE2.2786830@news2.calgary.shaw.ca> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1020850803 1957 137.194.161.2 (8 May 2002 09:40:03 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 8 May 2002 09:40:03 +0000 (UTC) Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:23712 Date: 2002-05-08T04:39:24-05:00 ----- Original Message ----- From: "devine" Newsgroups: comp.lang.ada To: Sent: May 07, 2002 8:52 PM Subject: Re: Array help needed.. > I trying to do this. Read a file, check to see if their are words in the > file and then put the words into an array. So I used 'a'..'z' to get a > character so when it hits a space that would be the end of the word, it > would move to the next character after the space. > Consider these possibilities: 1. The words may have capital letters and apostrophes -- i.e., characters that are not in 'a' .. 'z', 2. The spaces between words may not just be single space characters -- they may have multiple spaces, tabs, periods, commas, and other punctuation marks. 3. What about numbers? E.g., if you have the sentence "there were 375 people present." -- is 375 a word? You should loook at the procedure Ada.Strings.Fixed.Find_Token which allows you to find tokens that include a particular group of characters, or that exclude a particular list of characters.