[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:
Matt Nadareski
2016-05-29 00:07:07 -07:00
parent 298e28a1ce
commit 032a8c3142
10 changed files with 244 additions and 176 deletions

View File

@@ -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);
}
}
}