int (int startPos) { int position = startPos; while (position < maxPosition) { char c = str.charAt(position); if (c <= maxDelimChar && delimiters.indexOf(c) >= 0) { break; } position++; } if (retDelims && startPos == position) { char c = str.charAt(position); if (c <= maxDelimChar && delimiters.indexOf(c) >= 0) { position++; } } return position; }