public int preceding (int offset)

Returns the last boundary preceding the specified character offset. If the specified offset equals to the first text boundary, it returns BreakIterator.DONE and the iterator's current position is unchanged. Otherwise, the iterator's current position is set to the returned boundary. The value returned is always less than the offset or the value BreakIterator.DONE.

offset    the character offset to begin scanning.

Returns:  The last boundary before the specified offset or BreakIterator.DONE if the first text boundary is passed in as the offset.

IllegalArgumentException    if the specified offset is less than the first text boundary or greater than the last text boundary.

Since:  1.2