usp10: ScriptShape needs a number of SCRIPT_VISATTR equal to glyphs not chars.
[wine.git] / dlls / msvcp90 / locale.c
blob6ebfb516db069d1acf95083bf4d5f106140307d5
1 /*
2 * Copyright 2010 Piotr Caban for CodeWeavers
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.
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.
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
19 #include "config.h"
21 #include <stdarg.h>
23 #include "msvcp90.h"
24 #include "locale.h"
26 #include "windef.h"
27 #include "winbase.h"
28 #include "wine/debug.h"
29 WINE_DEFAULT_DEBUG_CHANNEL(msvcp90);
31 typedef int category;
33 typedef struct _locale_id {
34 MSVCP_size_t id;
35 } locale_id;
37 typedef struct _locale_facet {
38 const vtable_ptr *vtable;
39 MSVCP_size_t refs;
40 } locale_facet;
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;
51 typedef struct {
52 void *timeptr;
53 } _Timevec;
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;
63 typedef struct {
64 LCID handle;
65 unsigned page;
66 } _Collvec;
68 typedef struct {
69 LCID handle;
70 unsigned page;
71 const short *table;
72 int delfl;
73 } _Ctypevec;
75 typedef struct {
76 LCID handle;
77 unsigned page;
78 } _Cvtvec;
80 /* ?_Id_cnt@id@locale@std@@0HA */
81 int locale_id__Id_cnt = 0;
83 /* ?_Clocptr@_Locimp@locale@std@@0PAV123@A */
84 /* ?_Clocptr@_Locimp@locale@std@@0PEAV123@EA */
85 locale__Locimp *locale__Locimp__Clocptr = NULL;
87 /* ??1facet@locale@std@@UAE@XZ */
88 /* ??1facet@locale@std@@UEAA@XZ */
89 DEFINE_THISCALL_WRAPPER(locale_facet_dtor, 4)
90 void __thiscall locale_facet_dtor(locale_facet *this)
92 TRACE("(%p)\n", this);
95 DEFINE_THISCALL_WRAPPER(MSVCP_locale_facet_vector_dtor, 8)
96 locale_facet* __thiscall MSVCP_locale_facet_vector_dtor(locale_facet *this, unsigned int flags)
98 TRACE("(%p %x)\n", this, flags);
99 if(flags & 2) {
100 /* we have an array, with the number of elements stored before the first object */
101 int i, *ptr = (int *)this-1;
103 for(i=*ptr-1; i>=0; i--)
104 locale_facet_dtor(this+i);
105 MSVCRT_operator_delete(ptr);
106 } else {
107 locale_facet_dtor(this);
108 if(flags & 1)
109 MSVCRT_operator_delete(this);
112 return this;
115 static const vtable_ptr MSVCP_locale_facet_vtable[] = {
116 (vtable_ptr)THISCALL_NAME(MSVCP_locale_facet_vector_dtor)
119 /* ??0id@locale@std@@QAE@I@Z */
120 /* ??0id@locale@std@@QEAA@_K@Z */
121 DEFINE_THISCALL_WRAPPER(locale_id_ctor_id, 8)
122 locale_id* __thiscall locale_id_ctor_id(locale_id *this, MSVCP_size_t id)
124 TRACE("(%p %lu)\n", this, id);
126 this->id = id;
127 return this;
130 /* ??_Fid@locale@std@@QAEXXZ */
131 /* ??_Fid@locale@std@@QEAAXXZ */
132 DEFINE_THISCALL_WRAPPER(locale_id_ctor, 4)
133 locale_id* __thiscall locale_id_ctor(locale_id *this)
135 TRACE("(%p)\n", this);
137 this->id = 0;
138 return this;
141 /* ??Bid@locale@std@@QAEIXZ */
142 /* ??Bid@locale@std@@QEAA_KXZ */
143 DEFINE_THISCALL_WRAPPER(locale_id_operator_size_t, 4)
144 MSVCP_size_t __thiscall locale_id_operator_size_t(locale_id *this)
146 _Lockit lock;
148 TRACE("(%p)\n", this);
150 if(!this->id) {
151 _Lockit_ctor_locktype(&lock, _LOCK_LOCALE);
152 this->id = ++locale_id__Id_cnt;
153 _Lockit_dtor(&lock);
156 return this->id;
159 /* ?_Id_cnt_func@id@locale@std@@CAAAHXZ */
160 /* ?_Id_cnt_func@id@locale@std@@CAAEAHXZ */
161 int* __cdecl locale_id__Id_cnt_func(void)
163 TRACE("\n");
164 return &locale_id__Id_cnt;
167 /* ??_Ffacet@locale@std@@QAEXXZ */
168 /* ??_Ffacet@locale@std@@QEAAXXZ */
169 DEFINE_THISCALL_WRAPPER(locale_facet_ctor, 4)
170 locale_facet* __thiscall locale_facet_ctor(locale_facet *this)
172 TRACE("(%p)\n", this);
173 this->vtable = MSVCP_locale_facet_vtable;
174 this->refs = 0;
175 return this;
178 /* ??0facet@locale@std@@IAE@I@Z */
179 /* ??0facet@locale@std@@IEAA@_K@Z */
180 DEFINE_THISCALL_WRAPPER(locale_facet_ctor_refs, 8)
181 locale_facet* __thiscall locale_facet_ctor_refs(locale_facet *this, MSVCP_size_t refs)
183 TRACE("(%p %lu)\n", this, refs);
184 this->vtable = MSVCP_locale_facet_vtable;
185 this->refs = refs;
186 return this;
189 /* ?_Incref@facet@locale@std@@QAEXXZ */
190 /* ?_Incref@facet@locale@std@@QEAAXXZ */
191 DEFINE_THISCALL_WRAPPER(locale_facet__Incref, 4)
192 void __thiscall locale_facet__Incref(locale_facet *this)
194 _Lockit lock;
196 TRACE("(%p)\n", this);
198 _Lockit_ctor_locktype(&lock, _LOCK_LOCALE);
199 this->refs++;
200 _Lockit_dtor(&lock);
203 /* ?_Decref@facet@locale@std@@QAEPAV123@XZ */
204 /* ?_Decref@facet@locale@std@@QEAAPEAV123@XZ */
205 DEFINE_THISCALL_WRAPPER(locale_facet__Decref, 4)
206 locale_facet* __thiscall locale_facet__Decref(locale_facet *this)
208 _Lockit lock;
209 locale_facet *ret;
211 TRACE("(%p)\n", this);
213 _Lockit_ctor_locktype(&lock, _LOCK_LOCALE);
214 if(this->refs)
215 this->refs--;
217 ret = this->refs ? this : NULL;
218 _Lockit_dtor(&lock);
220 return ret;
223 /* ?_Getcat@facet@locale@std@@SAIPAPBV123@PBV23@@Z */
224 /* ?_Getcat@facet@locale@std@@SA_KPEAPEBV123@PEBV23@@Z */
225 MSVCP_size_t __cdecl locale_facet__Getcat(const locale_facet **facet, const locale *loc)
227 TRACE("(%p %p)\n", facet, loc);
228 return -1;
231 /* ??_F_Locimp@locale@std@@QAEXXZ */
232 /* ??_F_Locimp@locale@std@@QEAAXXZ */
233 DEFINE_THISCALL_WRAPPER(locale__Locimp_ctor, 4)
234 locale__Locimp* __thiscall locale__Locimp_ctor(locale__Locimp *this)
236 FIXME("(%p) stub\n", this);
237 return NULL;
240 /* ??0_Locimp@locale@std@@AAE@_N@Z */
241 /* ??0_Locimp@locale@std@@AEAA@_N@Z */
242 DEFINE_THISCALL_WRAPPER(locale__Locimp_ctor_transparent, 8)
243 locale__Locimp* __thiscall locale__Locimp_ctor_transparent(locale__Locimp *this, MSVCP_bool transparent)
245 FIXME("(%p %d) stub\n", this, transparent);
246 return NULL;
249 /* ??0_Locimp@locale@std@@AAE@ABV012@@Z */
250 /* ??0_Locimp@locale@std@@AEAA@AEBV012@@Z */
251 DEFINE_THISCALL_WRAPPER(locale__Locimp_copy_ctor, 8)
252 locale__Locimp* __thiscall locale__Locimp_copy_ctor(locale__Locimp *this, const locale__Locimp *copy)
254 FIXME("(%p %p) stub\n", this, copy);
255 return NULL;
258 /* ?_Locimp_ctor@_Locimp@locale@std@@CAXPAV123@ABV123@@Z */
259 /* ?_Locimp_ctor@_Locimp@locale@std@@CAXPEAV123@AEBV123@@Z */
260 locale__Locimp* __cdecl locale__Locimp__Locimp_ctor(locale__Locimp *this, const locale__Locimp *copy)
262 FIXME("(%p %p) stub\n", this, copy);
263 return NULL;
266 /* ??1_Locimp@locale@std@@MAE@XZ */
267 /* ??1_Locimp@locale@std@@MEAA@XZ */
268 DEFINE_THISCALL_WRAPPER(locale__Locimp_dtor, 4)
269 void __thiscall locale__Locimp_dtor(locale__Locimp *this)
271 FIXME("(%p) stub\n", this);
274 /* ?_Locimp_dtor@_Locimp@locale@std@@CAXPAV123@@Z */
275 /* ?_Locimp_dtor@_Locimp@locale@std@@CAXPEAV123@@Z */
276 void __cdecl locale__Locimp__Locimp_dtor(locale__Locimp *this)
278 FIXME("(%p) stub\n", this);
281 DEFINE_THISCALL_WRAPPER(MSVCP_locale__Locimp_vector_dtor, 8)
282 locale__Locimp* __thiscall MSVCP_locale__Locimp_vector_dtor(locale__Locimp *this, unsigned int flags)
284 TRACE("(%p %x) stub\n", this, flags);
285 if(flags & 2) {
286 /* we have an array, with the number of elements stored before the first object */
287 int i, *ptr = (int *)this-1;
289 for(i=*ptr-1; i>=0; i--)
290 locale__Locimp_dtor(this+i);
291 MSVCRT_operator_delete(ptr);
292 } else {
293 locale__Locimp_dtor(this);
294 if(flags & 1)
295 MSVCRT_operator_delete(this);
298 return this;
301 /* ?_Locimp_Addfac@_Locimp@locale@std@@CAXPAV123@PAVfacet@23@I@Z */
302 /* ?_Locimp_Addfac@_Locimp@locale@std@@CAXPEAV123@PEAVfacet@23@_K@Z */
303 void __cdecl locale__Locimp__Locimp_Addfac(locale__Locimp *locimp, locale_facet *facet, MSVCP_size_t id)
305 FIXME("(%p %p %lu) stub\n", locimp, facet, id);
308 /* ?_Addfac@_Locimp@locale@std@@AAEXPAVfacet@23@I@Z */
309 /* ?_Addfac@_Locimp@locale@std@@AEAAXPEAVfacet@23@_K@Z */
310 DEFINE_THISCALL_WRAPPER(locale__Locimp__Addfac, 12)
311 void __thiscall locale__Locimp__Addfac(locale__Locimp *this, locale_facet *facet, MSVCP_size_t id)
313 FIXME("(%p %p %lu) stub\n", this, facet, id);
316 /* ?_Clocptr_func@_Locimp@locale@std@@CAAAPAV123@XZ */
317 /* ?_Clocptr_func@_Locimp@locale@std@@CAAEAPEAV123@XZ */
318 locale__Locimp** __cdecl locale__Locimp__Clocptr_func(void)
320 FIXME("stub\n");
321 return NULL;
324 /* ?_Makeloc@_Locimp@locale@std@@CAPAV123@ABV_Locinfo@3@HPAV123@PBV23@@Z */
325 /* ?_Makeloc@_Locimp@locale@std@@CAPEAV123@AEBV_Locinfo@3@HPEAV123@PEBV23@@Z */
326 locale__Locimp* __cdecl locale__Locimp__Makeloc(const _Locinfo *locinfo, category cat, locale__Locimp *locimp, const locale *loc)
328 FIXME("(%p %d %p %p) stub\n", locinfo, cat, locimp, loc);
329 return NULL;
332 /* ?_Makeushloc@_Locimp@locale@std@@CAXABV_Locinfo@3@HPAV123@PBV23@@Z */
333 /* ?_Makeushloc@_Locimp@locale@std@@CAXAEBV_Locinfo@3@HPEAV123@PEBV23@@Z */
334 void __cdecl locale__Locimp__Makeushloc(const _Locinfo *locinfo, category cat, locale__Locimp *locimp, const locale *loc)
336 FIXME("(%p %d %p %p) stub\n", locinfo, cat, locimp, loc);
339 /* ?_Makewloc@_Locimp@locale@std@@CAXABV_Locinfo@3@HPAV123@PBV23@@Z */
340 /* ?_Makewloc@_Locimp@locale@std@@CAXAEBV_Locinfo@3@HPEAV123@PEBV23@@Z */
341 void __cdecl locale__Locimp__Makewloc(const _Locinfo *locinfo, category cat, locale__Locimp *locimp, const locale *loc)
343 FIXME("(%p %d %p %p) stub\n", locinfo, cat, locimp, loc);
346 /* ?_Makexloc@_Locimp@locale@std@@CAXABV_Locinfo@3@HPAV123@PBV23@@Z */
347 /* ?_Makexloc@_Locimp@locale@std@@CAXAEBV_Locinfo@3@HPEAV123@PEBV23@@Z */
348 void __cdecl locale__Locimp__Makexloc(const _Locinfo *locinfo, category cat, locale__Locimp *locimp, const locale *loc)
350 FIXME("(%p %d %p %p) stub\n", locinfo, cat, locimp, loc);
353 /* ??_7_Locimp@locale@std@@6B@ */
354 const vtable_ptr MSVCP_locale__Locimp_vtable[] = {
355 (vtable_ptr)THISCALL_NAME(MSVCP_locale__Locimp_vector_dtor)
358 /* ??0locale@std@@AAE@PAV_Locimp@01@@Z */
359 /* ??0locale@std@@AEAA@PEAV_Locimp@01@@Z */
360 DEFINE_THISCALL_WRAPPER(locale_ctor_locimp, 8)
361 locale* __thiscall locale_ctor_locimp(locale *this, locale__Locimp *locimp)
363 FIXME("(%p %p) stub\n", this, locimp);
364 return NULL;
367 /* ??0locale@std@@QAE@ABV01@0H@Z */
368 /* ??0locale@std@@QEAA@AEBV01@0H@Z */
369 DEFINE_THISCALL_WRAPPER(locale_ctor_locale_locale, 16)
370 locale* __thiscall locale_ctor_locale_locale(locale *this, const locale *loc, const locale *other, category cat)
372 FIXME("(%p %p %p %d) stub\n", this, loc, other, cat);
373 return NULL;
376 /* ??0locale@std@@QAE@ABV01@@Z */
377 /* ??0locale@std@@QEAA@AEBV01@@Z */
378 DEFINE_THISCALL_WRAPPER(locale_copy_ctor, 8)
379 locale* __thiscall locale_copy_ctor(locale *this, const locale *copy)
381 FIXME("(%p %p) stub\n", this, copy);
382 return NULL;
385 /* ??0locale@std@@QAE@ABV01@PBDH@Z */
386 /* ??0locale@std@@QEAA@AEBV01@PEBDH@Z */
387 DEFINE_THISCALL_WRAPPER(locale_ctor_locale_cstr, 16)
388 locale* __thiscall locale_ctor_locale_cstr(locale *this, const locale *loc, const char *locname, category cat)
390 FIXME("(%p %p %s %d) stub\n", this, loc, locname, cat);
391 return NULL;
394 /* ??0locale@std@@QAE@PBDH@Z */
395 /* ??0locale@std@@QEAA@PEBDH@Z */
396 DEFINE_THISCALL_WRAPPER(locale_ctor_cstr, 12)
397 locale* __thiscall locale_ctor_cstr(locale *this, const char *locname, category cat)
399 FIXME("(%p %s %d) stub\n", this, locname, cat);
400 return NULL;
403 /* ??0locale@std@@QAE@W4_Uninitialized@1@@Z */
404 /* ??0locale@std@@QEAA@W4_Uninitialized@1@@Z */
405 DEFINE_THISCALL_WRAPPER(locale_ctor_uninitialized, 8)
406 locale* __thiscall locale_ctor_uninitialized(locale *this, int uninitialized)
408 FIXME("(%p %d) stub\n", this, uninitialized);
409 return NULL;
412 /* ??0locale@std@@QAE@XZ */
413 /* ??0locale@std@@QEAA@XZ */
414 DEFINE_THISCALL_WRAPPER(locale_ctor, 4)
415 locale* __thiscall locale_ctor(locale *this)
417 FIXME("(%p) stub\n", this);
418 return NULL;
421 /* ??1locale@std@@QAE@XZ */
422 /* ??1locale@std@@QEAA@XZ */
423 DEFINE_THISCALL_WRAPPER(locale_dtor, 4)
424 void __thiscall locale_dtor(locale *this)
426 FIXME("(%p) stub\n", this);
429 DEFINE_THISCALL_WRAPPER(MSVCP_locale_vector_dtor, 8)
430 locale* __thiscall MSVCP_locale_vector_dtor(locale *this, unsigned int flags)
432 TRACE("(%p %x) stub\n", this, flags);
433 if(flags & 2) {
434 /* we have an array, with the number of elements stored before the first object */
435 int i, *ptr = (int *)this-1;
437 for(i=*ptr-1; i>=0; i--)
438 locale_dtor(this+i);
439 MSVCRT_operator_delete(ptr);
440 } else {
441 locale_dtor(this);
442 if(flags & 1)
443 MSVCRT_operator_delete(this);
446 return this;
449 /* ??4locale@std@@QAEAAV01@ABV01@@Z */
450 /* ??4locale@std@@QEAAAEAV01@AEBV01@@Z */
451 DEFINE_THISCALL_WRAPPER(locale_operator_assign, 8)
452 locale* __thiscall locale_operator_assign(locale *this, const locale *loc)
454 FIXME("(%p %p) stub\n", this, loc);
455 return NULL;
458 /* ??8locale@std@@QBE_NABV01@@Z */
459 /* ??8locale@std@@QEBA_NAEBV01@@Z */
460 DEFINE_THISCALL_WRAPPER(locale_operator_equal, 8)
461 MSVCP_bool __thiscall locale_operator_equal(const locale *this, const locale *loc)
463 FIXME("(%p %p) stub\n", this, loc);
464 return 0;
467 /* ??9locale@std@@QBE_NABV01@@Z */
468 /* ??9locale@std@@QEBA_NAEBV01@@Z */
469 DEFINE_THISCALL_WRAPPER(locale_operator_not_equal, 8)
470 MSVCP_bool __thiscall locale_operator_not_equal(const locale *this, locale const *loc)
472 FIXME("(%p %p) stub\n", this, loc);
473 return 0;
476 /* ?_Addfac@locale@std@@QAEAAV12@PAVfacet@12@II@Z */
477 /* ?_Addfac@locale@std@@QEAAAEAV12@PEAVfacet@12@_K1@Z */
478 DEFINE_THISCALL_WRAPPER(locale__Addfac, 16)
479 locale* __thiscall locale__Addfac(locale *this, locale_facet *facet, MSVCP_size_t id, MSVCP_size_t catmask)
481 FIXME("(%p %p %lu %lu) stub\n", this, facet, id, catmask);
482 return NULL;
485 /* ?_Getfacet@locale@std@@QBEPBVfacet@12@I@Z */
486 /* ?_Getfacet@locale@std@@QEBAPEBVfacet@12@_K@Z */
487 DEFINE_THISCALL_WRAPPER(locale__Getfacet, 8)
488 const locale_facet* __thiscall locale__Getfacet(const locale *this, MSVCP_size_t id)
490 FIXME("(%p %lu) stub\n", this, id);
491 return NULL;
494 /* ?_Init@locale@std@@CAPAV_Locimp@12@XZ */
495 /* ?_Init@locale@std@@CAPEAV_Locimp@12@XZ */
496 locale__Locimp* __cdecl locale__Init(void)
498 FIXME("stub\n");
499 return NULL;
502 /* ?_Getgloballocale@locale@std@@CAPAV_Locimp@12@XZ */
503 /* ?_Getgloballocale@locale@std@@CAPEAV_Locimp@12@XZ */
504 locale__Locimp* __cdecl locale__Getgloballocale(void)
506 FIXME("stub\n");
507 return NULL;
510 /* ?_Setgloballocale@locale@std@@CAXPAX@Z */
511 /* ?_Setgloballocale@locale@std@@CAXPEAX@Z */
512 void __cdecl locale__Setgloballocale(void *locimp)
514 FIXME("(%p) stub\n", locimp);
517 /* ?classic@locale@std@@SAABV12@XZ */
518 /* ?classic@locale@std@@SAAEBV12@XZ */
519 const locale* __cdecl locale_classic(void)
521 FIXME("stub\n");
522 return NULL;
525 /* ?name@locale@std@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
526 /* ?name@locale@std@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
527 DEFINE_THISCALL_WRAPPER_RETPTR(locale_name, 4)
528 basic_string_char __thiscall locale_name(const locale *this)
530 basic_string_char ret = { 0 }; /* FIXME */
531 FIXME( "(%p) stub\n", this);
532 return ret;
535 /* ??0_Timevec@std@@QAE@ABV01@@Z */
536 /* ??0_Timevec@std@@QEAA@AEBV01@@Z */
537 DEFINE_THISCALL_WRAPPER(_Timevec_copy_ctor, 8)
538 _Timevec* __thiscall _Timevec_copy_ctor(_Timevec *this, const _Timevec *copy)
540 FIXME("(%p %p) stub\n", this, copy);
541 return NULL;
544 /* ??0_Timevec@std@@QAE@PAX@Z */
545 /* ??0_Timevec@std@@QEAA@PEAX@Z */
546 DEFINE_THISCALL_WRAPPER(_Timevec_ctor_timeptr, 8)
547 _Timevec* __thiscall _Timevec_ctor_timeptr(_Timevec *this, void *timeptr)
549 FIXME("(%p %p) stub\n", this, timeptr);
550 return NULL;
553 /* ??_F_Timevec@std@@QAEXXZ */
554 /* ??_F_Timevec@std@@QEAAXXZ */
555 DEFINE_THISCALL_WRAPPER(_Timevec_ctor, 4)
556 _Timevec* __thiscall _Timevec_ctor(_Timevec *this)
558 FIXME("(%p) stub\n", this);
559 return NULL;
562 /* ??1_Timevec@std@@QAE@XZ */
563 /* ??1_Timevec@std@@QEAA@XZ */
564 DEFINE_THISCALL_WRAPPER(_Timevec_dtor, 4)
565 void __thiscall _Timevec_dtor(_Timevec *this)
567 FIXME("(%p) stub\n", this);
570 /* ??4_Timevec@std@@QAEAAV01@ABV01@@Z */
571 /* ??4_Timevec@std@@QEAAAEAV01@AEBV01@@Z */
572 DEFINE_THISCALL_WRAPPER(_Timevec_op_assign, 8)
573 _Timevec* __thiscall _Timevec_op_assign(_Timevec *this, _Timevec *right)
575 FIXME("(%p %p) stub\n", this, right);
576 return NULL;
579 /* ?_Getptr@_Timevec@std@@QBEPAXXZ */
580 /* ?_Getptr@_Timevec@std@@QEBAPEAXXZ */
581 DEFINE_THISCALL_WRAPPER(_Timevec__Getptr, 4)
582 void* __thiscall _Timevec__Getptr(_Timevec *this)
584 FIXME("(%p) stub\n", this);
585 return NULL;
588 /* ?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z */
589 /* ?_Locinfo_ctor@_Locinfo@std@@SAXPEAV12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z */
590 _Locinfo* __cdecl _Locinfo__Locinfo_ctor_bstr(_Locinfo *locinfo, const basic_string_char *locstr)
592 FIXME("(%p %p) stub\n", locinfo, locstr);
593 return NULL;
596 /* ??0_Locinfo@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z */
597 /* ??0_Locinfo@std@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z */
598 DEFINE_THISCALL_WRAPPER(_Locinfo_ctor_bstr, 8)
599 _Locinfo* __thiscall _Locinfo_ctor_bstr(_Locinfo *this, const basic_string_char *locstr)
601 FIXME("(%p %p) stub\n", this, locstr);
602 return NULL;
605 /* ?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@HPBD@Z */
606 /* ?_Locinfo_ctor@_Locinfo@std@@SAXPEAV12@HPEBD@Z */
607 _Locinfo* __cdecl _Locinfo__Locinfo_ctor_cat_cstr(_Locinfo *locinfo, int category, const char *locstr)
609 FIXME("(%p %d %s) stub\n", locinfo, category, locstr);
610 return NULL;
613 /* ??0_Locinfo@std@@QAE@HPBD@Z */
614 /* ??0_Locinfo@std@@QEAA@HPEBD@Z */
615 DEFINE_THISCALL_WRAPPER(_Locinfo_ctor_cat_cstr, 12)
616 _Locinfo* __thiscall _Locinfo_ctor_cat_cstr(_Locinfo *this, int category, const char *locstr)
618 FIXME("(%p %d %s) stub\n", this, category, locstr);
619 return NULL;
622 /* ?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@PBD@Z */
623 /* ?_Locinfo_ctor@_Locinfo@std@@SAXPEAV12@PEBD@Z */
624 _Locinfo* __cdecl _Locinfo__Locinfo_ctor_cstr(_Locinfo *locinfo, const char *locstr)
626 FIXME("(%p %s) stub\n", locinfo, locstr);
627 return NULL;
630 /* ??0_Locinfo@std@@QAE@PBD@Z */
631 /* ??0_Locinfo@std@@QEAA@PEBD@Z */
632 DEFINE_THISCALL_WRAPPER(_Locinfo_ctor_cstr, 8)
633 _Locinfo* __thiscall _Locinfo_ctor_cstr(_Locinfo *this, const char *locstr)
635 FIXME("(%p %s) stub\n", this, locstr);
636 return NULL;
639 /* ?_Locinfo_dtor@_Locinfo@std@@SAXPAV12@@Z */
640 /* ?_Locinfo_dtor@_Locinfo@std@@SAXPEAV12@@Z */
641 _Locinfo* __cdecl _Locinfo__Locinfo_dtor(_Locinfo *locinfo)
643 FIXME("(%p) stub\n", locinfo);
644 return NULL;
647 /* ??_F_Locinfo@std@@QAEXXZ */
648 /* ??_F_Locinfo@std@@QEAAXXZ */
649 DEFINE_THISCALL_WRAPPER(_Locinfo_ctor, 4)
650 _Locinfo* __thiscall _Locinfo_ctor(_Locinfo *this)
652 FIXME("(%p) stub\n", this);
653 return NULL;
656 /* ??1_Locinfo@std@@QAE@XZ */
657 /* ??1_Locinfo@std@@QEAA@XZ */
658 DEFINE_THISCALL_WRAPPER(_Locinfo_dtor, 4)
659 void __thiscall _Locinfo_dtor(_Locinfo *this)
661 FIXME("(%p) stub\n", this);
664 /* ?_Locinfo_Addcats@_Locinfo@std@@SAAAV12@PAV12@HPBD@Z */
665 /* ?_Locinfo_Addcats@_Locinfo@std@@SAAEAV12@PEAV12@HPEBD@Z */
666 _Locinfo* __cdecl _Locinfo__Locinfo_Addcats(_Locinfo *locinfo, int category, const char *locstr)
668 FIXME("%p %d %s) stub\n", locinfo, category, locstr);
669 return NULL;
672 /* ?_Addcats@_Locinfo@std@@QAEAAV12@HPBD@Z */
673 /* ?_Addcats@_Locinfo@std@@QEAAAEAV12@HPEBD@Z */
674 DEFINE_THISCALL_WRAPPER(_Locinfo__Addcats, 12)
675 _Locinfo* __thiscall _Locinfo__Addcats(_Locinfo *this, int category, const char *locstr)
677 FIXME("(%p %d %s) stub\n", this, category, locstr);
678 return NULL;
681 /* ?_Getcoll@_Locinfo@std@@QBE?AU_Collvec@@XZ */
682 /* ?_Getcoll@_Locinfo@std@@QEBA?AU_Collvec@@XZ */
683 DEFINE_THISCALL_WRAPPER(_Locinfo__Getcoll, 4)
684 _Collvec __thiscall _Locinfo__Getcoll(const _Locinfo *this)
686 _Collvec ret = { 0 }; /* FIXME */
687 FIXME("(%p) stub\n", this);
688 return ret;
691 /* ?_Getctype@_Locinfo@std@@QBE?AU_Ctypevec@@XZ */
692 /* ?_Getctype@_Locinfo@std@@QEBA?AU_Ctypevec@@XZ */
693 DEFINE_THISCALL_WRAPPER_RETPTR(_Locinfo__Getctype, 4)
694 _Ctypevec __thiscall _Locinfo__Getctype(const _Locinfo *this)
696 _Ctypevec ret = { 0 }; /* FIXME */
697 FIXME("(%p) stub\n", this);
698 return ret;
701 /* ?_Getcvt@_Locinfo@std@@QBE?AU_Cvtvec@@XZ */
702 /* ?_Getcvt@_Locinfo@std@@QEBA?AU_Cvtvec@@XZ */
703 DEFINE_THISCALL_WRAPPER(_Locinfo__Getcvt, 4)
704 _Cvtvec __thiscall _Locinfo__Getcvt(const _Locinfo *this)
706 _Cvtvec ret = { 0 }; /* FIXME */
707 FIXME("(%p) stub\n", this);
708 return ret;
711 /* ?_Getdateorder@_Locinfo@std@@QBEHXZ */
712 /* ?_Getdateorder@_Locinfo@std@@QEBAHXZ */
713 DEFINE_THISCALL_WRAPPER(_Locinfo__Getdateorder, 4)
714 int __thiscall _Locinfo__Getdateorder(const _Locinfo *this)
716 FIXME("(%p) stub\n", this);
717 return 0;
720 /* ?_Getdays@_Locinfo@std@@QBEPBDXZ */
721 /* ?_Getdays@_Locinfo@std@@QEBAPEBDXZ */
722 DEFINE_THISCALL_WRAPPER(_Locinfo__Getdays, 4)
723 const char* __thiscall _Locinfo__Getdays(const _Locinfo *this)
725 FIXME("(%p) stub\n", this);
726 return NULL;
729 /* ?_Getmonths@_Locinfo@std@@QBEPBDXZ */
730 /* ?_Getmonths@_Locinfo@std@@QEBAPEBDXZ */
731 DEFINE_THISCALL_WRAPPER(_Locinfo__Getmonths, 4)
732 const char* __thiscall _Locinfo__Getmonths(const _Locinfo *this)
734 FIXME("(%p) stub\n", this);
735 return NULL;
738 /* ?_Getfalse@_Locinfo@std@@QBEPBDXZ */
739 /* ?_Getfalse@_Locinfo@std@@QEBAPEBDXZ */
740 DEFINE_THISCALL_WRAPPER(_Locinfo__Getfalse, 4)
741 const char* __thiscall _Locinfo__Getfalse(const _Locinfo *this)
743 FIXME("(%p) stub\n", this);
744 return NULL;
747 /* ?_Gettrue@_Locinfo@std@@QBEPBDXZ */
748 /* ?_Gettrue@_Locinfo@std@@QEBAPEBDXZ */
749 DEFINE_THISCALL_WRAPPER(_Locinfo__Gettrue, 4)
750 const char* __thiscall _Locinfo__Gettrue(const _Locinfo *this)
752 FIXME("(%p) stub\n", this);
753 return NULL;
756 /* ?_Getlconv@_Locinfo@std@@QBEPBUlconv@@XZ */
757 /* ?_Getlconv@_Locinfo@std@@QEBAPEBUlconv@@XZ */
758 DEFINE_THISCALL_WRAPPER(_Locinfo__Getlconv, 4)
759 const struct lconv* __thiscall _Locinfo__Getlconv(const _Locinfo *this)
761 FIXME("(%p) stub\n", this);
762 return NULL;
765 /* ?_Getname@_Locinfo@std@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
766 /* ?_Getname@_Locinfo@std@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
767 DEFINE_THISCALL_WRAPPER_RETPTR(_Locinfo__Getname, 4)
768 basic_string_char __thiscall _Locinfo__Getname(const _Locinfo *this)
770 basic_string_char ret = { 0 }; /* FIXME */
771 FIXME("(%p) stub\n", this);
772 return ret;
775 /* ?_Gettnames@_Locinfo@std@@QBE?AV_Timevec@2@XZ */
776 /* ?_Gettnames@_Locinfo@std@@QEBA?AV_Timevec@2@XZ */
777 DEFINE_THISCALL_WRAPPER(_Locinfo__Gettnames, 4)
778 _Timevec __thiscall _Locinfo__Gettnames(const _Locinfo *this)
780 _Timevec ret = { 0 }; /* FIXME */
781 FIXME("(%p) stub\n", this);
782 return ret;