public override char GetMappedLetter(char letter, MappingDirection dir = MappingDirection.RightToLeft) { if (dir == MappingDirection.RightToLeft) { char innerMapping = Mapping[letter.AddOffset(-_offset) - 'A']; return(innerMapping.AddOffset(_offset)); } char innerInput = letter.AddOffset(-_offset); return((char)(((Mapping.IndexOf(innerInput) + _offset) % AlphabetLength) + 'A')); }
private char GetEntryLetter(char letter) { return(letter.AddOffset(CurrentRingLetter)); }
private char IncrementLetter(char letter) { return(letter.AddOffset(1)); }