DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New] Link: http://www.fltk.org/str.php?L2158 Version: 1.3-current Oops! I wrote: "fl_utf8len() returns the number of bytes in the sequence if if passed the header byte, and zero for the non-header bytes." but in fact it returns -1 for a non-header byte. However, in the Fl_Text_Buffer::character_width() code show, the non-header byte was already handled in the "if ((c & 0x80) && !(c & 0x40))" line. As far as I can tell, the other uses of fl_utf8len() appear correct, but it might make it more obvious if there were functions (macros?) such as: fl_uft8Byte(c) returns (c & 0x80) fl_utf8FirstByte(c) returns ((c & ox80) && (c & 0x40)) fl_utf8OtherByte(c) returns ((c & 0x80) && !(c & 0x40)) or whatever better naming scheme someone can come up with. fl_draw.cxx already has C_IN(c) and C_UTF8(c) macros for some of it. Link: http://www.fltk.org/str.php?L2158 Version: 1.3-current _______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
