code: private int getNextDelimiter(int offset)
      {
          if (offset >= 0) {
              int result = offset; 
              int c = 0;
              if (delims == null) {
                  do {
                      c = UTF16.charAt(m_source_, result);
                      if (m_delimiters_.contains(c)) {
                          break;
                      }
                      result ++;
                  } while (result < m_length_);
              } else {
                  do {
                      c = UTF16.charAt(m_source_, result);
                      if (c < delims.length && delims[c]) {
                          break;
                      }
                      result ++;
                  } while (result < m_length_);
              }                
              if (result < m_length_) {
                  return result;
              }
          }
          return -1 - m_length_;
      }
docs: Gets the index of the next delimiter after offset
  @param offset to the source string
  @return offset of the immediate next delimiter, otherwise
  (- source string length - 1) if there
  are no more delimiters after m_nextOffset