1 /* This file is part of the Zebra server.
2 Copyright (C) Index Data
4 Zebra is free software; you can redistribute it and/or modify it under
5 the terms of the GNU General Public License as published by the Free
6 Software Foundation; either version 2, or (at your option) any later
9 Zebra is distributed in the hope that it will be useful, but WITHOUT ANY
10 WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 #ifndef ZEBRA_IT_KEY_H
21 #define ZEBRA_IT_KEY_H
23 #include <idzebra/util.h>
27 #define IT_MAX_WORD 512
29 #define IT_KEY_LEVEL_MAX 5
32 zint mem[IT_KEY_LEVEL_MAX];
35 void *iscz1_start(void);
36 void iscz1_reset(void *vp);
37 void iscz1_stop(void *p);
38 void iscz1_decode(void *vp, char **dst, const char **src);
39 void iscz1_encode(void *vp, char **dst, const char **src);
41 int key_compare(const void *p1, const void *p2);
42 void key_init(struct it_key *k);
43 zint key_get_seq(const void *p);
44 zint key_get_segment(const void *p);
45 int key_qsort_compare(const void *p1, const void *p2);
46 char *key_print_it(const void *p, char *buf);
47 void key_logdump(int mask, const void *p);
48 void key_logdump_txt(int logmask, const void *p, const char *txt);
50 int key_SU_decode(int *ch, const unsigned char *out);
51 int key_SU_encode(int ch, char *out);
59 * c-file-style: "Stroustrup"
60 * indent-tabs-mode: nil
62 * vim: shiftwidth=4 tabstop=8 expandtab