summaryrefslogtreecommitdiff
path: root/FL/Fl_Text_Buffer.H
diff options
context:
space:
mode:
authorFabien Costantini <fabien@onepost.net>2009-07-03 23:32:47 +0000
committerFabien Costantini <fabien@onepost.net>2009-07-03 23:32:47 +0000
commitd4e85cef93dac1fee682804f82e77fec86e6e589 (patch)
treeb0549e7fde10324f58bc286315c9fd46bff5e749 /FL/Fl_Text_Buffer.H
parent510ad42f4e37803c1c2ccc78c546f3317bf89030 (diff)
UTF8: Fl_Text_Display and related:
+ Made char * text() const., this method should be further checked for UTF8 compat. + Added a fixme comment to remember we must check for the potential incorrect assumption that that a buffer size equals the string length + 1. + Correct a protected attrib. typo as we don't need to care about ABI compat. for now. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6818 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Text_Buffer.H')
-rw-r--r--FL/Fl_Text_Buffer.H4
1 files changed, 2 insertions, 2 deletions
diff --git a/FL/Fl_Text_Buffer.H b/FL/Fl_Text_Buffer.H
index 967cda148..dc70b9fc1 100644
--- a/FL/Fl_Text_Buffer.H
+++ b/FL/Fl_Text_Buffer.H
@@ -102,7 +102,7 @@ class FL_EXPORT Fl_Text_Buffer {
/** Returns the number of characters in the buffer. */
int length() { return mLength; }
- char* text();
+ char* text() const;
void text(const char* text);
char* text_range(int start, int end);
char character(int pos);
@@ -297,7 +297,7 @@ class FL_EXPORT Fl_Text_Buffer {
tabs for padding in rectangular operations */
int mNModifyProcs; /**< number of modify-redisplay procs attached */
Fl_Text_Modify_Cb* /**< procedures to call when buffer is */
- mNodifyProcs; /**< modified to redisplay contents */
+ mModifyProcs; /**< modified to redisplay contents */
void** mCbArgs; /**< caller arguments for modifyProcs above */
int mNPredeleteProcs; /**< number of pre-delete procs attached */
Fl_Text_Predelete_Cb* /**< procedure to call before text is deleted */