gwenhywfar  5.10.1
stringlist2.h
Go to the documentation of this file.
1 /***************************************************************************
2  $RCSfile$
3  -------------------
4  cvs : $Id$
5  begin : Thu Apr 03 2003
6  copyright : (C) 2003 by Martin Preuss
7  email : martin@libchipcard.de
8 
9  ***************************************************************************
10  * *
11  * This library is free software; you can redistribute it and/or *
12  * modify it under the terms of the GNU Lesser General Public *
13  * License as published by the Free Software Foundation; either *
14  * version 2.1 of the License, or (at your option) any later version. *
15  * *
16  * This library is distributed in the hope that it will be useful, *
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
19  * Lesser General Public License for more details. *
20  * *
21  * You should have received a copy of the GNU Lesser General Public *
22  * License along with this library; if not, write to the Free Software *
23  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
24  * MA 02111-1307 USA *
25  * *
26  ***************************************************************************/
27 
28 #ifndef GWENHYWFAR_STRINGLIST2_H
29 #define GWENHYWFAR_STRINGLIST2_H
30 
31 #include <gwenhywfar/gwenhywfarapi.h>
32 #include <gwenhywfar/stringlist.h>
33 #include <gwenhywfar/types.h>
34 #include <gwenhywfar/refptr.h>
35 #include <gwenhywfar/list.h>
36 #include <gwenhywfar/db.h>
37 #include <gwenhywfar/xml.h>
38 
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 
45 
46 
47 typedef enum {
52 
53 
60 
61 
63 int GWEN_StringList2_toDb(GWEN_STRINGLIST2 *sl2, GWEN_DB_NODE *db, const char *varName);
64 
67 
68 
71 
74 
75 
84 
94 
104  const char *s,
105  int take,
107 
117  const char *s,
118  int take,
120 
126  const char *s);
127 
134  const char *s);
135 
136 
137 GWENHYWFAR_API const char *GWEN_StringList2_GetStringAt(const GWEN_STRINGLIST2 *sl2, int idx);
138 
139 
140 
143 
144 
147 
148 
151 
152 
155 
156 
159 
160 
163 
165 unsigned int
167 
168 
170 GWEN_REFPTR *
172 
173 
175 
176 
178 
179 
180 
181 #ifdef __cplusplus
182 }
183 #endif
184 
185 
186 #endif
187 
188 
GWENHYWFAR_API int GWEN_StringList2_RemoveString(GWEN_STRINGLIST2 *sl2, const char *s)
Definition: stringlist2.c:282
GWEN_STRINGLIST2_INSERTMODE
Definition: stringlist2.h:47
GWENHYWFAR_API void GWEN_StringList2_SetSenseCase(GWEN_STRINGLIST2 *sl2, int i)
Definition: stringlist2.c:188
struct GWEN_DB_NODE GWEN_DB_NODE
Definition: db.h:228
struct GWEN_LIST_ITERATOR GWEN_LIST_ITERATOR
Definition: list.h:72
GWENHYWFAR_API void GWEN_StringList2_Dump(const GWEN_STRINGLIST2 *sl2)
Definition: stringlist2.c:488
GWENHYWFAR_API GWEN_STRINGLIST2 * GWEN_StringList2_dup(GWEN_STRINGLIST2 *sl2)
Definition: stringlist2.c:73
GWENHYWFAR_API const char * GWEN_StringList2Iterator_Data(GWEN_STRINGLIST2_ITERATOR *li)
Definition: stringlist2.c:456
GWENHYWFAR_API GWEN_STRINGLIST2 * GWEN_StringList2_new(void)
Definition: stringlist2.c:45
GWENHYWFAR_API const char * GWEN_StringList2Iterator_Next(GWEN_STRINGLIST2_ITERATOR *li)
Definition: stringlist2.c:449
GWENHYWFAR_API void GWEN_StringList2Iterator_free(GWEN_STRINGLIST2_ITERATOR *li)
Definition: stringlist2.c:435
GWENHYWFAR_API void GWEN_StringList2_SetIgnoreRefCount(GWEN_STRINGLIST2 *sl2, int i)
struct GWEN_REFPTR GWEN_REFPTR
Definition: refptr.h:45
GWENHYWFAR_API GWEN_STRINGLIST2 * GWEN_StringList2_fromDb(GWEN_DB_NODE *db, const char *name, GWEN_STRINGLIST2_INSERTMODE m)
Definition: stringlist2.c:118
GWENHYWFAR_API GWEN_STRINGLIST2_ITERATOR * GWEN_StringList2_First(const GWEN_STRINGLIST2 *l)
Definition: stringlist2.c:419
GWENHYWFAR_API GWEN_REFPTR * GWEN_StringList2Iterator_DataRefPtr(GWEN_STRINGLIST2_ITERATOR *li)
Definition: stringlist2.c:464
GWENHYWFAR_API int GWEN_StringList2_InsertString(GWEN_STRINGLIST2 *sl2, const char *s, int take, GWEN_STRINGLIST2_INSERTMODE m)
Definition: stringlist2.c:239
GWENHYWFAR_API int GWEN_StringList2_toDb(GWEN_STRINGLIST2 *sl2, GWEN_DB_NODE *db, const char *varName)
Definition: stringlist2.c:86
GWENHYWFAR_API const char * GWEN_StringList2Iterator_Previous(GWEN_STRINGLIST2_ITERATOR *li)
Definition: stringlist2.c:442
#define GWENHYWFAR_API
Definition: gwenhywfarapi.h:67
GWENHYWFAR_API int GWEN_StringList2_HasString(const GWEN_STRINGLIST2 *sl2, const char *s)
Definition: stringlist2.c:303
struct GWEN_STRINGLIST2 GWEN_STRINGLIST2
Definition: stringlist2.h:43
GWENHYWFAR_API void GWEN_StringList2_free(GWEN_STRINGLIST2 *sl2)
Definition: stringlist2.c:63
GWENHYWFAR_API unsigned int GWEN_StringList2_GetCount(const GWEN_STRINGLIST2 *l)
Definition: stringlist2.c:480
GWENHYWFAR_API GWEN_STRINGLIST2_ITERATOR * GWEN_StringList2_Last(const GWEN_STRINGLIST2 *l)
Definition: stringlist2.c:427
GWENHYWFAR_API int GWEN_StringList2_AppendString(GWEN_STRINGLIST2 *sl2, const char *s, int take, GWEN_STRINGLIST2_INSERTMODE m)
Definition: stringlist2.c:196
GWENHYWFAR_API const char * GWEN_StringList2_GetStringAt(const GWEN_STRINGLIST2 *sl2, int idx)
Definition: stringlist2.c:381
GWENHYWFAR_API int GWEN_StringList2_toXml(GWEN_STRINGLIST2 *sl2, GWEN_XMLNODE *node)
Definition: stringlist2.c:138
GWENHYWFAR_API unsigned int GWEN_StringList2Iterator_GetLinkCount(const GWEN_STRINGLIST2_ITERATOR *li)
Definition: stringlist2.c:472
struct GWEN__XMLNODE GWEN_XMLNODE
Definition: xml.h:156
GWENHYWFAR_API GWEN_STRINGLIST2 * GWEN_StringList2_fromXml(GWEN_XMLNODE *node, GWEN_STRINGLIST2_INSERTMODE m)
Definition: stringlist2.c:159
GWEN_LIST_ITERATOR GWEN_STRINGLIST2_ITERATOR
Definition: stringlist2.h:44