Fixed typos in FL/Fl_Input_.H

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8039 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Albrecht Schlosser 2010-12-15 16:58:08 +00:00
parent 6e3bb7b24d
commit 97e8dc94c9
1 changed files with 20 additions and 20 deletions

View File

@ -78,26 +78,26 @@
\endcode
All variables that represent an index into a text buffer are byte-oriented,
not character oriented. Since utf8 characters can be up to six bytes long,
not character oriented. Since UTF-8 characters can be up to six bytes long,
simply incrementing such an index will not reliably advance to the next character
in the text buffer.
Indices and pointers into the text buffer should always point at a 7 bit ASCII
character or the beginning of a utf8 character sequence. Behavior for false
utf8 sequences and pointers into the middle of a seqeunce are undefined.
character or the beginning of a UTF-8 character sequence. Behavior for false
UTF-8 sequences and pointers into the middle of a sequence are undefined.
\see Fl_Text_Display, Fl_Text_Editor for more powerful text handling widgets
\internal
When porting this widget from ASCII to UTF8, previously legal pointers into
When porting this widget from ASCII to UTF-8, previously legal pointers into
the text of this widget can become illegal by pointing into the middle of
a UTF8 seuence. This is not a big problem for Fl_Input_ because all code
a UTF-8 sequence. This is not a big problem for Fl_Input_ because all code
in this module is quite tolerant. It could be problematic though when deriving
from this class because no feedback for illegal pointers is given. Additionaly,
a careless "copy" call can put partial UTF8 sequnces into the clipboard.
from this class because no feedback for illegal pointers is given. Additionally,
a careless "copy" call can put partial UTF-8 sequences into the clipboard.
None of these issues should be desasterous. Nevertheless, we should
discuss how FLTK should handle false UTF8 suequences and pointers.
None of these issues should be disastrous. Nevertheless, we should
discuss how FLTK should handle false UTF-8 sequences and pointers.
*/
class FL_EXPORT Fl_Input_ : public Fl_Widget {
@ -113,7 +113,7 @@ class FL_EXPORT Fl_Input_ : public Fl_Widget {
/** \internal \todo Please document me! */
int bufsize;
/** \internal Positin of the cursor in the document */
/** \internal Position of the cursor in the document. */
int position_;
/** \internal Position of the other end of the selected text. If \p position_ equals
@ -123,7 +123,7 @@ class FL_EXPORT Fl_Input_ : public Fl_Widget {
/** \internal Offset to text origin within widget bounds */
int xscroll_, yscroll_;
/** \internal Minimal update pointer. Display requirs redraw from here to the end
/** \internal Minimal update pointer. Display requires redraw from here to the end
of the buffer. */
int mu_p;
@ -148,7 +148,7 @@ class FL_EXPORT Fl_Input_ : public Fl_Widget {
/** \internal color of the text cursor */
Fl_Color cursor_color_;
/** \internal Horizontal cursor position in pixels while movin up or down. */
/** \internal Horizontal cursor position in pixels while moving up or down. */
static double up_down_pos;
/** \internal Flag to remember last cursor move. */
@ -192,7 +192,7 @@ protected:
/* Move the cursor to the column given by up_down_pos. */
int up_down_position(int, int keepmark=0);
/* Handle mouse clicks and mose moves. */
/* Handle mouse clicks and mouse moves. */
void handle_mouse(int, int, int, int, int keepmark=0);
/* Handle all kinds of text field related events. */
@ -364,13 +364,13 @@ public:
/* Copy the yank buffer to the clipboard. */
int copy_cuts();
/** Return the shortcut key associtaed with this widget.
/** Return the shortcut key associated with this widget.
\return shortcut keystroke
\see Fl_Button::shortcut() */
int shortcut() const {return shortcut_;}
/**
Sets the shortcut key associtaed with this widget.
Sets the shortcut key associated with this widget.
Pressing the shortcut key gives text editing focus to this widget.
\param [in] s new shortcut keystroke
\see Fl_Button::shortcut()