string rotate(string value) { char[] a = value.ToCharArray(); for (int i = 0; i < a.Length; i++) { if (LetterUtils.isLetter(a[i])) { int t = (int)a[i]; a[i] = _shift[t]; } } return(new string(a)); }
char rotateSingleLetter(char letter, int shift) { if (!LetterUtils.isLetter(letter)) { return(letter); } if (LetterUtils.isSmallCase(letter)) { return(rotateSingleSmallCase(doShift(letter, shift))); } return(rotateSingleUpperCase(doShift(letter, shift))); }