]> mj.ucw.cz Git - libucw.git/blobdiff - charset/unicode.h
obuck_predict_last_oid() can be made safe easily.
[libucw.git] / charset / unicode.h
index 1b8f4b67388b7c04fbb5ec1cf3473a956b79abf5..7bc6f235812ef3c5529dac1de956e768924eea7f 100644 (file)
@@ -124,6 +124,8 @@ enum unicode_char_type {
         p++, c <<= 1;                                  \
   } while (0)
 
+#define UTF8_SKIP_BWD(p) while ((--*(p) & 0xc0) == 0x80)
+
 #define UTF8_SPACE(u) ((u) < 0x80 ? 1 : (u) < 0x800 ? 2 : 3)
 
 uns ucs2_to_utf8(byte *, word *);