namespace RMuseum.Services.Implementation
{
///
/// Language Utilitis
///
public static class LanguageUtils
{
///
/// Persian Alphabet
///
public const string PersianAlphabet = "آابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهیئؤ";
///
/// English Alphabet
///
public const string EnglishLowerCaseAlphabet = "abcdefghijklmnopqrstuvwxyz";
///
/// Contains Only Specific Characters
///
///
///
///
///
public static bool ContainsOnlySpecificCharacters(string input, string specfics, string additional= "")
{
string all = specfics + additional;
foreach (char c in input)
if (all.IndexOf(c) == -1)
return false;
return true;
}
}
}