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.0 required=5.0 tests=BAYES_00,FORGED_HOTMAIL_RCVD2, FREEMAIL_FROM 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.230.68 with SMTP id sw4mr3576449pbc.7.1333462767258; Tue, 03 Apr 2012 07:19:27 -0700 (PDT) Path: r9ni13979pbh.0!nntp.google.com!news2.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: gautier_niouzes@hotmail.com Newsgroups: comp.lang.ada Subject: Re: Checking to see if a string is a letter Date: Tue, 3 Apr 2012 07:19:26 -0700 (PDT) Organization: http://groups.google.com Message-ID: <7425101.119.1333462766887.JavaMail.geo-discussion-forums@vbak7> References: <2030859.0.1333426683573.JavaMail.geo-discussion-forums@pbbnv8> <4c3660d0-24bf-4cd8-92d0-b0e8c3e03ce8@z38g2000vbu.googlegroups.com> NNTP-Posting-Host: 83.77.195.194 Mime-Version: 1.0 X-Trace: posting.google.com 1333462767 25172 127.0.0.1 (3 Apr 2012 14:19:27 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 3 Apr 2012 14:19:27 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.77.195.194; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-04-03T07:19:26-07:00 List-Id: > There are boolean operators which are also of length one. So you check first the length, and then whether the first character is a letter. (I almost wrote the Ada code :-) there!) G.