Skip to content

Commit

Permalink
Improve documentation of utf-8 decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Hallen committed Nov 23, 2008
1 parent ca8ebcf commit 0893e00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions main/utf8.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ int utf8_encode(unsigned char *buf,int c)
/* 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)
Expand Down
6 changes: 3 additions & 3 deletions utf8.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ int utf8_encode(unsigned char *buf,int c)
/* 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)
Expand Down

0 comments on commit 0893e00

Please sign in to comment.