The class library ExtensionsForStrings contains extension methods .ReplaceEmoticons(),.ToArmenian(),.IsPalindroe().
The first .ReplaceEmoticons() method allows you to replace codes with emoticons like this:
: smile: -> ๐
:umberella: -> ๐
:bad: -> ๐
:sun: -> โ๏ธ
: moon: -> ๐
: cloud: -> โ๏ธ
: heart: ->:heart:
:->: -> ๐
:<-: -> ๐
The second .ToArmenian() method allows you to convert latin letters into armenian.Examples for easy orienting:
'kh' -> 'ีญ'
'ts' -> 'ีฎ'
'dz' -> 'ีฑ'
'gh' -> 'ีฒ'
'tsh' -> 'ีณ'
'sh' -> 'ีท'
'ch' -> 'ีน'
'ph' -> 'ึ'
'ev' -> 'ึ' etc
And the last IsPalindrome() method returns true if the line is palindrome.
Here are trial code
using System;
using ExtensionsForString;
namespace Program
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Input the text!");
string str = Console.ReadLine();
Console.OutputEncoding = System.Text.Encoding.UTF8;
Console.WriteLine(str.ReplaceEmoticons());
Console.WriteLine("Input latin text!");
str =Console.ReadLine();
Console.WriteLine(str.ToArenian());
str = Console.ReadLine();
Console.WriteLine(str.IsPalindrome());
}
}
}