modified Resources/hresult.xml

Added S_OK and S_FALSE

modified   Resources/ntstatus.xml
    Added all possible STATUS_WAIT_XX codes as STATUS_WAIT_0 + XX

modified   TechBot.Console/App.config
    Don't use hard-coded paths, please!

modified   TechBot.Library/ErrorCommand.cs
    New and improved !error command, now performs heuristics to catch all possible or likely uses

modified   TechBot.Library/HresultCommand.cs
    Removed useless field

modified   TechBot.Library/NumberParser.cs
    Made a couple of methods static

modified   TechBot.Library/TechBotService.cs
    Disable !api until it fails gracefully

svn path=/trunk/; revision=23984
This commit is contained in:
KJK::Hyperion 2006-09-09 10:53:28 +00:00
parent 25c11e5f6e
commit dd77d1676b
7 changed files with 213 additions and 39 deletions

View file

@ -9,7 +9,7 @@ namespace TechBot.Library
private const string SpecialHexCharacters = "ABCDEF";
private bool IsSpecialHexCharacter(char ch)
private static bool IsSpecialHexCharacter(char ch)
{
foreach (char specialChar in SpecialHexCharacters)
{
@ -19,7 +19,7 @@ namespace TechBot.Library
return false;
}
private bool HasSpecialHexCharacters(string s)
private static bool HasSpecialHexCharacters(string s)
{
foreach (char ch in s)
{
@ -35,7 +35,7 @@ namespace TechBot.Library
{
Error = false;
bool useHex = false;
if (s.StartsWith("0x"))
if (s.StartsWith("0x", StringComparison.InvariantCultureIgnoreCase))
{
s = s.Substring(2);
useHex = true;