diff --git a/SabreTools.Helper/Tools/Style.cs b/SabreTools.Helper/Tools/Style.cs
index 83c8ff11..980e423f 100644
--- a/SabreTools.Helper/Tools/Style.cs
+++ b/SabreTools.Helper/Tools/Style.cs
@@ -351,6 +351,20 @@ namespace SabreTools.Helper
#endregion
+ #region String Manipulation
+
+ ///
+ /// Get if a string contains Unicode characters
+ ///
+ /// Input string to test
+ /// True if the string contains at least one Unicode character, false otherwise
+ public static bool IsUnicode(string s)
+ {
+ return (s.Any(c => c > 255));
+ }
+
+ #endregion
+
#region Externally sourced methods
///
@@ -407,23 +421,6 @@ namespace SabreTools.Helper
return readable.ToString("0.### ") + suffix;
}
- ///
- /// Converts a string to sentence case.
- ///
- /// The string to convert.
- /// A string representing a sentence case string
- /// http://stackoverflow.com/questions/3141426/net-method-to-convert-a-string-to-sentence-case
- public static string SentenceCase(string input)
- {
- if (input.Length < 1)
- {
- return input;
- }
-
- string sentence = input.ToLower();
- return sentence[0].ToString().ToUpper() + sentence.Substring(1);
- }
-
///
/// http://stackoverflow.com/questions/311165/how-do-you-convert-byte-array-to-hexadecimal-string-and-vice-versa
///
@@ -476,17 +473,6 @@ namespace SabreTools.Helper
return hexOutput;
}
- ///
- /// https://github.com/gjefferyes/RomVault/blob/master/ROMVault2/SupportedFiles/Zip/zipFile.cs
- ///
- public static bool IsUnicode(string s)
- {
- char[] c = s.ToCharArray();
- for (int i = 0; i < c.Length; i++)
- if (c[i] > 255) return true;
- return false;
- }
-
///
/// Determines a text file's encoding by analyzing its byte order mark (BOM).
/// Defaults to ASCII when detection of the text file's endianness fails.