bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch/* Copyright (c) 2015-2018 Dovecot authors, see the included COPYING file */
acfcf88e4dd529e4b2409f43bc9713cbc0169347Timo Sirainenfts_filter_lowercase_create(const struct fts_language *lang ATTR_UNUSED,
5fcd30add8dcf4d883978cce3e39f3a89184f1e5Teemu Huovila const char *const *settings,
5fcd30add8dcf4d883978cce3e39f3a89184f1e5Teemu Huovila const char **error_r)
5fcd30add8dcf4d883978cce3e39f3a89184f1e5Teemu Huovila const char *key = settings[i], *value = settings[i+1];
5fcd30add8dcf4d883978cce3e39f3a89184f1e5Teemu Huovila *error_r = t_strdup_printf("Invalid lowercase filter maxlen setting: %s", value);
5fcd30add8dcf4d883978cce3e39f3a89184f1e5Teemu Huovila *error_r = t_strdup_printf("Unknown setting: %s", key);
266c879b43bce714aa5cd6a59b7f709d74451ccbTimo Sirainenfts_filter_lowercase_filter(struct fts_filter *filter ATTR_UNUSED,
5fcd30add8dcf4d883978cce3e39f3a89184f1e5Teemu Huovila const char **token,
5fcd30add8dcf4d883978cce3e39f3a89184f1e5Teemu Huovila fts_filter_truncate_token(filter->token, filter->max_length);
acfcf88e4dd529e4b2409f43bc9713cbc0169347Timo Sirainenstatic const struct fts_filter fts_filter_lowercase_real = {