private IEnumerable <char> ToRobberish(char c) { yield return(c); if (CharHelper.IsConsonant(c)) { yield return('o'); yield return(c.ToString().ToLower().First()); } }
private IEnumerable <char> SkipEncodedChars(string encoded) { for (var i = 0; i < encoded.Length; i++) { yield return(encoded[i]); if (CharHelper.IsConsonant(encoded[i]) && i < encoded.Length - 1 && encoded[i + 1] == 'o') { i += 2; } } }