Accept "t" and "f" as boolean representations, helps in SQL conversions.

git-svn-id: http://yate.null.ro/svn/yate/trunk@1448 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2007-09-01 15:04:29 +00:00
parent 94b170cca6
commit 5d899f2c36
1 changed files with 2 additions and 2 deletions

View File

@ -425,8 +425,8 @@ double String::toDouble(double defvalue) const
return val;
}
static const char* str_false[] = { "false", "no", "off", "disable", 0 };
static const char* str_true[] = { "true", "yes", "on", "enable", 0 };
static const char* str_false[] = { "false", "no", "off", "disable", "f", 0 };
static const char* str_true[] = { "true", "yes", "on", "enable", "t", 0 };
bool String::toBoolean(bool defvalue) const
{