summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorengelsman <engelsman>2009-04-18 11:51:32 +0000
committerengelsman <engelsman>2009-04-18 11:51:32 +0000
commit78da588135ba3704ef110486af0c80104166c056 (patch)
treef10df628b6cba55d0e63dca27a809a43d7ef6311 /src
parent982f297d334b2e0182e7ee2b380b51f698893125 (diff)
grouped similar functions and added summary information in unicode.dox
corrected mismatched parameter names and typos on fl_utf8.h and fl_utf8.cxx git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6769 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/fl_utf8.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/fl_utf8.cxx b/src/fl_utf8.cxx
index 83e70bca4..7634ca93b 100644
--- a/src/fl_utf8.cxx
+++ b/src/fl_utf8.cxx
@@ -111,7 +111,8 @@ Toupper(
}
/**
- returns the byte length of the first UTF-8 char sequence or -1 is not valid.
+ return the byte length of the UTF-8 sequence with first byte \p c,
+ or -1 if \p c is not valid.
*/
int fl_utf8len(char c)
{
@@ -174,6 +175,7 @@ fl_utf_nb_char(
UTF-8 aware strncasecmp - converts to lower case Unicode and tests.
\todo Correct the incorrect logic where length of strings tested
+ \todo Clarify whether n means number of bytes, or characters.
*/
int fl_utf_strncasecmp(const char *s1, const char *s2, int n)
{
@@ -256,7 +258,7 @@ int fl_toupper(unsigned int ucs)
/**
converts the str string to the lower case equivalent into buf.
- Warning: to be safe buf length must be at least 3 * len [for 24-bit Unicode]
+ Warning: to be safe buf length must be at least 3 * len [for 16-bit Unicode]
*/
int fl_utf_tolower(const unsigned char *str, int len, char *buf)
{
@@ -287,7 +289,7 @@ int fl_utf_tolower(const unsigned char *str, int len, char *buf)
/**
converts the str string to the upper case equivalent into buf.
- Warning: to be safe buf length must be at least 3 * len [for 24-bit Unicode]
+ Warning: to be safe buf length must be at least 3 * len [for 16-bit Unicode]
*/
int fl_utf_toupper(const unsigned char *str, int len, char *buf)
{