gwenhywfar  4.6.0beta
stringlist.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_STRINGLIST_H
29 #define GWENHYWFAR_STRINGLIST_H
30 
31 #include <gwenhywfar/gwenhywfarapi.h>
32 
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 
39 typedef enum {
48 
49 
50 typedef struct GWEN_STRINGLISTENTRYSTRUCT GWEN_STRINGLISTENTRY;
51 
52 
53 typedef struct GWEN_STRINGLISTSTRUCT GWEN_STRINGLIST;
54 
55 
57 
59 
64 
67  unsigned int GWEN_StringList_Count(const GWEN_STRINGLIST *sl);
68 
70  int take);
72  const char *s,
73  int take);
83 
85  const char *GWEN_StringListEntry_Data(const GWEN_STRINGLISTENTRY *se);
86 
89  const char *s);
90 
99 
109 
118  const char *s,
119  int take,
120  int checkDouble);
121 
130  const char *s,
131  int take,
132  int checkDouble);
133 
139  const char *s);
140 
147  const char *s);
148 
154 GWENHYWFAR_API int GWEN_StringList_GetStringPos(const GWEN_STRINGLIST *sl, const char *s);
155 
156 
170  void *(*func)(const char *s, void *u),
171  void *user_data);
172 
175 const char *GWEN_StringList_FirstString(const GWEN_STRINGLIST *l);
176 
178 const char *GWEN_StringList_StringAt(const GWEN_STRINGLIST *l, int idx);
179 
180 
194  int ascending,
195  GWEN_STRINGLIST_SORT_MODE sortMode);
196 
198 GWEN_STRINGLIST *GWEN_StringList_fromString(const char *str, const char *delimiters, int checkDouble);
199 
200 #ifdef __cplusplus
201 }
202 #endif
203 
204 #endif
205 
206