version 1.58.4.4, 2008/02/19 22:09:39
|
version 1.62.2.1, 2007/09/11 16:32:42
|
|
|
| |
String valueString; | String valueString; |
p = equalsign + 1; | p = equalsign + 1; |
CIMKeyBinding::Type type; |
CIMKeyBinding::Type type = CIMKeyBinding::BOOLEAN; |
| |
if (*p == '"') | if (*p == '"') |
{ | { |
|
|
*/ | */ |
type = CIMKeyBinding::STRING; | type = CIMKeyBinding::STRING; |
| |
/* Performance shortcut will check for |
|
equal sign instead of doing the full |
|
CIMObjectPath creation and exception handling |
|
*/ |
|
keyValueUTF8.append('\0'); |
|
if (strchr((const char*)keyValueUTF8.getData(), '=')) |
|
{ |
|
// found an equal sign, high probability for a reference |
|
try | try |
{ | { |
CIMObjectPath testForPath(valueString); | CIMObjectPath testForPath(valueString); |
|
|
// Not a reference value; leave type as STRING | // Not a reference value; leave type as STRING |
} | } |
} | } |
} |
|
else if (toupper(*p) == 'T' || toupper(*p) == 'F') | else if (toupper(*p) == 'T' || toupper(*p) == 'F') |
{ | { |
type = CIMKeyBinding::BOOLEAN; | type = CIMKeyBinding::BOOLEAN; |