Re: CAPS again

From: [at]} <tei>
Date: Thu, 16 Sep 2004 16:27:19 +0200

----boundary-LibPST-iamunique-595147196_-_-
Content-type: text/plain


>>Every possible CHAR maps to an upper case equivalent, even if it is a
>>map back to itself. So, a->A, b->B, space->space, {([at]})nowhere.xy
>>reason why this should not be so, and no reason why it should be >inefficient to implement.

>
>
> So maybe you should do some studies in Assembler then, the explanation why CAPS is that incredible fast (compared to Strings.Upper) has already been given by Chris Burrows, IIRC.
>
> But since it seems you missed his excellent explanation, here it is, in short words, again (it's been a long time since I dabbled in ASM, so forgive me, if there's something inexact in the following):
>
> In the Latin-1 character set, "a" differs from "A" by 1 bit that is set in the case of "a", and not set in the case of "A".
>
> a = 1100001
> A = 1000001
>
> b = 1100010
> B = 1000010
>

4 suggestions


Write that in COBOL.

For a IBM machine.

That not use ASCII.

For a non-english lang, say.. catalan.



--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy

Current posting policy:

a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.

b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.


----boundary-LibPST-iamunique-595147196_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0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