Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Rot-13/REXX/rot-13.rexx
Normal file
10
Task/Rot-13/REXX/rot-13.rexx
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
/*REXX program encodes several example text strings using the ROT-13 algorithm. */
|
||||
$='foo' ; say "simple text=" $; say 'rot-13 text=' rot13($); say
|
||||
$='bar' ; say "simple text=" $; say 'rot-13 text=' rot13($); say
|
||||
$="Noyr jnf V, 'rer V fnj Ryon."; say "simple text=" $; say 'rot-13 text=' rot13($); say
|
||||
$='abc? ABC!' ; say "simple text=" $; say 'rot-13 text=' rot13($); say
|
||||
$='abjurer NOWHERE' ; say "simple text=" $; say 'rot-13 text=' rot13($); say
|
||||
exit /*stick a fork in it, we're all done. */
|
||||
/*──────────────────────────────────────────────────────────────────────────────────────*/
|
||||
rot13: return translate( arg(1), 'abcdefghijklmABCDEFGHIJKLMnopqrstuvwxyzNOPQRSTUVWXYZ',,
|
||||
"nopqrstuvwxyzNOPQRSTUVWXYZabcdefghijklmABCDEFGHIJKLM")
|
||||
Loading…
Add table
Add a link
Reference in a new issue