mod/maxgui.mod/fltkmaxgui.mod/src/Fl_Text_Display.cxx
int Fl_Text_Display::line_start(int pos) const {
  IS_UTF8_ALIGNED2(buffer(), pos)

  int retLines, retPos, retLineStart, retLineEnd;
  
  /* If we're not wrapping, use the more efficient BufStartOfLine */
  if (!mContinuousWrap)
    return buffer()->line_start(pos);
  
  wrapped_line_counter(buffer(), buffer()->line_start(pos), pos, INT_MAX, true, 0,
                       &retPos, &retLines, &retLineStart, &retLineEnd);

  IS_UTF8_ALIGNED2(buffer(), retLineStart)
  return retLineStart;
}
/**
 \brief Return the beginning of a line.

 Same as BufStartOfLine, but returns the character after last wrap point
 rather than the last newline.
 
 \param pos index to starting character
 \return new position as index
 */
\brief Return the beginning of a line.
Same as BufStartOfLine, but returns the character after last wrap point
rather than the last newline.

\param pos index to starting character
\return new position as index
\ brief Return the beginning of a line . Same as BufStartOfLine but returns the character after last wrap point rather than the last newline . \ param pos index to starting character \ return new position as index
int Fl_Text_Display::line_start(int pos) const {
  IS_UTF8_ALIGNED2(buffer(), pos)
  int retLines, retPos, retLineStart, retLineEnd;
  if (!mContinuousWrap)
    return buffer()->line_start(pos);
  wrapped_line_counter(buffer(), buffer()->line_start(pos), pos, INT_MAX, true, 0,
                       &retPos, &retLines, &retLineStart, &retLineEnd);
  IS_UTF8_ALIGNED2(buffer(), retLineStart)
  return retLineStart;
}
int Fl_Text_Display :: line_start ( int pos ) const { IS_UTF8_ALIGNED2 ( buffer ( ) , pos ) int retLines , retPos , retLineStart , retLineEnd ; if ( ! mContinuousWrap ) return buffer ( ) -> line_start ( pos ) ; wrapped_line_counter ( buffer ( ) , buffer ( ) -> line_start ( pos ) , pos , INT_MAX , true , 0 , & retPos , & retLines , & retLineStart , & retLineEnd ) ; IS_UTF8_ALIGNED2 ( buffer ( ) , retLineStart ) return retLineStart ; }
\brief Return the beginning of a line.
\ brief Return the beginning of a line .
/* If we're not wrapping, use the more efficient BufStartOfLine */