mshtml: Added possibility for node implementations to add default event handlers.
[wine] / dlls / msvcp90 / locale.c
1 /*
2  * Copyright 2010 Piotr Caban for CodeWeavers
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18
19 #include "config.h"
20
21 #include <stdarg.h>
22
23 #include "msvcp90.h"
24 #include "locale.h"
25
26 #include "windef.h"
27 #include "winbase.h"
28 #include "wine/debug.h"
29 WINE_DEFAULT_DEBUG_CHANNEL(msvcp90);
30
31 typedef int category;
32
33 typedef struct _locale_id {
34     MSVCP_size_t id;
35 } locale_id;
36
37 typedef struct _locale_facet {
38     const vtable_ptr *vtable;
39     MSVCP_size_t refs;
40 } locale_facet;
41
42 typedef struct _locale__Locimp {
43     locale_facet facet;
44     locale_facet **facetvec;
45     MSVCP_size_t facet_cnt;
46     category catmask;
47     MSVCP_bool transparent;
48     basic_string_char name;
49 } locale__Locimp;
50
51 typedef struct {
52     void *timeptr;
53 } _Timevec;
54
55 typedef struct {
56     _Lockit lock;
57     basic_string_char days;
58     basic_string_char months;
59     basic_string_char oldlocname;
60     basic_string_char newlocname;
61 } _Locinfo;
62
63 typedef struct {
64     LCID handle;
65     unsigned page;
66 } _Collvec;
67
68 typedef struct {
69     LCID handle;
70     unsigned page;
71     const short *table;
72     int delfl;
73 } _Ctypevec;
74
75 typedef struct {
76     LCID handle;
77     unsigned page;
78 } _Cvtvec;
79
80 /* ?_Id_cnt@id@locale@std@@0HA */
81 int locale_id__Id_cnt = 0;
82
83 /* ?_Clocptr@_Locimp@locale@std@@0PAV123@A */
84 /* ?_Clocptr@_Locimp@locale@std@@0PEAV123@EA */
85 locale__Locimp *locale__Locimp__Clocptr = NULL;
86
87 static const vtable_ptr MSVCP_locale_facet_vtable[];
88
89 /* ??0id@locale@std@@QAE@I@Z */
90 /* ??0id@locale@std@@QEAA@_K@Z */
91 DEFINE_THISCALL_WRAPPER(locale_id_ctor_id, 8)
92 locale_id* __thiscall locale_id_ctor_id(locale_id *this, MSVCP_size_t id)
93 {
94     FIXME("(%p %lu) stub\n", this, id);
95     return NULL;
96 }
97
98 /* ??_Fid@locale@std@@QAEXXZ */
99 /* ??_Fid@locale@std@@QEAAXXZ */
100 DEFINE_THISCALL_WRAPPER(locale_id_ctor, 4)
101 locale_id* __thiscall locale_id_ctor(locale_id *this)
102 {
103     FIXME("(%p) stub\n", this);
104     return NULL;
105 }
106
107 /* ??Bid@locale@std@@QAEIXZ */
108 /* ??Bid@locale@std@@QEAA_KXZ */
109 DEFINE_THISCALL_WRAPPER(locale_id_operator_size_t, 4)
110 MSVCP_size_t __thiscall locale_id_operator_size_t(locale_id *this)
111 {
112     FIXME("(%p) stub\n", this);
113     return 0;
114 }
115
116 /* ?_Id_cnt_func@id@locale@std@@CAAAHXZ */
117 /* ?_Id_cnt_func@id@locale@std@@CAAEAHXZ */
118 int* __cdecl locale_id__Id_cnt_func(void)
119 {
120     FIXME("stub\n");
121     return NULL;
122 }
123
124 /* ??_Ffacet@locale@std@@QAEXXZ */
125 /* ??_Ffacet@locale@std@@QEAAXXZ */
126 DEFINE_THISCALL_WRAPPER(locale_facet_ctor, 4)
127 locale_facet* __thiscall locale_facet_ctor(locale_facet *this)
128 {
129     FIXME("(%p) stub\n", this);
130     this->vtable = MSVCP_locale_facet_vtable;
131     return NULL;
132 }
133
134 /* ??0facet@locale@std@@IAE@I@Z */
135 /* ??0facet@locale@std@@IEAA@_K@Z */
136 DEFINE_THISCALL_WRAPPER(locale_facet_ctor_refs, 8)
137 locale_facet* __thiscall locale_facet_ctor_refs(locale_facet *this, MSVCP_size_t refs)
138 {
139     FIXME("(%p %lu) stub\n", this, refs);
140     return NULL;
141 }
142
143 /* ??1facet@locale@std@@UAE@XZ */
144 /* ??1facet@locale@std@@UEAA@XZ */
145 DEFINE_THISCALL_WRAPPER(locale_facet_dtor, 4)
146 void __thiscall locale_facet_dtor(locale_facet *this)
147 {
148     FIXME("(%p) stub\n", this);
149 }
150
151 DEFINE_THISCALL_WRAPPER(MSVCP_locale_facet_vector_dtor, 8)
152 locale_facet* __thiscall MSVCP_locale_facet_vector_dtor(locale_facet *this, unsigned int flags)
153 {
154     TRACE("(%p %x) stub\n", this, flags);
155     if(flags & 2) {
156         /* we have an array, with the number of elements stored before the first object */
157         int i, *ptr = (int *)this-1;
158
159         for(i=*ptr-1; i>=0; i--)
160             locale_facet_dtor(this+i);
161         MSVCRT_operator_delete(ptr);
162     } else {
163         locale_facet_dtor(this);
164         if(flags & 1)
165             MSVCRT_operator_delete(this);
166     }
167
168     return this;
169 }
170
171 /* ?_Incref@facet@locale@std@@QAEXXZ */
172 /* ?_Incref@facet@locale@std@@QEAAXXZ */
173 DEFINE_THISCALL_WRAPPER(locale_facet__Incref, 4)
174 void __thiscall locale_facet__Incref(locale_facet *this)
175 {
176     FIXME("(%p) stub\n", this);
177 }
178
179 /* ?_Decref@facet@locale@std@@QAEPAV123@XZ */
180 /* ?_Decref@facet@locale@std@@QEAAPEAV123@XZ */
181 DEFINE_THISCALL_WRAPPER(locale_facet__Decref, 4)
182 locale_facet* __thiscall locale_facet__Decref(locale_facet *this)
183 {
184     FIXME("(%p) stub\n", this);
185     return NULL;
186 }
187
188 /* ?_Getcat@facet@locale@std@@SAIPAPBV123@PBV23@@Z */
189 /* ?_Getcat@facet@locale@std@@SA_KPEAPEBV123@PEBV23@@Z */
190 MSVCP_size_t __cdecl locale_facet__Getcat(const locale_facet **facet, const locale *loc)
191 {
192     FIXME("(%p %p) stub\n", facet, loc);
193     return 0;
194 }
195
196 static const vtable_ptr MSVCP_locale_facet_vtable[] = {
197     (vtable_ptr)THISCALL_NAME(MSVCP_locale_facet_vector_dtor)
198 };
199
200 /* ??_F_Locimp@locale@std@@QAEXXZ */
201 /* ??_F_Locimp@locale@std@@QEAAXXZ */
202 DEFINE_THISCALL_WRAPPER(locale__Locimp_ctor, 4)
203 locale__Locimp* __thiscall locale__Locimp_ctor(locale__Locimp *this)
204 {
205     FIXME("(%p) stub\n", this);
206     return NULL;
207 }
208
209 /* ??0_Locimp@locale@std@@AAE@_N@Z */
210 /* ??0_Locimp@locale@std@@AEAA@_N@Z */
211 DEFINE_THISCALL_WRAPPER(locale__Locimp_ctor_transparent, 8)
212 locale__Locimp* __thiscall locale__Locimp_ctor_transparent(locale__Locimp *this, MSVCP_bool transparent)
213 {
214     FIXME("(%p %d) stub\n", this, transparent);
215     return NULL;
216 }
217
218 /* ??0_Locimp@locale@std@@AAE@ABV012@@Z */
219 /* ??0_Locimp@locale@std@@AEAA@AEBV012@@Z */
220 /* ?_Locimp_ctor@_Locimp@locale@std@@CAXPAV123@ABV123@@Z */
221 /* ?_Locimp_ctor@_Locimp@locale@std@@CAXPEAV123@AEBV123@@Z */
222 DEFINE_THISCALL_WRAPPER(locale__Locimp_copy_ctor, 8)
223 locale__Locimp* __thiscall locale__Locimp_copy_ctor(locale__Locimp *this, const locale__Locimp *copy)
224 {
225     FIXME("(%p %p) stub\n", this, copy);
226     return NULL;
227 }
228
229 /* ??1_Locimp@locale@std@@MAE@XZ */
230 /* ??1_Locimp@locale@std@@MEAA@XZ */
231 /* ?_Locimp_dtor@_Locimp@locale@std@@CAXPAV123@@Z */
232 /* ?_Locimp_dtor@_Locimp@locale@std@@CAXPEAV123@@Z */
233 DEFINE_THISCALL_WRAPPER(locale__Locimp_dtor, 4)
234 void __thiscall locale__Locimp_dtor(locale__Locimp *this)
235 {
236     FIXME("(%p) stub\n", this);
237 }
238
239 DEFINE_THISCALL_WRAPPER(MSVCP_locale__Locimp_vector_dtor, 8)
240 locale__Locimp* __thiscall MSVCP_locale__Locimp_vector_dtor(locale__Locimp *this, unsigned int flags)
241 {
242     TRACE("(%p %x) stub\n", this, flags);
243     if(flags & 2) {
244         /* we have an array, with the number of elements stored before the first object */
245         int i, *ptr = (int *)this-1;
246
247         for(i=*ptr-1; i>=0; i--)
248             locale__Locimp_dtor(this+i);
249         MSVCRT_operator_delete(ptr);
250     } else {
251         locale__Locimp_dtor(this);
252         if(flags & 1)
253             MSVCRT_operator_delete(this);
254     }
255
256     return this;
257 }
258
259 /* ?_Locimp_Addfac@_Locimp@locale@std@@CAXPAV123@PAVfacet@23@I@Z */
260 /* ?_Locimp_Addfac@_Locimp@locale@std@@CAXPEAV123@PEAVfacet@23@_K@Z */
261 void __cdecl locale__Locimp__Locimp_Addfac(locale__Locimp *locimp, locale_facet *facet, MSVCP_size_t id)
262 {
263     FIXME("(%p %p %lu) stub\n", locimp, facet, id);
264 }
265
266 /* ?_Addfac@_Locimp@locale@std@@AAEXPAVfacet@23@I@Z */
267 /* ?_Addfac@_Locimp@locale@std@@AEAAXPEAVfacet@23@_K@Z */
268 DEFINE_THISCALL_WRAPPER(locale__Locimp__Addfac, 12)
269 void __thiscall locale__Locimp__Addfac(locale__Locimp *this, locale_facet *facet, MSVCP_size_t id)
270 {
271     FIXME("(%p %p %lu) stub\n", this, facet, id);
272 }
273
274 /* ?_Clocptr_func@_Locimp@locale@std@@CAAAPAV123@XZ */
275 /* ?_Clocptr_func@_Locimp@locale@std@@CAAEAPEAV123@XZ */
276 locale__Locimp** __cdecl locale__Locimp__Clocptr_func(void)
277 {
278     FIXME("stub\n");
279     return NULL;
280 }
281
282 /* ?_Makeloc@_Locimp@locale@std@@CAPAV123@ABV_Locinfo@3@HPAV123@PBV23@@Z */
283 /* ?_Makeloc@_Locimp@locale@std@@CAPEAV123@AEBV_Locinfo@3@HPEAV123@PEBV23@@Z */
284 locale__Locimp* __cdecl locale__Locimp__Makeloc(const _Locinfo *locinfo, category cat, locale__Locimp *locimp, const locale *loc)
285 {
286     FIXME("(%p %d %p %p) stub\n", locinfo, cat, locimp, loc);
287     return NULL;
288 }
289
290 /* ?_Makeushloc@_Locimp@locale@std@@CAXABV_Locinfo@3@HPAV123@PBV23@@Z */
291 /* ?_Makeushloc@_Locimp@locale@std@@CAXAEBV_Locinfo@3@HPEAV123@PEBV23@@Z */
292 void __cdecl locale__Locimp__Makeushloc(const _Locinfo *locinfo, category cat, locale__Locimp *locimp, const locale *loc)
293 {
294     FIXME("(%p %d %p %p) stub\n", locinfo, cat, locimp, loc);
295 }
296
297 /* ?_Makewloc@_Locimp@locale@std@@CAXABV_Locinfo@3@HPAV123@PBV23@@Z */
298 /* ?_Makewloc@_Locimp@locale@std@@CAXAEBV_Locinfo@3@HPEAV123@PEBV23@@Z */
299 void __cdecl locale__Locimp__Makewloc(const _Locinfo *locinfo, category cat, locale__Locimp *locimp, const locale *loc)
300 {
301     FIXME("(%p %d %p %p) stub\n", locinfo, cat, locimp, loc);
302 }
303
304 /* ?_Makexloc@_Locimp@locale@std@@CAXABV_Locinfo@3@HPAV123@PBV23@@Z */
305 /* ?_Makexloc@_Locimp@locale@std@@CAXAEBV_Locinfo@3@HPEAV123@PEBV23@@Z */
306 void __cdecl locale__Locimp__Makexloc(const _Locinfo *locinfo, category cat, locale__Locimp *locimp, const locale *loc)
307 {
308     FIXME("(%p %d %p %p) stub\n", locinfo, cat, locimp, loc);
309 }
310
311 /* ??_7_Locimp@locale@std@@6B@ */
312 const vtable_ptr MSVCP_locale__Locimp_vtable[] = {
313     (vtable_ptr)THISCALL_NAME(MSVCP_locale__Locimp_vector_dtor)
314 };
315
316 /* ??0locale@std@@AAE@PAV_Locimp@01@@Z */
317 /* ??0locale@std@@AEAA@PEAV_Locimp@01@@Z */
318 DEFINE_THISCALL_WRAPPER(locale_ctor_locimp, 8)
319 locale* __thiscall locale_ctor_locimp(locale *this, locale__Locimp *locimp)
320 {
321     FIXME("(%p %p) stub\n", this, locimp);
322     return NULL;
323 }
324
325 /* ??0locale@std@@QAE@ABV01@0H@Z */
326 /* ??0locale@std@@QEAA@AEBV01@0H@Z */
327 DEFINE_THISCALL_WRAPPER(locale_ctor_locale_locale, 16)
328 locale* __thiscall locale_ctor_locale_locale(locale *this, const locale *loc, const locale *other, category cat)
329 {
330     FIXME("(%p %p %p %d) stub\n", this, loc, other, cat);
331     return NULL;
332 }
333
334 /* ??0locale@std@@QAE@ABV01@@Z */
335 /* ??0locale@std@@QEAA@AEBV01@@Z */
336 DEFINE_THISCALL_WRAPPER(locale_copy_ctor, 8)
337 locale* __thiscall locale_copy_ctor(locale *this, const locale *copy)
338 {
339     FIXME("(%p %p) stub\n", this, copy);
340     return NULL;
341 }
342
343 /* ??0locale@std@@QAE@ABV01@PBDH@Z */
344 /* ??0locale@std@@QEAA@AEBV01@PEBDH@Z */
345 DEFINE_THISCALL_WRAPPER(locale_ctor_locale_cstr, 16)
346 locale* __thiscall locale_ctor_locale_cstr(locale *this, const locale *loc, const char *locname, category cat)
347 {
348     FIXME("(%p %p %s %d) stub\n", this, loc, locname, cat);
349     return NULL;
350 }
351
352 /* ??0locale@std@@QAE@PBDH@Z */
353 /* ??0locale@std@@QEAA@PEBDH@Z */
354 DEFINE_THISCALL_WRAPPER(locale_ctor_cstr, 12)
355 locale* __thiscall locale_ctor_cstr(locale *this, const char *locname, category cat)
356 {
357     FIXME("(%p %s %d) stub\n", this, locname, cat);
358     return NULL;
359 }
360
361 /* ??0locale@std@@QAE@W4_Uninitialized@1@@Z */
362 /* ??0locale@std@@QEAA@W4_Uninitialized@1@@Z */
363 DEFINE_THISCALL_WRAPPER(locale_ctor_uninitialized, 8)
364 locale* __thiscall locale_ctor_uninitialized(locale *this, int uninitialized)
365 {
366     FIXME("(%p %d) stub\n", this, uninitialized);
367     return NULL;
368 }
369
370 /* ??0locale@std@@QAE@XZ */
371 /* ??0locale@std@@QEAA@XZ */
372 DEFINE_THISCALL_WRAPPER(locale_ctor, 4)
373 locale* __thiscall locale_ctor(locale *this)
374 {
375     FIXME("(%p) stub\n", this);
376     return NULL;
377 }
378
379 /* ??1locale@std@@QAE@XZ */
380 /* ??1locale@std@@QEAA@XZ */
381 DEFINE_THISCALL_WRAPPER(locale_dtor, 4)
382 void __thiscall locale_dtor(locale *this)
383 {
384     FIXME("(%p) stub\n", this);
385 }
386
387 DEFINE_THISCALL_WRAPPER(MSVCP_locale_vector_dtor, 8)
388 locale* __thiscall MSVCP_locale_vector_dtor(locale *this, unsigned int flags)
389 {
390     TRACE("(%p %x) stub\n", this, flags);
391     if(flags & 2) {
392         /* we have an array, with the number of elements stored before the first object */
393         int i, *ptr = (int *)this-1;
394
395         for(i=*ptr-1; i>=0; i--)
396             locale_dtor(this+i);
397         MSVCRT_operator_delete(ptr);
398     } else {
399         locale_dtor(this);
400         if(flags & 1)
401             MSVCRT_operator_delete(this);
402     }
403
404     return this;
405 }
406
407 /* ??4locale@std@@QAEAAV01@ABV01@@Z */
408 /* ??4locale@std@@QEAAAEAV01@AEBV01@@Z */
409 DEFINE_THISCALL_WRAPPER(locale_operator_assign, 8)
410 locale* __thiscall locale_operator_assign(locale *this, const locale *loc)
411 {
412     FIXME("(%p %p) stub\n", this, loc);
413     return NULL;
414 }
415
416 /* ??8locale@std@@QBE_NABV01@@Z */
417 /* ??8locale@std@@QEBA_NAEBV01@@Z */
418 DEFINE_THISCALL_WRAPPER(locale_operator_equal, 8)
419 MSVCP_bool __thiscall locale_operator_equal(const locale *this, const locale *loc)
420 {
421     FIXME("(%p %p) stub\n", this, loc);
422     return 0;
423 }
424
425 /* ??9locale@std@@QBE_NABV01@@Z */
426 /* ??9locale@std@@QEBA_NAEBV01@@Z */
427 DEFINE_THISCALL_WRAPPER(locale_operator_not_equal, 8)
428 MSVCP_bool __thiscall locale_operator_not_equal(const locale *this, locale const *loc)
429 {
430     FIXME("(%p %p) stub\n", this, loc);
431     return 0;
432 }
433
434 /* ?_Addfac@locale@std@@QAEAAV12@PAVfacet@12@II@Z */
435 /* ?_Addfac@locale@std@@QEAAAEAV12@PEAVfacet@12@_K1@Z */
436 DEFINE_THISCALL_WRAPPER(locale__Addfac, 16)
437 locale* __thiscall locale__Addfac(locale *this, locale_facet *facet, MSVCP_size_t id, MSVCP_size_t catmask)
438 {
439     FIXME("(%p %p %lu %lu) stub\n", this, facet, id, catmask);
440     return NULL;
441 }
442
443 /* ?_Getfacet@locale@std@@QBEPBVfacet@12@I@Z */
444 /* ?_Getfacet@locale@std@@QEBAPEBVfacet@12@_K@Z */
445 DEFINE_THISCALL_WRAPPER(locale__Getfacet, 8)
446 const locale_facet* __thiscall locale__Getfacet(const locale *this, MSVCP_size_t id)
447 {
448     FIXME("(%p %lu) stub\n", this, id);
449     return NULL;
450 }
451
452 /* ?_Init@locale@std@@CAPAV_Locimp@12@XZ */
453 /* ?_Init@locale@std@@CAPEAV_Locimp@12@XZ */
454 locale__Locimp* __cdecl locale__Init(void)
455 {
456     FIXME("stub\n");
457     return NULL;
458 }
459
460 /* ?_Getgloballocale@locale@std@@CAPAV_Locimp@12@XZ */
461 /* ?_Getgloballocale@locale@std@@CAPEAV_Locimp@12@XZ */
462 locale__Locimp* __cdecl locale__Getgloballocale(void)
463 {
464     FIXME("stub\n");
465     return NULL;
466 }
467
468 /* ?_Setgloballocale@locale@std@@CAXPAX@Z */
469 /* ?_Setgloballocale@locale@std@@CAXPEAX@Z */
470 void __cdecl locale__Setgloballocale(void *locimp)
471 {
472     FIXME("(%p) stub\n", locimp);
473 }
474
475 /* ?classic@locale@std@@SAABV12@XZ */
476 /* ?classic@locale@std@@SAAEBV12@XZ */
477 const locale* __cdecl locale_classic(void)
478 {
479     FIXME("stub\n");
480     return NULL;
481 }
482
483 /* ?name@locale@std@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
484 /* ?name@locale@std@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
485 DEFINE_THISCALL_WRAPPER_RETPTR(locale_name, 4)
486 basic_string_char __thiscall locale_name(const locale *this)
487 {
488     basic_string_char ret = { 0 }; /* FIXME */
489     FIXME( "(%p) stub\n", this);
490     return ret;
491 }
492
493 /* ??0_Timevec@std@@QAE@ABV01@@Z */
494 /* ??0_Timevec@std@@QEAA@AEBV01@@Z */
495 DEFINE_THISCALL_WRAPPER(_Timevec_copy_ctor, 8)
496 _Timevec* __thiscall _Timevec_copy_ctor(_Timevec *this, const _Timevec *copy)
497 {
498     FIXME("(%p %p) stub\n", this, copy);
499     return NULL;
500 }
501
502 /* ??0_Timevec@std@@QAE@PAX@Z */
503 /* ??0_Timevec@std@@QEAA@PEAX@Z */
504 DEFINE_THISCALL_WRAPPER(_Timevec_ctor_timeptr, 8)
505 _Timevec* __thiscall _Timevec_ctor_timeptr(_Timevec *this, void *timeptr)
506 {
507     FIXME("(%p %p) stub\n", this, timeptr);
508     return NULL;
509 }
510
511 /* ??_F_Timevec@std@@QAEXXZ */
512 /* ??_F_Timevec@std@@QEAAXXZ */
513 DEFINE_THISCALL_WRAPPER(_Timevec_ctor, 4)
514 _Timevec* __thiscall _Timevec_ctor(_Timevec *this)
515 {
516     FIXME("(%p) stub\n", this);
517     return NULL;
518 }
519
520 /* ??1_Timevec@std@@QAE@XZ */
521 /* ??1_Timevec@std@@QEAA@XZ */
522 DEFINE_THISCALL_WRAPPER(_Timevec_dtor, 4)
523 void __thiscall _Timevec_dtor(_Timevec *this)
524 {
525     FIXME("(%p) stub\n", this);
526 }
527
528 /* ??4_Timevec@std@@QAEAAV01@ABV01@@Z */
529 /* ??4_Timevec@std@@QEAAAEAV01@AEBV01@@Z */
530 DEFINE_THISCALL_WRAPPER(_Timevec_op_assign, 8)
531 _Timevec* __thiscall _Timevec_op_assign(_Timevec *this, _Timevec *right)
532 {
533     FIXME("(%p %p) stub\n", this, right);
534     return NULL;
535 }
536
537 /* ?_Getptr@_Timevec@std@@QBEPAXXZ */
538 /* ?_Getptr@_Timevec@std@@QEBAPEAXXZ */
539 DEFINE_THISCALL_WRAPPER(_Timevec__Getptr, 4)
540 void* __thiscall _Timevec__Getptr(_Timevec *this)
541 {
542     FIXME("(%p) stub\n", this);
543     return NULL;
544 }
545
546 /* ?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z */
547 /* ?_Locinfo_ctor@_Locinfo@std@@SAXPEAV12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z */
548 _Locinfo* __cdecl _Locinfo__Locinfo_ctor_bstr(_Locinfo *locinfo, const basic_string_char *locstr)
549 {
550     FIXME("(%p %p) stub\n", locinfo, locstr);
551     return NULL;
552 }
553
554 /* ??0_Locinfo@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z */
555 /* ??0_Locinfo@std@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z */
556 DEFINE_THISCALL_WRAPPER(_Locinfo_ctor_bstr, 8)
557 _Locinfo* __thiscall _Locinfo_ctor_bstr(_Locinfo *this, const basic_string_char *locstr)
558 {
559     FIXME("(%p %p) stub\n", this, locstr);
560     return NULL;
561 }
562
563 /* ?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@HPBD@Z */
564 /* ?_Locinfo_ctor@_Locinfo@std@@SAXPEAV12@HPEBD@Z */
565 _Locinfo* __cdecl _Locinfo__Locinfo_ctor_cat_cstr(_Locinfo *locinfo, int category, const char *locstr)
566 {
567     FIXME("(%p %d %s) stub\n", locinfo, category, locstr);
568     return NULL;
569 }
570
571 /* ??0_Locinfo@std@@QAE@HPBD@Z */
572 /* ??0_Locinfo@std@@QEAA@HPEBD@Z */
573 DEFINE_THISCALL_WRAPPER(_Locinfo_ctor_cat_cstr, 12)
574 _Locinfo* __thiscall _Locinfo_ctor_cat_cstr(_Locinfo *this, int category, const char *locstr)
575 {
576     FIXME("(%p %d %s) stub\n", this, category, locstr);
577     return NULL;
578 }
579
580 /* ?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@PBD@Z */
581 /* ?_Locinfo_ctor@_Locinfo@std@@SAXPEAV12@PEBD@Z */
582 _Locinfo* __cdecl _Locinfo__Locinfo_ctor_cstr(_Locinfo *locinfo, const char *locstr)
583 {
584     FIXME("(%p %s) stub\n", locinfo, locstr);
585     return NULL;
586 }
587
588 /* ??0_Locinfo@std@@QAE@PBD@Z */
589 /* ??0_Locinfo@std@@QEAA@PEBD@Z */
590 DEFINE_THISCALL_WRAPPER(_Locinfo_ctor_cstr, 8)
591 _Locinfo* __thiscall _Locinfo_ctor_cstr(_Locinfo *this, const char *locstr)
592 {
593     FIXME("(%p %s) stub\n", this, locstr);
594     return NULL;
595 }
596
597 /* ?_Locinfo_dtor@_Locinfo@std@@SAXPAV12@@Z */
598 /* ?_Locinfo_dtor@_Locinfo@std@@SAXPEAV12@@Z */
599 _Locinfo* __cdecl _Locinfo__Locinfo_dtor(_Locinfo *locinfo)
600 {
601     FIXME("(%p) stub\n", locinfo);
602     return NULL;
603 }
604
605 /* ??_F_Locinfo@std@@QAEXXZ */
606 /* ??_F_Locinfo@std@@QEAAXXZ */
607 DEFINE_THISCALL_WRAPPER(_Locinfo_ctor, 4)
608 _Locinfo* __thiscall _Locinfo_ctor(_Locinfo *this)
609 {
610     FIXME("(%p) stub\n", this);
611     return NULL;
612 }
613
614 /* ??1_Locinfo@std@@QAE@XZ */
615 /* ??1_Locinfo@std@@QEAA@XZ */
616 DEFINE_THISCALL_WRAPPER(_Locinfo_dtor, 4)
617 void __thiscall _Locinfo_dtor(_Locinfo *this)
618 {
619     FIXME("(%p) stub\n", this);
620 }
621
622 /* ?_Locinfo_Addcats@_Locinfo@std@@SAAAV12@PAV12@HPBD@Z */
623 /* ?_Locinfo_Addcats@_Locinfo@std@@SAAEAV12@PEAV12@HPEBD@Z */
624 _Locinfo* __cdecl _Locinfo__Locinfo_Addcats(_Locinfo *locinfo, int category, const char *locstr)
625 {
626     FIXME("%p %d %s) stub\n", locinfo, category, locstr);
627     return NULL;
628 }
629
630 /* ?_Addcats@_Locinfo@std@@QAEAAV12@HPBD@Z */
631 /* ?_Addcats@_Locinfo@std@@QEAAAEAV12@HPEBD@Z */
632 DEFINE_THISCALL_WRAPPER(_Locinfo__Addcats, 12)
633 _Locinfo* __thiscall _Locinfo__Addcats(_Locinfo *this, int category, const char *locstr)
634 {
635     FIXME("(%p %d %s) stub\n", this, category, locstr);
636     return NULL;
637 }
638
639 /* ?_Getcoll@_Locinfo@std@@QBE?AU_Collvec@@XZ */
640 /* ?_Getcoll@_Locinfo@std@@QEBA?AU_Collvec@@XZ */
641 DEFINE_THISCALL_WRAPPER(_Locinfo__Getcoll, 4)
642 _Collvec __thiscall _Locinfo__Getcoll(const _Locinfo *this)
643 {
644     _Collvec ret = { 0 }; /* FIXME */
645     FIXME("(%p) stub\n", this);
646     return ret;
647 }
648
649 /* ?_Getctype@_Locinfo@std@@QBE?AU_Ctypevec@@XZ */
650 /* ?_Getctype@_Locinfo@std@@QEBA?AU_Ctypevec@@XZ */
651 DEFINE_THISCALL_WRAPPER_RETPTR(_Locinfo__Getctype, 4)
652 _Ctypevec __thiscall _Locinfo__Getctype(const _Locinfo *this)
653 {
654     _Ctypevec ret = { 0 }; /* FIXME */
655     FIXME("(%p) stub\n", this);
656     return ret;
657 }
658
659 /* ?_Getcvt@_Locinfo@std@@QBE?AU_Cvtvec@@XZ */
660 /* ?_Getcvt@_Locinfo@std@@QEBA?AU_Cvtvec@@XZ */
661 DEFINE_THISCALL_WRAPPER(_Locinfo__Getcvt, 4)
662 _Cvtvec __thiscall _Locinfo__Getcvt(const _Locinfo *this)
663 {
664     _Cvtvec ret = { 0 }; /* FIXME */
665     FIXME("(%p) stub\n", this);
666     return ret;
667 }
668
669 /* ?_Getdateorder@_Locinfo@std@@QBEHXZ */
670 /* ?_Getdateorder@_Locinfo@std@@QEBAHXZ */
671 DEFINE_THISCALL_WRAPPER(_Locinfo__Getdateorder, 4)
672 int __thiscall _Locinfo__Getdateorder(const _Locinfo *this)
673 {
674     FIXME("(%p) stub\n", this);
675     return 0;
676 }
677
678 /* ?_Getdays@_Locinfo@std@@QBEPBDXZ */
679 /* ?_Getdays@_Locinfo@std@@QEBAPEBDXZ */
680 DEFINE_THISCALL_WRAPPER(_Locinfo__Getdays, 4)
681 const char* __thiscall _Locinfo__Getdays(const _Locinfo *this)
682 {
683     FIXME("(%p) stub\n", this);
684     return NULL;
685 }
686
687 /* ?_Getmonths@_Locinfo@std@@QBEPBDXZ */
688 /* ?_Getmonths@_Locinfo@std@@QEBAPEBDXZ */
689 DEFINE_THISCALL_WRAPPER(_Locinfo__Getmonths, 4)
690 const char* __thiscall _Locinfo__Getmonths(const _Locinfo *this)
691 {
692     FIXME("(%p) stub\n", this);
693     return NULL;
694 }
695
696 /* ?_Getfalse@_Locinfo@std@@QBEPBDXZ */
697 /* ?_Getfalse@_Locinfo@std@@QEBAPEBDXZ */
698 DEFINE_THISCALL_WRAPPER(_Locinfo__Getfalse, 4)
699 const char* __thiscall _Locinfo__Getfalse(const _Locinfo *this)
700 {
701     FIXME("(%p) stub\n", this);
702     return NULL;
703 }
704
705 /* ?_Gettrue@_Locinfo@std@@QBEPBDXZ */
706 /* ?_Gettrue@_Locinfo@std@@QEBAPEBDXZ */
707 DEFINE_THISCALL_WRAPPER(_Locinfo__Gettrue, 4)
708 const char* __thiscall _Locinfo__Gettrue(const _Locinfo *this)
709 {
710     FIXME("(%p) stub\n", this);
711     return NULL;
712 }
713
714 /* ?_Getlconv@_Locinfo@std@@QBEPBUlconv@@XZ */
715 /* ?_Getlconv@_Locinfo@std@@QEBAPEBUlconv@@XZ */
716 DEFINE_THISCALL_WRAPPER(_Locinfo__Getlconv, 4)
717 const struct lconv* __thiscall _Locinfo__Getlconv(const _Locinfo *this)
718 {
719     FIXME("(%p) stub\n", this);
720     return NULL;
721 }
722
723 /* ?_Getname@_Locinfo@std@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
724 /* ?_Getname@_Locinfo@std@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
725 DEFINE_THISCALL_WRAPPER_RETPTR(_Locinfo__Getname, 4)
726 basic_string_char __thiscall _Locinfo__Getname(const _Locinfo *this)
727 {
728     basic_string_char ret = { 0 }; /* FIXME */
729     FIXME("(%p) stub\n", this);
730     return ret;
731 }
732
733 /* ?_Gettnames@_Locinfo@std@@QBE?AV_Timevec@2@XZ */
734 /* ?_Gettnames@_Locinfo@std@@QEBA?AV_Timevec@2@XZ */
735 DEFINE_THISCALL_WRAPPER(_Locinfo__Gettnames, 4)
736 _Timevec __thiscall _Locinfo__Gettnames(const _Locinfo *this)
737 {
738     _Timevec ret = { 0 }; /* FIXME */
739     FIXME("(%p) stub\n", this);
740     return ret;
741 }