(CHAR_MULTIBYTE_P): Moved from character.h.
authortomo <tomo>
Thu, 2 Sep 1999 20:04:33 +0000 (20:04 +0000)
committertomo <tomo>
Thu, 2 Sep 1999 20:04:33 +0000 (20:04 +0000)
(CHAR_ASCII_P): Moved from character.h.

src/mb-utf-8.h

index bd6323a..2524e49 100644 (file)
@@ -37,4 +37,15 @@ BUFBYTE_FIRST_BYTE_P(Bufbyte c)
   return (c <= 0x7f) || (0xc0 <= c);
 }
 
+\f
+/************************************************************************/
+/*                        Dealing with characters                       */
+/************************************************************************/
+
+/* Is this character represented by more than one byte in a string? */
+
+#define CHAR_MULTIBYTE_P(c) ((c) >= 0x80)
+
+#define CHAR_ASCII_P(c) (!CHAR_MULTIBYTE_P (c))
+
 #endif /* _XEMACS_MB_UTF_8_H */