comparison src/utf8.cc @ 1130:cdcb6c1fb148

comment
author corvid <corvid@lavabit.com>
date Mon, 25 May 2009 23:37:12 +0000
parents fbe2ce98a4b8
children 5d6869b28e4d
comparison
equal deleted inserted replaced
1129:205e83fe66c0 1130:cdcb6c1fb148
36 } 36 }
37 37
38 /* 38 /*
39 * Decode a single UTF-8-encoded character starting at p. 39 * Decode a single UTF-8-encoded character starting at p.
40 * The resulting Unicode value (in the range 0-0x10ffff) is returned, 40 * The resulting Unicode value (in the range 0-0x10ffff) is returned,
41 * and len is set the the number of bytes in the UTF-8 encoding. 41 * and len is set to the number of bytes in the UTF-8 encoding.
42 * Note that utf8decode(), if given non-UTF-8 data, will interpret
43 * it as ISO-8859-1 or CP1252 if possible.
42 */ 44 */
43 uint_t a_Utf8_decode(const char* str, const char* end, int* len) 45 uint_t a_Utf8_decode(const char* str, const char* end, int* len)
44 { 46 {
45 return utf8decode(str, end, len); 47 return utf8decode(str, end, len);
46 } 48 }