diff --git a/functions/strings.xml b/functions/strings.xml index 5c4911941c..a578c963ae 100644 --- a/functions/strings.xml +++ b/functions/strings.xml @@ -1,5 +1,5 @@ - + String functions Strings @@ -1871,6 +1871,30 @@ END; + + + str_rot13 + Perform the rot13 transform on a string + + + Description + + + string str_rot13 + string str + + + + This function performs the ROT13 encoding on the + str argument and returns the resulting + string. The ROT13 encoding simply shifts every letter by 13 + places in the alphabet while leaving non-alpha characters + untouched. Encoding and decoding are done by the same function, + passing an encoded string as argument will return the original version. + + + +