Variant
- ::operator_match disobeyed rc.search.case.sensitive.
This commit is contained in:
@@ -640,8 +640,9 @@ void Context::staticInitialization ()
|
||||
Task::coefficients[*var] = config.getReal (*var);
|
||||
}
|
||||
|
||||
Lexer::dateFormat = config.get ("dateformat");
|
||||
Variant::dateFormat = config.get ("dateformat");
|
||||
Lexer::dateFormat = config.get ("dateformat");
|
||||
Variant::dateFormat = config.get ("dateformat");
|
||||
Variant::searchCaseSensitive = config.getBoolean ("search.case.sensitive");
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
#include <text.h>
|
||||
|
||||
std::string Variant::dateFormat = "";
|
||||
bool Variant::searchCaseSensitive = true;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Variant::Variant ()
|
||||
@@ -753,7 +754,7 @@ bool Variant::operator_match (const Variant& other) const
|
||||
left.cast (type_string);
|
||||
right.cast (type_string);
|
||||
|
||||
RX r (right._string, true);
|
||||
RX r (right._string, searchCaseSensitive);
|
||||
return r.match (left._string);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ class Variant
|
||||
{
|
||||
public:
|
||||
static std::string dateFormat;
|
||||
static bool searchCaseSensitive;
|
||||
|
||||
enum type {type_unknown, type_boolean, type_integer, type_real, type_string,
|
||||
type_date, type_duration};
|
||||
|
||||
Reference in New Issue
Block a user