1 /* Automatically generated file.  Do not edit directly. */
2 
3 /* This file is part of The New Aspell
4  * Copyright (C) 2001-2002 by Kevin Atkinson under the GNU LGPL
5  * license version 2.0 or 2.1.  You should have received a copy of the
6  * LGPL license along with this library if you did not you can find it
7  * at http://www.gnu.org/.                                              */
8 
9 #include "posib_err.hpp"
10 #include "string_map.hpp"
11 
12 namespace acommon {
13 
14 class MutableContainer;
15 class StringMap;
16 class StringPairEnumeration;
17 
new_aspell_string_map()18 extern "C" StringMap * new_aspell_string_map()
19 {
20   return new_string_map();
21 }
22 
aspell_string_map_add(StringMap * ths,const char * to_add)23 extern "C" int aspell_string_map_add(StringMap * ths, const char * to_add)
24 {
25   return ths->add(to_add);
26 }
27 
aspell_string_map_remove(StringMap * ths,const char * to_rem)28 extern "C" int aspell_string_map_remove(StringMap * ths, const char * to_rem)
29 {
30   return ths->remove(to_rem);
31 }
32 
aspell_string_map_clear(StringMap * ths)33 extern "C" void aspell_string_map_clear(StringMap * ths)
34 {
35   ths->clear();
36 }
37 
aspell_string_map_to_mutable_container(StringMap * ths)38 extern "C" MutableContainer * aspell_string_map_to_mutable_container(StringMap * ths)
39 {
40   return ths;
41 }
42 
delete_aspell_string_map(StringMap * ths)43 extern "C" void delete_aspell_string_map(StringMap * ths)
44 {
45   delete ths;
46 }
47 
aspell_string_map_clone(const StringMap * ths)48 extern "C" StringMap * aspell_string_map_clone(const StringMap * ths)
49 {
50   return ths->clone();
51 }
52 
aspell_string_map_assign(StringMap * ths,const StringMap * other)53 extern "C" void aspell_string_map_assign(StringMap * ths, const StringMap * other)
54 {
55   ths->assign(other);
56 }
57 
aspell_string_map_empty(const StringMap * ths)58 extern "C" int aspell_string_map_empty(const StringMap * ths)
59 {
60   return ths->empty();
61 }
62 
aspell_string_map_size(const StringMap * ths)63 extern "C" unsigned int aspell_string_map_size(const StringMap * ths)
64 {
65   return ths->size();
66 }
67 
aspell_string_map_elements(const StringMap * ths)68 extern "C" StringPairEnumeration * aspell_string_map_elements(const StringMap * ths)
69 {
70   return ths->elements();
71 }
72 
aspell_string_map_insert(StringMap * ths,const char * key,const char * value)73 extern "C" int aspell_string_map_insert(StringMap * ths, const char * key, const char * value)
74 {
75   return ths->insert(key, value);
76 }
77 
aspell_string_map_replace(StringMap * ths,const char * key,const char * value)78 extern "C" int aspell_string_map_replace(StringMap * ths, const char * key, const char * value)
79 {
80   return ths->replace(key, value);
81 }
82 
aspell_string_map_lookup(const StringMap * ths,const char * key)83 extern "C" const char * aspell_string_map_lookup(const StringMap * ths, const char * key)
84 {
85   return ths->lookup(key);
86 }
87 
88 
89 
90 }
91 
92