view src/lib-fts/fts-common.h @ 18943:0994a6619380

lib-fts: Add note about possible additional apostrophe.
author Teemu Huovila <teemu.huovila@dovecot.fi>
date Mon, 17 Aug 2015 13:15:11 +0300
parents a13ce2bce9cd
children f7f6ec738683
line wrap: on
line source

#ifndef FTS_COMMON_H
#define FTS_COMMON_H

/* Some might consider 0x02BB an apostrophe also. */
#define IS_NONASCII_APOSTROPHE(c) \
	((c) == 0x2019 || (c) == 0xFF07)
#define IS_APOSTROPHE(c) \
	((c) == 0x0027 || IS_NONASCII_APOSTROPHE(c))

#endif