diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-11-01 15:50:16 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-11-01 15:50:16 -0400 |
| commit | 0a0303ca64e346f0e939f1fe275334f752728c15 (patch) | |
| tree | 5a796a540b280ff8e3f6e7b7708f203e0a430d60 /Emby.Server.Implementations/Localization/LocalizationManager.cs | |
| parent | 5fa007d04eff4a280a3f549de869339cccdb0d52 (diff) | |
normalize strm file contents
Diffstat (limited to 'Emby.Server.Implementations/Localization/LocalizationManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Localization/LocalizationManager.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Localization/LocalizationManager.cs b/Emby.Server.Implementations/Localization/LocalizationManager.cs index 650f388a1..2eb4743cd 100644 --- a/Emby.Server.Implementations/Localization/LocalizationManager.cs +++ b/Emby.Server.Implementations/Localization/LocalizationManager.cs @@ -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); |
