/* Copyright (c) 2014-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "str.h"
#include "unichar.h" /* unicode replacement char */
#include "fts-filter-common.h"
#include "fts-filter-private.h"
#include "fts-language.h"
#ifdef HAVE_LIBICU
#include "fts-icu.h"
struct fts_filter_normalizer_icu {
const char *transliterator_id;
};
{
(struct fts_filter_normalizer_icu *)filter;
}
static int
const char *const *settings,
struct fts_filter **filter_r,
const char **error_r)
{
max_length == 0) {
return -1;
}
} else {
return -1;
}
}
sizeof(struct fts_filter_normalizer_icu));
return 0;
}
static int
const char **error_r)
{
(struct fts_filter_normalizer_icu *)filter;
&np->transliterator,
error_r) < 0)
return -1;
return -1;
return 0;
return 1;
}
#else
static int
const char *const *settings ATTR_UNUSED,
const char **error_r)
{
*error_r = "libicu support not built in";
return -1;
}
static int
const char **token ATTR_UNUSED,
const char **error_r ATTR_UNUSED)
{
return -1;
}
static void
{
}
#endif
.class_name = "normalizer-icu",
.v = {
}
};