company logo

Option :: operator== - Check option value

The operator compares the option value with the number or string passed as right operand. The operator returns true , when values are equal and false otherwise.

Return value:  Success ( bool  )

The value is true when the function was executed successfully. Otherwise the value is set to false .

Implementation overview

Implementation details

  1. Compare with integer
    bool Option  :: operator== ( int32 iValue )

    The function compares the option value with the integer passed in iValue .

    Notes:

    Conversion from option value to integer uses standard conversion, which will stop at the first non-numeric caracter in the option value. Thus, an option value 1/5 would result in 1.

    • iValue - Integer value

      The value is passed as platform independent 32-bit integer value.

  2. to list
  3. Compare with string value
    bool Option  :: operator== ( odaba::String &sValue )

    The function compares the option value with the string value passed in sValue . Values are is compared case sensitive. In order to perform case insensitive comparison, equals() might be called.

    • sValue - String value
  4. to list