company logo

String :: splitPop - Extract terminating string

The function returns the string after the last split sequence or character and cuts the current string before the last split sequence or character. When split sequence or character could not be found, the result contains the complete string value and the current string becomes empty.

Return value:  String value ( odaba::String & )

Implementation overview

Implementation details

  1. Extract terminating string after split character
    odaba::String String  :: splitPop ( int32 iValue )

    The function extracts the terminating string after the last split character passed in iValue.

    • iValue - Integer value

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

  2. to list
  3. Extract terminating string after split sequence
    odaba::String String  :: splitPop ( odaba::String &cString )

    The function extracts the terminating string after the last split sequence passed in 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