#258 improved documentation of utf8_decode() (with patch)

closed
nobody
other (39)
5
2008-11-23
2008-11-15
No

This patch improves documentation of utf8_decode().

Index: utf8.c

--- utf8.c (revision 25)
+++ utf8.c (working copy)
@@ -86,9 +86,9 @@
/* UTF-8 Decoder
*
* Returns 0 - 7FFFFFFF: decoded character
- * -1: character accepted, nothing decoded yet.
- * -2: incomplete sequence
- * -3: no sequence started, but character is between 128 - 191, 254 or 255
+ * -1: byte accepted, no character decoded yet
+ * -2: incomplete byte sequence
+ * -3: no byte sequence started, but character is between 128 - 191, 254 or 255
*/

int utf8_decode(struct utf8_sm *utf8_sm,unsigned char c)

Discussion

  • Joe Allen

    Joe Allen - 2008-11-23

    This is fixed now in CVS.

     
  • Joe Allen

    Joe Allen - 2008-11-23
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks