mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 08:32:07 +08:00
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
This commit is contained in:
+2
-2
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user