bool SALOME_EvalSetLogic::createValue(const SALOME_String& str, SALOME_EvalVariant& val)const
{
bool ok = true;
- SALOME_String valStr = toLower(str);
//
- if ( valStr == "true" || valStr == "yes" )
+ if ( str == "True" )
val = SALOME_EvalVariant( true );
- else if ( valStr == "false" || valStr == "no" )
+ else if ( str == "False" )
val = SALOME_EvalVariant( false );
else
ok = SALOME_EvalSetBase::createValue( str, val );
return DataValueDouble() != 0.;
}
else if ( aType == SALOME_EvalVariant_String ) {
- SALOME_String aZero("0"), aFalse("false");
+ SALOME_String aZero("0"), aFalse("False");
const SALOME_String& aStr=DataValueString();
return !(aStr==aZero || aStr==aFalse || aStr.empty());
}
int iX;
//
iX=toInt(&bOk);
- aS= iX? "true" : "false";
+ aS= iX? "True" : "False";
}
else if (aType == SALOME_EvalVariant_Int) {
sprintf(buffer, "%d", DataValueInt());
for( int i=0, n=theParamName.length(); i<n; i++ )
if( isspace( theParamName[i] ) )
{
- theMsg = "The name should not contain white symbols";
+ theMsg = "The name should not contain white spaces";
return false;
}
switch( aResType )
{
case SALOME_EvalVariant_Boolean:
- return new SALOME_Parameter( theNotebook, aName, aValue=="true" );
+ return new SALOME_Parameter( theNotebook, aName, aValue=="True" );
case SALOME_EvalVariant_Int:
case SALOME_EvalVariant_UInt:
aResult[1]="THE QUICK BROWN FOX JUMPS OVER A LAZY DOG";
aResult[2]="the quick brown fox jumps over a lazy dog";
aResult[3]="41";
- aResult[4]="true";
- aResult[5]="false";
- aResult[6]="false";
- aResult[7]="true";
+ aResult[4]="True";
+ aResult[5]="False";
+ aResult[6]="False";
+ aResult[7]="True";
//
aTypeR[0]=SALOME_EvalVariant_String;
aTypeR[1]=SALOME_EvalVariant_String;