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:
parent
94b170cca6
commit
5d899f2c36
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue