Segmenter.getIndex(CharSequence,char,char,int) can throw an IndexOutOfBoundsException of there are unclosed parentheses. Or possibly for other reasons.
Preferred behaviour is to log a warning, and to either return the start index (or +1, i forget the semantics) or return -1.
Segmenter.getIndex(CharSequence,char,char,int)
can throw anIndexOutOfBoundsException
of there are unclosed parentheses. Or possibly for other reasons.Preferred behaviour is to log a warning, and to either return the start index (or +1, i forget the semantics) or return -1.