Debian Codegraph @

datrie/alpha-map-private.h

raw
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * libdatrie - Double-Array Trie Library
4 * Copyright (C) 2006 Theppitak Karoonboonyanan <[email protected]>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21 /*
22 * alpha-map-private.h - private APIs for alpha-map
23 * Created: 2008-12-04
24 * Author: Theppitak Karoonboonyanan <[email protected]>
25 */
26
27 #ifndef __ALPHA_MAP_PRIVATE_H
28 #define __ALPHA_MAP_PRIVATE_H
29
30 #include <stdio.h>
31 #include "alpha-map.h"
32
33 AlphaMap * alpha_map_fread_bin (FILE *file);
34
35 int alpha_map_fwrite_bin (const AlphaMap *alpha_map, FILE *file);
36
37 size_t alpha_map_get_serialized_size (const AlphaMap *alpha_map);
38
39 void alpha_map_serialize_bin (const AlphaMap *alpha_map, uint8 **ptr);
40
41
42 TrieIndex alpha_map_char_to_trie (const AlphaMap *alpha_map,
43 AlphaChar ac);
44
45 AlphaChar alpha_map_trie_to_char (const AlphaMap *alpha_map,
46 TrieChar tc);
47
48 TrieChar * alpha_map_char_to_trie_str (const AlphaMap *alpha_map,
49 const AlphaChar *str);
50
51 AlphaChar * alpha_map_trie_to_char_str (const AlphaMap *alpha_map,
52 const TrieChar *str);
53
54
55 #endif /* __ALPHA_MAP_PRIVATE_H */
56
57
58 /*
59 vi:ts=4:ai:expandtab
60 */
61