summaryrefslogtreecommitdiff
path: root/src/fl_utf.c
diff options
context:
space:
mode:
authorFabien Costantini <fabien@onepost.net>2008-09-15 19:21:20 +0000
committerFabien Costantini <fabien@onepost.net>2008-09-15 19:21:20 +0000
commita99524ef2d24ce14334a171b9de29dfdf93928cd (patch)
tree7ba7def7dff3d6169377f187779de7c6369bea1c /src/fl_utf.c
parent527351b70232f2195c3e105d0fe4daa2860611af (diff)
Doxygen documentation. Completed Fl class, added a todo related to recent Fl API to document. Matt?. More cosmetics have been done, replaced *all* <pre> </pre> tags by \code \endcode sequences.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6260 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_utf.c')
-rw-r--r--src/fl_utf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fl_utf.c b/src/fl_utf.c
index c3e80f7f2..95b4e37c6 100644
--- a/src/fl_utf.c
+++ b/src/fl_utf.c
@@ -81,7 +81,7 @@ static unsigned short cp1252[32] = {
standards recommend), adding a test to see if the length is
unexpectedly 1 will work:
-\code
+ \code
if (*p & 0x80) { // what should be a multibyte encoding
code = fl_utf8decode(p,end,&len);
if (len<2) code = 0xFFFD; // Turn errors into REPLACEMENT CHARACTER
@@ -89,7 +89,7 @@ static unsigned short cp1252[32] = {
code = *p;
len = 1;
}
-\endcode
+ \endcode
Direct testing for the 1-byte case (as shown above) will also
speed up the scanning of strings where the majority of characters