mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DATabase] Miscellaneous integration cleanups
This cleans up a lot of things left over from the original integration of DATabaseTwo into DATabase. This also includes some updates that will make importing DATs even easier and make the import process more streamlined.
This commit is contained in:
@@ -218,5 +218,22 @@ namespace SabreTools.Helper
|
||||
// Return formatted number with suffix
|
||||
return readable.ToString("0.### ") + suffix;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Converts a string to sentence case.
|
||||
/// </summary>
|
||||
/// <param name="input">The string to convert.</param>
|
||||
/// <returns>A string representing a sentence case string</returns>
|
||||
/// <remarks>http://stackoverflow.com/questions/3141426/net-method-to-convert-a-string-to-sentence-case</remarks>
|
||||
public static string SentenceCase(string input)
|
||||
{
|
||||
if (input.Length < 1)
|
||||
{
|
||||
return input;
|
||||
}
|
||||
|
||||
string sentence = input.ToLower();
|
||||
return sentence[0].ToString().ToUpper() + sentence.Substring(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user