|
|
|
@ -1,9 +1,9 @@
|
|
|
|
|
using System.Collections.Generic; |
|
|
|
|
using System.Linq; |
|
|
|
|
using System.Runtime.InteropServices.ComTypes; |
|
|
|
|
|
|
|
|
|
namespace InfoferScraper { |
|
|
|
|
public static partial class Utils { |
|
|
|
|
namespace InfoferScraper; |
|
|
|
|
|
|
|
|
|
public static partial class Utils { |
|
|
|
|
private static readonly Dictionary<char, char> RoToEn = new() { |
|
|
|
|
{ 'ă', 'a' }, |
|
|
|
|
{ 'Ă', 'A' }, |
|
|
|
@ -20,5 +20,4 @@ namespace InfoferScraper {
|
|
|
|
|
public static string RoLettersToEn(this string str) { |
|
|
|
|
return string.Concat(str.Select(letter => RoToEn.GetValueOrDefault(letter, letter))); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |