summaryrefslogtreecommitdiff
path: root/FL/Fl_Text_Buffer.H
AgeCommit message (Collapse)Author
3 dayswipmaxim nikonov
13 daysLet text widgets handle gracefully composed unicode characters - Cont'd.ManoloFLTK
This commit adds support of another type of composed characters: flags. It also fixes Fl_Text_Buffer::prev_char() and Fl_Text_Buffer::next_char() that must use Fl_Text_Buffer::byte_at() to access to the content of the text buffer.
2025-11-29Fluid: convert modal panels into tabs in the widget panel (#1339)Matthias Melcher
2024-11-01Improve and clarify documentationAlbrecht Schlosser
2024-08-04Optimize Fl_Text_Display scrolling speed (#596).Matthias Melcher
2023-08-26Fixes a bunch of typos in comments.Matthias Melcher
2023-05-19 Fix Fl_Simple_Terminal::append(str, len) assumes a null terminated string ↵ManoloFLTK
(#728)
2023-04-17Add const qualifiers to can_undo and can_redo (#720)ZJUGKC
2023-04-14Fixed leak in Fl_Text_Buffer #716Matthias Melcher
2023-02-10Unlimited undo/redo for Fl_Input_ and Fl_Text_Buffer (#558) (#676)Matthias Melcher
2023-02-10Deprecated warnings wording adaptedMatthias Melcher
2023-02-10Fixes FL_DEPRECATED for Fl_Text_Buffer.hMatthias Melcher
2023-02-02Missing include for FL_DEPRECATEDMatthias Melcher
2023-02-02Fix position() methods that shadow Fl_Widget::position()Matthias Melcher
* `FL_DEPRECATED` macro to mark `position()` method that shadow `Fl_Widget::position()` #69 (#666)
2022-11-26Local undo per Fl_Text_Buffer and Fl_Input_ (#557)Matthias Melcher
2021-03-21Remove unnecessary system includes from public headersAlbrecht Schlosser
Add includes of system headers in the implementation files where necessary.
2020-07-06Remove $Id$ tags, update URL's, and moreAlbrecht Schlosser
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
2020-04-15Fix int highlight() commentMohammed Alyousef
2019-05-15Fix some links in documentationAlbrecht Schlosser
Particularly to Doxygen docs and NEdit which appears to have moved to sourceforge (according to Wikipedia), see https://en.wikipedia.org/wiki/NEdit Note: nedit.org exists but shows some non-English text.
2017-10-08Added printf() and vprintf() to Fl_Text_BufferGreg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12483 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-26Fix confusing behavior of class Fl_Text_Selection.Albrecht Schlosser
Fl_Text_Selection got a new method length() and returns 0 in length() and in all offsets (start(), end(), position()) if no text is selected (selected() == false). The behavior in FLTK 1.3 and earlier versions (returning undefined values if !selected()) was confusing. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12356 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-12-17Handle non-ASCII characters when selecting a word or moving the cursor by ↵Manolo Gouy
one word. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12149 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-20Bringing over fix [r11766] from 1.3 current to the porting branch.Greg Ercolano
Doc fix: fixes STR#3312. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11826 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-19Bringing over this fix from 1.3 current to the porting branch.Greg Ercolano
Document savefile() return value, see also references to/from outputfile() git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11823 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-05Fix typo.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11533 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-01-28Non-changing changes... Attempting to keep the porting branch somehwat ↵Ian MacArthur
in-sync with doc changes in main 1.3.x None of these changes alter the actual code. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11076 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-08-12Small doc typo fix.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9956 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-21STR2783: make potential null string substituted to an empty string, still ↵Fabien Costantini
achieve internal cleanup in Fl_Text_Buffer::text(s) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9366 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-19Modifications to all LGPL headers for STR #2685.Greg Ercolano
(to clarify static exception LGPL by changing license references) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8864 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-31STR 2499: remove unused function prototypes in Fl_Text_Buffer.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8148 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-15Homogenize use of re-encoding and transcoding (in favor of the latter).Manolo Gouy
Also, makes clear that the code is ready to deal with any encoding, not just fixed-length ones. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8040 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-10Fix STR #2348. Files encoded with UTF-8 or CP1252 are accepted. Any ↵Manolo Gouy
non-UTF-8-encoded data is interpreted according to CP1252 and transcoded to UTF-8. By default, a warning message is displayed when the input file was transcoded. This default behavior can be modified by changing a function pointer. A flag has been added to the Fl_Text_Buffer object that informs the caller if the input file was transcoded to UTF-8. The Fl_Text_Buffer.cxx file contains some preliminary code that could be used in the future to input other encodings provided they are fixed-length (e.g., all ISO-8859-* character sets, UTF-16). This code is not compiled at this point. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8004 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-06Fixed crashes when Fl_Text_* detects illegal UTF 8 sequences. Widgets will ↵Matthias Melcher
not do any further processing but just jump over the character. Screen representation depends largely on whatever the underlying OS does with those sequences, but I feel that this is out of the scope of this library. (STR 2348) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7965 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-02Fixed Doxygen comments, typos, and a few indenting issues.Albrecht Schlosser
Part 1, more to come ... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7936 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-28Fixed Copyright to 2010.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7903 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-07Implemented search backwards for utf-8. Tested on MSWindows - OK. Tested on ↵Matthias Melcher
Linux (Ubuntu) - K. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7808 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06Better alignment testingMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7807 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06Removed some unused stuff and duplicates.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7806 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06UTF8 Text Display and Editor: added tons of tests for utf8 alignment, fixed ↵Matthias Melcher
a bunch of methods that did not understand utf8. Still lots of places to visit. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7800 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06Working on correct line wrapping in Fl_Text_Display: starting to replace all ↵Matthias Melcher
byte based charracter calculations with utf8 functions. Current version wraps, but scroll bars are wrong. Non-wrapping text display starts to work better. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7797 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-04Starting to rework Fl_Text_Display from scratch to make wrapping work ↵Matthias Melcher
correctly. Fixed a few issues that made wrapping crash. Using ASCII range only with fixed character sizes should still wrap as expected?! git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7794 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-03STR 2158: partially solved. This commit is huge, I admit. I recoded most of ↵Matthias Melcher
Fl_Text_Buffer and large chunks of Fl_Text_Display to make it UTF-8 safe. Rendering of all left-to-right scripts works well on OS X for all tested fonts. International input works AFAIK. Copy and paste of UTF-8 data works. ----> what's not working yet though is line wrapping. Also, text search for internationsl characters is not working yet. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7792 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-18Fl_Text_Buffer/Display fixes for UTF-8 / STR-2158 (part 1)engelsman
fixes to handle incorrect counting of UTF-8 characters by checking for complete UTF-8 encodings in char* rather than char by char. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7527 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-06Marked some more issues with Fl_Text_...Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7462 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-05A few more comments.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7450 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-05Another update to Fl_Text_Buffer. This is by no means perfect, but at least ↵Matthias Melcher
it currently does not crash (I am so easily satisfied :-P). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7449 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-05Validated utf-8 safety of Fl_Text_Selection.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7443 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-05Little fix that will keep Fl_Text_Display from crashing on German umlauts. ↵Matthias Melcher
This is by no means a fix. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7440 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-05Holy Gucamole! NEdit was designed with 'C' style strings in mind. Until that ↵Matthias Melcher
is that someone had the great idea to allow <nul> as a valid character in the text editor. The developers jumped through quite some hoops to allow that without rewriting the core. Well, actually they did: they added a parameter to pretty much every internal call that conatined the null-replacement-character. Anyway, since we only handle 'C' strings, I remove all related code. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7437 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-05Adde /todo tags to all function which I will remove as soon as I am sure ↵Matthias Melcher
that they are entirely Unicode safe. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7433 ea41ed52-d2ee-0310-a9c1-e6b18d33e121