FreeBASIC  0.91.0
dstr.bi
Go to the documentation of this file.
1 #ifndef __DSTR_BI__
2 #define __DSTR_BI__
3 
4 #define DECL_STRTYPE(_name,_type) _
5  type _name :_
6  data as _type ptr :_
7  len as integer :_
8  size as integer :_
9  end type
10 
11 DECL_STRTYPE( DSTRING, any )
12 DECL_STRTYPE( DZSTRING, zstring )
13 DECL_STRTYPE( DWSTRING, wstring )
14 
15 declare sub DZstrZero _
16  ( _
17  byref dst as DZSTRING _
18  )
19 
20 declare sub DZstrAllocate _
21  ( _
22  byref dst as DZSTRING, _
23  byval chars as integer _
24  )
25 
26 declare sub DZstrReset _
27  ( _
28  byref dst as DZSTRING _
29  )
30 
31 declare sub DZstrAssign _
32  ( _
33  byref dst as DZSTRING, _
34  byval src as zstring ptr _
35  )
36 
37 declare sub DZstrAssignW _
38  ( _
39  byref dst as DZSTRING, _
40  byval src as wstring ptr _
41  )
42 
43 declare sub DZstrAssignC _
44  ( _
45  byref dst as DZSTRING, _
46  byval src as uinteger _
47  )
48 
49 declare sub DZstrConcatAssign _
50  ( _
51  byref dst as DZSTRING, _
52  byval src as zstring ptr _
53  )
54 
55 declare sub DZstrConcatAssignW _
56  ( _
57  byref dst as DZSTRING, _
58  byval src as wstring ptr _
59  )
60 
61 declare sub DZstrConcatAssignC _
62  ( _
63  byref dst as DZSTRING, _
64  byval src as uinteger _
65  )
66 
67 declare sub DWstrZero _
68  ( _
69  byref dst as DWSTRING _
70  )
71 
72 declare sub DWstrAllocate _
73  ( _
74  byref dst as DWSTRING, _
75  byval chars as integer _
76  )
77 
78 declare sub DWstrReset _
79  ( _
80  byref dst as DWSTRING _
81  )
82 
83 declare sub DWstrAssign _
84  ( _
85  byref dst as DWSTRING, _
86  byval src as wstring ptr _
87  )
88 
89 declare sub DWstrAssignA _
90  ( _
91  byref dst as DWSTRING, _
92  byval src as zstring ptr _
93  )
94 
95 declare sub DWstrAssignC _
96  ( _
97  byref dst as DWSTRING, _
98  byval src as uinteger _
99  )
100 
101 declare sub DWstrConcatAssign _
102  ( _
103  byref dst as DWSTRING, _
104  byval src as wstring ptr _
105  )
106 
107 declare sub DWstrConcatAssignA _
108  ( _
109  byref dst as DWSTRING, _
110  byval src as zstring ptr _
111  )
112 
113 declare sub DWstrConcatAssignC _
114  ( _
115  byref dst as DWSTRING, _
116  byval src as uinteger _
117  )
118 
119 
120 #endif ''__DSTR_BI__
121