dropBackUntil abstract method

bool dropBackUntil(
  1. Characters target
)

Drops characters from the end of the range until after the last occurrence of target.

If the range contains any occurrences of target, then all characters after the end of the last such occurrence is removed from the range. This retracts the end of the range to the end of the last occurrence of target.

If there are no occurrences of target in the range, all characteres in the range are removed, which gives the same effect as collapseToStart.

Returns true if there is an occurrence of target and false if not.

Implementation

bool dropBackUntil(Characters target);