Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #6122
| From | Steve Drain <steve@kappa.me.uk> |
|---|---|
| Newsgroups | comp.sys.acorn.programmer |
| Subject | Re: case sensitive file test |
| Date | 2020-05-28 14:16 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <raodlr$1kdj$1@gioia.aioe.org> (permalink) |
| References | (1 earlier) <5876b6c3c3bob@sick-of-spam.invalid> <c775bd7658.Kevin@Kevsoft> <mpro.qay50z05bfl4p02mn.news@stevefryatt.org.uk> <rallls$16am$1@gioia.aioe.org> <7a4f294c-d1fa-40b6-9d71-26668786be5e@googlegroups.com> |
On 28/05/2020 00:25, jgh@mdfs.net wrote: >> Or, if you want to disentangle it, try: > > DEF FNis_lower($&8100) > LOCAL upper%,char% > SYS "Territory_UpperCaseTable",-1 TO upper% > char%=&8100-1 > REPEAT > char%=char%+1 > UNTIL ?char%=upper%??char% OR ?char%=13 > =?char%=13 > There are many ways to skin this cat and speed is hardly important these days, but I think an early exit from the loop on first failure is worthwhile. It certainly would be with a long string. BTW my trick of using the string accumulator (&8100) works because the LENstring function put the string in there. It is only safe until the next string keyword and I would never actually use it.
Back to comp.sys.acorn.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
case sensitive file test Bob Latham <bob@sick-of-spam.invalid> - 2020-05-26 12:46 +0100
Re: case sensitive file test Bob Latham <bob@sick-of-spam.invalid> - 2020-05-26 14:21 +0100
Re: case sensitive file test Kevin Wells <kev@kevsoft.co.uk> - 2020-05-26 15:34 +0100
Re: case sensitive file test Steve Fryatt <news@stevefryatt.org.uk> - 2020-05-26 17:12 +0100
Re: case sensitive file test Bob Latham <bob@sick-of-spam.invalid> - 2020-05-26 17:42 +0100
Re: case sensitive file test Steve Fryatt <news@stevefryatt.org.uk> - 2020-05-26 18:21 +0100
Re: case sensitive file test Bob Latham <bob@sick-of-spam.invalid> - 2020-05-26 19:46 +0100
Re: case sensitive file test Steve Drain <steve@kappa.me.uk> - 2020-05-27 13:14 +0100
Re: case sensitive file test jgh@mdfs.net - 2020-05-27 16:25 -0700
Re: case sensitive file test Steve Drain <steve@kappa.me.uk> - 2020-05-28 14:16 +0100
Re: case sensitive file test druck <news@druck.org.uk> - 2020-06-01 20:01 +0100
Re: case sensitive file test Bob Latham <bob@sick-of-spam.invalid> - 2020-05-26 17:29 +0100
Re: case sensitive file test Steve Fryatt <news@stevefryatt.org.uk> - 2020-05-26 17:52 +0100
Re: case sensitive file test Bob Latham <bob@sick-of-spam.invalid> - 2020-05-26 18:06 +0100
Re: case sensitive file test "John Williams (News)" <UCEbin@tiscali.co.uk> - 2020-05-26 18:00 +0100
Re: case sensitive file test "John Williams (News)" <UCEbin@tiscali.co.uk> - 2020-05-26 18:07 +0100
Re: case sensitive file test Bob Latham <bob@sick-of-spam.invalid> - 2020-05-26 19:40 +0100
Re: case sensitive file test David Higton <dave@davehigton.me.uk> - 2020-05-26 18:08 +0100
Re: case sensitive file test Bob Latham <bob@sick-of-spam.invalid> - 2020-05-26 19:40 +0100
Re: case sensitive file test Erik G <noreply123@xs4all.nl> - 2020-06-01 03:19 +0200
Re: case sensitive file test Bob Latham <bob@sick-of-spam.invalid> - 2020-06-01 15:53 +0100
Re: case sensitive file test druck <news@druck.org.uk> - 2020-06-01 20:57 +0100
Re: case sensitive file test jgh@mdfs.net - 2020-06-04 09:23 -0700
Re: case sensitive file test Martin <News03@avisoft.f9.co.uk> - 2020-06-04 17:51 +0100
Re: case sensitive file test druck <news@druck.org.uk> - 2020-06-04 20:49 +0100
Re: case sensitive file test jgh@mdfs.net - 2020-06-04 16:18 -0700
Re: case sensitive file test druck <news@druck.org.uk> - 2020-06-05 11:27 +0100
csiph-web