diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2017-09-17 22:42:47 +0200 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2017-09-17 22:42:47 +0200 |
commit | c4d3035a80fe8d2c5b3b9791fce2d26fbb147624 (patch) | |
tree | faee087cb04cd1be0cfa0d25b559938add683e24 /src/utf8.h | |
parent | ec10077b9f943212a9c0c634d79ada4f88b0d0c1 (diff) | |
download | ratpoison-c4d3035a80fe8d2c5b3b9791fce2d26fbb147624.zip |
Turn utf8 macros into functions with less ugly names
Diffstat (limited to 'src/utf8.h')
-rw-r--r-- | src/utf8.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,10 +1,9 @@ #ifndef UTF8_H #define UTF8_H -/* UTF-8 handling macros */ -#define RP_IS_UTF8_CHAR(c) (utf8_locale && (c) & 0xC0) -#define RP_IS_UTF8_START(c) (utf8_locale && ((c) & 0xC0) == 0xC0) -#define RP_IS_UTF8_CONT(c) (utf8_locale && ((c) & 0xC0) == 0x80) +extern int isu8char(char c); +extern int isu8start(char c); +extern int isu8cont(char c); extern int utf8_locale; |