public int previous() {if (text.getIndex() == text.getBeginIndex()) {return DONE;} else {if (0 == sentenceStarts.length) {text.setIndex(text.getBeginIndex());return DONE;}if (text.getIndex() == text.getEndIndex()) {text.setIndex(sentenceStarts[currentSentence]);} else {text.setIndex(sentenceStarts[--currentSentence]);}return current();}}
public override int Previous(){if (text.Index == text.BeginIndex){return Done;}else{if (0 == sentenceStarts.Length){text.SetIndex(text.BeginIndex);return Done;}if (text.Index == text.EndIndex){text.SetIndex(sentenceStarts[currentSentence]);}else{text.SetIndex(sentenceStarts[--currentSentence]);}return Current;}}