diff --git a/lib/modules/String.pmod/module.pmod b/lib/modules/String.pmod/module.pmod index 128408fe60bc7b8520e9ed32a53ebd61dc9ee11a..ea749497be77558b882352d42c2abd7ff3746627 100644 --- a/lib/modules/String.pmod/module.pmod +++ b/lib/modules/String.pmod/module.pmod @@ -286,30 +286,3 @@ static string line_expand_tab(string line, int tab_width, } return result; } - -//! rotates each character by 13 positions -string rot13(string input) -{ - return rot(input, 13); -} - -//! rotates each character by n positions -string rot(string input, int pos) -{ - for(int i=0; i<sizeof(input); i++) - { - if (input[i] >= 65 && input[i] <= 90) - { - input[i] += pos; - if (input[i] > 90) - input[i] -= 26; - } - else if (input[i] >= 97 && input[i] <= 122) - { - input[i] += pos; - if (input[i] > 122) - input[i] -= 26; - } - } - return input; -}