public static char [] GetSymbolsArray(char c, EntryCodes code) { char[] result = null; LanguageContainer language = GetLanguageContainer(c); if (language != null) { result = (code.Equals(EntryCodes.OnlyVowel)) ? language.VowelsSymbols : language.ConsonatSymbols; } return(result); }
public static LanguageContainer GetLanguageContainer(char c) { LanguageContainer result = null; c = char.ToLower(c); foreach (var language in _languages) { if (c >= language.UnicodeStart && c <= language.UnicodeStop) { result = language; break; } } return(result); }