private int scanToken(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;
}

private int scanToken ( 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 ; }
skips ahead from startpos and returns the index of the next delimiter character encountered , or maxposition if no such delimiter is found .
