HEX
Server: Apache
System: Linux pdx1-shared-a2-09 6.6.116-grsec-jammy-dirty #1 SMP Sat Nov 8 00:02:42 UTC 2025 x86_64
User: dh_pvsc7i (5084578)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/jed/lib/rot13.sl
%%
%%  rot13.sl---- rotates text by 13 characters
%%
define rot13 ()
{
   variable i, j;

   check_region (1);		       %  spot pushed

   variable a = String_Type[256];
   _for ('A', 'M', 1)
     {
	i = ();
	a[i] = char (i + 13);
	% Now take care of lower case ones
	i = i | 0x20;
	a[i] = char (i + 13);
     }

   _for ('N', 'Z', 1)
     {
	i = ();
	a[i] = char (i - 13);
	% Now take care of lower case ones
	i = i | 0x20;
	a[i] = char (i - 13);
     }
   translate_region (a);
   pop_spot ();
}