tr
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | tr [2006/08/29 16:08] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | # $EPIC: tr.txt,v 1.2 2006/08/20 17:37:08 sthalik Exp $ | ||
+ | ======Synopsis: | ||
+ | $__tr__(/< | ||
+ | |||
+ | ======Technical: | ||
+ | This function " | ||
+ | in the given string. | ||
+ | order they are specified in (first-first, | ||
+ | there are more input than output, the last output character will replace | ||
+ | any input characters that do not have a corresponding output character. | ||
+ | Any of the arguments may be variables or literal strings. | ||
+ | does not need to be a '/'; | ||
+ | input or output characters. | ||
+ | |||
+ | ======Practical: | ||
+ | This function is useful for doing very simple text encoding, such as | ||
+ | ROT13. | ||
+ | untrusted sources (such as shell meta characters). | ||
+ | |||
+ | ======Returns: | ||
+ | " | ||
+ | |||
+ | ======Examples: | ||
+ | < | ||
+ | /* assume $oldc is " | ||
+ | $tr(/ | ||
+ | $tr(/ | ||
+ | $tr(/ | ||
+ | $tr(/ | ||
+ | $tr(# | ||
+ | </ | ||
tr.txt · Last modified: 2006/08/29 16:08 by 127.0.0.1