From e8f467b9e3c52914b234d539a113a981c868df53 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 19 Sep 2008 17:40:20 +0000 Subject: Updating fl_utf8.h references. Fixing copyright date in .fl files. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6311 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_utf.c | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) (limited to 'src/fl_utf.c') diff --git a/src/fl_utf.c b/src/fl_utf.c index 95b4e37c6..29cbe9e27 100644 --- a/src/fl_utf.c +++ b/src/fl_utf.c @@ -19,14 +19,45 @@ // Modified to obey rfc3629, which limits unicode to 0-0x10ffff -#include +#include #include #include #ifdef __cplusplus extern "C" { #endif - + + /** + \defgroup fl_unichar FLTK Unicode Character Functions + Global Functions Handling Single Unicode Characters + @{ */ + + /** + Convert a Unicode character into a utf-8 sequnece. + \param uc[in] Unicode characte + \param text[out] utf-8 sequence will be written here; if this pointer is + \c NULL, only the length of the utf-8 sequence is calculated + \return length of the sequence in bytes + */ + //FL_EXPORT int fl_unichar_to_utf8(Fl_Unichar uc, char *text); + + /** @} */ + + /** + \defgroup fl_utf8 FLTK Unicode String Functions + Global Functions Handling Unicode Text + @{ */ + + /** + Calculate the size of a utf-8 sequnce for a Unnicode character. + \param uc[in] Unicode characte + \return length of the sequence in bytes + */ + //FL_EXPORT int fl_utf8_size(Fl_Unichar uc); + + /** @} */ + + /* Set to 1 to turn bad UTF8 bytes into ISO-8859-1. If this is to zero they are instead turned into the Unicode REPLACEMENT CHARACTER, of value 0xfffd. -- cgit v1.2.3