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
28 #include "wine/debug.h"
29 WINE_DEFAULT_DEBUG_CHANNEL(msvcp90
);
33 typedef struct _locale_id
{
37 typedef struct _locale_facet
{
38 const vtable_ptr
*vtable
;
42 typedef struct _locale__Locimp
{
44 locale_facet
**facetvec
;
45 MSVCP_size_t facet_cnt
;
47 MSVCP_bool transparent
;
48 basic_string_char name
;
57 basic_string_char days
;
58 basic_string_char months
;
59 basic_string_char oldlocname
;
60 basic_string_char newlocname
;
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
);
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
);
107 locale_facet_dtor(this);
109 MSVCRT_operator_delete(this);
115 static const vtable_ptr MSVCP_locale_facet_vtable
[] = {
116 (vtable_ptr
)THISCALL_NAME(MSVCP_locale_facet_vector_dtor
)
119 static inline locale_facet
* call_locale_facet_vector_dtor(locale_facet
*this, unsigned int flags
)
124 __asm__
__volatile__ ("pushl %3\n\tcall *%2"
125 : "=a" (ret
), "=c" (dummy
)
126 : "r" (this->vtable
[0]), "r" (flags
), "1" (this)
131 static inline locale_facet
* call_locale_facet_vector_dtor(locale_facet
*this, unsigned int flags
)
133 locale_facet
* (__thiscall
*dtor
)(locale_facet
*, unsigned int) = (void *)this->vtable
[0];
134 return dtor(this, flags
);
138 /* ??0id@locale@std@@QAE@I@Z */
139 /* ??0id@locale@std@@QEAA@_K@Z */
140 DEFINE_THISCALL_WRAPPER(locale_id_ctor_id
, 8)
141 locale_id
* __thiscall
locale_id_ctor_id(locale_id
*this, MSVCP_size_t id
)
143 TRACE("(%p %lu)\n", this, id
);
149 /* ??_Fid@locale@std@@QAEXXZ */
150 /* ??_Fid@locale@std@@QEAAXXZ */
151 DEFINE_THISCALL_WRAPPER(locale_id_ctor
, 4)
152 locale_id
* __thiscall
locale_id_ctor(locale_id
*this)
154 TRACE("(%p)\n", this);
160 /* ??Bid@locale@std@@QAEIXZ */
161 /* ??Bid@locale@std@@QEAA_KXZ */
162 DEFINE_THISCALL_WRAPPER(locale_id_operator_size_t
, 4)
163 MSVCP_size_t __thiscall
locale_id_operator_size_t(locale_id
*this)
167 TRACE("(%p)\n", this);
170 _Lockit_ctor_locktype(&lock
, _LOCK_LOCALE
);
171 this->id
= ++locale_id__Id_cnt
;
178 /* ?_Id_cnt_func@id@locale@std@@CAAAHXZ */
179 /* ?_Id_cnt_func@id@locale@std@@CAAEAHXZ */
180 int* __cdecl
locale_id__Id_cnt_func(void)
183 return &locale_id__Id_cnt
;
186 /* ??_Ffacet@locale@std@@QAEXXZ */
187 /* ??_Ffacet@locale@std@@QEAAXXZ */
188 DEFINE_THISCALL_WRAPPER(locale_facet_ctor
, 4)
189 locale_facet
* __thiscall
locale_facet_ctor(locale_facet
*this)
191 TRACE("(%p)\n", this);
192 this->vtable
= MSVCP_locale_facet_vtable
;
197 /* ??0facet@locale@std@@IAE@I@Z */
198 /* ??0facet@locale@std@@IEAA@_K@Z */
199 DEFINE_THISCALL_WRAPPER(locale_facet_ctor_refs
, 8)
200 locale_facet
* __thiscall
locale_facet_ctor_refs(locale_facet
*this, MSVCP_size_t refs
)
202 TRACE("(%p %lu)\n", this, refs
);
203 this->vtable
= MSVCP_locale_facet_vtable
;
208 /* ?_Incref@facet@locale@std@@QAEXXZ */
209 /* ?_Incref@facet@locale@std@@QEAAXXZ */
210 DEFINE_THISCALL_WRAPPER(locale_facet__Incref
, 4)
211 void __thiscall
locale_facet__Incref(locale_facet
*this)
215 TRACE("(%p)\n", this);
217 _Lockit_ctor_locktype(&lock
, _LOCK_LOCALE
);
222 /* ?_Decref@facet@locale@std@@QAEPAV123@XZ */
223 /* ?_Decref@facet@locale@std@@QEAAPEAV123@XZ */
224 DEFINE_THISCALL_WRAPPER(locale_facet__Decref
, 4)
225 locale_facet
* __thiscall
locale_facet__Decref(locale_facet
*this)
230 TRACE("(%p)\n", this);
232 _Lockit_ctor_locktype(&lock
, _LOCK_LOCALE
);
236 ret
= this->refs
? NULL
: this;
242 /* ?_Getcat@facet@locale@std@@SAIPAPBV123@PBV23@@Z */
243 /* ?_Getcat@facet@locale@std@@SA_KPEAPEBV123@PEBV23@@Z */
244 MSVCP_size_t __cdecl
locale_facet__Getcat(const locale_facet
**facet
, const locale
*loc
)
246 TRACE("(%p %p)\n", facet
, loc
);
250 /* ??0_Locimp@locale@std@@AAE@_N@Z */
251 /* ??0_Locimp@locale@std@@AEAA@_N@Z */
252 DEFINE_THISCALL_WRAPPER(locale__Locimp_ctor_transparent
, 8)
253 locale__Locimp
* __thiscall
locale__Locimp_ctor_transparent(locale__Locimp
*this, MSVCP_bool transparent
)
255 TRACE("(%p %d)\n", this, transparent
);
257 memset(this, 0, sizeof(locale__Locimp
));
258 locale_facet_ctor_refs(&this->facet
, 1);
259 this->transparent
= transparent
;
260 MSVCP_basic_string_char_ctor_cstr(&this->name
, "*");
264 /* ??_F_Locimp@locale@std@@QAEXXZ */
265 /* ??_F_Locimp@locale@std@@QEAAXXZ */
266 DEFINE_THISCALL_WRAPPER(locale__Locimp_ctor
, 4)
267 locale__Locimp
* __thiscall
locale__Locimp_ctor(locale__Locimp
*this)
269 return locale__Locimp_ctor_transparent(this, FALSE
);
272 /* ??0_Locimp@locale@std@@AAE@ABV012@@Z */
273 /* ??0_Locimp@locale@std@@AEAA@AEBV012@@Z */
274 DEFINE_THISCALL_WRAPPER(locale__Locimp_copy_ctor
, 8)
275 locale__Locimp
* __thiscall
locale__Locimp_copy_ctor(locale__Locimp
*this, const locale__Locimp
*copy
)
280 TRACE("(%p %p)\n", this, copy
);
282 _Lockit_ctor_locktype(&lock
, _LOCK_LOCALE
);
283 memcpy(this, copy
, sizeof(locale__Locimp
));
284 locale_facet_ctor_refs(&this->facet
, 1);
286 this->facetvec
= MSVCRT_operator_new(copy
->facet_cnt
*sizeof(locale_facet
*));
287 if(!this->facetvec
) {
289 ERR("Out of memory\n");
290 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
293 for(i
=0; i
<this->facet_cnt
; i
++)
294 if(this->facetvec
[i
])
295 locale_facet__Incref(this->facetvec
[i
]);
297 MSVCP_basic_string_char_copy_ctor(&this->name
, ©
->name
);
302 /* ?_Locimp_ctor@_Locimp@locale@std@@CAXPAV123@ABV123@@Z */
303 /* ?_Locimp_ctor@_Locimp@locale@std@@CAXPEAV123@AEBV123@@Z */
304 locale__Locimp
* __cdecl
locale__Locimp__Locimp_ctor(locale__Locimp
*this, const locale__Locimp
*copy
)
306 return locale__Locimp_copy_ctor(this, copy
);
309 /* ??1_Locimp@locale@std@@MAE@XZ */
310 /* ??1_Locimp@locale@std@@MEAA@XZ */
311 DEFINE_THISCALL_WRAPPER(locale__Locimp_dtor
, 4)
312 void __thiscall
locale__Locimp_dtor(locale__Locimp
*this)
314 TRACE("(%p)\n", this);
316 if(locale_facet__Decref(&this->facet
)) {
318 for(i
=0; i
<this->facet_cnt
; i
++)
319 if(this->facetvec
[i
] && locale_facet__Decref(this->facetvec
[i
]))
320 call_locale_facet_vector_dtor(this->facetvec
[i
], 0);
322 MSVCRT_operator_delete(this->facetvec
);
323 MSVCP_basic_string_char_dtor(&this->name
);
327 /* ?_Locimp_dtor@_Locimp@locale@std@@CAXPAV123@@Z */
328 /* ?_Locimp_dtor@_Locimp@locale@std@@CAXPEAV123@@Z */
329 void __cdecl
locale__Locimp__Locimp_dtor(locale__Locimp
*this)
331 locale__Locimp_dtor(this);
334 DEFINE_THISCALL_WRAPPER(MSVCP_locale__Locimp_vector_dtor
, 8)
335 locale__Locimp
* __thiscall
MSVCP_locale__Locimp_vector_dtor(locale__Locimp
*this, unsigned int flags
)
337 TRACE("(%p %x)\n", this, flags
);
339 /* we have an array, with the number of elements stored before the first object */
340 int i
, *ptr
= (int *)this-1;
342 for(i
=*ptr
-1; i
>=0; i
--)
343 locale__Locimp_dtor(this+i
);
344 MSVCRT_operator_delete(ptr
);
346 locale__Locimp_dtor(this);
348 MSVCRT_operator_delete(this);
354 /* ?_Locimp_Addfac@_Locimp@locale@std@@CAXPAV123@PAVfacet@23@I@Z */
355 /* ?_Locimp_Addfac@_Locimp@locale@std@@CAXPEAV123@PEAVfacet@23@_K@Z */
356 void __cdecl
locale__Locimp__Locimp_Addfac(locale__Locimp
*locimp
, locale_facet
*facet
, MSVCP_size_t id
)
360 TRACE("(%p %p %lu)\n", locimp
, facet
, id
);
362 _Lockit_ctor_locktype(&lock
, _LOCK_LOCALE
);
363 if(id
>= locimp
->facet_cnt
) {
364 MSVCP_size_t new_size
= id
+1;
365 locale_facet
**new_facetvec
;
367 if(new_size
< locale_id__Id_cnt
+1)
368 new_size
= locale_id__Id_cnt
+1;
370 new_facetvec
= MSVCRT_operator_new(sizeof(locale_facet
*)*new_size
);
373 ERR("Out of memory\n");
374 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
378 memset(new_facetvec
, 0, sizeof(locale_facet
*)*new_size
);
379 memcpy(new_facetvec
, locimp
->facetvec
, sizeof(locale_facet
*)*locimp
->facet_cnt
);
380 MSVCRT_operator_delete(locimp
->facetvec
);
381 locimp
->facetvec
= new_facetvec
;
382 locimp
->facet_cnt
= new_size
;
385 if(locimp
->facetvec
[id
] && locale_facet__Decref(locimp
->facetvec
[id
]))
386 call_locale_facet_vector_dtor(locimp
->facetvec
[id
], 0);
388 locimp
->facetvec
[id
] = facet
;
390 locale_facet__Incref(facet
);
394 /* ?_Addfac@_Locimp@locale@std@@AAEXPAVfacet@23@I@Z */
395 /* ?_Addfac@_Locimp@locale@std@@AEAAXPEAVfacet@23@_K@Z */
396 DEFINE_THISCALL_WRAPPER(locale__Locimp__Addfac
, 12)
397 void __thiscall
locale__Locimp__Addfac(locale__Locimp
*this, locale_facet
*facet
, MSVCP_size_t id
)
399 locale__Locimp__Locimp_Addfac(this, facet
, id
);
402 /* ?_Clocptr_func@_Locimp@locale@std@@CAAAPAV123@XZ */
403 /* ?_Clocptr_func@_Locimp@locale@std@@CAAEAPEAV123@XZ */
404 locale__Locimp
** __cdecl
locale__Locimp__Clocptr_func(void)
410 /* ?_Makeloc@_Locimp@locale@std@@CAPAV123@ABV_Locinfo@3@HPAV123@PBV23@@Z */
411 /* ?_Makeloc@_Locimp@locale@std@@CAPEAV123@AEBV_Locinfo@3@HPEAV123@PEBV23@@Z */
412 locale__Locimp
* __cdecl
locale__Locimp__Makeloc(const _Locinfo
*locinfo
, category cat
, locale__Locimp
*locimp
, const locale
*loc
)
414 FIXME("(%p %d %p %p) stub\n", locinfo
, cat
, locimp
, loc
);
418 /* ?_Makeushloc@_Locimp@locale@std@@CAXABV_Locinfo@3@HPAV123@PBV23@@Z */
419 /* ?_Makeushloc@_Locimp@locale@std@@CAXAEBV_Locinfo@3@HPEAV123@PEBV23@@Z */
420 void __cdecl
locale__Locimp__Makeushloc(const _Locinfo
*locinfo
, category cat
, locale__Locimp
*locimp
, const locale
*loc
)
422 FIXME("(%p %d %p %p) stub\n", locinfo
, cat
, locimp
, loc
);
425 /* ?_Makewloc@_Locimp@locale@std@@CAXABV_Locinfo@3@HPAV123@PBV23@@Z */
426 /* ?_Makewloc@_Locimp@locale@std@@CAXAEBV_Locinfo@3@HPEAV123@PEBV23@@Z */
427 void __cdecl
locale__Locimp__Makewloc(const _Locinfo
*locinfo
, category cat
, locale__Locimp
*locimp
, const locale
*loc
)
429 FIXME("(%p %d %p %p) stub\n", locinfo
, cat
, locimp
, loc
);
432 /* ?_Makexloc@_Locimp@locale@std@@CAXABV_Locinfo@3@HPAV123@PBV23@@Z */
433 /* ?_Makexloc@_Locimp@locale@std@@CAXAEBV_Locinfo@3@HPEAV123@PEBV23@@Z */
434 void __cdecl
locale__Locimp__Makexloc(const _Locinfo
*locinfo
, category cat
, locale__Locimp
*locimp
, const locale
*loc
)
436 FIXME("(%p %d %p %p) stub\n", locinfo
, cat
, locimp
, loc
);
439 /* ??_7_Locimp@locale@std@@6B@ */
440 const vtable_ptr MSVCP_locale__Locimp_vtable
[] = {
441 (vtable_ptr
)THISCALL_NAME(MSVCP_locale__Locimp_vector_dtor
)
444 /* ??0locale@std@@AAE@PAV_Locimp@01@@Z */
445 /* ??0locale@std@@AEAA@PEAV_Locimp@01@@Z */
446 DEFINE_THISCALL_WRAPPER(locale_ctor_locimp
, 8)
447 locale
* __thiscall
locale_ctor_locimp(locale
*this, locale__Locimp
*locimp
)
449 TRACE("(%p %p)\n", this, locimp
);
450 /* Don't change locimp reference counter */
455 /* ??0locale@std@@QAE@ABV01@0H@Z */
456 /* ??0locale@std@@QEAA@AEBV01@0H@Z */
457 DEFINE_THISCALL_WRAPPER(locale_ctor_locale_locale
, 16)
458 locale
* __thiscall
locale_ctor_locale_locale(locale
*this, const locale
*loc
, const locale
*other
, category cat
)
460 FIXME("(%p %p %p %d) stub\n", this, loc
, other
, cat
);
464 /* ??0locale@std@@QAE@ABV01@@Z */
465 /* ??0locale@std@@QEAA@AEBV01@@Z */
466 DEFINE_THISCALL_WRAPPER(locale_copy_ctor
, 8)
467 locale
* __thiscall
locale_copy_ctor(locale
*this, const locale
*copy
)
469 TRACE("(%p %p)\n", this, copy
);
470 this->ptr
= copy
->ptr
;
471 locale_facet__Incref(&this->ptr
->facet
);
475 /* ??0locale@std@@QAE@ABV01@PBDH@Z */
476 /* ??0locale@std@@QEAA@AEBV01@PEBDH@Z */
477 DEFINE_THISCALL_WRAPPER(locale_ctor_locale_cstr
, 16)
478 locale
* __thiscall
locale_ctor_locale_cstr(locale
*this, const locale
*loc
, const char *locname
, category cat
)
480 FIXME("(%p %p %s %d) stub\n", this, loc
, locname
, cat
);
484 /* ??0locale@std@@QAE@PBDH@Z */
485 /* ??0locale@std@@QEAA@PEBDH@Z */
486 DEFINE_THISCALL_WRAPPER(locale_ctor_cstr
, 12)
487 locale
* __thiscall
locale_ctor_cstr(locale
*this, const char *locname
, category cat
)
489 FIXME("(%p %s %d) stub\n", this, locname
, cat
);
493 /* ??0locale@std@@QAE@W4_Uninitialized@1@@Z */
494 /* ??0locale@std@@QEAA@W4_Uninitialized@1@@Z */
495 DEFINE_THISCALL_WRAPPER(locale_ctor_uninitialized
, 8)
496 locale
* __thiscall
locale_ctor_uninitialized(locale
*this, int uninitialized
)
498 TRACE("(%p)\n", this);
503 /* ??0locale@std@@QAE@XZ */
504 /* ??0locale@std@@QEAA@XZ */
505 DEFINE_THISCALL_WRAPPER(locale_ctor
, 4)
506 locale
* __thiscall
locale_ctor(locale
*this)
508 TRACE("(%p)\n", this);
509 this->ptr
= MSVCRT_operator_new(sizeof(locale__Locimp
));
511 ERR("Out of memory\n");
512 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
516 locale__Locimp_ctor(this->ptr
);
520 /* ??1locale@std@@QAE@XZ */
521 /* ??1locale@std@@QEAA@XZ */
522 DEFINE_THISCALL_WRAPPER(locale_dtor
, 4)
523 void __thiscall
locale_dtor(locale
*this)
525 TRACE("(%p)\n", this);
527 locale__Locimp_dtor(this->ptr
);
530 DEFINE_THISCALL_WRAPPER(MSVCP_locale_vector_dtor
, 8)
531 locale
* __thiscall
MSVCP_locale_vector_dtor(locale
*this, unsigned int flags
)
533 TRACE("(%p %x)\n", this, flags
);
535 /* we have an array, with the number of elements stored before the first object */
536 int i
, *ptr
= (int *)this-1;
538 for(i
=*ptr
-1; i
>=0; i
--)
540 MSVCRT_operator_delete(ptr
);
544 MSVCRT_operator_delete(this);
550 /* ??4locale@std@@QAEAAV01@ABV01@@Z */
551 /* ??4locale@std@@QEAAAEAV01@AEBV01@@Z */
552 DEFINE_THISCALL_WRAPPER(locale_operator_assign
, 8)
553 locale
* __thiscall
locale_operator_assign(locale
*this, const locale
*loc
)
555 FIXME("(%p %p) stub\n", this, loc
);
559 /* ??8locale@std@@QBE_NABV01@@Z */
560 /* ??8locale@std@@QEBA_NAEBV01@@Z */
561 DEFINE_THISCALL_WRAPPER(locale_operator_equal
, 8)
562 MSVCP_bool __thiscall
locale_operator_equal(const locale
*this, const locale
*loc
)
564 FIXME("(%p %p) stub\n", this, loc
);
568 /* ??9locale@std@@QBE_NABV01@@Z */
569 /* ??9locale@std@@QEBA_NAEBV01@@Z */
570 DEFINE_THISCALL_WRAPPER(locale_operator_not_equal
, 8)
571 MSVCP_bool __thiscall
locale_operator_not_equal(const locale
*this, locale
const *loc
)
573 FIXME("(%p %p) stub\n", this, loc
);
577 /* ?_Addfac@locale@std@@QAEAAV12@PAVfacet@12@II@Z */
578 /* ?_Addfac@locale@std@@QEAAAEAV12@PEAVfacet@12@_K1@Z */
579 DEFINE_THISCALL_WRAPPER(locale__Addfac
, 16)
580 locale
* __thiscall
locale__Addfac(locale
*this, locale_facet
*facet
, MSVCP_size_t id
, MSVCP_size_t catmask
)
582 TRACE("(%p %p %lu %lu)\n", this, facet
, id
, catmask
);
584 if(this->ptr
->facet
.refs
> 1) {
585 locale__Locimp
*new_ptr
= MSVCRT_operator_new(sizeof(locale__Locimp
));
587 ERR("Out of memory\n");
588 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
591 locale__Locimp_copy_ctor(new_ptr
, this->ptr
);
592 locale_facet__Decref(&this->ptr
->facet
);
596 locale__Locimp__Addfac(this->ptr
, facet
, id
);
599 MSVCP_basic_string_char_dtor(&this->ptr
->name
);
600 MSVCP_basic_string_char_ctor_cstr(&this->ptr
->name
, "*");
605 /* ?_Getfacet@locale@std@@QBEPBVfacet@12@I@Z */
606 /* ?_Getfacet@locale@std@@QEBAPEBVfacet@12@_K@Z */
607 DEFINE_THISCALL_WRAPPER(locale__Getfacet
, 8)
608 const locale_facet
* __thiscall
locale__Getfacet(const locale
*this, MSVCP_size_t id
)
610 FIXME("(%p %lu) stub\n", this, id
);
614 /* ?_Init@locale@std@@CAPAV_Locimp@12@XZ */
615 /* ?_Init@locale@std@@CAPEAV_Locimp@12@XZ */
616 locale__Locimp
* __cdecl
locale__Init(void)
622 /* ?_Getgloballocale@locale@std@@CAPAV_Locimp@12@XZ */
623 /* ?_Getgloballocale@locale@std@@CAPEAV_Locimp@12@XZ */
624 locale__Locimp
* __cdecl
locale__Getgloballocale(void)
630 /* ?_Setgloballocale@locale@std@@CAXPAX@Z */
631 /* ?_Setgloballocale@locale@std@@CAXPEAX@Z */
632 void __cdecl
locale__Setgloballocale(void *locimp
)
634 FIXME("(%p) stub\n", locimp
);
637 /* ?classic@locale@std@@SAABV12@XZ */
638 /* ?classic@locale@std@@SAAEBV12@XZ */
639 const locale
* __cdecl
locale_classic(void)
645 /* ?name@locale@std@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
646 /* ?name@locale@std@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
647 DEFINE_THISCALL_WRAPPER_RETPTR(locale_name
, 4)
648 basic_string_char __thiscall
locale_name(const locale
*this)
650 TRACE( "(%p)\n", this);
651 return this->ptr
->name
;
654 /* ??0_Timevec@std@@QAE@ABV01@@Z */
655 /* ??0_Timevec@std@@QEAA@AEBV01@@Z */
656 /* This copy constructor modifies copied object */
657 DEFINE_THISCALL_WRAPPER(_Timevec_copy_ctor
, 8)
658 _Timevec
* __thiscall
_Timevec_copy_ctor(_Timevec
*this, _Timevec
*copy
)
660 TRACE("(%p %p)\n", this, copy
);
661 this->timeptr
= copy
->timeptr
;
662 copy
->timeptr
= NULL
;
666 /* ??0_Timevec@std@@QAE@PAX@Z */
667 /* ??0_Timevec@std@@QEAA@PEAX@Z */
668 DEFINE_THISCALL_WRAPPER(_Timevec_ctor_timeptr
, 8)
669 _Timevec
* __thiscall
_Timevec_ctor_timeptr(_Timevec
*this, void *timeptr
)
671 TRACE("(%p %p)\n", this, timeptr
);
672 this->timeptr
= timeptr
;
676 /* ??_F_Timevec@std@@QAEXXZ */
677 /* ??_F_Timevec@std@@QEAAXXZ */
678 DEFINE_THISCALL_WRAPPER(_Timevec_ctor
, 4)
679 _Timevec
* __thiscall
_Timevec_ctor(_Timevec
*this)
681 TRACE("(%p)\n", this);
682 this->timeptr
= NULL
;
686 /* ??1_Timevec@std@@QAE@XZ */
687 /* ??1_Timevec@std@@QEAA@XZ */
688 DEFINE_THISCALL_WRAPPER(_Timevec_dtor
, 4)
689 void __thiscall
_Timevec_dtor(_Timevec
*this)
691 TRACE("(%p)\n", this);
692 MSVCRT_operator_delete(this->timeptr
);
695 /* ??4_Timevec@std@@QAEAAV01@ABV01@@Z */
696 /* ??4_Timevec@std@@QEAAAEAV01@AEBV01@@Z */
697 DEFINE_THISCALL_WRAPPER(_Timevec_op_assign
, 8)
698 _Timevec
* __thiscall
_Timevec_op_assign(_Timevec
*this, _Timevec
*right
)
700 TRACE("(%p %p)\n", this, right
);
701 this->timeptr
= right
->timeptr
;
702 right
->timeptr
= NULL
;
706 /* ?_Getptr@_Timevec@std@@QBEPAXXZ */
707 /* ?_Getptr@_Timevec@std@@QEBAPEAXXZ */
708 DEFINE_THISCALL_WRAPPER(_Timevec__Getptr
, 4)
709 void* __thiscall
_Timevec__Getptr(_Timevec
*this)
711 TRACE("(%p)\n", this);
712 return this->timeptr
;
715 /* ?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z */
716 /* ?_Locinfo_ctor@_Locinfo@std@@SAXPEAV12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z */
717 _Locinfo
* __cdecl
_Locinfo__Locinfo_ctor_bstr(_Locinfo
*locinfo
, const basic_string_char
*locstr
)
719 FIXME("(%p %p) stub\n", locinfo
, locstr
);
723 /* ??0_Locinfo@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z */
724 /* ??0_Locinfo@std@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z */
725 DEFINE_THISCALL_WRAPPER(_Locinfo_ctor_bstr
, 8)
726 _Locinfo
* __thiscall
_Locinfo_ctor_bstr(_Locinfo
*this, const basic_string_char
*locstr
)
728 FIXME("(%p %p) stub\n", this, locstr
);
732 /* ?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@HPBD@Z */
733 /* ?_Locinfo_ctor@_Locinfo@std@@SAXPEAV12@HPEBD@Z */
734 _Locinfo
* __cdecl
_Locinfo__Locinfo_ctor_cat_cstr(_Locinfo
*locinfo
, int category
, const char *locstr
)
736 FIXME("(%p %d %s) stub\n", locinfo
, category
, locstr
);
740 /* ??0_Locinfo@std@@QAE@HPBD@Z */
741 /* ??0_Locinfo@std@@QEAA@HPEBD@Z */
742 DEFINE_THISCALL_WRAPPER(_Locinfo_ctor_cat_cstr
, 12)
743 _Locinfo
* __thiscall
_Locinfo_ctor_cat_cstr(_Locinfo
*this, int category
, const char *locstr
)
745 FIXME("(%p %d %s) stub\n", this, category
, locstr
);
749 /* ?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@PBD@Z */
750 /* ?_Locinfo_ctor@_Locinfo@std@@SAXPEAV12@PEBD@Z */
751 _Locinfo
* __cdecl
_Locinfo__Locinfo_ctor_cstr(_Locinfo
*locinfo
, const char *locstr
)
753 FIXME("(%p %s) stub\n", locinfo
, locstr
);
757 /* ??0_Locinfo@std@@QAE@PBD@Z */
758 /* ??0_Locinfo@std@@QEAA@PEBD@Z */
759 DEFINE_THISCALL_WRAPPER(_Locinfo_ctor_cstr
, 8)
760 _Locinfo
* __thiscall
_Locinfo_ctor_cstr(_Locinfo
*this, const char *locstr
)
762 FIXME("(%p %s) stub\n", this, locstr
);
766 /* ?_Locinfo_dtor@_Locinfo@std@@SAXPAV12@@Z */
767 /* ?_Locinfo_dtor@_Locinfo@std@@SAXPEAV12@@Z */
768 _Locinfo
* __cdecl
_Locinfo__Locinfo_dtor(_Locinfo
*locinfo
)
770 FIXME("(%p) stub\n", locinfo
);
774 /* ??_F_Locinfo@std@@QAEXXZ */
775 /* ??_F_Locinfo@std@@QEAAXXZ */
776 DEFINE_THISCALL_WRAPPER(_Locinfo_ctor
, 4)
777 _Locinfo
* __thiscall
_Locinfo_ctor(_Locinfo
*this)
779 FIXME("(%p) stub\n", this);
783 /* ??1_Locinfo@std@@QAE@XZ */
784 /* ??1_Locinfo@std@@QEAA@XZ */
785 DEFINE_THISCALL_WRAPPER(_Locinfo_dtor
, 4)
786 void __thiscall
_Locinfo_dtor(_Locinfo
*this)
788 FIXME("(%p) stub\n", this);
791 /* ?_Locinfo_Addcats@_Locinfo@std@@SAAAV12@PAV12@HPBD@Z */
792 /* ?_Locinfo_Addcats@_Locinfo@std@@SAAEAV12@PEAV12@HPEBD@Z */
793 _Locinfo
* __cdecl
_Locinfo__Locinfo_Addcats(_Locinfo
*locinfo
, int category
, const char *locstr
)
795 FIXME("%p %d %s) stub\n", locinfo
, category
, locstr
);
799 /* ?_Addcats@_Locinfo@std@@QAEAAV12@HPBD@Z */
800 /* ?_Addcats@_Locinfo@std@@QEAAAEAV12@HPEBD@Z */
801 DEFINE_THISCALL_WRAPPER(_Locinfo__Addcats
, 12)
802 _Locinfo
* __thiscall
_Locinfo__Addcats(_Locinfo
*this, int category
, const char *locstr
)
804 FIXME("(%p %d %s) stub\n", this, category
, locstr
);
808 /* ?_Getcoll@_Locinfo@std@@QBE?AU_Collvec@@XZ */
809 /* ?_Getcoll@_Locinfo@std@@QEBA?AU_Collvec@@XZ */
810 DEFINE_THISCALL_WRAPPER(_Locinfo__Getcoll
, 4)
811 _Collvec __thiscall
_Locinfo__Getcoll(const _Locinfo
*this)
813 _Collvec ret
= { 0 }; /* FIXME */
814 FIXME("(%p) stub\n", this);
818 /* ?_Getctype@_Locinfo@std@@QBE?AU_Ctypevec@@XZ */
819 /* ?_Getctype@_Locinfo@std@@QEBA?AU_Ctypevec@@XZ */
820 DEFINE_THISCALL_WRAPPER_RETPTR(_Locinfo__Getctype
, 4)
821 _Ctypevec __thiscall
_Locinfo__Getctype(const _Locinfo
*this)
823 _Ctypevec ret
= { 0 }; /* FIXME */
824 FIXME("(%p) stub\n", this);
828 /* ?_Getcvt@_Locinfo@std@@QBE?AU_Cvtvec@@XZ */
829 /* ?_Getcvt@_Locinfo@std@@QEBA?AU_Cvtvec@@XZ */
830 DEFINE_THISCALL_WRAPPER(_Locinfo__Getcvt
, 4)
831 _Cvtvec __thiscall
_Locinfo__Getcvt(const _Locinfo
*this)
833 _Cvtvec ret
= { 0 }; /* FIXME */
834 FIXME("(%p) stub\n", this);
838 /* ?_Getdateorder@_Locinfo@std@@QBEHXZ */
839 /* ?_Getdateorder@_Locinfo@std@@QEBAHXZ */
840 DEFINE_THISCALL_WRAPPER(_Locinfo__Getdateorder
, 4)
841 int __thiscall
_Locinfo__Getdateorder(const _Locinfo
*this)
843 FIXME("(%p) stub\n", this);
847 /* ?_Getdays@_Locinfo@std@@QBEPBDXZ */
848 /* ?_Getdays@_Locinfo@std@@QEBAPEBDXZ */
849 DEFINE_THISCALL_WRAPPER(_Locinfo__Getdays
, 4)
850 const char* __thiscall
_Locinfo__Getdays(const _Locinfo
*this)
852 FIXME("(%p) stub\n", this);
856 /* ?_Getmonths@_Locinfo@std@@QBEPBDXZ */
857 /* ?_Getmonths@_Locinfo@std@@QEBAPEBDXZ */
858 DEFINE_THISCALL_WRAPPER(_Locinfo__Getmonths
, 4)
859 const char* __thiscall
_Locinfo__Getmonths(const _Locinfo
*this)
861 FIXME("(%p) stub\n", this);
865 /* ?_Getfalse@_Locinfo@std@@QBEPBDXZ */
866 /* ?_Getfalse@_Locinfo@std@@QEBAPEBDXZ */
867 DEFINE_THISCALL_WRAPPER(_Locinfo__Getfalse
, 4)
868 const char* __thiscall
_Locinfo__Getfalse(const _Locinfo
*this)
870 FIXME("(%p) stub\n", this);
874 /* ?_Gettrue@_Locinfo@std@@QBEPBDXZ */
875 /* ?_Gettrue@_Locinfo@std@@QEBAPEBDXZ */
876 DEFINE_THISCALL_WRAPPER(_Locinfo__Gettrue
, 4)
877 const char* __thiscall
_Locinfo__Gettrue(const _Locinfo
*this)
879 FIXME("(%p) stub\n", this);
883 /* ?_Getlconv@_Locinfo@std@@QBEPBUlconv@@XZ */
884 /* ?_Getlconv@_Locinfo@std@@QEBAPEBUlconv@@XZ */
885 DEFINE_THISCALL_WRAPPER(_Locinfo__Getlconv
, 4)
886 const struct lconv
* __thiscall
_Locinfo__Getlconv(const _Locinfo
*this)
888 FIXME("(%p) stub\n", this);
892 /* ?_Getname@_Locinfo@std@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
893 /* ?_Getname@_Locinfo@std@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
894 DEFINE_THISCALL_WRAPPER_RETPTR(_Locinfo__Getname
, 4)
895 basic_string_char __thiscall
_Locinfo__Getname(const _Locinfo
*this)
897 basic_string_char ret
= { 0 }; /* FIXME */
898 FIXME("(%p) stub\n", this);
902 /* ?_Gettnames@_Locinfo@std@@QBE?AV_Timevec@2@XZ */
903 /* ?_Gettnames@_Locinfo@std@@QEBA?AV_Timevec@2@XZ */
904 DEFINE_THISCALL_WRAPPER(_Locinfo__Gettnames
, 4)
905 _Timevec __thiscall
_Locinfo__Gettnames(const _Locinfo
*this)
907 _Timevec ret
= { 0 }; /* FIXME */
908 FIXME("(%p) stub\n", this);