bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch/* Copyright (c) 2015-2018 Dovecot authors, see the included COPYING file */
440b625484f3cc9d3ec0a7ba36fe3583aa90172dTeemu Huovilafts_filter_contractions_create(const struct fts_language *lang,
440b625484f3cc9d3ec0a7ba36fe3583aa90172dTeemu Huovila const char *const *settings,
440b625484f3cc9d3ec0a7ba36fe3583aa90172dTeemu Huovila const char **error_r)
440b625484f3cc9d3ec0a7ba36fe3583aa90172dTeemu Huovila *error_r = t_strdup_printf("Unknown setting: %s", settings[0]);
440b625484f3cc9d3ec0a7ba36fe3583aa90172dTeemu Huovila *error_r = t_strdup_printf("Unsupported language: %s", lang->name);
440b625484f3cc9d3ec0a7ba36fe3583aa90172dTeemu Huovilafts_filter_contractions_filter(struct fts_filter *filter ATTR_UNUSED,
440b625484f3cc9d3ec0a7ba36fe3583aa90172dTeemu Huovila const char **_token,
f784d5bb8edbec88829524135cfa100129f5384dTimo Sirainen /* fall through */
440b625484f3cc9d3ec0a7ba36fe3583aa90172dTeemu Huovila char_size = uni_utf8_get_char(token + pos, &apostrophe);
440b625484f3cc9d3ec0a7ba36fe3583aa90172dTeemu Huovila /* do nothing */
440b625484f3cc9d3ec0a7ba36fe3583aa90172dTeemu Huovilastatic const struct fts_filter fts_filter_contractions_real = {