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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5e9097cf4f3eaf57 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.125.233 with SMTP id mt9mr10537712pbb.5.1333485610446; Tue, 03 Apr 2012 13:40:10 -0700 (PDT) Path: r9ni14981pbh.0!nntp.google.com!news2.google.com!goblin3!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!news.tornevall.net!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Checking to see if a string is a letter Date: Tue, 03 Apr 2012 13:40:01 -0700 Organization: TornevallNET - http://news.tornevall.net Message-ID: References: <2030859.0.1333426683573.JavaMail.geo-discussion-forums@pbbnv8> NNTP-Posting-Host: eef7dcb5c2ab61a755cc279b0cb20a1f Mime-Version: 1.0 X-Trace: 68ce5af0f10d5f7c136a8223e1bad63c X-Complaints-To: abuse@tornevall.net User-Agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120310 Thunderbird/11.0 X-Complaints-Language: Spoken language is english or swedish - NOT ITALIAN, FRENCH, GERMAN OR ANY OTHER LANGUAGE! In-Reply-To: X-UserIDNumber: 1738 X-Validate-Post: http://news.tornevall.net/validate.php?trace=68ce5af0f10d5f7c136a8223e1bad63c X-Complaints-Italiano: Non abbiamo padronanza della lingua italiana - se mandate una email scrivete solo in Inglese, grazie X-Posting-User: 0243687135df8c4b260dd4a9a93c79bd Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-04-03T13:40:01-07:00 List-Id: On 04/02/2012 11:07 PM, deuteros wrote: > > I mean the string contains a single letter and nothing more. For example: > > a - Legal > A - Legal > aa - Illegal > a1 - Illegal Then you'd probably start by checking 'Length for the String to be sure it's 1. Then you'd check that the single Character in the String is a letter, probably using an operation in Ada.Characters.Handling. -- Jeff Carter "I fart in your general direction." Monty Python & the Holy Grail 05