From d9ca7c8d810c2c90cdcd4dc6de29c1660be8ba08 Mon Sep 17 00:00:00 2001 From: tomo Date: Thu, 2 Sep 1999 20:04:33 +0000 Subject: [PATCH] (CHAR_MULTIBYTE_P): Moved from character.h. (CHAR_ASCII_P): Moved from character.h. --- src/mb-utf-8.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/mb-utf-8.h b/src/mb-utf-8.h index bd6323a..2524e49 100644 --- a/src/mb-utf-8.h +++ b/src/mb-utf-8.h @@ -37,4 +37,15 @@ BUFBYTE_FIRST_BYTE_P(Bufbyte c) return (c <= 0x7f) || (0xc0 <= c); } + +/************************************************************************/ +/* 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 */ -- 1.7.10.4