Author: matt
Date: 2010-04-05 05:55:14 -0700 (Mon, 05 Apr 2010)
New Revision: 7429
Log:
Tearing my hairs out about terminology in utf-8
Modified:
branches/branch-1.3/FL/Fl_Text_Buffer.H
branches/branch-1.3/test/editor.cxx
Modified: branches/branch-1.3/FL/Fl_Text_Buffer.H
===================================================================
--- branches/branch-1.3/FL/Fl_Text_Buffer.H 2010-04-05 12:45:03 UTC (rev
7428)
+++ branches/branch-1.3/FL/Fl_Text_Buffer.H 2010-04-05 12:55:14 UTC (rev
7429)
@@ -34,12 +34,15 @@
#define FL_TEXT_BUFFER_H
/*
- UTF-8 terminology for this file:
+ Suggested UTF-8 terminology for this file:
- "length" is the number of characters in a string
- "size" is the number of bytes
- "index" is the position in a string in number of characters
- "offset" is the position in a strin in bytes (and must be kept on a charater
boundary)
+ ?? "length" is the number of characters in a string
+ ?? "size" is the number of bytes
+ ?? "index" is the position in a string in number of characters
+ ?? "offset" is the position in a strin in bytes (and must be kept on a
charater boundary)
+ (there seems to be no standard in Uncode documents, howevere "length" is
commonly
+ referencing the number of bytes. Maybe "bytes" and "glyphs" would be the most
+ obvious way to describe sizes?)
"character size" is the size of a UTF-8 character in bytes
"character width" is the width of a Unicode character in pixels
Modified: branches/branch-1.3/test/editor.cxx
===================================================================
--- branches/branch-1.3/test/editor.cxx 2010-04-05 12:45:03 UTC (rev 7428)
+++ branches/branch-1.3/test/editor.cxx 2010-04-05 12:55:14 UTC (rev 7429)
@@ -784,6 +784,7 @@
int main(int argc, char **argv) {
textbuf = new Fl_Text_Buffer;
+ textbuf->text("Rügenwälder Ruß.");
style_init();
Fl_Window* window = new_view();
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit