From: tomo Date: Thu, 2 Sep 1999 20:04:33 +0000 (+0000) Subject: (CHAR_MULTIBYTE_P): Moved from character.h. X-Git-Tag: r21-2-19-utf-2000-0_6-0~38 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=d9ca7c8d810c2c90cdcd4dc6de29c1660be8ba08;p=chise%2Fxemacs-chise.git.1 (CHAR_MULTIBYTE_P): Moved from character.h. (CHAR_ASCII_P): Moved from character.h. --- 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 */