diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2008-09-19 17:40:20 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2008-09-19 17:40:20 +0000 |
| commit | e8f467b9e3c52914b234d539a113a981c868df53 (patch) | |
| tree | 56b38732c3532dd82f307d693ac49bb437707f23 /src/fl_utf.c | |
| parent | c7453106b907771651ba580ead4a3d75f81537f4 (diff) | |
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
Diffstat (limited to 'src/fl_utf.c')
| -rw-r--r-- | src/fl_utf.c | 35 |
1 files changed, 33 insertions, 2 deletions
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 <FL/fl_utf8.H> +#include <FL/fl_utf8.h> #include <string.h> #include <stdlib.h> #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. |
