Add note about UTF-8 decoder
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 27 May 2010 18:04:15 +0000 (14:04 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 27 May 2010 18:04:15 +0000 (14:04 -0400)
src/hb-buffer.cc

index c20de77..a393b6b 100644 (file)
@@ -607,6 +607,8 @@ hb_utf8_next (const uint8_t *text,
   uint8_t c = *text;
   unsigned int mask, len;
 
+  /* TODO check for overlong sequences?  also: optimize? */
+
   UTF8_COMPUTE (c, mask, len);
   if (unlikely (!len || (unsigned int) (end - text) < len)) {
     *unicode = -1;