Program Base Library Functions

int pblArrayListRemoveRange

( pblArrayList* arrayList,
  int fromIndex, int toIndex )

Removes from this List all of the elements whose index is between fromIndex, inclusive and toIndex, exclusive.

Documentation

Removes from this List all of the elements whose index is between fromIndex, inclusive and toIndex, exclusive. Shifts any succeeding elements to the left (reduces their index). This call shortens the list by (toIndex - fromIndex) elements. (If toIndex==fromIndex, this operation has no effect.)

Parameters:
arrayList - The list to use
fromIndex - The index of first element to be removed.
toIndex - The index after last element to be removed.
Returns:
int rc >= 0: The size of the list
int rc < 0: An error, see pbl_errno PBL_ERROR_OUT_OF_BOUNDS - fromIndex is out of range (fromIndex < 0 || fromIndex >= size()) or toIndex is out of range ( toIndex < 0 || toIndex > size())

Alphabetic index



This page was generated with the help of DOC++.