normalize strm file contents

This commit is contained in:
Luke Pulverenti
2017-11-01 15:50:16 -04:00
parent 5fa007d04e
commit 0a0303ca64
12 changed files with 72 additions and 71 deletions

View File

@@ -308,6 +308,19 @@ namespace Emby.Server.Implementations.Localization
return value == null ? (int?)null : value.Value;
}
public bool HasUnicodeCategory(string value, UnicodeCategory category)
{
foreach (var chr in value)
{
if (char.GetUnicodeCategory(chr) == category)
{
return true;
}
}
return false;
}
public string GetLocalizedString(string phrase)
{
return GetLocalizedString(phrase, _configurationManager.Configuration.UICulture);