Esempio n. 1
0
        private bool IsLatin(string originalLine)
        {
            FromLatinToCyrillicDictionary latinDictionary = new FromLatinToCyrillicDictionary();
            bool isLatin = true;

            for (int i = 0; i < originalLine.Length; i++)
            {
                if (char.IsLetter(originalLine[i]))
                {
                    if (!latinDictionary.commonLatinValues.ContainsKey(originalLine[i]) && !latinDictionary.invalidValues.Contains(originalLine[i]))
                    {
                        isLatin = false;
                        break;
                    }
                }
            }
            return(isLatin);
        }
Esempio n. 2
0
 public FromLatinToCyrillicTransliter()
 {
     dictionary = new FromLatinToCyrillicDictionary();
 }