HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
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 ();
}