From d3687d8a973e507db22e1565592c5ebdd7b017c4 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Thu, 31 May 2007 13:19:05 +0000 Subject: Rename IS_PRINTABLE macro to unichar_isprint and move it to utf8.h. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4534 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/utf8.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/fe-common') diff --git a/src/fe-common/core/utf8.h b/src/fe-common/core/utf8.h index 9454f77d..067a9df7 100644 --- a/src/fe-common/core/utf8.h +++ b/src/fe-common/core/utf8.h @@ -32,4 +32,6 @@ void utf16_to_utf8_with_pos(const unichar *str, int spos, char *out, int *opos); /* Returns width for character (0-2). */ int mk_wcwidth(unichar c); +#define unichar_isprint(c) (((c) & ~0x80) >= 32) + #endif -- cgit v1.2.3