msi: Only insert entries into listbox if property value matches.
[wine] / include / msvcrt / wchar.h
1 /*
2  * Unicode definitions
3  *
4  * Derived from the mingw header written by Colin Peters.
5  * Modified for Wine use by Jon Griffiths and Francois Gouget.
6  * This file is in the public domain.
7  */
8 #ifndef __WINE_WCHAR_H
9 #define __WINE_WCHAR_H
10 #ifndef __WINE_USE_MSVCRT
11 #define __WINE_USE_MSVCRT
12 #endif
13
14 #include <stdarg.h>
15
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19
20 #ifndef _WCHAR_T_DEFINED
21 #define _WCHAR_T_DEFINED
22 #ifndef __cplusplus
23 typedef unsigned short wchar_t;
24 #endif
25 #endif
26
27 #ifndef NULL
28 #ifdef __cplusplus
29 #define NULL  0
30 #else
31 #define NULL  ((void *)0)
32 #endif
33 #endif
34
35 #define WCHAR_MIN 0
36 #define WCHAR_MAX ((wchar_t)-1)
37
38 #if !defined(_MSC_VER) && !defined(__int64)
39 #define __int64 long long
40 #endif
41
42 #if defined(__x86_64__) && !defined(_WIN64)
43 #define _WIN64
44 #endif
45
46 #ifndef DECLSPEC_ALIGN
47 # if defined(_MSC_VER) && (_MSC_VER >= 1300) && !defined(MIDL_PASS)
48 #  define DECLSPEC_ALIGN(x) __declspec(align(x))
49 # elif defined(__GNUC__)
50 #  define DECLSPEC_ALIGN(x) __attribute__((aligned(x)))
51 # else
52 #  define DECLSPEC_ALIGN(x)
53 # endif
54 #endif
55
56 typedef int mbstate_t;
57
58 #ifndef _SIZE_T_DEFINED
59 #ifdef _WIN64
60 typedef unsigned __int64 size_t;
61 #else
62 typedef unsigned int size_t;
63 #endif
64 #define _SIZE_T_DEFINED
65 #endif
66
67 #ifndef _WCTYPE_T_DEFINED
68 typedef unsigned short  wint_t;
69 typedef unsigned short  wctype_t;
70 #define _WCTYPE_T_DEFINED
71 #endif
72
73 #ifndef WEOF
74 #define WEOF        (wint_t)(0xFFFF)
75 #endif
76
77 #ifndef _FSIZE_T_DEFINED
78 typedef unsigned long _fsize_t;
79 #define _FSIZE_T_DEFINED
80 #endif
81
82 #ifndef _DEV_T_DEFINED
83 typedef unsigned int   _dev_t;
84 #define _DEV_T_DEFINED
85 #endif
86
87 #ifndef _INO_T_DEFINED
88 typedef unsigned short _ino_t;
89 #define _INO_T_DEFINED
90 #endif
91
92 #ifndef _OFF_T_DEFINED
93 typedef int _off_t;
94 #define _OFF_T_DEFINED
95 #endif
96
97 #ifndef _TIME_T_DEFINED
98 typedef long time_t;
99 #define _TIME_T_DEFINED
100 #endif
101
102 #ifndef _TM_DEFINED
103 #define _TM_DEFINED
104 struct tm {
105     int tm_sec;
106     int tm_min;
107     int tm_hour;
108     int tm_mday;
109     int tm_mon;
110     int tm_year;
111     int tm_wday;
112     int tm_yday;
113     int tm_isdst;
114 };
115 #endif /* _TM_DEFINED */
116
117 #ifndef _FILE_DEFINED
118 #define _FILE_DEFINED
119 typedef struct _iobuf
120 {
121   char* _ptr;
122   int   _cnt;
123   char* _base;
124   int   _flag;
125   int   _file;
126   int   _charbuf;
127   int   _bufsiz;
128   char* _tmpfname;
129 } FILE;
130 #endif  /* _FILE_DEFINED */
131
132 #ifndef _WFINDDATA_T_DEFINED
133 #define _WFINDDATA_T_DEFINED
134
135 struct _wfinddata_t {
136   unsigned attrib;
137   time_t time_create;
138   time_t time_access;
139   time_t time_write;
140   _fsize_t size;
141   wchar_t name[260];
142 };
143
144 struct _wfinddatai64_t {
145   unsigned attrib;
146   time_t time_create;
147   time_t time_access;
148   time_t time_write;
149   __int64        size;
150   wchar_t name[260];
151 };
152
153 #endif /* _WFINDDATA_T_DEFINED */
154
155 #ifndef _STAT_DEFINED
156 #define _STAT_DEFINED
157
158 struct _stat {
159   _dev_t st_dev;
160   _ino_t st_ino;
161   unsigned short st_mode;
162   short          st_nlink;
163   short          st_uid;
164   short          st_gid;
165   _dev_t st_rdev;
166   _off_t st_size;
167   time_t st_atime;
168   time_t st_mtime;
169   time_t st_ctime;
170 };
171
172 struct stat {
173   _dev_t st_dev;
174   _ino_t st_ino;
175   unsigned short st_mode;
176   short          st_nlink;
177   short          st_uid;
178   short          st_gid;
179   _dev_t st_rdev;
180   _off_t st_size;
181   time_t st_atime;
182   time_t st_mtime;
183   time_t st_ctime;
184 };
185
186 struct _stati64 {
187   _dev_t st_dev;
188   _ino_t st_ino;
189   unsigned short st_mode;
190   short          st_nlink;
191   short          st_uid;
192   short          st_gid;
193   _dev_t st_rdev;
194   __int64 DECLSPEC_ALIGN(8) st_size;
195   time_t st_atime;
196   time_t st_mtime;
197   time_t st_ctime;
198 };
199 #endif /* _STAT_DEFINED */
200
201 /* ASCII char classification table - binary compatible */
202 #define _UPPER        0x0001  /* C1_UPPER */
203 #define _LOWER        0x0002  /* C1_LOWER */
204 #define _DIGIT        0x0004  /* C1_DIGIT */
205 #define _SPACE        0x0008  /* C1_SPACE */
206 #define _PUNCT        0x0010  /* C1_PUNCT */
207 #define _CONTROL      0x0020  /* C1_CNTRL */
208 #define _BLANK        0x0040  /* C1_BLANK */
209 #define _HEX          0x0080  /* C1_XDIGIT */
210 #define _LEADBYTE     0x8000
211 #define _ALPHA       (0x0100|_UPPER|_LOWER)  /* (C1_ALPHA|_UPPER|_LOWER) */
212
213 #ifndef _WCTYPE_DEFINED
214 #define _WCTYPE_DEFINED
215 int is_wctype(wint_t,wctype_t);
216 int isleadbyte(int);
217 int iswalnum(wint_t);
218 int iswalpha(wint_t);
219 int iswascii(wint_t);
220 int iswcntrl(wint_t);
221 int iswctype(wint_t,wctype_t);
222 int iswdigit(wint_t);
223 int iswgraph(wint_t);
224 int iswlower(wint_t);
225 int iswprint(wint_t);
226 int iswpunct(wint_t);
227 int iswspace(wint_t);
228 int iswupper(wint_t);
229 int iswxdigit(wint_t);
230 wchar_t towlower(wchar_t);
231 wchar_t towupper(wchar_t);
232 #endif /* _WCTYPE_DEFINED */
233
234 #ifndef _WDIRECT_DEFINED
235 #define _WDIRECT_DEFINED
236 int              _wchdir(const wchar_t*);
237 wchar_t* _wgetcwd(wchar_t*,int);
238 wchar_t* _wgetdcwd(int,wchar_t*,int);
239 int              _wmkdir(const wchar_t*);
240 int              _wrmdir(const wchar_t*);
241 #endif /* _WDIRECT_DEFINED */
242
243 #ifndef _WIO_DEFINED
244 #define _WIO_DEFINED
245 int         _waccess(const wchar_t*,int);
246 int         _wchmod(const wchar_t*,int);
247 int         _wcreat(const wchar_t*,int);
248 long        _wfindfirst(const wchar_t*,struct _wfinddata_t*);
249 long        _wfindfirsti64(const wchar_t*, struct _wfinddatai64_t*);
250 int         _wfindnext(long,struct _wfinddata_t*);
251 int         _wfindnexti64(long, struct _wfinddatai64_t*);
252 wchar_t*_wmktemp(wchar_t*);
253 int         _wopen(const wchar_t*,int,...);
254 int         _wrename(const wchar_t*,const wchar_t*);
255 int         _wsopen(const wchar_t*,int,int,...);
256 int         _wunlink(const wchar_t*);
257 #endif /* _WIO_DEFINED */
258
259 #ifndef _WLOCALE_DEFINED
260 #define _WLOCALE_DEFINED
261 wchar_t* _wsetlocale(int,const wchar_t*);
262 #endif /* _WLOCALE_DEFINED */
263
264 #ifndef _WPROCESS_DEFINED
265 #define _WPROCESS_DEFINED
266 int         _wexecl(const wchar_t*,const wchar_t*,...);
267 int         _wexecle(const wchar_t*,const wchar_t*,...);
268 int         _wexeclp(const wchar_t*,const wchar_t*,...);
269 int         _wexeclpe(const wchar_t*,const wchar_t*,...);
270 int         _wexecv(const wchar_t*,const wchar_t* const *);
271 int         _wexecve(const wchar_t*,const wchar_t* const *,const wchar_t* const *);
272 int         _wexecvp(const wchar_t*,const wchar_t* const *);
273 int         _wexecvpe(const wchar_t*,const wchar_t* const *,const wchar_t* const *);
274 int         _wspawnl(int,const wchar_t*,const wchar_t*,...);
275 int         _wspawnle(int,const wchar_t*,const wchar_t*,...);
276 int         _wspawnlp(int,const wchar_t*,const wchar_t*,...);
277 int         _wspawnlpe(int,const wchar_t*,const wchar_t*,...);
278 int         _wspawnv(int,const wchar_t*,const wchar_t* const *);
279 int         _wspawnve(int,const wchar_t*,const wchar_t* const *,const wchar_t* const *);
280 int         _wspawnvp(int,const wchar_t*,const wchar_t* const *);
281 int         _wspawnvpe(int,const wchar_t*,const wchar_t* const *,const wchar_t* const *);
282 int         _wsystem(const wchar_t*);
283 #endif /* _WPROCESS_DEFINED */
284
285 #ifndef _WSTAT_DEFINED
286 #define _WSTAT_DEFINED
287 int _wstat(const wchar_t*,struct _stat*);
288 int _wstati64(const wchar_t*,struct _stati64*);
289 #endif /* _WSTAT_DEFINED */
290
291 #ifndef _WSTDIO_DEFINED
292 #define _WSTDIO_DEFINED
293 wint_t  _fgetwchar(void);
294 wint_t  _fputwchar(wint_t);
295 wchar_t*_getws(wchar_t*);
296 int             _putws(const wchar_t*);
297 int             _snwprintf(wchar_t*,size_t,const wchar_t*,...);
298 int             _vsnwprintf(wchar_t*,size_t,const wchar_t*,va_list);
299 FILE*   _wfdopen(int,const wchar_t*);
300 FILE*   _wfopen(const wchar_t*,const wchar_t*);
301 FILE*   _wfreopen(const wchar_t*,const wchar_t*,FILE*);
302 FILE*   _wfsopen(const wchar_t*,const wchar_t*,int);
303 void            _wperror(const wchar_t*);
304 FILE*   _wpopen(const wchar_t*,const wchar_t*);
305 int             _wremove(const wchar_t*);
306 wchar_t*_wtempnam(const wchar_t*,const wchar_t*);
307 wchar_t*_wtmpnam(wchar_t*);
308
309 wint_t  fgetwc(FILE*);
310 wchar_t*fgetws(wchar_t*,int,FILE*);
311 wint_t  fputwc(wint_t,FILE*);
312 int             fputws(const wchar_t*,FILE*);
313 int             fwprintf(FILE*,const wchar_t*,...);
314 int             fputws(const wchar_t*,FILE*);
315 int             fwscanf(FILE*,const wchar_t*,...);
316 wint_t  getwc(FILE*);
317 wint_t  getwchar(void);
318 wchar_t*getws(wchar_t*);
319 wint_t  putwc(wint_t,FILE*);
320 wint_t  putwchar(wint_t);
321 int             putws(const wchar_t*);
322 int             swprintf(wchar_t*,const wchar_t*,...);
323 int             swscanf(const wchar_t*,const wchar_t*,...);
324 wint_t  ungetwc(wint_t,FILE*);
325 int             vfwprintf(FILE*,const wchar_t*,va_list);
326 int             vswprintf(wchar_t*,const wchar_t*,va_list);
327 int             vwprintf(const wchar_t*,va_list);
328 int             wprintf(const wchar_t*,...);
329 int             wscanf(const wchar_t*,...);
330 #endif /* _WSTDIO_DEFINED */
331
332 #ifndef _WSTDLIB_DEFINED
333 #define _WSTDLIB_DEFINED
334 wchar_t*_itow(int,wchar_t*,int);
335 wchar_t*_i64tow(__int64,wchar_t*,int);
336 wchar_t*_ltow(long,wchar_t*,int);
337 wchar_t*_ui64tow(unsigned __int64,wchar_t*,int);
338 wchar_t*_ultow(unsigned long,wchar_t*,int);
339 wchar_t*_wfullpath(wchar_t*,const wchar_t*,size_t);
340 wchar_t*_wgetenv(const wchar_t*);
341 void            _wmakepath(wchar_t*,const wchar_t*,const wchar_t*,const wchar_t*,const wchar_t*);
342 void            _wperror(const wchar_t*);
343 int             _wputenv(const wchar_t*);
344 void            _wsearchenv(const wchar_t*,const wchar_t*,wchar_t*);
345 void            _wsplitpath(const wchar_t*,wchar_t*,wchar_t*,wchar_t*,wchar_t*);
346 int             _wsystem(const wchar_t*);
347 int             _wtoi(const wchar_t*);
348 __int64         _wtoi64(const wchar_t*);
349 long            _wtol(const wchar_t*);
350
351 size_t mbstowcs(wchar_t*,const char*,size_t);
352 int            mbtowc(wchar_t*,const char*,size_t);
353 double         wcstod(const wchar_t*,wchar_t**);
354 long           wcstol(const wchar_t*,wchar_t**,int);
355 size_t wcstombs(char*,const wchar_t*,size_t);
356 unsigned long  wcstoul(const wchar_t*,wchar_t**,int);
357 int            wctomb(char*,wchar_t);
358 #endif /* _WSTDLIB_DEFINED */
359
360 #ifndef _WSTRING_DEFINED
361 #define _WSTRING_DEFINED
362 wchar_t*_wcsdup(const wchar_t*);
363 int             _wcsicmp(const wchar_t*,const wchar_t*);
364 int             _wcsicoll(const wchar_t*,const wchar_t*);
365 wchar_t*_wcslwr(wchar_t*);
366 int             _wcsnicmp(const wchar_t*,const wchar_t*,size_t);
367 wchar_t*_wcsnset(wchar_t*,wchar_t,size_t);
368 wchar_t*_wcsrev(wchar_t*);
369 wchar_t*_wcsset(wchar_t*,wchar_t);
370 wchar_t*_wcsupr(wchar_t*);
371
372 wchar_t*wcscat(wchar_t*,const wchar_t*);
373 wchar_t*wcschr(const wchar_t*,wchar_t);
374 int             wcscmp(const wchar_t*,const wchar_t*);
375 int             wcscoll(const wchar_t*,const wchar_t*);
376 wchar_t*wcscpy(wchar_t*,const wchar_t*);
377 size_t  wcscspn(const wchar_t*,const wchar_t*);
378 size_t  wcslen(const wchar_t*);
379 wchar_t*wcsncat(wchar_t*,const wchar_t*,size_t);
380 int             wcsncmp(const wchar_t*,const wchar_t*,size_t);
381 wchar_t*wcsncpy(wchar_t*,const wchar_t*,size_t);
382 wchar_t*wcspbrk(const wchar_t*,const wchar_t*);
383 wchar_t*wcsrchr(const wchar_t*,wchar_t wcFor);
384 size_t  wcsspn(const wchar_t*,const wchar_t*);
385 wchar_t*wcsstr(const wchar_t*,const wchar_t*);
386 wchar_t*wcstok(wchar_t*,const wchar_t*);
387 size_t  wcsxfrm(wchar_t*,const wchar_t*,size_t);
388 #endif /* _WSTRING_DEFINED */
389
390 #ifndef _WTIME_DEFINED
391 #define _WTIME_DEFINED
392 wchar_t*_wasctime(const struct tm*);
393 size_t  wcsftime(wchar_t*,size_t,const wchar_t*,const struct tm*);
394 wchar_t*_wctime(const time_t*);
395 wchar_t*_wstrdate(wchar_t*);
396 wchar_t*_wstrtime(wchar_t*);
397 #endif /* _WTIME_DEFINED */
398
399 wchar_t btowc(int);
400 size_t  mbrlen(const char *,size_t,mbstate_t*);
401 size_t  mbrtowc(wchar_t*,const char*,size_t,mbstate_t*);
402 size_t  mbsrtowcs(wchar_t*,const char**,size_t,mbstate_t*);
403 size_t  wcrtomb(char*,wchar_t,mbstate_t*);
404 size_t  wcsrtombs(char*,const wchar_t**,size_t,mbstate_t*);
405 int             wctob(wint_t);
406
407 #ifdef __cplusplus
408 }
409 #endif
410
411 #endif /* __WINE_WCHAR_H */