gwenhywfar
4.3.3
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
src
base
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
37
#ifdef __cplusplus
38
extern
"C"
{
39
#endif
40
41
typedef
struct
GWEN_STRINGLIST2
GWEN_STRINGLIST2
;
42
typedef
GWEN_LIST_ITERATOR
GWEN_STRINGLIST2_ITERATOR
;
43
44
45
typedef
enum
{
46
GWEN_StringList2_IntertMode_AlwaysAdd
=0,
47
GWEN_StringList2_IntertMode_NoDouble
,
48
GWEN_StringList2_IntertMode_Reuse
49
}
GWEN_STRINGLIST2_INSERTMODE
;
50
51
52
GWENHYWFAR_API
53
GWEN_STRINGLIST2
*
GWEN_StringList2_new
(
void
);
54
GWENHYWFAR_API
55
void
GWEN_StringList2_free
(
GWEN_STRINGLIST2
*sl2);
56
GWENHYWFAR_API
57
GWEN_STRINGLIST2
*
GWEN_StringList2_dup
(
GWEN_STRINGLIST2
*sl2);
58
59
66
GWENHYWFAR_API
67
void
GWEN_StringList2_SetSenseCase
(
GWEN_STRINGLIST2
*sl2,
int
i);
68
76
GWENHYWFAR_API
77
void
GWEN_StringList2_SetIgnoreRefCount
(
GWEN_STRINGLIST2
*sl2,
int
i);
78
86
GWENHYWFAR_API
87
int
GWEN_StringList2_AppendString
(
GWEN_STRINGLIST2
*sl2,
88
const
char
*s,
89
int
take,
90
GWEN_STRINGLIST2_INSERTMODE
m);
91
99
GWENHYWFAR_API
100
int
GWEN_StringList2_InsertString
(
GWEN_STRINGLIST2
*sl2,
101
const
char
*s,
102
int
take,
103
GWEN_STRINGLIST2_INSERTMODE
m);
104
109
GWENHYWFAR_API
int
GWEN_StringList2_RemoveString
(
GWEN_STRINGLIST2
*sl2,
110
const
char
*s);
111
117
GWENHYWFAR_API
int
GWEN_StringList2_HasString
(
const
GWEN_STRINGLIST2
*sl2,
118
const
char
*s);
119
120
121
122
123
GWENHYWFAR_API
124
GWEN_STRINGLIST2_ITERATOR *
GWEN_StringList2_First
(
const
GWEN_STRINGLIST2
*l);
125
126
127
GWENHYWFAR_API
128
GWEN_STRINGLIST2_ITERATOR *
GWEN_StringList2_Last
(
const
GWEN_STRINGLIST2
*l);
129
130
131
GWENHYWFAR_API
132
void
GWEN_StringList2Iterator_free
(GWEN_STRINGLIST2_ITERATOR *li);
133
134
135
GWENHYWFAR_API
136
const
char
*
GWEN_StringList2Iterator_Previous
(GWEN_STRINGLIST2_ITERATOR *li);
137
138
139
GWENHYWFAR_API
140
const
char
*
GWEN_StringList2Iterator_Next
(GWEN_STRINGLIST2_ITERATOR *li);
141
142
143
GWENHYWFAR_API
144
const
char
*
GWEN_StringList2Iterator_Data
(GWEN_STRINGLIST2_ITERATOR *li);
145
146
GWENHYWFAR_API
147
unsigned
int
148
GWEN_StringList2Iterator_GetLinkCount
(
const
GWEN_STRINGLIST2_ITERATOR *li);
149
150
151
GWENHYWFAR_API
152
GWEN_REFPTR
*
153
GWEN_StringList2Iterator_DataRefPtr
(GWEN_STRINGLIST2_ITERATOR *li);
154
155
156
GWENHYWFAR_API
void
GWEN_StringList2_Dump
(
const
GWEN_STRINGLIST2
*sl2);
157
158
159
160
#ifdef __cplusplus
161
}
162
#endif
163
164
165
#endif
166
167
Generated on Thu Mar 20 2014 17:06:00 for gwenhywfar by
1.8.1.2