diff options
Diffstat (limited to 'modules/basic/basic-common.h')
-rw-r--r-- | modules/basic/basic-common.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/basic/basic-common.h b/modules/basic/basic-common.h new file mode 100644 index 00000000..2932e383 --- /dev/null +++ b/modules/basic/basic-common.h @@ -0,0 +1,26 @@ +#ifndef __BASIC_COMMON_H__ +#define __BASIC_COMMON_H__ + +G_BEGIN_DECLS + +/* Zero Width characters: + * + * 200B ZERO WIDTH SPACE + * 200C ZERO WIDTH NON-JOINER + * 200D ZERO WIDTH JOINER + * 200E LEFT-TO-RIGHT MARK + * 200F RIGHT-TO-LEFT MARK + * 202A LEFT-TO-RIGHT EMBEDDING + * 202B RIGHT-TO-LEFT EMBEDDING + * 202C POP DIRECTIONAL FORMATTING + * 202D LEFT-TO-RIGHT OVERRIDE + * 202E RIGHT-TO-LEFT OVERRIDE + * FEFF ZERO WIDTH NO-BREAK SPACE + */ + +#define ZERO_WIDTH_CHAR(wc)\ +(((wc) >= 0x200B && (wc) <= 0x200F) || ((wc) >= 0x202A && (wc) <= 0x202E) || ((wc) == 0xFEFF)) + +G_END_DECLS + +#endif /* __BASIC_COMMON_H__ */ |