TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Thomas Seeling
from: Tom Torfs
date: 1999-09-28 17:07:00
subject: ... Perl

Thomas Seeling wrote in a message to Tom Torfs:

 TT>>          c = (((c-'a')+13)%26)+'a';
 TT> This assumes contiguous letters of course.

 TS> afair Ansi-/ISO-C forces letters and digits to be ordinally
 TS> contiguous. 

You remembered wrong. Only the digits have such a guarantee. For letters this
would not be feasible, since in the second most used family of character sets
(EBCDIC) this isn't the case.

2.2.1 Character sets (this is 5.2.1 in ISO numbering)



the 10 decimal digits 

         0  1  2  3  4  5  6  7  8  9



In both the source and execution basic character sets, the value of each
character after 0 in the above list of decimal digits shall be one greater
than the value of the previous.

greetings,
Tom
tomtorfs@village.uunet.be

--- timEd/2 1.10.y2k+
* Origin: 80X86 BBS 32-15-24.62.32 V.34/V.FC (24h/24h) (2:292/516)

SOURCE: echoes via The OS/2 BBS

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.