mod/maxgui.mod/fltkmaxgui.mod/src/Fl_Text_Display.cxx
int Fl_Text_Display::skip_lines(int startPos, int nLines,
                                bool startPosIsLineStart) {
  IS_UTF8_ALIGNED2(buffer(), startPos)

  int retLines, retPos, retLineStart, retLineEnd;
  
  /* if we're not wrapping use more efficient BufCountForwardNLines */
  if (!mContinuousWrap)
    return buffer()->skip_lines(startPos, nLines);
  
  /* wrappedLineCounter can't handle the 0 lines case */
  if (nLines == 0)
    return startPos;
  
  /* use the common line counting routine to count forward */
  wrapped_line_counter(buffer(), startPos, buffer()->length(),
                       nLines, startPosIsLineStart, 0, 
                       &retPos, &retLines, &retLineStart, &retLineEnd);
  IS_UTF8_ALIGNED2(buffer(), retPos)
  return retPos;
}
/**
 \brief Skip a number of lines forward.
 
 Same as BufCountForwardNLines, but takes in to account line breaks when
 wrapping is turned on. If the caller knows that startPos is at a line start,
 it can pass "startPosIsLineStart" as True to make the call more efficient
 by avoiding the additional step of scanning back to the last newline.
 
 \param startPos index to starting character
 \param nLines number of lines to skip ahead
 \param startPosIsLineStart avoid scanning back to the line start
 \return new position as index
 */
\brief Skip a number of lines forward.
Same as BufCountForwardNLines, but takes in to account line breaks when
wrapping is turned on. If the caller knows that startPos is at a line start,
it can pass "startPosIsLineStart" as True to make the call more efficient
by avoiding the additional step of scanning back to the last newline.

\param startPos index to starting character
\param nLines number of lines to skip ahead
\param startPosIsLineStart avoid scanning back to the line start
\return new position as index
\ brief Skip a number of lines forward . Same as BufCountForwardNLines but takes in to account line breaks when wrapping is turned on . If the caller knows that startPos is at a line start it can pass " startPosIsLineStart " as True to make the call more efficient by avoiding the additional step of scanning back to the last newline . \ param startPos index to starting character \ param nLines number of lines to skip ahead \ param startPosIsLineStart avoid scanning back to the line start \ return new position as index
int Fl_Text_Display::skip_lines(int startPos, int nLines,
                                bool startPosIsLineStart) {
  IS_UTF8_ALIGNED2(buffer(), startPos)
  int retLines, retPos, retLineStart, retLineEnd;
  if (!mContinuousWrap)
    return buffer()->skip_lines(startPos, nLines);
  if (nLines == 0)
    return startPos;
  wrapped_line_counter(buffer(), startPos, buffer()->length(),
                       nLines, startPosIsLineStart, 0, 
                       &retPos, &retLines, &retLineStart, &retLineEnd);
  IS_UTF8_ALIGNED2(buffer(), retPos)
  return retPos;
}
int Fl_Text_Display :: skip_lines ( int startPos , int nLines , bool startPosIsLineStart ) { IS_UTF8_ALIGNED2 ( buffer ( ) , startPos ) int retLines , retPos , retLineStart , retLineEnd ; if ( ! mContinuousWrap ) return buffer ( ) -> skip_lines ( startPos , nLines ) ; if ( nLines == 0 ) return startPos ; wrapped_line_counter ( buffer ( ) , startPos , buffer ( ) -> length ( ) , nLines , startPosIsLineStart , 0 , & retPos , & retLines , & retLineStart , & retLineEnd ) ; IS_UTF8_ALIGNED2 ( buffer ( ) , retPos ) return retPos ; }
\brief Skip a number of lines forward.
\ brief Skip a number of lines forward .
/* if we're not wrapping use more efficient BufCountForwardNLines */ /* wrappedLineCounter can't handle the 0 lines case */ /* use the common line counting routine to count forward */