company logo

TypedString :: compare - - internal feature (not documented)

Return value:  Compare result ( int32  )

The result of a comparison is an integer value with the following meaning:

  • 0: both operands have the same value
  • 1: the calling operand is greater than the passed operand
  • -1: the calling operand is smaller than the passed operand

Implementation overview

Implementation details

  1. - internal feature (not documented)
    int32 TypedString  :: compare ( int32 iPosition, int32 iCount, odaba::String &cString, bool bCaseSensitive )
    • iPosition - Position in collection

      The position of an element in a collection is beginning with 0 for the first element.

    • iCount - Number of items

      The value contains the number of items to be processed or stored in a collection.

    • cString - Constant string object

      When iPosition exceeds the string length or when the string is empty, the the function returns -1 (lower).

    • bCaseSensitive - Case sensitive option

      The option indicates case sensitive data in text (true)

  2. to list
  3. - internal feature (not documented)
    int32 TypedString  :: compare ( odaba::String &cString )
    • cString - Constant string object

      When iPosition exceeds the string length or when the string is empty, the the function returns -1 (lower).

  4. to list
  5. - internal feature (not documented)
    int32 TypedString  :: compare ( odaba::String &cString, bool bCaseSensitive )
    • cString - Constant string object

      When iPosition exceeds the string length or when the string is empty, the the function returns -1 (lower).

    • bCaseSensitive - Case sensitive option

      The option indicates case sensitive data in text (true)

  6. to list
  7. - internal feature (not documented)
    int32 TypedString  :: compare ( int32 iPosition, int32 iCount, odaba::String &cString )
    • iPosition - Position in collection

      The position of an element in a collection is beginning with 0 for the first element.

    • iCount - Number of items

      The value contains the number of items to be processed or stored in a collection.

    • cString - Constant string object

      When iPosition exceeds the string length or when the string is empty, the the function returns -1 (lower).

  8. to list