2 * Copyright 2011 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
30 #include "wine/debug.h"
32 WINE_DEFAULT_DEBUG_CHANNEL(msvcp
);
34 #define SECSPERDAY 86400
35 /* 1601 to 1970 is 369 years plus 89 leap days */
36 #define SECS_1601_TO_1970 ((369 * 365 + 89) * (ULONGLONG)SECSPERDAY)
37 #define TICKSPERSEC 10000000
38 #define TICKS_1601_TO_1970 (SECS_1601_TO_1970 * TICKSPERSEC)
41 FILE* __cdecl
__acrt_iob_func(unsigned);
45 #define stdin __acrt_iob_func(STDIN_FILENO)
46 #define stdout __acrt_iob_func(STDOUT_FILENO)
47 #define stderr __acrt_iob_func(STDERR_FILENO)
50 /* ?_Index@ios_base@std@@0HA */
51 int ios_base_Index
= 0;
52 /* ?_Sync@ios_base@std@@0_NA */
53 MSVCP_bool ios_base_Sync
= FALSE
;
57 __int64
DECLSPEC_ALIGN(8) pos
;
61 static inline const char* debugstr_fpos_mbstatet(fpos_mbstatet
*fpos
)
63 return wine_dbg_sprintf("fpos(%s %s %d)", wine_dbgstr_longlong(fpos
->off
),
64 wine_dbgstr_longlong(fpos
->pos
), MBSTATET_TO_INT(&fpos
->state
));
68 void (__cdecl
*pfunc
)(ios_base
*, streamsize
);
73 void (__cdecl
*pfunc
)(ios_base
*, int);
81 } basic_filebuf__Initfl
;
84 basic_streambuf_char base
;
89 basic_string_char
*conv
;
100 } basic_filebuf_char
;
103 basic_streambuf_wchar base
;
108 basic_string_char
*conv
;
112 MSVCP_bool wrotesome
;
119 } basic_filebuf_wchar
;
122 STRINGBUF_allocated
= 1,
123 STRINGBUF_no_write
= 2,
124 STRINGBUF_no_read
= 4,
125 STRINGBUF_append
= 8,
126 STRINGBUF_at_end
= 16
127 } basic_stringbuf_state
;
130 basic_streambuf_char base
;
133 char allocator
; /* empty struct */
134 } basic_stringbuf_char
;
137 basic_streambuf_wchar base
;
140 char allocator
; /* empty struct */
141 } basic_stringbuf_wchar
;
145 basic_streambuf_char
*strbuf
;
146 struct _basic_ostream_char
*stream
;
152 basic_streambuf_wchar
*strbuf
;
153 struct _basic_ostream_wchar
*stream
;
157 typedef struct _basic_ostream_char
{
159 /* virtual inheritance
160 * basic_ios_char basic_ios;
162 } basic_ostream_char
;
164 typedef struct _basic_ostream_wchar
{
166 /* virtual inheritance
167 * basic_ios_wchar basic_ios;
169 } basic_ostream_wchar
;
174 /* virtual inheritance
175 * basic_ios_char basic_ios;
177 } basic_istream_char
;
182 /* virtual inheritance
183 * basic_ios_wchar basic_ios;
185 } basic_istream_wchar
;
188 basic_istream_char base1
;
189 basic_ostream_char base2
;
190 /* virtual inheritance
191 * basic_ios_char basic_ios;
193 } basic_iostream_char
;
196 basic_istream_wchar base1
;
197 basic_ostream_wchar base2
;
198 /* virtual inheritance
199 * basic_ios_wchar basic_ios;
201 } basic_iostream_wchar
;
204 basic_ostream_char base
;
205 basic_filebuf_char filebuf
;
206 /* virtual inheritance
207 * basic_ios_char basic_ios;
209 } basic_ofstream_char
;
212 basic_ostream_wchar base
;
213 basic_filebuf_wchar filebuf
;
214 /* virtual inheritance
215 * basic_ios_wchar basic_ios;
217 } basic_ofstream_wchar
;
220 basic_istream_char base
;
221 basic_filebuf_char filebuf
;
222 /* virtual inheritance
223 * basic_ios_char basic_ios;
225 } basic_ifstream_char
;
228 basic_istream_wchar base
;
229 basic_filebuf_wchar filebuf
;
230 /* virtual inheritance
231 * basic_ios_wchar basic_ios;
233 } basic_ifstream_wchar
;
236 basic_iostream_char base
;
237 basic_filebuf_char filebuf
;
238 /* virtual inheritance
239 * basic_ios_char basic_ios;
241 } basic_fstream_char
;
244 basic_iostream_wchar base
;
245 basic_filebuf_wchar filebuf
;
246 /* virtual inheritance
247 * basic_ios_char basic_ios;
249 } basic_fstream_wchar
;
252 basic_ostream_char base
;
253 basic_stringbuf_char strbuf
;
254 /* virtual inheritance
255 * basic_ios_char basic_ios;
257 } basic_ostringstream_char
;
260 basic_ostream_wchar base
;
261 basic_stringbuf_wchar strbuf
;
262 /* virtual inheritance
263 * basic_ios_wchar basic_ios;
265 } basic_ostringstream_wchar
;
268 basic_istream_char base
;
269 basic_stringbuf_char strbuf
;
270 /* virtual inheritance
271 * basic_ios_char basic_ios;
273 } basic_istringstream_char
;
276 basic_istream_wchar base
;
277 basic_stringbuf_wchar strbuf
;
278 /* virtual inheritance
279 * basic_ios_wchar basic_ios;
281 } basic_istringstream_wchar
;
284 basic_iostream_char base
;
285 basic_stringbuf_char strbuf
;
286 /* virtual inheritance
287 * basic_ios_char basic_ios;
289 } basic_stringstream_char
;
292 basic_iostream_wchar base
;
293 basic_stringbuf_wchar strbuf
;
294 /* virtual inheritance
295 * basic_ios_wchar basic_ios;
297 } basic_stringstream_wchar
;
300 STRSTATE_Allocated
= 1,
301 STRSTATE_Constant
= 2,
302 STRSTATE_Dynamic
= 4,
304 } strstreambuf__Strstate
;
307 basic_streambuf_char base
;
312 void* (__cdecl
*palloc
)(MSVCP_size_t
);
313 void (__cdecl
*pfree
)(void*);
317 basic_ostream_char base
;
319 /* virtual inheritance
320 * basic_ios_char basic_ios;
325 basic_istream_char base
;
327 /* virtual inheritance
328 * basic_ios_char basic_ios;
333 basic_iostream_char base
;
335 /* virtual inheritance
336 * basic_ios_char basic_ios;
347 status_unknown
, file_not_found
, regular_file
, directory_file
,
348 symlink_file
, block_file
, character_file
, fifo_file
, socket_file
,
352 #if _MSVCP_VER >= 110
353 #define BASIC_IOS_VTORDISP 1
354 #define INIT_BASIC_IOS_VTORDISP(basic_ios) ((int*)basic_ios)[-1] = 0
356 #define BASIC_IOS_VTORDISP 0
357 #define INIT_BASIC_IOS_VTORDISP(basic_ios)
360 #define VBTABLE_ENTRY(class, offset, vbase, vtordisp) ALIGNED_SIZE(sizeof(class)+vtordisp*sizeof(int), TYPE_ALIGNMENT(vbase))-offset
361 #define VBTABLE_BASIC_IOS_ENTRY(class, offset) VBTABLE_ENTRY(class, offset, basic_ios_char, BASIC_IOS_VTORDISP)
363 extern const vtable_ptr MSVCP_iosb_vtable
;
365 /* ??_7ios_base@std@@6B@ */
366 extern const vtable_ptr MSVCP_ios_base_vtable
;
368 /* ??_7?$basic_ios@DU?$char_traits@D@std@@@std@@6B@ */
369 extern const vtable_ptr MSVCP_basic_ios_char_vtable
;
371 /* ??_7?$basic_ios@_WU?$char_traits@_W@std@@@std@@6B@ */
372 extern const vtable_ptr MSVCP_basic_ios_wchar_vtable
;
374 /* ??_7?$basic_ios@GU?$char_traits@G@std@@@std@@6B@ */
375 extern const vtable_ptr MSVCP_basic_ios_short_vtable
;
377 /* ??_7?$basic_streambuf@DU?$char_traits@D@std@@@std@@6B@ */
378 extern const vtable_ptr MSVCP_basic_streambuf_char_vtable
;
380 /* ??_7?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@6B@ */
381 extern const vtable_ptr MSVCP_basic_streambuf_wchar_vtable
;
383 /* ??_7?$basic_streambuf@GU?$char_traits@G@std@@@std@@6B@ */
384 extern const vtable_ptr MSVCP_basic_streambuf_short_vtable
;
386 /* ??_7?$basic_filebuf@DU?$char_traits@D@std@@@std@@6B@ */
387 extern const vtable_ptr MSVCP_basic_filebuf_char_vtable
;
389 /* ??_7?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@6B@ */
390 extern const vtable_ptr MSVCP_basic_filebuf_wchar_vtable
;
392 /* ??_7?$basic_filebuf@GU?$char_traits@G@std@@@std@@6B@ */
393 extern const vtable_ptr MSVCP_basic_filebuf_short_vtable
;
395 /* ??_7?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
396 extern const vtable_ptr MSVCP_basic_stringbuf_char_vtable
;
398 /* ??_7?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
399 extern const vtable_ptr MSVCP_basic_stringbuf_wchar_vtable
;
401 /* ??_7?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
402 extern const vtable_ptr MSVCP_basic_stringbuf_short_vtable
;
404 /* ??_8?$basic_ostream@DU?$char_traits@D@std@@@std@@7B@ */
405 const int basic_ostream_char_vbtable
[] = {0,
406 VBTABLE_BASIC_IOS_ENTRY(basic_ostream_char
, 0)};
407 /* ??_7?$basic_ostream@DU?$char_traits@D@std@@@std@@6B@ */
408 extern const vtable_ptr MSVCP_basic_ostream_char_vtable
;
410 /* ??_8?$basic_ostream@_WU?$char_traits@_W@std@@@std@@7B@ */
411 const int basic_ostream_wchar_vbtable
[] = {0,
412 VBTABLE_BASIC_IOS_ENTRY(basic_ostream_wchar
, 0)};
413 /* ??_7?$basic_ostream@_WU?$char_traits@_W@std@@@std@@6B@ */
414 extern const vtable_ptr MSVCP_basic_ostream_wchar_vtable
;
416 /* ??_8?$basic_ostream@GU?$char_traits@G@std@@@std@@7B@ */
417 const int basic_ostream_short_vbtable
[] = {0,
418 VBTABLE_BASIC_IOS_ENTRY(basic_ostream_wchar
, 0)};
419 /* ??_7?$basic_ostream@GU?$char_traits@G@std@@@std@@6B@ */
420 extern const vtable_ptr MSVCP_basic_ostream_short_vtable
;
422 /* ??_8?$basic_istream@DU?$char_traits@D@std@@@std@@7B@ */
423 const int basic_istream_char_vbtable
[] = {0,
424 VBTABLE_BASIC_IOS_ENTRY(basic_istream_char
, 0)};
425 /* ??_7?$basic_istream@DU?$char_traits@D@std@@@std@@6B@ */
426 extern const vtable_ptr MSVCP_basic_istream_char_vtable
;
428 /* ??_8?$basic_istream@_WU?$char_traits@_W@std@@@std@@7B@ */
429 const int basic_istream_wchar_vbtable
[] = {0,
430 VBTABLE_BASIC_IOS_ENTRY(basic_istream_wchar
, 0)};
431 /* ??_7?$basic_istream@_WU?$char_traits@_W@std@@@std@@6B@ */
432 extern const vtable_ptr MSVCP_basic_istream_wchar_vtable
;
434 /* ??_8?$basic_istream@GU?$char_traits@G@std@@@std@@7B@ */
435 const int basic_istream_short_vbtable
[] = {0,
436 VBTABLE_BASIC_IOS_ENTRY(basic_istream_wchar
, 0)};
437 /* ??_7?$basic_istream@GU?$char_traits@G@std@@@std@@6B@ */
438 extern const vtable_ptr MSVCP_basic_istream_short_vtable
;
440 /* ??_8?$basic_iostream@DU?$char_traits@D@std@@@std@@7B?$basic_istream@DU?$char_traits@D@std@@@1@@ */
441 const int basic_iostream_char_vbtable1
[] = {0,
442 VBTABLE_BASIC_IOS_ENTRY(basic_iostream_char
, 0)};
443 /* ??_8?$basic_iostream@DU?$char_traits@D@std@@@std@@7B?$basic_ostream@DU?$char_traits@D@std@@@1@@ */
444 const int basic_iostream_char_vbtable2
[] = {0,
445 VBTABLE_BASIC_IOS_ENTRY(basic_iostream_char
, FIELD_OFFSET(basic_iostream_char
, base2
))};
446 /* ??_7?$basic_iostream@DU?$char_traits@D@std@@@std@@6B@ */
447 extern const vtable_ptr MSVCP_basic_iostream_char_vtable
;
449 /* ??_8?$basic_iostream@_WU?$char_traits@_W@std@@@std@@7B?$basic_istream@_WU?$char_traits@_W@std@@@1@@ */
450 /* ??_8?$basic_iostream@GU?$char_traits@G@std@@@std@@7B?$basic_istream@GU?$char_traits@G@std@@@1@@ */
451 const int basic_iostream_wchar_vbtable1
[] = {0,
452 VBTABLE_BASIC_IOS_ENTRY(basic_iostream_wchar
, 0)};
453 /* ??_8?$basic_iostream@_WU?$char_traits@_W@std@@@std@@7B?$basic_ostream@_WU?$char_traits@_W@std@@@1@@ */
454 /* ??_8?$basic_iostream@GU?$char_traits@G@std@@@std@@7B?$basic_ostream@GU?$char_traits@G@std@@@1@@ */
455 const int basic_iostream_wchar_vbtable2
[] = {0,
456 VBTABLE_BASIC_IOS_ENTRY(basic_iostream_wchar
, FIELD_OFFSET(basic_iostream_wchar
, base2
))};
457 /* ??_7?$basic_iostream@_WU?$char_traits@_W@std@@@std@@6B@ */
458 extern const vtable_ptr MSVCP_basic_iostream_wchar_vtable
;
459 /* ??_7?$basic_iostream@GU?$char_traits@G@std@@@std@@6B@ */
460 extern const vtable_ptr MSVCP_basic_iostream_short_vtable
;
462 /* ??_8?$basic_ofstream@DU?$char_traits@D@std@@@std@@7B@ */
463 const int basic_ofstream_char_vbtable
[] = {0,
464 VBTABLE_BASIC_IOS_ENTRY(basic_ofstream_char
, 0)};
465 /* ??_7?$basic_ofstream@DU?$char_traits@D@std@@@std@@6B@ */
466 extern const vtable_ptr MSVCP_basic_ofstream_char_vtable
;
468 /* ??_8?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@7B@ */
469 const int basic_ofstream_wchar_vbtable
[] = {0,
470 VBTABLE_BASIC_IOS_ENTRY(basic_ofstream_wchar
, 0)};
471 /* ??_7?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@6B@ */
472 extern const vtable_ptr MSVCP_basic_ofstream_wchar_vtable
;
474 /* ??_8?$basic_ofstream@GU?$char_traits@G@std@@@std@@7B@ */
475 const int basic_ofstream_short_vbtable
[] = {0,
476 VBTABLE_BASIC_IOS_ENTRY(basic_ofstream_wchar
, 0)};
477 /* ??_7?$basic_ofstream@GU?$char_traits@G@std@@@std@@6B@ */
478 extern const vtable_ptr MSVCP_basic_ofstream_short_vtable
;
480 /* ??_8?$basic_ifstream@DU?$char_traits@D@std@@@std@@7B@ */
481 const int basic_ifstream_char_vbtable
[] = {0,
482 VBTABLE_BASIC_IOS_ENTRY(basic_ifstream_char
, 0)};
483 /* ??_7?$basic_ifstream@DU?$char_traits@D@std@@@std@@6B@ */
484 extern const vtable_ptr MSVCP_basic_ifstream_char_vtable
;
486 /* ??_8?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@7B@ */
487 const int basic_ifstream_wchar_vbtable
[] = {0,
488 VBTABLE_BASIC_IOS_ENTRY(basic_ifstream_wchar
, 0)};
489 /* ??_7?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@6B@ */
490 extern const vtable_ptr MSVCP_basic_ifstream_wchar_vtable
;
492 /* ??_8?$basic_ifstream@GU?$char_traits@G@std@@@std@@7B@ */
493 const int basic_ifstream_short_vbtable
[] = {0,
494 VBTABLE_BASIC_IOS_ENTRY(basic_ifstream_wchar
, 0)};
495 /* ??_7?$basic_ifstream@GU?$char_traits@G@std@@@std@@6B@ */
496 extern const vtable_ptr MSVCP_basic_ifstream_short_vtable
;
498 /* ??_8?$basic_fstream@DU?$char_traits@D@std@@@std@@7B?$basic_istream@DU?$char_traits@D@std@@@1@@ */
499 const int basic_fstream_char_vbtable1
[] = {0,
500 VBTABLE_BASIC_IOS_ENTRY(basic_fstream_char
, 0)};
501 /* ??_8?$basic_fstream@DU?$char_traits@D@std@@@std@@7B?$basic_ostream@DU?$char_traits@D@std@@@1@@ */
502 const int basic_fstream_char_vbtable2
[] = {0,
503 VBTABLE_BASIC_IOS_ENTRY(basic_fstream_char
, FIELD_OFFSET(basic_fstream_char
, base
.base2
))};
504 /* ??_7?$basic_fstream@DU?$char_traits@D@std@@@std@@6B@ */
505 extern const vtable_ptr MSVCP_basic_fstream_char_vtable
;
507 /* ??_8?$basic_fstream@_WU?$char_traits@_W@std@@@std@@7B?$basic_istream@_WU?$char_traits@_W@std@@@1@@ */
508 /* ??_8?$basic_fstream@GU?$char_traits@G@std@@@std@@7B?$basic_istream@GU?$char_traits@G@std@@@1@@ */
509 const int basic_fstream_wchar_vbtable1
[] = {0,
510 VBTABLE_BASIC_IOS_ENTRY(basic_fstream_wchar
, 0)};
511 /* ??_8?$basic_fstream@_WU?$char_traits@_W@std@@@std@@7B?$basic_ostream@_WU?$char_traits@_W@std@@@1@@ */
512 /* ??_8?$basic_fstream@GU?$char_traits@G@std@@@std@@7B?$basic_ostream@GU?$char_traits@G@std@@@1@@ */
513 const int basic_fstream_wchar_vbtable2
[] = {0,
514 VBTABLE_BASIC_IOS_ENTRY(basic_fstream_wchar
, FIELD_OFFSET(basic_fstream_wchar
, base
.base2
))};
515 /* ??_7?$basic_fstream@_WU?$char_traits@_W@std@@@std@@6B@ */
516 extern const vtable_ptr MSVCP_basic_fstream_wchar_vtable
;
517 /* ??_7?$basic_fstream@GU?$char_traits@G@std@@@std@@6B@ */
518 extern const vtable_ptr MSVCP_basic_fstream_short_vtable
;
520 /* ??_8?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B@ */
521 const int basic_ostringstream_char_vbtable
[] = {0,
522 VBTABLE_BASIC_IOS_ENTRY(basic_ostringstream_char
, 0)};
523 /* ??_7?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
524 extern const vtable_ptr MSVCP_basic_ostringstream_char_vtable
;
526 /* ??_8?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B@ */
527 const int basic_ostringstream_wchar_vbtable
[] = {0,
528 VBTABLE_BASIC_IOS_ENTRY(basic_ostringstream_wchar
, 0)};
529 /* ??_7?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
530 extern const vtable_ptr MSVCP_basic_ostringstream_wchar_vtable
;
532 /* ??_8?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B@ */
533 const int basic_ostringstream_short_vbtable
[] = {0,
534 VBTABLE_BASIC_IOS_ENTRY(basic_ostringstream_wchar
, 0)};
535 /* ??_7?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
536 extern const vtable_ptr MSVCP_basic_ostringstream_short_vtable
;
538 /* ??_8?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B@ */
539 const int basic_istringstream_char_vbtable
[] = {0,
540 VBTABLE_BASIC_IOS_ENTRY(basic_istringstream_char
, 0)};
541 /* ??_7?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
542 extern const vtable_ptr MSVCP_basic_istringstream_char_vtable
;
544 /* ??_8?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B@ */
545 const int basic_istringstream_wchar_vbtable
[] = {0,
546 VBTABLE_BASIC_IOS_ENTRY(basic_istringstream_wchar
, 0)};
547 /* ??_7?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
548 extern const vtable_ptr MSVCP_basic_istringstream_wchar_vtable
;
550 /* ??_8?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B@ */
551 const int basic_istringstream_short_vbtable
[] = {0,
552 VBTABLE_BASIC_IOS_ENTRY(basic_istringstream_wchar
, 0)};
553 /* ??_7?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
554 extern const vtable_ptr MSVCP_basic_istringstream_short_vtable
;
556 /* ??_8?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B?$basic_istream@DU?$char_traits@D@std@@@1@@ */
557 const int basic_stringstream_char_vbtable1
[] = {0,
558 VBTABLE_BASIC_IOS_ENTRY(basic_stringstream_char
, 0)};
559 /* ??_8?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B?$basic_ostream@DU?$char_traits@D@std@@@1@@ */
560 const int basic_stringstream_char_vbtable2
[] = {0,
561 VBTABLE_BASIC_IOS_ENTRY(basic_stringstream_char
, FIELD_OFFSET(basic_stringstream_char
, base
.base2
))};
562 /* ??_7?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
563 extern const vtable_ptr MSVCP_basic_stringstream_char_vtable
;
565 /* ??_8?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B?$basic_istream@_WU?$char_traits@_W@std@@@1@@ */
566 const int basic_stringstream_wchar_vbtable1
[] = {0,
567 VBTABLE_BASIC_IOS_ENTRY(basic_stringstream_wchar
, 0)};
568 /* ??_8?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B?$basic_ostream@_WU?$char_traits@_W@std@@@1@@ */
569 const int basic_stringstream_wchar_vbtable2
[] = {0,
570 VBTABLE_BASIC_IOS_ENTRY(basic_stringstream_wchar
, FIELD_OFFSET(basic_stringstream_wchar
, base
.base2
))};
571 /* ??_7?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
572 extern const vtable_ptr MSVCP_basic_stringstream_wchar_vtable
;
574 /* ??_8?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B?$basic_istream@GU?$char_traits@G@std@@@1@@ */
575 const int basic_stringstream_short_vbtable1
[] = {0,
576 VBTABLE_BASIC_IOS_ENTRY(basic_stringstream_wchar
, 0)};
577 /* ??_8?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B?$basic_ostream@GU?$char_traits@G@std@@@1@@ */
578 const int basic_stringstream_short_vbtable2
[] = {0,
579 VBTABLE_BASIC_IOS_ENTRY(basic_stringstream_wchar
, FIELD_OFFSET(basic_stringstream_wchar
, base
.base2
))};
580 /* ??_7?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
581 extern const vtable_ptr MSVCP_basic_stringstream_short_vtable
;
583 /* ??_7strstreambuf@std@@6B */
584 extern const vtable_ptr MSVCP_strstreambuf_vtable
;
586 static const int ostrstream_vbtable
[] = {0, VBTABLE_BASIC_IOS_ENTRY(ostrstream
, 0)};
587 extern const vtable_ptr MSVCP_ostrstream_vtable
;
589 static const int istrstream_vbtable
[] = {0, VBTABLE_BASIC_IOS_ENTRY(istrstream
, 0)};
591 static const int strstream_vbtable1
[] = {0, VBTABLE_BASIC_IOS_ENTRY(strstream
, 0)};
592 static const int strstream_vbtable2
[] = {0,
593 VBTABLE_BASIC_IOS_ENTRY(strstream
, FIELD_OFFSET(strstream
, base
.base2
))};
594 extern const vtable_ptr MSVCP_strstream_vtable
;
596 DEFINE_RTTI_DATA0(iosb
, 0, ".?AV?$_Iosb@H@std@@")
597 DEFINE_RTTI_DATA1(ios_base
, 0, &iosb_rtti_base_descriptor
, ".?AV?$_Iosb@H@std@@")
598 DEFINE_RTTI_DATA2(basic_ios_char
, 0, &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
599 ".?AV?$basic_ios@DU?$char_traits@D@std@@@std@@")
600 DEFINE_RTTI_DATA2(basic_ios_wchar
, 0, &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
601 ".?AV?$basic_ios@_WU?$char_traits@_W@std@@@std@@")
602 DEFINE_RTTI_DATA2(basic_ios_short
, 0, &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
603 ".?AV?$basic_ios@GU?$char_traits@G@std@@@std@@")
604 DEFINE_RTTI_DATA0(basic_streambuf_char
, 0,
605 ".?AV?$basic_streambuf@DU?$char_traits@D@std@@@std@@")
606 DEFINE_RTTI_DATA0(basic_streambuf_wchar
, 0,
607 ".?AV?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@")
608 DEFINE_RTTI_DATA0(basic_streambuf_short
, 0,
609 ".?AV?$basic_streambuf@GU?$char_traits@G@std@@@std@@")
610 DEFINE_RTTI_DATA1(basic_filebuf_char
, 0, &basic_streambuf_char_rtti_base_descriptor
,
611 ".?AV?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@")
612 DEFINE_RTTI_DATA1(basic_filebuf_wchar
, 0, &basic_streambuf_wchar_rtti_base_descriptor
,
613 ".?AV?$basic_filebuf@GU?$char_traits@G@std@@@std@@")
614 DEFINE_RTTI_DATA1(basic_filebuf_short
, 0, &basic_streambuf_short_rtti_base_descriptor
,
615 ".?AV?$basic_filebuf@DU?$char_traits@D@std@@@std@@")
616 DEFINE_RTTI_DATA1(basic_stringbuf_char
, 0, &basic_streambuf_char_rtti_base_descriptor
,
617 ".?AV?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@")
618 DEFINE_RTTI_DATA1(basic_stringbuf_wchar
, 0, &basic_streambuf_wchar_rtti_base_descriptor
,
619 ".?AV?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@")
620 DEFINE_RTTI_DATA1(basic_stringbuf_short
, 0, &basic_streambuf_short_rtti_base_descriptor
,
621 ".?AV?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@")
622 DEFINE_RTTI_DATA3(basic_ostream_char
, sizeof(basic_ostream_char
), &basic_ios_char_rtti_base_descriptor
,
623 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
624 ".?AV?$basic_ostream@DU?$char_traits@D@std@@@std@@")
625 DEFINE_RTTI_DATA3(basic_ostream_wchar
, sizeof(basic_ostream_wchar
), &basic_ios_wchar_rtti_base_descriptor
,
626 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
627 ".?AV?$basic_ostream@_WU?$char_traits@_W@std@@@std@@")
628 DEFINE_RTTI_DATA3(basic_ostream_short
, sizeof(basic_ostream_wchar
), &basic_ios_short_rtti_base_descriptor
,
629 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
630 ".?AV?$basic_ostream@GU?$char_traits@G@std@@@std@@")
631 DEFINE_RTTI_DATA3(basic_istream_char
, sizeof(basic_istream_char
), &basic_ios_char_rtti_base_descriptor
,
632 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
633 ".?AV?$basic_istream@DU?$char_traits@D@std@@@std@@")
634 DEFINE_RTTI_DATA3(basic_istream_wchar
, sizeof(basic_istream_wchar
), &basic_ios_wchar_rtti_base_descriptor
,
635 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
636 ".?AV?$basic_istream@_WU?$char_traits@_W@std@@@std@@")
637 DEFINE_RTTI_DATA3(basic_istream_short
, sizeof(basic_istream_wchar
), &basic_ios_short_rtti_base_descriptor
,
638 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
639 ".?AV?$basic_istream@GU?$char_traits@G@std@@@std@@")
640 DEFINE_RTTI_DATA8(basic_iostream_char
, sizeof(basic_iostream_char
),
641 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
642 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
643 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
644 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
645 ".?AV?$basic_iostream@DU?$char_traits@D@std@@@std@@")
646 DEFINE_RTTI_DATA8(basic_iostream_wchar
, sizeof(basic_iostream_wchar
),
647 &basic_istream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
648 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
649 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
650 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
651 ".?AV?$basic_iostream@_WU?$char_traits@_W@std@@@std@@")
652 DEFINE_RTTI_DATA8(basic_iostream_short
, sizeof(basic_iostream_wchar
),
653 &basic_istream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
654 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
655 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
656 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
657 ".?AV?$basic_iostream@GU?$char_traits@G@std@@@std@@")
658 DEFINE_RTTI_DATA4(basic_ofstream_char
, sizeof(basic_ofstream_char
),
659 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
660 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
661 ".?AV?$basic_ofstream@DU?$char_traits@D@std@@@std@@")
662 DEFINE_RTTI_DATA4(basic_ofstream_wchar
, sizeof(basic_ofstream_wchar
),
663 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
664 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
665 ".?AV?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@")
666 DEFINE_RTTI_DATA4(basic_ofstream_short
, sizeof(basic_ofstream_wchar
),
667 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
668 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
669 ".?AV?$basic_ofstream@GU?$char_traits@G@std@@@std@@")
670 DEFINE_RTTI_DATA4(basic_ifstream_char
, sizeof(basic_ifstream_char
),
671 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
672 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
673 ".?AV?$basic_ifstream@DU?$char_traits@D@std@@@std@@")
674 DEFINE_RTTI_DATA4(basic_ifstream_wchar
, sizeof(basic_ifstream_wchar
),
675 &basic_istream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
676 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
677 ".?AV?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@")
678 DEFINE_RTTI_DATA4(basic_ifstream_short
, sizeof(basic_ifstream_wchar
),
679 &basic_istream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
680 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
681 ".?AV?$basic_ifstream@GU?$char_traits@G@std@@@std@@")
682 DEFINE_RTTI_DATA8(basic_fstream_char
, sizeof(basic_fstream_char
),
683 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
684 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
685 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
686 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
687 ".?AV?$basic_fstream@DU?$char_traits@D@std@@@std@@")
688 DEFINE_RTTI_DATA8(basic_fstream_wchar
, sizeof(basic_fstream_wchar
),
689 &basic_istream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
690 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
691 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
692 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
693 ".?AV?$basic_fstream@_WU?$char_traits@_W@std@@@std@@")
694 DEFINE_RTTI_DATA8(basic_fstream_short
, sizeof(basic_fstream_wchar
),
695 &basic_istream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
696 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
697 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
698 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
699 ".?AV?$basic_fstream@GU?$char_traits@G@std@@@std@@")
700 DEFINE_RTTI_DATA4(basic_ostringstream_char
, sizeof(basic_ostringstream_char
),
701 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
702 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
703 ".?AV?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@")
704 DEFINE_RTTI_DATA4(basic_ostringstream_wchar
, sizeof(basic_ostringstream_wchar
),
705 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
706 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
707 ".?AV?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@")
708 DEFINE_RTTI_DATA4(basic_ostringstream_short
, sizeof(basic_ostringstream_wchar
),
709 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
710 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
711 ".?AV?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@")
712 DEFINE_RTTI_DATA4(basic_istringstream_char
, sizeof(basic_istringstream_char
),
713 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
714 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
715 ".?AV?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@")
716 DEFINE_RTTI_DATA4(basic_istringstream_wchar
, sizeof(basic_istringstream_wchar
),
717 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
718 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
719 ".?AV?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@")
720 DEFINE_RTTI_DATA4(basic_istringstream_short
, sizeof(basic_istringstream_wchar
),
721 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
722 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
723 ".?AV?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@")
724 DEFINE_RTTI_DATA8(basic_stringstream_char
, sizeof(basic_stringstream_char
),
725 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
726 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
727 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
728 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
729 ".?AV?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@")
730 DEFINE_RTTI_DATA8(basic_stringstream_wchar
, sizeof(basic_stringstream_wchar
),
731 &basic_istream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
732 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
733 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
734 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
735 ".?AV?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@")
736 DEFINE_RTTI_DATA8(basic_stringstream_short
, sizeof(basic_stringstream_wchar
),
737 &basic_istream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
738 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
739 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
740 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
741 ".?AV?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@")
742 DEFINE_RTTI_DATA1(strstreambuf
, sizeof(strstreambuf
),
743 &basic_streambuf_char_rtti_base_descriptor
, ".?AVstrstreambuf@std@@")
744 DEFINE_RTTI_DATA4(ostrstream
, sizeof(ostrstream
),
745 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
746 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
747 "?AVostrstream@std@@")
748 DEFINE_RTTI_DATA8(strstream
, sizeof(strstream
),
749 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
750 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
751 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
752 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
753 "?AVstrstream@std@@")
756 void __asm_dummy_vtables(void) {
759 VTABLE_ADD_FUNC(iosb_vector_dtor
));
760 __ASM_VTABLE(ios_base
,
761 VTABLE_ADD_FUNC(ios_base_vector_dtor
));
762 __ASM_VTABLE(basic_ios_char
,
763 VTABLE_ADD_FUNC(basic_ios_char_vector_dtor
)
764 #if _MSVCP_VER == 110
765 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
766 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
769 __ASM_VTABLE(basic_ios_wchar
,
770 VTABLE_ADD_FUNC(basic_ios_wchar_vector_dtor
)
771 #if _MSVCP_VER == 110
772 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
773 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
776 __ASM_VTABLE(basic_ios_short
,
777 VTABLE_ADD_FUNC(basic_ios_wchar_vector_dtor
)
778 #if _MSVCP_VER == 110
779 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
780 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
783 __ASM_VTABLE(basic_streambuf_char
,
784 VTABLE_ADD_FUNC(basic_streambuf_char_vector_dtor
)
785 #if _MSVCP_VER >= 100
786 VTABLE_ADD_FUNC(basic_streambuf_char__Lock
)
787 VTABLE_ADD_FUNC(basic_streambuf_char__Unlock
)
789 VTABLE_ADD_FUNC(basic_streambuf_char_overflow
)
790 VTABLE_ADD_FUNC(basic_streambuf_char_pbackfail
)
791 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc
)
792 VTABLE_ADD_FUNC(basic_streambuf_char_underflow
)
793 VTABLE_ADD_FUNC(basic_streambuf_char_uflow
)
794 VTABLE_ADD_FUNC(basic_streambuf_char_xsgetn
)
795 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
796 VTABLE_ADD_FUNC(basic_streambuf_char__Xsgetn_s
)
798 VTABLE_ADD_FUNC(basic_streambuf_char_xsputn
)
799 VTABLE_ADD_FUNC(basic_streambuf_char_seekoff
)
800 VTABLE_ADD_FUNC(basic_streambuf_char_seekpos
)
801 VTABLE_ADD_FUNC(basic_streambuf_char_setbuf
)
802 VTABLE_ADD_FUNC(basic_streambuf_char_sync
)
803 VTABLE_ADD_FUNC(basic_streambuf_char_imbue
));
804 __ASM_VTABLE(basic_streambuf_wchar
,
805 VTABLE_ADD_FUNC(basic_streambuf_wchar_vector_dtor
)
806 #if _MSVCP_VER >= 100
807 VTABLE_ADD_FUNC(basic_streambuf_wchar__Lock
)
808 VTABLE_ADD_FUNC(basic_streambuf_wchar__Unlock
)
810 VTABLE_ADD_FUNC(basic_streambuf_wchar_overflow
)
811 VTABLE_ADD_FUNC(basic_streambuf_wchar_pbackfail
)
812 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
813 VTABLE_ADD_FUNC(basic_streambuf_wchar_underflow
)
814 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow
)
815 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
816 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
817 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
819 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
820 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekoff
)
821 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekpos
)
822 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf
)
823 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync
)
824 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
825 __ASM_VTABLE(basic_streambuf_short
,
826 VTABLE_ADD_FUNC(basic_streambuf_wchar_vector_dtor
)
827 #if _MSVCP_VER >= 100
828 VTABLE_ADD_FUNC(basic_streambuf_wchar__Lock
)
829 VTABLE_ADD_FUNC(basic_streambuf_wchar__Unlock
)
831 VTABLE_ADD_FUNC(basic_streambuf_wchar_overflow
)
832 VTABLE_ADD_FUNC(basic_streambuf_wchar_pbackfail
)
833 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
834 VTABLE_ADD_FUNC(basic_streambuf_wchar_underflow
)
835 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow
)
836 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
837 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
838 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
840 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
841 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekoff
)
842 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekpos
)
843 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf
)
844 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync
)
845 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
846 __ASM_VTABLE(basic_filebuf_char
,
847 VTABLE_ADD_FUNC(basic_filebuf_char_vector_dtor
)
848 #if _MSVCP_VER >= 100
849 VTABLE_ADD_FUNC(basic_streambuf_char__Lock
)
850 VTABLE_ADD_FUNC(basic_streambuf_char__Unlock
)
852 VTABLE_ADD_FUNC(basic_filebuf_char_overflow
)
853 VTABLE_ADD_FUNC(basic_filebuf_char_pbackfail
)
854 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc
)
855 VTABLE_ADD_FUNC(basic_filebuf_char_underflow
)
856 VTABLE_ADD_FUNC(basic_filebuf_char_uflow
)
857 VTABLE_ADD_FUNC(basic_streambuf_char_xsgetn
)
858 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
859 VTABLE_ADD_FUNC(basic_streambuf_char__Xsgetn_s
)
861 VTABLE_ADD_FUNC(basic_streambuf_char_xsputn
)
862 VTABLE_ADD_FUNC(basic_filebuf_char_seekoff
)
863 VTABLE_ADD_FUNC(basic_filebuf_char_seekpos
)
864 VTABLE_ADD_FUNC(basic_filebuf_char_setbuf
)
865 VTABLE_ADD_FUNC(basic_filebuf_char_sync
)
866 VTABLE_ADD_FUNC(basic_filebuf_char_imbue
));
867 __ASM_VTABLE(basic_filebuf_wchar
,
868 VTABLE_ADD_FUNC(basic_filebuf_wchar_vector_dtor
)
869 #if _MSVCP_VER >= 100
870 VTABLE_ADD_FUNC(basic_streambuf_wchar__Lock
)
871 VTABLE_ADD_FUNC(basic_streambuf_wchar__Unlock
)
873 VTABLE_ADD_FUNC(basic_filebuf_wchar_overflow
)
874 VTABLE_ADD_FUNC(basic_filebuf_wchar_pbackfail
)
875 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
876 VTABLE_ADD_FUNC(basic_filebuf_wchar_underflow
)
877 VTABLE_ADD_FUNC(basic_filebuf_wchar_uflow
)
878 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
879 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
880 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
882 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
883 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekoff
)
884 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekpos
)
885 VTABLE_ADD_FUNC(basic_filebuf_wchar_setbuf
)
886 VTABLE_ADD_FUNC(basic_filebuf_wchar_sync
)
887 VTABLE_ADD_FUNC(basic_filebuf_wchar_imbue
));
888 __ASM_VTABLE(basic_filebuf_short
,
889 VTABLE_ADD_FUNC(basic_filebuf_wchar_vector_dtor
)
890 #if _MSVCP_VER >= 100
891 VTABLE_ADD_FUNC(basic_streambuf_wchar__Lock
)
892 VTABLE_ADD_FUNC(basic_streambuf_wchar__Unlock
)
894 VTABLE_ADD_FUNC(basic_filebuf_wchar_overflow
)
895 VTABLE_ADD_FUNC(basic_filebuf_wchar_pbackfail
)
896 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
897 VTABLE_ADD_FUNC(basic_filebuf_wchar_underflow
)
898 VTABLE_ADD_FUNC(basic_filebuf_wchar_uflow
)
899 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
900 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
901 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
903 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
904 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekoff
)
905 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekpos
)
906 VTABLE_ADD_FUNC(basic_filebuf_short_setbuf
)
907 VTABLE_ADD_FUNC(basic_filebuf_wchar_sync
)
908 VTABLE_ADD_FUNC(basic_filebuf_short_imbue
));
909 __ASM_VTABLE(basic_stringbuf_char
,
910 VTABLE_ADD_FUNC(basic_stringbuf_char_vector_dtor
)
911 VTABLE_ADD_FUNC(basic_stringbuf_char_overflow
)
912 VTABLE_ADD_FUNC(basic_stringbuf_char_pbackfail
)
913 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc
)
914 VTABLE_ADD_FUNC(basic_stringbuf_char_underflow
)
915 VTABLE_ADD_FUNC(basic_streambuf_char_uflow
)
916 VTABLE_ADD_FUNC(basic_streambuf_char_xsgetn
)
917 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
918 VTABLE_ADD_FUNC(basic_streambuf_char__Xsgetn_s
)
920 VTABLE_ADD_FUNC(basic_streambuf_char_xsputn
)
921 VTABLE_ADD_FUNC(basic_stringbuf_char_seekoff
)
922 VTABLE_ADD_FUNC(basic_stringbuf_char_seekpos
)
923 VTABLE_ADD_FUNC(basic_streambuf_char_setbuf
)
924 VTABLE_ADD_FUNC(basic_streambuf_char_sync
)
925 VTABLE_ADD_FUNC(basic_streambuf_char_imbue
));
926 __ASM_VTABLE(basic_stringbuf_wchar
,
927 VTABLE_ADD_FUNC(basic_stringbuf_wchar_vector_dtor
)
928 VTABLE_ADD_FUNC(basic_stringbuf_wchar_overflow
)
929 VTABLE_ADD_FUNC(basic_stringbuf_wchar_pbackfail
)
930 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
931 VTABLE_ADD_FUNC(basic_stringbuf_wchar_underflow
)
932 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow
)
933 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
934 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
935 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
937 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
938 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekoff
)
939 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekpos
)
940 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf
)
941 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync
)
942 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
943 __ASM_VTABLE(basic_stringbuf_short
,
944 VTABLE_ADD_FUNC(basic_stringbuf_wchar_vector_dtor
)
945 VTABLE_ADD_FUNC(basic_stringbuf_wchar_overflow
)
946 VTABLE_ADD_FUNC(basic_stringbuf_wchar_pbackfail
)
947 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
948 VTABLE_ADD_FUNC(basic_stringbuf_wchar_underflow
)
949 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow
)
950 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
951 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
952 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
954 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
955 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekoff
)
956 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekpos
)
957 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf
)
958 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync
)
959 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
960 __ASM_VTABLE(basic_ostream_char
,
961 VTABLE_ADD_FUNC(basic_ostream_char_vector_dtor
)
962 #if _MSVCP_VER == 110
963 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
964 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
967 __ASM_VTABLE(basic_ostream_wchar
,
968 VTABLE_ADD_FUNC(basic_ostream_wchar_vector_dtor
)
969 #if _MSVCP_VER == 110
970 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
971 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
974 __ASM_VTABLE(basic_ostream_short
,
975 VTABLE_ADD_FUNC(basic_ostream_wchar_vector_dtor
)
976 #if _MSVCP_VER == 110
977 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
978 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
981 __ASM_VTABLE(basic_istream_char
,
982 VTABLE_ADD_FUNC(basic_istream_char_vector_dtor
)
983 #if _MSVCP_VER == 110
984 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
985 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
988 __ASM_VTABLE(basic_istream_wchar
,
989 VTABLE_ADD_FUNC(basic_istream_wchar_vector_dtor
)
990 #if _MSVCP_VER == 110
991 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
992 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
995 __ASM_VTABLE(basic_istream_short
,
996 VTABLE_ADD_FUNC(basic_istream_wchar_vector_dtor
)
997 #if _MSVCP_VER == 110
998 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
999 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1002 __ASM_VTABLE(basic_iostream_char
,
1003 VTABLE_ADD_FUNC(basic_iostream_char_vector_dtor
)
1004 #if _MSVCP_VER == 110
1005 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1006 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1009 __ASM_VTABLE(basic_iostream_wchar
,
1010 VTABLE_ADD_FUNC(basic_iostream_wchar_vector_dtor
)
1011 #if _MSVCP_VER == 110
1012 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1013 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1016 __ASM_VTABLE(basic_iostream_short
,
1017 VTABLE_ADD_FUNC(basic_iostream_wchar_vector_dtor
)
1018 #if _MSVCP_VER == 110
1019 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1020 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1023 __ASM_VTABLE(basic_ofstream_char
,
1024 VTABLE_ADD_FUNC(basic_ofstream_char_vector_dtor
)
1025 #if _MSVCP_VER == 110
1026 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1027 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1030 __ASM_VTABLE(basic_ofstream_wchar
,
1031 VTABLE_ADD_FUNC(basic_ofstream_wchar_vector_dtor
)
1032 #if _MSVCP_VER == 110
1033 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1034 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1037 __ASM_VTABLE(basic_ofstream_short
,
1038 VTABLE_ADD_FUNC(basic_ofstream_wchar_vector_dtor
)
1039 #if _MSVCP_VER == 110
1040 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1041 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1044 __ASM_VTABLE(basic_ifstream_char
,
1045 VTABLE_ADD_FUNC(basic_ifstream_char_vector_dtor
)
1046 #if _MSVCP_VER == 110
1047 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1048 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1051 __ASM_VTABLE(basic_ifstream_wchar
,
1052 VTABLE_ADD_FUNC(basic_ifstream_wchar_vector_dtor
)
1053 #if _MSVCP_VER == 110
1054 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1055 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1058 __ASM_VTABLE(basic_ifstream_short
,
1059 VTABLE_ADD_FUNC(basic_ifstream_wchar_vector_dtor
)
1060 #if _MSVCP_VER == 110
1061 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1062 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1065 __ASM_VTABLE(basic_fstream_char
,
1066 VTABLE_ADD_FUNC(basic_fstream_char_vector_dtor
)
1067 #if _MSVCP_VER == 110
1068 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1069 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1072 __ASM_VTABLE(basic_fstream_wchar
,
1073 VTABLE_ADD_FUNC(basic_fstream_wchar_vector_dtor
)
1074 #if _MSVCP_VER == 110
1075 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1076 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1079 __ASM_VTABLE(basic_fstream_short
,
1080 VTABLE_ADD_FUNC(basic_fstream_wchar_vector_dtor
)
1081 #if _MSVCP_VER == 110
1082 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1083 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1086 __ASM_VTABLE(basic_ostringstream_char
,
1087 VTABLE_ADD_FUNC(basic_ostringstream_char_vector_dtor
)
1088 #if _MSVCP_VER == 110
1089 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1090 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1093 __ASM_VTABLE(basic_ostringstream_wchar
,
1094 VTABLE_ADD_FUNC(basic_ostringstream_wchar_vector_dtor
)
1095 #if _MSVCP_VER == 110
1096 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1097 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1100 __ASM_VTABLE(basic_ostringstream_short
,
1101 VTABLE_ADD_FUNC(basic_ostringstream_wchar_vector_dtor
)
1102 #if _MSVCP_VER == 110
1103 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1104 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1107 __ASM_VTABLE(basic_istringstream_char
,
1108 VTABLE_ADD_FUNC(basic_istringstream_char_vector_dtor
)
1109 #if _MSVCP_VER == 110
1110 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1111 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1114 __ASM_VTABLE(basic_istringstream_wchar
,
1115 VTABLE_ADD_FUNC(basic_istringstream_wchar_vector_dtor
)
1116 #if _MSVCP_VER == 110
1117 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1118 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1121 __ASM_VTABLE(basic_istringstream_short
,
1122 VTABLE_ADD_FUNC(basic_istringstream_wchar_vector_dtor
)
1123 #if _MSVCP_VER == 110
1124 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1125 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1128 __ASM_VTABLE(basic_stringstream_char
,
1129 VTABLE_ADD_FUNC(basic_stringstream_char_vector_dtor
)
1130 #if _MSVCP_VER == 110
1131 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1132 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1135 __ASM_VTABLE(basic_stringstream_wchar
,
1136 VTABLE_ADD_FUNC(basic_stringstream_wchar_vector_dtor
)
1137 #if _MSVCP_VER == 110
1138 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1139 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1142 __ASM_VTABLE(basic_stringstream_short
,
1143 VTABLE_ADD_FUNC(basic_stringstream_wchar_vector_dtor
)
1144 #if _MSVCP_VER == 110
1145 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1146 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1149 __ASM_VTABLE(strstreambuf
,
1150 VTABLE_ADD_FUNC(strstreambuf_vector_dtor
)
1151 VTABLE_ADD_FUNC(strstreambuf_overflow
)
1152 VTABLE_ADD_FUNC(strstreambuf_pbackfail
)
1153 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc
)
1154 VTABLE_ADD_FUNC(strstreambuf_underflow
)
1155 VTABLE_ADD_FUNC(basic_streambuf_char_uflow
)
1156 VTABLE_ADD_FUNC(basic_streambuf_char_xsgetn
)
1157 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
1158 VTABLE_ADD_FUNC(basic_streambuf_char__Xsgetn_s
)
1160 VTABLE_ADD_FUNC(basic_streambuf_char_xsputn
)
1161 VTABLE_ADD_FUNC(strstreambuf_seekoff
)
1162 VTABLE_ADD_FUNC(strstreambuf_seekpos
)
1163 VTABLE_ADD_FUNC(basic_streambuf_char_setbuf
)
1164 VTABLE_ADD_FUNC(basic_streambuf_char_sync
)
1165 VTABLE_ADD_FUNC(basic_streambuf_char_imbue
));
1166 __ASM_VTABLE(ostrstream
,
1167 VTABLE_ADD_FUNC(ostrstream_vector_dtor
)
1168 #if _MSVCP_VER == 110
1169 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1170 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1173 __ASM_VTABLE(strstream
,
1174 VTABLE_ADD_FUNC(strstream_vector_dtor
)
1175 #if _MSVCP_VER == 110
1176 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1177 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1184 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD00@Z */
1185 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD00@Z */
1186 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setp_next
, 16)
1187 void __thiscall
basic_streambuf_char_setp_next(basic_streambuf_char
*this, char *first
, char *next
, char *last
)
1189 TRACE("(%p %p %p %p)\n", this, first
, next
, last
);
1193 this->wsize
= last
-next
;
1196 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD0@Z */
1197 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD0@Z */
1198 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setp
, 12)
1199 void __thiscall
basic_streambuf_char_setp(basic_streambuf_char
*this, char *first
, char *last
)
1201 basic_streambuf_char_setp_next(this, first
, first
, last
);
1204 /* ?setg@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD00@Z */
1205 /* ?setg@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD00@Z */
1206 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setg
, 16)
1207 void __thiscall
basic_streambuf_char_setg(basic_streambuf_char
*this, char *first
, char *next
, char *last
)
1209 TRACE("(%p %p %p %p)\n", this, first
, next
, last
);
1213 this->rsize
= last
-next
;
1216 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXXZ */
1217 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXXZ */
1218 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Init_empty
, 4)
1219 void __thiscall
basic_streambuf_char__Init_empty(basic_streambuf_char
*this)
1221 TRACE("(%p)\n", this);
1223 this->prbuf
= &this->rbuf
;
1224 this->pwbuf
= &this->wbuf
;
1225 this->prpos
= &this->rpos
;
1226 this->pwpos
= &this->wpos
;
1227 this->prsize
= &this->rsize
;
1228 this->pwsize
= &this->wsize
;
1230 basic_streambuf_char_setp(this, NULL
, NULL
);
1231 basic_streambuf_char_setg(this, NULL
, NULL
, NULL
);
1234 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAE@W4_Uninitialized@1@@Z */
1235 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAA@W4_Uninitialized@1@@Z */
1236 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_ctor_uninitialized
, 8)
1237 basic_streambuf_char
* __thiscall
basic_streambuf_char_ctor_uninitialized(basic_streambuf_char
*this, int uninitialized
)
1239 TRACE("(%p %d)\n", this, uninitialized
);
1240 this->vtable
= &MSVCP_basic_streambuf_char_vtable
;
1241 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
1242 mutex_ctor(&this->lock
);
1247 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAE@XZ */
1248 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAA@XZ */
1249 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_ctor
, 4)
1250 basic_streambuf_char
* __thiscall
basic_streambuf_char_ctor(basic_streambuf_char
*this)
1252 TRACE("(%p)\n", this);
1254 this->vtable
= &MSVCP_basic_streambuf_char_vtable
;
1255 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
1256 mutex_ctor(&this->lock
);
1258 #if _MSVCP_VER >= 70
1259 this->loc
= MSVCRT_operator_new(sizeof(locale
));
1261 locale_ctor(IOS_LOCALE(this));
1262 basic_streambuf_char__Init_empty(this);
1267 /* ??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UAE@XZ */
1268 /* ??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UEAA@XZ */
1269 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_dtor
, 4)
1270 void __thiscall
basic_streambuf_char_dtor(basic_streambuf_char
*this)
1272 TRACE("(%p)\n", this);
1274 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
1275 mutex_dtor(&this->lock
);
1277 locale_dtor(IOS_LOCALE(this));
1278 #if _MSVCP_VER >= 70
1279 MSVCRT_operator_delete(this->loc
);
1283 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_vector_dtor
, 8)
1284 basic_streambuf_char
* __thiscall
basic_streambuf_char_vector_dtor(basic_streambuf_char
*this, unsigned int flags
)
1286 TRACE("(%p %x)\n", this, flags
);
1288 /* we have an array, with the number of elements stored before the first object */
1289 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
1291 for(i
=*ptr
-1; i
>=0; i
--)
1292 basic_streambuf_char_dtor(this+i
);
1293 MSVCRT_operator_delete(ptr
);
1295 basic_streambuf_char_dtor(this);
1297 MSVCRT_operator_delete(this);
1303 /* ?_Gnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEHXZ */
1304 /* ?_Gnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBA_JXZ */
1305 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Gnavail
, 4)
1306 streamsize __thiscall
basic_streambuf_char__Gnavail(const basic_streambuf_char
*this)
1308 TRACE("(%p)\n", this);
1309 return *this->prpos
? *this->prsize
: 0;
1312 /* ?_Gndec@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
1313 /* ?_Gndec@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
1314 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Gndec
, 4)
1315 char* __thiscall
basic_streambuf_char__Gndec(basic_streambuf_char
*this)
1317 TRACE("(%p)\n", this);
1320 return *this->prpos
;
1323 /* ?_Gninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
1324 /* ?_Gninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
1325 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Gninc
, 4)
1326 char* __thiscall
basic_streambuf_char__Gninc(basic_streambuf_char
*this)
1328 TRACE("(%p)\n", this);
1330 return (*this->prpos
)++;
1333 /* ?_Gnpreinc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
1334 /* ?_Gnpreinc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
1335 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Gnpreinc
, 4)
1336 char* __thiscall
basic_streambuf_char__Gnpreinc(basic_streambuf_char
*this)
1338 TRACE("(%p)\n", this);
1341 return *this->prpos
;
1344 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAPAD0PAH001@Z */
1345 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAPEAD0PEAH001@Z */
1346 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Init
, 28)
1347 void __thiscall
basic_streambuf_char__Init(basic_streambuf_char
*this, char **gf
, char **gn
, int *gc
, char **pf
, char **pn
, int *pc
)
1349 TRACE("(%p %p %p %p %p %p %p)\n", this, gf
, gn
, gc
, pf
, pn
, pc
);
1359 /* ?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
1360 /* ?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
1361 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Lock
, 4)
1362 #if _MSVCP_VER >= 100
1363 #define call_basic_streambuf_char__Lock(this) CALL_VTBL_FUNC(this, 4, void, (basic_streambuf_char*), (this))
1365 #define call_basic_streambuf_char__Lock(this) basic_streambuf_char__Lock(this)
1367 void __thiscall
basic_streambuf_char__Lock(basic_streambuf_char
*this)
1369 TRACE("(%p)\n", this);
1370 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
1371 mutex_lock(&this->lock
);
1375 /* ?_Pnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEHXZ */
1376 /* ?_Pnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBA_JXZ */
1377 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Pnavail
, 4)
1378 streamsize __thiscall
basic_streambuf_char__Pnavail(const basic_streambuf_char
*this)
1380 TRACE("(%p)\n", this);
1381 return *this->pwpos
? *this->pwsize
: 0;
1384 /* ?_Pninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
1385 /* ?_Pninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
1386 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Pninc
, 4)
1387 char* __thiscall
basic_streambuf_char__Pninc(basic_streambuf_char
*this)
1389 TRACE("(%p)\n", this);
1391 return (*this->pwpos
)++;
1394 /* ?underflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1395 /* ?underflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
1396 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_underflow
, 4)
1397 #if _MSVCP_VER >= 100
1398 #define call_basic_streambuf_char_underflow(this) CALL_VTBL_FUNC(this, 24, int, (basic_streambuf_char*), (this))
1400 #define call_basic_streambuf_char_underflow(this) CALL_VTBL_FUNC(this, 16, int, (basic_streambuf_char*), (this))
1402 int __thiscall
basic_streambuf_char_underflow(basic_streambuf_char
*this)
1404 TRACE("(%p)\n", this);
1408 /* ?uflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1409 /* ?uflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
1410 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_uflow
, 4)
1411 #if _MSVCP_VER >= 100
1412 #define call_basic_streambuf_char_uflow(this) CALL_VTBL_FUNC(this, 28, int, (basic_streambuf_char*), (this))
1414 #define call_basic_streambuf_char_uflow(this) CALL_VTBL_FUNC(this, 20, int, (basic_streambuf_char*), (this))
1416 int __thiscall
basic_streambuf_char_uflow(basic_streambuf_char
*this)
1420 TRACE("(%p)\n", this);
1422 if(call_basic_streambuf_char_underflow(this)==EOF
)
1425 ret
= (unsigned char)**this->prpos
;
1431 /* ?_Xsgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHPADIH@Z */
1432 /* ?_Xsgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEAD_K_J@Z */
1433 #if STREAMSIZE_BITS == 64
1434 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Xsgetn_s
, 20)
1436 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Xsgetn_s
, 16)
1438 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
1439 #define call_basic_streambuf_char__Xsgetn_s(this, ptr, size, count) CALL_VTBL_FUNC(this, 28, \
1440 streamsize, (basic_streambuf_char*, char*, MSVCP_size_t, streamsize), (this, ptr, size, count))
1442 #define call_basic_streambuf_char__Xsgetn_s(this, ptr, size, count) basic_streambuf_char__Xsgetn_s(this, ptr, size, count)
1444 streamsize __thiscall
basic_streambuf_char__Xsgetn_s(basic_streambuf_char
*this, char *ptr
, MSVCP_size_t size
, streamsize count
)
1446 streamsize copied
, chunk
;
1449 TRACE("(%p %p %lu %s)\n", this, ptr
, size
, wine_dbgstr_longlong(count
));
1451 for(copied
=0; copied
<count
&& size
;) {
1452 chunk
= basic_streambuf_char__Gnavail(this);
1453 if(chunk
> count
-copied
)
1454 chunk
= count
-copied
;
1457 memcpy_s(ptr
+copied
, size
, *this->prpos
, chunk
);
1458 *this->prpos
+= chunk
;
1459 *this->prsize
-= chunk
;
1462 }else if((c
= call_basic_streambuf_char_uflow(this)) != EOF
) {
1474 /* ?_Sgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPADIH@Z */
1475 /* ?_Sgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_K_J@Z */
1476 #if STREAMSIZE_BITS == 64
1477 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Sgetn_s
, 20)
1479 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Sgetn_s
, 16)
1481 streamsize __thiscall
basic_streambuf_char__Sgetn_s(basic_streambuf_char
*this, char *ptr
, MSVCP_size_t size
, streamsize count
)
1483 TRACE("(%p %p %lu %s)\n", this, ptr
, size
, wine_dbgstr_longlong(count
));
1484 return call_basic_streambuf_char__Xsgetn_s(this, ptr
, size
, count
);
1487 /* ?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
1488 /* ?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
1489 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Unlock
, 4)
1490 #if _MSVCP_VER >= 100
1491 #define call_basic_streambuf_char__Unlock(this) CALL_VTBL_FUNC(this, 8, void, (basic_streambuf_char*), (this))
1493 #define call_basic_streambuf_char__Unlock(this) basic_streambuf_char__Unlock(this)
1495 void __thiscall
basic_streambuf_char__Unlock(basic_streambuf_char
*this)
1497 TRACE("(%p)\n", this);
1498 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
1499 mutex_unlock(&this->lock
);
1503 /* ?eback@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1504 /* ?eback@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1505 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_eback
, 4)
1506 char* __thiscall
basic_streambuf_char_eback(const basic_streambuf_char
*this)
1508 TRACE("(%p)\n", this);
1509 return *this->prbuf
;
1512 /* ?gptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1513 /* ?gptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1514 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_gptr
, 4)
1515 char* __thiscall
basic_streambuf_char_gptr(const basic_streambuf_char
*this)
1517 TRACE("(%p)\n", this);
1518 return *this->prpos
;
1521 /* ?egptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1522 /* ?egptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1523 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_egptr
, 4)
1524 char* __thiscall
basic_streambuf_char_egptr(const basic_streambuf_char
*this)
1526 TRACE("(%p)\n", this);
1527 return *this->prpos
+*this->prsize
;
1530 /* ?epptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1531 /* ?epptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1532 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_epptr
, 4)
1533 char* __thiscall
basic_streambuf_char_epptr(const basic_streambuf_char
*this)
1535 TRACE("(%p)\n", this);
1536 return *this->pwpos
+*this->pwsize
;
1539 /* ?gbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXH@Z */
1540 /* ?gbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXH@Z */
1541 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_gbump
, 8)
1542 void __thiscall
basic_streambuf_char_gbump(basic_streambuf_char
*this, int off
)
1544 TRACE("(%p %d)\n", this, off
);
1545 *this->prpos
+= off
;
1546 *this->prsize
-= off
;
1549 /* ?getloc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AVlocale@2@XZ */
1550 /* ?getloc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QBE?AVlocale@2@XZ */
1551 /* ?getloc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AVlocale@2@XZ */
1552 /* ?getloc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEBA?AVlocale@2@XZ */
1553 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_getloc
, 8)
1554 locale
* __thiscall
basic_streambuf_char_getloc(const basic_streambuf_char
*this, locale
*ret
)
1556 TRACE("(%p)\n", this);
1557 return locale_copy_ctor(ret
, IOS_LOCALE(this));
1560 /* ?imbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEXABVlocale@2@@Z */
1561 /* ?imbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAXAEBVlocale@2@@Z */
1562 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_imbue
, 8)
1563 #if _MSVCP_VER >= 100
1564 #define call_basic_streambuf_char_imbue(this, loc) CALL_VTBL_FUNC(this, 56, void, (basic_streambuf_char*, const locale*), (this, loc))
1565 #elif _MSVCP_VER >= 80
1566 #define call_basic_streambuf_char_imbue(this, loc) CALL_VTBL_FUNC(this, 52, void, (basic_streambuf_char*, const locale*), (this, loc))
1568 #define call_basic_streambuf_char_imbue(this, loc) CALL_VTBL_FUNC(this, 48, void, (basic_streambuf_char*, const locale*), (this, loc))
1570 void __thiscall
basic_streambuf_char_imbue(basic_streambuf_char
*this, const locale
*loc
)
1572 TRACE("(%p %p)\n", this, loc
);
1575 /* ?overflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHH@Z */
1576 /* ?overflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z */
1577 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_overflow
, 8)
1578 #if _MSVCP_VER >= 100
1579 #define call_basic_streambuf_char_overflow(this, ch) CALL_VTBL_FUNC(this, 12, int, (basic_streambuf_char*, int), (this, ch))
1581 #define call_basic_streambuf_char_overflow(this, ch) CALL_VTBL_FUNC(this, 4, int, (basic_streambuf_char*, int), (this, ch))
1583 int __thiscall
basic_streambuf_char_overflow(basic_streambuf_char
*this, int ch
)
1585 TRACE("(%p %d)\n", this, ch
);
1589 /* ?pbackfail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHH@Z */
1590 /* ?pbackfail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z */
1591 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pbackfail
, 8)
1592 #if _MSVCP_VER >= 100
1593 #define call_basic_streambuf_char_pbackfail(this, ch) CALL_VTBL_FUNC(this, 16, int, (basic_streambuf_char*, int), (this, ch))
1595 #define call_basic_streambuf_char_pbackfail(this, ch) CALL_VTBL_FUNC(this, 8, int, (basic_streambuf_char*, int), (this, ch))
1597 int __thiscall
basic_streambuf_char_pbackfail(basic_streambuf_char
*this, int ch
)
1599 TRACE("(%p %d)\n", this, ch
);
1603 /* ?pbase@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1604 /* ?pbase@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1605 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pbase
, 4)
1606 char* __thiscall
basic_streambuf_char_pbase(const basic_streambuf_char
*this)
1608 TRACE("(%p)\n", this);
1609 return *this->pwbuf
;
1612 /* ?pbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXH@Z */
1613 /* ?pbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXH@Z */
1614 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pbump
, 8)
1615 void __thiscall
basic_streambuf_char_pbump(basic_streambuf_char
*this, int off
)
1617 TRACE("(%p %d)\n", this, off
);
1618 *this->pwpos
+= off
;
1619 *this->pwsize
-= off
;
1622 /* ?pptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1623 /* ?pptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1624 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pptr
, 4)
1625 char* __thiscall
basic_streambuf_char_pptr(const basic_streambuf_char
*this)
1627 TRACE("(%p)\n", this);
1628 return *this->pwpos
;
1631 /* ?pubimbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
1632 /* ?pubimbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
1633 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubimbue
, 12)
1634 locale
* __thiscall
basic_streambuf_char_pubimbue(basic_streambuf_char
*this, locale
*ret
, const locale
*loc
)
1636 TRACE("(%p %p)\n", this, loc
);
1637 memcpy(ret
, IOS_LOCALE(this), sizeof(locale
));
1638 call_basic_streambuf_char_imbue(this, loc
);
1639 locale_copy_ctor(IOS_LOCALE(this), loc
);
1643 /* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
1644 /* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
1645 /* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
1646 /* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
1647 #if STREAMOFF_BITS == 64
1648 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_seekoff
, 24)
1650 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_seekoff
, 20)
1652 #if _MSVCP_VER >= 100
1653 #define call_basic_streambuf_char_seekoff(this, ret, off, way, mode) \
1654 CALL_VTBL_FUNC(this, 40, fpos_mbstatet*, (basic_streambuf_char*, fpos_mbstatet*, streamoff, int, int), (this, ret, off, way, mode))
1655 #elif _MSVCP_VER >= 80
1656 #define call_basic_streambuf_char_seekoff(this, ret, off, way, mode) \
1657 CALL_VTBL_FUNC(this, 36, fpos_mbstatet*, (basic_streambuf_char*, fpos_mbstatet*, streamoff, int, int), (this, ret, off, way, mode))
1659 #define call_basic_streambuf_char_seekoff(this, ret, off, way, mode) \
1660 CALL_VTBL_FUNC(this, 32, fpos_mbstatet*, (basic_streambuf_char*, fpos_mbstatet*, streamoff, int, int), (this, ret, off, way, mode))
1662 fpos_mbstatet
* __thiscall
basic_streambuf_char_seekoff(basic_streambuf_char
*this,
1663 fpos_mbstatet
*ret
, streamoff off
, int way
, int mode
)
1665 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
1668 memset(&ret
->state
, 0, sizeof(ret
->state
));
1672 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JHH@Z */
1673 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JHH@Z */
1674 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JFF@Z */
1675 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JFF@Z */
1676 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
1677 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
1678 #if STREAMOFF_BITS == 64
1679 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff
, 24)
1681 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff
, 20)
1683 fpos_mbstatet
* __thiscall
basic_streambuf_char_pubseekoff(basic_streambuf_char
*this,
1684 fpos_mbstatet
*ret
, streamoff off
, int way
, int mode
)
1686 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
1687 return call_basic_streambuf_char_seekoff(this, ret
, off
, way
, mode
);
1690 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JII@Z */
1691 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JII@Z */
1692 #if STREAMOFF_BITS == 64
1693 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff_old
, 24)
1695 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff_old
, 20)
1697 fpos_mbstatet
* __thiscall
basic_streambuf_char_pubseekoff_old(basic_streambuf_char
*this,
1698 fpos_mbstatet
*ret
, streamoff off
, unsigned int way
, unsigned int mode
)
1700 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
1701 return basic_streambuf_char_pubseekoff(this, ret
, off
, way
, mode
);
1704 /* ?seekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
1705 /* ?seekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
1706 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_seekpos
, 36)
1707 #if _MSVCP_VER >= 100
1708 #define call_basic_streambuf_char_seekpos(this, ret, pos, mode) \
1709 CALL_VTBL_FUNC(this, 44, fpos_mbstatet*, (basic_streambuf_char*, fpos_mbstatet*, fpos_mbstatet, int), (this, ret, pos, mode))
1710 #elif _MSVCP_VER >= 80
1711 #define call_basic_streambuf_char_seekpos(this, ret, pos, mode) \
1712 CALL_VTBL_FUNC(this, 40, fpos_mbstatet*, (basic_streambuf_char*, fpos_mbstatet*, fpos_mbstatet, int), (this, ret, pos, mode))
1714 #define call_basic_streambuf_char_seekpos(this, ret, pos, mode) \
1715 CALL_VTBL_FUNC(this, 36, fpos_mbstatet*, (basic_streambuf_char*, fpos_mbstatet*, fpos_mbstatet, int), (this, ret, pos, mode))
1717 fpos_mbstatet
* __thiscall
basic_streambuf_char_seekpos(basic_streambuf_char
*this,
1718 fpos_mbstatet
*ret
, fpos_mbstatet pos
, int mode
)
1720 TRACE("(%p %s %d)\n", this, debugstr_fpos_mbstatet(&pos
), mode
);
1723 memset(&ret
->state
, 0, sizeof(ret
->state
));
1727 /* ?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@V32@H@Z */
1728 /* ?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@V32@H@Z */
1729 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekpos
, 36)
1730 fpos_mbstatet
* __thiscall
basic_streambuf_char_pubseekpos(basic_streambuf_char
*this,
1731 fpos_mbstatet
*ret
, fpos_mbstatet pos
, int mode
)
1733 TRACE("(%p %s %d)\n", this, debugstr_fpos_mbstatet(&pos
), mode
);
1734 return call_basic_streambuf_char_seekpos(this, ret
, pos
, mode
);
1737 /* ?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@V32@I@Z */
1738 /* ?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@V32@I@Z */
1739 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekpos_old
, 36)
1740 fpos_mbstatet
* __thiscall
basic_streambuf_char_pubseekpos_old(basic_streambuf_char
*this,
1741 fpos_mbstatet
*ret
, fpos_mbstatet pos
, unsigned int mode
)
1743 TRACE("(%p %s %d)\n", this, debugstr_fpos_mbstatet(&pos
), mode
);
1744 return basic_streambuf_char_pubseekpos(this, ret
, pos
, mode
);
1747 /* ?setbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEPAV12@PADH@Z */
1748 /* ?setbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAPEAV12@PEAD_J@Z */
1749 #if STREAMSIZE_BITS == 64
1750 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setbuf
, 16)
1752 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setbuf
, 12)
1754 #if _MSVCP_VER >= 100
1755 #define call_basic_streambuf_char_setbuf(this, buf, count) CALL_VTBL_FUNC(this, 48, basic_streambuf_char*, (basic_streambuf_char*, char*, streamsize), (this, buf, count))
1756 #elif _MSVCP_VER >= 80
1757 #define call_basic_streambuf_char_setbuf(this, buf, count) CALL_VTBL_FUNC(this, 44, basic_streambuf_char*, (basic_streambuf_char*, char*, streamsize), (this, buf, count))
1759 #define call_basic_streambuf_char_setbuf(this, buf, count) CALL_VTBL_FUNC(this, 40, basic_streambuf_char*, (basic_streambuf_char*, char*, streamsize), (this, buf, count))
1761 basic_streambuf_char
* __thiscall
basic_streambuf_char_setbuf(basic_streambuf_char
*this, char *buf
, streamsize count
)
1763 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
1767 /* ?pubsetbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PADH@Z */
1768 /* ?pubsetbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEAD_J@Z */
1769 #if STREAMSIZE_BITS == 64
1770 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubsetbuf
, 16)
1772 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubsetbuf
, 12)
1774 basic_streambuf_char
* __thiscall
basic_streambuf_char_pubsetbuf(basic_streambuf_char
*this, char *buf
, streamsize count
)
1776 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
1777 return call_basic_streambuf_char_setbuf(this, buf
, count
);
1780 /* ?sync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1781 /* ?sync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
1782 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sync
, 4)
1783 #if _MSVCP_VER >= 100
1784 #define call_basic_streambuf_char_sync(this) CALL_VTBL_FUNC(this, 52, int, (basic_streambuf_char*), (this))
1785 #elif _MSVCP_VER >= 80
1786 #define call_basic_streambuf_char_sync(this) CALL_VTBL_FUNC(this, 48, int, (basic_streambuf_char*), (this))
1788 #define call_basic_streambuf_char_sync(this) CALL_VTBL_FUNC(this, 44, int, (basic_streambuf_char*), (this))
1790 int __thiscall
basic_streambuf_char_sync(basic_streambuf_char
*this)
1792 TRACE("(%p)\n", this);
1796 /* ?pubsync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1797 /* ?pubsync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1798 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubsync
, 4)
1799 int __thiscall
basic_streambuf_char_pubsync(basic_streambuf_char
*this)
1801 TRACE("(%p)\n", this);
1802 return call_basic_streambuf_char_sync(this);
1805 /* ?sgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPADH@Z */
1806 /* ?sgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_J@Z */
1807 #if STREAMSIZE_BITS == 64
1808 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sgetn
, 16)
1810 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sgetn
, 12)
1812 streamsize __thiscall
basic_streambuf_char_sgetn(basic_streambuf_char
*this, char *ptr
, streamsize count
)
1814 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
1815 return call_basic_streambuf_char__Xsgetn_s(this, ptr
, -1, count
);
1818 /* ?showmanyc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1819 /* ?showmanyc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JXZ */
1820 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_showmanyc
, 4)
1821 #if _MSVCP_VER >= 100
1822 #define call_basic_streambuf_char_showmanyc(this) CALL_VTBL_FUNC(this, 20, streamsize, (basic_streambuf_char*), (this))
1824 #define call_basic_streambuf_char_showmanyc(this) CALL_VTBL_FUNC(this, 12, streamsize, (basic_streambuf_char*), (this))
1826 streamsize __thiscall
basic_streambuf_char_showmanyc(basic_streambuf_char
*this)
1828 TRACE("(%p)\n", this);
1832 /* ?in_avail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1833 /* ?in_avail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JXZ */
1834 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_in_avail
, 4)
1835 streamsize __thiscall
basic_streambuf_char_in_avail(basic_streambuf_char
*this)
1839 TRACE("(%p)\n", this);
1841 ret
= basic_streambuf_char__Gnavail(this);
1842 return ret
? ret
: call_basic_streambuf_char_showmanyc(this);
1845 /* ?sputbackc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z */
1846 /* ?sputbackc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHD@Z */
1847 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputbackc
, 8)
1848 int __thiscall
basic_streambuf_char_sputbackc(basic_streambuf_char
*this, char ch
)
1850 TRACE("(%p %d)\n", this, ch
);
1851 if(*this->prpos
&& *this->prpos
>*this->prbuf
&& (*this->prpos
)[-1]==ch
) {
1854 return (unsigned char)ch
;
1857 return call_basic_streambuf_char_pbackfail(this, (unsigned char)ch
);
1860 /* ?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z */
1861 /* ?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHD@Z */
1862 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputc
, 8)
1863 int __thiscall
basic_streambuf_char_sputc(basic_streambuf_char
*this, char ch
)
1865 TRACE("(%p %d)\n", this, ch
);
1866 return basic_streambuf_char__Pnavail(this) ?
1867 (unsigned char)(*basic_streambuf_char__Pninc(this) = ch
) :
1868 call_basic_streambuf_char_overflow(this, (unsigned char)ch
);
1871 /* ?sungetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1872 /* ?sungetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1873 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sungetc
, 4)
1874 int __thiscall
basic_streambuf_char_sungetc(basic_streambuf_char
*this)
1876 TRACE("(%p)\n", this);
1877 if(*this->prpos
&& *this->prpos
>*this->prbuf
) {
1880 return (unsigned char)**this->prpos
;
1883 return call_basic_streambuf_char_pbackfail(this, EOF
);
1886 /* ?stossc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
1887 /* ?stossc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
1888 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_stossc
, 4)
1889 void __thiscall
basic_streambuf_char_stossc(basic_streambuf_char
*this)
1891 TRACE("(%p)\n", this);
1892 if(basic_streambuf_char__Gnavail(this))
1893 basic_streambuf_char__Gninc(this);
1895 call_basic_streambuf_char_uflow(this);
1898 /* ?sbumpc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1899 /* ?sbumpc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1900 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sbumpc
, 4)
1901 int __thiscall
basic_streambuf_char_sbumpc(basic_streambuf_char
*this)
1903 TRACE("(%p)\n", this);
1904 return basic_streambuf_char__Gnavail(this) ?
1905 (int)(unsigned char)*basic_streambuf_char__Gninc(this) : call_basic_streambuf_char_uflow(this);
1908 /* ?sgetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1909 /* ?sgetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1910 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sgetc
, 4)
1911 int __thiscall
basic_streambuf_char_sgetc(basic_streambuf_char
*this)
1913 TRACE("(%p)\n", this);
1914 return basic_streambuf_char__Gnavail(this) ?
1915 (int)(unsigned char)*basic_streambuf_char_gptr(this) : call_basic_streambuf_char_underflow(this);
1918 /* ?snextc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1919 /* ?snextc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1920 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_snextc
, 4)
1921 int __thiscall
basic_streambuf_char_snextc(basic_streambuf_char
*this)
1923 TRACE("(%p)\n", this);
1925 if(basic_streambuf_char__Gnavail(this) > 1)
1926 return (unsigned char)*basic_streambuf_char__Gnpreinc(this);
1927 return basic_streambuf_char_sbumpc(this)==EOF
?
1928 EOF
: basic_streambuf_char_sgetc(this);
1931 /* ?xsgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHPADH@Z */
1932 /* ?xsgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEAD_J@Z */
1933 #if STREAMSIZE_BITS == 64
1934 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsgetn
, 16)
1936 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsgetn
, 12)
1938 #if _MSVCP_VER >= 100
1939 #define call_basic_streambuf_char_xsgetn(this, ptr, count) CALL_VTBL_FUNC(this, 32, streamsize, (basic_streambuf_char*, char*, streamsize), (this, ptr, count))
1941 #define call_basic_streambuf_char_xsgetn(this, ptr, count) CALL_VTBL_FUNC(this, 24, streamsize, (basic_streambuf_char*, char*, streamsize), (this, ptr, count))
1943 streamsize __thiscall
basic_streambuf_char_xsgetn(basic_streambuf_char
*this, char *ptr
, streamsize count
)
1945 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
1946 return call_basic_streambuf_char__Xsgetn_s(this, ptr
, -1, count
);
1949 /* ?xsputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHPBDH@Z */
1950 /* ?xsputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEBD_J@Z */
1951 #if STREAMSIZE_BITS == 64
1952 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsputn
, 16)
1954 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsputn
, 12)
1956 #if _MSVCP_VER >= 100
1957 #define call_basic_streambuf_char_xsputn(this, ptr, count) CALL_VTBL_FUNC(this, 36, streamsize, (basic_streambuf_char*, const char*, streamsize), (this, ptr, count))
1958 #elif _MSVCP_VER >= 80
1959 #define call_basic_streambuf_char_xsputn(this, ptr, count) CALL_VTBL_FUNC(this, 32, streamsize, (basic_streambuf_char*, const char*, streamsize), (this, ptr, count))
1961 #define call_basic_streambuf_char_xsputn(this, ptr, count) CALL_VTBL_FUNC(this, 28, streamsize, (basic_streambuf_char*, const char*, streamsize), (this, ptr, count))
1963 streamsize __thiscall
basic_streambuf_char_xsputn(basic_streambuf_char
*this, const char *ptr
, streamsize count
)
1965 streamsize copied
, chunk
;
1967 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
1969 for(copied
=0; copied
<count
;) {
1970 chunk
= basic_streambuf_char__Pnavail(this);
1971 if(chunk
> count
-copied
)
1972 chunk
= count
-copied
;
1975 memcpy(*this->pwpos
, ptr
+copied
, chunk
);
1976 *this->pwpos
+= chunk
;
1977 *this->pwsize
-= chunk
;
1979 }else if(call_basic_streambuf_char_overflow(this, (unsigned char)ptr
[copied
]) != EOF
) {
1989 /* ?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPBDH@Z */
1990 /* ?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEBD_J@Z */
1991 #if STREAMSIZE_BITS == 64
1992 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputn
, 16)
1994 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputn
, 12)
1996 streamsize __thiscall
basic_streambuf_char_sputn(basic_streambuf_char
*this, const char *ptr
, streamsize count
)
1998 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
1999 return call_basic_streambuf_char_xsputn(this, ptr
, count
);
2002 /* ?swap@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXAAV12@@Z */
2003 /* ?swap@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXAEAV12@@Z */
2004 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_swap
, 8)
2005 void __thiscall
basic_streambuf_char_swap(basic_streambuf_char
*this, basic_streambuf_char
*r
)
2007 char *wfirst
, *wnext
, *wlast
, *rfirst
, *rnext
, *rlast
;
2014 TRACE("(%p %p)\n", this, r
);
2019 wfirst
= *this->pwbuf
;
2020 wnext
= *this->pwpos
;
2021 wlast
= *this->pwpos
+ *this->pwsize
;
2022 rfirst
= *this->prbuf
;
2023 rnext
= *this->prpos
;
2024 rlast
= *this->prpos
+ *this->prsize
;
2027 basic_streambuf_char_setp_next(this, *r
->pwbuf
, *r
->pwpos
, *r
->pwpos
+ *r
->pwsize
);
2028 basic_streambuf_char_setg(this, *r
->prbuf
, *r
->prpos
, *r
->prpos
+ *r
->prsize
);
2031 basic_streambuf_char_setp_next(r
, wfirst
, wnext
, wlast
);
2032 basic_streambuf_char_setg(r
, rfirst
, rnext
, rlast
);
2036 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPA_W00@Z */
2037 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEA_W00@Z */
2038 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAG00@Z */
2039 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAG00@Z */
2040 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setp_next
, 16)
2041 void __thiscall
basic_streambuf_wchar_setp_next(basic_streambuf_wchar
*this, wchar_t *first
, wchar_t *next
, wchar_t *last
)
2043 TRACE("(%p %p %p %p)\n", this, first
, next
, last
);
2047 this->wsize
= last
-next
;
2050 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPA_W0@Z */
2051 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEA_W0@Z */
2052 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAG0@Z */
2053 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAG0@Z */
2054 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setp
, 12)
2055 void __thiscall
basic_streambuf_wchar_setp(basic_streambuf_wchar
*this, wchar_t *first
, wchar_t *last
)
2057 basic_streambuf_wchar_setp_next(this, first
, first
, last
);
2060 /* ?setg@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPA_W00@Z */
2061 /* ?setg@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEA_W00@Z */
2062 /* ?setg@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAG00@Z */
2063 /* ?setg@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAG00@Z */
2064 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setg
, 16)
2065 void __thiscall
basic_streambuf_wchar_setg(basic_streambuf_wchar
*this, wchar_t *first
, wchar_t *next
, wchar_t *last
)
2067 TRACE("(%p %p %p %p)\n", this, first
, next
, last
);
2071 this->rsize
= last
-next
;
2074 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXXZ */
2075 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXXZ */
2076 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXXZ */
2077 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXXZ */
2078 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Init_empty
, 4)
2079 void __thiscall
basic_streambuf_wchar__Init_empty(basic_streambuf_wchar
*this)
2081 TRACE("(%p)\n", this);
2083 this->prbuf
= &this->rbuf
;
2084 this->pwbuf
= &this->wbuf
;
2085 this->prpos
= &this->rpos
;
2086 this->pwpos
= &this->wpos
;
2087 this->prsize
= &this->rsize
;
2088 this->pwsize
= &this->wsize
;
2090 basic_streambuf_wchar_setp(this, NULL
, NULL
);
2091 basic_streambuf_wchar_setg(this, NULL
, NULL
, NULL
);
2094 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAE@W4_Uninitialized@1@@Z */
2095 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAA@W4_Uninitialized@1@@Z */
2096 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_ctor_uninitialized
, 8)
2097 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_ctor_uninitialized(basic_streambuf_wchar
*this, int uninitialized
)
2099 TRACE("(%p %d)\n", this, uninitialized
);
2100 this->vtable
= &MSVCP_basic_streambuf_wchar_vtable
;
2101 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
2102 mutex_ctor(&this->lock
);
2107 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAE@W4_Uninitialized@1@@Z */
2108 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAA@W4_Uninitialized@1@@Z */
2109 DEFINE_THISCALL_WRAPPER(basic_streambuf_short_ctor_uninitialized
, 8)
2110 basic_streambuf_wchar
* __thiscall
basic_streambuf_short_ctor_uninitialized(basic_streambuf_wchar
*this, int uninitialized
)
2112 TRACE("(%p %d)\n", this, uninitialized
);
2113 basic_streambuf_wchar_ctor_uninitialized(this, uninitialized
);
2114 this->vtable
= &MSVCP_basic_streambuf_short_vtable
;
2118 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAE@XZ */
2119 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAA@XZ */
2120 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_ctor
, 4)
2121 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_ctor(basic_streambuf_wchar
*this)
2123 TRACE("(%p)\n", this);
2125 this->vtable
= &MSVCP_basic_streambuf_wchar_vtable
;
2126 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
2127 mutex_ctor(&this->lock
);
2129 #if _MSVCP_VER >= 70
2130 this->loc
= MSVCRT_operator_new(sizeof(locale
));
2132 locale_ctor(IOS_LOCALE(this));
2133 basic_streambuf_wchar__Init_empty(this);
2138 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAE@XZ */
2139 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAA@XZ */
2140 DEFINE_THISCALL_WRAPPER(basic_streambuf_short_ctor
, 4)
2141 basic_streambuf_wchar
* __thiscall
basic_streambuf_short_ctor(basic_streambuf_wchar
*this)
2143 TRACE("(%p)\n", this);
2144 basic_streambuf_wchar_ctor(this);
2145 this->vtable
= &MSVCP_basic_streambuf_short_vtable
;
2149 /* ??1?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
2150 /* ??1?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
2151 /* ??1?$basic_streambuf@GU?$char_traits@G@std@@@std@@UAE@XZ */
2152 /* ??1?$basic_streambuf@GU?$char_traits@G@std@@@std@@UEAA@XZ */
2153 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_dtor
, 4)
2154 void __thiscall
basic_streambuf_wchar_dtor(basic_streambuf_wchar
*this)
2156 TRACE("(%p)\n", this);
2158 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
2159 mutex_dtor(&this->lock
);
2161 locale_dtor(IOS_LOCALE(this));
2162 #if _MSVCP_VER >= 70
2163 MSVCRT_operator_delete(this->loc
);
2167 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_vector_dtor
, 8)
2168 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_vector_dtor(basic_streambuf_wchar
*this, unsigned int flags
)
2170 TRACE("(%p %x)\n", this, flags
);
2172 /* we have an array, with the number of elements stored before the first object */
2173 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
2175 for(i
=*ptr
-1; i
>=0; i
--)
2176 basic_streambuf_wchar_dtor(this+i
);
2177 MSVCRT_operator_delete(ptr
);
2179 basic_streambuf_wchar_dtor(this);
2181 MSVCRT_operator_delete(this);
2187 /* ?_Gnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEHXZ */
2188 /* ?_Gnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBA_JXZ */
2189 /* ?_Gnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEHXZ */
2190 /* ?_Gnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBA_JXZ */
2191 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Gnavail
, 4)
2192 streamsize __thiscall
basic_streambuf_wchar__Gnavail(const basic_streambuf_wchar
*this)
2194 TRACE("(%p)\n", this);
2195 return *this->prpos
? *this->prsize
: 0;
2198 /* ?_Gndec@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
2199 /* ?_Gndec@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
2200 /* ?_Gndec@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
2201 /* ?_Gndec@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
2202 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Gndec
, 4)
2203 wchar_t* __thiscall
basic_streambuf_wchar__Gndec(basic_streambuf_wchar
*this)
2205 TRACE("(%p)\n", this);
2208 return *this->prpos
;
2211 /* ?_Gninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
2212 /* ?_Gninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
2213 /* ?_Gninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
2214 /* ?_Gninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
2215 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Gninc
, 4)
2216 wchar_t* __thiscall
basic_streambuf_wchar__Gninc(basic_streambuf_wchar
*this)
2218 TRACE("(%p)\n", this);
2220 return (*this->prpos
)++;
2223 /* ?_Gnpreinc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
2224 /* ?_Gnpreinc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
2225 /* ?_Gnpreinc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
2226 /* ?_Gnpreinc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
2227 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Gnpreinc
, 4)
2228 wchar_t* __thiscall
basic_streambuf_wchar__Gnpreinc(basic_streambuf_wchar
*this)
2230 TRACE("(%p)\n", this);
2233 return *this->prpos
;
2236 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPAPA_W0PAH001@Z */
2237 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEAPEA_W0PEAH001@Z */
2238 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAPAG0PAH001@Z */
2239 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAPEAG0PEAH001@Z */
2240 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Init
, 28)
2241 void __thiscall
basic_streambuf_wchar__Init(basic_streambuf_wchar
*this, wchar_t **gf
, wchar_t **gn
, int *gc
, wchar_t **pf
, wchar_t **pn
, int *pc
)
2243 TRACE("(%p %p %p %p %p %p %p)\n", this, gf
, gn
, gc
, pf
, pn
, pc
);
2253 /* ?_Lock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
2254 /* ?_Lock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
2255 /* ?_Lock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
2256 /* ?_Lock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
2257 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Lock
, 4)
2258 void __thiscall
basic_streambuf_wchar__Lock(basic_streambuf_wchar
*this)
2260 TRACE("(%p)\n", this);
2261 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
2262 mutex_lock(&this->lock
);
2266 /* ?_Pnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEHXZ */
2267 /* ?_Pnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBA_JXZ */
2268 /* ?_Pnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEHXZ */
2269 /* ?_Pnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBA_JXZ */
2270 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Pnavail
, 4)
2271 streamsize __thiscall
basic_streambuf_wchar__Pnavail(const basic_streambuf_wchar
*this)
2273 TRACE("(%p)\n", this);
2274 return *this->pwpos
? *this->pwsize
: 0;
2277 /* ?_Pninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
2278 /* ?_Pninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
2279 /* ?_Pninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
2280 /* ?_Pninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
2281 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Pninc
, 4)
2282 wchar_t* __thiscall
basic_streambuf_wchar__Pninc(basic_streambuf_wchar
*this)
2284 TRACE("(%p)\n", this);
2286 return (*this->pwpos
)++;
2289 /* ?underflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
2290 /* ?underflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
2291 /* ?underflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
2292 /* ?underflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
2293 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_underflow
, 4)
2294 #if _MSVCP_VER >= 100
2295 #define call_basic_streambuf_wchar_underflow(this) CALL_VTBL_FUNC(this, 24, unsigned short, (basic_streambuf_wchar*), (this))
2297 #define call_basic_streambuf_wchar_underflow(this) CALL_VTBL_FUNC(this, 16, unsigned short, (basic_streambuf_wchar*), (this))
2299 unsigned short __thiscall
basic_streambuf_wchar_underflow(basic_streambuf_wchar
*this)
2301 TRACE("(%p)\n", this);
2305 /* ?uflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
2306 /* ?uflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
2307 /* ?uflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
2308 /* ?uflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
2309 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_uflow
, 4)
2310 #if _MSVCP_VER >= 100
2311 #define call_basic_streambuf_wchar_uflow(this) CALL_VTBL_FUNC(this, 28, unsigned short, (basic_streambuf_wchar*), (this))
2313 #define call_basic_streambuf_wchar_uflow(this) CALL_VTBL_FUNC(this, 20, unsigned short, (basic_streambuf_wchar*), (this))
2315 unsigned short __thiscall
basic_streambuf_wchar_uflow(basic_streambuf_wchar
*this)
2319 TRACE("(%p)\n", this);
2321 if(call_basic_streambuf_wchar_underflow(this)==WEOF
)
2324 ret
= **this->prpos
;
2330 /* ?_Xsgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHPA_WIH@Z */
2331 /* ?_Xsgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEA_W_K_J@Z */
2332 /* ?_Xsgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHPAGIH@Z */
2333 /* ?_Xsgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JPEAG_K_J@Z */
2334 #if STREAMSIZE_BITS == 64
2335 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Xsgetn_s
, 20)
2337 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Xsgetn_s
, 16)
2339 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
2340 #define call_basic_streambuf_wchar__Xsgetn_s(this, ptr, size, count) CALL_VTBL_FUNC(this, 28, \
2341 streamsize, (basic_streambuf_wchar*, wchar_t*, MSVCP_size_t, streamsize), (this, ptr, size, count))
2343 #define call_basic_streambuf_wchar__Xsgetn_s(this, ptr, size, count) basic_streambuf_wchar__Xsgetn_s(this, ptr, size, count)
2345 streamsize __thiscall
basic_streambuf_wchar__Xsgetn_s(basic_streambuf_wchar
*this, wchar_t *ptr
, MSVCP_size_t size
, streamsize count
)
2347 streamsize copied
, chunk
;
2350 TRACE("(%p %p %lu %s)\n", this, ptr
, size
, wine_dbgstr_longlong(count
));
2352 for(copied
=0; copied
<count
&& size
;) {
2353 chunk
= basic_streambuf_wchar__Gnavail(this);
2354 if(chunk
> count
-copied
)
2355 chunk
= count
-copied
;
2358 memcpy_s(ptr
+copied
, size
, *this->prpos
, chunk
*sizeof(wchar_t));
2359 *this->prpos
+= chunk
;
2360 *this->prsize
-= chunk
;
2362 size
-= chunk
*sizeof(wchar_t);
2363 }else if((c
= call_basic_streambuf_wchar_uflow(this)) != WEOF
) {
2375 /* ?_Sgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHPA_WIH@Z */
2376 /* ?_Sgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_K_J@Z */
2377 /* ?_Sgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHPAGIH@Z */
2378 /* ?_Sgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_K_J@Z */
2379 #if STREAMSIZE_BITS == 64
2380 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Sgetn_s
, 20)
2382 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Sgetn_s
, 16)
2384 streamsize __thiscall
basic_streambuf_wchar__Sgetn_s(basic_streambuf_wchar
*this, wchar_t *ptr
, MSVCP_size_t size
, streamsize count
)
2386 TRACE("(%p %p %lu %s)\n", this, ptr
, size
, wine_dbgstr_longlong(count
));
2387 return call_basic_streambuf_wchar__Xsgetn_s(this, ptr
, size
, count
);
2390 /* ?_Unlock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
2391 /* ?_Unlock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
2392 /* ?_Unlock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
2393 /* ?_Unlock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
2394 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Unlock
, 4)
2395 void __thiscall
basic_streambuf_wchar__Unlock(basic_streambuf_wchar
*this)
2397 TRACE("(%p)\n", this);
2398 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
2399 mutex_unlock(&this->lock
);
2403 /* ?eback@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2404 /* ?eback@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2405 /* ?eback@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2406 /* ?eback@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2407 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_eback
, 4)
2408 wchar_t* __thiscall
basic_streambuf_wchar_eback(const basic_streambuf_wchar
*this)
2410 TRACE("(%p)\n", this);
2411 return *this->prbuf
;
2414 /* ?gptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2415 /* ?gptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2416 /* ?gptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2417 /* ?gptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2418 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_gptr
, 4)
2419 wchar_t* __thiscall
basic_streambuf_wchar_gptr(const basic_streambuf_wchar
*this)
2421 TRACE("(%p)\n", this);
2422 return *this->prpos
;
2425 /* ?egptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2426 /* ?egptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2427 /* ?egptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2428 /* ?egptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2429 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_egptr
, 4)
2430 wchar_t* __thiscall
basic_streambuf_wchar_egptr(const basic_streambuf_wchar
*this)
2432 TRACE("(%p)\n", this);
2433 return *this->prpos
+*this->prsize
;
2436 /* ?epptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2437 /* ?epptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2438 /* ?epptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2439 /* ?epptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2440 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_epptr
, 4)
2441 wchar_t* __thiscall
basic_streambuf_wchar_epptr(const basic_streambuf_wchar
*this)
2443 TRACE("(%p)\n", this);
2444 return *this->pwpos
+*this->pwsize
;
2447 /* ?gbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXH@Z */
2448 /* ?gbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXH@Z */
2449 /* ?gbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXH@Z */
2450 /* ?gbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXH@Z */
2451 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_gbump
, 8)
2452 void __thiscall
basic_streambuf_wchar_gbump(basic_streambuf_wchar
*this, int off
)
2454 TRACE("(%p %d)\n", this, off
);
2455 *this->prpos
+= off
;
2456 *this->prsize
-= off
;
2459 /* ?getloc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QBE?AVlocale@2@XZ */
2460 /* ?getloc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEBA?AVlocale@2@XZ */
2461 /* ?getloc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QBE?AVlocale@2@XZ */
2462 /* ?getloc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEBA?AVlocale@2@XZ */
2463 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_getloc
, 8)
2464 locale
* __thiscall
basic_streambuf_wchar_getloc(const basic_streambuf_wchar
*this, locale
*ret
)
2466 TRACE("(%p)\n", this);
2467 return locale_copy_ctor(ret
, IOS_LOCALE(this));
2470 /* ?imbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEXABVlocale@2@@Z */
2471 /* ?imbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAXAEBVlocale@2@@Z */
2472 /* ?imbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEXABVlocale@2@@Z */
2473 /* ?imbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAXAEBVlocale@2@@Z */
2474 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_imbue
, 8)
2475 #if _MSVCP_VER >= 100
2476 #define call_basic_streambuf_wchar_imbue(this, loc) CALL_VTBL_FUNC(this, 56, void, (basic_streambuf_wchar*, const locale*), (this, loc))
2477 #elif _MSVCP_VER >= 80
2478 #define call_basic_streambuf_wchar_imbue(this, loc) CALL_VTBL_FUNC(this, 52, void, (basic_streambuf_wchar*, const locale*), (this, loc))
2480 #define call_basic_streambuf_wchar_imbue(this, loc) CALL_VTBL_FUNC(this, 48, void, (basic_streambuf_wchar*, const locale*), (this, loc))
2482 void __thiscall
basic_streambuf_wchar_imbue(basic_streambuf_wchar
*this, const locale
*loc
)
2484 TRACE("(%p %p)\n", this, loc
);
2487 /* ?overflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
2488 /* ?overflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
2489 /* ?overflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
2490 /* ?overflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
2491 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_overflow
, 8)
2492 #if _MSVCP_VER >= 100
2493 #define call_basic_streambuf_wchar_overflow(this, ch) CALL_VTBL_FUNC(this, 12, unsigned short, (basic_streambuf_wchar*, unsigned short), (this, ch))
2495 #define call_basic_streambuf_wchar_overflow(this, ch) CALL_VTBL_FUNC(this, 4, unsigned short, (basic_streambuf_wchar*, unsigned short), (this, ch))
2497 unsigned short __thiscall
basic_streambuf_wchar_overflow(basic_streambuf_wchar
*this, unsigned short ch
)
2499 TRACE("(%p %d)\n", this, ch
);
2503 /* ?pbackfail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
2504 /* ?pbackfail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
2505 /* ?pbackfail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
2506 /* ?pbackfail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
2507 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pbackfail
, 8)
2508 #if _MSVCP_VER >= 100
2509 #define call_basic_streambuf_wchar_pbackfail(this, ch) CALL_VTBL_FUNC(this, 16, unsigned short, (basic_streambuf_wchar*, unsigned short), (this, ch))
2511 #define call_basic_streambuf_wchar_pbackfail(this, ch) CALL_VTBL_FUNC(this, 8, unsigned short, (basic_streambuf_wchar*, unsigned short), (this, ch))
2513 unsigned short __thiscall
basic_streambuf_wchar_pbackfail(basic_streambuf_wchar
*this, unsigned short ch
)
2515 TRACE("(%p %d)\n", this, ch
);
2519 /* ?pbase@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2520 /* ?pbase@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2521 /* ?pbase@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2522 /* ?pbase@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2523 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pbase
, 4)
2524 wchar_t* __thiscall
basic_streambuf_wchar_pbase(const basic_streambuf_wchar
*this)
2526 TRACE("(%p)\n", this);
2527 return *this->pwbuf
;
2530 /* ?pbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXH@Z */
2531 /* ?pbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXH@Z */
2532 /* ?pbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXH@Z */
2533 /* ?pbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXH@Z */
2534 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pbump
, 8)
2535 void __thiscall
basic_streambuf_wchar_pbump(basic_streambuf_wchar
*this, int off
)
2537 TRACE("(%p %d)\n", this, off
);
2538 *this->pwpos
+= off
;
2539 *this->pwsize
-= off
;
2542 /* ?pptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2543 /* ?pptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2544 /* ?pptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2545 /* ?pptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2546 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pptr
, 4)
2547 wchar_t* __thiscall
basic_streambuf_wchar_pptr(const basic_streambuf_wchar
*this)
2549 TRACE("(%p)\n", this);
2550 return *this->pwpos
;
2553 /* ?pubimbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
2554 /* ?pubimbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
2555 /* ?pubimbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
2556 /* ?pubimbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
2557 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubimbue
, 12)
2558 locale
* __thiscall
basic_streambuf_wchar_pubimbue(basic_streambuf_wchar
*this, locale
*ret
, const locale
*loc
)
2560 TRACE("(%p %p)\n", this, loc
);
2561 memcpy(ret
, IOS_LOCALE(this), sizeof(locale
));
2562 call_basic_streambuf_wchar_imbue(this, loc
);
2563 locale_copy_ctor(IOS_LOCALE(this), loc
);
2567 /* ?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
2568 /* ?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
2569 /* ?seekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
2570 /* ?seekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
2571 /* ?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
2572 /* ?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
2573 #if STREAMOFF_BITS == 64
2574 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_seekoff
, 24)
2576 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_seekoff
, 20)
2578 #if _MSVCP_VER >= 100
2579 #define call_basic_streambuf_wchar_seekoff(this, ret, off, way, mode) \
2580 CALL_VTBL_FUNC(this, 40, fpos_mbstatet*, (basic_streambuf_wchar*, fpos_mbstatet*, streamoff, int, int), (this, ret, off, way, mode))
2581 #elif _MSVCP_VER >= 80
2582 #define call_basic_streambuf_wchar_seekoff(this, ret, off, way, mode) \
2583 CALL_VTBL_FUNC(this, 36, fpos_mbstatet*, (basic_streambuf_wchar*, fpos_mbstatet*, streamoff, int, int), (this, ret, off, way, mode))
2585 #define call_basic_streambuf_wchar_seekoff(this, ret, off, way, mode) \
2586 CALL_VTBL_FUNC(this, 32, fpos_mbstatet*, (basic_streambuf_wchar*, fpos_mbstatet*, streamoff, int, int), (this, ret, off, way, mode))
2588 fpos_mbstatet
* __thiscall
basic_streambuf_wchar_seekoff(basic_streambuf_wchar
*this,
2589 fpos_mbstatet
*ret
, streamoff off
, int way
, int mode
)
2591 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
2594 memset(&ret
->state
, 0, sizeof(ret
->state
));
2598 /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@JHH@Z */
2599 /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@_JHH@Z */
2600 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JHH@Z */
2601 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JHH@Z */
2602 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JFF@Z */
2603 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JFF@Z */
2604 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
2605 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JW4seekdir@ioos_base@2@H@Z */
2606 #if STREAMOFF_BITS == 64
2607 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff
, 24)
2609 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff
, 20)
2611 fpos_mbstatet
* __thiscall
basic_streambuf_wchar_pubseekoff(basic_streambuf_wchar
*this,
2612 fpos_mbstatet
*ret
, streamoff off
, int way
, int mode
)
2614 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
2615 return call_basic_streambuf_wchar_seekoff(this, ret
, off
, way
, mode
);
2618 /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@JII@Z */
2619 /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@_JII@Z */
2620 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JII@Z */
2621 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JII@Z */
2622 #if STREAMOFF_BITS == 64
2623 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff_old
, 24)
2625 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff_old
, 20)
2627 fpos_mbstatet
* __thiscall
basic_streambuf_wchar_pubseekoff_old(basic_streambuf_wchar
*this,
2628 fpos_mbstatet
*ret
, streamoff off
, unsigned int way
, unsigned int mode
)
2630 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
2631 return basic_streambuf_wchar_pubseekoff(this, ret
, off
, way
, mode
);
2634 /* ?seekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
2635 /* ?seekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
2636 /* ?seekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
2637 /* ?seekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
2638 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_seekpos
, 36)
2639 #if _MSVCP_VER >= 100
2640 #define call_basic_streambuf_wchar_seekpos(this, ret, pos, mode) \
2641 CALL_VTBL_FUNC(this, 44, fpos_mbstatet*, (basic_streambuf_wchar*, fpos_mbstatet*, fpos_mbstatet, int), (this, ret, pos, mode))
2642 #elif _MSVCP_VER >= 80
2643 #define call_basic_streambuf_wchar_seekpos(this, ret, pos, mode) \
2644 CALL_VTBL_FUNC(this, 40, fpos_mbstatet*, (basic_streambuf_wchar*, fpos_mbstatet*, fpos_mbstatet, int), (this, ret, pos, mode))
2646 #define call_basic_streambuf_wchar_seekpos(this, ret, pos, mode) \
2647 CALL_VTBL_FUNC(this, 36, fpos_mbstatet*, (basic_streambuf_wchar*, fpos_mbstatet*, fpos_mbstatet, int), (this, ret, pos, mode))
2649 fpos_mbstatet
* __thiscall
basic_streambuf_wchar_seekpos(basic_streambuf_wchar
*this,
2650 fpos_mbstatet
*ret
, fpos_mbstatet pos
, int mode
)
2652 TRACE("(%p %s %d)\n", this, debugstr_fpos_mbstatet(&pos
), mode
);
2655 memset(&ret
->state
, 0, sizeof(ret
->state
));
2659 /* ?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@V32@H@Z */
2660 /* ?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@V32@H@Z */
2661 /* ?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@V32@H@Z */
2662 /* ?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@V32@H@Z */
2663 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekpos
, 36)
2664 fpos_mbstatet
* __thiscall
basic_streambuf_wchar_pubseekpos(basic_streambuf_wchar
*this,
2665 fpos_mbstatet
*ret
, fpos_mbstatet pos
, int mode
)
2667 TRACE("(%p %s %d)\n", this, debugstr_fpos_mbstatet(&pos
), mode
);
2668 return call_basic_streambuf_wchar_seekpos(this, ret
, pos
, mode
);
2671 /* ?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@V32@I@Z */
2672 /* ?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@V32@I@Z */
2673 /* ?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@V32@I@Z */
2674 /* ?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@V32@I@Z */
2675 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekpos_old
, 36)
2676 fpos_mbstatet
* __thiscall
basic_streambuf_wchar_pubseekpos_old(basic_streambuf_wchar
*this,
2677 fpos_mbstatet
*ret
, fpos_mbstatet pos
, unsigned int mode
)
2679 TRACE("(%p %s %d)\n", this, debugstr_fpos_mbstatet(&pos
), mode
);
2680 return basic_streambuf_wchar_pubseekpos(this, ret
, pos
, mode
);
2683 /* ?setbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEPAV12@PA_WH@Z */
2684 /* ?setbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAPEAV12@PEA_W_J@Z */
2685 /* ?setbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEPAV12@PAGH@Z */
2686 /* ?setbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAPEAV12@PEAG_J@Z */
2687 #if STREAMSIZE_BITS == 64
2688 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setbuf
, 16)
2690 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setbuf
, 12)
2692 #if _MSVCP_VER >= 100
2693 #define call_basic_streambuf_wchar_setbuf(this, buf, count) CALL_VTBL_FUNC(this, 48, basic_streambuf_wchar*, (basic_streambuf_wchar*, wchar_t*, streamsize), (this, buf, count))
2694 #elif _MSVCP_VER >= 80
2695 #define call_basic_streambuf_wchar_setbuf(this, buf, count) CALL_VTBL_FUNC(this, 44, basic_streambuf_wchar*, (basic_streambuf_wchar*, wchar_t*, streamsize), (this, buf, count))
2697 #define call_basic_streambuf_wchar_setbuf(this, buf, count) CALL_VTBL_FUNC(this, 40, basic_streambuf_wchar*, (basic_streambuf_wchar*, wchar_t*, streamsize), (this, buf, count))
2699 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_setbuf(basic_streambuf_wchar
*this, wchar_t *buf
, streamsize count
)
2701 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
2705 /* ?pubsetbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PA_WH@Z */
2706 /* ?pubsetbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEA_W_J@Z */
2707 /* ?pubsetbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PAGH@Z */
2708 /* ?pubsetbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEAG_J@Z */
2709 #if STREAMSIZE_BITS == 64
2710 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubsetbuf
, 16)
2712 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubsetbuf
, 12)
2714 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_pubsetbuf(basic_streambuf_wchar
*this, wchar_t *buf
, streamsize count
)
2716 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
2717 return call_basic_streambuf_wchar_setbuf(this, buf
, count
);
2720 /* ?sync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHXZ */
2721 /* ?sync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAHXZ */
2722 /* ?sync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHXZ */
2723 /* ?sync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAHXZ */
2724 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sync
, 4)
2725 #if _MSVCP_VER >= 100
2726 #define call_basic_streambuf_wchar_sync(this) CALL_VTBL_FUNC(this, 52, int, (basic_streambuf_wchar*), (this))
2727 #elif _MSVCP_VER >= 80
2728 #define call_basic_streambuf_wchar_sync(this) CALL_VTBL_FUNC(this, 48, int, (basic_streambuf_wchar*), (this))
2730 #define call_basic_streambuf_wchar_sync(this) CALL_VTBL_FUNC(this, 44, int, (basic_streambuf_wchar*), (this))
2732 int __thiscall
basic_streambuf_wchar_sync(basic_streambuf_wchar
*this)
2734 TRACE("(%p)\n", this);
2738 /* ?pubsync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHXZ */
2739 /* ?pubsync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAHXZ */
2740 /* ?pubsync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHXZ */
2741 /* ?pubsync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAHXZ */
2742 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubsync
, 4)
2743 int __thiscall
basic_streambuf_wchar_pubsync(basic_streambuf_wchar
*this)
2745 TRACE("(%p)\n", this);
2746 return call_basic_streambuf_wchar_sync(this);
2749 /* ?xsgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHPA_WH@Z */
2750 /* ?xsgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEA_W_J@Z */
2751 /* ?xsgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHPAGH@Z */
2752 /* ?xsgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JPEAG_J@Z */
2753 #if STREAMSIZE_BITS == 64
2754 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsgetn
, 16)
2756 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsgetn
, 12)
2758 #if _MSVCP_VER >= 100
2759 #define call_basic_streambuf_wchar_xsgetn(this, ptr, count) CALL_VTBL_FUNC(this, 32, streamsize, (basic_streambuf_wchar*, wchar_t*, streamsize), (this, ptr, count))
2761 #define call_basic_streambuf_wchar_xsgetn(this, ptr, count) CALL_VTBL_FUNC(this, 24, streamsize, (basic_streambuf_wchar*, wchar_t*, streamsize), (this, ptr, count))
2763 streamsize __thiscall
basic_streambuf_wchar_xsgetn(basic_streambuf_wchar
*this, wchar_t *ptr
, streamsize count
)
2765 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
2766 return call_basic_streambuf_wchar__Xsgetn_s(this, ptr
, -1, count
);
2769 /* ?sgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHPA_WH@Z */
2770 /* ?sgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_J@Z */
2771 /* ?sgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHPAGH@Z */
2772 /* ?sgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_J@Z */
2773 #if STREAMSIZE_BITS == 64
2774 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sgetn
, 16)
2776 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sgetn
, 12)
2778 streamsize __thiscall
basic_streambuf_wchar_sgetn(basic_streambuf_wchar
*this, wchar_t *ptr
, streamsize count
)
2780 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
2781 return call_basic_streambuf_wchar_xsgetn(this, ptr
, count
);
2784 /* ?showmanyc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHXZ */
2785 /* ?showmanyc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JXZ */
2786 /* ?showmanyc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHXZ */
2787 /* ?showmanyc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JXZ */
2788 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_showmanyc
, 4)
2789 #if _MSVCP_VER >= 100
2790 #define call_basic_streambuf_wchar_showmanyc(this) CALL_VTBL_FUNC(this, 20, streamsize, (basic_streambuf_wchar*), (this))
2792 #define call_basic_streambuf_wchar_showmanyc(this) CALL_VTBL_FUNC(this, 12, streamsize, (basic_streambuf_wchar*), (this))
2794 streamsize __thiscall
basic_streambuf_wchar_showmanyc(basic_streambuf_wchar
*this)
2796 TRACE("(%p)\n", this);
2800 /* ?in_avail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHXZ */
2801 /* ?in_avail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JXZ */
2802 /* ?in_avail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHXZ */
2803 /* ?in_avail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JXZ */
2804 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_in_avail
, 4)
2805 streamsize __thiscall
basic_streambuf_wchar_in_avail(basic_streambuf_wchar
*this)
2809 TRACE("(%p)\n", this);
2811 ret
= basic_streambuf_wchar__Gnavail(this);
2812 return ret
? ret
: call_basic_streambuf_wchar_showmanyc(this);
2815 /* ?sputbackc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEG_W@Z */
2816 /* ?sputbackc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAG_W@Z */
2817 /* ?sputbackc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGG@Z */
2818 /* ?sputbackc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGG@Z */
2819 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputbackc
, 8)
2820 unsigned short __thiscall
basic_streambuf_wchar_sputbackc(basic_streambuf_wchar
*this, wchar_t ch
)
2822 TRACE("(%p %d)\n", this, ch
);
2823 if(*this->prpos
&& *this->prpos
>*this->prbuf
&& (*this->prpos
)[-1]==ch
) {
2829 return call_basic_streambuf_wchar_pbackfail(this, ch
);
2832 /* ?sputc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEG_W@Z */
2833 /* ?sputc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAG_W@Z */
2834 /* ?sputc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGG@Z */
2835 /* ?sputc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAHG@Z */
2836 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputc
, 8)
2837 unsigned short __thiscall
basic_streambuf_wchar_sputc(basic_streambuf_wchar
*this, wchar_t ch
)
2839 TRACE("(%p %d)\n", this, ch
);
2840 return basic_streambuf_wchar__Pnavail(this) ?
2841 (*basic_streambuf_wchar__Pninc(this) = ch
) :
2842 call_basic_streambuf_wchar_overflow(this, ch
);
2845 /* ?sungetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2846 /* ?sungetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2847 /* ?sungetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2848 /* ?sungetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2849 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sungetc
, 4)
2850 unsigned short __thiscall
basic_streambuf_wchar_sungetc(basic_streambuf_wchar
*this)
2852 TRACE("(%p)\n", this);
2853 if(*this->prpos
&& *this->prpos
>*this->prbuf
) {
2856 return **this->prpos
;
2859 return call_basic_streambuf_wchar_pbackfail(this, WEOF
);
2862 /* ?stossc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
2863 /* ?stossc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
2864 /* ?stossc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
2865 /* ?stossc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
2866 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_stossc
, 4)
2867 void __thiscall
basic_streambuf_wchar_stossc(basic_streambuf_wchar
*this)
2869 TRACE("(%p)\n", this);
2870 if(basic_streambuf_wchar__Gnavail(this))
2871 basic_streambuf_wchar__Gninc(this);
2873 call_basic_streambuf_wchar_uflow(this);
2876 /* ?sbumpc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2877 /* ?sbumpc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2878 /* ?sbumpc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2879 /* ?sbumpc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2880 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sbumpc
, 4)
2881 unsigned short __thiscall
basic_streambuf_wchar_sbumpc(basic_streambuf_wchar
*this)
2883 TRACE("(%p)\n", this);
2884 return basic_streambuf_wchar__Gnavail(this) ?
2885 *basic_streambuf_wchar__Gninc(this) : call_basic_streambuf_wchar_uflow(this);
2888 /* ?sgetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2889 /* ?sgetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2890 /* ?sgetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2891 /* ?sgetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2892 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sgetc
, 4)
2893 unsigned short __thiscall
basic_streambuf_wchar_sgetc(basic_streambuf_wchar
*this)
2895 TRACE("(%p)\n", this);
2896 return basic_streambuf_wchar__Gnavail(this) ?
2897 *basic_streambuf_wchar_gptr(this) : call_basic_streambuf_wchar_underflow(this);
2900 /* ?snextc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2901 /* ?snextc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2902 /* ?snextc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2903 /* ?snextc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2904 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_snextc
, 4)
2905 unsigned short __thiscall
basic_streambuf_wchar_snextc(basic_streambuf_wchar
*this)
2907 TRACE("(%p)\n", this);
2909 if(basic_streambuf_wchar__Gnavail(this) > 1)
2910 return *basic_streambuf_wchar__Gnpreinc(this);
2911 return basic_streambuf_wchar_sbumpc(this)==WEOF
?
2912 WEOF
: basic_streambuf_wchar_sgetc(this);
2915 /* ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHPB_WH@Z */
2916 /* ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEB_W_J@Z */
2917 /* ?xsputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHPBGH@Z */
2918 /* ?xsputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JPEBG_J@Z */
2919 #if STREAMSIZE_BITS == 64
2920 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsputn
, 16)
2922 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsputn
, 12)
2924 #if _MSVCP_VER >= 100
2925 #define call_basic_streambuf_wchar_xsputn(this, ptr, count) CALL_VTBL_FUNC(this, 36, streamsize, (basic_streambuf_wchar*, const wchar_t*, streamsize), (this, ptr, count))
2926 #elif _MSVCP_VER >= 80
2927 #define call_basic_streambuf_wchar_xsputn(this, ptr, count) CALL_VTBL_FUNC(this, 32, streamsize, (basic_streambuf_wchar*, const wchar_t*, streamsize), (this, ptr, count))
2929 #define call_basic_streambuf_wchar_xsputn(this, ptr, count) CALL_VTBL_FUNC(this, 28, streamsize, (basic_streambuf_wchar*, const wchar_t*, streamsize), (this, ptr, count))
2931 streamsize __thiscall
basic_streambuf_wchar_xsputn(basic_streambuf_wchar
*this, const wchar_t *ptr
, streamsize count
)
2933 streamsize copied
, chunk
;
2935 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
2937 for(copied
=0; copied
<count
;) {
2938 chunk
= basic_streambuf_wchar__Pnavail(this);
2939 if(chunk
> count
-copied
)
2940 chunk
= count
-copied
;
2943 memcpy(*this->pwpos
, ptr
+copied
, chunk
*sizeof(wchar_t));
2944 *this->pwpos
+= chunk
;
2945 *this->pwsize
-= chunk
;
2947 }else if(call_basic_streambuf_wchar_overflow(this, ptr
[copied
]) != WEOF
) {
2957 /* ?sputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHPB_WH@Z */
2958 /* ?sputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JPEB_W_J@Z */
2959 /* ?sputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHPBGH@Z */
2960 /* ?sputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JPEBG_J@Z */
2961 #if STREAMSIZE_BITS == 64
2962 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputn
, 16)
2964 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputn
, 12)
2966 streamsize __thiscall
basic_streambuf_wchar_sputn(basic_streambuf_wchar
*this, const wchar_t *ptr
, streamsize count
)
2968 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
2969 return call_basic_streambuf_wchar_xsputn(this, ptr
, count
);
2972 /* ?swap@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXAAV12@@Z */
2973 /* ?swap@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXAEAV12@@Z */
2974 /* ?swap@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXAAV12@@Z */
2975 /* ?swap@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXAAV12@@Z */
2976 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_swap
, 8)
2977 void __thiscall
basic_streambuf_wchar_swap(basic_streambuf_wchar
*this, basic_streambuf_wchar
*r
)
2979 wchar_t *wfirst
, *wnext
, *wlast
, *rfirst
, *rnext
, *rlast
;
2986 TRACE("(%p %p)\n", this, r
);
2991 wfirst
= *this->pwbuf
;
2992 wnext
= *this->pwpos
;
2993 wlast
= *this->pwpos
+ *this->pwsize
;
2994 rfirst
= *this->prbuf
;
2995 rnext
= *this->prpos
;
2996 rlast
= *this->prpos
+ *this->prsize
;
2999 basic_streambuf_wchar_setp_next(this, *r
->pwbuf
, *r
->pwpos
, *r
->pwpos
+ *r
->pwsize
);
3000 basic_streambuf_wchar_setg(this, *r
->prbuf
, *r
->prpos
, *r
->prpos
+ *r
->prsize
);
3003 basic_streambuf_wchar_setp_next(r
, wfirst
, wnext
, wlast
);
3004 basic_streambuf_wchar_setg(r
, rfirst
, rnext
, rlast
);
3008 /* ?_Stinit@?1??_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@23@@Z@4HA */
3009 /* ?_Stinit@?1??_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@23@@Z@4HA */
3010 #if _MSVCP_VER >= 140
3011 _Mbstatet basic_filebuf_char__Init__Stinit
= {0};
3013 _Mbstatet basic_filebuf_char__Init__Stinit
= 0;
3016 /* ?_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@12@@Z */
3017 /* ?_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@12@@Z */
3018 DEFINE_THISCALL_WRAPPER(basic_filebuf_char__Init
, 12)
3019 void __thiscall
basic_filebuf_char__Init(basic_filebuf_char
*this, FILE *file
, basic_filebuf__Initfl which
)
3021 TRACE("(%p %p %d)\n", this, file
, which
);
3024 this->wrotesome
= FALSE
;
3025 this->state
= basic_filebuf_char__Init__Stinit
;
3026 this->close
= (which
== INITFL_open
);
3029 basic_streambuf_char__Init_empty(&this->base
);
3031 basic_streambuf_char__Init(&this->base
, &file
->_base
, &file
->_ptr
,
3032 &file
->_cnt
, &file
->_base
, &file
->_ptr
, &file
->_cnt
);
3035 /* ?_Initcvt@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAEXPAV?$codecvt@DDH@2@@Z */
3036 /* ?_Initcvt@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXPEAV?$codecvt@DDH@2@@Z */
3037 DEFINE_THISCALL_WRAPPER(basic_filebuf_char__Initcvt_cvt
, 8)
3038 void __thiscall
basic_filebuf_char__Initcvt_cvt(basic_filebuf_char
*this, codecvt_char
*cvt
)
3040 TRACE("(%p %p)\n", this, cvt
);
3042 if(codecvt_base_always_noconv(&cvt
->base
)) {
3045 basic_streambuf_char__Init_empty(&this->base
);
3050 /* ?_Initcvt@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAEXXZ */
3051 /* ?_Initcvt@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXXZ */
3052 DEFINE_THISCALL_WRAPPER(basic_filebuf_char__Initcvt
, 4)
3053 void __thiscall
basic_filebuf_char__Initcvt(basic_filebuf_char
*this)
3055 codecvt_char
*cvt
= codecvt_char_use_facet(IOS_LOCALE(&this->base
));
3056 basic_filebuf_char__Initcvt_cvt( this, cvt
);
3059 /* ?_Endwrite@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAE_NXZ */
3060 /* ?_Endwrite@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAA_NXZ */
3061 DEFINE_THISCALL_WRAPPER(basic_filebuf_char__Endwrite
, 4)
3062 MSVCP_bool __thiscall
basic_filebuf_char__Endwrite(basic_filebuf_char
*this)
3064 TRACE("(%p)\n", this);
3066 if(!this->wrotesome
|| !this->cvt
)
3070 if(call_basic_streambuf_char_overflow(&this->base
, EOF
) == EOF
)
3074 /* TODO: check if we need a dynamic buffer here */
3079 ret
= codecvt_char_unshift(this->cvt
, &this->state
, buf
, buf
+sizeof(buf
), &next
);
3082 this->wrotesome
= FALSE
;
3084 case CODECVT_partial
:
3085 if(!fwrite(buf
, next
-buf
, 1, this->file
))
3090 case CODECVT_noconv
:
3091 if(call_basic_streambuf_char_overflow(&this->base
, EOF
) == EOF
)
3100 /* ?close@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@XZ */
3101 /* ?close@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@XZ */
3102 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_close
, 4)
3103 basic_filebuf_char
* __thiscall
basic_filebuf_char_close(basic_filebuf_char
*this)
3105 basic_filebuf_char
*ret
= this;
3107 TRACE("(%p)\n", this);
3112 /* TODO: handle exceptions */
3113 if(!basic_filebuf_char__Endwrite(this))
3115 if(fclose(this->file
))
3118 basic_filebuf_char__Init(this, NULL
, INITFL_close
);
3122 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
3123 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
3124 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_ctor_file
, 8)
3125 basic_filebuf_char
* __thiscall
basic_filebuf_char_ctor_file(basic_filebuf_char
*this, FILE *file
)
3127 TRACE("(%p %p)\n", this, file
);
3129 basic_streambuf_char_ctor(&this->base
);
3130 this->base
.vtable
= &MSVCP_basic_filebuf_char_vtable
;
3132 basic_filebuf_char__Init(this, file
, INITFL_new
);
3136 /* ??_F?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
3137 /* ??_F?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
3138 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_ctor
, 4)
3139 basic_filebuf_char
* __thiscall
basic_filebuf_char_ctor(basic_filebuf_char
*this)
3141 return basic_filebuf_char_ctor_file(this, NULL
);
3144 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAE@W4_Uninitialized@1@@Z */
3145 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
3146 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_ctor_uninitialized
, 8)
3147 basic_filebuf_char
* __thiscall
basic_filebuf_char_ctor_uninitialized(basic_filebuf_char
*this, int uninitialized
)
3149 TRACE("(%p %d)\n", this, uninitialized
);
3151 basic_streambuf_char_ctor(&this->base
);
3152 this->base
.vtable
= &MSVCP_basic_filebuf_char_vtable
;
3156 /* ??1?$basic_filebuf@DU?$char_traits@D@std@@@std@@UAE@XZ */
3157 /* ??1?$basic_filebuf@DU?$char_traits@D@std@@@std@@UEAA@XZ */
3158 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_dtor
, 4)
3159 void __thiscall
basic_filebuf_char_dtor(basic_filebuf_char
*this)
3161 TRACE("(%p)\n", this);
3164 basic_filebuf_char_close(this);
3165 basic_streambuf_char_dtor(&this->base
);
3168 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_vector_dtor
, 8)
3169 basic_filebuf_char
* __thiscall
basic_filebuf_char_vector_dtor(basic_filebuf_char
*this, unsigned int flags
)
3171 TRACE("(%p %x)\n", this, flags
);
3173 /* we have an array, with the number of elements stored before the first object */
3174 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
3176 for(i
=*ptr
-1; i
>=0; i
--)
3177 basic_filebuf_char_dtor(this+i
);
3178 MSVCRT_operator_delete(ptr
);
3180 basic_filebuf_char_dtor(this);
3182 MSVCRT_operator_delete(this);
3188 /* ?is_open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QBE_NXZ */
3189 /* ?is_open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
3190 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_is_open
, 4)
3191 MSVCP_bool __thiscall
basic_filebuf_char_is_open(const basic_filebuf_char
*this)
3193 TRACE("(%p)\n", this);
3194 return this->file
!= NULL
;
3197 /* ?_Fiopen@std@@YAPAU_iobuf@@PB_WHH@Z */
3198 /* ?_Fiopen@std@@YAPEAU_iobuf@@PEB_WHH@Z */
3199 FILE* __cdecl
_Fiopen_wchar(const wchar_t *name
, int mode
, int prot
)
3201 static const wchar_t rW
[] = {'r',0};
3202 static const struct {
3204 const wchar_t str
[4];
3205 const wchar_t str_bin
[4];
3207 {OPENMODE_out
, {'w',0}, {'w','b',0}},
3208 {OPENMODE_out
|OPENMODE_app
, {'a',0}, {'a','b',0}},
3209 {OPENMODE_app
, {'a',0}, {'a','b',0}},
3210 {OPENMODE_out
|OPENMODE_trunc
, {'w',0}, {'w','b',0}},
3211 {OPENMODE_in
, {'r',0}, {'r','b',0}},
3212 {OPENMODE_in
|OPENMODE_out
, {'r','+',0}, {'r','+','b',0}},
3213 {OPENMODE_in
|OPENMODE_out
|OPENMODE_trunc
, {'w','+',0}, {'w','+','b',0}},
3214 {OPENMODE_in
|OPENMODE_out
|OPENMODE_app
, {'a','+',0}, {'a','+','b',0}},
3215 {OPENMODE_in
|OPENMODE_app
, {'a','+',0}, {'a','+','b',0}}
3218 int real_mode
= mode
& ~(OPENMODE_ate
|OPENMODE__Nocreate
|OPENMODE__Noreplace
|OPENMODE_binary
);
3222 TRACE("(%s %d %d)\n", debugstr_w(name
), mode
, prot
);
3224 for(mode_idx
=0; mode_idx
<sizeof(str_mode
)/sizeof(str_mode
[0]); mode_idx
++)
3225 if(str_mode
[mode_idx
].mode
== real_mode
)
3227 if(mode_idx
== sizeof(str_mode
)/sizeof(str_mode
[0]))
3230 if((mode
& OPENMODE__Nocreate
) && !(f
= _wfopen(name
, rW
)))
3235 if((mode
& OPENMODE__Noreplace
) && (mode
& (OPENMODE_out
|OPENMODE_app
))
3236 && (f
= _wfopen(name
, rW
))) {
3241 #if _MSVCP_VER < 80 /* msvcp60 - msvcp71 are ignoring prot argument */
3245 f
= _wfsopen(name
, (mode
& OPENMODE_binary
) ? str_mode
[mode_idx
].str_bin
3246 : str_mode
[mode_idx
].str
, prot
);
3250 if((mode
& OPENMODE_ate
) && fseek(f
, 0, SEEK_END
)) {
3258 /* ?_Fiopen@std@@YAPAU_iobuf@@PBDHH@Z */
3259 /* ?_Fiopen@std@@YAPEAU_iobuf@@PEBDHH@Z */
3260 FILE* __cdecl
_Fiopen(const char *name
, int mode
, int prot
)
3262 wchar_t nameW
[FILENAME_MAX
];
3264 TRACE("(%s %d %d)\n", name
, mode
, prot
);
3266 if(mbstowcs_s(NULL
, nameW
, FILENAME_MAX
, name
, FILENAME_MAX
-1) != 0)
3268 return _Fiopen_wchar(nameW
, mode
, prot
);
3271 /* ?__Fiopen@std@@YAPAU_iobuf@@PBDH@Z */
3272 /* ?__Fiopen@std@@YAPEAU_iobuf@@PEBDH@Z */
3273 FILE* __cdecl
___Fiopen(const char *name
, int mode
)
3275 TRACE("(%p %d)\n", name
, mode
);
3276 return _Fiopen(name
, mode
, _SH_DENYNO
);
3279 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PB_WHH@Z */
3280 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEB_WHH@Z */
3281 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBGHH@Z */
3282 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBGHH@Z */
3283 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open_wchar
, 16)
3284 basic_filebuf_char
* __thiscall
basic_filebuf_char_open_wchar(basic_filebuf_char
*this, const wchar_t *name
, int mode
, int prot
)
3288 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
3290 if(basic_filebuf_char_is_open(this))
3293 if(!(f
= _Fiopen_wchar(name
, mode
, prot
)))
3296 basic_filebuf_char__Init(this, f
, INITFL_open
);
3297 basic_filebuf_char__Initcvt_cvt(this, codecvt_char_use_facet(IOS_LOCALE(&this->base
)));
3301 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PB_WI@Z */
3302 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEB_WI@Z */
3303 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBGI@Z */
3304 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBGI@Z */
3305 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open_wchar_mode
, 12)
3306 basic_filebuf_char
* __thiscall
basic_filebuf_char_open_wchar_mode(basic_filebuf_char
*this, const wchar_t *name
, unsigned int mode
)
3308 return basic_filebuf_char_open_wchar(this, name
, mode
, SH_DENYNO
);
3311 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDHH@Z */
3312 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDHH@Z */
3313 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open
, 16)
3314 basic_filebuf_char
* __thiscall
basic_filebuf_char_open(basic_filebuf_char
*this, const char *name
, int mode
, int prot
)
3316 wchar_t nameW
[FILENAME_MAX
];
3318 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
3320 if(mbstowcs_s(NULL
, nameW
, FILENAME_MAX
, name
, FILENAME_MAX
-1) != 0)
3322 return basic_filebuf_char_open_wchar(this, nameW
, mode
, prot
);
3325 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDF@Z */
3326 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDF@Z */
3327 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open_mode_old
, 12)
3328 basic_filebuf_char
* __thiscall
basic_filebuf_char_open_mode_old(basic_filebuf_char
*this, const char *name
, short mode
)
3330 TRACE("(%p %p %d)\n", this, name
, mode
);
3331 return basic_filebuf_char_open(this, name
, mode
, SH_DENYNO
);
3334 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDH@Z */
3335 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDH@Z */
3336 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDI@Z */
3337 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDI@Z */
3338 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open_mode
, 12)
3339 basic_filebuf_char
* __thiscall
basic_filebuf_char_open_mode(basic_filebuf_char
*this, const char *name
, unsigned int mode
)
3341 return basic_filebuf_char_open(this, name
, mode
, SH_DENYNO
);
3344 /* ?overflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHH@Z */
3345 /* ?overflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z */
3346 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_overflow
, 8)
3347 int __thiscall
basic_filebuf_char_overflow(basic_filebuf_char
*this, int c
)
3349 char buf
[8], *dyn_buf
;
3350 char ch
= c
, *to_next
;
3351 const char *from_next
;
3355 TRACE("(%p %d)\n", this, c
);
3357 if(!basic_filebuf_char_is_open(this))
3363 return fwrite(&ch
, sizeof(char), 1, this->file
) ? c
: EOF
;
3367 ret
= codecvt_char_out(this->cvt
, &this->state
, from_next
, &ch
+1,
3368 &from_next
, buf
, buf
+sizeof(buf
), &to_next
);
3371 case CODECVT_partial
:
3376 if(!fwrite(buf
, to_next
-buf
, 1, this->file
))
3378 if(ret
== CODECVT_partial
)
3381 case CODECVT_noconv
:
3382 return fwrite(&ch
, sizeof(char), 1, this->file
) ? c
: EOF
;
3390 max_size
= codecvt_base_max_length(&this->cvt
->base
);
3391 dyn_buf
= malloc(max_size
);
3395 ret
= codecvt_char_out(this->cvt
, &this->state
, from_next
, &ch
+1,
3396 &from_next
, dyn_buf
, dyn_buf
+max_size
, &to_next
);
3400 ret
= fwrite(dyn_buf
, to_next
-dyn_buf
, 1, this->file
);
3402 return ret
? c
: EOF
;
3403 case CODECVT_partial
:
3404 ERR("buffer should be big enough to store all output\n");
3412 /* ?pbackfail@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHH@Z */
3413 /* ?pbackfail@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z */
3414 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_pbackfail
, 8)
3415 int __thiscall
basic_filebuf_char_pbackfail(basic_filebuf_char
*this, int c
)
3417 TRACE("(%p %d)\n", this, c
);
3419 if(!basic_filebuf_char_is_open(this))
3422 if(basic_streambuf_char_gptr(&this->base
)>basic_streambuf_char_eback(&this->base
)
3423 && (c
==EOF
|| (int)(unsigned char)basic_streambuf_char_gptr(&this->base
)[-1]==c
)) {
3424 basic_streambuf_char__Gndec(&this->base
);
3425 return c
==EOF
? !c
: c
;
3426 }else if(c
!=EOF
&& !this->cvt
) {
3427 return ungetc(c
, this->file
);
3433 /* ?uflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
3434 /* ?uflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
3435 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_uflow
, 4)
3436 int __thiscall
basic_filebuf_char_uflow(basic_filebuf_char
*this)
3438 char ch
, buf
[128], *to_next
;
3439 const char *buf_next
;
3443 TRACE("(%p)\n", this);
3445 if(!basic_filebuf_char_is_open(this))
3448 if(basic_streambuf_char_gptr(&this->base
) < basic_streambuf_char_egptr(&this->base
))
3449 return (unsigned char)*basic_streambuf_char__Gninc(&this->base
);
3451 c
= fgetc(this->file
);
3452 if(!this->cvt
|| c
==EOF
)
3456 for(i
=0; i
< sizeof(buf
)/sizeof(buf
[0]); i
++) {
3459 switch(codecvt_char_in(this->cvt
, &this->state
, buf_next
,
3460 buf
+i
+1, &buf_next
, &ch
, &ch
+1, &to_next
)) {
3461 case CODECVT_partial
:
3463 if(to_next
== &ch
) {
3464 c
= fgetc(this->file
);
3470 for(j
= --i
; j
>= buf_next
-buf
; j
--)
3471 ungetc(buf
[j
], this->file
);
3473 case CODECVT_noconv
:
3474 return (unsigned char)buf
[0];
3480 FIXME("buffer is too small\n");
3484 /* ?underflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
3485 /* ?underflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
3486 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_underflow
, 4)
3487 int __thiscall
basic_filebuf_char_underflow(basic_filebuf_char
*this)
3491 TRACE("(%p)\n", this);
3493 if(basic_streambuf_char_gptr(&this->base
) < basic_streambuf_char_egptr(&this->base
))
3494 return (unsigned char)*basic_streambuf_char_gptr(&this->base
);
3496 ret
= call_basic_streambuf_char_uflow(&this->base
);
3498 ret
= call_basic_streambuf_char_pbackfail(&this->base
, ret
);
3502 /* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
3503 /* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
3504 /* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
3505 /* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
3506 #if STREAMOFF_BITS == 64
3507 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_seekoff
, 24)
3509 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_seekoff
, 20)
3511 fpos_mbstatet
* __thiscall
basic_filebuf_char_seekoff(basic_filebuf_char
*this,
3512 fpos_mbstatet
*ret
, streamoff off
, int way
, int mode
)
3516 TRACE("(%p %p %s %d %d)\n", this, ret
, wine_dbgstr_longlong(off
), way
, mode
);
3518 if(!basic_filebuf_char_is_open(this) || !basic_filebuf_char__Endwrite(this)
3519 || fseek(this->file
, off
, way
)) {
3522 memset(&ret
->state
, 0, sizeof(ret
->state
));
3526 fgetpos(this->file
, &pos
);
3529 ret
->state
= this->state
;
3533 /* ?seekpos@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
3534 /* ?seekpos@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
3535 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_seekpos
, 36)
3536 fpos_mbstatet
* __thiscall
basic_filebuf_char_seekpos(basic_filebuf_char
*this,
3537 fpos_mbstatet
*ret
, fpos_mbstatet pos
, int mode
)
3541 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_mbstatet(&pos
), mode
);
3543 if(!basic_filebuf_char_is_open(this) || !basic_filebuf_char__Endwrite(this)
3544 || fseek(this->file
, (LONG
)pos
.pos
, SEEK_SET
)
3545 || (pos
.off
&& fseek(this->file
, pos
.off
, SEEK_CUR
))) {
3548 memset(&ret
->state
, 0, sizeof(ret
->state
));
3552 fgetpos(this->file
, &fpos
);
3555 ret
->state
= this->state
;
3559 /* ?setbuf@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PADH@Z */
3560 /* ?setbuf@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PEAD_J@Z */
3561 #if STREAMSIZE_BITS == 64
3562 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_setbuf
, 16)
3564 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_setbuf
, 12)
3566 basic_streambuf_char
* __thiscall
basic_filebuf_char_setbuf(basic_filebuf_char
*this, char *buf
, streamsize count
)
3568 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
3570 if(!basic_filebuf_char_is_open(this))
3573 if(setvbuf(this->file
, buf
, (buf
==NULL
&& count
==0) ? _IONBF
: _IOFBF
, count
))
3576 basic_filebuf_char__Init(this, this->file
, INITFL_open
);
3580 /* ?sync@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
3581 /* ?sync@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
3582 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_sync
, 4)
3583 int __thiscall
basic_filebuf_char_sync(basic_filebuf_char
*this)
3585 TRACE("(%p)\n", this);
3587 if(!basic_filebuf_char_is_open(this))
3590 if(call_basic_streambuf_char_overflow(&this->base
, EOF
) == EOF
)
3592 return fflush(this->file
);
3595 /* ?imbue@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEXABVlocale@2@@Z */
3596 /* ?imbue@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAXAEBVlocale@2@@Z */
3597 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_imbue
, 8)
3598 void __thiscall
basic_filebuf_char_imbue(basic_filebuf_char
*this, const locale
*loc
)
3600 TRACE("(%p %p)\n", this, loc
);
3601 basic_filebuf_char__Initcvt_cvt(this, codecvt_char_use_facet(loc
));
3604 /* ?_Stinit@?1??_Init@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@23@@Z@4HA */
3605 /* ?_Stinit@?1??_Init@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@23@@Z@4HA */
3606 #if _MSVCP_VER >= 140
3607 _Mbstatet basic_filebuf_wchar__Init__Stinit
= {0};
3609 _Mbstatet basic_filebuf_wchar__Init__Stinit
= 0;
3612 /* ?_Stinit@?1??_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@23@@Z@4HA */
3613 /* ?_Stinit@?1??_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@23@@Z@4HA */
3614 #if _MSVCP_VER >= 140
3615 _Mbstatet basic_filebuf_short__Init__Stinit
= {0};
3617 _Mbstatet basic_filebuf_short__Init__Stinit
= 0;
3620 /* ?_Init@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@12@@Z */
3621 /* ?_Init@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@12@@Z */
3622 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar__Init
, 12)
3623 void __thiscall
basic_filebuf_wchar__Init(basic_filebuf_wchar
*this, FILE *file
, basic_filebuf__Initfl which
)
3625 TRACE("(%p %p %d)\n", this, file
, which
);
3628 this->wrotesome
= FALSE
;
3629 this->state
= basic_filebuf_wchar__Init__Stinit
;
3630 this->close
= (which
== INITFL_open
);
3633 basic_streambuf_wchar__Init_empty(&this->base
);
3636 /* ?_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@12@@Z */
3637 /* ?_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@12@@Z */
3638 DEFINE_THISCALL_WRAPPER(basic_filebuf_short__Init
, 12)
3639 void __thiscall
basic_filebuf_short__Init(basic_filebuf_wchar
*this, FILE *file
, basic_filebuf__Initfl which
)
3641 TRACE("(%p %p %d)\n", this, file
, which
);
3644 this->wrotesome
= FALSE
;
3645 this->state
= basic_filebuf_short__Init__Stinit
;
3646 this->close
= (which
== INITFL_open
);
3649 basic_streambuf_wchar__Init_empty(&this->base
);
3652 /* ?_Initcvt@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IAEXPAV?$codecvt@_WDH@2@@Z */
3653 /* ?_Initcvt@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEAV?$codecvt@_WDH@2@@Z */
3654 /* ?_Initcvt@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAEXPAV?$codecvt@GDH@2@@Z */
3655 /* ?_Initcvt@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAAXPEAV?$codecvt@GDH@2@@Z */
3656 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar__Initcvt_cvt
, 8)
3657 void __thiscall
basic_filebuf_wchar__Initcvt_cvt(basic_filebuf_wchar
*this, codecvt_wchar
*cvt
)
3659 TRACE("(%p %p)\n", this, cvt
);
3661 if(codecvt_base_always_noconv(&cvt
->base
)) {
3664 basic_streambuf_wchar__Init_empty(&this->base
);
3669 /* ?_Initcvt@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAEXXZ */
3670 /* ?_Initcvt@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAAXXZ */
3671 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar__Initcvt
, 4)
3672 void __thiscall
basic_filebuf_wchar__Initcvt(basic_filebuf_wchar
*this)
3674 codecvt_wchar
*cvt
= codecvt_wchar_use_facet(IOS_LOCALE(&this->base
));
3675 basic_filebuf_wchar__Initcvt_cvt( this, cvt
);
3678 /* ?_Endwrite@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IAE_NXZ */
3679 /* ?_Endwrite@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IEAA_NXZ */
3680 /* ?_Endwrite@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAE_NXZ */
3681 /* ?_Endwrite@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAA_NXZ */
3682 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar__Endwrite
, 4)
3683 MSVCP_bool __thiscall
basic_filebuf_wchar__Endwrite(basic_filebuf_wchar
*this)
3685 TRACE("(%p)\n", this);
3687 if(!this->wrotesome
|| !this->cvt
)
3690 if(call_basic_streambuf_wchar_overflow(&this->base
, WEOF
) == WEOF
)
3694 /* TODO: check if we need a dynamic buffer here */
3699 ret
= codecvt_wchar_unshift(this->cvt
, &this->state
, buf
, buf
+sizeof(buf
), &next
);
3702 this->wrotesome
= FALSE
;
3704 case CODECVT_partial
:
3705 if(!fwrite(buf
, next
-buf
, 1, this->file
))
3710 case CODECVT_noconv
:
3711 if(call_basic_streambuf_wchar_overflow(&this->base
, WEOF
) == WEOF
)
3720 /* ?close@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@XZ */
3721 /* ?close@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@XZ */
3722 /* ?close@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@XZ */
3723 /* ?close@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@XZ */
3724 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_close
, 4)
3725 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_close(basic_filebuf_wchar
*this)
3727 basic_filebuf_wchar
*ret
= this;
3729 TRACE("(%p)\n", this);
3734 /* TODO: handle exceptions */
3735 if(!basic_filebuf_wchar__Endwrite(this))
3737 if(fclose(this->file
))
3740 basic_filebuf_wchar__Init(this, NULL
, INITFL_close
);
3744 /* ??0?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
3745 /* ??0?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
3746 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_ctor_file
, 8)
3747 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_ctor_file(basic_filebuf_wchar
*this, FILE *file
)
3749 TRACE("(%p %p)\n", this, file
);
3751 basic_streambuf_wchar_ctor(&this->base
);
3752 this->base
.vtable
= &MSVCP_basic_filebuf_wchar_vtable
;
3754 basic_filebuf_wchar__Init(this, file
, INITFL_new
);
3758 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
3759 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
3760 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_ctor_file
, 8)
3761 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_ctor_file(basic_filebuf_wchar
*this, FILE *file
)
3763 TRACE("(%p %p)\n", this, file
);
3765 basic_streambuf_short_ctor(&this->base
);
3766 this->base
.vtable
= &MSVCP_basic_filebuf_short_vtable
;
3768 basic_filebuf_short__Init(this, file
, INITFL_new
);
3772 /* ??_F?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
3773 /* ??_F?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
3774 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_ctor
, 4)
3775 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_ctor(basic_filebuf_wchar
*this)
3777 return basic_filebuf_wchar_ctor_file(this, NULL
);
3780 /* ??_F?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
3781 /* ??_F?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
3782 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_ctor
, 4)
3783 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_ctor(basic_filebuf_wchar
*this)
3785 return basic_filebuf_short_ctor_file(this, NULL
);
3788 /* ??0?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAE@W4_Uninitialized@1@@Z */
3789 /* ??0?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
3790 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_ctor_uninitialized
, 8)
3791 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_ctor_uninitialized(basic_filebuf_wchar
*this, int uninitialized
)
3793 TRACE("(%p %d)\n", this, uninitialized
);
3795 basic_streambuf_wchar_ctor(&this->base
);
3796 this->base
.vtable
= &MSVCP_basic_filebuf_wchar_vtable
;
3800 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAE@W4_Uninitialized@1@@Z */
3801 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
3802 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_ctor_uninitialized
, 8)
3803 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_ctor_uninitialized(basic_filebuf_wchar
*this, int uninitialized
)
3805 TRACE("(%p %d)\n", this, uninitialized
);
3807 basic_streambuf_short_ctor(&this->base
);
3808 this->base
.vtable
= &MSVCP_basic_filebuf_short_vtable
;
3812 /* ??1?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
3813 /* ??1?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
3814 /* ??1?$basic_filebuf@GU?$char_traits@G@std@@@std@@UAE@XZ */
3815 /* ??1?$basic_filebuf@GU?$char_traits@G@std@@@std@@UEAA@XZ */
3816 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_dtor
, 4)
3817 void __thiscall
basic_filebuf_wchar_dtor(basic_filebuf_wchar
*this)
3819 TRACE("(%p)\n", this);
3822 basic_filebuf_wchar_close(this);
3823 basic_streambuf_wchar_dtor(&this->base
);
3826 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_vector_dtor
, 8)
3827 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_vector_dtor(basic_filebuf_wchar
*this, unsigned int flags
)
3829 TRACE("(%p %x)\n", this, flags
);
3831 /* we have an array, with the number of elements stored before the first object */
3832 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
3834 for(i
=*ptr
-1; i
>=0; i
--)
3835 basic_filebuf_wchar_dtor(this+i
);
3836 MSVCRT_operator_delete(ptr
);
3838 basic_filebuf_wchar_dtor(this);
3840 MSVCRT_operator_delete(this);
3846 /* ?is_open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
3847 /* ?is_open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
3848 /* ?is_open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QBE_NXZ */
3849 /* ?is_open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
3850 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_is_open
, 4)
3851 MSVCP_bool __thiscall
basic_filebuf_wchar_is_open(const basic_filebuf_wchar
*this)
3853 TRACE("(%p)\n", this);
3854 return this->file
!= NULL
;
3857 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PB_WHH@Z */
3858 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEB_WHH@Z */
3859 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBGHH@Z */
3860 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBGHH@Z */
3861 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open_wchar
, 16)
3862 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_open_wchar(basic_filebuf_wchar
*this, const wchar_t *name
, int mode
, int prot
)
3866 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
3868 if(basic_filebuf_wchar_is_open(this))
3871 if(!(f
= _Fiopen_wchar(name
, mode
, prot
)))
3874 basic_filebuf_wchar__Init(this, f
, INITFL_open
);
3875 basic_filebuf_wchar__Initcvt_cvt(this, codecvt_wchar_use_facet(IOS_LOCALE(&this->base
)));
3879 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PB_WHH@Z */
3880 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEB_WHH@Z */
3881 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBGHH@Z */
3882 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBGHH@Z */
3883 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_open_wchar
, 16)
3884 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_open_wchar(basic_filebuf_wchar
*this, const wchar_t *name
, int mode
, int prot
)
3888 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
3890 if(basic_filebuf_wchar_is_open(this))
3893 if(!(f
= _Fiopen_wchar(name
, mode
, prot
)))
3896 basic_filebuf_short__Init(this, f
, INITFL_open
);
3897 basic_filebuf_wchar__Initcvt_cvt(this, codecvt_short_use_facet(IOS_LOCALE(&this->base
)));
3901 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PB_WI@Z */
3902 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEB_WI@Z */
3903 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBGI@Z */
3904 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBGI@Z */
3905 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open_wchar_mode
, 12)
3906 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_open_wchar_mode(basic_filebuf_wchar
*this, const wchar_t *name
, unsigned int mode
)
3908 return basic_filebuf_wchar_open_wchar(this, name
, mode
, SH_DENYNO
);
3911 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PB_WI@Z */
3912 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEB_WI@Z */
3913 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBGI@Z */
3914 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBGI@Z */
3915 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_open_wchar_mode
, 12)
3916 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_open_wchar_mode(basic_filebuf_wchar
*this, const wchar_t *name
, unsigned int mode
)
3918 return basic_filebuf_short_open_wchar(this, name
, mode
, SH_DENYNO
);
3921 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBDHH@Z */
3922 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBDHH@Z */
3923 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open
, 16)
3924 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_open(basic_filebuf_wchar
*this, const char *name
, int mode
, int prot
)
3926 wchar_t nameW
[FILENAME_MAX
];
3928 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
3930 if(mbstowcs_s(NULL
, nameW
, FILENAME_MAX
, name
, FILENAME_MAX
-1) != 0)
3932 return basic_filebuf_wchar_open_wchar(this, nameW
, mode
, prot
);
3935 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDHH@Z */
3936 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDHH@Z */
3937 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_open
, 16)
3938 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_open(basic_filebuf_wchar
*this, const char *name
, int mode
, int prot
)
3940 wchar_t nameW
[FILENAME_MAX
];
3942 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
3944 if(mbstowcs_s(NULL
, nameW
, FILENAME_MAX
, name
, FILENAME_MAX
-1) != 0)
3946 return basic_filebuf_short_open_wchar(this, nameW
, mode
, prot
);
3949 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDF@Z */
3950 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDF@Z */
3951 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open_mode_old
, 12)
3952 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_open_mode_old(basic_filebuf_wchar
*this, const char *name
, short mode
)
3954 TRACE("(%p %p %d)\n", this, name
, mode
);
3955 return basic_filebuf_wchar_open(this, name
, mode
, SH_DENYNO
);
3958 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDH@Z */
3959 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDH@Z */
3960 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBDI@Z */
3961 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBDI@Z */
3962 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open_mode
, 12)
3963 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_open_mode(basic_filebuf_wchar
*this, const char *name
, unsigned int mode
)
3965 return basic_filebuf_wchar_open(this, name
, mode
, SH_DENYNO
);
3968 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDI@Z */
3969 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDI@Z */
3970 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_open_mode
, 12)
3971 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_open_mode(basic_filebuf_wchar
*this, const char *name
, unsigned int mode
)
3973 return basic_filebuf_short_open(this, name
, mode
, SH_DENYNO
);
3976 /* ?overflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
3977 /* ?overflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
3978 /* ?overflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
3979 /* ?overflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
3980 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_overflow
, 8)
3981 unsigned short __thiscall
basic_filebuf_wchar_overflow(basic_filebuf_wchar
*this, unsigned short c
)
3983 char buf
[8], *dyn_buf
, *to_next
;
3985 const wchar_t *from_next
;
3990 TRACE("(%p %d)\n", this, c
);
3992 if(!basic_filebuf_wchar_is_open(this))
3998 return fwrite(&ch
, sizeof(wchar_t), 1, this->file
) ? c
: WEOF
;
4002 ret
= codecvt_wchar_out(this->cvt
, &this->state
, from_next
, &ch
+1,
4003 &from_next
, buf
, buf
+sizeof(buf
), &to_next
);
4006 case CODECVT_partial
:
4011 if(!fwrite(buf
, to_next
-buf
, 1, this->file
))
4013 if(ret
== CODECVT_partial
)
4016 case CODECVT_noconv
:
4017 return fwrite(&ch
, sizeof(wchar_t), 1, this->file
) ? c
: WEOF
;
4025 max_size
= codecvt_base_max_length(&this->cvt
->base
);
4026 dyn_buf
= malloc(max_size
);
4030 ret
= codecvt_wchar_out(this->cvt
, &this->state
, from_next
, &ch
+1,
4031 &from_next
, dyn_buf
, dyn_buf
+max_size
, &to_next
);
4035 ret
= fwrite(dyn_buf
, to_next
-dyn_buf
, 1, this->file
);
4037 return ret
? c
: WEOF
;
4038 case CODECVT_partial
:
4039 ERR("buffer should be big enough to store all output\n");
4047 /* ?pbackfail@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
4048 /* ?pbackfail@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
4049 /* ?pbackfail@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
4050 /* ?pbackfail@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
4051 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_pbackfail
, 8)
4052 unsigned short __thiscall
basic_filebuf_wchar_pbackfail(basic_filebuf_wchar
*this, unsigned short c
)
4054 TRACE("(%p %d)\n", this, c
);
4056 if(!basic_filebuf_wchar_is_open(this))
4059 if(basic_streambuf_wchar_gptr(&this->base
)>basic_streambuf_wchar_eback(&this->base
)
4060 && (c
==WEOF
|| basic_streambuf_wchar_gptr(&this->base
)[-1]==c
)) {
4061 basic_streambuf_wchar__Gndec(&this->base
);
4062 return c
==WEOF
? !c
: c
;
4063 }else if(c
!=WEOF
&& !this->cvt
) {
4064 return ungetwc(c
, this->file
);
4065 }else if(c
!=WEOF
&& basic_streambuf_wchar_gptr(&this->base
)!=&this->putback
) {
4067 basic_streambuf_wchar_setg(&this->base
, &this->putback
, &this->putback
, &this->putback
+1);
4074 /* ?uflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
4075 /* ?uflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
4076 /* ?uflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
4077 /* ?uflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
4078 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_uflow
, 4)
4079 unsigned short __thiscall
basic_filebuf_wchar_uflow(basic_filebuf_wchar
*this)
4081 wchar_t ch
, *to_next
;
4083 const char *buf_next
;
4087 TRACE("(%p)\n", this);
4089 if(!basic_filebuf_wchar_is_open(this))
4092 if(basic_streambuf_wchar_gptr(&this->base
) < basic_streambuf_wchar_egptr(&this->base
))
4093 return *basic_streambuf_wchar__Gninc(&this->base
);
4096 return fgetwc(this->file
);
4099 for(i
=0; i
< sizeof(buf
)/sizeof(buf
[0]); i
++) {
4100 if((c
= fgetc(this->file
)) == EOF
)
4104 switch(codecvt_wchar_in(this->cvt
, &this->state
, buf_next
,
4105 buf
+i
+1, &buf_next
, &ch
, &ch
+1, &to_next
)) {
4106 case CODECVT_partial
:
4111 for(j
= --i
; j
>= buf_next
-buf
; j
--)
4112 ungetc(buf
[j
], this->file
);
4114 case CODECVT_noconv
:
4115 if(i
+1 < sizeof(wchar_t))
4118 memcpy(&ch
, buf
, sizeof(wchar_t));
4125 FIXME("buffer is too small\n");
4129 /* ?underflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
4130 /* ?underflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
4131 /* ?underflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
4132 /* ?underflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
4133 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_underflow
, 4)
4134 unsigned short __thiscall
basic_filebuf_wchar_underflow(basic_filebuf_wchar
*this)
4138 TRACE("(%p)\n", this);
4140 if(basic_streambuf_wchar_gptr(&this->base
) < basic_streambuf_wchar_egptr(&this->base
))
4141 return *basic_streambuf_wchar_gptr(&this->base
);
4143 ret
= call_basic_streambuf_wchar_uflow(&this->base
);
4145 ret
= call_basic_streambuf_wchar_pbackfail(&this->base
, ret
);
4149 /* ?seekoff@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
4150 /* ?seekoff@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
4151 /* ?seekoff@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
4152 /* ?seekoff@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
4153 /* ?seekoff@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
4154 /* ?seekoff@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
4155 #if STREAMOFF_BITS == 64
4156 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_seekoff
, 24)
4158 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_seekoff
, 20)
4160 fpos_mbstatet
* __thiscall
basic_filebuf_wchar_seekoff(basic_filebuf_wchar
*this,
4161 fpos_mbstatet
*ret
, streamoff off
, int way
, int mode
)
4165 TRACE("(%p %p %s %d %d)\n", this, ret
, wine_dbgstr_longlong(off
), way
, mode
);
4167 if(basic_streambuf_wchar_gptr(&this->base
) == &this->putback
) {
4168 if(way
== SEEKDIR_cur
)
4169 off
-= sizeof(wchar_t);
4171 basic_streambuf_wchar_setg(&this->base
, &this->putback
, &this->putback
+1, &this->putback
+1);
4174 if(!basic_filebuf_wchar_is_open(this) || !basic_filebuf_wchar__Endwrite(this)
4175 || fseek(this->file
, off
, way
)) {
4178 memset(&ret
->state
, 0, sizeof(ret
->state
));
4182 fgetpos(this->file
, &pos
);
4185 ret
->state
= this->state
;
4189 /* ?seekpos@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
4190 /* ?seekpos@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
4191 /* ?seekpos@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
4192 /* ?seekpos@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
4193 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_seekpos
, 36)
4194 fpos_mbstatet
* __thiscall
basic_filebuf_wchar_seekpos(basic_filebuf_wchar
*this,
4195 fpos_mbstatet
*ret
, fpos_mbstatet pos
, int mode
)
4199 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_mbstatet(&pos
), mode
);
4201 if(!basic_filebuf_wchar_is_open(this) || !basic_filebuf_wchar__Endwrite(this)
4202 || fseek(this->file
, (LONG
)pos
.pos
, SEEK_SET
)
4203 || (pos
.off
&& fseek(this->file
, pos
.off
, SEEK_CUR
))) {
4206 memset(&ret
->state
, 0, sizeof(ret
->state
));
4210 if(basic_streambuf_wchar_gptr(&this->base
) == &this->putback
)
4211 basic_streambuf_wchar_setg(&this->base
, &this->putback
, &this->putback
+1, &this->putback
+1);
4213 fgetpos(this->file
, &fpos
);
4216 ret
->state
= this->state
;
4220 /* ?setbuf@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PA_WH@Z */
4221 /* ?setbuf@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PEA_W_J@Z */
4222 #if STREAMSIZE_BITS == 64
4223 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_setbuf
, 16)
4225 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_setbuf
, 12)
4227 basic_streambuf_wchar
* __thiscall
basic_filebuf_wchar_setbuf(basic_filebuf_wchar
*this, wchar_t *buf
, streamsize count
)
4229 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
4231 if(!basic_filebuf_wchar_is_open(this))
4234 if(setvbuf(this->file
, (char*)buf
, (buf
==NULL
&& count
==0) ? _IONBF
: _IOFBF
, count
*sizeof(wchar_t)))
4237 basic_filebuf_wchar__Init(this, this->file
, INITFL_open
);
4241 /* ?setbuf@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PAGH@Z */
4242 /* ?setbuf@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PEAG_J@Z */
4243 #if STREAMSIZE_BITS == 64
4244 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_setbuf
, 16)
4246 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_setbuf
, 12)
4248 basic_streambuf_wchar
* __thiscall
basic_filebuf_short_setbuf(basic_filebuf_wchar
*this, wchar_t *buf
, streamsize count
)
4250 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
4252 if(!basic_filebuf_wchar_is_open(this))
4255 if(setvbuf(this->file
, (char*)buf
, (buf
==NULL
&& count
==0) ? _IONBF
: _IOFBF
, count
*sizeof(wchar_t)))
4258 basic_filebuf_short__Init(this, this->file
, INITFL_open
);
4262 /* ?sync@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEHXZ */
4263 /* ?sync@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAHXZ */
4264 /* ?sync@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEHXZ */
4265 /* ?sync@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAHXZ */
4266 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_sync
, 4)
4267 int __thiscall
basic_filebuf_wchar_sync(basic_filebuf_wchar
*this)
4269 TRACE("(%p)\n", this);
4271 if(!basic_filebuf_wchar_is_open(this))
4274 if(call_basic_streambuf_wchar_overflow(&this->base
, WEOF
) == WEOF
)
4276 return fflush(this->file
);
4279 /* ?imbue@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEXABVlocale@2@@Z */
4280 /* ?imbue@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAXAEBVlocale@2@@Z */
4281 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_imbue
, 8)
4282 void __thiscall
basic_filebuf_wchar_imbue(basic_filebuf_wchar
*this, const locale
*loc
)
4284 TRACE("(%p %p)\n", this, loc
);
4285 basic_filebuf_wchar__Initcvt_cvt(this, codecvt_wchar_use_facet(loc
));
4288 /* ?imbue@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEXABVlocale@2@@Z */
4289 /* ?imbue@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAXAEBVlocale@2@@Z */
4290 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_imbue
, 8)
4291 void __thiscall
basic_filebuf_short_imbue(basic_filebuf_wchar
*this, const locale
*loc
)
4293 TRACE("(%p %p)\n", this, loc
);
4294 basic_filebuf_wchar__Initcvt_cvt(this, codecvt_short_use_facet(loc
));
4297 /* ?_Getstate@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEHH@Z */
4298 /* ?_Getstate@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAHH@Z */
4299 /* ?_Mode@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEHH@Z */
4300 /* ?_Mode@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAHH@Z */
4301 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char__Getstate
, 8)
4302 int __thiscall
basic_stringbuf_char__Getstate(basic_stringbuf_char
*this, IOSB_openmode mode
)
4306 if(!(mode
& OPENMODE_in
))
4307 state
|= STRINGBUF_no_read
;
4309 if(!(mode
& OPENMODE_out
))
4310 state
|= STRINGBUF_no_write
;
4312 if(mode
& OPENMODE_ate
)
4313 state
|= STRINGBUF_at_end
;
4315 if(mode
& OPENMODE_app
)
4316 state
|= STRINGBUF_append
;
4321 /* ?_Init@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXPBDIH@Z */
4322 /* ?_Init@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAXPEBD_KH@Z */
4323 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char__Init
, 16)
4324 void __thiscall
basic_stringbuf_char__Init(basic_stringbuf_char
*this, const char *str
, MSVCP_size_t count
, int state
)
4326 TRACE("(%p, %p, %ld, %d)\n", this, str
, count
, state
);
4328 basic_streambuf_char__Init_empty(&this->base
);
4330 this->state
= state
;
4331 this->seekhigh
= NULL
;
4334 char *buf
= MSVCRT_operator_new(count
);
4336 ERR("Out of memory\n");
4337 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
4340 memcpy(buf
, str
, count
);
4341 this->seekhigh
= buf
+ count
;
4343 this->state
|= STRINGBUF_allocated
;
4345 if(!(state
& STRINGBUF_no_read
))
4346 basic_streambuf_char_setg(&this->base
, buf
, buf
, buf
+ count
);
4348 if(!(state
& STRINGBUF_no_write
)) {
4349 basic_streambuf_char_setp_next(&this->base
, buf
, (state
& STRINGBUF_at_end
) ? buf
+ count
: buf
, buf
+ count
);
4351 if(!basic_streambuf_char_gptr(&this->base
))
4352 basic_streambuf_char_setg(&this->base
, buf
, 0, buf
);
4357 /* ??0?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@H@Z */
4358 /* ??0?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@H@Z */
4359 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_ctor_str
, 12)
4360 basic_stringbuf_char
* __thiscall
basic_stringbuf_char_ctor_str(basic_stringbuf_char
*this,
4361 const basic_string_char
*str
, IOSB_openmode mode
)
4363 TRACE("(%p %p %d)\n", this, str
, mode
);
4365 basic_streambuf_char_ctor(&this->base
);
4366 this->base
.vtable
= &MSVCP_basic_stringbuf_char_vtable
;
4368 basic_stringbuf_char__Init(this, MSVCP_basic_string_char_c_str(str
),
4369 str
->size
, basic_stringbuf_char__Getstate(this, mode
));
4373 /* ??0?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
4374 /* ??0?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
4375 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_ctor_mode
, 8)
4376 basic_stringbuf_char
* __thiscall
basic_stringbuf_char_ctor_mode(
4377 basic_stringbuf_char
*this, IOSB_openmode mode
)
4379 TRACE("(%p %d)\n", this, mode
);
4381 basic_streambuf_char_ctor(&this->base
);
4382 this->base
.vtable
= &MSVCP_basic_stringbuf_char_vtable
;
4384 basic_stringbuf_char__Init(this, NULL
, 0, basic_stringbuf_char__Getstate(this, mode
));
4388 /* ??_F?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
4389 /* ??_F?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
4390 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_ctor
, 4)
4391 basic_stringbuf_char
* __thiscall
basic_stringbuf_char_ctor(basic_stringbuf_char
*this)
4393 return basic_stringbuf_char_ctor_mode(this, OPENMODE_in
|OPENMODE_out
);
4396 /* ?_Tidy@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXXZ */
4397 /* ?_Tidy@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAXXZ */
4398 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char__Tidy
, 4)
4399 void __thiscall
basic_stringbuf_char__Tidy(basic_stringbuf_char
*this)
4401 TRACE("(%p)\n", this);
4403 if(this->state
& STRINGBUF_allocated
) {
4404 MSVCRT_operator_delete(basic_streambuf_char_eback(&this->base
));
4405 this->seekhigh
= NULL
;
4406 this->state
&= ~STRINGBUF_allocated
;
4409 basic_streambuf_char__Init_empty(&this->base
);
4412 /* ??1?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
4413 /* ??1?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
4414 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_dtor
, 4)
4415 void __thiscall
basic_stringbuf_char_dtor(basic_stringbuf_char
*this)
4417 TRACE("(%p)\n", this);
4419 basic_stringbuf_char__Tidy(this);
4420 basic_streambuf_char_dtor(&this->base
);
4423 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_vector_dtor
, 8)
4424 basic_stringbuf_char
* __thiscall
basic_stringbuf_char_vector_dtor(basic_stringbuf_char
*this, unsigned int flags
)
4426 TRACE("(%p %x)\n", this, flags
);
4429 /* we have an array, with the number of elements stored before the first object */
4430 INT_PTR i
, *ptr
= (INT_PTR
*) this - 1;
4432 for (i
= *ptr
- 1; i
>= 0; i
--)
4433 basic_stringbuf_char_dtor(this+i
);
4435 MSVCRT_operator_delete(ptr
);
4437 basic_stringbuf_char_dtor(this);
4440 MSVCRT_operator_delete(this);
4446 /* ?overflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHH@Z */
4447 /* ?overflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAAHH@Z */
4448 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_overflow
, 8)
4449 int __thiscall
basic_stringbuf_char_overflow(basic_stringbuf_char
*this, int meta
)
4451 MSVCP_size_t oldsize
, size
;
4454 TRACE("(%p %x)\n", this, meta
);
4458 if(this->state
& STRINGBUF_no_write
)
4461 ptr
= basic_streambuf_char_pptr(&this->base
);
4462 if((this->state
&STRINGBUF_append
) && ptr
<this->seekhigh
)
4463 basic_streambuf_char_setp_next(&this->base
, basic_streambuf_char_pbase(&this->base
),
4464 this->seekhigh
, basic_streambuf_char_epptr(&this->base
));
4466 if(ptr
&& ptr
<basic_streambuf_char_epptr(&this->base
))
4467 return (unsigned char)(*basic_streambuf_char__Pninc(&this->base
) = meta
);
4469 oldsize
= (ptr
? basic_streambuf_char_epptr(&this->base
)-basic_streambuf_char_eback(&this->base
): 0);
4472 buf
= MSVCRT_operator_new(size
);
4474 ERR("Out of memory\n");
4475 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
4479 this->seekhigh
= buf
;
4480 basic_streambuf_char_setp(&this->base
, buf
, buf
+size
);
4481 if(this->state
& STRINGBUF_no_read
)
4482 basic_streambuf_char_setg(&this->base
, buf
, NULL
, buf
);
4484 basic_streambuf_char_setg(&this->base
, buf
, buf
, buf
+1);
4486 this->state
|= STRINGBUF_allocated
;
4488 ptr
= basic_streambuf_char_eback(&this->base
);
4489 memcpy(buf
, ptr
, oldsize
);
4491 this->seekhigh
= buf
+(this->seekhigh
-ptr
);
4492 basic_streambuf_char_setp_next(&this->base
, buf
,
4493 buf
+(basic_streambuf_char_pptr(&this->base
)-ptr
), buf
+size
);
4494 if(this->state
& STRINGBUF_no_read
)
4495 basic_streambuf_char_setg(&this->base
, buf
, NULL
, buf
);
4497 basic_streambuf_char_setg(&this->base
, buf
,
4498 buf
+(basic_streambuf_char_gptr(&this->base
)-ptr
),
4499 basic_streambuf_char_pptr(&this->base
)+1);
4501 MSVCRT_operator_delete(ptr
);
4504 return (unsigned char)(*basic_streambuf_char__Pninc(&this->base
) = meta
);
4507 /* ?pbackfail@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHH@Z */
4508 /* ?pbackfail@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAAHH@Z */
4509 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_pbackfail
, 8)
4510 int __thiscall
basic_stringbuf_char_pbackfail(basic_stringbuf_char
*this, int c
)
4514 TRACE("(%p %x)\n", this, c
);
4516 cur
= basic_streambuf_char_gptr(&this->base
);
4517 if(!cur
|| cur
==basic_streambuf_char_eback(&this->base
)
4518 || (c
!=EOF
&& c
!=cur
[-1] && this->state
&STRINGBUF_no_write
))
4523 basic_streambuf_char_gbump(&this->base
, -1);
4524 return c
==EOF
? !EOF
: c
;
4527 /* ?underflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHXZ */
4528 /* ?underflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAAHXZ */
4529 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_underflow
, 4)
4530 int __thiscall
basic_stringbuf_char_underflow(basic_stringbuf_char
*this)
4534 TRACE("(%p)\n", this);
4536 cur
= basic_streambuf_char_gptr(&this->base
);
4537 if(!cur
|| this->state
&STRINGBUF_no_read
)
4540 ptr
= basic_streambuf_char_pptr(&this->base
);
4541 if(this->seekhigh
< ptr
)
4542 this->seekhigh
= ptr
;
4544 ptr
= basic_streambuf_char_egptr(&this->base
);
4545 if(this->seekhigh
> ptr
)
4546 basic_streambuf_char_setg(&this->base
, basic_streambuf_char_eback(&this->base
), cur
, this->seekhigh
);
4548 if(cur
< this->seekhigh
)
4549 return (unsigned char)*cur
;
4553 /* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
4554 /* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
4555 /* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAE?AV?$fpos@H@2@JHH@Z */
4556 /* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
4557 #if STREAMOFF_BITS == 64
4558 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_seekoff
, 24)
4560 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_seekoff
, 20)
4562 fpos_mbstatet
* __thiscall
basic_stringbuf_char_seekoff(basic_stringbuf_char
*this,
4563 fpos_mbstatet
*ret
, streamoff off
, int way
, int mode
)
4565 char *beg
, *cur_r
, *cur_w
;
4567 TRACE("(%p %p %s %d %d)\n", this, ret
, wine_dbgstr_longlong(off
), way
, mode
);
4569 cur_w
= basic_streambuf_char_pptr(&this->base
);
4570 if(cur_w
> this->seekhigh
)
4571 this->seekhigh
= cur_w
;
4575 memset(&ret
->state
, 0, sizeof(ret
->state
));
4577 beg
= basic_streambuf_char_eback(&this->base
);
4578 cur_r
= basic_streambuf_char_gptr(&this->base
);
4579 if((mode
& OPENMODE_in
) && cur_r
) {
4580 if(way
==SEEKDIR_cur
&& !(mode
& OPENMODE_out
))
4582 else if(way
== SEEKDIR_end
)
4583 off
+= this->seekhigh
-beg
;
4584 else if(way
!= SEEKDIR_beg
)
4587 if(off
<0 || off
>this->seekhigh
-beg
) {
4590 basic_streambuf_char_gbump(&this->base
, beg
-cur_r
+off
);
4591 if((mode
& OPENMODE_out
) && cur_w
) {
4592 basic_streambuf_char_setp_next(&this->base
, beg
,
4593 basic_streambuf_char_gptr(&this->base
),
4594 basic_streambuf_char_epptr(&this->base
));
4597 }else if((mode
& OPENMODE_out
) && cur_w
) {
4598 if(way
== SEEKDIR_cur
)
4600 else if(way
== SEEKDIR_end
)
4601 off
+= this->seekhigh
-beg
;
4602 else if(way
!= SEEKDIR_beg
)
4605 if(off
<0 || off
>this->seekhigh
-beg
)
4608 basic_streambuf_char_pbump(&this->base
, beg
-cur_w
+off
);
4617 /* ?seekpos@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
4618 /* ?seekpos@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
4619 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_seekpos
, 36)
4620 fpos_mbstatet
* __thiscall
basic_stringbuf_char_seekpos(basic_stringbuf_char
*this,
4621 fpos_mbstatet
*ret
, fpos_mbstatet pos
, int mode
)
4623 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_mbstatet(&pos
), mode
);
4625 if(pos
.off
==-1 && pos
.pos
==0 && MBSTATET_TO_INT(&pos
.state
)==0) {
4630 return basic_stringbuf_char_seekoff(this, ret
, pos
.pos
+pos
.off
, SEEKDIR_beg
, mode
);
4633 /* ?str@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z */
4634 /* ?str@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z */
4635 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_str_set
, 8)
4636 void __thiscall
basic_stringbuf_char_str_set(basic_stringbuf_char
*this, const basic_string_char
*str
)
4638 TRACE("(%p %p)\n", this, str
);
4640 basic_stringbuf_char__Tidy(this);
4641 basic_stringbuf_char__Init(this, MSVCP_basic_string_char_c_str(str
), str
->size
, this->state
);
4644 /* ?str@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
4645 /* ?str@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
4646 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_str_get
, 8)
4647 basic_string_char
* __thiscall
basic_stringbuf_char_str_get(const basic_stringbuf_char
*this, basic_string_char
*ret
)
4651 TRACE("(%p)\n", this);
4653 if(!(this->state
& STRINGBUF_no_write
) && basic_streambuf_char_pptr(&this->base
)) {
4656 ptr
= basic_streambuf_char_pbase(&this->base
);
4657 pptr
= basic_streambuf_char_pptr(&this->base
);
4659 return MSVCP_basic_string_char_ctor_cstr_len(ret
, ptr
, (this->seekhigh
< pptr
? pptr
: this->seekhigh
) - ptr
);
4662 if(!(this->state
& STRINGBUF_no_read
) && basic_streambuf_char_gptr(&this->base
)) {
4663 ptr
= basic_streambuf_char_eback(&this->base
);
4664 return MSVCP_basic_string_char_ctor_cstr_len(ret
, ptr
, basic_streambuf_char_egptr(&this->base
) - ptr
);
4667 return MSVCP_basic_string_char_ctor(ret
);
4670 /* ?_Getstate@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AAEHH@Z */
4671 /* ?_Getstate@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AEAAHH@Z */
4672 /* ?_Getstate@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AAEHH@Z */
4673 /* ?_Getstate@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AEAAHH@Z */
4674 /* ?_Mode@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AAEHH@Z */
4675 /* ?_Mode@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AEAAHH@Z */
4676 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar__Getstate
, 8)
4677 int __thiscall
basic_stringbuf_wchar__Getstate(basic_stringbuf_wchar
*this, IOSB_openmode mode
)
4681 if(!(mode
& OPENMODE_in
))
4682 state
|= STRINGBUF_no_read
;
4684 if(!(mode
& OPENMODE_out
))
4685 state
|= STRINGBUF_no_write
;
4687 if(mode
& OPENMODE_ate
)
4688 state
|= STRINGBUF_at_end
;
4690 if(mode
& OPENMODE_app
)
4691 state
|= STRINGBUF_append
;
4696 /* ?_Init@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXPB_WIH@Z */
4697 /* ?_Init@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAXPEB_W_KH@Z */
4698 /* ?_Init@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEXPBGIH@Z */
4699 /* ?_Init@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAXPEBG_KH@Z */
4700 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar__Init
, 16)
4701 void __thiscall
basic_stringbuf_wchar__Init(basic_stringbuf_wchar
*this, const wchar_t *str
, MSVCP_size_t count
, int state
)
4703 TRACE("(%p, %p, %lu, %d)\n", this, str
, count
, state
);
4705 basic_streambuf_wchar__Init_empty(&this->base
);
4707 this->state
= state
;
4708 this->seekhigh
= NULL
;
4711 wchar_t *buf
= MSVCRT_operator_new(count
*sizeof(wchar_t));
4713 ERR("Out of memory\n");
4714 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
4717 memcpy(buf
, str
, count
*sizeof(wchar_t));
4718 this->seekhigh
= buf
+ count
;
4720 this->state
|= STRINGBUF_allocated
;
4722 if(!(state
& STRINGBUF_no_read
))
4723 basic_streambuf_wchar_setg(&this->base
, buf
, buf
, buf
+ count
);
4725 if(!(state
& STRINGBUF_no_write
)) {
4726 basic_streambuf_wchar_setp_next(&this->base
, buf
, (state
& STRINGBUF_at_end
) ? buf
+ count
: buf
, buf
+ count
);
4728 if(!basic_streambuf_wchar_gptr(&this->base
))
4729 basic_streambuf_wchar_setg(&this->base
, buf
, 0, buf
);
4734 /* ??0?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@ABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@1@H@Z */
4735 /* ??0?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@AEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@1@H@Z */
4736 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_ctor_str
, 12)
4737 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_wchar_ctor_str(basic_stringbuf_wchar
*this,
4738 const basic_string_wchar
*str
, IOSB_openmode mode
)
4740 TRACE("(%p %p %d)\n", this, str
, mode
);
4742 basic_streambuf_wchar_ctor(&this->base
);
4743 this->base
.vtable
= &MSVCP_basic_stringbuf_wchar_vtable
;
4745 basic_stringbuf_wchar__Init(this, MSVCP_basic_string_wchar_c_str(str
),
4746 str
->size
, basic_stringbuf_wchar__Getstate(this, mode
));
4750 /* ??0?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@ABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@1@H@Z */
4751 /* ??0?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@AEBV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@1@H@Z */
4752 DEFINE_THISCALL_WRAPPER(basic_stringbuf_short_ctor_str
, 12)
4753 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_short_ctor_str(basic_stringbuf_wchar
*this,
4754 const basic_string_wchar
*str
, IOSB_openmode mode
)
4756 basic_stringbuf_wchar_ctor_str(this, str
, mode
);
4757 this->base
.vtable
= &MSVCP_basic_stringbuf_short_vtable
;
4761 /* ??0?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
4762 /* ??0?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
4763 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_ctor_mode
, 8)
4764 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_wchar_ctor_mode(
4765 basic_stringbuf_wchar
*this, IOSB_openmode mode
)
4767 TRACE("(%p %d)\n", this, mode
);
4769 basic_streambuf_wchar_ctor(&this->base
);
4770 this->base
.vtable
= &MSVCP_basic_stringbuf_wchar_vtable
;
4772 basic_stringbuf_wchar__Init(this, NULL
, 0, basic_stringbuf_wchar__Getstate(this, mode
));
4776 /* ??0?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
4777 /* ??0?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
4778 DEFINE_THISCALL_WRAPPER(basic_stringbuf_short_ctor_mode
, 8)
4779 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_short_ctor_mode(
4780 basic_stringbuf_wchar
*this, IOSB_openmode mode
)
4782 basic_stringbuf_wchar_ctor_mode(this, mode
);
4783 this->base
.vtable
= &MSVCP_basic_stringbuf_short_vtable
;
4787 /* ??_F?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
4788 /* ??_F?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
4789 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_ctor
, 4)
4790 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_wchar_ctor(basic_stringbuf_wchar
*this)
4792 return basic_stringbuf_wchar_ctor_mode(this, OPENMODE_in
|OPENMODE_out
);
4795 /* ??_F?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
4796 /* ??_F?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
4797 DEFINE_THISCALL_WRAPPER(basic_stringbuf_short_ctor
, 4)
4798 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_short_ctor(basic_stringbuf_wchar
*this)
4800 return basic_stringbuf_short_ctor_mode(this, OPENMODE_in
|OPENMODE_out
);
4803 /* ?_Tidy@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXXZ */
4804 /* ?_Tidy@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAXXZ */
4805 /* ?_Tidy@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEXXZ */
4806 /* ?_Tidy@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAXXZ */
4807 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar__Tidy
, 4)
4808 void __thiscall
basic_stringbuf_wchar__Tidy(basic_stringbuf_wchar
*this)
4810 TRACE("(%p)\n", this);
4812 if(this->state
& STRINGBUF_allocated
) {
4813 MSVCRT_operator_delete(basic_streambuf_wchar_eback(&this->base
));
4814 this->seekhigh
= NULL
;
4815 this->state
&= ~STRINGBUF_allocated
;
4818 basic_streambuf_wchar__Init_empty(&this->base
);
4821 /* ??1?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
4822 /* ??1?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
4823 /* ??1?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
4824 /* ??1?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
4825 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_dtor
, 4)
4826 void __thiscall
basic_stringbuf_wchar_dtor(basic_stringbuf_wchar
*this)
4828 TRACE("(%p)\n", this);
4830 basic_stringbuf_wchar__Tidy(this);
4831 basic_streambuf_wchar_dtor(&this->base
);
4834 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_vector_dtor
, 8)
4835 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_wchar_vector_dtor(basic_stringbuf_wchar
*this, unsigned int flags
)
4837 TRACE("(%p %x)\n", this, flags
);
4840 /* we have an array, with the number of elements stored before the first object */
4841 INT_PTR i
, *ptr
= (INT_PTR
*) this - 1;
4843 for (i
= *ptr
- 1; i
>= 0; i
--)
4844 basic_stringbuf_wchar_dtor(this+i
);
4846 MSVCRT_operator_delete(ptr
);
4848 basic_stringbuf_wchar_dtor(this);
4851 MSVCRT_operator_delete(this);
4857 /* ?overflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAEGG@Z */
4858 /* ?overflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAAGG@Z */
4859 /* ?overflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAEGG@Z */
4860 /* ?overflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAAGG@Z */
4861 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_overflow
, 8)
4862 unsigned short __thiscall
basic_stringbuf_wchar_overflow(basic_stringbuf_wchar
*this, unsigned short meta
)
4864 MSVCP_size_t oldsize
, size
;
4867 TRACE("(%p %x)\n", this, meta
);
4871 if(this->state
& STRINGBUF_no_write
)
4874 ptr
= basic_streambuf_wchar_pptr(&this->base
);
4875 if((this->state
&STRINGBUF_append
) && ptr
<this->seekhigh
)
4876 basic_streambuf_wchar_setp_next(&this->base
, basic_streambuf_wchar_pbase(&this->base
),
4877 this->seekhigh
, basic_streambuf_wchar_epptr(&this->base
));
4879 if(ptr
&& ptr
<basic_streambuf_wchar_epptr(&this->base
))
4880 return (*basic_streambuf_wchar__Pninc(&this->base
) = meta
);
4882 oldsize
= (ptr
? basic_streambuf_wchar_epptr(&this->base
)-basic_streambuf_wchar_eback(&this->base
): 0);
4885 buf
= MSVCRT_operator_new(size
*sizeof(wchar_t));
4887 ERR("Out of memory\n");
4888 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
4892 this->seekhigh
= buf
;
4893 basic_streambuf_wchar_setp(&this->base
, buf
, buf
+size
);
4894 if(this->state
& STRINGBUF_no_read
)
4895 basic_streambuf_wchar_setg(&this->base
, buf
, NULL
, buf
);
4897 basic_streambuf_wchar_setg(&this->base
, buf
, buf
, buf
+1);
4899 this->state
|= STRINGBUF_allocated
;
4901 ptr
= basic_streambuf_wchar_eback(&this->base
);
4902 memcpy(buf
, ptr
, oldsize
*sizeof(wchar_t));
4904 this->seekhigh
= buf
+(this->seekhigh
-ptr
);
4905 basic_streambuf_wchar_setp_next(&this->base
, buf
,
4906 buf
+(basic_streambuf_wchar_pptr(&this->base
)-ptr
), buf
+size
);
4907 if(this->state
& STRINGBUF_no_read
)
4908 basic_streambuf_wchar_setg(&this->base
, buf
, NULL
, buf
);
4910 basic_streambuf_wchar_setg(&this->base
, buf
,
4911 buf
+(basic_streambuf_wchar_gptr(&this->base
)-ptr
),
4912 basic_streambuf_wchar_pptr(&this->base
)+1);
4914 MSVCRT_operator_delete(ptr
);
4917 return (*basic_streambuf_wchar__Pninc(&this->base
) = meta
);
4920 /* ?pbackfail@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAEGG@Z */
4921 /* ?pbackfail@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAAGG@Z */
4922 /* ?pbackfail@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAEGG@Z */
4923 /* ?pbackfail@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAAGG@Z */
4924 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_pbackfail
, 8)
4925 unsigned short __thiscall
basic_stringbuf_wchar_pbackfail(basic_stringbuf_wchar
*this, unsigned short c
)
4929 TRACE("(%p %x)\n", this, c
);
4931 cur
= basic_streambuf_wchar_gptr(&this->base
);
4932 if(!cur
|| cur
==basic_streambuf_wchar_eback(&this->base
)
4933 || (c
!=WEOF
&& c
!=cur
[-1] && this->state
&STRINGBUF_no_write
))
4938 basic_streambuf_wchar_gbump(&this->base
, -1);
4939 return c
==WEOF
? !WEOF
: c
;
4942 /* ?underflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAEGXZ */
4943 /* ?underflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAAGXZ */
4944 /* ?underflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAEGXZ */
4945 /* ?underflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAAGXZ */
4946 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_underflow
, 4)
4947 unsigned short __thiscall
basic_stringbuf_wchar_underflow(basic_stringbuf_wchar
*this)
4951 TRACE("(%p)\n", this);
4953 cur
= basic_streambuf_wchar_gptr(&this->base
);
4954 if(!cur
|| this->state
&STRINGBUF_no_read
)
4957 ptr
= basic_streambuf_wchar_pptr(&this->base
);
4958 if(this->seekhigh
< ptr
)
4959 this->seekhigh
= ptr
;
4961 ptr
= basic_streambuf_wchar_egptr(&this->base
);
4962 if(this->seekhigh
> ptr
)
4963 basic_streambuf_wchar_setg(&this->base
, basic_streambuf_wchar_eback(&this->base
), cur
, this->seekhigh
);
4965 if(cur
< this->seekhigh
)
4970 /* ?seekoff@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
4971 /* ?seekoff@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
4972 /* ?seekoff@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAE?AV?$fpos@H@2@JHH@Z */
4973 /* ?seekoff@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
4974 /* ?seekoff@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAE?AV?$fpos@H@2@JHH@Z */
4975 /* ?seekoff@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
4976 #if STREAMOFF_BITS == 64
4977 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_seekoff
, 24)
4979 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_seekoff
, 20)
4981 fpos_mbstatet
* __thiscall
basic_stringbuf_wchar_seekoff(basic_stringbuf_wchar
*this,
4982 fpos_mbstatet
*ret
, streamoff off
, int way
, int mode
)
4984 wchar_t *beg
, *cur_r
, *cur_w
;
4986 TRACE("(%p %p %s %d %d)\n", this, ret
, wine_dbgstr_longlong(off
), way
, mode
);
4988 cur_w
= basic_streambuf_wchar_pptr(&this->base
);
4989 if(cur_w
> this->seekhigh
)
4990 this->seekhigh
= cur_w
;
4994 memset(&ret
->state
, 0, sizeof(ret
->state
));
4996 beg
= basic_streambuf_wchar_eback(&this->base
);
4997 cur_r
= basic_streambuf_wchar_gptr(&this->base
);
4998 if((mode
& OPENMODE_in
) && cur_r
) {
4999 if(way
==SEEKDIR_cur
&& !(mode
& OPENMODE_out
))
5001 else if(way
== SEEKDIR_end
)
5002 off
+= this->seekhigh
-beg
;
5003 else if(way
!= SEEKDIR_beg
)
5006 if(off
<0 || off
>this->seekhigh
-beg
) {
5009 basic_streambuf_wchar_gbump(&this->base
, beg
-cur_r
+off
);
5010 if((mode
& OPENMODE_out
) && cur_w
) {
5011 basic_streambuf_wchar_setp_next(&this->base
, beg
,
5012 basic_streambuf_wchar_gptr(&this->base
),
5013 basic_streambuf_wchar_epptr(&this->base
));
5016 }else if((mode
& OPENMODE_out
) && cur_w
) {
5017 if(way
== SEEKDIR_cur
)
5019 else if(way
== SEEKDIR_end
)
5020 off
+= this->seekhigh
-beg
;
5021 else if(way
!= SEEKDIR_beg
)
5024 if(off
<0 || off
>this->seekhigh
-beg
)
5027 basic_streambuf_wchar_pbump(&this->base
, beg
-cur_w
+off
);
5036 /* ?seekpos@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
5037 /* ?seekpos@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
5038 /* ?seekpos@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
5039 /* ?seekpos@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
5040 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_seekpos
, 36)
5041 fpos_mbstatet
* __thiscall
basic_stringbuf_wchar_seekpos(basic_stringbuf_wchar
*this,
5042 fpos_mbstatet
*ret
, fpos_mbstatet pos
, int mode
)
5044 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_mbstatet(&pos
), mode
);
5046 if(pos
.off
==-1 && pos
.pos
==0 && MBSTATET_TO_INT(&pos
.state
)==0) {
5051 return basic_stringbuf_wchar_seekoff(this, ret
, pos
.pos
+pos
.off
, SEEKDIR_beg
, mode
);
5054 /* ?str@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@@Z */
5055 /* ?str@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXAEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@@Z */
5056 /* ?str@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@2@@Z */
5057 /* ?str@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXAEBV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@2@@Z */
5058 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_str_set
, 8)
5059 void __thiscall
basic_stringbuf_wchar_str_set(basic_stringbuf_wchar
*this, const basic_string_wchar
*str
)
5061 TRACE("(%p %p)\n", this, str
);
5063 basic_stringbuf_wchar__Tidy(this);
5064 basic_stringbuf_wchar__Init(this, MSVCP_basic_string_wchar_c_str(str
), str
->size
, this->state
);
5067 /* ?str@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ */
5068 /* ?str@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ */
5069 /* ?str@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBE?AV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@2@XZ */
5070 /* ?str@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA?AV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@2@XZ */
5071 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_str_get
, 8)
5072 basic_string_wchar
* __thiscall
basic_stringbuf_wchar_str_get(const basic_stringbuf_wchar
*this, basic_string_wchar
*ret
)
5076 TRACE("(%p)\n", this);
5078 if(!(this->state
& STRINGBUF_no_write
) && basic_streambuf_wchar_pptr(&this->base
)) {
5081 ptr
= basic_streambuf_wchar_pbase(&this->base
);
5082 pptr
= basic_streambuf_wchar_pptr(&this->base
);
5084 return MSVCP_basic_string_wchar_ctor_cstr_len(ret
, ptr
, (this->seekhigh
< pptr
? pptr
: this->seekhigh
) - ptr
);
5087 if(!(this->state
& STRINGBUF_no_read
) && basic_streambuf_wchar_gptr(&this->base
)) {
5088 ptr
= basic_streambuf_wchar_eback(&this->base
);
5089 return MSVCP_basic_string_wchar_ctor_cstr_len(ret
, ptr
, basic_streambuf_wchar_egptr(&this->base
) - ptr
);
5092 return MSVCP_basic_string_wchar_ctor(ret
);
5095 /* ??0ios_base@std@@IAE@XZ */
5096 /* ??0ios_base@std@@IEAA@XZ */
5097 DEFINE_THISCALL_WRAPPER(ios_base_ctor
, 4)
5098 ios_base
* __thiscall
ios_base_ctor(ios_base
*this)
5100 TRACE("(%p)\n", this);
5101 this->vtable
= &MSVCP_ios_base_vtable
;
5105 /* ??0ios_base@std@@QAE@ABV01@@Z */
5106 /* ??0ios_base@std@@QEAA@AEBV01@@Z */
5107 DEFINE_THISCALL_WRAPPER(ios_base_copy_ctor
, 8)
5108 ios_base
* __thiscall
ios_base_copy_ctor(ios_base
*this, const ios_base
*copy
)
5110 TRACE("(%p %p)\n", this, copy
);
5112 this->vtable
= &MSVCP_ios_base_vtable
;
5116 /* ?_Callfns@ios_base@std@@AAEXW4event@12@@Z */
5117 /* ?_Callfns@ios_base@std@@AEAAXW4event@12@@Z */
5118 DEFINE_THISCALL_WRAPPER(ios_base_Callfns
, 8)
5119 void __thiscall
ios_base_Callfns(ios_base
*this, IOS_BASE_event event
)
5121 IOS_BASE_fnarray
*cur
;
5123 TRACE("(%p %x)\n", this, event
);
5125 for(cur
=this->calls
; cur
; cur
=cur
->next
)
5126 cur
->event_handler(event
, this, cur
->index
);
5129 /* ?_Tidy@ios_base@std@@AAAXXZ */
5130 /* ?_Tidy@ios_base@std@@AEAAXXZ */
5131 void __cdecl
ios_base_Tidy(ios_base
*this)
5133 IOS_BASE_iosarray
*arr_cur
, *arr_next
;
5134 IOS_BASE_fnarray
*event_cur
, *event_next
;
5136 TRACE("(%p)\n", this);
5138 ios_base_Callfns(this, EVENT_erase_event
);
5140 for(arr_cur
=this->arr
; arr_cur
; arr_cur
=arr_next
) {
5141 arr_next
= arr_cur
->next
;
5142 MSVCRT_operator_delete(arr_cur
);
5146 for(event_cur
=this->calls
; event_cur
; event_cur
=event_next
) {
5147 event_next
= event_cur
->next
;
5148 MSVCRT_operator_delete(event_cur
);
5153 /* ?_Ios_base_dtor@ios_base@std@@CAXPAV12@@Z */
5154 /* ?_Ios_base_dtor@ios_base@std@@CAXPEAV12@@Z */
5155 void __cdecl
ios_base_Ios_base_dtor(ios_base
*obj
)
5157 TRACE("(%p)\n", obj
);
5158 locale_dtor(IOS_LOCALE(obj
));
5159 #if _MSVCP_VER >= 70
5160 MSVCRT_operator_delete(obj
->loc
);
5165 /* ??1ios_base@std@@UAE@XZ */
5166 /* ??1ios_base@std@@UEAA@XZ */
5167 DEFINE_THISCALL_WRAPPER(ios_base_dtor
, 4)
5168 void __thiscall
ios_base_dtor(ios_base
*this)
5170 ios_base_Ios_base_dtor(this);
5173 DEFINE_THISCALL_WRAPPER(ios_base_vector_dtor
, 8)
5174 ios_base
* __thiscall
ios_base_vector_dtor(ios_base
*this, unsigned int flags
)
5176 TRACE("(%p %x)\n", this, flags
);
5178 /* we have an array, with the number of elements stored before the first object */
5179 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
5181 for(i
=*ptr
-1; i
>=0; i
--)
5182 ios_base_dtor(this+i
);
5183 MSVCRT_operator_delete(ptr
);
5185 ios_base_dtor(this);
5187 MSVCRT_operator_delete(this);
5193 DEFINE_THISCALL_WRAPPER(iosb_vector_dtor
, 8)
5194 void* __thiscall
iosb_vector_dtor(void *this, unsigned int flags
)
5196 TRACE("(%p %x)\n", this, flags
);
5198 INT_PTR
*ptr
= (INT_PTR
*)this-1;
5199 MSVCRT_operator_delete(ptr
);
5202 MSVCRT_operator_delete(this);
5208 /* ?_Findarr@ios_base@std@@AAEAAU_Iosarray@12@H@Z */
5209 /* ?_Findarr@ios_base@std@@AEAAAEAU_Iosarray@12@H@Z */
5210 DEFINE_THISCALL_WRAPPER(ios_base_Findarr
, 8)
5211 IOS_BASE_iosarray
* __thiscall
ios_base_Findarr(ios_base
*this, int index
)
5213 IOS_BASE_iosarray
*p
;
5215 TRACE("(%p %d)\n", this, index
);
5217 for(p
=this->arr
; p
; p
=p
->next
) {
5218 if(p
->index
== index
)
5222 for(p
=this->arr
; p
; p
=p
->next
) {
5223 if(!p
->long_val
&& !p
->ptr_val
) {
5229 p
= MSVCRT_operator_new(sizeof(IOS_BASE_iosarray
));
5230 p
->next
= this->arr
;
5238 /* ?iword@ios_base@std@@QAEAAJH@Z */
5239 /* ?iword@ios_base@std@@QEAAAEAJH@Z */
5240 DEFINE_THISCALL_WRAPPER(ios_base_iword
, 8)
5241 LONG
* __thiscall
ios_base_iword(ios_base
*this, int index
)
5243 TRACE("(%p %d)\n", this, index
);
5244 return &ios_base_Findarr(this, index
)->long_val
;
5247 /* ?pword@ios_base@std@@QAEAAPAXH@Z */
5248 /* ?pword@ios_base@std@@QEAAAEAPEAXH@Z */
5249 DEFINE_THISCALL_WRAPPER(ios_base_pword
, 8)
5250 void** __thiscall
ios_base_pword(ios_base
*this, int index
)
5252 TRACE("(%p %d)\n", this, index
);
5253 return &ios_base_Findarr(this, index
)->ptr_val
;
5256 /* ?register_callback@ios_base@std@@QAEXP6AXW4event@12@AAV12@H@ZH@Z */
5257 /* ?register_callback@ios_base@std@@QEAAXP6AXW4event@12@AEAV12@H@ZH@Z */
5258 DEFINE_THISCALL_WRAPPER(ios_base_register_callback
, 12)
5259 void __thiscall
ios_base_register_callback(ios_base
*this, IOS_BASE_event_callback callback
, int index
)
5261 IOS_BASE_fnarray
*event
;
5263 TRACE("(%p %p %d)\n", this, callback
, index
);
5265 event
= MSVCRT_operator_new(sizeof(IOS_BASE_fnarray
));
5266 event
->next
= this->calls
;
5267 event
->index
= index
;
5268 event
->event_handler
= callback
;
5269 this->calls
= event
;
5272 /* ?clear@ios_base@std@@QAEXH_N@Z */
5273 /* ?clear@ios_base@std@@QEAAXH_N@Z */
5274 DEFINE_THISCALL_WRAPPER(ios_base_clear_reraise
, 12)
5275 void __thiscall
ios_base_clear_reraise(ios_base
*this, IOSB_iostate state
, MSVCP_bool reraise
)
5277 TRACE("(%p %x %x)\n", this, state
, reraise
);
5279 this->state
= state
& IOSTATE_mask
;
5280 if(!(this->state
& this->except
))
5284 throw_exception(EXCEPTION_RERAISE
, NULL
);
5285 else if(this->state
& this->except
& IOSTATE_eofbit
)
5286 throw_exception(EXCEPTION_FAILURE
, "eofbit is set");
5287 else if(this->state
& this->except
& IOSTATE_failbit
)
5288 throw_exception(EXCEPTION_FAILURE
, "failbit is set");
5289 else if(this->state
& this->except
& IOSTATE_badbit
)
5290 throw_exception(EXCEPTION_FAILURE
, "badbit is set");
5291 else if(this->state
& this->except
& IOSTATE__Hardfail
)
5292 throw_exception(EXCEPTION_FAILURE
, "_Hardfail is set");
5295 /* ?clear@ios_base@std@@QAEXH@Z */
5296 /* ?clear@ios_base@std@@QEAAXH@Z */
5297 DEFINE_THISCALL_WRAPPER(ios_base_clear
, 8)
5298 void __thiscall
ios_base_clear(ios_base
*this, IOSB_iostate state
)
5300 ios_base_clear_reraise(this, state
, FALSE
);
5303 /* ?clear@ios_base@std@@QAEXI@Z */
5304 /* ?clear@ios_base@std@@QEAAXI@Z */
5305 DEFINE_THISCALL_WRAPPER(ios_base_clear_unsigned
, 8)
5306 void __thiscall
ios_base_clear_unsigned(ios_base
*this, unsigned int state
)
5308 ios_base_clear_reraise(this, (IOSB_iostate
)state
, FALSE
);
5311 /* ?exceptions@ios_base@std@@QAEXH@Z */
5312 /* ?exceptions@ios_base@std@@QEAAXH@Z */
5313 DEFINE_THISCALL_WRAPPER(ios_base_exceptions_set
, 8)
5314 void __thiscall
ios_base_exceptions_set(ios_base
*this, IOSB_iostate state
)
5316 TRACE("(%p %x)\n", this, state
);
5317 this->except
= state
& IOSTATE_mask
;
5318 ios_base_clear(this, this->state
);
5321 /* ?exceptions@ios_base@std@@QAEXI@Z */
5322 /* ?exceptions@ios_base@std@@QEAAXI@Z */
5323 DEFINE_THISCALL_WRAPPER(ios_base_exceptions_set_unsigned
, 8)
5324 void __thiscall
ios_base_exceptions_set_unsigned(ios_base
*this, unsigned int state
)
5326 TRACE("(%p %x)\n", this, state
);
5327 ios_base_exceptions_set(this, state
);
5330 /* ?exceptions@ios_base@std@@QBEHXZ */
5331 /* ?exceptions@ios_base@std@@QEBAHXZ */
5332 DEFINE_THISCALL_WRAPPER(ios_base_exceptions_get
, 4)
5333 IOSB_iostate __thiscall
ios_base_exceptions_get(ios_base
*this)
5335 TRACE("(%p)\n", this);
5336 return this->except
;
5339 /* ?copyfmt@ios_base@std@@QAEAAV12@ABV12@@Z */
5340 /* ?copyfmt@ios_base@std@@QEAAAEAV12@AEBV12@@Z */
5341 DEFINE_THISCALL_WRAPPER(ios_base_copyfmt
, 8)
5342 ios_base
* __thiscall
ios_base_copyfmt(ios_base
*this, const ios_base
*rhs
)
5344 TRACE("(%p %p)\n", this, rhs
);
5347 IOS_BASE_iosarray
*arr_cur
;
5348 IOS_BASE_fnarray
*event_cur
;
5350 ios_base_Tidy(this);
5352 for(arr_cur
=rhs
->arr
; arr_cur
; arr_cur
=arr_cur
->next
) {
5353 if(arr_cur
->long_val
)
5354 *ios_base_iword(this, arr_cur
->index
) = arr_cur
->long_val
;
5355 if(arr_cur
->ptr_val
)
5356 *ios_base_pword(this, arr_cur
->index
) = arr_cur
->ptr_val
;
5358 this->stdstr
= rhs
->stdstr
;
5359 this->fmtfl
= rhs
->fmtfl
;
5360 this->prec
= rhs
->prec
;
5361 this->wide
= rhs
->wide
;
5362 locale_operator_assign(IOS_LOCALE(this), IOS_LOCALE(rhs
));
5364 for(event_cur
=rhs
->calls
; event_cur
; event_cur
=event_cur
->next
)
5365 ios_base_register_callback(this, event_cur
->event_handler
, event_cur
->index
);
5367 ios_base_Callfns(this, EVENT_copyfmt_event
);
5368 ios_base_exceptions_set(this, rhs
->except
);
5374 /* ??4ios_base@std@@QAEAAV01@ABV01@@Z */
5375 /* ??4ios_base@std@@QEAAAEAV01@AEBV01@@Z */
5376 DEFINE_THISCALL_WRAPPER(ios_base_assign
, 8)
5377 ios_base
* __thiscall
ios_base_assign(ios_base
*this, const ios_base
*right
)
5379 TRACE("(%p %p)\n", this, right
);
5382 this->state
= right
->state
;
5383 ios_base_copyfmt(this, right
);
5389 /* ?fail@ios_base@std@@QBE_NXZ */
5390 /* ?fail@ios_base@std@@QEBA_NXZ */
5391 DEFINE_THISCALL_WRAPPER(ios_base_fail
, 4)
5392 MSVCP_bool __thiscall
ios_base_fail(const ios_base
*this)
5394 TRACE("(%p)\n", this);
5395 return (this->state
& (IOSTATE_failbit
|IOSTATE_badbit
)) != 0;
5398 /* ??7ios_base@std@@QBE_NXZ */
5399 /* ??7ios_base@std@@QEBA_NXZ */
5400 DEFINE_THISCALL_WRAPPER(ios_base_op_succ
, 4)
5401 MSVCP_bool __thiscall
ios_base_op_succ(const ios_base
*this)
5403 TRACE("(%p)\n", this);
5404 return ios_base_fail(this);
5407 /* ??Bios_base@std@@QBEPAXXZ */
5408 /* ??Bios_base@std@@QEBAPEAXXZ */
5409 DEFINE_THISCALL_WRAPPER(ios_base_op_fail
, 4)
5410 void* __thiscall
ios_base_op_fail(const ios_base
*this)
5412 TRACE("(%p)\n", this);
5413 return ios_base_fail(this) ? NULL
: (void*)this;
5416 /* ??Bios_base@std@@QBA_NXZ */
5417 /* ??Bios_base@std@@QBE_NXZ */
5418 /* ??Bios_base@std@@QEBA_NXZ */
5419 DEFINE_THISCALL_WRAPPER(ios_base_operator_bool
, 4)
5420 MSVCP_bool __thiscall
ios_base_operator_bool(const ios_base
*this)
5422 TRACE("(%p)\n", this);
5423 return (this->state
& (IOSTATE_failbit
|IOSTATE_badbit
)) == 0;
5426 /* ?_Addstd@ios_base@std@@SAXPAV12@@Z */
5427 /* ?_Addstd@ios_base@std@@SAXPEAV12@@Z */
5428 void __cdecl
ios_base_Addstd(ios_base
*add
)
5430 FIXME("(%p) stub\n", add
);
5433 /* ?_Index_func@ios_base@std@@CAAAHXZ */
5434 /* ?_Index_func@ios_base@std@@CAAEAHXZ */
5435 int* __cdecl
ios_base_Index_func(void)
5438 return &ios_base_Index
;
5441 /* ?_Init@ios_base@std@@IAEXXZ */
5442 /* ?_Init@ios_base@std@@IEAAXXZ */
5443 DEFINE_THISCALL_WRAPPER(ios_base__Init
, 4)
5444 void __thiscall
ios_base__Init(ios_base
*this)
5446 TRACE("(%p)\n", this);
5449 this->state
= this->except
= IOSTATE_goodbit
;
5450 this->fmtfl
= FMTFLAG_skipws
| FMTFLAG_dec
;
5455 #if _MSVCP_VER >= 70
5456 this->loc
= MSVCRT_operator_new(sizeof(locale
));
5458 locale_ctor(IOS_LOCALE(this));
5461 /* ?_Sync_func@ios_base@std@@CAAA_NXZ */
5462 /* ?_Sync_func@ios_base@std@@CAAEA_NXZ */
5463 MSVCP_bool
* __cdecl
ios_base_Sync_func(void)
5466 return &ios_base_Sync
;
5469 /* ?bad@ios_base@std@@QBE_NXZ */
5470 /* ?bad@ios_base@std@@QEBA_NXZ */
5471 DEFINE_THISCALL_WRAPPER(ios_base_bad
, 4)
5472 MSVCP_bool __thiscall
ios_base_bad(const ios_base
*this)
5474 TRACE("(%p)\n", this);
5475 return (this->state
& IOSTATE_badbit
) != 0;
5478 /* ?eof@ios_base@std@@QBE_NXZ */
5479 /* ?eof@ios_base@std@@QEBA_NXZ */
5480 DEFINE_THISCALL_WRAPPER(ios_base_eof
, 4)
5481 MSVCP_bool __thiscall
ios_base_eof(const ios_base
*this)
5483 TRACE("(%p)\n", this);
5484 return (this->state
& IOSTATE_eofbit
) != 0;
5487 /* ?flags@ios_base@std@@QAEHH@Z */
5488 /* ?flags@ios_base@std@@QEAAHH@Z */
5489 DEFINE_THISCALL_WRAPPER(ios_base_flags_set
, 8)
5490 IOSB_fmtflags __thiscall
ios_base_flags_set(ios_base
*this, IOSB_fmtflags flags
)
5492 IOSB_fmtflags ret
= this->fmtfl
;
5494 TRACE("(%p %x)\n", this, flags
);
5496 this->fmtfl
= flags
& FMTFLAG_mask
;
5500 /* ?flags@ios_base@std@@QBEHXZ */
5501 /* ?flags@ios_base@std@@QEBAHXZ */
5502 DEFINE_THISCALL_WRAPPER(ios_base_flags_get
, 4)
5503 IOSB_fmtflags __thiscall
ios_base_flags_get(const ios_base
*this)
5505 TRACE("(%p)\n", this);
5509 /* ?getloc@ios_base@std@@QBE?AVlocale@2@XZ */
5510 /* ?getloc@ios_base@std@@QEBA?AVlocale@2@XZ */
5511 DEFINE_THISCALL_WRAPPER(ios_base_getloc
, 8)
5512 locale
* __thiscall
ios_base_getloc(const ios_base
*this, locale
*ret
)
5514 TRACE("(%p)\n", this);
5515 return locale_copy_ctor(ret
, IOS_LOCALE(this));
5518 /* ?good@ios_base@std@@QBE_NXZ */
5519 /* ?good@ios_base@std@@QEBA_NXZ */
5520 DEFINE_THISCALL_WRAPPER(ios_base_good
, 4)
5521 MSVCP_bool __thiscall
ios_base_good(const ios_base
*this)
5523 TRACE("(%p)\n", this);
5524 return this->state
== IOSTATE_goodbit
;
5527 /* ?imbue@ios_base@std@@QAE?AVlocale@2@ABV32@@Z */
5528 /* ?imbue@ios_base@std@@QEAA?AVlocale@2@AEBV32@@Z */
5529 DEFINE_THISCALL_WRAPPER(ios_base_imbue
, 12)
5530 locale
* __thiscall
ios_base_imbue(ios_base
*this, locale
*ret
, const locale
*loc
)
5532 TRACE("(%p %p)\n", this, loc
);
5533 *ret
= *IOS_LOCALE(this);
5534 locale_copy_ctor(IOS_LOCALE(this), loc
);
5538 /* ?precision@ios_base@std@@QAEHH@Z */
5539 /* ?precision@ios_base@std@@QEAA_J_J@Z */
5540 #if STREAMSIZE_BITS == 64
5541 DEFINE_THISCALL_WRAPPER(ios_base_precision_set
, 12)
5543 DEFINE_THISCALL_WRAPPER(ios_base_precision_set
, 8)
5545 streamsize __thiscall
ios_base_precision_set(ios_base
*this, streamsize precision
)
5547 streamsize ret
= this->prec
;
5549 TRACE("(%p %s)\n", this, wine_dbgstr_longlong(precision
));
5551 this->prec
= precision
;
5555 /* ?precision@ios_base@std@@QBEHXZ */
5556 /* ?precision@ios_base@std@@QEBA_JXZ */
5557 DEFINE_THISCALL_WRAPPER(ios_base_precision_get
, 4)
5558 streamsize __thiscall
ios_base_precision_get(const ios_base
*this)
5560 TRACE("(%p)\n", this);
5564 /* ?rdstate@ios_base@std@@QBEHXZ */
5565 /* ?rdstate@ios_base@std@@QEBAHXZ */
5566 DEFINE_THISCALL_WRAPPER(ios_base_rdstate
, 4)
5567 IOSB_iostate __thiscall
ios_base_rdstate(const ios_base
*this)
5569 TRACE("(%p)\n", this);
5573 /* ?setf@ios_base@std@@QAEHHH@Z */
5574 /* ?setf@ios_base@std@@QEAAHHH@Z */
5575 DEFINE_THISCALL_WRAPPER(ios_base_setf_mask
, 12)
5576 IOSB_fmtflags __thiscall
ios_base_setf_mask(ios_base
*this, IOSB_fmtflags flags
, IOSB_fmtflags mask
)
5578 IOSB_fmtflags ret
= this->fmtfl
;
5580 TRACE("(%p %x %x)\n", this, flags
, mask
);
5582 this->fmtfl
= (this->fmtfl
& (~mask
)) | (flags
& mask
& FMTFLAG_mask
);
5586 /* ?setf@ios_base@std@@QAEHH@Z */
5587 /* ?setf@ios_base@std@@QEAAHH@Z */
5588 DEFINE_THISCALL_WRAPPER(ios_base_setf
, 8)
5589 IOSB_fmtflags __thiscall
ios_base_setf(ios_base
*this, IOSB_fmtflags flags
)
5591 IOSB_fmtflags ret
= this->fmtfl
;
5593 TRACE("(%p %x)\n", this, flags
);
5595 this->fmtfl
|= flags
& FMTFLAG_mask
;
5599 /* ?setstate@ios_base@std@@QAEXH_N@Z */
5600 /* ?setstate@ios_base@std@@QEAAXH_N@Z */
5601 DEFINE_THISCALL_WRAPPER(ios_base_setstate_reraise
, 12)
5602 void __thiscall
ios_base_setstate_reraise(ios_base
*this, IOSB_iostate state
, MSVCP_bool reraise
)
5604 TRACE("(%p %x %x)\n", this, state
, reraise
);
5606 if(state
!= IOSTATE_goodbit
)
5607 ios_base_clear_reraise(this, this->state
| state
, reraise
);
5610 /* ?setstate@ios_base@std@@QAEXH@Z */
5611 /* ?setstate@ios_base@std@@QEAAXH@Z */
5612 DEFINE_THISCALL_WRAPPER(ios_base_setstate
, 8)
5613 void __thiscall
ios_base_setstate(ios_base
*this, IOSB_iostate state
)
5615 ios_base_setstate_reraise(this, state
, FALSE
);
5618 /* ?setstate@ios_base@std@@QAEXI@Z */
5619 /* ?setstate@ios_base@std@@QEAAXI@Z */
5620 DEFINE_THISCALL_WRAPPER(ios_base_setstate_unsigned
, 8)
5621 void __thiscall
ios_base_setstate_unsigned(ios_base
*this, unsigned int state
)
5623 ios_base_setstate_reraise(this, (IOSB_iostate
)state
, FALSE
);
5626 /* ?sync_with_stdio@ios_base@std@@SA_N_N@Z */
5627 MSVCP_bool __cdecl
ios_base_sync_with_stdio(MSVCP_bool sync
)
5632 TRACE("(%x)\n", sync
);
5634 _Lockit_ctor_locktype(&lock
, _LOCK_STREAM
);
5635 ret
= ios_base_Sync
;
5636 ios_base_Sync
= sync
;
5637 _Lockit_dtor(&lock
);
5641 /* ?unsetf@ios_base@std@@QAEXH@Z */
5642 /* ?unsetf@ios_base@std@@QEAAXH@Z */
5643 DEFINE_THISCALL_WRAPPER(ios_base_unsetf
, 8)
5644 void __thiscall
ios_base_unsetf(ios_base
*this, IOSB_fmtflags flags
)
5646 TRACE("(%p %x)\n", this, flags
);
5647 this->fmtfl
&= ~flags
;
5650 /* ?width@ios_base@std@@QAEHH@Z */
5651 /* ?width@ios_base@std@@QEAA_J_J@Z */
5652 #if STREAMSIZE_BITS == 64
5653 DEFINE_THISCALL_WRAPPER(ios_base_width_set
, 12)
5655 DEFINE_THISCALL_WRAPPER(ios_base_width_set
, 8)
5657 streamsize __thiscall
ios_base_width_set(ios_base
*this, streamsize width
)
5659 streamsize ret
= this->wide
;
5661 TRACE("(%p %s)\n", this, wine_dbgstr_longlong(width
));
5667 /* ?width@ios_base@std@@QBEHXZ */
5668 /* ?width@ios_base@std@@QEBA_JXZ */
5669 DEFINE_THISCALL_WRAPPER(ios_base_width_get
, 4)
5670 streamsize __thiscall
ios_base_width_get(ios_base
*this)
5672 TRACE("(%p)\n", this);
5676 /* ?xalloc@ios_base@std@@SAHXZ */
5677 int __cdecl
ios_base_xalloc(void)
5684 _Lockit_ctor_locktype(&lock
, _LOCK_STREAM
);
5685 ret
= ios_base_Index
++;
5686 _Lockit_dtor(&lock
);
5690 /* ?swap@ios_base@std@@QAEXAAV12@@Z */
5691 /* ?swap@ios_base@std@@QEAAXAEAV12@@Z */
5692 DEFINE_THISCALL_WRAPPER(ios_base_swap
, 8)
5693 void __thiscall
ios_base_swap(ios_base
*this, ios_base
*r
)
5697 TRACE("(%p %p)\n", this, r
);
5704 this->vtable
= tmp
.vtable
;
5705 tmp
.vtable
= r
->vtable
;
5709 DEFINE_THISCALL_WRAPPER(basic_ios__Add_vtordisp1
, 4)
5710 void __thiscall
basic_ios__Add_vtordisp1(void *this)
5712 WARN("should not be called (%p)\n", this);
5715 DEFINE_THISCALL_WRAPPER(basic_ios__Add_vtordisp2
, 4)
5716 void __thiscall
basic_ios__Add_vtordisp2(void *this)
5718 WARN("should not be called (%p)\n", this);
5721 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@IAE@XZ */
5722 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@IEAA@XZ */
5723 DEFINE_THISCALL_WRAPPER(basic_ios_char_ctor
, 4)
5724 basic_ios_char
* __thiscall
basic_ios_char_ctor(basic_ios_char
*this)
5726 TRACE("(%p)\n", this);
5728 ios_base_ctor(&this->base
);
5729 this->base
.vtable
= &MSVCP_basic_ios_char_vtable
;
5733 /* ?init@?$basic_ios@DU?$char_traits@D@std@@@std@@IAEXPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@_N@Z */
5734 /* ?init@?$basic_ios@DU?$char_traits@D@std@@@std@@IEAAXPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@_N@Z */
5735 DEFINE_THISCALL_WRAPPER(basic_ios_char_init
, 12)
5736 void __thiscall
basic_ios_char_init(basic_ios_char
*this, basic_streambuf_char
*streambuf
, MSVCP_bool isstd
)
5738 TRACE("(%p %p %x)\n", this, streambuf
, isstd
);
5739 ios_base__Init(&this->base
);
5740 this->strbuf
= streambuf
;
5741 this->stream
= NULL
;
5745 ios_base_setstate(&this->base
, IOSTATE_badbit
);
5748 FIXME("standard streams not handled yet\n");
5751 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
5752 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
5753 DEFINE_THISCALL_WRAPPER(basic_ios_char_ctor_streambuf
, 8)
5754 basic_ios_char
* __thiscall
basic_ios_char_ctor_streambuf(basic_ios_char
*this, basic_streambuf_char
*strbuf
)
5756 TRACE("(%p %p)\n", this, strbuf
);
5758 basic_ios_char_ctor(this);
5759 basic_ios_char_init(this, strbuf
, FALSE
);
5763 /* ??1?$basic_ios@DU?$char_traits@D@std@@@std@@UAE@XZ */
5764 /* ??1?$basic_ios@DU?$char_traits@D@std@@@std@@UEAA@XZ */
5765 DEFINE_THISCALL_WRAPPER(basic_ios_char_dtor
, 4)
5766 void __thiscall
basic_ios_char_dtor(basic_ios_char
*this)
5768 TRACE("(%p)\n", this);
5769 ios_base_dtor(&this->base
);
5772 DEFINE_THISCALL_WRAPPER(basic_ios_char_vector_dtor
, 8)
5773 basic_ios_char
* __thiscall
basic_ios_char_vector_dtor(basic_ios_char
*this, unsigned int flags
)
5775 TRACE("(%p %x)\n", this, flags
);
5777 /* we have an array, with the number of elements stored before the first object */
5778 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
5780 for(i
=*ptr
-1; i
>=0; i
--)
5781 basic_ios_char_dtor(this+i
);
5782 MSVCRT_operator_delete(ptr
);
5784 basic_ios_char_dtor(this);
5786 MSVCRT_operator_delete(this);
5792 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z */
5793 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXH_N@Z */
5794 DEFINE_THISCALL_WRAPPER(basic_ios_char_clear_reraise
, 12)
5795 void __thiscall
basic_ios_char_clear_reraise(basic_ios_char
*this, IOSB_iostate state
, MSVCP_bool reraise
)
5797 TRACE("(%p %x %x)\n", this, state
, reraise
);
5798 ios_base_clear_reraise(&this->base
, state
| (this->strbuf
? IOSTATE_goodbit
: IOSTATE_badbit
), reraise
);
5801 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXI@Z */
5802 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXI@Z */
5803 DEFINE_THISCALL_WRAPPER(basic_ios_char_clear
, 8)
5804 void __thiscall
basic_ios_char_clear(basic_ios_char
*this, unsigned int state
)
5806 basic_ios_char_clear_reraise(this, (IOSB_iostate
)state
, FALSE
);
5809 /* ?copyfmt@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEAAV12@ABV12@@Z */
5810 /* ?copyfmt@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEBV12@@Z */
5811 DEFINE_THISCALL_WRAPPER(basic_ios_char_copyfmt
, 8)
5812 basic_ios_char
* __thiscall
basic_ios_char_copyfmt(basic_ios_char
*this, basic_ios_char
*copy
)
5814 TRACE("(%p %p)\n", this, copy
);
5818 this->stream
= copy
->stream
;
5819 this->fillch
= copy
->fillch
;
5820 ios_base_copyfmt(&this->base
, ©
->base
);
5824 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEDD@Z */
5825 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAADD@Z */
5826 DEFINE_THISCALL_WRAPPER(basic_ios_char_fill_set
, 8)
5827 char __thiscall
basic_ios_char_fill_set(basic_ios_char
*this, char fill
)
5829 char ret
= this->fillch
;
5831 TRACE("(%p %c)\n", this, fill
);
5833 this->fillch
= fill
;
5837 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDXZ */
5838 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBADXZ */
5839 DEFINE_THISCALL_WRAPPER(basic_ios_char_fill_get
, 4)
5840 char __thiscall
basic_ios_char_fill_get(basic_ios_char
*this)
5842 TRACE("(%p)\n", this);
5843 return this->fillch
;
5846 /* ?imbue@?$basic_ios@DU?$char_traits@D@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
5847 /* ?imbue@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
5848 DEFINE_THISCALL_WRAPPER(basic_ios_char_imbue
, 12)
5849 locale
*__thiscall
basic_ios_char_imbue(basic_ios_char
*this, locale
*ret
, const locale
*loc
)
5851 TRACE("(%p %p %p)\n", this, ret
, loc
);
5854 basic_streambuf_char_pubimbue(this->strbuf
, ret
, loc
);
5858 return ios_base_imbue(&this->base
, ret
, loc
);
5861 /* ?narrow@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDDD@Z */
5862 /* ?narrow@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBADDD@Z */
5863 DEFINE_THISCALL_WRAPPER(basic_ios_char_narrow
, 12)
5864 char __thiscall
basic_ios_char_narrow(basic_ios_char
*this, char ch
, char def
)
5866 TRACE("(%p %c %c)\n", this, ch
, def
);
5867 return ctype_char_narrow_ch(ctype_char_use_facet(IOS_LOCALE(this->strbuf
)), ch
, def
);
5870 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PAV32@@Z */
5871 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PEAV32@@Z */
5872 DEFINE_THISCALL_WRAPPER(basic_ios_char_rdbuf_set
, 8)
5873 basic_streambuf_char
* __thiscall
basic_ios_char_rdbuf_set(basic_ios_char
*this, basic_streambuf_char
*streambuf
)
5875 basic_streambuf_char
*ret
= this->strbuf
;
5877 TRACE("(%p %p)\n", this, streambuf
);
5879 this->strbuf
= streambuf
;
5880 basic_ios_char_clear(this, IOSTATE_goodbit
);
5884 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ */
5885 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ */
5886 DEFINE_THISCALL_WRAPPER(basic_ios_char_rdbuf_get
, 4)
5887 basic_streambuf_char
* __thiscall
basic_ios_char_rdbuf_get(const basic_ios_char
*this)
5889 TRACE("(%p)\n", this);
5890 return this->strbuf
;
5893 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z */
5894 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXH_N@Z */
5895 DEFINE_THISCALL_WRAPPER(basic_ios_char_setstate_reraise
, 12)
5896 void __thiscall
basic_ios_char_setstate_reraise(basic_ios_char
*this, IOSB_iostate state
, MSVCP_bool reraise
)
5898 TRACE("(%p %x %x)\n", this, state
, reraise
);
5900 if(state
!= IOSTATE_goodbit
)
5901 basic_ios_char_clear_reraise(this, this->base
.state
| state
, reraise
);
5904 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXI@Z */
5905 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXI@Z */
5906 DEFINE_THISCALL_WRAPPER(basic_ios_char_setstate
, 8)
5907 void __thiscall
basic_ios_char_setstate(basic_ios_char
*this, unsigned int state
)
5909 basic_ios_char_setstate_reraise(this, (IOSB_iostate
)state
, FALSE
);
5912 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEPAV?$basic_ostream@DU?$char_traits@D@std@@@2@PAV32@@Z */
5913 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAPEAV?$basic_ostream@DU?$char_traits@D@std@@@2@PEAV32@@Z */
5914 DEFINE_THISCALL_WRAPPER(basic_ios_char_tie_set
, 8)
5915 basic_ostream_char
* __thiscall
basic_ios_char_tie_set(basic_ios_char
*this, basic_ostream_char
*ostream
)
5917 basic_ostream_char
*ret
= this->stream
;
5919 TRACE("(%p %p)\n", this, ostream
);
5921 this->stream
= ostream
;
5925 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ */
5926 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ */
5927 DEFINE_THISCALL_WRAPPER(basic_ios_char_tie_get
, 4)
5928 basic_ostream_char
* __thiscall
basic_ios_char_tie_get(const basic_ios_char
*this)
5930 TRACE("(%p)\n", this);
5931 return this->stream
;
5934 /* ?widen@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDD@Z */
5935 /* ?widen@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBADD@Z */
5936 DEFINE_THISCALL_WRAPPER(basic_ios_char_widen
, 8)
5937 char __thiscall
basic_ios_char_widen(basic_ios_char
*this, char ch
)
5939 TRACE("(%p %c)\n", this, ch
);
5940 return ctype_char_widen_ch(ctype_char_use_facet(IOS_LOCALE(this->strbuf
)), ch
);
5943 /* ?swap@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXAAV12@@Z */
5944 /* ?swap@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXAEAV12@@Z */
5945 DEFINE_THISCALL_WRAPPER(basic_ios_char_swap
, 8)
5946 void __thiscall
basic_ios_char_swap(basic_ios_char
*this, basic_ios_char
*r
)
5950 TRACE("(%p %p)\n", this, r
);
5955 ios_base_swap(&this->base
, &r
->base
);
5956 swap_ptr
= this->stream
;
5957 this->stream
= r
->stream
;
5958 r
->stream
= swap_ptr
;
5959 this->fillch
^= r
->fillch
;
5960 r
->fillch
^= this->fillch
;
5961 this->fillch
^= r
->fillch
;
5964 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@IAE@XZ */
5965 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@IEAA@XZ */
5966 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_ctor
, 4)
5967 basic_ios_wchar
* __thiscall
basic_ios_wchar_ctor(basic_ios_wchar
*this)
5969 TRACE("(%p)\n", this);
5971 ios_base_ctor(&this->base
);
5972 this->base
.vtable
= &MSVCP_basic_ios_wchar_vtable
;
5976 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@IAE@XZ */
5977 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@IEAA@XZ */
5978 DEFINE_THISCALL_WRAPPER(basic_ios_short_ctor
, 4)
5979 basic_ios_wchar
* __thiscall
basic_ios_short_ctor(basic_ios_wchar
*this)
5981 basic_ios_wchar_ctor(this);
5982 this->base
.vtable
= &MSVCP_basic_ios_short_vtable
;
5986 /* ?init@?$basic_ios@_WU?$char_traits@_W@std@@@std@@IAEXPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_N@Z */
5987 /* ?init@?$basic_ios@_WU?$char_traits@_W@std@@@std@@IEAAXPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_N@Z */
5988 /* ?init@?$basic_ios@GU?$char_traits@G@std@@@std@@IAEXPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@_N@Z */
5989 /* ?init@?$basic_ios@GU?$char_traits@G@std@@@std@@IEAAXPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@_N@Z */
5990 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_init
, 12)
5991 void __thiscall
basic_ios_wchar_init(basic_ios_wchar
*this, basic_streambuf_wchar
*streambuf
, MSVCP_bool isstd
)
5993 TRACE("(%p %p %x)\n", this, streambuf
, isstd
);
5994 ios_base__Init(&this->base
);
5995 this->strbuf
= streambuf
;
5996 this->stream
= NULL
;
6000 ios_base_setstate(&this->base
, IOSTATE_badbit
);
6003 FIXME("standard streams not handled yet\n");
6006 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
6007 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
6008 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_ctor_streambuf
, 8)
6009 basic_ios_wchar
* __thiscall
basic_ios_wchar_ctor_streambuf(basic_ios_wchar
*this, basic_streambuf_wchar
*strbuf
)
6011 TRACE("(%p %p)\n", this, strbuf
);
6013 basic_ios_wchar_ctor(this);
6014 basic_ios_wchar_init(this, strbuf
, FALSE
);
6018 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
6019 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
6020 DEFINE_THISCALL_WRAPPER(basic_ios_short_ctor_streambuf
, 8)
6021 basic_ios_wchar
* __thiscall
basic_ios_short_ctor_streambuf(basic_ios_wchar
*this, basic_streambuf_wchar
*strbuf
)
6023 basic_ios_wchar_ctor_streambuf(this, strbuf
);
6024 this->base
.vtable
= &MSVCP_basic_ios_short_vtable
;
6028 /* ??1?$basic_ios@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
6029 /* ??1?$basic_ios@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
6030 /* ??1?$basic_ios@GU?$char_traits@G@std@@@std@@UAE@XZ */
6031 /* ??1?$basic_ios@GU?$char_traits@G@std@@@std@@UEAA@XZ */
6032 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_dtor
, 4)
6033 void __thiscall
basic_ios_wchar_dtor(basic_ios_wchar
*this)
6035 TRACE("(%p)\n", this);
6036 ios_base_dtor(&this->base
);
6039 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_vector_dtor
, 8)
6040 basic_ios_wchar
* __thiscall
basic_ios_wchar_vector_dtor(basic_ios_wchar
*this, unsigned int flags
)
6042 TRACE("(%p %x)\n", this, flags
);
6044 /* we have an array, with the number of elements stored before the first object */
6045 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
6047 for(i
=*ptr
-1; i
>=0; i
--)
6048 basic_ios_wchar_dtor(this+i
);
6049 MSVCRT_operator_delete(ptr
);
6051 basic_ios_wchar_dtor(this);
6053 MSVCRT_operator_delete(this);
6059 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXH_N@Z */
6060 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXH_N@Z */
6061 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXH_N@Z */
6062 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXH_N@Z */
6063 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_clear_reraise
, 12)
6064 void __thiscall
basic_ios_wchar_clear_reraise(basic_ios_wchar
*this, IOSB_iostate state
, MSVCP_bool reraise
)
6066 TRACE("(%p %x %x)\n", this, state
, reraise
);
6067 ios_base_clear_reraise(&this->base
, state
| (this->strbuf
? IOSTATE_goodbit
: IOSTATE_badbit
), reraise
);
6070 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXI@Z */
6071 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXI@Z */
6072 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXI@Z */
6073 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXI@Z */
6074 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_clear
, 8)
6075 void __thiscall
basic_ios_wchar_clear(basic_ios_wchar
*this, unsigned int state
)
6077 basic_ios_wchar_clear_reraise(this, (IOSB_iostate
)state
, FALSE
);
6080 /* ?copyfmt@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEAAV12@ABV12@@Z */
6081 /* ?copyfmt@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEBV12@@Z */
6082 /* ?copyfmt@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEAAV12@ABV12@@Z */
6083 /* ?copyfmt@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEBV12@@Z */
6084 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_copyfmt
, 8)
6085 basic_ios_wchar
* __thiscall
basic_ios_wchar_copyfmt(basic_ios_wchar
*this, basic_ios_wchar
*copy
)
6087 TRACE("(%p %p)\n", this, copy
);
6091 this->stream
= copy
->stream
;
6092 this->fillch
= copy
->fillch
;
6093 ios_base_copyfmt(&this->base
, ©
->base
);
6097 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAE_W_W@Z */
6098 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAA_W_W@Z */
6099 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEGG@Z */
6100 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAGG@Z */
6101 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_fill_set
, 8)
6102 wchar_t __thiscall
basic_ios_wchar_fill_set(basic_ios_wchar
*this, wchar_t fill
)
6104 wchar_t ret
= this->fillch
;
6106 TRACE("(%p %c)\n", this, fill
);
6108 this->fillch
= fill
;
6112 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBE_WXZ */
6113 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBA_WXZ */
6114 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEGXZ */
6115 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAGXZ */
6116 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_fill_get
, 4)
6117 wchar_t __thiscall
basic_ios_wchar_fill_get(basic_ios_wchar
*this)
6119 TRACE("(%p)\n", this);
6120 return this->fillch
;
6123 /* ?imbue@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
6124 /* ?imbue@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
6125 /* ?imbue@?$basic_ios@GU?$char_traits@G@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
6126 /* ?imbue@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
6127 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_imbue
, 12)
6128 locale
*__thiscall
basic_ios_wchar_imbue(basic_ios_wchar
*this, locale
*ret
, const locale
*loc
)
6130 TRACE("(%p %p %p)\n", this, ret
, loc
);
6133 basic_streambuf_wchar_pubimbue(this->strbuf
, ret
, loc
);
6137 return ios_base_imbue(&this->base
, ret
, loc
);
6140 /* ?narrow@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBED_WD@Z */
6141 /* ?narrow@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBAD_WD@Z */
6142 /* ?narrow@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEDGD@Z */
6143 /* ?narrow@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBADGD@Z */
6144 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_narrow
, 12)
6145 char __thiscall
basic_ios_wchar_narrow(basic_ios_wchar
*this, wchar_t ch
, char def
)
6147 TRACE("(%p %c %c)\n", this, ch
, def
);
6148 return ctype_wchar_narrow_ch(ctype_wchar_use_facet(IOS_LOCALE(this->strbuf
)), ch
, def
);
6151 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PAV32@@Z */
6152 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PEAV32@@Z */
6153 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PAV32@@Z */
6154 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PEAV32@@Z */
6155 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_rdbuf_set
, 8)
6156 basic_streambuf_wchar
* __thiscall
basic_ios_wchar_rdbuf_set(basic_ios_wchar
*this, basic_streambuf_wchar
*streambuf
)
6158 basic_streambuf_wchar
*ret
= this->strbuf
;
6160 TRACE("(%p %p)\n", this, streambuf
);
6162 this->strbuf
= streambuf
;
6163 basic_ios_wchar_clear(this, IOSTATE_goodbit
);
6167 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@XZ */
6168 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@XZ */
6169 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@XZ */
6170 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@XZ */
6171 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_rdbuf_get
, 4)
6172 basic_streambuf_wchar
* __thiscall
basic_ios_wchar_rdbuf_get(const basic_ios_wchar
*this)
6174 TRACE("(%p)\n", this);
6175 return this->strbuf
;
6178 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXH_N@Z */
6179 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXH_N@Z */
6180 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXH_N@Z */
6181 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXH_N@Z */
6182 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_setstate_reraise
, 12)
6183 void __thiscall
basic_ios_wchar_setstate_reraise(basic_ios_wchar
*this, IOSB_iostate state
, MSVCP_bool reraise
)
6185 TRACE("(%p %x %x)\n", this, state
, reraise
);
6187 if(state
!= IOSTATE_goodbit
)
6188 basic_ios_wchar_clear_reraise(this, this->base
.state
| state
, reraise
);
6191 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXI@Z */
6192 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXI@Z */
6193 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXI@Z */
6194 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXI@Z */
6195 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_setstate
, 8)
6196 void __thiscall
basic_ios_wchar_setstate(basic_ios_wchar
*this, IOSB_iostate state
)
6198 basic_ios_wchar_setstate_reraise(this, state
, FALSE
);
6201 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEPAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@PAV32@@Z */
6202 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAPEAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@PEAV32@@Z */
6203 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEPAV?$basic_ostream@GU?$char_traits@G@std@@@2@PAV32@@Z */
6204 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAPEAV?$basic_ostream@GU?$char_traits@G@std@@@2@PEAV32@@Z */
6205 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_tie_set
, 8)
6206 basic_ostream_wchar
* __thiscall
basic_ios_wchar_tie_set(basic_ios_wchar
*this, basic_ostream_wchar
*ostream
)
6208 basic_ostream_wchar
*ret
= this->stream
;
6210 TRACE("(%p %p)\n", this, ostream
);
6212 this->stream
= ostream
;
6216 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@XZ */
6217 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@XZ */
6218 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_ostream@GU?$char_traits@G@std@@@2@XZ */
6219 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_ostream@GU?$char_traits@G@std@@@2@XZ */
6220 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_tie_get
, 4)
6221 basic_ostream_wchar
* __thiscall
basic_ios_wchar_tie_get(const basic_ios_wchar
*this)
6223 TRACE("(%p)\n", this);
6224 return this->stream
;
6227 /* ?widen@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBE_WD@Z */
6228 /* ?widen@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBA_WD@Z */
6229 /* ?widen@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEGD@Z */
6230 /* ?widen@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAGD@Z */
6231 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_widen
, 8)
6232 wchar_t __thiscall
basic_ios_wchar_widen(basic_ios_wchar
*this, char ch
)
6234 TRACE("(%p %c)\n", this, ch
);
6235 return ctype_wchar_widen_ch(ctype_wchar_use_facet(IOS_LOCALE(this->strbuf
)), ch
);
6238 /* ?swap@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXAAV12@@Z */
6239 /* ?swap@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXAEAV12@@Z */
6240 /* ?swap@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXAAV12@@Z */
6241 /* ?swap@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXAEAV12@@Z */
6242 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_swap
, 8)
6243 void __thiscall
basic_ios_wchar_swap(basic_ios_wchar
*this, basic_ios_wchar
*r
)
6247 TRACE("(%p %p)\n", this, r
);
6252 ios_base_swap(&this->base
, &r
->base
);
6253 swap_ptr
= this->stream
;
6254 this->stream
= r
->stream
;
6255 r
->stream
= swap_ptr
;
6256 this->fillch
^= r
->fillch
;
6257 r
->fillch
^= this->fillch
;
6258 this->fillch
^= r
->fillch
;
6261 /* Caution: basic_ostream uses virtual inheritance.
6262 * All constructors have additional parameter that says if base class should be initialized.
6263 * Base class needs to be accessed using vbtable.
6265 static inline basic_ios_char
* basic_ostream_char_get_basic_ios(basic_ostream_char
*this)
6267 return (basic_ios_char
*)((char*)this+this->vbtable
[1]);
6270 static inline basic_ios_char
* basic_ostream_char_to_basic_ios(basic_ostream_char
*ptr
)
6272 return (basic_ios_char
*)((char*)ptr
+basic_ostream_char_vbtable
[1]);
6275 static inline basic_ostream_char
* basic_ostream_char_from_basic_ios(basic_ios_char
*ptr
)
6277 return (basic_ostream_char
*)((char*)ptr
-basic_ostream_char_vbtable
[1]);
6280 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z */
6281 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z */
6282 DEFINE_THISCALL_WRAPPER(basic_ostream_char_ctor
, 16)
6283 basic_ostream_char
* __thiscall
basic_ostream_char_ctor(basic_ostream_char
*this,
6284 basic_streambuf_char
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
6286 basic_ios_char
*base
;
6288 TRACE("(%p %p %d %d)\n", this, strbuf
, isstd
, virt_init
);
6291 this->vbtable
= basic_ostream_char_vbtable
;
6292 base
= basic_ostream_char_get_basic_ios(this);
6293 INIT_BASIC_IOS_VTORDISP(base
);
6294 basic_ios_char_ctor(base
);
6296 base
= basic_ostream_char_get_basic_ios(this);
6299 base
->base
.vtable
= &MSVCP_basic_ostream_char_vtable
;
6300 basic_ios_char_init(base
, strbuf
, isstd
);
6304 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@W4_Uninitialized@1@_N@Z */
6305 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA@W4_Uninitialized@1@_N@Z */
6306 DEFINE_THISCALL_WRAPPER(basic_ostream_char_ctor_uninitialized
, 16)
6307 basic_ostream_char
* __thiscall
basic_ostream_char_ctor_uninitialized(basic_ostream_char
*this,
6308 int uninitialized
, MSVCP_bool addstd
, MSVCP_bool virt_init
)
6310 basic_ios_char
*base
;
6312 TRACE("(%p %d %x)\n", this, uninitialized
, addstd
);
6315 this->vbtable
= basic_ostream_char_vbtable
;
6316 base
= basic_ostream_char_get_basic_ios(this);
6317 INIT_BASIC_IOS_VTORDISP(base
);
6318 basic_ios_char_ctor(base
);
6320 base
= basic_ostream_char_get_basic_ios(this);
6323 base
->base
.vtable
= &MSVCP_basic_ostream_char_vtable
;
6325 ios_base_Addstd(&base
->base
);
6329 /* ??1?$basic_ostream@DU?$char_traits@D@std@@@std@@UAE@XZ */
6330 /* ??1?$basic_ostream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
6331 DEFINE_THISCALL_WRAPPER(basic_ostream_char_dtor
, 4)
6332 void __thiscall
basic_ostream_char_dtor(basic_ios_char
*base
)
6334 basic_ostream_char
*this = basic_ostream_char_from_basic_ios(base
);
6336 /* don't destroy virtual base here */
6337 TRACE("(%p)\n", this);
6340 /* ??_D?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
6341 /* ??_D?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
6342 DEFINE_THISCALL_WRAPPER(basic_ostream_char_vbase_dtor
, 4)
6343 void __thiscall
basic_ostream_char_vbase_dtor(basic_ostream_char
*this)
6345 basic_ios_char
*base
= basic_ostream_char_to_basic_ios(this);
6347 TRACE("(%p)\n", this);
6349 basic_ostream_char_dtor(base
);
6350 basic_ios_char_dtor(base
);
6353 DEFINE_THISCALL_WRAPPER(basic_ostream_char_vector_dtor
, 8)
6354 basic_ostream_char
* __thiscall
basic_ostream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
6356 basic_ostream_char
*this = basic_ostream_char_from_basic_ios(base
);
6358 TRACE("(%p %x)\n", this, flags
);
6361 /* we have an array, with the number of elements stored before the first object */
6362 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
6364 for(i
=*ptr
-1; i
>=0; i
--)
6365 basic_ostream_char_vbase_dtor(this+i
);
6366 MSVCRT_operator_delete(ptr
);
6368 basic_ostream_char_vbase_dtor(this);
6370 MSVCRT_operator_delete(this);
6376 /* ?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ */
6377 /* ?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@XZ */
6378 DEFINE_THISCALL_WRAPPER(basic_ostream_char_flush
, 4)
6379 basic_ostream_char
* __thiscall
basic_ostream_char_flush(basic_ostream_char
*this)
6381 /* this function is not matching C++ specification */
6382 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6384 TRACE("(%p)\n", this);
6386 if(basic_ios_char_rdbuf_get(base
) && ios_base_good(&base
->base
)
6387 && basic_streambuf_char_pubsync(basic_ios_char_rdbuf_get(base
))==-1)
6388 basic_ios_char_setstate(base
, IOSTATE_badbit
);
6392 /* ?flush@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z */
6393 /* ?flush@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@1@AEAV21@@Z */
6394 basic_ostream_char
* __cdecl
flush_ostream_char(basic_ostream_char
*ostream
)
6396 return basic_ostream_char_flush(ostream
);
6399 /* ?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
6400 /* ?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
6401 DEFINE_THISCALL_WRAPPER(basic_ostream_char__Osfx
, 4)
6402 void __thiscall
basic_ostream_char__Osfx(basic_ostream_char
*this)
6404 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6406 TRACE("(%p)\n", this);
6408 if(base
->base
.fmtfl
& FMTFLAG_unitbuf
)
6409 basic_ostream_char_flush(this);
6412 /* ?osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
6413 /* ?osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
6414 DEFINE_THISCALL_WRAPPER(basic_ostream_char_osfx
, 4)
6415 void __thiscall
basic_ostream_char_osfx(basic_ostream_char
*this)
6417 TRACE("(%p)\n", this);
6418 basic_ostream_char__Osfx(this);
6421 static BOOL
basic_ostream_char_sentry_create(basic_ostream_char
*ostr
)
6423 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
6425 if(basic_ios_char_rdbuf_get(base
))
6426 call_basic_streambuf_char__Lock(base
->strbuf
);
6428 if(ios_base_good(&base
->base
) && base
->stream
)
6429 basic_ostream_char_flush(base
->stream
);
6431 return ios_base_good(&base
->base
);
6434 static void basic_ostream_char_sentry_destroy(basic_ostream_char
*ostr
)
6436 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
6438 if(ios_base_good(&base
->base
) && !__uncaught_exception())
6439 basic_ostream_char_osfx(ostr
);
6441 if(basic_ios_char_rdbuf_get(base
))
6442 call_basic_streambuf_char__Unlock(base
->strbuf
);
6445 /* ?opfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE_NXZ */
6446 /* ?opfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA_NXZ */
6447 DEFINE_THISCALL_WRAPPER(basic_ostream_char_opfx
, 4)
6448 MSVCP_bool __thiscall
basic_ostream_char_opfx(basic_ostream_char
*this)
6450 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6452 TRACE("(%p)\n", this);
6454 if(ios_base_good(&base
->base
) && base
->stream
)
6455 basic_ostream_char_flush(base
->stream
);
6456 return ios_base_good(&base
->base
);
6459 /* ?put@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@D@Z */
6460 /* ?put@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@D@Z */
6461 DEFINE_THISCALL_WRAPPER(basic_ostream_char_put
, 8)
6462 basic_ostream_char
* __thiscall
basic_ostream_char_put(basic_ostream_char
*this, char ch
)
6464 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6466 TRACE("(%p %c)\n", this, ch
);
6468 if(!basic_ostream_char_sentry_create(this)
6469 || basic_streambuf_char_sputc(base
->strbuf
, ch
)==EOF
) {
6470 basic_ostream_char_sentry_destroy(this);
6471 basic_ios_char_setstate(base
, IOSTATE_badbit
);
6475 basic_ostream_char_sentry_destroy(this);
6479 /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@JH@Z */
6480 /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JH@Z */
6481 #if STREAMOFF_BITS == 64
6482 DEFINE_THISCALL_WRAPPER(basic_ostream_char_seekp
, 16)
6484 DEFINE_THISCALL_WRAPPER(basic_ostream_char_seekp
, 12)
6486 basic_ostream_char
* __thiscall
basic_ostream_char_seekp(basic_ostream_char
*this, streamoff off
, int way
)
6488 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6490 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(off
), way
);
6492 if(!ios_base_fail(&base
->base
)) {
6495 basic_streambuf_char_pubseekoff(basic_ios_char_rdbuf_get(base
),
6496 &seek
, off
, way
, OPENMODE_out
);
6497 if(seek
.off
==-1 && seek
.pos
==0 && MBSTATET_TO_INT(&seek
.state
)==0)
6498 basic_ios_char_setstate(base
, IOSTATE_failbit
);
6503 /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
6504 /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
6505 DEFINE_THISCALL_WRAPPER(basic_ostream_char_seekp_fpos
, 28)
6506 basic_ostream_char
* __thiscall
basic_ostream_char_seekp_fpos(basic_ostream_char
*this, fpos_mbstatet pos
)
6508 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6510 TRACE("(%p %s)\n", this, debugstr_fpos_mbstatet(&pos
));
6512 if(!ios_base_fail(&base
->base
)) {
6515 basic_streambuf_char_pubseekpos(basic_ios_char_rdbuf_get(base
),
6516 &seek
, pos
, OPENMODE_out
);
6517 if(seek
.off
==-1 && seek
.pos
==0 && MBSTATET_TO_INT(&seek
.state
)==0)
6518 basic_ios_char_setstate(base
, IOSTATE_failbit
);
6523 /* ?tellp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@XZ */
6524 /* ?tellp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
6525 DEFINE_THISCALL_WRAPPER(basic_ostream_char_tellp
, 8)
6526 fpos_mbstatet
* __thiscall
basic_ostream_char_tellp(basic_ostream_char
*this, fpos_mbstatet
*ret
)
6528 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6530 TRACE("(%p)\n", this);
6532 if(!ios_base_fail(&base
->base
)) {
6533 basic_streambuf_char_pubseekoff(basic_ios_char_rdbuf_get(base
),
6534 ret
, 0, SEEKDIR_cur
, OPENMODE_out
);
6538 memset(&ret
->state
, 0, sizeof(ret
->state
));
6543 /* ?write@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@PBDH@Z */
6544 /* ?write@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEBD_J@Z */
6545 #if STREAMSIZE_BITS == 64
6546 DEFINE_THISCALL_WRAPPER(basic_ostream_char_write
, 16)
6548 DEFINE_THISCALL_WRAPPER(basic_ostream_char_write
, 12)
6550 basic_ostream_char
* __thiscall
basic_ostream_char_write(basic_ostream_char
*this, const char *str
, streamsize count
)
6552 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6554 TRACE("(%p %s %s)\n", this, debugstr_a(str
), wine_dbgstr_longlong(count
));
6556 if(!basic_ostream_char_sentry_create(this)
6557 || basic_streambuf_char_sputn(base
->strbuf
, str
, count
)!=count
) {
6558 basic_ostream_char_sentry_destroy(this);
6559 basic_ios_char_setstate(base
, IOSTATE_badbit
);
6563 basic_ostream_char_sentry_destroy(this);
6567 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@F@Z */
6568 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@F@Z */
6569 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_short
, 8)
6570 basic_ostream_char
* __thiscall
basic_ostream_char_print_short(basic_ostream_char
*this, short val
)
6572 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6573 int state
= IOSTATE_goodbit
;
6575 TRACE("(%p %d)\n", this, val
);
6577 if(basic_ostream_char_sentry_create(this)) {
6578 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6579 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6580 ostreambuf_iterator_char dest
;
6582 memset(&dest
, 0, sizeof(dest
));
6583 dest
.strbuf
= strbuf
;
6584 num_put_char_put_long(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
),
6585 (ios_base_flags_get(&base
->base
) & FMTFLAG_basefield
& (FMTFLAG_oct
| FMTFLAG_hex
))
6586 ? (LONG
)((unsigned short)val
) : (LONG
)val
);
6588 basic_ostream_char_sentry_destroy(this);
6590 basic_ios_char_setstate(base
, state
);
6594 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@G@Z */
6595 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@G@Z */
6596 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_ushort
, 8)
6597 basic_ostream_char
* __thiscall
basic_ostream_char_print_ushort(basic_ostream_char
*this, unsigned short val
)
6599 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6600 int state
= IOSTATE_goodbit
;
6602 TRACE("(%p %u)\n", this, val
);
6604 if(basic_ostream_char_sentry_create(this)) {
6605 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6606 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6607 ostreambuf_iterator_char dest
;
6609 memset(&dest
, 0, sizeof(dest
));
6610 dest
.strbuf
= strbuf
;
6611 num_put_char_put_ulong(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6613 basic_ostream_char_sentry_destroy(this);
6615 basic_ios_char_setstate(base
, state
);
6619 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@H@Z */
6620 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@H@Z */
6621 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@J@Z */
6622 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@J@Z */
6623 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_int
, 8)
6624 basic_ostream_char
* __thiscall
basic_ostream_char_print_int(basic_ostream_char
*this, int val
)
6626 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6627 int state
= IOSTATE_goodbit
;
6629 TRACE("(%p %d)\n", this, val
);
6631 if(basic_ostream_char_sentry_create(this)) {
6632 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6633 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6634 ostreambuf_iterator_char dest
;
6636 memset(&dest
, 0, sizeof(dest
));
6637 dest
.strbuf
= strbuf
;
6638 num_put_char_put_long(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6640 basic_ostream_char_sentry_destroy(this);
6642 basic_ios_char_setstate(base
, state
);
6646 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@I@Z */
6647 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@I@Z */
6648 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@K@Z */
6649 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@K@Z */
6650 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_uint
, 8)
6651 basic_ostream_char
* __thiscall
basic_ostream_char_print_uint(basic_ostream_char
*this, unsigned int val
)
6653 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6654 int state
= IOSTATE_goodbit
;
6656 TRACE("(%p %u)\n", this, val
);
6658 if(basic_ostream_char_sentry_create(this)) {
6659 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6660 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6661 ostreambuf_iterator_char dest
;
6663 memset(&dest
, 0, sizeof(dest
));
6664 dest
.strbuf
= strbuf
;
6665 num_put_char_put_ulong(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6667 basic_ostream_char_sentry_destroy(this);
6669 basic_ios_char_setstate(base
, state
);
6673 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@M@Z */
6674 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@M@Z */
6675 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_float
, 8)
6676 basic_ostream_char
* __thiscall
basic_ostream_char_print_float(basic_ostream_char
*this, float val
)
6678 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6679 int state
= IOSTATE_goodbit
;
6681 TRACE("(%p %f)\n", this, val
);
6683 if(basic_ostream_char_sentry_create(this)) {
6684 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6685 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6686 ostreambuf_iterator_char dest
;
6688 memset(&dest
, 0, sizeof(dest
));
6689 dest
.strbuf
= strbuf
;
6690 num_put_char_put_double(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6692 basic_ostream_char_sentry_destroy(this);
6694 basic_ios_char_setstate(base
, state
);
6698 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@N@Z */
6699 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@N@Z */
6700 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_double
, 12)
6701 basic_ostream_char
* __thiscall
basic_ostream_char_print_double(basic_ostream_char
*this, double val
)
6703 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6704 int state
= IOSTATE_goodbit
;
6706 TRACE("(%p %lf)\n", this, val
);
6708 if(basic_ostream_char_sentry_create(this)) {
6709 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6710 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6711 ostreambuf_iterator_char dest
;
6713 memset(&dest
, 0, sizeof(dest
));
6714 dest
.strbuf
= strbuf
;
6715 num_put_char_put_double(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6717 basic_ostream_char_sentry_destroy(this);
6719 basic_ios_char_setstate(base
, state
);
6723 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@O@Z */
6724 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@O@Z */
6725 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_ldouble
, 12)
6726 basic_ostream_char
* __thiscall
basic_ostream_char_print_ldouble(basic_ostream_char
*this, double val
)
6728 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6729 int state
= IOSTATE_goodbit
;
6731 TRACE("(%p %lf)\n", this, val
);
6733 if(basic_ostream_char_sentry_create(this)) {
6734 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6735 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6736 ostreambuf_iterator_char dest
;
6738 memset(&dest
, 0, sizeof(dest
));
6739 dest
.strbuf
= strbuf
;
6740 num_put_char_put_ldouble(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6742 basic_ostream_char_sentry_destroy(this);
6744 basic_ios_char_setstate(base
, state
);
6748 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
6749 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
6750 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_streambuf
, 8)
6751 basic_ostream_char
* __thiscall
basic_ostream_char_print_streambuf(basic_ostream_char
*this, basic_streambuf_char
*val
)
6753 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6754 IOSB_iostate state
= IOSTATE_badbit
;
6757 TRACE("(%p %p)\n", this, val
);
6759 if(basic_ostream_char_sentry_create(this)) {
6760 for(c
= basic_streambuf_char_sgetc(val
); c
!=EOF
;
6761 c
= basic_streambuf_char_snextc(val
)) {
6762 state
= IOSTATE_goodbit
;
6764 if(basic_streambuf_char_sputc(base
->strbuf
, c
) == EOF
) {
6765 state
= IOSTATE_badbit
;
6770 state
= IOSTATE_badbit
;
6772 basic_ostream_char_sentry_destroy(this);
6774 ios_base_width_set(&base
->base
, 0);
6775 basic_ios_char_setstate(base
, state
);
6779 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@PBX@Z */
6780 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@PEBX@Z */
6781 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_ptr
, 8)
6782 basic_ostream_char
* __thiscall
basic_ostream_char_print_ptr(basic_ostream_char
*this, const void *val
)
6784 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6785 int state
= IOSTATE_goodbit
;
6787 TRACE("(%p %p)\n", this, val
);
6789 if(basic_ostream_char_sentry_create(this)) {
6790 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6791 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6792 ostreambuf_iterator_char dest
;
6794 memset(&dest
, 0, sizeof(dest
));
6795 dest
.strbuf
= strbuf
;
6796 num_put_char_put_ptr(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6798 basic_ostream_char_sentry_destroy(this);
6800 basic_ios_char_setstate(base
, state
);
6804 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@_J@Z */
6805 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@_J@Z */
6806 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_int64
, 12)
6807 basic_ostream_char
* __thiscall
basic_ostream_char_print_int64(basic_ostream_char
*this, __int64 val
)
6809 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6810 int state
= IOSTATE_goodbit
;
6812 TRACE("(%p)\n", this);
6814 if(basic_ostream_char_sentry_create(this)) {
6815 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6816 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6817 ostreambuf_iterator_char dest
;
6819 memset(&dest
, 0, sizeof(dest
));
6820 dest
.strbuf
= strbuf
;
6821 num_put_char_put_int64(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6823 basic_ostream_char_sentry_destroy(this);
6825 basic_ios_char_setstate(base
, state
);
6829 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@_K@Z */
6830 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@_K@Z */
6831 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_uint64
, 12)
6832 basic_ostream_char
* __thiscall
basic_ostream_char_print_uint64(basic_ostream_char
*this, unsigned __int64 val
)
6834 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6835 int state
= IOSTATE_goodbit
;
6837 TRACE("(%p)\n", this);
6839 if(basic_ostream_char_sentry_create(this)) {
6840 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6841 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6842 ostreambuf_iterator_char dest
;
6844 memset(&dest
, 0, sizeof(dest
));
6845 dest
.strbuf
= strbuf
;
6846 num_put_char_put_uint64(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6848 basic_ostream_char_sentry_destroy(this);
6850 basic_ios_char_setstate(base
, state
);
6854 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@_N@Z */
6855 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@_N@Z */
6856 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_bool
, 8)
6857 basic_ostream_char
* __thiscall
basic_ostream_char_print_bool(basic_ostream_char
*this, MSVCP_bool val
)
6859 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6860 int state
= IOSTATE_goodbit
;
6862 TRACE("(%p %x)\n", this, val
);
6864 if(basic_ostream_char_sentry_create(this)) {
6865 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6866 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6867 ostreambuf_iterator_char dest
;
6869 memset(&dest
, 0, sizeof(dest
));
6870 dest
.strbuf
= strbuf
;
6871 num_put_char_put_bool(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6873 basic_ostream_char_sentry_destroy(this);
6875 basic_ios_char_setstate(base
, state
);
6879 /* ?ends@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z */
6880 /* ?ends@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@1@AEAV21@@Z */
6881 basic_ostream_char
* __cdecl
basic_ostream_char_ends(basic_ostream_char
*ostr
)
6883 TRACE("(%p)\n", ostr
);
6885 basic_ostream_char_put(ostr
, 0);
6889 /* ?endl@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z */
6890 /* ?endl@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@1@AEAV21@@Z */
6891 basic_ostream_char
* __cdecl
basic_ostream_char_endl(basic_ostream_char
*ostr
)
6893 TRACE("(%p)\n", ostr
);
6895 basic_ostream_char_put(ostr
, '\n');
6896 basic_ostream_char_flush(ostr
);
6900 /* ??$?6DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
6901 /* ??$?6DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
6902 basic_ostream_char
* __cdecl
basic_ostream_char_print_bstr(basic_ostream_char
*ostr
, const basic_string_char
*str
)
6904 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
6905 IOSB_iostate state
= IOSTATE_goodbit
;
6907 TRACE("(%p %p)\n", ostr
, str
);
6909 if(basic_ostream_char_sentry_create(ostr
)) {
6910 MSVCP_size_t len
= MSVCP_basic_string_char_length(str
);
6911 streamsize pad
= (base
->base
.wide
>len
? base
->base
.wide
-len
: 0);
6913 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
6914 for(; pad
!=0; pad
--) {
6915 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
6916 state
= IOSTATE_badbit
;
6922 if(state
== IOSTATE_goodbit
) {
6923 if(basic_streambuf_char_sputn(base
->strbuf
, MSVCP_basic_string_char_c_str(str
), len
) != len
)
6924 state
= IOSTATE_badbit
;
6927 if(state
== IOSTATE_goodbit
) {
6928 for(; pad
!=0; pad
--) {
6929 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
6930 state
= IOSTATE_badbit
;
6936 base
->base
.wide
= 0;
6938 state
= IOSTATE_badbit
;
6940 basic_ostream_char_sentry_destroy(ostr
);
6942 basic_ios_char_setstate(base
, state
);
6946 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@C@Z */
6947 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@C@Z */
6948 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@D@Z */
6949 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@D@Z */
6950 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@E@Z */
6951 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@E@Z */
6952 basic_ostream_char
* __cdecl
basic_ostream_char_print_ch(basic_ostream_char
*ostr
, char ch
)
6954 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
6955 IOSB_iostate state
= IOSTATE_goodbit
;
6957 TRACE("(%p %d)\n", ostr
, ch
);
6959 if(basic_ostream_char_sentry_create(ostr
)) {
6960 streamsize pad
= (base
->base
.wide
>1 ? base
->base
.wide
-1 : 0);
6962 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
6963 for(; pad
!=0; pad
--) {
6964 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
6965 state
= IOSTATE_badbit
;
6971 if(state
== IOSTATE_goodbit
) {
6972 if(basic_streambuf_char_sputc(base
->strbuf
, ch
) == EOF
)
6973 state
= IOSTATE_badbit
;
6976 if(state
== IOSTATE_goodbit
) {
6977 for(; pad
!=0; pad
--) {
6978 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
6979 state
= IOSTATE_badbit
;
6985 base
->base
.wide
= 0;
6987 state
= IOSTATE_badbit
;
6989 basic_ostream_char_sentry_destroy(ostr
);
6991 basic_ios_char_setstate(base
, state
);
6995 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBC@Z */
6996 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBC@Z */
6997 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z */
6998 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBD@Z */
6999 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBE@Z */
7000 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBE@Z */
7001 basic_ostream_char
* __cdecl
basic_ostream_char_print_str(basic_ostream_char
*ostr
, const char *str
)
7003 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
7004 IOSB_iostate state
= IOSTATE_goodbit
;
7006 TRACE("(%p %s)\n", ostr
, str
);
7008 if(basic_ostream_char_sentry_create(ostr
)) {
7009 MSVCP_size_t len
= strlen(str
);
7010 streamsize pad
= (base
->base
.wide
>len
? base
->base
.wide
-len
: 0);
7012 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
7013 for(; pad
!=0; pad
--) {
7014 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
7015 state
= IOSTATE_badbit
;
7021 if(state
== IOSTATE_goodbit
) {
7022 if(basic_streambuf_char_sputn(base
->strbuf
, str
, len
) != len
)
7023 state
= IOSTATE_badbit
;
7026 if(state
== IOSTATE_goodbit
) {
7027 for(; pad
!=0; pad
--) {
7028 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
7029 state
= IOSTATE_badbit
;
7035 base
->base
.wide
= 0;
7037 state
= IOSTATE_badbit
;
7039 basic_ostream_char_sentry_destroy(ostr
);
7041 basic_ios_char_setstate(base
, state
);
7045 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
7046 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
7047 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_func
, 8)
7048 basic_ostream_char
* __thiscall
basic_ostream_char_print_func(basic_ostream_char
*this,
7049 basic_ostream_char
* (__cdecl
*pfunc
)(basic_ostream_char
*))
7051 TRACE("(%p %p)\n", this, pfunc
);
7056 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@DU?$char_traits@D@std@@@1@AAV21@@Z@Z */
7057 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@DU?$char_traits@D@std@@@1@AEAV21@@Z@Z */
7058 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_func_basic_ios
, 8)
7059 basic_ostream_char
* __thiscall
basic_ostream_char_print_func_basic_ios(basic_ostream_char
*this,
7060 basic_ios_char
* (__cdecl
*pfunc
)(basic_ios_char
*))
7062 TRACE("(%p %p)\n", this, pfunc
);
7063 pfunc(basic_ostream_char_get_basic_ios(this));
7067 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
7068 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
7069 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_func_ios_base
, 8)
7070 basic_ostream_char
* __thiscall
basic_ostream_char_print_func_ios_base(
7071 basic_ostream_char
*this, ios_base
* (__cdecl
*pfunc
)(ios_base
*))
7073 TRACE("(%p %p)\n", this, pfunc
);
7074 pfunc(&basic_ostream_char_get_basic_ios(this)->base
);
7078 /* ?swap@?$basic_ostream@DU?$char_traits@D@std@@@std@@IAEXAAV12@@Z */
7079 /* ?swap@?$basic_ostream@DU?$char_traits@D@std@@@std@@IEAAXAEAV12@@Z */
7080 DEFINE_THISCALL_WRAPPER(basic_ostream_char_swap
, 8)
7081 void __thiscall
basic_ostream_char_swap(basic_ostream_char
*this, basic_ostream_char
*r
)
7083 TRACE("(%p %p)\n", this, r
);
7088 basic_ios_char_swap(basic_ostream_char_get_basic_ios(this),
7089 basic_ostream_char_get_basic_ios(r
));
7092 /* Caution: basic_ostream uses virtual inheritance. */
7093 static inline basic_ios_wchar
* basic_ostream_wchar_get_basic_ios(basic_ostream_wchar
*this)
7095 return (basic_ios_wchar
*)((char*)this+this->vbtable
[1]);
7098 static inline basic_ios_wchar
* basic_ostream_wchar_to_basic_ios(basic_ostream_wchar
*ptr
)
7100 return (basic_ios_wchar
*)((char*)ptr
+basic_ostream_wchar_vbtable
[1]);
7103 static inline basic_ostream_wchar
* basic_ostream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
7105 return (basic_ostream_wchar
*)((char*)ptr
-basic_ostream_wchar_vbtable
[1]);
7108 /* ??0?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N@Z */
7109 /* ??0?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N@Z */
7110 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_ctor
, 16)
7111 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_ctor(basic_ostream_wchar
*this,
7112 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
7114 basic_ios_wchar
*base
;
7116 TRACE("(%p %p %d %d)\n", this, strbuf
, isstd
, virt_init
);
7119 this->vbtable
= basic_ostream_wchar_vbtable
;
7120 base
= basic_ostream_wchar_get_basic_ios(this);
7121 INIT_BASIC_IOS_VTORDISP(base
);
7122 basic_ios_wchar_ctor(base
);
7124 base
= basic_ostream_wchar_get_basic_ios(this);
7127 base
->base
.vtable
= &MSVCP_basic_ostream_wchar_vtable
;
7128 basic_ios_wchar_init(base
, strbuf
, isstd
);
7132 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N@Z */
7133 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N@Z */
7134 DEFINE_THISCALL_WRAPPER(basic_ostream_short_ctor
, 16)
7135 basic_ostream_wchar
* __thiscall
basic_ostream_short_ctor(basic_ostream_wchar
*this,
7136 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
7138 basic_ostream_wchar_ctor(this, strbuf
, isstd
, virt_init
);
7139 basic_ostream_wchar_get_basic_ios(this)->base
.vtable
= &MSVCP_basic_ostream_short_vtable
;
7143 /* ??0?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAE@W4_Uninitialized@1@_N@Z */
7144 /* ??0?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA@W4_Uninitialized@1@_N@Z */
7145 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_ctor_uninitialized
, 16)
7146 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_ctor_uninitialized(basic_ostream_wchar
*this,
7147 int uninitialized
, MSVCP_bool addstd
, MSVCP_bool virt_init
)
7149 basic_ios_wchar
*base
;
7151 TRACE("(%p %d %x)\n", this, uninitialized
, addstd
);
7154 this->vbtable
= basic_ostream_wchar_vbtable
;
7155 base
= basic_ostream_wchar_get_basic_ios(this);
7156 INIT_BASIC_IOS_VTORDISP(base
);
7157 basic_ios_wchar_ctor(base
);
7159 base
= basic_ostream_wchar_get_basic_ios(this);
7162 base
->base
.vtable
= &MSVCP_basic_ostream_wchar_vtable
;
7164 ios_base_Addstd(&base
->base
);
7168 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE@W4_Uninitialized@1@_N@Z */
7169 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA@W4_Uninitialized@1@_N@Z */
7170 DEFINE_THISCALL_WRAPPER(basic_ostream_short_ctor_uninitialized
, 16)
7171 basic_ostream_wchar
* __thiscall
basic_ostream_short_ctor_uninitialized(basic_ostream_wchar
*this,
7172 int uninitialized
, MSVCP_bool addstd
, MSVCP_bool virt_init
)
7174 basic_ostream_wchar_ctor_uninitialized(this, uninitialized
, addstd
, virt_init
);
7175 basic_ostream_wchar_get_basic_ios(this)->base
.vtable
= &MSVCP_basic_ostream_short_vtable
;
7179 /* ??1?$basic_ostream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
7180 /* ??1?$basic_ostream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
7181 /* ??1?$basic_ostream@GU?$char_traits@G@std@@@std@@UAE@XZ */
7182 /* ??1?$basic_ostream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
7183 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_dtor
, 4)
7184 void __thiscall
basic_ostream_wchar_dtor(basic_ios_wchar
*base
)
7186 basic_ostream_wchar
*this = basic_ostream_wchar_from_basic_ios(base
);
7188 /* don't destroy virtual base here */
7189 TRACE("(%p)\n", this);
7192 /* ??_D?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
7193 /* ??_D?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
7194 /* ??_D?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
7195 /* ??_D?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
7196 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_vbase_dtor
, 4)
7197 void __thiscall
basic_ostream_wchar_vbase_dtor(basic_ostream_wchar
*this)
7199 basic_ios_wchar
*base
= basic_ostream_wchar_to_basic_ios(this);
7201 TRACE("(%p)\n", this);
7203 basic_ostream_wchar_dtor(base
);
7204 basic_ios_wchar_dtor(base
);
7207 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_vector_dtor
, 8)
7208 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
7210 basic_ostream_wchar
*this = basic_ostream_wchar_from_basic_ios(base
);
7212 TRACE("(%p %x)\n", this, flags
);
7215 /* we have an array, with the number of elements stored before the first object */
7216 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
7218 for(i
=*ptr
-1; i
>=0; i
--)
7219 basic_ostream_wchar_vbase_dtor(this+i
);
7220 MSVCRT_operator_delete(ptr
);
7222 basic_ostream_wchar_vbase_dtor(this);
7224 MSVCRT_operator_delete(this);
7230 /* ?flush@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@XZ */
7231 /* ?flush@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@XZ */
7232 /* ?flush@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@XZ */
7233 /* ?flush@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@XZ */
7234 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_flush
, 4)
7235 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_flush(basic_ostream_wchar
*this)
7237 /* this function is not matching C++ specification */
7238 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7240 TRACE("(%p)\n", this);
7242 if(basic_ios_wchar_rdbuf_get(base
) && ios_base_good(&base
->base
)
7243 && basic_streambuf_wchar_pubsync(basic_ios_wchar_rdbuf_get(base
))==-1)
7244 basic_ios_wchar_setstate(base
, IOSTATE_badbit
);
7248 /* ?flush@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AAV21@@Z */
7249 /* ?flush@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AEAV21@@Z */
7250 /* ?flush@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@1@AAV21@@Z */
7251 /* ?flush@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@1@AEAV21@@Z */
7252 basic_ostream_wchar
* __cdecl
flush_ostream_wchar(basic_ostream_wchar
*ostream
)
7254 return basic_ostream_wchar_flush(ostream
);
7257 /* ?_Osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
7258 /* ?_Osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
7259 /* ?_Osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
7260 /* ?_Osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
7261 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar__Osfx
, 4)
7262 void __thiscall
basic_ostream_wchar__Osfx(basic_ostream_wchar
*this)
7264 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7266 TRACE("(%p)\n", this);
7268 if(base
->base
.fmtfl
& FMTFLAG_unitbuf
)
7269 basic_ostream_wchar_flush(this);
7272 /* ?osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
7273 /* ?osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
7274 /* ?osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
7275 /* ?osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
7276 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_osfx
, 4)
7277 void __thiscall
basic_ostream_wchar_osfx(basic_ostream_wchar
*this)
7279 TRACE("(%p)\n", this);
7280 basic_ostream_wchar__Osfx(this);
7283 static BOOL
basic_ostream_wchar_sentry_create(basic_ostream_wchar
*ostr
)
7285 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
7287 if(basic_ios_wchar_rdbuf_get(base
))
7288 basic_streambuf_wchar__Lock(base
->strbuf
);
7290 if(ios_base_good(&base
->base
) && base
->stream
)
7291 basic_ostream_wchar_flush(base
->stream
);
7293 return ios_base_good(&base
->base
);
7296 static void basic_ostream_wchar_sentry_destroy(basic_ostream_wchar
*ostr
)
7298 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
7300 if(ios_base_good(&base
->base
) && !__uncaught_exception())
7301 basic_ostream_wchar_osfx(ostr
);
7303 if(basic_ios_wchar_rdbuf_get(base
))
7304 basic_streambuf_wchar__Unlock(base
->strbuf
);
7307 /* ?opfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAE_NXZ */
7308 /* ?opfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA_NXZ */
7309 /* ?opfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE_NXZ */
7310 /* ?opfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA_NXZ */
7311 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_opfx
, 4)
7312 MSVCP_bool __thiscall
basic_ostream_wchar_opfx(basic_ostream_wchar
*this)
7314 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7316 TRACE("(%p)\n", this);
7318 if(ios_base_good(&base
->base
) && base
->stream
)
7319 basic_ostream_wchar_flush(base
->stream
);
7320 return ios_base_good(&base
->base
);
7323 /* ?put@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@_W@Z */
7324 /* ?put@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_W@Z */
7325 /* ?put@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@G@Z */
7326 /* ?put@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@G@Z */
7327 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_put
, 8)
7328 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_put(basic_ostream_wchar
*this, wchar_t ch
)
7330 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7332 TRACE("(%p %c)\n", this, ch
);
7334 if(!basic_ostream_wchar_sentry_create(this)
7335 || basic_streambuf_wchar_sputc(base
->strbuf
, ch
)==WEOF
) {
7336 basic_ostream_wchar_sentry_destroy(this);
7337 basic_ios_wchar_setstate(base
, IOSTATE_badbit
);
7341 basic_ostream_wchar_sentry_destroy(this);
7345 /* ?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@JH@Z */
7346 /* ?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_JH@Z */
7347 /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@JH@Z */
7348 /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JH@Z */
7349 #if STREAMOFF_BITS == 64
7350 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_seekp
, 16)
7352 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_seekp
, 12)
7354 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_seekp(basic_ostream_wchar
*this, streamoff off
, int way
)
7356 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7358 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(off
), way
);
7360 if(!ios_base_fail(&base
->base
)) {
7363 basic_streambuf_wchar_pubseekoff(basic_ios_wchar_rdbuf_get(base
),
7364 &seek
, off
, way
, OPENMODE_out
);
7365 if(seek
.off
==-1 && seek
.pos
==0 && MBSTATET_TO_INT(&seek
.state
)==0)
7366 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
7371 /* ?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
7372 /* ?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
7373 /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
7374 /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
7375 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_seekp_fpos
, 28)
7376 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_seekp_fpos(basic_ostream_wchar
*this, fpos_mbstatet pos
)
7378 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7380 TRACE("(%p %s)\n", this, debugstr_fpos_mbstatet(&pos
));
7382 if(!ios_base_fail(&base
->base
)) {
7385 basic_streambuf_wchar_pubseekpos(basic_ios_wchar_rdbuf_get(base
),
7386 &seek
, pos
, OPENMODE_out
);
7387 if(seek
.off
==-1 && seek
.pos
==0 && MBSTATET_TO_INT(&seek
.state
)==0)
7388 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
7393 /* ?tellp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@XZ */
7394 /* ?tellp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
7395 /* ?tellp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@XZ */
7396 /* ?tellp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
7397 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_tellp
, 8)
7398 fpos_mbstatet
* __thiscall
basic_ostream_wchar_tellp(basic_ostream_wchar
*this, fpos_mbstatet
*ret
)
7400 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7402 TRACE("(%p)\n", this);
7404 if(!ios_base_fail(&base
->base
)) {
7405 basic_streambuf_wchar_pubseekoff(basic_ios_wchar_rdbuf_get(base
),
7406 ret
, 0, SEEKDIR_cur
, OPENMODE_out
);
7410 memset(&ret
->state
, 0, sizeof(ret
->state
));
7415 /* ?write@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PB_WH@Z */
7416 /* ?write@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEB_W_J@Z */
7417 /* ?write@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@PBGH@Z */
7418 /* ?write@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEBG_J@Z */
7419 #if STREAMSIZE_BITS == 64
7420 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_write
, 16)
7422 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_write
, 12)
7424 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_write(basic_ostream_wchar
*this, const wchar_t *str
, streamsize count
)
7426 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7428 TRACE("(%p %s %s)\n", this, debugstr_w(str
), wine_dbgstr_longlong(count
));
7430 if(!basic_ostream_wchar_sentry_create(this)
7431 || basic_streambuf_wchar_sputn(base
->strbuf
, str
, count
)!=count
) {
7432 basic_ostream_wchar_sentry_destroy(this);
7433 basic_ios_wchar_setstate(base
, IOSTATE_badbit
);
7437 basic_ostream_wchar_sentry_destroy(this);
7441 static basic_ostream_wchar
* basic_ostream_print_short(basic_ostream_wchar
*this, short val
, const num_put
*numput
)
7443 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7444 int state
= IOSTATE_goodbit
;
7446 TRACE("(%p %d)\n", this, val
);
7448 if(basic_ostream_wchar_sentry_create(this)) {
7449 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7450 ostreambuf_iterator_wchar dest
;
7452 memset(&dest
, 0, sizeof(dest
));
7453 dest
.strbuf
= strbuf
;
7454 num_put_wchar_put_long(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
),
7455 (ios_base_flags_get(&base
->base
) & FMTFLAG_basefield
& (FMTFLAG_oct
| FMTFLAG_hex
))
7456 ? (LONG
)((unsigned short)val
) : (LONG
)val
);
7458 basic_ostream_wchar_sentry_destroy(this);
7460 basic_ios_wchar_setstate(base
, state
);
7464 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@F@Z */
7465 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@F@Z */
7466 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_short
, 8)
7467 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_short(basic_ostream_wchar
*this, short val
)
7469 return basic_ostream_print_short(this, val
, num_put_wchar_use_facet(
7470 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7473 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@F@Z */
7474 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@F@Z */
7475 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_short
, 8)
7476 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_short(basic_ostream_wchar
*this, short val
)
7478 return basic_ostream_print_short(this, val
, num_put_short_use_facet(
7479 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7482 static basic_ostream_wchar
* basic_ostream_print_ushort(basic_ostream_wchar
*this, unsigned short val
, const num_put
*numput
)
7484 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7485 int state
= IOSTATE_goodbit
;
7487 TRACE("(%p %d)\n", this, val
);
7489 if(basic_ostream_wchar_sentry_create(this)) {
7490 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7491 ostreambuf_iterator_wchar dest
;
7493 memset(&dest
, 0, sizeof(dest
));
7494 dest
.strbuf
= strbuf
;
7495 num_put_wchar_put_ulong(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7497 basic_ostream_wchar_sentry_destroy(this);
7499 basic_ios_wchar_setstate(base
, state
);
7503 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@G@Z */
7504 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@G@Z */
7505 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_ushort
, 8)
7506 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_ushort(basic_ostream_wchar
*this, unsigned short val
)
7508 return basic_ostream_print_ushort(this, val
, num_put_wchar_use_facet(
7509 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7512 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@G@Z */
7513 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@G@Z */
7514 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_ushort
, 8)
7515 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_ushort(basic_ostream_wchar
*this, unsigned short val
)
7517 return basic_ostream_print_ushort(this, val
, num_put_short_use_facet(
7518 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7521 /* ??6std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@0@AAV10@G@Z */
7522 /* ??6std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@0@AEAV10@G@Z */
7523 basic_ostream_wchar
* __cdecl
basic_ostream_short_print_ushort_global(basic_ostream_wchar
*ostr
, unsigned short val
)
7525 return basic_ostream_print_ushort(ostr
, val
, num_put_short_use_facet(
7526 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(ostr
)))));
7529 static basic_ostream_wchar
* basic_ostream_print_int(basic_ostream_wchar
*this, int val
, const num_put
*numput
)
7531 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7532 int state
= IOSTATE_goodbit
;
7534 TRACE("(%p %d)\n", this, val
);
7536 if(basic_ostream_wchar_sentry_create(this)) {
7537 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7538 ostreambuf_iterator_wchar dest
;
7540 memset(&dest
, 0, sizeof(dest
));
7541 dest
.strbuf
= strbuf
;
7542 num_put_wchar_put_long(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7544 basic_ostream_wchar_sentry_destroy(this);
7546 basic_ios_wchar_setstate(base
, state
);
7550 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@H@Z */
7551 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@H@Z */
7552 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@J@Z */
7553 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@J@Z */
7554 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_int
, 8)
7555 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_int(basic_ostream_wchar
*this, int val
)
7557 return basic_ostream_print_int(this, val
, num_put_wchar_use_facet(
7558 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7561 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@H@Z */
7562 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@H@Z */
7563 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@J@Z */
7564 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@J@Z */
7565 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_int
, 8)
7566 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_int(basic_ostream_wchar
*this, int val
)
7568 return basic_ostream_print_int(this, val
, num_put_short_use_facet(
7569 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7572 static basic_ostream_wchar
* basic_ostream_print_uint(basic_ostream_wchar
*this, unsigned int val
, const num_put
*numput
)
7574 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7575 int state
= IOSTATE_goodbit
;
7577 TRACE("(%p %u)\n", this, val
);
7579 if(basic_ostream_wchar_sentry_create(this)) {
7580 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7581 ostreambuf_iterator_wchar dest
;
7583 memset(&dest
, 0, sizeof(dest
));
7584 dest
.strbuf
= strbuf
;
7585 num_put_wchar_put_ulong(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7587 basic_ostream_wchar_sentry_destroy(this);
7589 basic_ios_wchar_setstate(base
, state
);
7593 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@I@Z */
7594 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@I@Z */
7595 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@K@Z */
7596 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@K@Z */
7597 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_uint
, 8)
7598 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_uint(basic_ostream_wchar
*this, unsigned int val
)
7600 return basic_ostream_print_uint(this, val
, num_put_wchar_use_facet(
7601 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7604 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@I@Z */
7605 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@I@Z */
7606 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@K@Z */
7607 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@K@Z */
7608 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_uint
, 8)
7609 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_uint(basic_ostream_wchar
*this, unsigned int val
)
7611 return basic_ostream_print_uint(this, val
, num_put_short_use_facet(
7612 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7615 static basic_ostream_wchar
* basic_ostream_print_float(basic_ostream_wchar
*this, float val
, const num_put
*numput
)
7617 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7618 int state
= IOSTATE_goodbit
;
7620 TRACE("(%p %f)\n", this, val
);
7622 if(basic_ostream_wchar_sentry_create(this)) {
7623 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7624 ostreambuf_iterator_wchar dest
;
7626 memset(&dest
, 0, sizeof(dest
));
7627 dest
.strbuf
= strbuf
;
7628 num_put_wchar_put_double(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7630 basic_ostream_wchar_sentry_destroy(this);
7632 basic_ios_wchar_setstate(base
, state
);
7636 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@M@Z */
7637 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@M@Z */
7638 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_float
, 8)
7639 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_float(basic_ostream_wchar
*this, float val
)
7641 return basic_ostream_print_float(this, val
, num_put_wchar_use_facet(
7642 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7645 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@M@Z */
7646 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@M@Z */
7647 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_float
, 8)
7648 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_float(basic_ostream_wchar
*this, float val
)
7650 return basic_ostream_print_float(this, val
, num_put_short_use_facet(
7651 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7654 static basic_ostream_wchar
* basic_ostream_print_double(basic_ostream_wchar
*this, double val
, const num_put
*numput
)
7656 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7657 int state
= IOSTATE_goodbit
;
7659 TRACE("(%p %lf)\n", this, val
);
7661 if(basic_ostream_wchar_sentry_create(this)) {
7662 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7663 ostreambuf_iterator_wchar dest
;
7665 memset(&dest
, 0, sizeof(dest
));
7666 dest
.strbuf
= strbuf
;
7667 num_put_wchar_put_double(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7669 basic_ostream_wchar_sentry_destroy(this);
7671 basic_ios_wchar_setstate(base
, state
);
7675 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@N@Z */
7676 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@N@Z */
7677 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_double
, 12)
7678 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_double(basic_ostream_wchar
*this, double val
)
7680 return basic_ostream_print_double(this, val
, num_put_wchar_use_facet(
7681 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7684 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@N@Z */
7685 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@N@Z */
7686 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_double
, 12)
7687 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_double(basic_ostream_wchar
*this, double val
)
7689 return basic_ostream_print_double(this, val
, num_put_short_use_facet(
7690 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7693 static basic_ostream_wchar
* basic_ostream_print_ldouble(basic_ostream_wchar
*this, double val
, const num_put
*numput
)
7695 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7696 int state
= IOSTATE_goodbit
;
7698 TRACE("(%p %lf)\n", this, val
);
7700 if(basic_ostream_wchar_sentry_create(this)) {
7701 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7702 ostreambuf_iterator_wchar dest
;
7704 memset(&dest
, 0, sizeof(dest
));
7705 dest
.strbuf
= strbuf
;
7706 num_put_wchar_put_ldouble(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7708 basic_ostream_wchar_sentry_destroy(this);
7710 basic_ios_wchar_setstate(base
, state
);
7714 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@O@Z */
7715 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@O@Z */
7716 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_ldouble
, 12)
7717 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_ldouble(basic_ostream_wchar
*this, double val
)
7719 return basic_ostream_print_ldouble(this, val
, num_put_wchar_use_facet(
7720 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7723 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@O@Z */
7724 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@O@Z */
7725 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_ldouble
, 12)
7726 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_ldouble(basic_ostream_wchar
*this, double val
)
7728 return basic_ostream_print_ldouble(this, val
, num_put_short_use_facet(
7729 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7732 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
7733 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
7734 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
7735 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
7736 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_streambuf
, 8)
7737 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_streambuf(basic_ostream_wchar
*this, basic_streambuf_wchar
*val
)
7739 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7740 IOSB_iostate state
= IOSTATE_badbit
;
7741 unsigned short c
= '\n';
7743 TRACE("(%p %p)\n", this, val
);
7745 if(basic_ostream_wchar_sentry_create(this)) {
7746 for(c
= basic_streambuf_wchar_sgetc(val
); c
!=WEOF
;
7747 c
= basic_streambuf_wchar_snextc(val
)) {
7748 state
= IOSTATE_goodbit
;
7750 if(basic_streambuf_wchar_sputc(base
->strbuf
, c
) == WEOF
) {
7751 state
= IOSTATE_badbit
;
7756 state
= IOSTATE_badbit
;
7758 basic_ostream_wchar_sentry_destroy(this);
7760 ios_base_width_set(&base
->base
, 0);
7761 basic_ios_wchar_setstate(base
, state
);
7765 static basic_ostream_wchar
* basic_ostream_print_ptr(basic_ostream_wchar
*this, const void *val
, const num_put
*numput
)
7767 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7768 int state
= IOSTATE_goodbit
;
7770 TRACE("(%p %p)\n", this, val
);
7772 if(basic_ostream_wchar_sentry_create(this)) {
7773 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7774 ostreambuf_iterator_wchar dest
;
7776 memset(&dest
, 0, sizeof(dest
));
7777 dest
.strbuf
= strbuf
;
7778 num_put_wchar_put_ptr(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7780 basic_ostream_wchar_sentry_destroy(this);
7782 basic_ios_wchar_setstate(base
, state
);
7786 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@PBX@Z */
7787 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@PEBX@Z */
7788 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_ptr
, 8)
7789 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_ptr(basic_ostream_wchar
*this, const void *val
)
7791 return basic_ostream_print_ptr(this, val
, num_put_wchar_use_facet(
7792 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7795 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@PBX@Z */
7796 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@PEBX@Z */
7797 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_ptr
, 8)
7798 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_ptr(basic_ostream_wchar
*this, const void *val
)
7800 return basic_ostream_print_ptr(this, val
, num_put_short_use_facet(
7801 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7804 static basic_ostream_wchar
* basic_ostream_print_int64(basic_ostream_wchar
*this, __int64 val
, const num_put
*numput
)
7806 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7807 int state
= IOSTATE_goodbit
;
7809 TRACE("(%p)\n", this);
7811 if(basic_ostream_wchar_sentry_create(this)) {
7812 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7813 ostreambuf_iterator_wchar dest
;
7815 memset(&dest
, 0, sizeof(dest
));
7816 dest
.strbuf
= strbuf
;
7817 num_put_wchar_put_int64(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7819 basic_ostream_wchar_sentry_destroy(this);
7821 basic_ios_wchar_setstate(base
, state
);
7825 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@_J@Z */
7826 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@_J@Z */
7827 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_int64
, 12)
7828 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_int64(basic_ostream_wchar
*this, __int64 val
)
7830 return basic_ostream_print_int64(this, val
, num_put_wchar_use_facet(
7831 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7834 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@_J@Z */
7835 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@_J@Z */
7836 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_int64
, 12)
7837 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_int64(basic_ostream_wchar
*this, __int64 val
)
7839 return basic_ostream_print_int64(this, val
, num_put_short_use_facet(
7840 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7843 static basic_ostream_wchar
* basic_ostream_print_uint64(basic_ostream_wchar
*this, unsigned __int64 val
, const num_put
*numput
)
7845 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7846 int state
= IOSTATE_goodbit
;
7848 TRACE("(%p)\n", this);
7850 if(basic_ostream_wchar_sentry_create(this)) {
7851 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7852 ostreambuf_iterator_wchar dest
;
7854 memset(&dest
, 0, sizeof(dest
));
7855 dest
.strbuf
= strbuf
;
7856 num_put_wchar_put_uint64(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7858 basic_ostream_wchar_sentry_destroy(this);
7860 basic_ios_wchar_setstate(base
, state
);
7864 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@_K@Z */
7865 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@_K@Z */
7866 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_uint64
, 12)
7867 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_uint64(basic_ostream_wchar
*this, unsigned __int64 val
)
7869 return basic_ostream_print_uint64(this, val
, num_put_wchar_use_facet(
7870 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7873 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@_K@Z */
7874 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@_K@Z */
7875 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_uint64
, 12)
7876 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_uint64(basic_ostream_wchar
*this, unsigned __int64 val
)
7878 return basic_ostream_print_uint64(this, val
, num_put_short_use_facet(
7879 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7882 static basic_ostream_wchar
* basic_ostream_print_bool(basic_ostream_wchar
*this, MSVCP_bool val
, const num_put
*numput
)
7884 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7885 int state
= IOSTATE_goodbit
;
7887 TRACE("(%p %x)\n", this, val
);
7889 if(basic_ostream_wchar_sentry_create(this)) {
7890 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7891 ostreambuf_iterator_wchar dest
;
7893 memset(&dest
, 0, sizeof(dest
));
7894 dest
.strbuf
= strbuf
;
7895 num_put_wchar_put_bool(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7897 basic_ostream_wchar_sentry_destroy(this);
7899 basic_ios_wchar_setstate(base
, state
);
7903 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@_N@Z */
7904 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@_N@Z */
7905 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_bool
, 8)
7906 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_bool(basic_ostream_wchar
*this, MSVCP_bool val
)
7908 return basic_ostream_print_bool(this, val
, num_put_wchar_use_facet(
7909 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7912 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@_N@Z */
7913 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@_N@Z */
7914 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_bool
, 8)
7915 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_bool(basic_ostream_wchar
*this, MSVCP_bool val
)
7917 return basic_ostream_print_bool(this, val
, num_put_short_use_facet(
7918 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7921 /* ?ends@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AAV21@@Z */
7922 /* ?ends@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AEAV21@@Z */
7923 /* ?ends@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@1@AAV21@@Z */
7924 /* ?ends@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@1@AEAV21@@Z */
7925 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_ends(basic_ostream_wchar
*ostr
)
7927 TRACE("(%p)\n", ostr
);
7929 basic_ostream_wchar_put(ostr
, 0);
7933 /* ?endl@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AAV21@@Z */
7934 /* ?endl@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AEAV21@@Z */
7935 /* ?endl@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@1@AAV21@@Z */
7936 /* ?endl@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@1@AEAV21@@Z */
7937 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_endl(basic_ostream_wchar
*ostr
)
7939 TRACE("(%p)\n", ostr
);
7941 basic_ostream_wchar_put(ostr
, '\n');
7942 basic_ostream_wchar_flush(ostr
);
7946 /* ??$?6_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AAV10@ABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@@Z */
7947 /* ??$?6_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AEAV10@AEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@@Z */
7948 /* ??$?6GU?$char_traits@G@std@@V?$allocator@G@1@@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@0@AAV10@ABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@@Z */
7949 /* ??$?6GU?$char_traits@G@std@@V?$allocator@G@1@@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@0@AEAV10@AEBV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@@Z */
7950 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_print_bstr(basic_ostream_wchar
*ostr
, const basic_string_wchar
*str
)
7952 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
7953 IOSB_iostate state
= IOSTATE_goodbit
;
7955 TRACE("(%p %p)\n", ostr
, str
);
7957 if(basic_ostream_wchar_sentry_create(ostr
)) {
7958 MSVCP_size_t len
= MSVCP_basic_string_wchar_length(str
);
7959 streamsize pad
= (base
->base
.wide
>len
? base
->base
.wide
-len
: 0);
7961 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
7962 for(; pad
!=0; pad
--) {
7963 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
7964 state
= IOSTATE_badbit
;
7970 if(state
== IOSTATE_goodbit
) {
7971 if(basic_streambuf_wchar_sputn(base
->strbuf
, MSVCP_basic_string_wchar_c_str(str
), len
) != len
)
7972 state
= IOSTATE_badbit
;
7975 if(state
== IOSTATE_goodbit
) {
7976 for(; pad
!=0; pad
--) {
7977 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
7978 state
= IOSTATE_badbit
;
7984 base
->base
.wide
= 0;
7986 state
= IOSTATE_badbit
;
7988 basic_ostream_wchar_sentry_destroy(ostr
);
7990 basic_ios_wchar_setstate(base
, state
);
7994 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AAV10@_W@Z */
7995 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AEAV10@_W@Z */
7996 /* ??$?6GU?$char_traits@G@std@@@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@0@AAV10@G@Z */
7997 /* ??$?6GU?$char_traits@G@std@@@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@0@AEAV10@G@Z */
7998 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_print_ch(basic_ostream_wchar
*ostr
, wchar_t ch
)
8000 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
8001 IOSB_iostate state
= IOSTATE_goodbit
;
8003 TRACE("(%p %d)\n", ostr
, ch
);
8005 if(basic_ostream_wchar_sentry_create(ostr
)) {
8006 streamsize pad
= (base
->base
.wide
>1 ? base
->base
.wide
-1 : 0);
8008 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
8009 for(; pad
!=0; pad
--) {
8010 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
8011 state
= IOSTATE_badbit
;
8017 if(state
== IOSTATE_goodbit
) {
8018 if(basic_streambuf_wchar_sputc(base
->strbuf
, ch
) == WEOF
)
8019 state
= IOSTATE_badbit
;
8022 if(state
== IOSTATE_goodbit
) {
8023 for(; pad
!=0; pad
--) {
8024 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
8025 state
= IOSTATE_badbit
;
8031 base
->base
.wide
= 0;
8033 state
= IOSTATE_badbit
;
8035 basic_ostream_wchar_sentry_destroy(ostr
);
8037 basic_ios_wchar_setstate(base
, state
);
8041 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AAV10@PB_W@Z */
8042 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AEAV10@PEB_W@Z */
8043 /* ??$?6GU?$char_traits@G@std@@@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@0@AAV10@PBG@Z */
8044 /* ??$?6GU?$char_traits@G@std@@@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@0@AEAV10@PEBG@Z */
8045 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_print_str(basic_ostream_wchar
*ostr
, const wchar_t *str
)
8047 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
8048 IOSB_iostate state
= IOSTATE_goodbit
;
8050 TRACE("(%p %s)\n", ostr
, debugstr_w(str
));
8052 if(basic_ostream_wchar_sentry_create(ostr
)) {
8053 MSVCP_size_t len
= wcslen(str
);
8054 streamsize pad
= (base
->base
.wide
>len
? base
->base
.wide
-len
: 0);
8056 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
8057 for(; pad
!=0; pad
--) {
8058 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
8059 state
= IOSTATE_badbit
;
8065 if(state
== IOSTATE_goodbit
) {
8066 if(basic_streambuf_wchar_sputn(base
->strbuf
, str
, len
) != len
)
8067 state
= IOSTATE_badbit
;
8070 if(state
== IOSTATE_goodbit
) {
8071 for(; pad
!=0; pad
--) {
8072 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
8073 state
= IOSTATE_badbit
;
8079 base
->base
.wide
= 0;
8081 state
= IOSTATE_badbit
;
8083 basic_ostream_wchar_sentry_destroy(ostr
);
8085 basic_ios_wchar_setstate(base
, state
);
8089 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
8090 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
8091 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
8092 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
8093 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_func
, 8)
8094 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_func(basic_ostream_wchar
*this,
8095 basic_ostream_wchar
* (__cdecl
*pfunc
)(basic_ostream_wchar
*))
8097 TRACE("(%p %p)\n", this, pfunc
);
8102 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AAV21@@Z@Z */
8103 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AEAV21@@Z@Z */
8104 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@GU?$char_traits@G@std@@@1@AAV21@@Z@Z */
8105 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@GU?$char_traits@G@std@@@1@AEAV21@@Z@Z */
8106 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_func_basic_ios
, 8)
8107 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_func_basic_ios(basic_ostream_wchar
*this,
8108 basic_ios_wchar
* (__cdecl
*pfunc
)(basic_ios_wchar
*))
8110 TRACE("(%p %p)\n", this, pfunc
);
8111 pfunc(basic_ostream_wchar_get_basic_ios(this));
8115 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
8116 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
8117 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
8118 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
8119 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_func_ios_base
, 8)
8120 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_func_ios_base(
8121 basic_ostream_wchar
*this, ios_base
* (__cdecl
*pfunc
)(ios_base
*))
8123 TRACE("(%p %p)\n", this, pfunc
);
8124 pfunc(&basic_ostream_wchar_get_basic_ios(this)->base
);
8128 /* ?swap@?$basic_ostream@GU?$char_traits@G@std@@@std@@IAEXAAV12@@Z */
8129 /* ?swap@?$basic_ostream@GU?$char_traits@G@std@@@std@@IEAAXAEAV12@@Z */
8130 /* ?swap@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@IAEXAAV12@@Z */
8131 /* ?swap@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@IEAAXAEAV12@@Z */
8132 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_swap
, 8)
8133 void __thiscall
basic_ostream_wchar_swap(basic_ostream_wchar
*this, basic_ostream_wchar
*r
)
8135 TRACE("(%p %p)\n", this, r
);
8140 basic_ios_wchar_swap(basic_ostream_wchar_get_basic_ios(this),
8141 basic_ostream_wchar_get_basic_ios(r
));
8144 /* Caution: basic_istream uses virtual inheritance. */
8145 static inline basic_ios_char
* basic_istream_char_get_basic_ios(basic_istream_char
*this)
8147 return (basic_ios_char
*)((char*)this+this->vbtable
[1]);
8150 static inline basic_ios_char
* basic_istream_char_to_basic_ios(basic_istream_char
*ptr
)
8152 return (basic_ios_char
*)((char*)ptr
+basic_istream_char_vbtable
[1]);
8155 static inline basic_istream_char
* basic_istream_char_from_basic_ios(basic_ios_char
*ptr
)
8157 return (basic_istream_char
*)((char*)ptr
-basic_istream_char_vbtable
[1]);
8160 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N1@Z */
8161 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N1@Z */
8162 DEFINE_THISCALL_WRAPPER(basic_istream_char_ctor_init
, 20)
8163 basic_istream_char
* __thiscall
basic_istream_char_ctor_init(basic_istream_char
*this, basic_streambuf_char
*strbuf
, MSVCP_bool isstd
, MSVCP_bool noinit
, MSVCP_bool virt_init
)
8165 basic_ios_char
*base
;
8167 TRACE("(%p %p %d %d %d)\n", this, strbuf
, isstd
, noinit
, virt_init
);
8170 this->vbtable
= basic_istream_char_vbtable
;
8171 base
= basic_istream_char_get_basic_ios(this);
8172 INIT_BASIC_IOS_VTORDISP(base
);
8173 basic_ios_char_ctor(base
);
8175 base
= basic_istream_char_get_basic_ios(this);
8178 base
->base
.vtable
= &MSVCP_basic_istream_char_vtable
;
8181 basic_ios_char_init(base
, strbuf
, isstd
);
8185 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z */
8186 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z */
8187 DEFINE_THISCALL_WRAPPER(basic_istream_char_ctor
, 16)
8188 basic_istream_char
* __thiscall
basic_istream_char_ctor(basic_istream_char
*this, basic_streambuf_char
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
8190 return basic_istream_char_ctor_init(this, strbuf
, isstd
, FALSE
, virt_init
);
8193 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QAE@W4_Uninitialized@1@@Z */
8194 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
8195 DEFINE_THISCALL_WRAPPER(basic_istream_char_ctor_uninitialized
, 12)
8196 basic_istream_char
* __thiscall
basic_istream_char_ctor_uninitialized(basic_istream_char
*this, int uninitialized
, MSVCP_bool virt_init
)
8198 basic_ios_char
*base
;
8200 TRACE("(%p %d %d)\n", this, uninitialized
, virt_init
);
8203 this->vbtable
= basic_istream_char_vbtable
;
8204 base
= basic_istream_char_get_basic_ios(this);
8205 INIT_BASIC_IOS_VTORDISP(base
);
8206 basic_ios_char_ctor(base
);
8208 base
= basic_istream_char_get_basic_ios(this);
8211 base
->base
.vtable
= &MSVCP_basic_istream_char_vtable
;
8212 ios_base_Addstd(&base
->base
);
8216 /* ??1?$basic_istream@DU?$char_traits@D@std@@@std@@UAE@XZ */
8217 /* ??1?$basic_istream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
8218 DEFINE_THISCALL_WRAPPER(basic_istream_char_dtor
, 4)
8219 void __thiscall
basic_istream_char_dtor(basic_ios_char
*base
)
8221 basic_istream_char
*this = basic_istream_char_from_basic_ios(base
);
8223 /* don't destroy virtual base here */
8224 TRACE("(%p)\n", this);
8227 /* ??_D?$basic_istream@DU?$char_traits@D@std@@@std@@QAEXXZ */
8228 /* ??_D?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
8229 DEFINE_THISCALL_WRAPPER(basic_istream_char_vbase_dtor
, 4)
8230 void __thiscall
basic_istream_char_vbase_dtor(basic_istream_char
*this)
8232 basic_ios_char
*base
= basic_istream_char_to_basic_ios(this);
8234 TRACE("(%p)\n", this);
8236 basic_istream_char_dtor(base
);
8237 basic_ios_char_dtor(base
);
8240 DEFINE_THISCALL_WRAPPER(basic_istream_char_vector_dtor
, 8)
8241 basic_istream_char
* __thiscall
basic_istream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
8243 basic_istream_char
*this = basic_istream_char_from_basic_ios(base
);
8245 TRACE("(%p %x)\n", this, flags
);
8248 /* we have an array, with the number of elements stored before the first object */
8249 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
8251 for(i
=*ptr
-1; i
>=0; i
--)
8252 basic_istream_char_vbase_dtor(this+i
);
8253 MSVCRT_operator_delete(ptr
);
8255 basic_istream_char_vbase_dtor(this);
8257 MSVCRT_operator_delete(this);
8263 /* ?_Ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QAE_N_N@Z */
8264 /* ?_Ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_N_N@Z */
8265 DEFINE_THISCALL_WRAPPER(basic_istream_char__Ipfx
, 8)
8266 MSVCP_bool __thiscall
basic_istream_char__Ipfx(basic_istream_char
*this, MSVCP_bool noskip
)
8268 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8270 TRACE("(%p %d)\n", this, noskip
);
8272 if(ios_base_good(&base
->base
)) {
8273 if(basic_ios_char_tie_get(base
))
8274 basic_ostream_char_flush(basic_ios_char_tie_get(base
));
8276 if(!noskip
&& (ios_base_flags_get(&base
->base
) & FMTFLAG_skipws
)) {
8277 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8278 const ctype_char
*ctype
= ctype_char_use_facet(IOS_LOCALE(base
->strbuf
));
8281 for(ch
= basic_streambuf_char_sgetc(strbuf
); ;
8282 ch
= basic_streambuf_char_snextc(strbuf
)) {
8284 basic_ios_char_setstate(base
, IOSTATE_eofbit
);
8288 if(!ctype_char_is_ch(ctype
, _SPACE
|_BLANK
, ch
))
8294 if(!ios_base_good(&base
->base
)) {
8295 basic_ios_char_setstate(base
, IOSTATE_failbit
);
8302 /* ?ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QAE_N_N@Z */
8303 /* ?ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_N_N@Z */
8304 DEFINE_THISCALL_WRAPPER(basic_istream_char_ipfx
, 8)
8305 MSVCP_bool __thiscall
basic_istream_char_ipfx(basic_istream_char
*this, MSVCP_bool noskip
)
8307 return basic_istream_char__Ipfx(this, noskip
);
8310 /* ?isfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEXXZ */
8311 /* ?isfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
8312 DEFINE_THISCALL_WRAPPER(basic_istream_char_isfx
, 4)
8313 void __thiscall
basic_istream_char_isfx(basic_istream_char
*this)
8315 TRACE("(%p)\n", this);
8318 static BOOL
basic_istream_char_sentry_create(basic_istream_char
*istr
, MSVCP_bool noskip
)
8320 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istr
);
8322 if(basic_ios_char_rdbuf_get(base
))
8323 call_basic_streambuf_char__Lock(base
->strbuf
);
8325 return basic_istream_char_ipfx(istr
, noskip
);
8328 static void basic_istream_char_sentry_destroy(basic_istream_char
*istr
)
8330 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istr
);
8332 if(basic_ios_char_rdbuf_get(base
))
8333 call_basic_streambuf_char__Unlock(base
->strbuf
);
8336 /* ?gcount@?$basic_istream@DU?$char_traits@D@std@@@std@@QBEHXZ */
8337 /* ?gcount@?$basic_istream@DU?$char_traits@D@std@@@std@@QEBA_JXZ */
8338 /* ?gcount@?$basic_istream@DU?$char_traits@D@std@@@std@@QBA_JXZ */
8339 /* ?gcount@?$basic_istream@DU?$char_traits@D@std@@@std@@QBE_JXZ */
8340 DEFINE_THISCALL_WRAPPER(basic_istream_char_gcount
, 4)
8341 streamsize __thiscall
basic_istream_char_gcount(const basic_istream_char
*this)
8343 TRACE("(%p)\n", this);
8347 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHXZ */
8348 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAHXZ */
8349 DEFINE_THISCALL_WRAPPER(basic_istream_char_get
, 4)
8350 int __thiscall
basic_istream_char_get(basic_istream_char
*this)
8352 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8355 TRACE("(%p)\n", this);
8359 if(!basic_istream_char_sentry_create(this, TRUE
)) {
8360 basic_istream_char_sentry_destroy(this);
8364 ret
= basic_streambuf_char_sbumpc(basic_ios_char_rdbuf_get(base
));
8365 basic_istream_char_sentry_destroy(this);
8367 basic_ios_char_setstate(base
, IOSTATE_eofbit
|IOSTATE_failbit
);
8374 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@AAD@Z */
8375 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEAD@Z */
8376 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_ch
, 8)
8377 basic_istream_char
* __thiscall
basic_istream_char_get_ch(basic_istream_char
*this, char *ch
)
8381 TRACE("(%p %p)\n", this, ch
);
8383 ret
= basic_istream_char_get(this);
8389 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADHD@Z */
8390 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_JD@Z */
8391 #if STREAMSIZE_BITS == 64
8392 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str_delim
, 20)
8394 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str_delim
, 16)
8396 basic_istream_char
* __thiscall
basic_istream_char_get_str_delim(basic_istream_char
*this, char *str
, streamsize count
, char delim
)
8398 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8401 TRACE("(%p %p %s %c)\n", this, str
, wine_dbgstr_longlong(count
), delim
);
8405 if(basic_istream_char_sentry_create(this, TRUE
)) {
8406 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8408 for(ch
= basic_streambuf_char_sgetc(strbuf
); count
>1;
8409 ch
= basic_streambuf_char_snextc(strbuf
)) {
8410 if(ch
==EOF
|| ch
==delim
)
8418 basic_istream_char_sentry_destroy(this);
8420 basic_ios_char_setstate(base
, (!this->count
? IOSTATE_failbit
: IOSTATE_goodbit
) |
8421 (ch
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
8427 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADH@Z */
8428 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z */
8429 #if STREAMSIZE_BITS == 64
8430 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str
, 16)
8432 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str
, 12)
8434 basic_istream_char
* __thiscall
basic_istream_char_get_str(basic_istream_char
*this, char *str
, streamsize count
)
8436 return basic_istream_char_get_str_delim(this, str
, count
, '\n');
8439 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@AAV?$basic_streambuf@DU?$char_traits@D@std@@@2@D@Z */
8440 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@D@Z */
8441 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_streambuf_delim
, 12)
8442 basic_istream_char
* __thiscall
basic_istream_char_get_streambuf_delim(basic_istream_char
*this, basic_streambuf_char
*strbuf
, char delim
)
8444 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8447 TRACE("(%p %p %c)\n", this, strbuf
, delim
);
8451 if(basic_istream_char_sentry_create(this, TRUE
)) {
8452 basic_streambuf_char
*strbuf_read
= basic_ios_char_rdbuf_get(base
);
8454 for(ch
= basic_streambuf_char_sgetc(strbuf_read
); ;
8455 ch
= basic_streambuf_char_snextc(strbuf_read
)) {
8456 if(ch
==EOF
|| ch
==delim
)
8459 if(basic_streambuf_char_sputc(strbuf
, ch
) == EOF
)
8464 basic_istream_char_sentry_destroy(this);
8466 basic_ios_char_setstate(base
, (!this->count
? IOSTATE_failbit
: IOSTATE_goodbit
) |
8467 (ch
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
8471 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@AAV?$basic_streambuf@DU?$char_traits@D@std@@@2@@Z */
8472 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@@Z */
8473 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_streambuf
, 8)
8474 basic_istream_char
* __thiscall
basic_istream_char_get_streambuf(basic_istream_char
*this, basic_streambuf_char
*strbuf
)
8476 return basic_istream_char_get_streambuf_delim(this, strbuf
, '\n');
8479 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADHD@Z */
8480 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_JD@Z */
8481 #if STREAMSIZE_BITS == 64
8482 DEFINE_THISCALL_WRAPPER(basic_istream_char_getline_delim
, 20)
8484 DEFINE_THISCALL_WRAPPER(basic_istream_char_getline_delim
, 16)
8486 basic_istream_char
* __thiscall
basic_istream_char_getline_delim(basic_istream_char
*this, char *str
, streamsize count
, char delim
)
8488 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8489 int ch
= (unsigned char)delim
;
8491 TRACE("(%p %p %s %c)\n", this, str
, wine_dbgstr_longlong(count
), delim
);
8495 if(basic_istream_char_sentry_create(this, TRUE
) && count
>0) {
8496 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8499 ch
= basic_streambuf_char_sbumpc(strbuf
);
8501 if(ch
==EOF
|| ch
==(unsigned char)delim
)
8509 if(ch
== (unsigned char)delim
)
8511 else if(ch
!= EOF
) {
8512 ch
= basic_streambuf_char_sgetc(strbuf
);
8514 if(ch
== (unsigned char)delim
) {
8515 basic_streambuf_char__Gninc(strbuf
);
8520 basic_istream_char_sentry_destroy(this);
8522 basic_ios_char_setstate(base
, (ch
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
) |
8523 (!this->count
|| (ch
!=(unsigned char)delim
&& ch
!=EOF
) ? IOSTATE_failbit
: IOSTATE_goodbit
));
8529 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADH@Z */
8530 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z */
8531 #if STREAMSIZE_BITS == 64
8532 DEFINE_THISCALL_WRAPPER(basic_istream_char_getline
, 16)
8534 DEFINE_THISCALL_WRAPPER(basic_istream_char_getline
, 12)
8536 basic_istream_char
* __thiscall
basic_istream_char_getline(basic_istream_char
*this, char *str
, streamsize count
)
8538 return basic_istream_char_getline_delim(this, str
, count
, '\n');
8541 /* ?ignore@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@HH@Z */
8542 /* ?ignore@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JH@Z */
8543 #if STREAMSIZE_BITS == 64
8544 DEFINE_THISCALL_WRAPPER(basic_istream_char_ignore
, 16)
8546 DEFINE_THISCALL_WRAPPER(basic_istream_char_ignore
, 12)
8548 basic_istream_char
* __thiscall
basic_istream_char_ignore(basic_istream_char
*this, streamsize count
, int delim
)
8550 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8551 int ch
= (unsigned char)delim
;
8554 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(count
), delim
);
8558 if(basic_istream_char_sentry_create(this, TRUE
)) {
8559 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8560 state
= IOSTATE_goodbit
;
8563 ch
= basic_streambuf_char_sbumpc(strbuf
);
8566 state
= IOSTATE_eofbit
;
8570 if(ch
==(unsigned char)delim
)
8574 if(count
!= INT_MAX
)
8578 state
= IOSTATE_failbit
;
8579 basic_istream_char_sentry_destroy(this);
8581 basic_ios_char_setstate(base
, state
);
8585 /* ?ws@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@1@AAV21@@Z */
8586 /* ?ws@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@1@AEAV21@@Z */
8587 basic_istream_char
* __cdecl
ws_basic_istream_char(basic_istream_char
*istream
)
8589 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istream
);
8592 TRACE("(%p)\n", istream
);
8594 if(basic_istream_char_sentry_create(istream
, TRUE
)) {
8595 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8596 const ctype_char
*ctype
= ctype_char_use_facet(IOS_LOCALE(strbuf
));
8598 for(ch
= basic_streambuf_char_sgetc(strbuf
); ctype_char_is_ch(ctype
, _SPACE
, ch
);
8599 ch
= basic_streambuf_char_snextc(strbuf
)) {
8604 basic_istream_char_sentry_destroy(istream
);
8607 basic_ios_char_setstate(base
, IOSTATE_eofbit
);
8611 /* ?peek@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHXZ */
8612 /* ?peek@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAHXZ */
8613 DEFINE_THISCALL_WRAPPER(basic_istream_char_peek
, 4)
8614 int __thiscall
basic_istream_char_peek(basic_istream_char
*this)
8616 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8619 TRACE("(%p)\n", this);
8623 if(basic_istream_char_sentry_create(this, TRUE
))
8624 ret
= basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base
));
8625 basic_istream_char_sentry_destroy(this);
8628 basic_ios_char_setstate(base
, IOSTATE_eofbit
);
8633 /* ?_Read_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADIH@Z */
8634 /* ?_Read_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_K_J@Z */
8635 #if STREAMSIZE_BITS == 64
8636 DEFINE_THISCALL_WRAPPER(basic_istream_char__Read_s
, 20)
8638 DEFINE_THISCALL_WRAPPER(basic_istream_char__Read_s
, 16)
8640 basic_istream_char
* __thiscall
basic_istream_char__Read_s(basic_istream_char
*this, char *str
, MSVCP_size_t size
, streamsize count
)
8642 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8643 IOSB_iostate state
= IOSTATE_goodbit
;
8645 TRACE("(%p %p %lu %s)\n", this, str
, size
, wine_dbgstr_longlong(count
));
8647 if(basic_istream_char_sentry_create(this, TRUE
)) {
8648 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8650 this->count
= basic_streambuf_char__Sgetn_s(strbuf
, str
, size
, count
);
8651 if(this->count
!= count
)
8652 state
|= IOSTATE_failbit
| IOSTATE_eofbit
;
8656 basic_istream_char_sentry_destroy(this);
8658 basic_ios_char_setstate(base
, state
);
8662 /* ?read@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADH@Z */
8663 /* ?read@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z */
8664 #if STREAMSIZE_BITS == 64
8665 DEFINE_THISCALL_WRAPPER(basic_istream_char_read
, 16)
8667 DEFINE_THISCALL_WRAPPER(basic_istream_char_read
, 12)
8669 basic_istream_char
* __thiscall
basic_istream_char_read(basic_istream_char
*this, char *str
, streamsize count
)
8671 return basic_istream_char__Read_s(this, str
, -1, count
);
8674 /* ?_Readsome_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHPADIH@Z */
8675 /* ?_Readsome_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_K_J@Z */
8676 #if STREAMSIZE_BITS == 64
8677 DEFINE_THISCALL_WRAPPER(basic_istream_char__Readsome_s
, 20)
8679 DEFINE_THISCALL_WRAPPER(basic_istream_char__Readsome_s
, 16)
8681 streamsize __thiscall
basic_istream_char__Readsome_s(basic_istream_char
*this, char *str
, MSVCP_size_t size
, streamsize count
)
8683 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8684 IOSB_iostate state
= IOSTATE_goodbit
;
8686 TRACE("(%p %p %lu %s)\n", this, str
, size
, wine_dbgstr_longlong(count
));
8690 if(basic_istream_char_sentry_create(this, TRUE
)) {
8691 streamsize avail
= basic_streambuf_char_in_avail(basic_ios_char_rdbuf_get(base
));
8696 state
|= IOSTATE_eofbit
;
8698 basic_istream_char__Read_s(this, str
, size
, avail
);
8700 state
|= IOSTATE_failbit
;
8702 basic_istream_char_sentry_destroy(this);
8704 basic_ios_char_setstate(base
, state
);
8708 /* ?readsome@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHPADH@Z */
8709 /* ?readsome@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_J@Z */
8710 #if STREAMSIZE_BITS == 64
8711 DEFINE_THISCALL_WRAPPER(basic_istream_char_readsome
, 16)
8713 DEFINE_THISCALL_WRAPPER(basic_istream_char_readsome
, 12)
8715 streamsize __thiscall
basic_istream_char_readsome(basic_istream_char
*this, char *str
, streamsize count
)
8717 return basic_istream_char__Readsome_s(this, str
, count
, count
);
8720 /* ?putback@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@D@Z */
8721 /* ?putback@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@D@Z */
8722 DEFINE_THISCALL_WRAPPER(basic_istream_char_putback
, 8)
8723 basic_istream_char
* __thiscall
basic_istream_char_putback(basic_istream_char
*this, char ch
)
8725 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8726 IOSB_iostate state
= IOSTATE_goodbit
;
8728 TRACE("(%p %c)\n", this, ch
);
8732 if(basic_istream_char_sentry_create(this, TRUE
)) {
8733 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8735 if(!ios_base_good(&base
->base
))
8736 state
|= IOSTATE_failbit
;
8737 else if(!strbuf
|| basic_streambuf_char_sputbackc(strbuf
, ch
)==EOF
)
8738 state
|= IOSTATE_badbit
;
8740 basic_istream_char_sentry_destroy(this);
8742 basic_ios_char_setstate(base
, state
);
8746 /* ?unget@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ */
8747 /* ?unget@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@XZ */
8748 DEFINE_THISCALL_WRAPPER(basic_istream_char_unget
, 4)
8749 basic_istream_char
* __thiscall
basic_istream_char_unget(basic_istream_char
*this)
8751 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8752 IOSB_iostate state
= IOSTATE_goodbit
;
8754 TRACE("(%p)\n", this);
8758 if(basic_istream_char_sentry_create(this, TRUE
)) {
8759 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8761 if(!ios_base_good(&base
->base
))
8762 state
|= IOSTATE_failbit
;
8763 else if(!strbuf
|| basic_streambuf_char_sungetc(strbuf
)==EOF
)
8764 state
|= IOSTATE_badbit
;
8766 basic_istream_char_sentry_destroy(this);
8768 basic_ios_char_setstate(base
, state
);
8772 /* ?sync@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHXZ */
8773 /* ?sync@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAHXZ */
8774 DEFINE_THISCALL_WRAPPER(basic_istream_char_sync
, 4)
8775 int __thiscall
basic_istream_char_sync(basic_istream_char
*this)
8777 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8778 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8780 TRACE("(%p)\n", this);
8785 if(basic_istream_char_sentry_create(this, TRUE
)) {
8786 if(basic_streambuf_char_pubsync(strbuf
) != -1) {
8787 basic_istream_char_sentry_destroy(this);
8791 basic_istream_char_sentry_destroy(this);
8793 basic_ios_char_setstate(base
, IOSTATE_badbit
);
8797 /* ?tellg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@XZ */
8798 /* ?tellg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
8799 DEFINE_THISCALL_WRAPPER(basic_istream_char_tellg
, 8)
8800 fpos_mbstatet
* __thiscall
basic_istream_char_tellg(basic_istream_char
*this, fpos_mbstatet
*ret
)
8802 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8804 TRACE("(%p %p)\n", this, ret
);
8806 #if _MSVCP_VER >= 110
8807 if(basic_istream_char_sentry_create(this, TRUE
)) {
8808 basic_streambuf_char_pubseekoff(basic_ios_char_rdbuf_get(base
),
8809 ret
, 0, SEEKDIR_cur
, OPENMODE_in
);
8811 if(ret
->off
==-1 && ret
->pos
==0 && MBSTATET_TO_INT(&ret
->state
)==0)
8812 basic_ios_char_setstate(base
, IOSTATE_failbit
);
8816 memset(&ret
->state
, 0, sizeof(ret
->state
));
8818 basic_istream_char_sentry_destroy(this);
8820 if(ios_base_fail(&base
->base
)) {
8823 memset(&ret
->state
, 0, sizeof(ret
->state
));
8827 basic_streambuf_char_pubseekoff(basic_ios_char_rdbuf_get(base
),
8828 ret
, 0, SEEKDIR_cur
, OPENMODE_in
);
8830 if(ret
->off
==-1 && ret
->pos
==0 && MBSTATET_TO_INT(&ret
->state
)==0)
8831 basic_ios_char_setstate(base
, IOSTATE_failbit
);
8837 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@JW4seekdir@ios_base@2@@Z */
8838 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JW4seekdir@ios_base@2@@Z */
8839 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@JH@Z */
8840 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JH@Z */
8841 #if STREAMOFF_BITS == 64
8842 DEFINE_THISCALL_WRAPPER(basic_istream_char_seekg
, 16)
8844 DEFINE_THISCALL_WRAPPER(basic_istream_char_seekg
, 12)
8846 basic_istream_char
* __thiscall
basic_istream_char_seekg(basic_istream_char
*this, streamoff off
, int dir
)
8848 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8849 #if _MSVCP_VER >= 110
8852 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(off
), dir
);
8854 state
= ios_base_rdstate(&base
->base
);
8855 ios_base_clear(&base
->base
, state
& ~IOSTATE_eofbit
);
8857 if(basic_istream_char_sentry_create(this, TRUE
)) {
8858 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8861 basic_streambuf_char_pubseekoff(strbuf
, &ret
, off
, dir
, OPENMODE_in
);
8863 if(ret
.off
==-1 && ret
.pos
==0 && MBSTATET_TO_INT(&ret
.state
)==0)
8864 basic_ios_char_setstate(base
, IOSTATE_failbit
);
8866 basic_istream_char_sentry_destroy(this);
8868 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(off
), dir
);
8870 if(!ios_base_fail(&base
->base
)) {
8871 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8874 basic_streambuf_char_pubseekoff(strbuf
, &ret
, off
, dir
, OPENMODE_in
);
8876 if(ret
.off
==-1 && ret
.pos
==0 && MBSTATET_TO_INT(&ret
.state
)==0)
8877 basic_ios_char_setstate(base
, IOSTATE_failbit
);
8879 basic_ios_char_clear(base
, IOSTATE_goodbit
);
8882 basic_ios_char_clear(base
, IOSTATE_goodbit
);
8887 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
8888 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
8889 DEFINE_THISCALL_WRAPPER(basic_istream_char_seekg_fpos
, 28)
8890 basic_istream_char
* __thiscall
basic_istream_char_seekg_fpos(basic_istream_char
*this, fpos_mbstatet pos
)
8892 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8893 #if _MSVCP_VER >= 110
8896 TRACE("(%p %s)\n", this, debugstr_fpos_mbstatet(&pos
));
8898 state
= ios_base_rdstate(&base
->base
);
8899 ios_base_clear(&base
->base
, state
& ~IOSTATE_eofbit
);
8901 if(basic_istream_char_sentry_create(this, TRUE
)) {
8902 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8905 basic_streambuf_char_pubseekpos(strbuf
, &ret
, pos
, OPENMODE_in
);
8907 if(ret
.off
==-1 && ret
.pos
==0 && MBSTATET_TO_INT(&ret
.state
)==0)
8908 basic_ios_char_setstate(base
, IOSTATE_failbit
);
8910 basic_istream_char_sentry_destroy(this);
8912 TRACE("(%p %s)\n", this, debugstr_fpos_mbstatet(&pos
));
8914 if(!ios_base_fail(&base
->base
)) {
8915 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8918 basic_streambuf_char_pubseekpos(strbuf
, &ret
, pos
, OPENMODE_in
);
8920 if(ret
.off
==-1 && ret
.pos
==0 && MBSTATET_TO_INT(&ret
.state
)==0)
8921 basic_ios_char_setstate(base
, IOSTATE_failbit
);
8923 basic_ios_char_clear(base
, IOSTATE_goodbit
);
8926 basic_ios_char_clear(base
, IOSTATE_goodbit
);
8931 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAF@Z */
8932 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAF@Z */
8933 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_short
, 8)
8934 basic_istream_char
* __thiscall
basic_istream_char_read_short(basic_istream_char
*this, short *v
)
8936 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8937 int state
= IOSTATE_goodbit
;
8939 TRACE("(%p %p)\n", this, v
);
8941 if(basic_istream_char_sentry_create(this, FALSE
)) {
8942 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8943 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8944 istreambuf_iterator_char first
={0}, last
={0};
8947 first
.strbuf
= strbuf
;
8948 num_get_char_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, &tmp
);
8950 if(!(state
&IOSTATE_failbit
) && tmp
==(LONG
)((short)tmp
))
8953 state
|= IOSTATE_failbit
;
8955 basic_istream_char_sentry_destroy(this);
8957 basic_ios_char_setstate(base
, state
);
8961 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAG@Z */
8962 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAG@Z */
8963 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ushort
, 8)
8964 basic_istream_char
* __thiscall
basic_istream_char_read_ushort(basic_istream_char
*this, unsigned short *v
)
8966 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8967 int state
= IOSTATE_goodbit
;
8969 TRACE("(%p %p)\n", this, v
);
8971 if(basic_istream_char_sentry_create(this, FALSE
)) {
8972 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8973 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8974 istreambuf_iterator_char first
={0}, last
={0};
8976 first
.strbuf
= strbuf
;
8977 num_get_char_get_ushort(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8979 basic_istream_char_sentry_destroy(this);
8981 basic_ios_char_setstate(base
, state
);
8985 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAH@Z */
8986 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAH@Z */
8987 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_int
, 8)
8988 basic_istream_char
* __thiscall
basic_istream_char_read_int(basic_istream_char
*this, int *v
)
8990 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8991 int state
= IOSTATE_goodbit
;
8993 TRACE("(%p %p)\n", this, v
);
8995 if(basic_istream_char_sentry_create(this, FALSE
)) {
8996 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8997 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8998 istreambuf_iterator_char first
={0}, last
={0};
9000 first
.strbuf
= strbuf
;
9001 num_get_char_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
9003 basic_istream_char_sentry_destroy(this);
9005 basic_ios_char_setstate(base
, state
);
9009 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAI@Z */
9010 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAI@Z */
9011 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_uint
, 8)
9012 basic_istream_char
* __thiscall
basic_istream_char_read_uint(basic_istream_char
*this, unsigned int *v
)
9014 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
9015 int state
= IOSTATE_goodbit
;
9017 TRACE("(%p %p)\n", this, v
);
9019 if(basic_istream_char_sentry_create(this, FALSE
)) {
9020 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
9021 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
9022 istreambuf_iterator_char first
={0}, last
={0};
9024 first
.strbuf
= strbuf
;
9025 num_get_char_get_uint(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
9027 basic_istream_char_sentry_destroy(this);
9029 basic_ios_char_setstate(base
, state
);
9033 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAJ@Z */
9034 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAJ@Z */
9035 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_long
, 8)
9036 basic_istream_char
* __thiscall
basic_istream_char_read_long(basic_istream_char
*this, LONG
*v
)
9038 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
9039 int state
= IOSTATE_goodbit
;
9041 TRACE("(%p %p)\n", this, v
);
9043 if(basic_istream_char_sentry_create(this, FALSE
)) {
9044 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
9045 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
9046 istreambuf_iterator_char first
={0}, last
={0};
9048 first
.strbuf
= strbuf
;
9049 num_get_char_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
9051 basic_istream_char_sentry_destroy(this);
9053 basic_ios_char_setstate(base
, state
);
9057 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAK@Z */
9058 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAK@Z */
9059 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ulong
, 8)
9060 basic_istream_char
* __thiscall
basic_istream_char_read_ulong(basic_istream_char
*this, ULONG
*v
)
9062 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
9063 int state
= IOSTATE_goodbit
;
9065 TRACE("(%p %p)\n", this, v
);
9067 if(basic_istream_char_sentry_create(this, FALSE
)) {
9068 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
9069 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
9070 istreambuf_iterator_char first
={0}, last
={0};
9072 first
.strbuf
= strbuf
;
9073 num_get_char_get_ulong(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
9075 basic_istream_char_sentry_destroy(this);
9077 basic_ios_char_setstate(base
, state
);
9081 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAM@Z */
9082 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAM@Z */
9083 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_float
, 8)
9084 basic_istream_char
* __thiscall
basic_istream_char_read_float(basic_istream_char
*this, float *v
)
9086 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
9087 int state
= IOSTATE_goodbit
;
9089 TRACE("(%p %p)\n", this, v
);
9091 if(basic_istream_char_sentry_create(this, FALSE
)) {
9092 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
9093 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
9094 istreambuf_iterator_char first
={0}, last
={0};
9096 first
.strbuf
= strbuf
;
9097 num_get_char_get_float(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
9099 basic_istream_char_sentry_destroy(this);
9101 basic_ios_char_setstate(base
, state
);
9105 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAN@Z */
9106 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAN@Z */
9107 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_double
, 8)
9108 basic_istream_char
* __thiscall
basic_istream_char_read_double(basic_istream_char
*this, double *v
)
9110 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
9111 int state
= IOSTATE_goodbit
;
9113 TRACE("(%p %p)\n", this, v
);
9115 if(basic_istream_char_sentry_create(this, FALSE
)) {
9116 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
9117 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
9118 istreambuf_iterator_char first
={0}, last
={0};
9120 first
.strbuf
= strbuf
;
9121 num_get_char_get_double(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
9123 basic_istream_char_sentry_destroy(this);
9125 basic_ios_char_setstate(base
, state
);
9129 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAO@Z */
9130 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAO@Z */
9131 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ldouble
, 8)
9132 basic_istream_char
* __thiscall
basic_istream_char_read_ldouble(basic_istream_char
*this, double *v
)
9134 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
9135 int state
= IOSTATE_goodbit
;
9137 TRACE("(%p %p)\n", this, v
);
9139 if(basic_istream_char_sentry_create(this, FALSE
)) {
9140 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
9141 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
9142 istreambuf_iterator_char first
={0}, last
={0};
9144 first
.strbuf
= strbuf
;
9145 num_get_char_get_ldouble(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
9147 basic_istream_char_sentry_destroy(this);
9149 basic_ios_char_setstate(base
, state
);
9153 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAPAX@Z */
9154 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAPEAX@Z */
9155 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ptr
, 8)
9156 basic_istream_char
* __thiscall
basic_istream_char_read_ptr(basic_istream_char
*this, void **v
)
9158 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
9159 int state
= IOSTATE_goodbit
;
9161 TRACE("(%p %p)\n", this, v
);
9163 if(basic_istream_char_sentry_create(this, FALSE
)) {
9164 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
9165 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
9166 istreambuf_iterator_char first
={0}, last
={0};
9168 first
.strbuf
= strbuf
;
9169 num_get_char_get_void(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
9171 basic_istream_char_sentry_destroy(this);
9173 basic_ios_char_setstate(base
, state
);
9177 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AA_J@Z */
9178 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEA_J@Z */
9179 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_int64
, 8)
9180 basic_istream_char
* __thiscall
basic_istream_char_read_int64(basic_istream_char
*this, __int64
*v
)
9182 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
9183 int state
= IOSTATE_goodbit
;
9185 TRACE("(%p %p)\n", this, v
);
9187 if(basic_istream_char_sentry_create(this, FALSE
)) {
9188 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
9189 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
9190 istreambuf_iterator_char first
={0}, last
={0};
9192 first
.strbuf
= strbuf
;
9193 num_get_char_get_int64(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
9195 basic_istream_char_sentry_destroy(this);
9197 basic_ios_char_setstate(base
, state
);
9201 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AA_K@Z */
9202 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEA_K@Z */
9203 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_uint64
, 8)
9204 basic_istream_char
* __thiscall
basic_istream_char_read_uint64(basic_istream_char
*this, unsigned __int64
*v
)
9206 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
9207 int state
= IOSTATE_goodbit
;
9209 TRACE("(%p %p)\n", this, v
);
9211 if(basic_istream_char_sentry_create(this, FALSE
)) {
9212 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
9213 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
9214 istreambuf_iterator_char first
={0}, last
={0};
9216 first
.strbuf
= strbuf
;
9217 num_get_char_get_uint64(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
9219 basic_istream_char_sentry_destroy(this);
9221 basic_ios_char_setstate(base
, state
);
9225 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AA_N@Z */
9226 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEA_N@Z */
9227 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_bool
, 8)
9228 basic_istream_char
* __thiscall
basic_istream_char_read_bool(basic_istream_char
*this, MSVCP_bool
*v
)
9230 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
9231 int state
= IOSTATE_goodbit
;
9233 TRACE("(%p %p)\n", this, v
);
9235 if(basic_istream_char_sentry_create(this, FALSE
)) {
9236 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
9237 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
9238 istreambuf_iterator_char first
={0}, last
={0};
9240 first
.strbuf
= strbuf
;
9241 num_get_char_get_bool(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
9243 basic_istream_char_sentry_destroy(this);
9245 basic_ios_char_setstate(base
, state
);
9249 /* ??$getline@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@D@Z */
9250 /* ??$getline@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@D@Z */
9251 basic_istream_char
* __cdecl
basic_istream_char_getline_bstr_delim(
9252 basic_istream_char
*istream
, basic_string_char
*str
, char delim
)
9254 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istream
);
9255 IOSB_iostate state
= IOSTATE_goodbit
;
9256 int c
= (unsigned char)delim
;
9258 TRACE("(%p %p %c)\n", istream
, str
, delim
);
9260 if(basic_istream_char_sentry_create(istream
, TRUE
)) {
9261 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
9262 MSVCP_basic_string_char_clear(str
);
9264 c
= basic_streambuf_char_sgetc(strbuf
);
9265 for(; c
!=(unsigned char)delim
&& c
!=EOF
; c
= basic_streambuf_char_snextc(strbuf
))
9266 MSVCP_basic_string_char_append_ch(str
, c
);
9267 if(c
==EOF
) state
|= IOSTATE_eofbit
;
9268 else if(c
==(unsigned char)delim
) basic_streambuf_char_sbumpc(strbuf
);
9270 if(!MSVCP_basic_string_char_length(str
) && c
!=(unsigned char)delim
) state
|= IOSTATE_failbit
;
9272 basic_istream_char_sentry_destroy(istream
);
9274 basic_ios_char_setstate(basic_istream_char_get_basic_ios(istream
), state
);
9278 /* ??$getline@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
9279 /* ??$getline@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
9280 basic_istream_char
* __cdecl
basic_istream_char_getline_bstr(
9281 basic_istream_char
*istream
, basic_string_char
*str
)
9283 return basic_istream_char_getline_bstr_delim(istream
, str
, '\n');
9286 /* ??$?5DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
9287 /* ??$?5DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
9288 basic_istream_char
* __cdecl
basic_istream_char_read_bstr(
9289 basic_istream_char
*istream
, basic_string_char
*str
)
9291 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istream
);
9292 IOSB_iostate state
= IOSTATE_failbit
;
9295 TRACE("(%p %p)\n", istream
, str
);
9297 if(basic_istream_char_sentry_create(istream
, FALSE
)) {
9298 const ctype_char
*ctype
= ctype_char_use_facet(IOS_LOCALE(base
->strbuf
));
9299 MSVCP_size_t count
= ios_base_width_get(&base
->base
);
9304 MSVCP_basic_string_char_clear(str
);
9306 for(c
= basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base
));
9307 c
!=EOF
&& !ctype_char_is_ch(ctype
, _SPACE
|_BLANK
, c
) && count
>0;
9308 c
= basic_streambuf_char_snextc(basic_ios_char_rdbuf_get(base
)), count
--) {
9309 state
= IOSTATE_goodbit
;
9310 MSVCP_basic_string_char_append_ch(str
, c
);
9313 basic_istream_char_sentry_destroy(istream
);
9315 ios_base_width_set(&base
->base
, 0);
9316 basic_ios_char_setstate(base
, state
| (c
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
9320 /* ??$?5DU?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@PAD@Z */
9321 /* ??$?5DU?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@PEAD@Z */
9322 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@PAC@Z */
9323 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@PEAC@Z */
9324 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@PAE@Z */
9325 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@PEAE@Z */
9326 basic_istream_char
* __cdecl
basic_istream_char_read_str(basic_istream_char
*istream
, char *str
)
9328 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istream
);
9329 IOSB_iostate state
= IOSTATE_failbit
;
9332 TRACE("(%p %p)\n", istream
, str
);
9334 if(basic_istream_char_sentry_create(istream
, FALSE
)) {
9335 const ctype_char
*ctype
= ctype_char_use_facet(IOS_LOCALE(base
->strbuf
));
9336 MSVCP_size_t count
= ios_base_width_get(&base
->base
)-1;
9338 for(c
= basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base
));
9339 c
!=EOF
&& !ctype_char_is_ch(ctype
, _SPACE
|_BLANK
, c
) && count
>0;
9340 c
= basic_streambuf_char_snextc(basic_ios_char_rdbuf_get(base
)), count
--) {
9341 state
= IOSTATE_goodbit
;
9345 basic_istream_char_sentry_destroy(istream
);
9348 ios_base_width_set(&base
->base
, 0);
9349 basic_ios_char_setstate(base
, state
| (c
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
9353 /* ??$?5DU?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAD@Z */
9354 /* ??$?5DU?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAD@Z */
9355 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAC@Z */
9356 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAC@Z */
9357 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAE@Z */
9358 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAE@Z */
9359 basic_istream_char
* __cdecl
basic_istream_char_read_ch(basic_istream_char
*istream
, char *ch
)
9361 IOSB_iostate state
= IOSTATE_failbit
;
9364 TRACE("(%p %p)\n", istream
, ch
);
9366 if(basic_istream_char_sentry_create(istream
, FALSE
)) {
9367 c
= basic_streambuf_char_sbumpc(basic_ios_char_rdbuf_get(
9368 basic_istream_char_get_basic_ios(istream
)));
9370 state
= IOSTATE_goodbit
;
9374 basic_istream_char_sentry_destroy(istream
);
9376 basic_ios_char_setstate(basic_istream_char_get_basic_ios(istream
),
9377 state
| (c
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
9381 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
9382 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
9383 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_streambuf
, 8)
9384 basic_istream_char
* __thiscall
basic_istream_char_read_streambuf(
9385 basic_istream_char
*this, basic_streambuf_char
*streambuf
)
9387 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
9388 IOSB_iostate state
= IOSTATE_failbit
;
9391 TRACE("(%p %p)\n", this, streambuf
);
9393 if(basic_istream_char_sentry_create(this, FALSE
)) {
9394 for(c
= basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base
)); c
!=EOF
;
9395 c
= basic_streambuf_char_snextc(basic_ios_char_rdbuf_get(base
))) {
9396 state
= IOSTATE_goodbit
;
9397 if(basic_streambuf_char_sputc(streambuf
, c
) == EOF
)
9401 basic_istream_char_sentry_destroy(this);
9403 basic_ios_char_setstate(base
, state
| (c
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
9407 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
9408 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
9409 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_func
, 8)
9410 basic_istream_char
* __thiscall
basic_istream_char_read_func(basic_istream_char
*this,
9411 basic_istream_char
* (__cdecl
*pfunc
)(basic_istream_char
*))
9413 TRACE("(%p %p)\n", this, pfunc
);
9418 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@DU?$char_traits@D@std@@@1@AAV21@@Z@Z */
9419 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@DU?$char_traits@D@std@@@1@AEAV21@@Z@Z */
9420 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_func_basic_ios
, 8)
9421 basic_istream_char
* __thiscall
basic_istream_char_read_func_basic_ios(basic_istream_char
*this,
9422 basic_ios_char
* (__cdecl
*pfunc
)(basic_ios_char
*))
9424 TRACE("(%p %p)\n", this, pfunc
);
9425 pfunc(basic_istream_char_get_basic_ios(this));
9429 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
9430 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
9431 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_func_ios_base
, 8)
9432 basic_istream_char
* __thiscall
basic_istream_char_read_func_ios_base(basic_istream_char
*this,
9433 ios_base
* (__cdecl
*pfunc
)(ios_base
*))
9435 TRACE("(%p %p)\n", this, pfunc
);
9436 pfunc(&basic_istream_char_get_basic_ios(this)->base
);
9440 /* ??$?5MDU?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAV?$complex@M@0@@Z */
9441 /* ??$?5MDU?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAV?$complex@M@0@@Z */
9442 basic_istream_char
* __cdecl
basic_istream_char_read_complex_float(basic_istream_char
*this, complex_float
*v
)
9445 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
9447 TRACE("(%p %p)\n", this, v
);
9449 ws_basic_istream_char(this);
9450 if(basic_istream_char_peek(this) == '(') {
9452 basic_istream_char_get(this);
9453 basic_istream_char_read_float(this, &r
);
9455 if(ios_base_fail(&base
->base
))
9458 ws_basic_istream_char(this);
9459 c
= basic_istream_char_peek(this);
9462 basic_istream_char_get(this);
9463 basic_istream_char_read_float(this, &i
);
9465 if(ios_base_fail(&base
->base
))
9468 ws_basic_istream_char(this);
9469 c
= basic_istream_char_peek(this);
9470 if(c
== ')') { /* supported format: (real, imag) */
9471 basic_istream_char_get(this);
9475 basic_ios_char_setstate(base
, IOSTATE_failbit
);
9478 }else if(c
== ')') { /* supported format: (real) */
9479 basic_istream_char_get(this);
9483 basic_ios_char_setstate(base
, IOSTATE_failbit
);
9486 }else { /* supported format: real */
9487 basic_istream_char_read_float(this, &r
);
9489 if(ios_base_fail(&base
->base
))
9499 /* ??$?5NDU?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAV?$complex@N@0@@Z */
9500 /* ??$?5DU?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAV?$complex@N@0@@Z */
9501 basic_istream_char
* __cdecl
basic_istream_char_read_complex_double(basic_istream_char
*this, complex_double
*v
)
9504 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
9506 TRACE("(%p %p)\n", this, v
);
9508 ws_basic_istream_char(this);
9509 if(basic_istream_char_peek(this) == '(') {
9511 basic_istream_char_get(this);
9512 basic_istream_char_read_double(this, &r
);
9514 if(ios_base_fail(&base
->base
))
9517 ws_basic_istream_char(this);
9518 c
= basic_istream_char_peek(this);
9521 basic_istream_char_get(this);
9522 basic_istream_char_read_double(this, &i
);
9524 if(ios_base_fail(&base
->base
))
9527 ws_basic_istream_char(this);
9528 c
= basic_istream_char_peek(this);
9529 if(c
== ')') { /* supported format: (real, imag) */
9530 basic_istream_char_get(this);
9534 basic_ios_char_setstate(base
, IOSTATE_failbit
);
9537 }else if(c
== ')') { /* supported format: (real) */
9538 basic_istream_char_get(this);
9542 basic_ios_char_setstate(base
, IOSTATE_failbit
);
9545 }else { /* supported format: real */
9546 basic_istream_char_read_double(this, &r
);
9548 if(ios_base_fail(&base
->base
))
9558 /* ??$?5ODU?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAV?$complex@O@0@@Z */
9559 /* ??$?5ODU?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAV?$complex@O@0@@Z */
9560 basic_istream_char
* __cdecl
basic_istream_char_read_complex_ldouble(basic_istream_char
*this, complex_double
*v
)
9563 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
9565 TRACE("(%p %p)\n", this, v
);
9567 ws_basic_istream_char(this);
9568 if(basic_istream_char_peek(this) == '(') {
9570 basic_istream_char_get(this);
9571 basic_istream_char_read_ldouble(this, &r
);
9573 if(ios_base_fail(&base
->base
))
9576 ws_basic_istream_char(this);
9577 c
= basic_istream_char_peek(this);
9580 basic_istream_char_get(this);
9581 basic_istream_char_read_ldouble(this, &i
);
9583 if(ios_base_fail(&base
->base
))
9586 ws_basic_istream_char(this);
9587 c
= basic_istream_char_peek(this);
9588 if(c
== ')') { /* supported format: (real, imag) */
9589 basic_istream_char_get(this);
9593 basic_ios_char_setstate(base
, IOSTATE_failbit
);
9596 }else if(c
== ')') { /* supported format: (real) */
9597 basic_istream_char_get(this);
9601 basic_ios_char_setstate(base
, IOSTATE_failbit
);
9604 }else { /* supported format: real */
9605 basic_istream_char_read_ldouble(this, &r
);
9607 if(ios_base_fail(&base
->base
))
9617 /* ?swap@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEXAAV12@@Z */
9618 /* ?swap@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAXAEAV12@@Z */
9619 DEFINE_THISCALL_WRAPPER(basic_istream_char_swap
, 8)
9620 void __thiscall
basic_istream_char_swap(basic_istream_char
*this, basic_istream_char
*r
)
9622 TRACE("(%p %p)\n", this, r
);
9627 basic_ios_char_swap(basic_istream_char_get_basic_ios(this),
9628 basic_istream_char_get_basic_ios(r
));
9629 this->count
^= r
->count
;
9630 r
->count
^= this->count
;
9631 this->count
^= r
->count
;
9634 /* Caution: basic_istream uses virtual inheritance. */
9635 static inline basic_ios_wchar
* basic_istream_wchar_get_basic_ios(basic_istream_wchar
*this)
9637 return (basic_ios_wchar
*)((char*)this+this->vbtable
[1]);
9640 static inline basic_ios_wchar
* basic_istream_wchar_to_basic_ios(basic_istream_wchar
*ptr
)
9642 return (basic_ios_wchar
*)((char*)ptr
+basic_istream_wchar_vbtable
[1]);
9645 static inline basic_istream_wchar
* basic_istream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
9647 return (basic_istream_wchar
*)((char*)ptr
-basic_istream_wchar_vbtable
[1]);
9650 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N1@Z */
9651 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N1@Z */
9652 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ctor_init
, 20)
9653 basic_istream_wchar
* __thiscall
basic_istream_wchar_ctor_init(basic_istream_wchar
*this,
9654 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool noinit
, MSVCP_bool virt_init
)
9656 basic_ios_wchar
*base
;
9658 TRACE("(%p %p %d %d %d)\n", this, strbuf
, isstd
, noinit
, virt_init
);
9661 this->vbtable
= basic_istream_wchar_vbtable
;
9662 base
= basic_istream_wchar_get_basic_ios(this);
9663 INIT_BASIC_IOS_VTORDISP(base
);
9664 basic_ios_wchar_ctor(base
);
9666 base
= basic_istream_wchar_get_basic_ios(this);
9669 base
->base
.vtable
= &MSVCP_basic_istream_wchar_vtable
;
9672 basic_ios_wchar_init(base
, strbuf
, isstd
);
9676 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N1@Z */
9677 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N1@Z */
9678 DEFINE_THISCALL_WRAPPER(basic_istream_short_ctor_init
, 20)
9679 basic_istream_wchar
* __thiscall
basic_istream_short_ctor_init(basic_istream_wchar
*this,
9680 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool noinit
, MSVCP_bool virt_init
)
9682 basic_istream_wchar_ctor_init(this, strbuf
, isstd
, noinit
, virt_init
);
9683 basic_istream_wchar_get_basic_ios(this)->base
.vtable
= &MSVCP_basic_istream_short_vtable
;
9687 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N@Z */
9688 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N@Z */
9689 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ctor
, 16)
9690 basic_istream_wchar
* __thiscall
basic_istream_wchar_ctor(basic_istream_wchar
*this,
9691 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
9693 return basic_istream_wchar_ctor_init(this, strbuf
, isstd
, FALSE
, virt_init
);
9696 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N@Z */
9697 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N@Z */
9698 DEFINE_THISCALL_WRAPPER(basic_istream_short_ctor
, 16)
9699 basic_istream_wchar
* __thiscall
basic_istream_short_ctor(basic_istream_wchar
*this,
9700 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
9702 return basic_istream_short_ctor_init(this, strbuf
, isstd
, FALSE
, virt_init
);
9705 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE@W4_Uninitialized@1@@Z */
9706 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
9707 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ctor_uninitialized
, 12)
9708 basic_istream_wchar
* __thiscall
basic_istream_wchar_ctor_uninitialized(
9709 basic_istream_wchar
*this, int uninitialized
, MSVCP_bool virt_init
)
9711 basic_ios_wchar
*base
;
9713 TRACE("(%p %d %d)\n", this, uninitialized
, virt_init
);
9716 this->vbtable
= basic_istream_wchar_vbtable
;
9717 base
= basic_istream_wchar_get_basic_ios(this);
9718 INIT_BASIC_IOS_VTORDISP(base
);
9719 basic_ios_wchar_ctor(base
);
9721 base
= basic_istream_wchar_get_basic_ios(this);
9724 base
->base
.vtable
= &MSVCP_basic_istream_wchar_vtable
;
9725 ios_base_Addstd(&base
->base
);
9729 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QAE@W4_Uninitialized@1@@Z */
9730 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
9731 DEFINE_THISCALL_WRAPPER(basic_istream_short_ctor_uninitialized
, 12)
9732 basic_istream_wchar
* __thiscall
basic_istream_short_ctor_uninitialized(
9733 basic_istream_wchar
*this, int uninitialized
, MSVCP_bool virt_init
)
9735 basic_istream_wchar_ctor_uninitialized(this, uninitialized
, virt_init
);
9736 basic_istream_wchar_get_basic_ios(this)->base
.vtable
= &MSVCP_basic_istream_short_vtable
;
9740 /* ??1?$basic_istream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
9741 /* ??1?$basic_istream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
9742 /* ??1?$basic_istream@GU?$char_traits@G@std@@@std@@UAE@XZ */
9743 /* ??1?$basic_istream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
9744 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_dtor
, 4)
9745 void __thiscall
basic_istream_wchar_dtor(basic_ios_wchar
*base
)
9747 basic_istream_wchar
*this = basic_istream_wchar_from_basic_ios(base
);
9749 /* don't destroy virtual base here */
9750 TRACE("(%p)\n", this);
9753 /* ??_D?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
9754 /* ??_D?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
9755 /* ??_D?$basic_istream@GU?$char_traits@G@std@@@std@@QAEXXZ */
9756 /* ??_D?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
9757 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_vbase_dtor
, 4)
9758 void __thiscall
basic_istream_wchar_vbase_dtor(basic_istream_wchar
*this)
9760 basic_ios_wchar
*base
= basic_istream_wchar_to_basic_ios(this);
9762 TRACE("(%p)\n", this);
9764 basic_istream_wchar_dtor(base
);
9765 basic_ios_wchar_dtor(base
);
9768 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_vector_dtor
, 8)
9769 basic_istream_wchar
* __thiscall
basic_istream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
9771 basic_istream_wchar
*this = basic_istream_wchar_from_basic_ios(base
);
9773 TRACE("(%p %x)\n", this, flags
);
9776 /* we have an array, with the number of elements stored before the first object */
9777 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
9779 for(i
=*ptr
-1; i
>=0; i
--)
9780 basic_istream_wchar_vbase_dtor(this+i
);
9781 MSVCRT_operator_delete(ptr
);
9783 basic_istream_wchar_vbase_dtor(this);
9785 MSVCRT_operator_delete(this);
9791 /* ?_Ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE_N_N@Z */
9792 /* ?_Ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_N_N@Z */
9793 /* ?_Ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QAE_N_N@Z */
9794 /* ?_Ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_N_N@Z */
9795 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Ipfx
, 8)
9796 MSVCP_bool __thiscall
basic_istream_wchar__Ipfx(basic_istream_wchar
*this, MSVCP_bool noskip
)
9798 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9800 TRACE("(%p %d)\n", this, noskip
);
9802 if(ios_base_good(&base
->base
)) {
9803 if(basic_ios_wchar_tie_get(base
))
9804 basic_ostream_wchar_flush(basic_ios_wchar_tie_get(base
));
9806 if(!noskip
&& (ios_base_flags_get(&base
->base
) & FMTFLAG_skipws
)) {
9807 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9808 const ctype_wchar
*ctype
= ctype_wchar_use_facet(IOS_LOCALE(base
->strbuf
));
9811 for(ch
= basic_streambuf_wchar_sgetc(strbuf
); ;
9812 ch
= basic_streambuf_wchar_snextc(strbuf
)) {
9814 basic_ios_wchar_setstate(base
, IOSTATE_eofbit
);
9818 if(!ctype_wchar_is_ch(ctype
, _SPACE
|_BLANK
, ch
))
9824 if(!ios_base_good(&base
->base
)) {
9825 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
9831 /* ?ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE_N_N@Z */
9832 /* ?ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_N_N@Z */
9833 /* ?ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QAE_N_N@Z */
9834 /* ?ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_N_N@Z */
9835 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ipfx
, 8)
9836 MSVCP_bool __thiscall
basic_istream_wchar_ipfx(basic_istream_wchar
*this, MSVCP_bool noskip
)
9838 return basic_istream_wchar__Ipfx(this, noskip
);
9841 /* ?isfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
9842 /* ?isfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
9843 /* ?isfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEXXZ */
9844 /* ?isfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
9845 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_isfx
, 4)
9846 void __thiscall
basic_istream_wchar_isfx(basic_istream_wchar
*this)
9848 TRACE("(%p)\n", this);
9851 static BOOL
basic_istream_wchar_sentry_create(basic_istream_wchar
*istr
, MSVCP_bool noskip
)
9853 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istr
);
9855 if(basic_ios_wchar_rdbuf_get(base
))
9856 basic_streambuf_wchar__Lock(base
->strbuf
);
9858 return basic_istream_wchar_ipfx(istr
, noskip
);
9861 static void basic_istream_wchar_sentry_destroy(basic_istream_wchar
*istr
)
9863 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istr
);
9865 if(basic_ios_wchar_rdbuf_get(base
))
9866 basic_streambuf_wchar__Unlock(base
->strbuf
);
9869 /* ?gcount@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QBEHXZ */
9870 /* ?gcount@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEBA_JXZ */
9871 /* ?gcount@?$basic_istream@GU?$char_traits@G@std@@@std@@QBEHXZ */
9872 /* ?gcount@?$basic_istream@GU?$char_traits@G@std@@@std@@QEBA_JXZ */
9873 /* ?gcount@?$basic_istream@GU?$char_traits@G@std@@@std@@QBA_JXZ */
9874 /* ?gcount@?$basic_istream@GU?$char_traits@G@std@@@std@@QBE_JXZ */
9875 /* ?gcount@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QBA_JXZ */
9876 /* ?gcount@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QBE_JXZ */
9877 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_gcount
, 4)
9878 streamsize __thiscall
basic_istream_wchar_gcount(const basic_istream_wchar
*this)
9880 TRACE("(%p)\n", this);
9884 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
9885 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
9886 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEGXZ */
9887 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAGXZ */
9888 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get
, 4)
9889 unsigned short __thiscall
basic_istream_wchar_get(basic_istream_wchar
*this)
9891 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9894 TRACE("(%p)\n", this);
9898 if(!basic_istream_wchar_sentry_create(this, TRUE
)) {
9899 basic_istream_wchar_sentry_destroy(this);
9903 ret
= basic_streambuf_wchar_sbumpc(basic_ios_wchar_rdbuf_get(base
));
9904 basic_istream_wchar_sentry_destroy(this);
9906 basic_ios_wchar_setstate(base
, IOSTATE_eofbit
|IOSTATE_failbit
);
9913 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@AA_W@Z */
9914 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEA_W@Z */
9915 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@AAG@Z */
9916 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEAG@Z */
9917 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_ch
, 8)
9918 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_ch(basic_istream_wchar
*this, wchar_t *ch
)
9922 TRACE("(%p %p)\n", this, ch
);
9924 ret
= basic_istream_wchar_get(this);
9930 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH_W@Z */
9931 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J_W@Z */
9932 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGHG@Z */
9933 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_JG@Z */
9934 #if STREAMSIZE_BITS == 64
9935 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str_delim
, 20)
9937 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str_delim
, 16)
9939 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_str_delim(basic_istream_wchar
*this, wchar_t *str
, streamsize count
, wchar_t delim
)
9941 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9942 unsigned short ch
= delim
;
9944 TRACE("(%p %p %s %c)\n", this, str
, wine_dbgstr_longlong(count
), delim
);
9948 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9949 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9951 for(ch
= basic_streambuf_wchar_sgetc(strbuf
); count
>1;
9952 ch
= basic_streambuf_wchar_snextc(strbuf
)) {
9953 if(ch
==WEOF
|| ch
==delim
)
9961 basic_istream_wchar_sentry_destroy(this);
9963 basic_ios_wchar_setstate(base
, (!this->count
? IOSTATE_failbit
: IOSTATE_goodbit
) |
9964 (ch
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
9970 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH@Z */
9971 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J@Z */
9972 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGH@Z */
9973 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_J@Z */
9974 #if STREAMSIZE_BITS == 64
9975 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str
, 16)
9977 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str
, 12)
9979 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_str(basic_istream_wchar
*this, wchar_t *str
, streamsize count
)
9981 return basic_istream_wchar_get_str_delim(this, str
, count
, '\n');
9984 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@AAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_W@Z */
9985 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_W@Z */
9986 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@AAV?$basic_streambuf@GU?$char_traits@G@std@@@2@G@Z */
9987 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@G@Z */
9988 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_streambuf_delim
, 12)
9989 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_streambuf_delim(basic_istream_wchar
*this, basic_streambuf_wchar
*strbuf
, wchar_t delim
)
9991 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9992 unsigned short ch
= delim
;
9994 TRACE("(%p %p %c)\n", this, strbuf
, delim
);
9998 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9999 basic_streambuf_wchar
*strbuf_read
= basic_ios_wchar_rdbuf_get(base
);
10001 for(ch
= basic_streambuf_wchar_sgetc(strbuf_read
); ;
10002 ch
= basic_streambuf_wchar_snextc(strbuf_read
)) {
10003 if(ch
==WEOF
|| ch
==delim
)
10006 if(basic_streambuf_wchar_sputc(strbuf
, ch
) == WEOF
)
10011 basic_istream_wchar_sentry_destroy(this);
10013 basic_ios_wchar_setstate(base
, (!this->count
? IOSTATE_failbit
: IOSTATE_goodbit
) |
10014 (ch
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
10018 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@AAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@@Z */
10019 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@@Z */
10020 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@AAV?$basic_streambuf@GU?$char_traits@G@std@@@2@@Z */
10021 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@@Z */
10022 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_streambuf
, 8)
10023 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_streambuf(basic_istream_wchar
*this, basic_streambuf_wchar
*strbuf
)
10025 return basic_istream_wchar_get_streambuf_delim(this, strbuf
, '\n');
10028 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH_W@Z */
10029 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J_W@Z */
10030 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGHG@Z */
10031 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_JG@Z */
10032 #if STREAMSIZE_BITS == 64
10033 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline_delim
, 20)
10035 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline_delim
, 16)
10037 basic_istream_wchar
* __thiscall
basic_istream_wchar_getline_delim(basic_istream_wchar
*this, wchar_t *str
, streamsize count
, wchar_t delim
)
10039 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10040 unsigned short ch
= delim
;
10042 TRACE("(%p %p %s %c)\n", this, str
, wine_dbgstr_longlong(count
), delim
);
10046 if(basic_istream_wchar_sentry_create(this, TRUE
) && count
>0) {
10047 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10050 ch
= basic_streambuf_wchar_sbumpc(strbuf
);
10052 if(ch
==WEOF
|| ch
==delim
)
10062 else if(ch
!= WEOF
) {
10063 ch
= basic_streambuf_wchar_sgetc(strbuf
);
10066 basic_streambuf_wchar__Gninc(strbuf
);
10071 basic_istream_wchar_sentry_destroy(this);
10073 basic_ios_wchar_setstate(base
, (ch
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
) |
10074 (!this->count
|| (ch
!=delim
&& ch
!=WEOF
) ? IOSTATE_failbit
: IOSTATE_goodbit
));
10080 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH@Z */
10081 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J@Z */
10082 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGH@Z */
10083 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_J@Z */
10084 #if STREAMSIZE_BITS == 64
10085 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline
, 16)
10087 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline
, 12)
10089 basic_istream_wchar
* __thiscall
basic_istream_wchar_getline(basic_istream_wchar
*this, wchar_t *str
, streamsize count
)
10091 return basic_istream_wchar_getline_delim(this, str
, count
, '\n');
10094 /* ?ignore@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@HG@Z */
10095 /* ?ignore@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_JG@Z */
10096 /* ?ignore@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@HG@Z */
10097 /* ?ignore@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JG@Z */
10098 #if STREAMSIZE_BITS == 64
10099 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ignore
, 16)
10101 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ignore
, 12)
10103 basic_istream_wchar
* __thiscall
basic_istream_wchar_ignore(basic_istream_wchar
*this, streamsize count
, unsigned short delim
)
10105 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10106 unsigned short ch
= delim
;
10107 unsigned int state
;
10109 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(count
), delim
);
10113 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
10114 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10115 state
= IOSTATE_goodbit
;
10118 ch
= basic_streambuf_wchar_sbumpc(strbuf
);
10121 state
= IOSTATE_eofbit
;
10129 if(count
!= INT_MAX
)
10133 state
= IOSTATE_failbit
;
10134 basic_istream_wchar_sentry_destroy(this);
10136 basic_ios_wchar_setstate(base
, state
);
10140 /* ?ws@std@@YAAAV?$basic_istream@_WU?$char_traits@_W@std@@@1@AAV21@@Z */
10141 /* ?ws@std@@YAAEAV?$basic_istream@_WU?$char_traits@_W@std@@@1@AEAV21@@Z */
10142 /* ?ws@std@@YAAAV?$basic_istream@GU?$char_traits@G@std@@@1@AAV21@@Z */
10143 /* ?ws@std@@YAAEAV?$basic_istream@GU?$char_traits@G@std@@@1@AEAV21@@Z */
10144 basic_istream_wchar
* __cdecl
ws_basic_istream_wchar(basic_istream_wchar
*istream
)
10146 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istream
);
10147 unsigned short ch
= '\n';
10149 TRACE("(%p)\n", istream
);
10151 if(basic_istream_wchar_sentry_create(istream
, TRUE
)) {
10152 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10153 const ctype_wchar
*ctype
= ctype_wchar_use_facet(IOS_LOCALE(strbuf
));
10155 for(ch
= basic_streambuf_wchar_sgetc(strbuf
); ctype_wchar_is_ch(ctype
, _SPACE
, ch
);
10156 ch
= basic_streambuf_wchar_snextc(strbuf
)) {
10161 basic_istream_wchar_sentry_destroy(istream
);
10164 basic_ios_wchar_setstate(base
, IOSTATE_eofbit
);
10168 /* ?peek@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
10169 /* ?peek@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
10170 /* ?peek@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEGXZ */
10171 /* ?peek@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAGXZ */
10172 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_peek
, 4)
10173 unsigned short __thiscall
basic_istream_wchar_peek(basic_istream_wchar
*this)
10175 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10176 unsigned short ret
= WEOF
;
10178 TRACE("(%p)\n", this);
10182 if(basic_istream_wchar_sentry_create(this, TRUE
))
10183 ret
= basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base
));
10184 basic_istream_wchar_sentry_destroy(this);
10187 basic_ios_wchar_setstate(base
, IOSTATE_eofbit
);
10192 /* ?_Read_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WIH@Z */
10193 /* ?_Read_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_K_J@Z */
10194 /* ?_Read_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGIH@Z */
10195 /* ?_Read_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_K_J@Z */
10196 #if STREAMSIZE_BITS == 64
10197 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Read_s
, 20)
10199 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Read_s
, 16)
10201 basic_istream_wchar
* __thiscall
basic_istream_wchar__Read_s(basic_istream_wchar
*this, wchar_t *str
, MSVCP_size_t size
, streamsize count
)
10203 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10204 IOSB_iostate state
= IOSTATE_goodbit
;
10206 TRACE("(%p %p %lu %s)\n", this, str
, size
, wine_dbgstr_longlong(count
));
10208 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
10209 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10211 this->count
= basic_streambuf_wchar__Sgetn_s(strbuf
, str
, size
, count
);
10212 if(this->count
!= count
)
10213 state
|= IOSTATE_failbit
| IOSTATE_eofbit
;
10217 basic_istream_wchar_sentry_destroy(this);
10219 basic_ios_wchar_setstate(base
, state
);
10223 /* ?read@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH@Z */
10224 /* ?read@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J@Z */
10225 /* ?read@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGH@Z */
10226 /* ?read@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_J@Z */
10227 #if STREAMSIZE_BITS == 64
10228 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read
, 16)
10230 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read
, 12)
10232 basic_istream_wchar
* __thiscall
basic_istream_wchar_read(basic_istream_wchar
*this, wchar_t *str
, streamsize count
)
10234 return basic_istream_wchar__Read_s(this, str
, -1, count
);
10237 /* ?_Readsome_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEHPA_WIH@Z */
10238 /* ?_Readsome_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_K_J@Z */
10239 /* ?_Readsome_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEHPAGIH@Z */
10240 /* ?_Readsome_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_K_J@Z */
10241 #if STREAMSIZE_BITS == 64
10242 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Readsome_s
, 20)
10244 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Readsome_s
, 16)
10246 streamsize __thiscall
basic_istream_wchar__Readsome_s(basic_istream_wchar
*this, wchar_t *str
, MSVCP_size_t size
, streamsize count
)
10248 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10249 IOSB_iostate state
= IOSTATE_goodbit
;
10251 TRACE("(%p %p %lu %s)\n", this, str
, size
, wine_dbgstr_longlong(count
));
10255 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
10256 streamsize avail
= basic_streambuf_wchar_in_avail(basic_ios_wchar_rdbuf_get(base
));
10261 state
|= IOSTATE_eofbit
;
10263 basic_istream_wchar__Read_s(this, str
, size
, avail
);
10265 state
|= IOSTATE_failbit
;
10267 basic_istream_wchar_sentry_destroy(this);
10269 basic_ios_wchar_setstate(base
, state
);
10270 return this->count
;
10273 /* ?readsome@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEHPA_WH@Z */
10274 /* ?readsome@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_J@Z */
10275 /* ?readsome@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEHPAGH@Z */
10276 /* ?readsome@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_J@Z */
10277 #if STREAMSIZE_BITS == 64
10278 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_readsome
, 16)
10280 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_readsome
, 12)
10282 streamsize __thiscall
basic_istream_wchar_readsome(basic_istream_wchar
*this, wchar_t *str
, streamsize count
)
10284 return basic_istream_wchar__Readsome_s(this, str
, count
, count
);
10287 /* ?putback@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@_W@Z */
10288 /* ?putback@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_W@Z */
10289 /* ?putback@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@G@Z */
10290 /* ?putback@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@G@Z */
10291 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_putback
, 8)
10292 basic_istream_wchar
* __thiscall
basic_istream_wchar_putback(basic_istream_wchar
*this, wchar_t ch
)
10294 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10295 IOSB_iostate state
= IOSTATE_goodbit
;
10297 TRACE("(%p %c)\n", this, ch
);
10301 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
10302 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10304 if(!ios_base_good(&base
->base
))
10305 state
|= IOSTATE_failbit
;
10306 else if(!strbuf
|| basic_streambuf_wchar_sputbackc(strbuf
, ch
)==WEOF
)
10307 state
|= IOSTATE_badbit
;
10309 basic_istream_wchar_sentry_destroy(this);
10311 basic_ios_wchar_setstate(base
, state
);
10315 /* ?unget@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@XZ */
10316 /* ?unget@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@XZ */
10317 /* ?unget@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@XZ */
10318 /* ?unget@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@XZ */
10319 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_unget
, 4)
10320 basic_istream_wchar
* __thiscall
basic_istream_wchar_unget(basic_istream_wchar
*this)
10322 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10323 IOSB_iostate state
= IOSTATE_goodbit
;
10325 TRACE("(%p)\n", this);
10329 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
10330 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10332 if(!ios_base_good(&base
->base
))
10333 state
|= IOSTATE_failbit
;
10334 else if(!strbuf
|| basic_streambuf_wchar_sungetc(strbuf
)==WEOF
)
10335 state
|= IOSTATE_badbit
;
10337 basic_istream_wchar_sentry_destroy(this);
10339 basic_ios_wchar_setstate(base
, state
);
10343 /* ?sync@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEHXZ */
10344 /* ?sync@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAHXZ */
10345 /* ?sync@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEHXZ */
10346 /* ?sync@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAHXZ */
10347 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_sync
, 4)
10348 int __thiscall
basic_istream_wchar_sync(basic_istream_wchar
*this)
10350 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10351 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10353 TRACE("(%p)\n", this);
10358 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
10359 if(basic_streambuf_wchar_pubsync(strbuf
) != -1) {
10360 basic_istream_wchar_sentry_destroy(this);
10364 basic_istream_wchar_sentry_destroy(this);
10366 basic_ios_wchar_setstate(base
, IOSTATE_badbit
);
10370 /* ?tellg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@XZ */
10371 /* ?tellg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
10372 /* ?tellg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@XZ */
10373 /* ?tellg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
10374 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_tellg
, 8)
10375 fpos_mbstatet
* __thiscall
basic_istream_wchar_tellg(basic_istream_wchar
*this, fpos_mbstatet
*ret
)
10377 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10379 TRACE("(%p %p)\n", this, ret
);
10381 #if _MSVCP_VER >= 110
10382 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
10383 basic_streambuf_wchar_pubseekoff(basic_ios_wchar_rdbuf_get(base
),
10384 ret
, 0, SEEKDIR_cur
, OPENMODE_in
);
10386 if(ret
->off
==-1 && ret
->pos
==0 && MBSTATET_TO_INT(&ret
->state
)==0)
10387 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
10391 memset(&ret
->state
, 0, sizeof(ret
->state
));
10393 basic_istream_wchar_sentry_destroy(this);
10395 if(ios_base_fail(&base
->base
)) {
10398 memset(&ret
->state
, 0, sizeof(ret
->state
));
10402 basic_streambuf_wchar_pubseekoff(basic_ios_wchar_rdbuf_get(base
),
10403 ret
, 0, SEEKDIR_cur
, OPENMODE_in
);
10404 if(ret
->off
==-1 && ret
->pos
==0 && MBSTATET_TO_INT(&ret
->state
)==0)
10405 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
10410 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@JW4seekdir@ios_base@2@@Z */
10411 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JW4seekdir@ios_base@2@@Z */
10412 /* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@JH@Z */
10413 /* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_JH@Z */
10414 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@JH@Z */
10415 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JH@Z */
10416 #if STREAMOFF_BITS == 64
10417 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_seekg
, 16)
10419 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_seekg
, 12)
10421 basic_istream_wchar
* __thiscall
basic_istream_wchar_seekg(basic_istream_wchar
*this, streamoff off
, int dir
)
10423 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10424 #if _MSVCP_VER >= 110
10425 IOSB_iostate state
;
10427 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(off
), dir
);
10429 state
= ios_base_rdstate(&base
->base
);
10430 ios_base_clear(&base
->base
, state
& ~IOSTATE_eofbit
);
10432 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
10433 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10436 basic_streambuf_wchar_pubseekoff(strbuf
, &ret
, off
, dir
, OPENMODE_in
);
10438 if(ret
.off
==-1 && ret
.pos
==0 && MBSTATET_TO_INT(&ret
.state
)==0)
10439 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
10441 basic_istream_wchar_sentry_destroy(this);
10443 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(off
), dir
);
10445 if(!ios_base_fail(&base
->base
)) {
10446 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10449 basic_streambuf_wchar_pubseekoff(strbuf
, &ret
, off
, dir
, OPENMODE_in
);
10451 if(ret
.off
==-1 && ret
.pos
==0 && MBSTATET_TO_INT(&ret
.state
)==0)
10452 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
10454 basic_ios_wchar_clear(base
, IOSTATE_goodbit
);
10457 basic_ios_wchar_clear(base
, IOSTATE_goodbit
);
10462 /* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
10463 /* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
10464 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
10465 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
10466 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_seekg_fpos
, 28)
10467 basic_istream_wchar
* __thiscall
basic_istream_wchar_seekg_fpos(basic_istream_wchar
*this, fpos_mbstatet pos
)
10469 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10470 #if _MSVCP_VER >= 110
10471 IOSB_iostate state
;
10473 TRACE("(%p %s)\n", this, debugstr_fpos_mbstatet(&pos
));
10475 state
= ios_base_rdstate(&base
->base
);
10476 ios_base_clear(&base
->base
, state
& ~IOSTATE_eofbit
);
10478 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
10479 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10482 basic_streambuf_wchar_pubseekpos(strbuf
, &ret
, pos
, OPENMODE_in
);
10484 if(ret
.off
==-1 && ret
.pos
==0 && MBSTATET_TO_INT(&ret
.state
)==0)
10485 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
10487 basic_istream_wchar_sentry_destroy(this);
10489 TRACE("(%p %s)\n", this, debugstr_fpos_mbstatet(&pos
));
10491 if(!ios_base_fail(&base
->base
)) {
10492 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10495 basic_streambuf_wchar_pubseekpos(strbuf
, &ret
, pos
, OPENMODE_in
);
10497 if(ret
.off
==-1 && ret
.pos
==0 && MBSTATET_TO_INT(&ret
.state
)==0)
10498 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
10500 basic_ios_wchar_clear(base
, IOSTATE_goodbit
);
10503 basic_ios_wchar_clear(base
, IOSTATE_goodbit
);
10508 static basic_istream_wchar
* basic_istream_read_short(basic_istream_wchar
*this, short *v
, const num_get
*numget
)
10510 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10511 int state
= IOSTATE_goodbit
;
10513 TRACE("(%p %p)\n", this, v
);
10515 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10516 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10517 istreambuf_iterator_wchar first
={0}, last
={0};
10520 first
.strbuf
= strbuf
;
10521 num_get_wchar_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, &tmp
);
10523 if(!(state
&IOSTATE_failbit
) && tmp
==(LONG
)((short)tmp
))
10526 state
|= IOSTATE_failbit
;
10528 basic_istream_wchar_sentry_destroy(this);
10530 basic_ios_wchar_setstate(base
, state
);
10534 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAF@Z */
10535 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAF@Z */
10536 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_short
, 8)
10537 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_short(basic_istream_wchar
*this, short *v
)
10539 return basic_istream_read_short(this, v
, num_get_wchar_use_facet(
10540 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10543 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAF@Z */
10544 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAF@Z */
10545 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_short
, 8)
10546 basic_istream_wchar
* __thiscall
basic_istream_short_read_short(basic_istream_wchar
*this, short *v
)
10548 return basic_istream_read_short(this, v
, num_get_short_use_facet(
10549 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10552 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAG@Z */
10553 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAG@Z */
10554 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_ushort
, 8)
10555 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_ushort(basic_istream_wchar
*this, unsigned short *v
)
10557 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10558 int state
= IOSTATE_goodbit
;
10560 TRACE("(%p %p)\n", this, v
);
10562 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10563 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10564 const num_get
*numget
= num_get_wchar_use_facet(IOS_LOCALE(strbuf
));
10565 istreambuf_iterator_wchar first
={0}, last
={0};
10567 first
.strbuf
= strbuf
;
10568 num_get_wchar_get_ushort(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10570 basic_istream_wchar_sentry_destroy(this);
10572 basic_ios_wchar_setstate(base
, state
);
10576 static basic_istream_wchar
* basic_istream_read_int(basic_istream_wchar
*this, int *v
, const num_get
*numget
)
10578 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10579 int state
= IOSTATE_goodbit
;
10581 TRACE("(%p %p)\n", this, v
);
10583 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10584 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10585 istreambuf_iterator_wchar first
={0}, last
={0};
10587 first
.strbuf
= strbuf
;
10588 num_get_wchar_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10590 basic_istream_wchar_sentry_destroy(this);
10592 basic_ios_wchar_setstate(base
, state
);
10596 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAH@Z */
10597 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAH@Z */
10598 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_int
, 8)
10599 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_int(basic_istream_wchar
*this, int *v
)
10601 return basic_istream_read_int(this, v
, num_get_wchar_use_facet(
10602 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10605 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAH@Z */
10606 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAH@Z */
10607 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_int
, 8)
10608 basic_istream_wchar
* __thiscall
basic_istream_short_read_int(basic_istream_wchar
*this, int *v
)
10610 return basic_istream_read_int(this, v
, num_get_short_use_facet(
10611 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10614 static basic_istream_wchar
* basic_istream_read_uint(basic_istream_wchar
*this, unsigned int *v
, const num_get
*numget
)
10616 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10617 int state
= IOSTATE_goodbit
;
10619 TRACE("(%p %p)\n", this, v
);
10621 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10622 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10623 istreambuf_iterator_wchar first
={0}, last
={0};
10625 first
.strbuf
= strbuf
;
10626 num_get_wchar_get_uint(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10628 basic_istream_wchar_sentry_destroy(this);
10630 basic_ios_wchar_setstate(base
, state
);
10634 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAI@Z */
10635 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAI@Z */
10636 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_uint
, 8)
10637 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_uint(basic_istream_wchar
*this, unsigned int *v
)
10639 return basic_istream_read_uint(this, v
, num_get_wchar_use_facet(
10640 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10643 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAI@Z */
10644 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAI@Z */
10645 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_uint
, 8)
10646 basic_istream_wchar
* __thiscall
basic_istream_short_read_uint(basic_istream_wchar
*this, unsigned int *v
)
10648 return basic_istream_read_uint(this, v
, num_get_short_use_facet(
10649 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10652 static basic_istream_wchar
* basic_istream_read_long(basic_istream_wchar
*this, LONG
*v
, const num_get
*numget
)
10654 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10655 int state
= IOSTATE_goodbit
;
10657 TRACE("(%p %p)\n", this, v
);
10659 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10660 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10661 istreambuf_iterator_wchar first
={0}, last
={0};
10663 first
.strbuf
= strbuf
;
10664 num_get_wchar_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10666 basic_istream_wchar_sentry_destroy(this);
10668 basic_ios_wchar_setstate(base
, state
);
10672 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAJ@Z */
10673 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAJ@Z */
10674 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_long
, 8)
10675 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_long(basic_istream_wchar
*this, LONG
*v
)
10677 return basic_istream_read_long(this, v
, num_get_wchar_use_facet(
10678 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10681 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAJ@Z */
10682 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAJ@Z */
10683 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_long
, 8)
10684 basic_istream_wchar
* __thiscall
basic_istream_short_read_long(basic_istream_wchar
*this, LONG
*v
)
10686 return basic_istream_read_long(this, v
, num_get_short_use_facet(
10687 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10690 static basic_istream_wchar
* basic_istream_read_ulong(basic_istream_wchar
*this, ULONG
*v
, const num_get
*numget
)
10692 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10693 int state
= IOSTATE_goodbit
;
10695 TRACE("(%p %p)\n", this, v
);
10697 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10698 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10699 istreambuf_iterator_wchar first
={0}, last
={0};
10701 first
.strbuf
= strbuf
;
10702 num_get_wchar_get_ulong(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10704 basic_istream_wchar_sentry_destroy(this);
10706 basic_ios_wchar_setstate(base
, state
);
10710 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAK@Z */
10711 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAK@Z */
10712 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_ulong
, 8)
10713 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_ulong(basic_istream_wchar
*this, ULONG
*v
)
10715 return basic_istream_read_ulong(this, v
, num_get_wchar_use_facet(
10716 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10719 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAK@Z */
10720 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAK@Z */
10721 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_ulong
, 8)
10722 basic_istream_wchar
* __thiscall
basic_istream_short_read_ulong(basic_istream_wchar
*this, ULONG
*v
)
10724 return basic_istream_read_ulong(this, v
, num_get_short_use_facet(
10725 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10728 static basic_istream_wchar
* basic_istream_read_float(basic_istream_wchar
*this, float *v
, const num_get
*numget
)
10730 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10731 int state
= IOSTATE_goodbit
;
10733 TRACE("(%p %p)\n", this, v
);
10735 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10736 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10737 istreambuf_iterator_wchar first
={0}, last
={0};
10739 first
.strbuf
= strbuf
;
10740 num_get_wchar_get_float(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10742 basic_istream_wchar_sentry_destroy(this);
10744 basic_ios_wchar_setstate(base
, state
);
10748 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAM@Z */
10749 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAM@Z */
10750 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_float
, 8)
10751 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_float(basic_istream_wchar
*this, float *v
)
10753 return basic_istream_read_float(this, v
, num_get_wchar_use_facet(
10754 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10757 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAM@Z */
10758 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAM@Z */
10759 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_float
, 8)
10760 basic_istream_wchar
* __thiscall
basic_istream_short_read_float(basic_istream_wchar
*this, float *v
)
10762 return basic_istream_read_float(this, v
, num_get_short_use_facet(
10763 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10766 static basic_istream_wchar
* basic_istream_read_double(basic_istream_wchar
*this, double *v
, const num_get
*numget
)
10768 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10769 int state
= IOSTATE_goodbit
;
10771 TRACE("(%p %p)\n", this, v
);
10773 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10774 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10775 istreambuf_iterator_wchar first
={0}, last
={0};
10777 first
.strbuf
= strbuf
;
10778 num_get_wchar_get_double(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10780 basic_istream_wchar_sentry_destroy(this);
10782 basic_ios_wchar_setstate(base
, state
);
10786 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAN@Z */
10787 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAN@Z */
10788 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_double
, 8)
10789 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_double(basic_istream_wchar
*this, double *v
)
10791 return basic_istream_read_double(this, v
, num_get_wchar_use_facet(
10792 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10795 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAN@Z */
10796 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAN@Z */
10797 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_double
, 8)
10798 basic_istream_wchar
* __thiscall
basic_istream_short_read_double(basic_istream_wchar
*this, double *v
)
10800 return basic_istream_read_double(this, v
, num_get_short_use_facet(
10801 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10804 static basic_istream_wchar
* basic_istream_read_ldouble(basic_istream_wchar
*this, double *v
, const num_get
*numget
)
10806 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10807 int state
= IOSTATE_goodbit
;
10809 TRACE("(%p %p)\n", this, v
);
10811 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10812 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10813 istreambuf_iterator_wchar first
={0}, last
={0};
10815 first
.strbuf
= strbuf
;
10816 num_get_wchar_get_ldouble(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10818 basic_istream_wchar_sentry_destroy(this);
10820 basic_ios_wchar_setstate(base
, state
);
10824 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAO@Z */
10825 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAO@Z */
10826 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_ldouble
, 8)
10827 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_ldouble(basic_istream_wchar
*this, double *v
)
10829 return basic_istream_read_ldouble(this, v
, num_get_wchar_use_facet(
10830 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10833 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAO@Z */
10834 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAO@Z */
10835 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_ldouble
, 8)
10836 basic_istream_wchar
* __thiscall
basic_istream_short_read_ldouble(basic_istream_wchar
*this, double *v
)
10838 return basic_istream_read_ldouble(this, v
, num_get_short_use_facet(
10839 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10842 static basic_istream_wchar
* basic_istream_read_ptr(basic_istream_wchar
*this, void **v
, const num_get
*numget
)
10844 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10845 int state
= IOSTATE_goodbit
;
10847 TRACE("(%p %p)\n", this, v
);
10849 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10850 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10851 istreambuf_iterator_wchar first
={0}, last
={0};
10853 first
.strbuf
= strbuf
;
10854 num_get_wchar_get_void(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10856 basic_istream_wchar_sentry_destroy(this);
10858 basic_ios_wchar_setstate(base
, state
);
10862 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAPAX@Z */
10863 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAPEAX@Z */
10864 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_ptr
, 8)
10865 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_ptr(basic_istream_wchar
*this, void **v
)
10867 return basic_istream_read_ptr(this, v
, num_get_wchar_use_facet(
10868 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10871 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAPAX@Z */
10872 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAPEAX@Z */
10873 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_ptr
, 8)
10874 basic_istream_wchar
* __thiscall
basic_istream_short_read_ptr(basic_istream_wchar
*this, void **v
)
10876 return basic_istream_read_ptr(this, v
, num_get_short_use_facet(
10877 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10880 static basic_istream_wchar
* basic_istream_read_int64(basic_istream_wchar
*this, __int64
*v
, const num_get
*numget
)
10882 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10883 int state
= IOSTATE_goodbit
;
10885 TRACE("(%p %p)\n", this, v
);
10887 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10888 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10889 istreambuf_iterator_wchar first
={0}, last
={0};
10891 first
.strbuf
= strbuf
;
10892 num_get_wchar_get_int64(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10894 basic_istream_wchar_sentry_destroy(this);
10896 basic_ios_wchar_setstate(base
, state
);
10900 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AA_J@Z */
10901 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEA_J@Z */
10902 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_int64
, 8)
10903 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_int64(basic_istream_wchar
*this, __int64
*v
)
10905 return basic_istream_read_int64(this, v
, num_get_wchar_use_facet(
10906 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10909 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AA_J@Z */
10910 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEA_J@Z */
10911 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_int64
, 8)
10912 basic_istream_wchar
* __thiscall
basic_istream_short_read_int64(basic_istream_wchar
*this, __int64
*v
)
10914 return basic_istream_read_int64(this, v
, num_get_short_use_facet(
10915 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10918 static basic_istream_wchar
* basic_istream_read_uint64(basic_istream_wchar
*this, unsigned __int64
*v
, const num_get
*numget
)
10920 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10921 int state
= IOSTATE_goodbit
;
10923 TRACE("(%p %p)\n", this, v
);
10925 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10926 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10927 istreambuf_iterator_wchar first
={0}, last
={0};
10929 first
.strbuf
= strbuf
;
10930 num_get_wchar_get_uint64(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10932 basic_istream_wchar_sentry_destroy(this);
10934 basic_ios_wchar_setstate(base
, state
);
10938 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AA_K@Z */
10939 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEA_K@Z */
10940 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_uint64
, 8)
10941 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_uint64(basic_istream_wchar
*this, unsigned __int64
*v
)
10943 return basic_istream_read_uint64(this, v
, num_get_wchar_use_facet(
10944 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10947 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AA_K@Z */
10948 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEA_K@Z */
10949 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_uint64
, 8)
10950 basic_istream_wchar
* __thiscall
basic_istream_short_read_uint64(basic_istream_wchar
*this, unsigned __int64
*v
)
10952 return basic_istream_read_uint64(this, v
, num_get_short_use_facet(
10953 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10956 static basic_istream_wchar
* basic_istream_read_bool(basic_istream_wchar
*this, MSVCP_bool
*v
, const num_get
*numget
)
10958 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10959 int state
= IOSTATE_goodbit
;
10961 TRACE("(%p %p)\n", this, v
);
10963 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10964 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10965 istreambuf_iterator_wchar first
={0}, last
={0};
10967 first
.strbuf
= strbuf
;
10968 num_get_wchar_get_bool(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10970 basic_istream_wchar_sentry_destroy(this);
10972 basic_ios_wchar_setstate(base
, state
);
10976 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AA_N@Z */
10977 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEA_N@Z */
10978 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_bool
, 8)
10979 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_bool(basic_istream_wchar
*this, MSVCP_bool
*v
)
10981 return basic_istream_read_bool(this, v
, num_get_wchar_use_facet(
10982 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10985 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AA_N@Z */
10986 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEA_N@Z */
10987 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_bool
, 8)
10988 basic_istream_wchar
* __thiscall
basic_istream_short_read_bool(basic_istream_wchar
*this, MSVCP_bool
*v
)
10990 return basic_istream_read_bool(this, v
, num_get_short_use_facet(
10991 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10994 /* ??$getline@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@YAAAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AAV10@AAV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@_W@Z */
10995 /* ??$getline@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@YAAEAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AEAV10@AEAV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@_W@Z */
10996 /* ??$getline@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@YAAAV?$basic_istream@GU?$char_traits@G@std@@@0@AAV10@AAV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@G@Z */
10997 /* ??$getline@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@YAAEAV?$basic_istream@GU?$char_traits@G@std@@@0@AEAV10@AEAV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@G@Z */
10998 basic_istream_wchar
* __cdecl
basic_istream_wchar_getline_bstr_delim(
10999 basic_istream_wchar
*istream
, basic_string_wchar
*str
, wchar_t delim
)
11001 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istream
);
11002 IOSB_iostate state
= IOSTATE_goodbit
;
11005 TRACE("(%p %p %c)\n", istream
, str
, delim
);
11007 if(basic_istream_wchar_sentry_create(istream
, TRUE
)) {
11008 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
11009 MSVCP_basic_string_wchar_clear(str
);
11011 c
= basic_streambuf_wchar_sgetc(strbuf
);
11012 for(; c
!=delim
&& c
!=WEOF
; c
= basic_streambuf_wchar_snextc(strbuf
))
11013 MSVCP_basic_string_wchar_append_ch(str
, c
);
11014 if(c
==delim
) basic_streambuf_wchar_sbumpc(strbuf
);
11015 else if(c
==WEOF
) state
|= IOSTATE_eofbit
;
11017 if(!MSVCP_basic_string_wchar_length(str
) && c
!=delim
) state
|= IOSTATE_failbit
;
11019 basic_istream_wchar_sentry_destroy(istream
);
11021 basic_ios_wchar_setstate(basic_istream_wchar_get_basic_ios(istream
), state
);
11025 /* ??$getline@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@YAAAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AAV10@AAV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@@Z */
11026 /* ??$getline@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@YAAEAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AEAV10@AEAV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@@Z */
11027 /* ??$getline@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@YAAAV?$basic_istream@GU?$char_traits@G@std@@@0@AAV10@AAV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@@Z */
11028 /* ??$getline@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@YAAEAV?$basic_istream@GU?$char_traits@G@std@@@0@AEAV10@AEAV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@@Z */
11029 basic_istream_wchar
* __cdecl
basic_istream_wchar_getline_bstr(
11030 basic_istream_wchar
*istream
, basic_string_wchar
*str
)
11032 return basic_istream_wchar_getline_bstr_delim(istream
, str
, '\n');
11035 static basic_istream_wchar
* basic_istream_read_bstr(basic_istream_wchar
*istream
,
11036 basic_string_wchar
*str
, const ctype_wchar
*ctype
)
11038 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istream
);
11039 IOSB_iostate state
= IOSTATE_failbit
;
11042 TRACE("(%p %p)\n", istream
, str
);
11044 if(basic_istream_wchar_sentry_create(istream
, FALSE
)) {
11045 MSVCP_size_t count
= ios_base_width_get(&base
->base
);
11050 MSVCP_basic_string_wchar_clear(str
);
11052 for(c
= basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base
));
11053 c
!=WEOF
&& !ctype_wchar_is_ch(ctype
, _SPACE
|_BLANK
, c
) && count
>0;
11054 c
= basic_streambuf_wchar_snextc(basic_ios_wchar_rdbuf_get(base
)), count
--) {
11055 state
= IOSTATE_goodbit
;
11056 MSVCP_basic_string_wchar_append_ch(str
, c
);
11059 basic_istream_wchar_sentry_destroy(istream
);
11061 ios_base_width_set(&base
->base
, 0);
11062 basic_ios_wchar_setstate(base
, state
| (c
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
11066 /* ??$?5_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YAAAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AAV10@AAV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@@Z */
11067 /* ??$?5_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YAAEAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AEAV10@AEAV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@@Z */
11068 basic_istream_wchar
* __cdecl
basic_istream_wchar_read_bstr(
11069 basic_istream_wchar
*istream
, basic_string_wchar
*str
)
11071 return basic_istream_read_bstr(istream
, str
, ctype_wchar_use_facet(
11072 IOS_LOCALE(basic_istream_wchar_get_basic_ios(istream
)->strbuf
)));
11075 /* ??$?5GU?$char_traits@G@std@@V?$allocator@G@1@@std@@YAAAV?$basic_istream@GU?$char_traits@G@std@@@0@AAV10@AAV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@@Z */
11076 /* ??$?5GU?$char_traits@G@std@@V?$allocator@G@1@@std@@YAAEAV?$basic_istream@GU?$char_traits@G@std@@@0@AEAV10@AEAV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@@Z */
11077 basic_istream_wchar
* __cdecl
basic_istream_short_read_bstr(
11078 basic_istream_wchar
*istream
, basic_string_wchar
*str
)
11080 return basic_istream_read_bstr(istream
, str
, ctype_short_use_facet(
11081 IOS_LOCALE(basic_istream_wchar_get_basic_ios(istream
)->strbuf
)));
11084 static basic_istream_wchar
* basic_istream_read_str(basic_istream_wchar
*istream
, wchar_t *str
, const ctype_wchar
*ctype
)
11086 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istream
);
11087 IOSB_iostate state
= IOSTATE_failbit
;
11088 unsigned short c
= '\n';
11090 TRACE("(%p %p)\n", istream
, str
);
11092 if(basic_istream_wchar_sentry_create(istream
, FALSE
)) {
11093 MSVCP_size_t count
= ios_base_width_get(&base
->base
)-1;
11095 for(c
= basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base
));
11096 c
!=WEOF
&& !ctype_wchar_is_ch(ctype
, _SPACE
|_BLANK
, c
) && count
>0;
11097 c
= basic_streambuf_wchar_snextc(basic_ios_wchar_rdbuf_get(base
)), count
--) {
11098 state
= IOSTATE_goodbit
;
11102 basic_istream_wchar_sentry_destroy(istream
);
11105 ios_base_width_set(&base
->base
, 0);
11106 basic_ios_wchar_setstate(base
, state
| (c
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
11110 /* ??$?5_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AAV10@PA_W@Z */
11111 /* ??$?5_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AEAV10@PEA_W@Z */
11112 basic_istream_wchar
* __cdecl
basic_istream_wchar_read_str(basic_istream_wchar
*istream
, wchar_t *str
)
11114 return basic_istream_read_str(istream
, str
, ctype_wchar_use_facet(
11115 IOS_LOCALE(basic_istream_wchar_get_basic_ios(istream
)->strbuf
)));
11118 /* ??$?5GU?$char_traits@G@std@@@std@@YAAAV?$basic_istream@GU?$char_traits@G@std@@@0@AAV10@PAG@Z */
11119 /* ??$?5GU?$char_traits@G@std@@@std@@YAAEAV?$basic_istream@GU?$char_traits@G@std@@@0@AEAV10@PEAG@Z */
11120 basic_istream_wchar
* __cdecl
basic_istream_short_read_str(basic_istream_wchar
*istream
, wchar_t *str
)
11122 return basic_istream_read_str(istream
, str
, ctype_short_use_facet(
11123 IOS_LOCALE(basic_istream_wchar_get_basic_ios(istream
)->strbuf
)));
11126 /* ??$?5_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AAV10@AA_W@Z */
11127 /* ??$?5_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AEAV10@AEA_W@Z */
11128 /* ??$?5GU?$char_traits@G@std@@@std@@YAAAV?$basic_istream@GU?$char_traits@G@std@@@0@AAV10@AAG@Z */
11129 /* ??$?5GU?$char_traits@G@std@@@std@@YAAEAV?$basic_istream@GU?$char_traits@G@std@@@0@AEAV10@AEAG@Z */
11130 basic_istream_wchar
* __cdecl
basic_istream_wchar_read_ch(basic_istream_wchar
*istream
, wchar_t *ch
)
11132 IOSB_iostate state
= IOSTATE_failbit
;
11133 unsigned short c
= 0;
11135 TRACE("(%p %p)\n", istream
, ch
);
11137 if(basic_istream_wchar_sentry_create(istream
, FALSE
)) {
11138 c
= basic_streambuf_wchar_sbumpc(basic_ios_wchar_rdbuf_get(
11139 basic_istream_wchar_get_basic_ios(istream
)));
11141 state
= IOSTATE_goodbit
;
11145 basic_istream_wchar_sentry_destroy(istream
);
11147 basic_ios_wchar_setstate(basic_istream_wchar_get_basic_ios(istream
),
11148 state
| (c
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
11152 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
11153 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
11154 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
11155 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
11156 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_streambuf
, 8)
11157 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_streambuf(
11158 basic_istream_wchar
*this, basic_streambuf_wchar
*streambuf
)
11160 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
11161 IOSB_iostate state
= IOSTATE_failbit
;
11162 unsigned short c
= '\n';
11164 TRACE("(%p %p)\n", this, streambuf
);
11166 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
11167 for(c
= basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base
)); c
!=WEOF
;
11168 c
= basic_streambuf_wchar_snextc(basic_ios_wchar_rdbuf_get(base
))) {
11169 state
= IOSTATE_goodbit
;
11170 if(basic_streambuf_wchar_sputc(streambuf
, c
) == WEOF
)
11174 basic_istream_wchar_sentry_destroy(this);
11176 basic_ios_wchar_setstate(base
, state
| (c
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
11180 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
11181 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
11182 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
11183 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
11184 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_func
, 8)
11185 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_func(basic_istream_wchar
*this,
11186 basic_istream_wchar
* (__cdecl
*pfunc
)(basic_istream_wchar
*))
11188 TRACE("(%p %p)\n", this, pfunc
);
11193 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AAV21@@Z@Z */
11194 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AEAV21@@Z@Z */
11195 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@GU?$char_traits@G@std@@@1@AAV21@@Z@Z */
11196 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@GU?$char_traits@G@std@@@1@AEAV21@@Z@Z */
11197 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_func_basic_ios
, 8)
11198 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_func_basic_ios(basic_istream_wchar
*this,
11199 basic_ios_wchar
* (__cdecl
*pfunc
)(basic_ios_wchar
*))
11201 TRACE("(%p %p)\n", this, pfunc
);
11202 pfunc(basic_istream_wchar_get_basic_ios(this));
11206 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
11207 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
11208 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
11209 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
11210 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_func_ios_base
, 8)
11211 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_func_ios_base(
11212 basic_istream_wchar
*this, ios_base
* (__cdecl
*pfunc
)(ios_base
*))
11214 TRACE("(%p %p)\n", this, pfunc
);
11215 pfunc(&basic_istream_wchar_get_basic_ios(this)->base
);
11219 /* ?swap@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEXAAV12@@Z */
11220 /* ?swap@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAXAEAV12@@Z */
11221 /* ?swap@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEXAAV12@@Z */
11222 /* ?swap@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAXAEAV12@@Z */
11223 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_swap
, 8)
11224 void __thiscall
basic_istream_wchar_swap(basic_istream_wchar
*this, basic_istream_wchar
*r
)
11226 TRACE("(%p %p)\n", this, r
);
11231 basic_ios_wchar_swap(basic_istream_wchar_get_basic_ios(this),
11232 basic_istream_wchar_get_basic_ios(r
));
11233 this->count
^= r
->count
;
11234 r
->count
^= this->count
;
11235 this->count
^= r
->count
;
11238 static inline basic_ios_char
* basic_iostream_char_to_basic_ios(basic_iostream_char
*ptr
)
11240 return (basic_ios_char
*)((char*)ptr
+basic_iostream_char_vbtable1
[1]);
11243 static inline basic_iostream_char
* basic_iostream_char_from_basic_ios(basic_ios_char
*ptr
)
11245 return (basic_iostream_char
*)((char*)ptr
-basic_iostream_char_vbtable1
[1]);
11248 /* ??0?$basic_iostream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
11249 /* ??0?$basic_iostream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
11250 DEFINE_THISCALL_WRAPPER(basic_iostream_char_ctor
, 12)
11251 basic_iostream_char
* __thiscall
basic_iostream_char_ctor(basic_iostream_char
*this, basic_streambuf_char
*strbuf
, MSVCP_bool virt_init
)
11253 basic_ios_char
*basic_ios
;
11255 TRACE("(%p %p %d)\n", this, strbuf
, virt_init
);
11258 this->base1
.vbtable
= basic_iostream_char_vbtable1
;
11259 this->base2
.vbtable
= basic_iostream_char_vbtable2
;
11260 basic_ios
= basic_istream_char_get_basic_ios(&this->base1
);
11261 INIT_BASIC_IOS_VTORDISP(basic_ios
);
11262 basic_ios_char_ctor(basic_ios
);
11264 basic_ios
= basic_istream_char_get_basic_ios(&this->base1
);
11267 basic_istream_char_ctor(&this->base1
, strbuf
, FALSE
, FALSE
);
11268 basic_ostream_char_ctor_uninitialized(&this->base2
, 0, FALSE
, FALSE
);
11269 basic_ios
->base
.vtable
= &MSVCP_basic_iostream_char_vtable
;
11273 /* ??1?$basic_iostream@DU?$char_traits@D@std@@@std@@UAE@XZ */
11274 /* ??1?$basic_iostream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
11275 DEFINE_THISCALL_WRAPPER(basic_iostream_char_dtor
, 4)
11276 void __thiscall
basic_iostream_char_dtor(basic_ios_char
*base
)
11278 basic_iostream_char
*this = basic_iostream_char_from_basic_ios(base
);
11280 TRACE("(%p)\n", this);
11281 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&this->base2
));
11282 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&this->base1
));
11285 /* ??_D?$basic_iostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
11286 /* ??_D?$basic_iostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
11287 DEFINE_THISCALL_WRAPPER(basic_iostream_char_vbase_dtor
, 4)
11288 void __thiscall
basic_iostream_char_vbase_dtor(basic_iostream_char
*this)
11290 basic_ios_char
*base
= basic_iostream_char_to_basic_ios(this);
11292 TRACE("(%p)\n", this);
11294 basic_iostream_char_dtor(base
);
11295 basic_ios_char_dtor(base
);
11298 DEFINE_THISCALL_WRAPPER(basic_iostream_char_vector_dtor
, 8)
11299 basic_iostream_char
* __thiscall
basic_iostream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
11301 basic_iostream_char
*this = basic_iostream_char_from_basic_ios(base
);
11303 TRACE("(%p %x)\n", this, flags
);
11306 /* we have an array, with the number of elements stored before the first object */
11307 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11309 for(i
=*ptr
-1; i
>=0; i
--)
11310 basic_iostream_char_vbase_dtor(this+i
);
11311 MSVCRT_operator_delete(ptr
);
11313 basic_iostream_char_vbase_dtor(this);
11315 MSVCRT_operator_delete(this);
11321 /* ?swap@?$basic_iostream@DU?$char_traits@D@std@@@std@@QAEXAAV12@@Z */
11322 /* ?swap@?$basic_iostream@DU?$char_traits@D@std@@@std@@QEAAXAEAV12@@Z */
11323 DEFINE_THISCALL_WRAPPER(basic_iostream_char_swap
, 8)
11324 void __thiscall
basic_iostream_char_swap(basic_iostream_char
*this, basic_iostream_char
*r
)
11326 TRACE("(%p %p)\n", this, r
);
11331 basic_ios_char_swap(basic_istream_char_get_basic_ios(&this->base1
),
11332 basic_istream_char_get_basic_ios(&r
->base1
));
11335 static inline basic_ios_wchar
* basic_iostream_wchar_to_basic_ios(basic_iostream_wchar
*ptr
)
11337 return (basic_ios_wchar
*)((char*)ptr
+basic_iostream_wchar_vbtable1
[1]);
11340 static inline basic_iostream_wchar
* basic_iostream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
11342 return (basic_iostream_wchar
*)((char*)ptr
-basic_iostream_wchar_vbtable1
[1]);
11345 /* ??0?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
11346 /* ??0?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
11347 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_ctor
, 12)
11348 basic_iostream_wchar
* __thiscall
basic_iostream_wchar_ctor(basic_iostream_wchar
*this,
11349 basic_streambuf_wchar
*strbuf
, MSVCP_bool virt_init
)
11351 basic_ios_wchar
*basic_ios
;
11353 TRACE("(%p %p %d)\n", this, strbuf
, virt_init
);
11356 this->base1
.vbtable
= basic_iostream_wchar_vbtable1
;
11357 this->base2
.vbtable
= basic_iostream_wchar_vbtable2
;
11358 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base1
);
11359 INIT_BASIC_IOS_VTORDISP(basic_ios
);
11360 basic_ios_wchar_ctor(basic_ios
);
11362 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base1
);
11365 basic_istream_wchar_ctor(&this->base1
, strbuf
, FALSE
, FALSE
);
11366 basic_ostream_wchar_ctor_uninitialized(&this->base2
, 0, FALSE
, FALSE
);
11368 basic_ios
->base
.vtable
= &MSVCP_basic_iostream_wchar_vtable
;
11372 /* ??0?$basic_iostream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
11373 /* ??0?$basic_iostream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
11374 DEFINE_THISCALL_WRAPPER(basic_iostream_short_ctor
, 12)
11375 basic_iostream_wchar
* __thiscall
basic_iostream_short_ctor(basic_iostream_wchar
*this,
11376 basic_streambuf_wchar
*strbuf
, MSVCP_bool virt_init
)
11378 basic_iostream_wchar_ctor(this, strbuf
, virt_init
);
11379 basic_istream_wchar_get_basic_ios(&this->base1
)->base
.vtable
= &MSVCP_basic_iostream_short_vtable
;
11383 /* ??1?$basic_iostream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
11384 /* ??1?$basic_iostream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
11385 /* ??1?$basic_iostream@GU?$char_traits@G@std@@@std@@UAE@XZ */
11386 /* ??1?$basic_iostream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
11387 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_dtor
, 4)
11388 void __thiscall
basic_iostream_wchar_dtor(basic_ios_wchar
*base
)
11390 basic_iostream_wchar
*this = basic_iostream_wchar_from_basic_ios(base
);
11392 TRACE("(%p)\n", this);
11393 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(&this->base2
));
11394 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(&this->base1
));
11397 /* ??_D?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
11398 /* ??_D?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
11399 /* ??_D?$basic_iostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
11400 /* ??_D?$basic_iostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
11401 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_vbase_dtor
, 4)
11402 void __thiscall
basic_iostream_wchar_vbase_dtor(basic_iostream_wchar
*this)
11404 basic_ios_wchar
*base
= basic_iostream_wchar_to_basic_ios(this);
11406 TRACE("(%p)\n", this);
11408 basic_iostream_wchar_dtor(base
);
11409 basic_ios_wchar_dtor(base
);
11412 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_vector_dtor
, 8)
11413 basic_iostream_wchar
* __thiscall
basic_iostream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
11415 basic_iostream_wchar
*this = basic_iostream_wchar_from_basic_ios(base
);
11417 TRACE("(%p %x)\n", this, flags
);
11420 /* we have an array, with the number of elements stored before the first object */
11421 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11423 for(i
=*ptr
-1; i
>=0; i
--)
11424 basic_iostream_wchar_vbase_dtor(this+i
);
11425 MSVCRT_operator_delete(ptr
);
11427 basic_iostream_wchar_vbase_dtor(this);
11429 MSVCRT_operator_delete(this);
11435 /* ?swap@?$basic_iostream@GU?$char_traits@G@std@@@std@@QAEXAAV12@@Z */
11436 /* ?swap@?$basic_iostream@GU?$char_traits@G@std@@@std@@QEAAXAEAV12@@Z */
11437 /* ?swap@?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QAEXAAV12@@Z */
11438 /* ?swap@?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QEAAXAEAV12@@Z */
11439 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_swap
, 8)
11440 void __thiscall
basic_iostream_wchar_swap(basic_iostream_wchar
*this, basic_iostream_wchar
*r
)
11442 TRACE("(%p %p)\n", this, r
);
11447 basic_ios_wchar_swap(basic_istream_wchar_get_basic_ios(&this->base1
),
11448 basic_istream_wchar_get_basic_ios(&r
->base1
));
11451 static inline basic_ios_char
* basic_ofstream_char_to_basic_ios(basic_ofstream_char
*ptr
)
11453 return (basic_ios_char
*)((char*)ptr
+basic_ofstream_char_vbtable
[1]);
11456 static inline basic_ofstream_char
* basic_ofstream_char_from_basic_ios(basic_ios_char
*ptr
)
11458 return (basic_ofstream_char
*)((char*)ptr
-basic_ofstream_char_vbtable
[1]);
11461 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@XZ */
11462 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@XZ */
11463 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_ctor
, 8)
11464 basic_ofstream_char
* __thiscall
basic_ofstream_char_ctor(basic_ofstream_char
*this, MSVCP_bool virt_init
)
11466 basic_ios_char
*basic_ios
;
11468 TRACE("(%p %d)\n", this, virt_init
);
11471 this->base
.vbtable
= basic_ofstream_char_vbtable
;
11472 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11473 INIT_BASIC_IOS_VTORDISP(basic_ios
);
11474 basic_ios_char_ctor(basic_ios
);
11476 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11479 basic_filebuf_char_ctor(&this->filebuf
);
11480 basic_ostream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
11481 basic_ios
->base
.vtable
= &MSVCP_basic_ofstream_char_vtable
;
11485 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
11486 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11487 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_ctor_file
, 12)
11488 basic_ofstream_char
* __thiscall
basic_ofstream_char_ctor_file(
11489 basic_ofstream_char
*this, FILE *file
, MSVCP_bool virt_init
)
11491 basic_ios_char
*basic_ios
;
11493 TRACE("(%p %p %d)\n", this, file
, virt_init
);
11496 this->base
.vbtable
= basic_ofstream_char_vbtable
;
11497 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11498 INIT_BASIC_IOS_VTORDISP(basic_ios
);
11499 basic_ios_char_ctor(basic_ios
);
11501 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11504 basic_filebuf_char_ctor_file(&this->filebuf
, file
);
11505 basic_ostream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
11506 basic_ios
->base
.vtable
= &MSVCP_basic_ofstream_char_vtable
;
11510 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@PBDHH@Z */
11511 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDHH@Z */
11512 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_ctor_name
, 20)
11513 basic_ofstream_char
* __thiscall
basic_ofstream_char_ctor_name(basic_ofstream_char
*this,
11514 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11516 TRACE("(%p %s %d %d %d)\n", this, name
, mode
, prot
, virt_init
);
11518 basic_ofstream_char_ctor(this, virt_init
);
11520 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
11521 basic_ios_char
*basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11522 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11527 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@PBGHH@Z */
11528 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@PEBGHH@Z */
11529 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@PB_WHH@Z */
11530 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@PEB_WHH@Z */
11531 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_ctor_name_wchar
, 20)
11532 basic_ofstream_char
* __thiscall
basic_ofstream_char_ctor_name_wchar(basic_ofstream_char
*this,
11533 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11535 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name
), mode
, prot
, virt_init
);
11537 basic_ofstream_char_ctor(this, virt_init
);
11539 if(!basic_filebuf_char_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
11540 basic_ios_char
*basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11541 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11546 /* ??1?$basic_ofstream@DU?$char_traits@D@std@@@std@@UAE@XZ */
11547 /* ??1?$basic_ofstream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
11548 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_dtor
, 4)
11549 void __thiscall
basic_ofstream_char_dtor(basic_ios_char
*base
)
11551 basic_ofstream_char
*this = basic_ofstream_char_from_basic_ios(base
);
11553 TRACE("(%p)\n", this);
11555 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&this->base
));
11556 basic_filebuf_char_dtor(&this->filebuf
);
11559 /* ??_D?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
11560 /* ??_D?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
11561 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_vbase_dtor
, 4)
11562 void __thiscall
basic_ofstream_char_vbase_dtor(basic_ofstream_char
*this)
11564 basic_ios_char
*base
= basic_ofstream_char_to_basic_ios(this);
11566 TRACE("(%p)\n", this);
11568 basic_ofstream_char_dtor(base
);
11569 basic_ios_char_dtor(base
);
11572 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_vector_dtor
, 8)
11573 basic_ofstream_char
* __thiscall
basic_ofstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
11575 basic_ofstream_char
*this = basic_ofstream_char_from_basic_ios(base
);
11577 TRACE("(%p %x)\n", this, flags
);
11580 /* we have an array, with the number of elements stored before the first object */
11581 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11583 for(i
=*ptr
-1; i
>=0; i
--)
11584 basic_ofstream_char_vbase_dtor(this+i
);
11585 MSVCRT_operator_delete(ptr
);
11587 basic_ofstream_char_vbase_dtor(this);
11589 MSVCRT_operator_delete(this);
11595 /* ?close@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
11596 /* ?close@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
11597 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_close
, 4)
11598 void __thiscall
basic_ofstream_char_close(basic_ofstream_char
*this)
11600 TRACE("(%p)\n", this);
11602 if(!basic_filebuf_char_close(&this->filebuf
)) {
11603 basic_ios_char
*basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11604 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11608 /* ?is_open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QBE_NXZ */
11609 /* ?is_open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
11610 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_is_open
, 4)
11611 MSVCP_bool __thiscall
basic_ofstream_char_is_open(const basic_ofstream_char
*this)
11613 TRACE("(%p)\n", this);
11614 return basic_filebuf_char_is_open(&this->filebuf
);
11617 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPBDHH@Z */
11618 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDHH@Z */
11619 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_open
, 16)
11620 void __thiscall
basic_ofstream_char_open(basic_ofstream_char
*this,
11621 const char *name
, int mode
, int prot
)
11623 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
11625 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
11626 basic_ios_char
*basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11627 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11631 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPBDI@Z */
11632 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDI@Z */
11633 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_open_old
, 12)
11634 void __thiscall
basic_ofstream_char_open_old(basic_ofstream_char
*this,
11635 const char *name
, unsigned int mode
)
11637 basic_ofstream_char_open(this, name
, mode
, _SH_DENYNO
);
11640 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPBGHH@Z */
11641 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGHH@Z */
11642 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPB_WHH@Z */
11643 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WHH@Z */
11644 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_open_wchar
, 16)
11645 void __thiscall
basic_ofstream_char_open_wchar(basic_ofstream_char
*this,
11646 const wchar_t *name
, int mode
, int prot
)
11648 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
11650 if(!basic_filebuf_char_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
11651 basic_ios_char
*basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11652 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11656 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPBGI@Z */
11657 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGI@Z */
11658 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPB_WI@Z */
11659 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WI@Z */
11660 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_open_wchar_old
, 12)
11661 void __thiscall
basic_ofstream_char_open_wchar_old(basic_ofstream_char
*this,
11662 const wchar_t *name
, unsigned int mode
)
11664 basic_ofstream_char_open_wchar(this, name
, mode
, _SH_DENYNO
);
11667 /* ?rdbuf@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
11668 /* ?rdbuf@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
11669 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_rdbuf
, 4)
11670 basic_filebuf_char
* __thiscall
basic_ofstream_char_rdbuf(const basic_ofstream_char
*this)
11672 TRACE("(%p)\n", this);
11673 return (basic_filebuf_char
*)&this->filebuf
;
11676 static inline basic_ios_wchar
* basic_ofstream_wchar_to_basic_ios(basic_ofstream_wchar
*ptr
)
11678 return (basic_ios_wchar
*)((char*)ptr
+basic_ofstream_wchar_vbtable
[1]);
11681 static inline basic_ofstream_wchar
* basic_ofstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
11683 return (basic_ofstream_wchar
*)((char*)ptr
-basic_ofstream_wchar_vbtable
[1]);
11686 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@XZ */
11687 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@XZ */
11688 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_ctor
, 8)
11689 basic_ofstream_wchar
* __thiscall
basic_ofstream_wchar_ctor(basic_ofstream_wchar
*this, MSVCP_bool virt_init
)
11691 basic_ios_wchar
*basic_ios
;
11693 TRACE("(%p %d)\n", this, virt_init
);
11696 this->base
.vbtable
= basic_ofstream_wchar_vbtable
;
11697 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11698 INIT_BASIC_IOS_VTORDISP(basic_ios
);
11699 basic_ios_wchar_ctor(basic_ios
);
11701 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11704 basic_filebuf_wchar_ctor(&this->filebuf
);
11705 basic_ostream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
11706 basic_ios
->base
.vtable
= &MSVCP_basic_ofstream_wchar_vtable
;
11710 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@XZ */
11711 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@XZ */
11712 DEFINE_THISCALL_WRAPPER(basic_ofstream_short_ctor
, 8)
11713 basic_ofstream_wchar
* __thiscall
basic_ofstream_short_ctor(basic_ofstream_wchar
*this, MSVCP_bool virt_init
)
11715 basic_ofstream_wchar_ctor(this, virt_init
);
11716 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ofstream_short_vtable
;
11720 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
11721 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11722 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_ctor_file
, 12)
11723 basic_ofstream_wchar
* __thiscall
basic_ofstream_wchar_ctor_file(
11724 basic_ofstream_wchar
*this, FILE *file
, MSVCP_bool virt_init
)
11726 basic_ios_wchar
*basic_ios
;
11728 TRACE("(%p %p %d)\n", this, file
, virt_init
);
11731 this->base
.vbtable
= basic_ofstream_wchar_vbtable
;
11732 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11733 INIT_BASIC_IOS_VTORDISP(basic_ios
);
11734 basic_ios_wchar_ctor(basic_ios
);
11736 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11739 basic_filebuf_wchar_ctor_file(&this->filebuf
, file
);
11740 basic_ostream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
11741 basic_ios
->base
.vtable
= &MSVCP_basic_ofstream_wchar_vtable
;
11745 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
11746 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11747 DEFINE_THISCALL_WRAPPER(basic_ofstream_short_ctor_file
, 12)
11748 basic_ofstream_wchar
* __thiscall
basic_ofstream_short_ctor_file(
11749 basic_ofstream_wchar
*this, FILE *file
, MSVCP_bool virt_init
)
11751 basic_ofstream_wchar_ctor_file(this, file
, virt_init
);
11752 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ofstream_short_vtable
;
11756 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@PBDHH@Z */
11757 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBDHH@Z */
11758 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_ctor_name
, 20)
11759 basic_ofstream_wchar
* __thiscall
basic_ofstream_wchar_ctor_name(basic_ofstream_wchar
*this,
11760 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11762 TRACE("(%p %s %d %d %d)\n", this, name
, mode
, prot
, virt_init
);
11764 basic_ofstream_wchar_ctor(this, virt_init
);
11766 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
11767 basic_ios_wchar
*basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11768 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11773 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@PBDHH@Z */
11774 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@PEBDHH@Z */
11775 DEFINE_THISCALL_WRAPPER(basic_ofstream_short_ctor_name
, 20)
11776 basic_ofstream_wchar
* __thiscall
basic_ofstream_short_ctor_name(basic_ofstream_wchar
*this,
11777 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11779 basic_ofstream_wchar_ctor_name(this, name
, mode
, prot
, virt_init
);
11780 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ofstream_short_vtable
;
11784 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@PBGHH@Z */
11785 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBGHH@Z */
11786 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@PB_WHH@Z */
11787 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEB_WHH@Z */
11788 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_ctor_name_wchar
, 20)
11789 basic_ofstream_wchar
* __thiscall
basic_ofstream_wchar_ctor_name_wchar(basic_ofstream_wchar
*this,
11790 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11792 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name
), mode
, prot
, virt_init
);
11794 basic_ofstream_wchar_ctor(this, virt_init
);
11796 if(!basic_filebuf_wchar_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
11797 basic_ios_wchar
*basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11798 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11803 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@PBGHH@Z */
11804 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@PEBGHH@Z */
11805 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@PB_WHH@Z */
11806 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@PEB_WHH@Z */
11807 DEFINE_THISCALL_WRAPPER(basic_ofstream_short_ctor_name_wchar
, 20)
11808 basic_ofstream_wchar
* __thiscall
basic_ofstream_short_ctor_name_wchar(basic_ofstream_wchar
*this,
11809 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11811 basic_ofstream_wchar_ctor_name_wchar(this, name
, mode
, prot
, virt_init
);
11812 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ofstream_short_vtable
;
11816 /* ??1?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
11817 /* ??1?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
11818 /* ??1?$basic_ofstream@GU?$char_traits@G@std@@@std@@UAE@XZ */
11819 /* ??1?$basic_ofstream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
11820 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_dtor
, 4)
11821 void __thiscall
basic_ofstream_wchar_dtor(basic_ios_wchar
*base
)
11823 basic_ofstream_wchar
*this = basic_ofstream_wchar_from_basic_ios(base
);
11825 TRACE("(%p)\n", this);
11827 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(&this->base
));
11828 basic_filebuf_wchar_dtor(&this->filebuf
);
11831 /* ??_D?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
11832 /* ??_D?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
11833 /* ??_D?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
11834 /* ??_D?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
11835 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_vbase_dtor
, 4)
11836 void __thiscall
basic_ofstream_wchar_vbase_dtor(basic_ofstream_wchar
*this)
11838 basic_ios_wchar
*base
= basic_ofstream_wchar_to_basic_ios(this);
11840 TRACE("(%p)\n", this);
11842 basic_ofstream_wchar_dtor(base
);
11843 basic_ios_wchar_dtor(base
);
11846 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_vector_dtor
, 8)
11847 basic_ofstream_wchar
* __thiscall
basic_ofstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
11849 basic_ofstream_wchar
*this = basic_ofstream_wchar_from_basic_ios(base
);
11851 TRACE("(%p %x)\n", this, flags
);
11854 /* we have an array, with the number of elements stored before the first object */
11855 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11857 for(i
=*ptr
-1; i
>=0; i
--)
11858 basic_ofstream_wchar_vbase_dtor(this+i
);
11859 MSVCRT_operator_delete(ptr
);
11861 basic_ofstream_wchar_vbase_dtor(this);
11863 MSVCRT_operator_delete(this);
11869 /* ?close@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
11870 /* ?close@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
11871 /* ?close@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
11872 /* ?close@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
11873 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_close
, 4)
11874 void __thiscall
basic_ofstream_wchar_close(basic_ofstream_wchar
*this)
11876 TRACE("(%p)\n", this);
11878 if(!basic_filebuf_wchar_close(&this->filebuf
)) {
11879 basic_ios_wchar
*basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11880 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11884 /* ?is_open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
11885 /* ?is_open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
11886 /* ?is_open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QBE_NXZ */
11887 /* ?is_open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
11888 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_is_open
, 4)
11889 MSVCP_bool __thiscall
basic_ofstream_wchar_is_open(const basic_ofstream_wchar
*this)
11891 TRACE("(%p)\n", this);
11892 return basic_filebuf_wchar_is_open(&this->filebuf
);
11895 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDHH@Z */
11896 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDHH@Z */
11897 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPBDHH@Z */
11898 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDHH@Z */
11899 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_open
, 16)
11900 void __thiscall
basic_ofstream_wchar_open(basic_ofstream_wchar
*this,
11901 const char *name
, int mode
, int prot
)
11903 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
11905 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
11906 basic_ios_wchar
*basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11907 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11911 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDI@Z */
11912 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDI@Z */
11913 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPBDI@Z */
11914 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDI@Z */
11915 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_open_old
, 12)
11916 void __thiscall
basic_ofstream_wchar_open_old(basic_ofstream_wchar
*this,
11917 const char *name
, unsigned int mode
)
11919 basic_ofstream_wchar_open(this, name
, mode
, _SH_DENYNO
);
11922 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGHH@Z */
11923 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGHH@Z */
11924 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WHH@Z */
11925 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WHH@Z */
11926 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPBGHH@Z */
11927 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGHH@Z */
11928 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPB_WHH@Z */
11929 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WHH@Z */
11930 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_open_wchar
, 16)
11931 void __thiscall
basic_ofstream_wchar_open_wchar(basic_ofstream_wchar
*this,
11932 const wchar_t *name
, int mode
, int prot
)
11934 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
11936 if(!basic_filebuf_wchar_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
11937 basic_ios_wchar
*basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11938 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11942 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGI@Z */
11943 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGI@Z */
11944 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WI@Z */
11945 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WI@Z */
11946 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPBGI@Z */
11947 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGI@Z */
11948 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPB_WI@Z */
11949 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WI@Z */
11950 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_open_wchar_old
, 12)
11951 void __thiscall
basic_ofstream_wchar_open_wchar_old(basic_ofstream_wchar
*this,
11952 const wchar_t *name
, unsigned int mode
)
11954 basic_ofstream_wchar_open_wchar(this, name
, mode
, _SH_DENYNO
);
11957 /* ?rdbuf@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
11958 /* ?rdbuf@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
11959 /* ?rdbuf@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
11960 /* ?rdbuf@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
11961 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_rdbuf
, 4)
11962 basic_filebuf_wchar
* __thiscall
basic_ofstream_wchar_rdbuf(const basic_ofstream_wchar
*this)
11964 TRACE("(%p)\n", this);
11965 return (basic_filebuf_wchar
*)&this->filebuf
;
11968 static inline basic_ios_char
* basic_ifstream_char_to_basic_ios(basic_ifstream_char
*ptr
)
11970 return (basic_ios_char
*)((char*)ptr
+basic_ifstream_char_vbtable
[1]);
11973 static inline basic_ifstream_char
* basic_ifstream_char_from_basic_ios(basic_ios_char
*ptr
)
11975 return (basic_ifstream_char
*)((char*)ptr
-basic_ifstream_char_vbtable
[1]);
11978 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@XZ */
11979 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@XZ */
11980 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor
, 8)
11981 basic_ifstream_char
* __thiscall
basic_ifstream_char_ctor(basic_ifstream_char
*this, MSVCP_bool virt_init
)
11983 basic_ios_char
*basic_ios
;
11985 TRACE("(%p %d)\n", this, virt_init
);
11988 this->base
.vbtable
= basic_ifstream_char_vbtable
;
11989 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11990 INIT_BASIC_IOS_VTORDISP(basic_ios
);
11991 basic_ios_char_ctor(basic_ios
);
11993 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11996 basic_filebuf_char_ctor(&this->filebuf
);
11997 basic_istream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
11998 basic_ios
->base
.vtable
= &MSVCP_basic_ifstream_char_vtable
;
12002 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
12003 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
12004 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor_file
, 12)
12005 basic_ifstream_char
* __thiscall
basic_ifstream_char_ctor_file(
12006 basic_ifstream_char
*this, FILE *file
, MSVCP_bool virt_init
)
12008 basic_ios_char
*basic_ios
;
12010 TRACE("(%p %p %d)\n", this, file
, virt_init
);
12013 this->base
.vbtable
= basic_ifstream_char_vbtable
;
12014 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
12015 INIT_BASIC_IOS_VTORDISP(basic_ios
);
12016 basic_ios_char_ctor(basic_ios
);
12018 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
12021 basic_filebuf_char_ctor_file(&this->filebuf
, file
);
12022 basic_istream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
12023 basic_ios
->base
.vtable
= &MSVCP_basic_ifstream_char_vtable
;
12027 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PBDHH@Z */
12028 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDHH@Z */
12029 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor_name
, 20)
12030 basic_ifstream_char
* __thiscall
basic_ifstream_char_ctor_name(basic_ifstream_char
*this,
12031 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12033 TRACE("(%p %s %d %d %d)\n", this, name
, mode
, prot
, virt_init
);
12035 basic_ifstream_char_ctor(this, virt_init
);
12037 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
12038 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
12039 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
12044 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PBDH@Z */
12045 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDH@Z */
12046 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor_name_old
, 16)
12047 basic_ifstream_char
* __thiscall
basic_ifstream_char_ctor_name_old(basic_ifstream_char
*this,
12048 const char *name
, int mode
, MSVCP_bool virt_init
)
12050 return basic_ifstream_char_ctor_name(this, name
, mode
, _SH_DENYNO
, virt_init
);
12053 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PBGHH@Z */
12054 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEBGHH@Z */
12055 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PB_WHH@Z */
12056 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEB_WHH@Z */
12057 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor_name_wchar
, 20)
12058 basic_ifstream_char
* __thiscall
basic_ifstream_char_ctor_name_wchar(basic_ifstream_char
*this,
12059 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12061 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name
), mode
, prot
, virt_init
);
12063 basic_ifstream_char_ctor(this, virt_init
);
12065 if(!basic_filebuf_char_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
12066 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
12067 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
12072 /* ??1?$basic_ifstream@DU?$char_traits@D@std@@@std@@UAE@XZ */
12073 /* ??1?$basic_ifstream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
12074 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_dtor
, 4)
12075 void __thiscall
basic_ifstream_char_dtor(basic_ios_char
*base
)
12077 basic_ifstream_char
*this = basic_ifstream_char_from_basic_ios(base
);
12079 TRACE("(%p)\n", this);
12081 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&this->base
));
12082 basic_filebuf_char_dtor(&this->filebuf
);
12085 /* ??_D?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
12086 /* ??_D?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
12087 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_vbase_dtor
, 4)
12088 void __thiscall
basic_ifstream_char_vbase_dtor(basic_ifstream_char
*this)
12090 basic_ios_char
*base
= basic_ifstream_char_to_basic_ios(this);
12092 TRACE("(%p)\n", this);
12094 basic_ifstream_char_dtor(base
);
12095 basic_ios_char_dtor(base
);
12098 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_vector_dtor
, 8)
12099 basic_ifstream_char
* __thiscall
basic_ifstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
12101 basic_ifstream_char
*this = basic_ifstream_char_from_basic_ios(base
);
12103 TRACE("(%p %x)\n", this, flags
);
12106 /* we have an array, with the number of elements stored before the first object */
12107 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
12109 for(i
=*ptr
-1; i
>=0; i
--)
12110 basic_ifstream_char_vbase_dtor(this+i
);
12111 MSVCRT_operator_delete(ptr
);
12113 basic_ifstream_char_vbase_dtor(this);
12115 MSVCRT_operator_delete(this);
12121 /* ?close@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
12122 /* ?close@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
12123 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_close
, 4)
12124 void __thiscall
basic_ifstream_char_close(basic_ifstream_char
*this)
12126 TRACE("(%p)\n", this);
12128 if(!basic_filebuf_char_close(&this->filebuf
)) {
12129 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
12130 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
12134 /* ?is_open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QBE_NXZ */
12135 /* ?is_open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
12136 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_is_open
, 4)
12137 MSVCP_bool __thiscall
basic_ifstream_char_is_open(const basic_ifstream_char
*this)
12139 TRACE("(%p)\n", this);
12140 return basic_filebuf_char_is_open(&this->filebuf
);
12143 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBDHH@Z */
12144 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDHH@Z */
12145 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_open
, 16)
12146 void __thiscall
basic_ifstream_char_open(basic_ifstream_char
*this,
12147 const char *name
, int mode
, int prot
)
12149 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
12151 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
12152 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
12153 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
12157 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBDI@Z */
12158 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDI@Z */
12159 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_open_old
, 12)
12160 void __thiscall
basic_ifstream_char_open_old(basic_ifstream_char
*this,
12161 const char *name
, unsigned int mode
)
12163 basic_ifstream_char_open(this, name
, mode
, _SH_DENYNO
);
12166 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBGHH@Z */
12167 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGHH@Z */
12168 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPB_WHH@Z */
12169 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WHH@Z */
12170 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_open_wchar
, 16)
12171 void __thiscall
basic_ifstream_char_open_wchar(basic_ifstream_char
*this,
12172 const wchar_t *name
, int mode
, int prot
)
12174 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
12176 if(!basic_filebuf_char_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
12177 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
12178 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
12182 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBGI@Z */
12183 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGI@Z */
12184 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPB_WI@Z */
12185 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WI@Z */
12186 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_open_wchar_old
, 12)
12187 void __thiscall
basic_ifstream_char_open_wchar_old(basic_ifstream_char
*this,
12188 const wchar_t *name
, unsigned int mode
)
12190 basic_ifstream_char_open_wchar(this, name
, mode
, _SH_DENYNO
);
12193 /* ?rdbuf@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
12194 /* ?rdbuf@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
12195 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_rdbuf
, 4)
12196 basic_filebuf_char
* __thiscall
basic_ifstream_char_rdbuf(const basic_ifstream_char
*this)
12198 TRACE("(%p)\n", this);
12199 return (basic_filebuf_char
*)&this->filebuf
;
12202 static inline basic_ios_wchar
* basic_ifstream_wchar_to_basic_ios(basic_ifstream_wchar
*ptr
)
12204 return (basic_ios_wchar
*)((char*)ptr
+basic_ifstream_wchar_vbtable
[1]);
12207 static inline basic_ifstream_wchar
* basic_ifstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
12209 return (basic_ifstream_wchar
*)((char*)ptr
-basic_ifstream_wchar_vbtable
[1]);
12212 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@XZ */
12213 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@XZ */
12214 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_ctor
, 8)
12215 basic_ifstream_wchar
* __thiscall
basic_ifstream_wchar_ctor(basic_ifstream_wchar
*this, MSVCP_bool virt_init
)
12217 basic_ios_wchar
*basic_ios
;
12219 TRACE("(%p %d)\n", this, virt_init
);
12222 this->base
.vbtable
= basic_ifstream_wchar_vbtable
;
12223 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12224 INIT_BASIC_IOS_VTORDISP(basic_ios
);
12225 basic_ios_wchar_ctor(basic_ios
);
12227 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12230 basic_filebuf_wchar_ctor(&this->filebuf
);
12231 basic_istream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
12232 basic_ios
->base
.vtable
= &MSVCP_basic_ifstream_wchar_vtable
;
12236 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@XZ */
12237 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@XZ */
12238 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor
, 8)
12239 basic_ifstream_wchar
* __thiscall
basic_ifstream_short_ctor(basic_ifstream_wchar
*this, MSVCP_bool virt_init
)
12241 basic_ifstream_wchar_ctor(this, virt_init
);
12242 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ifstream_short_vtable
;
12246 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
12247 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
12248 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_ctor_file
, 12)
12249 basic_ifstream_wchar
* __thiscall
basic_ifstream_wchar_ctor_file(
12250 basic_ifstream_wchar
*this, FILE *file
, MSVCP_bool virt_init
)
12252 basic_ios_wchar
*basic_ios
;
12254 TRACE("(%p %p %d)\n", this, file
, virt_init
);
12257 this->base
.vbtable
= basic_ifstream_wchar_vbtable
;
12258 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12259 INIT_BASIC_IOS_VTORDISP(basic_ios
);
12260 basic_ios_wchar_ctor(basic_ios
);
12262 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12265 basic_filebuf_wchar_ctor_file(&this->filebuf
, file
);
12266 basic_istream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
12267 basic_ios
->base
.vtable
= &MSVCP_basic_ifstream_wchar_vtable
;
12271 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
12272 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
12273 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor_file
, 12)
12274 basic_ifstream_wchar
* __thiscall
basic_ifstream_short_ctor_file(
12275 basic_ifstream_wchar
*this, FILE *file
, MSVCP_bool virt_init
)
12277 basic_ifstream_wchar_ctor_file(this, file
, virt_init
);
12278 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ifstream_short_vtable
;
12282 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@PBDHH@Z */
12283 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBDHH@Z */
12284 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_ctor_name
, 20)
12285 basic_ifstream_wchar
* __thiscall
basic_ifstream_wchar_ctor_name(basic_ifstream_wchar
*this,
12286 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12288 TRACE("(%p %s %d %d %d)\n", this, name
, mode
, prot
, virt_init
);
12290 basic_ifstream_wchar_ctor(this, virt_init
);
12292 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
12293 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12294 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12299 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@PBDHH@Z */
12300 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@PEBDHH@Z */
12301 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor_name
, 20)
12302 basic_ifstream_wchar
* __thiscall
basic_ifstream_short_ctor_name(basic_ifstream_wchar
*this,
12303 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12305 basic_ifstream_wchar_ctor_name(this, name
, mode
, prot
, virt_init
);
12306 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ifstream_short_vtable
;
12310 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@PBDH@Z */
12311 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBDH@Z */
12312 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_ctor_name_old
, 16)
12313 basic_ifstream_wchar
* __thiscall
basic_ifstream_wchar_ctor_name_old(basic_ifstream_wchar
*this,
12314 const char *name
, int mode
, MSVCP_bool virt_init
)
12316 return basic_ifstream_wchar_ctor_name(this, name
, mode
, _SH_DENYNO
, virt_init
);
12319 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@PBDH@Z */
12320 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@PEBDH@Z */
12321 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor_name_old
, 16)
12322 basic_ifstream_wchar
* __thiscall
basic_ifstream_short_ctor_name_old(basic_ifstream_wchar
*this,
12323 const char *name
, int mode
, MSVCP_bool virt_init
)
12325 return basic_ifstream_short_ctor_name(this, name
, mode
, _SH_DENYNO
, virt_init
);
12328 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@PBGHH@Z */
12329 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBGHH@Z */
12330 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@PB_WHH@Z */
12331 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEB_WHH@Z */
12332 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_ctor_name_wchar
, 20)
12333 basic_ifstream_wchar
* __thiscall
basic_ifstream_wchar_ctor_name_wchar(basic_ifstream_wchar
*this,
12334 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12336 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name
), mode
, prot
, virt_init
);
12338 basic_ifstream_wchar_ctor(this, virt_init
);
12340 if(!basic_filebuf_wchar_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
12341 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12342 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12347 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@PBGHH@Z */
12348 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@PEBGHH@Z */
12349 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@PB_WHH@Z */
12350 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@PEB_WHH@Z */
12351 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor_name_wchar
, 20)
12352 basic_ifstream_wchar
* __thiscall
basic_ifstream_short_ctor_name_wchar(basic_ifstream_wchar
*this,
12353 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12355 basic_ifstream_wchar_ctor_name_wchar(this, name
, mode
, prot
, virt_init
);
12356 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ifstream_short_vtable
;
12360 /* ??1?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
12361 /* ??1?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
12362 /* ??1?$basic_ifstream@GU?$char_traits@G@std@@@std@@UAE@XZ */
12363 /* ??1?$basic_ifstream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
12364 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_dtor
, 4)
12365 void __thiscall
basic_ifstream_wchar_dtor(basic_ios_wchar
*base
)
12367 basic_ifstream_wchar
*this = basic_ifstream_wchar_from_basic_ios(base
);
12369 TRACE("(%p)\n", this);
12371 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(&this->base
));
12372 basic_filebuf_wchar_dtor(&this->filebuf
);
12375 /* ??_D?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
12376 /* ??_D?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
12377 /* ??_D?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
12378 /* ??_D?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
12379 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_vbase_dtor
, 4)
12380 void __thiscall
basic_ifstream_wchar_vbase_dtor(basic_ifstream_wchar
*this)
12382 basic_ios_wchar
*base
= basic_ifstream_wchar_to_basic_ios(this);
12384 TRACE("(%p)\n", this);
12386 basic_ifstream_wchar_dtor(base
);
12387 basic_ios_wchar_dtor(base
);
12390 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_vector_dtor
, 8)
12391 basic_ifstream_wchar
* __thiscall
basic_ifstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
12393 basic_ifstream_wchar
*this = basic_ifstream_wchar_from_basic_ios(base
);
12395 TRACE("(%p %x)\n", this, flags
);
12398 /* we have an array, with the number of elements stored before the first object */
12399 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
12401 for(i
=*ptr
-1; i
>=0; i
--)
12402 basic_ifstream_wchar_vbase_dtor(this+i
);
12403 MSVCRT_operator_delete(ptr
);
12405 basic_ifstream_wchar_vbase_dtor(this);
12407 MSVCRT_operator_delete(this);
12413 /* ?close@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
12414 /* ?close@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
12415 /* ?close@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
12416 /* ?close@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
12417 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_close
, 4)
12418 void __thiscall
basic_ifstream_wchar_close(basic_ifstream_wchar
*this)
12420 TRACE("(%p)\n", this);
12422 if(!basic_filebuf_wchar_close(&this->filebuf
)) {
12423 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12424 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12428 /* ?is_open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
12429 /* ?is_open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
12430 /* ?is_open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QBE_NXZ */
12431 /* ?is_open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
12432 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_is_open
, 4)
12433 MSVCP_bool __thiscall
basic_ifstream_wchar_is_open(const basic_ifstream_wchar
*this)
12435 TRACE("(%p)\n", this);
12436 return basic_filebuf_wchar_is_open(&this->filebuf
);
12439 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDHH@Z */
12440 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDHH@Z */
12441 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPBDHH@Z */
12442 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDHH@Z */
12443 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_open
, 16)
12444 void __thiscall
basic_ifstream_wchar_open(basic_ifstream_wchar
*this,
12445 const char *name
, int mode
, int prot
)
12447 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
12449 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
12450 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12451 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12455 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDI@Z */
12456 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDI@Z */
12457 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPBDI@Z */
12458 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDI@Z */
12459 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_open_old
, 12)
12460 void __thiscall
basic_ifstream_wchar_open_old(basic_ifstream_wchar
*this,
12461 const char *name
, unsigned int mode
)
12463 basic_ifstream_wchar_open(this, name
, mode
, _SH_DENYNO
);
12466 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGHH@Z */
12467 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGHH@Z */
12468 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WHH@Z */
12469 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WHH@Z */
12470 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPBGHH@Z */
12471 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGHH@Z */
12472 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPB_WHH@Z */
12473 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WHH@Z */
12474 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_open_wchar
, 16)
12475 void __thiscall
basic_ifstream_wchar_open_wchar(basic_ifstream_wchar
*this,
12476 const wchar_t *name
, int mode
, int prot
)
12478 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
12480 if(!basic_filebuf_wchar_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
12481 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12482 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12486 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGI@Z */
12487 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGI@Z */
12488 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WI@Z */
12489 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WI@Z */
12490 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPBGI@Z */
12491 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGI@Z */
12492 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPB_WI@Z */
12493 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WI@Z */
12494 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_open_wchar_old
, 12)
12495 void __thiscall
basic_ifstream_wchar_open_wchar_old(basic_ifstream_wchar
*this,
12496 const wchar_t *name
, unsigned int mode
)
12498 basic_ifstream_wchar_open_wchar(this, name
, mode
, _SH_DENYNO
);
12501 /* ?rdbuf@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
12502 /* ?rdbuf@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
12503 /* ?rdbuf@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
12504 /* ?rdbuf@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
12505 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_rdbuf
, 4)
12506 basic_filebuf_wchar
* __thiscall
basic_ifstream_wchar_rdbuf(const basic_ifstream_wchar
*this)
12508 TRACE("(%p)\n", this);
12509 return (basic_filebuf_wchar
*)&this->filebuf
;
12512 static inline basic_ios_char
* basic_fstream_char_to_basic_ios(basic_fstream_char
*ptr
)
12514 return (basic_ios_char
*)((char*)ptr
+basic_fstream_char_vbtable1
[1]);
12517 static inline basic_fstream_char
* basic_fstream_char_from_basic_ios(basic_ios_char
*ptr
)
12519 return (basic_fstream_char
*)((char*)ptr
-basic_fstream_char_vbtable1
[1]);
12522 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@XZ */
12523 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@XZ */
12524 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor
, 8)
12525 basic_fstream_char
* __thiscall
basic_fstream_char_ctor(basic_fstream_char
*this, MSVCP_bool virt_init
)
12527 basic_ios_char
*basic_ios
;
12529 TRACE("(%p %d)\n", this, virt_init
);
12532 this->base
.base1
.vbtable
= basic_fstream_char_vbtable1
;
12533 this->base
.base2
.vbtable
= basic_fstream_char_vbtable2
;
12534 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12535 INIT_BASIC_IOS_VTORDISP(basic_ios
);
12536 basic_ios_char_ctor(basic_ios
);
12538 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12541 basic_filebuf_char_ctor(&this->filebuf
);
12542 basic_iostream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
);
12543 basic_ios
->base
.vtable
= &MSVCP_basic_fstream_char_vtable
;
12547 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
12548 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
12549 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor_file
, 12)
12550 basic_fstream_char
* __thiscall
basic_fstream_char_ctor_file(basic_fstream_char
*this,
12551 FILE *file
, MSVCP_bool virt_init
)
12553 basic_ios_char
*basic_ios
;
12555 TRACE("(%p %p %d)\n", this, file
, virt_init
);
12558 this->base
.base1
.vbtable
= basic_fstream_char_vbtable1
;
12559 this->base
.base2
.vbtable
= basic_fstream_char_vbtable2
;
12560 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12561 INIT_BASIC_IOS_VTORDISP(basic_ios
);
12562 basic_ios_char_ctor(basic_ios
);
12564 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12567 basic_filebuf_char_ctor_file(&this->filebuf
, file
);
12568 basic_iostream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
);
12569 basic_ios
->base
.vtable
= &MSVCP_basic_fstream_char_vtable
;
12573 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PBDHH@Z */
12574 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDHH@Z */
12575 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor_name
, 20)
12576 basic_fstream_char
* __thiscall
basic_fstream_char_ctor_name(basic_fstream_char
*this,
12577 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12579 TRACE("(%p %s %d %d %d)\n", this, name
, mode
, prot
, virt_init
);
12581 basic_fstream_char_ctor(this, virt_init
);
12583 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
, prot
)) {
12584 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12585 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
12590 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PBDH@Z */
12591 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDH@Z */
12592 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor_name_noprot
, 16)
12593 basic_fstream_char
* __thiscall
basic_fstream_char_ctor_name_noprot(basic_fstream_char
*this,
12594 const char *name
, int mode
, MSVCP_bool virt_init
)
12596 return basic_fstream_char_ctor_name(this, name
, mode
, _SH_DENYNO
, virt_init
);
12599 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PBGHH@Z */
12600 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEBGHH@Z */
12601 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PB_WHH@Z */
12602 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEB_WHH@Z */
12603 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor_name_wchar
, 20)
12604 basic_fstream_char
* __thiscall
basic_fstream_char_ctor_name_wchar(basic_fstream_char
*this,
12605 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12607 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name
), mode
, prot
, virt_init
);
12609 basic_fstream_char_ctor(this, virt_init
);
12611 if(!basic_filebuf_char_open_wchar(&this->filebuf
, name
, mode
, prot
)) {
12612 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12613 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
12618 /* ??1?$basic_fstream@DU?$char_traits@D@std@@@std@@UAE@XZ */
12619 /* ??1?$basic_fstream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
12620 DEFINE_THISCALL_WRAPPER(basic_fstream_char_dtor
, 4)
12621 void __thiscall
basic_fstream_char_dtor(basic_ios_char
*base
)
12623 basic_fstream_char
*this = basic_fstream_char_from_basic_ios(base
);
12625 TRACE("(%p)\n", this);
12627 basic_iostream_char_dtor(basic_iostream_char_to_basic_ios(&this->base
));
12628 basic_filebuf_char_dtor(&this->filebuf
);
12631 /* ??_D?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
12632 /* ??_D?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
12633 DEFINE_THISCALL_WRAPPER(basic_fstream_char_vbase_dtor
, 4)
12634 void __thiscall
basic_fstream_char_vbase_dtor(basic_fstream_char
*this)
12636 basic_ios_char
*base
= basic_fstream_char_to_basic_ios(this);
12638 TRACE("(%p)\n", this);
12640 basic_fstream_char_dtor(base
);
12641 basic_ios_char_dtor(base
);
12644 DEFINE_THISCALL_WRAPPER(basic_fstream_char_vector_dtor
, 8)
12645 basic_fstream_char
* __thiscall
basic_fstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
12647 basic_fstream_char
*this = basic_fstream_char_from_basic_ios(base
);
12649 TRACE("(%p %x)\n", this, flags
);
12652 /* we have an array, with the number of elements stored before the first object */
12653 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
12655 for(i
=*ptr
-1; i
>=0; i
--)
12656 basic_fstream_char_vbase_dtor(this+i
);
12657 MSVCRT_operator_delete(ptr
);
12659 basic_fstream_char_vbase_dtor(this);
12661 MSVCRT_operator_delete(this);
12667 /* ?close@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
12668 /* ?close@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
12669 DEFINE_THISCALL_WRAPPER(basic_fstream_char_close
, 4)
12670 void __thiscall
basic_fstream_char_close(basic_fstream_char
*this)
12672 TRACE("(%p)\n", this);
12674 if(!basic_filebuf_char_close(&this->filebuf
)) {
12675 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12676 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
12680 /* ?is_open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QBE_NXZ */
12681 /* ?is_open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
12682 DEFINE_THISCALL_WRAPPER(basic_fstream_char_is_open
, 4)
12683 MSVCP_bool __thiscall
basic_fstream_char_is_open(const basic_fstream_char
*this)
12685 TRACE("(%p)\n", this);
12686 return basic_filebuf_char_is_open(&this->filebuf
);
12689 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPBDHH@Z */
12690 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDHH@Z */
12691 DEFINE_THISCALL_WRAPPER(basic_fstream_char_open
, 16)
12692 void __thiscall
basic_fstream_char_open(basic_fstream_char
*this,
12693 const char *name
, int mode
, int prot
)
12695 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
12697 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
, prot
)) {
12698 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12699 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
12703 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPBDI@Z */
12704 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDI@Z */
12705 DEFINE_THISCALL_WRAPPER(basic_fstream_char_open_old
, 12)
12706 void __thiscall
basic_fstream_char_open_old(basic_fstream_char
*this,
12707 const char *name
, unsigned int mode
)
12709 basic_fstream_char_open(this, name
, mode
, _SH_DENYNO
);
12712 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPBGHH@Z */
12713 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGHH@Z */
12714 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPB_WHH@Z */
12715 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WHH@Z */
12716 DEFINE_THISCALL_WRAPPER(basic_fstream_char_open_wchar
, 16)
12717 void __thiscall
basic_fstream_char_open_wchar(basic_fstream_char
*this,
12718 const wchar_t *name
, int mode
, int prot
)
12720 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
12722 if(!basic_filebuf_char_open_wchar(&this->filebuf
, name
, mode
, prot
)) {
12723 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12724 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
12728 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPBGI@Z */
12729 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGI@Z */
12730 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPB_WI@Z */
12731 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WI@Z */
12732 DEFINE_THISCALL_WRAPPER(basic_fstream_char_open_wchar_old
, 12)
12733 void __thiscall
basic_fstream_char_open_wchar_old(basic_fstream_char
*this,
12734 const wchar_t *name
, unsigned int mode
)
12736 basic_fstream_char_open_wchar(this, name
, mode
, _SH_DENYNO
);
12739 /* ?rdbuf@?$basic_fstream@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
12740 /* ?rdbuf@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
12741 DEFINE_THISCALL_WRAPPER(basic_fstream_char_rdbuf
, 4)
12742 basic_filebuf_char
* __thiscall
basic_fstream_char_rdbuf(const basic_fstream_char
*this)
12744 TRACE("(%p)\n", this);
12745 return (basic_filebuf_char
*)&this->filebuf
;
12748 static inline basic_ios_wchar
* basic_fstream_wchar_to_basic_ios(basic_fstream_wchar
*ptr
)
12750 return (basic_ios_wchar
*)((char*)ptr
+basic_fstream_wchar_vbtable1
[1]);
12753 static inline basic_fstream_wchar
* basic_fstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
12755 return (basic_fstream_wchar
*)((char*)ptr
-basic_fstream_wchar_vbtable1
[1]);
12758 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@XZ */
12759 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@XZ */
12760 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_ctor
, 8)
12761 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_ctor(basic_fstream_wchar
*this, MSVCP_bool virt_init
)
12763 basic_ios_wchar
*basic_ios
;
12765 TRACE("(%p %d)\n", this, virt_init
);
12768 this->base
.base1
.vbtable
= basic_fstream_wchar_vbtable1
;
12769 this->base
.base2
.vbtable
= basic_fstream_wchar_vbtable2
;
12770 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12771 INIT_BASIC_IOS_VTORDISP(basic_ios
);
12772 basic_ios_wchar_ctor(basic_ios
);
12774 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12777 basic_filebuf_wchar_ctor(&this->filebuf
);
12778 basic_iostream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
);
12779 basic_ios
->base
.vtable
= &MSVCP_basic_fstream_wchar_vtable
;
12783 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@XZ */
12784 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@XZ */
12785 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor
, 8)
12786 basic_fstream_wchar
* __thiscall
basic_fstream_short_ctor(basic_fstream_wchar
*this, MSVCP_bool virt_init
)
12788 basic_fstream_wchar_ctor(this, virt_init
);
12789 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_fstream_short_vtable
;
12793 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
12794 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
12795 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_ctor_file
, 12)
12796 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_ctor_file(basic_fstream_wchar
*this,
12797 FILE *file
, MSVCP_bool virt_init
)
12799 basic_ios_wchar
*basic_ios
;
12801 TRACE("(%p %p %d)\n", this, file
, virt_init
);
12804 this->base
.base1
.vbtable
= basic_fstream_wchar_vbtable1
;
12805 this->base
.base2
.vbtable
= basic_fstream_wchar_vbtable2
;
12806 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12807 INIT_BASIC_IOS_VTORDISP(basic_ios
);
12808 basic_ios_wchar_ctor(basic_ios
);
12810 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12813 basic_filebuf_wchar_ctor_file(&this->filebuf
, file
);
12814 basic_iostream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
);
12815 basic_ios
->base
.vtable
= &MSVCP_basic_fstream_wchar_vtable
;
12819 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
12820 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
12821 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor_file
, 12)
12822 basic_fstream_wchar
* __thiscall
basic_fstream_short_ctor_file(basic_fstream_wchar
*this,
12823 FILE *file
, MSVCP_bool virt_init
)
12825 basic_fstream_wchar_ctor_file(this, file
, virt_init
);
12826 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_fstream_short_vtable
;
12830 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PB_WHH@Z */
12831 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEB_WHH@Z */
12832 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_ctor_name
, 20)
12833 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_ctor_name(basic_fstream_wchar
*this,
12834 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12836 TRACE("(%p %s %d %d %d)\n", this, name
, mode
, prot
, virt_init
);
12838 basic_fstream_wchar_ctor(this, virt_init
);
12840 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
, prot
)) {
12841 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12842 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12847 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@PBGHH@Z */
12848 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@PEBGHH@Z */
12849 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor_name
, 20)
12850 basic_fstream_wchar
* __thiscall
basic_fstream_short_ctor_name(basic_fstream_wchar
*this,
12851 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12853 basic_fstream_wchar_ctor_name(this, name
, mode
, prot
, virt_init
);
12854 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_fstream_short_vtable
;
12858 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PBDH@Z */
12859 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_ctor_name_noprot
, 16)
12860 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_ctor_name_noprot(basic_fstream_wchar
*this,
12861 const char *name
, int mode
, MSVCP_bool virt_init
)
12863 return basic_fstream_wchar_ctor_name(this, name
, mode
, _SH_DENYNO
, virt_init
);
12866 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@PBDH@Z */
12867 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@PEBDH@Z */
12868 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor_name_noprot
, 16)
12869 basic_fstream_wchar
* __thiscall
basic_fstream_short_ctor_name_noprot(basic_fstream_wchar
*this,
12870 const char *name
, int mode
, MSVCP_bool virt_init
)
12872 return basic_fstream_short_ctor_name(this, name
, mode
, _SH_DENYNO
, virt_init
);
12875 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PBGHH@Z */
12876 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBGHH@Z */
12877 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PB_WHH@Z */
12878 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEB_WHH@Z */
12879 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_ctor_name_wchar
, 20)
12880 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_ctor_name_wchar(basic_fstream_wchar
*this,
12881 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12883 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name
), mode
, prot
, virt_init
);
12885 basic_fstream_wchar_ctor(this, virt_init
);
12887 if(!basic_filebuf_wchar_open_wchar(&this->filebuf
, name
, mode
, prot
)) {
12888 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12889 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12894 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@PBGHH@Z */
12895 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@PEBGHH@Z */
12896 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@PB_WHH@Z */
12897 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@PEB_WHH@Z */
12898 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor_name_wchar
, 20)
12899 basic_fstream_wchar
* __thiscall
basic_fstream_short_ctor_name_wchar(basic_fstream_wchar
*this,
12900 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12902 basic_fstream_wchar_ctor_name_wchar(this, name
, mode
, prot
, virt_init
);
12903 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_fstream_short_vtable
;
12907 /* ??1?$basic_fstream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
12908 /* ??1?$basic_fstream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
12909 /* ??1?$basic_fstream@GU?$char_traits@G@std@@@std@@UAE@XZ */
12910 /* ??1?$basic_fstream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
12911 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_dtor
, 4)
12912 void __thiscall
basic_fstream_wchar_dtor(basic_ios_wchar
*base
)
12914 basic_fstream_wchar
*this = basic_fstream_wchar_from_basic_ios(base
);
12916 TRACE("(%p)\n", this);
12918 basic_iostream_wchar_dtor(basic_iostream_wchar_to_basic_ios(&this->base
));
12919 basic_filebuf_wchar_dtor(&this->filebuf
);
12922 /* ??_D?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
12923 /* ??_D?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
12924 /* ??_D?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
12925 /* ??_D?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
12926 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_vbase_dtor
, 4)
12927 void __thiscall
basic_fstream_wchar_vbase_dtor(basic_fstream_wchar
*this)
12929 basic_ios_wchar
*base
= basic_fstream_wchar_to_basic_ios(this);
12931 TRACE("(%p)\n", this);
12933 basic_fstream_wchar_dtor(base
);
12934 basic_ios_wchar_dtor(base
);
12937 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_vector_dtor
, 8)
12938 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
12940 basic_fstream_wchar
*this = basic_fstream_wchar_from_basic_ios(base
);
12942 TRACE("(%p %x)\n", this, flags
);
12945 /* we have an array, with the number of elements stored before the first object */
12946 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
12948 for(i
=*ptr
-1; i
>=0; i
--)
12949 basic_fstream_wchar_vbase_dtor(this+i
);
12950 MSVCRT_operator_delete(ptr
);
12952 basic_fstream_wchar_vbase_dtor(this);
12954 MSVCRT_operator_delete(this);
12960 /* ?close@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
12961 /* ?close@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
12962 /* ?close@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
12963 /* ?close@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
12964 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_close
, 4)
12965 void __thiscall
basic_fstream_wchar_close(basic_fstream_wchar
*this)
12967 TRACE("(%p)\n", this);
12969 if(!basic_filebuf_wchar_close(&this->filebuf
)) {
12970 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12971 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12975 /* ?is_open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
12976 /* ?is_open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
12977 /* ?is_open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QBE_NXZ */
12978 /* ?is_open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
12979 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_is_open
, 4)
12980 MSVCP_bool __thiscall
basic_fstream_wchar_is_open(const basic_fstream_wchar
*this)
12982 TRACE("(%p)\n", this);
12983 return basic_filebuf_wchar_is_open(&this->filebuf
);
12986 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDHH@Z */
12987 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDHH@Z */
12988 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPBDHH@Z */
12989 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDHH@Z */
12990 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_open
, 16)
12991 void __thiscall
basic_fstream_wchar_open(basic_fstream_wchar
*this,
12992 const char *name
, int mode
, int prot
)
12994 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
12996 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
, prot
)) {
12997 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12998 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
13002 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDI@Z */
13003 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDI@Z */
13004 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPBDI@Z */
13005 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDI@Z */
13006 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_open_old
, 12)
13007 void __thiscall
basic_fstream_wchar_open_old(basic_fstream_wchar
*this,
13008 const char *name
, unsigned int mode
)
13010 basic_fstream_wchar_open(this, name
, mode
, _SH_DENYNO
);
13013 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGHH@Z */
13014 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGHH@Z */
13015 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WHH@Z */
13016 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WHH@Z */
13017 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPBGHH@Z */
13018 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGHH@Z */
13019 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPB_WHH@Z */
13020 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WHH@Z */
13021 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_open_wchar
, 16)
13022 void __thiscall
basic_fstream_wchar_open_wchar(basic_fstream_wchar
*this,
13023 const wchar_t *name
, int mode
, int prot
)
13025 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
13027 if(!basic_filebuf_wchar_open_wchar(&this->filebuf
, name
, mode
, prot
)) {
13028 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
13029 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
13033 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGI@Z */
13034 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGI@Z */
13035 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WI@Z */
13036 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WI@Z */
13037 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPBGI@Z */
13038 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGI@Z */
13039 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPB_WI@Z */
13040 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WI@Z */
13041 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_open_wchar_old
, 12)
13042 void __thiscall
basic_fstream_wchar_open_wchar_old(basic_fstream_wchar
*this,
13043 const wchar_t *name
, unsigned int mode
)
13045 basic_fstream_wchar_open_wchar(this, name
, mode
, _SH_DENYNO
);
13048 /* ?rdbuf@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
13049 /* ?rdbuf@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
13050 /* ?rdbuf@?$basic_fstream@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
13051 /* ?rdbuf@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
13052 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_rdbuf
, 4)
13053 basic_filebuf_wchar
* __thiscall
basic_fstream_wchar_rdbuf(const basic_fstream_wchar
*this)
13055 TRACE("(%p)\n", this);
13056 return (basic_filebuf_wchar
*)&this->filebuf
;
13059 static inline basic_ios_char
* basic_ostringstream_char_to_basic_ios(basic_ostringstream_char
*ptr
)
13061 return (basic_ios_char
*)((char*)ptr
+basic_ostringstream_char_vbtable
[1]);
13064 static inline basic_ostringstream_char
* basic_ostringstream_char_from_basic_ios(basic_ios_char
*ptr
)
13066 return (basic_ostringstream_char
*)((char*)ptr
-basic_ostringstream_char_vbtable
[1]);
13069 /* ??0?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@H@Z */
13070 /* ??0?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@H@Z */
13071 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_ctor_str
, 16)
13072 basic_ostringstream_char
* __thiscall
basic_ostringstream_char_ctor_str(basic_ostringstream_char
*this,
13073 const basic_string_char
*str
, int mode
, MSVCP_bool virt_init
)
13075 basic_ios_char
*basic_ios
;
13077 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
13080 this->base
.vbtable
= basic_ostringstream_char_vbtable
;
13081 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
13082 INIT_BASIC_IOS_VTORDISP(basic_ios
);
13083 basic_ios_char_ctor(basic_ios
);
13085 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
13088 basic_stringbuf_char_ctor_str(&this->strbuf
, str
, mode
|OPENMODE_out
);
13089 basic_ostream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
13090 basic_ios
->base
.vtable
= &MSVCP_basic_ostringstream_char_vtable
;
13094 /* ??0?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
13095 /* ??0?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
13096 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_ctor_mode
, 12)
13097 basic_ostringstream_char
* __thiscall
basic_ostringstream_char_ctor_mode(
13098 basic_ostringstream_char
*this, int mode
, MSVCP_bool virt_init
)
13100 basic_ios_char
*basic_ios
;
13102 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
13105 this->base
.vbtable
= basic_ostringstream_char_vbtable
;
13106 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
13107 INIT_BASIC_IOS_VTORDISP(basic_ios
);
13108 basic_ios_char_ctor(basic_ios
);
13110 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
13113 basic_stringbuf_char_ctor_mode(&this->strbuf
, mode
|OPENMODE_out
);
13114 basic_ostream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
13115 basic_ios
->base
.vtable
= &MSVCP_basic_ostringstream_char_vtable
;
13119 /* ??_F?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
13120 /* ??_F?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
13121 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_ctor
, 4)
13122 basic_ostringstream_char
* __thiscall
basic_ostringstream_char_ctor(
13123 basic_ostringstream_char
*this)
13125 return basic_ostringstream_char_ctor_mode(this, 0, TRUE
);
13128 /* ??1?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
13129 /* ??1?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
13130 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_dtor
, 4)
13131 void __thiscall
basic_ostringstream_char_dtor(basic_ios_char
*base
)
13133 basic_ostringstream_char
*this = basic_ostringstream_char_from_basic_ios(base
);
13135 TRACE("(%p)\n", this);
13137 basic_stringbuf_char_dtor(&this->strbuf
);
13138 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&this->base
));
13141 /* ??_D?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
13142 /* ??_D?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
13143 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_vbase_dtor
, 4)
13144 void __thiscall
basic_ostringstream_char_vbase_dtor(basic_ostringstream_char
*this)
13146 basic_ios_char
*base
= basic_ostringstream_char_to_basic_ios(this);
13148 TRACE("(%p)\n", this);
13150 basic_ostringstream_char_dtor(base
);
13151 basic_ios_char_dtor(base
);
13154 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_vector_dtor
, 8)
13155 basic_ostringstream_char
* __thiscall
basic_ostringstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
13157 basic_ostringstream_char
*this = basic_ostringstream_char_from_basic_ios(base
);
13159 TRACE("(%p %x)\n", this, flags
);
13162 /* we have an array, with the number of elements stored before the first object */
13163 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
13165 for(i
=*ptr
-1; i
>=0; i
--)
13166 basic_ostringstream_char_vbase_dtor(this+i
);
13167 MSVCRT_operator_delete(ptr
);
13169 basic_ostringstream_char_vbase_dtor(this);
13171 MSVCRT_operator_delete(this);
13177 /* ?rdbuf@?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPAV?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
13178 /* ?rdbuf@?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAPEAV?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
13179 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_rdbuf
, 4)
13180 basic_stringbuf_char
* __thiscall
basic_ostringstream_char_rdbuf(const basic_ostringstream_char
*this)
13182 TRACE("(%p)\n", this);
13183 return (basic_stringbuf_char
*)&this->strbuf
;
13186 /* ?str@?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z */
13187 /* ?str@?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z */
13188 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_str_set
, 8)
13189 void __thiscall
basic_ostringstream_char_str_set(basic_ostringstream_char
*this, const basic_string_char
*str
)
13191 TRACE("(%p %p)\n", this, str
);
13192 basic_stringbuf_char_str_set(&this->strbuf
, str
);
13195 /* ?str@?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
13196 /* ?str@?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
13197 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_str_get
, 8)
13198 basic_string_char
* __thiscall
basic_ostringstream_char_str_get(const basic_ostringstream_char
*this, basic_string_char
*ret
)
13200 TRACE("(%p %p)\n", this, ret
);
13201 return basic_stringbuf_char_str_get(&this->strbuf
, ret
);
13204 static inline basic_ios_wchar
* basic_ostringstream_wchar_to_basic_ios(basic_ostringstream_wchar
*ptr
)
13206 return (basic_ios_wchar
*)((char*)ptr
+basic_ostringstream_wchar_vbtable
[1]);
13209 static inline basic_ostringstream_wchar
* basic_ostringstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
13211 return (basic_ostringstream_wchar
*)((char*)ptr
-basic_ostringstream_wchar_vbtable
[1]);
13214 /* ??0?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@ABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@1@H@Z */
13215 /* ??0?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@AEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@1@H@Z */
13216 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_ctor_str
, 16)
13217 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_wchar_ctor_str(basic_ostringstream_wchar
*this,
13218 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
13220 basic_ios_wchar
*basic_ios
;
13222 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
13225 this->base
.vbtable
= basic_ostringstream_wchar_vbtable
;
13226 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
13227 INIT_BASIC_IOS_VTORDISP(basic_ios
);
13228 basic_ios_wchar_ctor(basic_ios
);
13230 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
13233 basic_stringbuf_wchar_ctor_str(&this->strbuf
, str
, mode
|OPENMODE_out
);
13234 basic_ostream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
13235 basic_ios
->base
.vtable
= &MSVCP_basic_ostringstream_wchar_vtable
;
13239 /* ??0?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@ABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@1@H@Z */
13240 /* ??0?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@AEBV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@1@H@Z */
13241 DEFINE_THISCALL_WRAPPER(basic_ostringstream_short_ctor_str
, 16)
13242 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_short_ctor_str(basic_ostringstream_wchar
*this,
13243 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
13245 basic_ostringstream_wchar_ctor_str(this, str
, mode
, virt_init
);
13246 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ostringstream_short_vtable
;
13250 /* ??0?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
13251 /* ??0?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
13252 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_ctor_mode
, 12)
13253 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_wchar_ctor_mode(
13254 basic_ostringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
13256 basic_ios_wchar
*basic_ios
;
13258 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
13261 this->base
.vbtable
= basic_ostringstream_wchar_vbtable
;
13262 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
13263 INIT_BASIC_IOS_VTORDISP(basic_ios
);
13264 basic_ios_wchar_ctor(basic_ios
);
13266 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
13269 basic_stringbuf_wchar_ctor_mode(&this->strbuf
, mode
|OPENMODE_out
);
13270 basic_ostream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
13271 basic_ios
->base
.vtable
= &MSVCP_basic_ostringstream_wchar_vtable
;
13275 /* ??0?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
13276 /* ??0?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
13277 DEFINE_THISCALL_WRAPPER(basic_ostringstream_short_ctor_mode
, 12)
13278 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_short_ctor_mode(
13279 basic_ostringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
13281 basic_ostringstream_wchar_ctor_mode(this, mode
, virt_init
);
13282 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ostringstream_short_vtable
;
13286 /* ??_F?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
13287 /* ??_F?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
13288 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_ctor
, 4)
13289 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_wchar_ctor(
13290 basic_ostringstream_wchar
*this)
13292 return basic_ostringstream_wchar_ctor_mode(this, 0, TRUE
);
13295 /* ??_F?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
13296 /* ??_F?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
13297 DEFINE_THISCALL_WRAPPER(basic_ostringstream_short_ctor
, 4)
13298 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_short_ctor(
13299 basic_ostringstream_wchar
*this)
13301 return basic_ostringstream_short_ctor_mode(this, 0, TRUE
);
13304 /* ??1?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
13305 /* ??1?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
13306 /* ??1?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
13307 /* ??1?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
13308 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_dtor
, 4)
13309 void __thiscall
basic_ostringstream_wchar_dtor(basic_ios_wchar
*base
)
13311 basic_ostringstream_wchar
*this = basic_ostringstream_wchar_from_basic_ios(base
);
13313 TRACE("(%p)\n", this);
13315 basic_stringbuf_wchar_dtor(&this->strbuf
);
13316 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(&this->base
));
13319 /* ??_D?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
13320 /* ??_D?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
13321 /* ??_D?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
13322 /* ??_D?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
13323 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_vbase_dtor
, 4)
13324 void __thiscall
basic_ostringstream_wchar_vbase_dtor(basic_ostringstream_wchar
*this)
13326 basic_ios_wchar
*base
= basic_ostringstream_wchar_to_basic_ios(this);
13328 TRACE("(%p)\n", this);
13330 basic_ostringstream_wchar_dtor(base
);
13331 basic_ios_wchar_dtor(base
);
13334 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_vector_dtor
, 8)
13335 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
13337 basic_ostringstream_wchar
*this = basic_ostringstream_wchar_from_basic_ios(base
);
13339 TRACE("(%p %x)\n", this, flags
);
13342 /* we have an array, with the number of elements stored before the first object */
13343 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
13345 for(i
=*ptr
-1; i
>=0; i
--)
13346 basic_ostringstream_wchar_vbase_dtor(this+i
);
13347 MSVCRT_operator_delete(ptr
);
13349 basic_ostringstream_wchar_vbase_dtor(this);
13351 MSVCRT_operator_delete(this);
13357 /* ?rdbuf@?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEPAV?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ */
13358 /* ?rdbuf@?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAPEAV?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ */
13359 /* ?rdbuf@?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEPAV?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@2@XZ */
13360 /* ?rdbuf@?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAPEAV?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@2@XZ */
13361 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_rdbuf
, 4)
13362 basic_stringbuf_wchar
* __thiscall
basic_ostringstream_wchar_rdbuf(const basic_ostringstream_wchar
*this)
13364 TRACE("(%p)\n", this);
13365 return (basic_stringbuf_wchar
*)&this->strbuf
;
13368 /* ?str@?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@@Z */
13369 /* ?str@?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXAEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@@Z */
13370 /* ?str@?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@2@@Z */
13371 /* ?str@?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXAEBV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@2@@Z */
13372 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_str_set
, 8)
13373 void __thiscall
basic_ostringstream_wchar_str_set(basic_ostringstream_wchar
*this, const basic_string_wchar
*str
)
13375 TRACE("(%p %p)\n", this, str
);
13376 basic_stringbuf_wchar_str_set(&this->strbuf
, str
);
13379 /* ?str@?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ */
13380 /* ?str@?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ */
13381 /* ?str@?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBE?AV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@2@XZ */
13382 /* ?str@?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA?AV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@2@XZ */
13383 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_str_get
, 8)
13384 basic_string_wchar
* __thiscall
basic_ostringstream_wchar_str_get(const basic_ostringstream_wchar
*this, basic_string_wchar
*ret
)
13386 TRACE("(%p %p)\n", this, ret
);
13387 return basic_stringbuf_wchar_str_get(&this->strbuf
, ret
);
13390 static inline basic_ios_char
* basic_istringstream_char_to_basic_ios(basic_istringstream_char
*ptr
)
13392 return (basic_ios_char
*)((char*)ptr
+basic_istringstream_char_vbtable
[1]);
13395 static inline basic_istringstream_char
* basic_istringstream_char_from_basic_ios(basic_ios_char
*ptr
)
13397 return (basic_istringstream_char
*)((char*)ptr
-basic_istringstream_char_vbtable
[1]);
13400 /* ??0?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@H@Z */
13401 /* ??0?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@H@Z */
13402 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_ctor_str
, 16)
13403 basic_istringstream_char
* __thiscall
basic_istringstream_char_ctor_str(basic_istringstream_char
*this,
13404 const basic_string_char
*str
, int mode
, MSVCP_bool virt_init
)
13406 basic_ios_char
*basic_ios
;
13408 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
13411 this->base
.vbtable
= basic_istringstream_char_vbtable
;
13412 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
13413 INIT_BASIC_IOS_VTORDISP(basic_ios
);
13414 basic_ios_char_ctor(basic_ios
);
13416 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
13419 basic_stringbuf_char_ctor_str(&this->strbuf
, str
, mode
|OPENMODE_in
);
13420 basic_istream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
13421 basic_ios
->base
.vtable
= &MSVCP_basic_istringstream_char_vtable
;
13425 /* ??0?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
13426 /* ??0?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
13427 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_ctor_mode
, 12)
13428 basic_istringstream_char
* __thiscall
basic_istringstream_char_ctor_mode(
13429 basic_istringstream_char
*this, int mode
, MSVCP_bool virt_init
)
13431 basic_ios_char
*basic_ios
;
13433 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
13436 this->base
.vbtable
= basic_istringstream_char_vbtable
;
13437 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
13438 INIT_BASIC_IOS_VTORDISP(basic_ios
);
13439 basic_ios_char_ctor(basic_ios
);
13441 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
13444 basic_stringbuf_char_ctor_mode(&this->strbuf
, mode
|OPENMODE_in
);
13445 basic_istream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
13446 basic_ios
->base
.vtable
= &MSVCP_basic_istringstream_char_vtable
;
13450 /* ??_F?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
13451 /* ??_F?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
13452 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_ctor
, 4)
13453 basic_istringstream_char
* __thiscall
basic_istringstream_char_ctor(
13454 basic_istringstream_char
*this)
13456 return basic_istringstream_char_ctor_mode(this, 0, TRUE
);
13459 /* ??1?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
13460 /* ??1?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
13461 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_dtor
, 4)
13462 void __thiscall
basic_istringstream_char_dtor(basic_ios_char
*base
)
13464 basic_istringstream_char
*this = basic_istringstream_char_from_basic_ios(base
);
13466 TRACE("(%p)\n", this);
13468 basic_stringbuf_char_dtor(&this->strbuf
);
13469 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&this->base
));
13472 /* ??_D?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
13473 /* ??_D?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
13474 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_vbase_dtor
, 4)
13475 void __thiscall
basic_istringstream_char_vbase_dtor(basic_istringstream_char
*this)
13477 basic_ios_char
*base
= basic_istringstream_char_to_basic_ios(this);
13479 TRACE("(%p)\n", this);
13481 basic_istringstream_char_dtor(base
);
13482 basic_ios_char_dtor(base
);
13485 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_vector_dtor
, 8)
13486 basic_istringstream_char
* __thiscall
basic_istringstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
13488 basic_istringstream_char
*this = basic_istringstream_char_from_basic_ios(base
);
13490 TRACE("(%p %x)\n", this, flags
);
13493 /* we have an array, with the number of elements stored before the first object */
13494 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
13496 for(i
=*ptr
-1; i
>=0; i
--)
13497 basic_istringstream_char_vbase_dtor(this+i
);
13498 MSVCRT_operator_delete(ptr
);
13500 basic_istringstream_char_vbase_dtor(this);
13502 MSVCRT_operator_delete(this);
13508 /* ?rdbuf@?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPAV?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
13509 /* ?rdbuf@?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAPEAV?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
13510 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_rdbuf
, 4)
13511 basic_stringbuf_char
* __thiscall
basic_istringstream_char_rdbuf(const basic_istringstream_char
*this)
13513 TRACE("(%p)\n", this);
13514 return (basic_stringbuf_char
*)&this->strbuf
;
13517 /* ?str@?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z */
13518 /* ?str@?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z */
13519 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_str_set
, 8)
13520 void __thiscall
basic_istringstream_char_str_set(basic_istringstream_char
*this, const basic_string_char
*str
)
13522 TRACE("(%p %p)\n", this, str
);
13523 basic_stringbuf_char_str_set(&this->strbuf
, str
);
13526 /* ?str@?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
13527 /* ?str@?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
13528 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_str_get
, 8)
13529 basic_string_char
* __thiscall
basic_istringstream_char_str_get(const basic_istringstream_char
*this, basic_string_char
*ret
)
13531 TRACE("(%p %p)\n", this, ret
);
13532 return basic_stringbuf_char_str_get(&this->strbuf
, ret
);
13535 static inline basic_ios_wchar
* basic_istringstream_wchar_to_basic_ios(basic_istringstream_wchar
*ptr
)
13537 return (basic_ios_wchar
*)((char*)ptr
+basic_istringstream_wchar_vbtable
[1]);
13540 static inline basic_istringstream_wchar
* basic_istringstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
13542 return (basic_istringstream_wchar
*)((char*)ptr
-basic_istringstream_wchar_vbtable
[1]);
13545 /* ??0?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@ABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@1@H@Z */
13546 /* ??0?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@AEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@1@H@Z */
13547 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_ctor_str
, 16)
13548 basic_istringstream_wchar
* __thiscall
basic_istringstream_wchar_ctor_str(basic_istringstream_wchar
*this,
13549 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
13551 basic_ios_wchar
*basic_ios
;
13553 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
13556 this->base
.vbtable
= basic_istringstream_wchar_vbtable
;
13557 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
13558 INIT_BASIC_IOS_VTORDISP(basic_ios
);
13559 basic_ios_wchar_ctor(basic_ios
);
13561 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
13564 basic_stringbuf_wchar_ctor_str(&this->strbuf
, str
, mode
|OPENMODE_in
);
13565 basic_istream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
13566 basic_ios
->base
.vtable
= &MSVCP_basic_istringstream_wchar_vtable
;
13570 /* ??0?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@ABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@1@H@Z */
13571 /* ??0?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@AEBV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@1@H@Z */
13572 DEFINE_THISCALL_WRAPPER(basic_istringstream_short_ctor_str
, 16)
13573 basic_istringstream_wchar
* __thiscall
basic_istringstream_short_ctor_str(basic_istringstream_wchar
*this,
13574 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
13576 basic_istringstream_wchar_ctor_str(this, str
, mode
, virt_init
);
13577 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_istringstream_short_vtable
;
13581 /* ??0?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
13582 /* ??0?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
13583 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_ctor_mode
, 12)
13584 basic_istringstream_wchar
* __thiscall
basic_istringstream_wchar_ctor_mode(
13585 basic_istringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
13587 basic_ios_wchar
*basic_ios
;
13589 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
13592 this->base
.vbtable
= basic_istringstream_wchar_vbtable
;
13593 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
13594 INIT_BASIC_IOS_VTORDISP(basic_ios
);
13595 basic_ios_wchar_ctor(basic_ios
);
13597 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
13600 basic_stringbuf_wchar_ctor_mode(&this->strbuf
, mode
|OPENMODE_in
);
13601 basic_istream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
13602 basic_ios
->base
.vtable
= &MSVCP_basic_istringstream_wchar_vtable
;
13606 /* ??0?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
13607 /* ??0?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
13608 DEFINE_THISCALL_WRAPPER(basic_istringstream_short_ctor_mode
, 12)
13609 basic_istringstream_wchar
* __thiscall
basic_istringstream_short_ctor_mode(
13610 basic_istringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
13612 basic_istringstream_wchar_ctor_mode(this, mode
, virt_init
);
13613 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_istringstream_short_vtable
;
13617 /* ??_F?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
13618 /* ??_F?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
13619 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_ctor
, 4)
13620 basic_istringstream_wchar
* __thiscall
basic_istringstream_wchar_ctor(
13621 basic_istringstream_wchar
*this)
13623 return basic_istringstream_wchar_ctor_mode(this, 0, TRUE
);
13626 /* ??_F?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
13627 /* ??_F?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
13628 DEFINE_THISCALL_WRAPPER(basic_istringstream_short_ctor
, 4)
13629 basic_istringstream_wchar
* __thiscall
basic_istringstream_short_ctor(
13630 basic_istringstream_wchar
*this)
13632 return basic_istringstream_short_ctor_mode(this, 0, TRUE
);
13635 /* ??1?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
13636 /* ??1?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
13637 /* ??1?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
13638 /* ??1?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
13639 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_dtor
, 4)
13640 void __thiscall
basic_istringstream_wchar_dtor(basic_ios_wchar
*base
)
13642 basic_istringstream_wchar
*this = basic_istringstream_wchar_from_basic_ios(base
);
13644 TRACE("(%p)\n", this);
13646 basic_stringbuf_wchar_dtor(&this->strbuf
);
13647 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(&this->base
));
13650 /* ??_D?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
13651 /* ??_D?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
13652 /* ??_D?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
13653 /* ??_D?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
13654 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_vbase_dtor
, 4)
13655 void __thiscall
basic_istringstream_wchar_vbase_dtor(basic_istringstream_wchar
*this)
13657 basic_ios_wchar
*base
= basic_istringstream_wchar_to_basic_ios(this);
13659 TRACE("(%p)\n", this);
13661 basic_istringstream_wchar_dtor(base
);
13662 basic_ios_wchar_dtor(base
);
13665 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_vector_dtor
, 8)
13666 basic_istringstream_wchar
* __thiscall
basic_istringstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
13668 basic_istringstream_wchar
*this = basic_istringstream_wchar_from_basic_ios(base
);
13670 TRACE("(%p %x)\n", this, flags
);
13673 /* we have an array, with the number of elements stored before the first object */
13674 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
13676 for(i
=*ptr
-1; i
>=0; i
--)
13677 basic_istringstream_wchar_vbase_dtor(this+i
);
13678 MSVCRT_operator_delete(ptr
);
13680 basic_istringstream_wchar_vbase_dtor(this);
13682 MSVCRT_operator_delete(this);
13688 /* ?rdbuf@?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEPAV?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ */
13689 /* ?rdbuf@?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAPEAV?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ */
13690 /* ?rdbuf@?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEPAV?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@2@XZ */
13691 /* ?rdbuf@?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAPEAV?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@2@XZ */
13692 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_rdbuf
, 4)
13693 basic_stringbuf_wchar
* __thiscall
basic_istringstream_wchar_rdbuf(const basic_istringstream_wchar
*this)
13695 TRACE("(%p)\n", this);
13696 return (basic_stringbuf_wchar
*)&this->strbuf
;
13699 /* ?str@?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@@Z */
13700 /* ?str@?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXAEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@@Z */
13701 /* ?str@?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@2@@Z */
13702 /* ?str@?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXAEBV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@2@@Z */
13703 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_str_set
, 8)
13704 void __thiscall
basic_istringstream_wchar_str_set(basic_istringstream_wchar
*this, const basic_string_wchar
*str
)
13706 TRACE("(%p %p)\n", this, str
);
13707 basic_stringbuf_wchar_str_set(&this->strbuf
, str
);
13710 /* ?str@?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ */
13711 /* ?str@?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ */
13712 /* ?str@?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBE?AV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@2@XZ */
13713 /* ?str@?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA?AV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@2@XZ */
13714 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_str_get
, 8)
13715 basic_string_wchar
* __thiscall
basic_istringstream_wchar_str_get(const basic_istringstream_wchar
*this, basic_string_wchar
*ret
)
13717 TRACE("(%p %p)\n", this, ret
);
13718 return basic_stringbuf_wchar_str_get(&this->strbuf
, ret
);
13721 static inline basic_ios_char
* basic_stringstream_char_to_basic_ios(basic_stringstream_char
*ptr
)
13723 return (basic_ios_char
*)((char*)ptr
+basic_stringstream_char_vbtable1
[1]);
13726 static inline basic_stringstream_char
* basic_stringstream_char_from_basic_ios(basic_ios_char
*ptr
)
13728 return (basic_stringstream_char
*)((char*)ptr
-basic_stringstream_char_vbtable1
[1]);
13731 /* ??0?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@H@Z */
13732 /* ??0?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@H@Z */
13733 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_ctor_str
, 16)
13734 basic_stringstream_char
* __thiscall
basic_stringstream_char_ctor_str(basic_stringstream_char
*this,
13735 const basic_string_char
*str
, int mode
, MSVCP_bool virt_init
)
13737 basic_ios_char
*basic_ios
;
13739 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
13742 this->base
.base1
.vbtable
= basic_stringstream_char_vbtable1
;
13743 this->base
.base2
.vbtable
= basic_stringstream_char_vbtable2
;
13744 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
13745 INIT_BASIC_IOS_VTORDISP(basic_ios
);
13746 basic_ios_char_ctor(basic_ios
);
13748 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
13751 basic_stringbuf_char_ctor_str(&this->strbuf
, str
, mode
);
13752 basic_iostream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
);
13753 basic_ios
->base
.vtable
= &MSVCP_basic_stringstream_char_vtable
;
13757 /* ??0?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
13758 /* ??0?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
13759 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_ctor_mode
, 12)
13760 basic_stringstream_char
* __thiscall
basic_stringstream_char_ctor_mode(
13761 basic_stringstream_char
*this, int mode
, MSVCP_bool virt_init
)
13763 basic_ios_char
*basic_ios
;
13765 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
13768 this->base
.base1
.vbtable
= basic_stringstream_char_vbtable1
;
13769 this->base
.base2
.vbtable
= basic_stringstream_char_vbtable2
;
13770 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
13771 INIT_BASIC_IOS_VTORDISP(basic_ios
);
13772 basic_ios_char_ctor(basic_ios
);
13774 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
13777 basic_stringbuf_char_ctor_mode(&this->strbuf
, mode
);
13778 basic_iostream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
);
13779 basic_ios
->base
.vtable
= &MSVCP_basic_stringstream_char_vtable
;
13783 /* ??_F?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
13784 /* ??_F?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
13785 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_ctor
, 4)
13786 basic_stringstream_char
* __thiscall
basic_stringstream_char_ctor(
13787 basic_stringstream_char
*this)
13789 return basic_stringstream_char_ctor_mode(
13790 this, OPENMODE_out
|OPENMODE_in
, TRUE
);
13793 /* ??1?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
13794 /* ??1?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
13795 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_dtor
, 4)
13796 void __thiscall
basic_stringstream_char_dtor(basic_ios_char
*base
)
13798 basic_stringstream_char
*this = basic_stringstream_char_from_basic_ios(base
);
13800 TRACE("(%p)\n", this);
13802 basic_iostream_char_dtor(basic_iostream_char_to_basic_ios(&this->base
));
13803 basic_stringbuf_char_dtor(&this->strbuf
);
13806 /* ??_D?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
13807 /* ??_D?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
13808 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_vbase_dtor
, 4)
13809 void __thiscall
basic_stringstream_char_vbase_dtor(basic_stringstream_char
*this)
13811 basic_ios_char
*base
= basic_stringstream_char_to_basic_ios(this);
13813 TRACE("(%p)\n", this);
13815 basic_stringstream_char_dtor(base
);
13816 basic_ios_char_dtor(base
);
13819 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_vector_dtor
, 8)
13820 basic_stringstream_char
* __thiscall
basic_stringstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
13822 basic_stringstream_char
*this = basic_stringstream_char_from_basic_ios(base
);
13824 TRACE("(%p %x)\n", this, flags
);
13827 /* we have an array, with the number of elements stored before the first object */
13828 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
13830 for(i
=*ptr
-1; i
>=0; i
--)
13831 basic_stringstream_char_vbase_dtor(this+i
);
13832 MSVCRT_operator_delete(ptr
);
13834 basic_stringstream_char_vbase_dtor(this);
13836 MSVCRT_operator_delete(this);
13842 /* ?rdbuf@?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPAV?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
13843 /* ?rdbuf@?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAPEAV?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
13844 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_rdbuf
, 4)
13845 basic_stringbuf_char
* __thiscall
basic_stringstream_char_rdbuf(const basic_stringstream_char
*this)
13847 TRACE("(%p)\n", this);
13848 return (basic_stringbuf_char
*)&this->strbuf
;
13851 /* ?str@?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z */
13852 /* ?str@?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z */
13853 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_str_set
, 8)
13854 void __thiscall
basic_stringstream_char_str_set(basic_stringstream_char
*this, const basic_string_char
*str
)
13856 TRACE("(%p %p)\n", this, str
);
13857 basic_stringbuf_char_str_set(&this->strbuf
, str
);
13860 /* ?str@?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
13861 /* ?str@?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
13862 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_str_get
, 8)
13863 basic_string_char
* __thiscall
basic_stringstream_char_str_get(const basic_stringstream_char
*this, basic_string_char
*ret
)
13865 TRACE("(%p %p)\n", this, ret
);
13866 return basic_stringbuf_char_str_get(&this->strbuf
, ret
);
13869 static inline basic_ios_wchar
* basic_stringstream_wchar_to_basic_ios(basic_stringstream_wchar
*ptr
)
13871 return (basic_ios_wchar
*)((char*)ptr
+basic_stringstream_wchar_vbtable1
[1]);
13874 static inline basic_stringstream_wchar
* basic_stringstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
13876 return (basic_stringstream_wchar
*)((char*)ptr
-basic_stringstream_wchar_vbtable1
[1]);
13879 /* ??0?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@ABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@1@H@Z */
13880 /* ??0?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@AEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@1@H@Z */
13881 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_ctor_str
, 16)
13882 basic_stringstream_wchar
* __thiscall
basic_stringstream_wchar_ctor_str(basic_stringstream_wchar
*this,
13883 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
13885 basic_ios_wchar
*basic_ios
;
13887 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
13890 this->base
.base1
.vbtable
= basic_stringstream_wchar_vbtable1
;
13891 this->base
.base2
.vbtable
= basic_stringstream_wchar_vbtable2
;
13892 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
13893 INIT_BASIC_IOS_VTORDISP(basic_ios
);
13894 basic_ios_wchar_ctor(basic_ios
);
13896 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
13899 basic_stringbuf_wchar_ctor_str(&this->strbuf
, str
, mode
);
13900 basic_iostream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
);
13901 basic_ios
->base
.vtable
= &MSVCP_basic_stringstream_wchar_vtable
;
13905 /* ??0?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@ABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@1@H@Z */
13906 /* ??0?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@AEBV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@1@H@Z */
13907 DEFINE_THISCALL_WRAPPER(basic_stringstream_short_ctor_str
, 16)
13908 basic_stringstream_wchar
* __thiscall
basic_stringstream_short_ctor_str(basic_stringstream_wchar
*this,
13909 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
13911 basic_stringstream_wchar_ctor_str(this, str
, mode
, virt_init
);
13912 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_stringstream_short_vtable
;
13916 /* ??0?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
13917 /* ??0?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
13918 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_ctor_mode
, 12)
13919 basic_stringstream_wchar
* __thiscall
basic_stringstream_wchar_ctor_mode(
13920 basic_stringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
13922 basic_ios_wchar
*basic_ios
;
13924 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
13927 this->base
.base1
.vbtable
= basic_stringstream_wchar_vbtable1
;
13928 this->base
.base2
.vbtable
= basic_stringstream_wchar_vbtable2
;
13929 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
13930 INIT_BASIC_IOS_VTORDISP(basic_ios
);
13931 basic_ios_wchar_ctor(basic_ios
);
13933 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
13936 basic_stringbuf_wchar_ctor_mode(&this->strbuf
, mode
);
13937 basic_iostream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
);
13938 basic_ios
->base
.vtable
= &MSVCP_basic_stringstream_wchar_vtable
;
13942 /* ??0?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
13943 /* ??0?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
13944 DEFINE_THISCALL_WRAPPER(basic_stringstream_short_ctor_mode
, 12)
13945 basic_stringstream_wchar
* __thiscall
basic_stringstream_short_ctor_mode(
13946 basic_stringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
13948 basic_stringstream_wchar_ctor_mode(this, mode
, virt_init
);
13949 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_stringstream_short_vtable
;
13953 /* ??_F?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
13954 /* ??_F?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
13955 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_ctor
, 4)
13956 basic_stringstream_wchar
* __thiscall
basic_stringstream_wchar_ctor(
13957 basic_stringstream_wchar
*this)
13959 return basic_stringstream_wchar_ctor_mode(
13960 this, OPENMODE_out
|OPENMODE_in
, TRUE
);
13963 /* ??_F?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
13964 /* ??_F?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
13965 DEFINE_THISCALL_WRAPPER(basic_stringstream_short_ctor
, 4)
13966 basic_stringstream_wchar
* __thiscall
basic_stringstream_short_ctor(
13967 basic_stringstream_wchar
*this)
13969 return basic_stringstream_short_ctor_mode(
13970 this, OPENMODE_out
|OPENMODE_in
, TRUE
);
13973 /* ??1?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
13974 /* ??1?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
13975 /* ??1?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
13976 /* ??1?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
13977 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_dtor
, 4)
13978 void __thiscall
basic_stringstream_wchar_dtor(basic_ios_wchar
*base
)
13980 basic_stringstream_wchar
*this = basic_stringstream_wchar_from_basic_ios(base
);
13982 TRACE("(%p)\n", this);
13984 basic_iostream_wchar_dtor(basic_iostream_wchar_to_basic_ios(&this->base
));
13985 basic_stringbuf_wchar_dtor(&this->strbuf
);
13988 /* ??_D?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
13989 /* ??_D?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
13990 /* ??_D?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
13991 /* ??_D?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
13992 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_vbase_dtor
, 4)
13993 void __thiscall
basic_stringstream_wchar_vbase_dtor(basic_stringstream_wchar
*this)
13995 basic_ios_wchar
*base
= basic_stringstream_wchar_to_basic_ios(this);
13997 TRACE("(%p)\n", this);
13999 basic_stringstream_wchar_dtor(base
);
14000 basic_ios_wchar_dtor(base
);
14003 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_vector_dtor
, 8)
14004 basic_stringstream_wchar
* __thiscall
basic_stringstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
14006 basic_stringstream_wchar
*this = basic_stringstream_wchar_from_basic_ios(base
);
14008 TRACE("(%p %x)\n", this, flags
);
14011 /* we have an array, with the number of elements stored before the first object */
14012 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
14014 for(i
=*ptr
-1; i
>=0; i
--)
14015 basic_stringstream_wchar_vbase_dtor(this+i
);
14016 MSVCRT_operator_delete(ptr
);
14018 basic_stringstream_wchar_vbase_dtor(this);
14020 MSVCRT_operator_delete(this);
14026 /* ?rdbuf@?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEPAV?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ */
14027 /* ?rdbuf@?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAPEAV?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ */
14028 /* ?rdbuf@?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEPAV?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@2@XZ */
14029 /* ?rdbuf@?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAPEAV?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@2@XZ */
14030 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_rdbuf
, 4)
14031 basic_stringbuf_wchar
* __thiscall
basic_stringstream_wchar_rdbuf(const basic_stringstream_wchar
*this)
14033 TRACE("(%p)\n", this);
14034 return (basic_stringbuf_wchar
*)&this->strbuf
;
14037 /* ?str@?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@@Z */
14038 /* ?str@?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXAEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@@Z */
14039 /* ?str@?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@2@@Z */
14040 /* ?str@?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXAEBV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@2@@Z */
14041 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_str_set
, 8)
14042 void __thiscall
basic_stringstream_wchar_str_set(basic_stringstream_wchar
*this, const basic_string_wchar
*str
)
14044 TRACE("(%p %p)\n", this, str
);
14045 basic_stringbuf_wchar_str_set(&this->strbuf
, str
);
14048 /* ?str@?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ */
14049 /* ?str@?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ */
14050 /* ?str@?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBE?AV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@2@XZ */
14051 /* ?str@?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA?AV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@2@XZ */
14052 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_str_get
, 8)
14053 basic_string_wchar
* __thiscall
basic_stringstream_wchar_str_get(const basic_stringstream_wchar
*this, basic_string_wchar
*ret
)
14055 TRACE("(%p %p)\n", this, ret
);
14056 return basic_stringbuf_wchar_str_get(&this->strbuf
, ret
);
14059 /* ?_Init@strstreambuf@std@@IAEXHPAD0H@Z */
14060 /* ?_Init@strstreambuf@std@@IEAAX_JPEAD1H@Z */
14061 #if STREAMSIZE_BITS == 64
14062 DEFINE_THISCALL_WRAPPER(strstreambuf__Init
, 24)
14064 DEFINE_THISCALL_WRAPPER(strstreambuf__Init
, 20)
14066 void __thiscall
strstreambuf__Init(strstreambuf
*this, streamsize len
, char *g
, char *p
, int mode
)
14068 TRACE("(%p %s %p %p %d)\n", this, wine_dbgstr_longlong(len
), g
, p
, mode
);
14070 this->minsize
= 32;
14071 this->endsave
= NULL
;
14072 this->strmode
= mode
;
14073 this->palloc
= NULL
;
14074 this->pfree
= NULL
;
14077 this->strmode
|= STRSTATE_Dynamic
;
14078 if(len
> this->minsize
)
14079 this->minsize
= len
;
14080 this->seekhigh
= NULL
;
14089 this->seekhigh
= g
+len
;
14090 basic_streambuf_char_setg(&this->base
, g
, g
, p
? p
: this->seekhigh
);
14092 basic_streambuf_char_setp(&this->base
, p
, this->seekhigh
);
14095 /* ??0strstreambuf@std@@QAE@PACH0@Z */
14096 /* ??0strstreambuf@std@@QEAA@PEAC_J0@Z */
14097 /* ??0strstreambuf@std@@QAE@PADH0@Z */
14098 /* ??0strstreambuf@std@@QEAA@PEAD_J0@Z */
14099 /* ??0strstreambuf@std@@QAE@PAEH0@Z */
14100 /* ??0strstreambuf@std@@QEAA@PEAE_J0@Z */
14101 #if STREAMSIZE_BITS == 64
14102 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_get_put
, 20)
14104 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_get_put
, 16)
14106 strstreambuf
* __thiscall
strstreambuf_ctor_get_put(strstreambuf
*this, char *g
, streamsize len
, char *p
)
14108 TRACE("(%p %p %s %p)\n", this, g
, wine_dbgstr_longlong(len
), p
);
14110 basic_streambuf_char_ctor(&this->base
);
14111 this->base
.vtable
= &MSVCP_strstreambuf_vtable
;
14113 strstreambuf__Init(this, len
, g
, p
, 0);
14117 /* ??0strstreambuf@std@@QAE@H@Z */
14118 /* ??0strstreambuf@std@@QEAA@_J@Z */
14119 #if STREAMSIZE_BITS == 64
14120 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_len
, 12)
14122 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_len
, 8)
14124 strstreambuf
* __thiscall
strstreambuf_ctor_len(strstreambuf
*this, streamsize len
)
14126 return strstreambuf_ctor_get_put(this, NULL
, len
, NULL
);
14129 /* ??0strstreambuf@std@@QAE@P6APAXI@ZP6AXPAX@Z@Z */
14130 /* ??0strstreambuf@std@@QEAA@P6APEAX_K@ZP6AXPEAX@Z@Z */
14131 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_alloc
, 12)
14132 strstreambuf
* __thiscall
strstreambuf_ctor_alloc(strstreambuf
*this, void* (__cdecl
*palloc
)(MSVCP_size_t
), void (__cdecl
*pfree
)(void*))
14134 TRACE("(%p %p %p)\n", this, palloc
, pfree
);
14136 strstreambuf_ctor_get_put(this, NULL
, 0, NULL
);
14137 this->palloc
= palloc
;
14138 this->pfree
= pfree
;
14142 /* ??0strstreambuf@std@@QAE@PBCH@Z */
14143 /* ??0strstreambuf@std@@QEAA@PEBC_J@Z */
14144 /* ??0strstreambuf@std@@QAE@PBDH@Z */
14145 /* ??0strstreambuf@std@@QEAA@PEBD_J@Z */
14146 /* ??0strstreambuf@std@@QAE@PBEH@Z */
14147 /* ??0strstreambuf@std@@QEAA@PEBE_J@Z */
14148 #if STREAMSIZE_BITS == 64
14149 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_get
, 16)
14151 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_get
, 12)
14153 strstreambuf
* __thiscall
strstreambuf_ctor_get(strstreambuf
*this, const char *g
, streamsize len
)
14155 TRACE("(%p %p %s)\n", this, g
, wine_dbgstr_longlong(len
));
14157 strstreambuf_ctor_get_put(this, (char*)g
, len
, NULL
);
14158 this->strmode
|= STRSTATE_Constant
;
14162 /* ??_Fstrstreambuf@std@@QAEXXZ */
14163 /* ??_Fstrstreambuf@std@@QEAAXXZ */
14164 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor
, 4)
14165 strstreambuf
* __thiscall
strstreambuf_ctor(strstreambuf
*this)
14167 return strstreambuf_ctor_get_put(this, NULL
, 0, NULL
);
14170 /* ?_Tidy@strstreambuf@std@@IAEXXZ */
14171 /* ?_Tidy@strstreambuf@std@@IEAAXXZ */
14172 DEFINE_THISCALL_WRAPPER(strstreambuf__Tidy
, 4)
14173 void __thiscall
strstreambuf__Tidy(strstreambuf
*this)
14175 TRACE("(%p)\n", this);
14177 if((this->strmode
& STRSTATE_Allocated
) && !(this->strmode
& STRSTATE_Frozen
)) {
14179 this->pfree(basic_streambuf_char_eback(&this->base
));
14181 MSVCRT_operator_delete(basic_streambuf_char_eback(&this->base
));
14184 this->endsave
= NULL
;
14185 this->seekhigh
= NULL
;
14186 this->strmode
&= ~(STRSTATE_Allocated
| STRSTATE_Frozen
);
14187 basic_streambuf_char_setg(&this->base
, NULL
, NULL
, NULL
);
14188 basic_streambuf_char_setp(&this->base
, NULL
, NULL
);
14191 /* ??1strstreambuf@std@@UAE@XZ */
14192 /* ??1strstreambuf@std@@UEAA@XZ */
14193 DEFINE_THISCALL_WRAPPER(strstreambuf_dtor
, 4)
14194 void __thiscall
strstreambuf_dtor(strstreambuf
*this)
14196 TRACE("(%p)\n", this);
14198 strstreambuf__Tidy(this);
14199 basic_streambuf_char_dtor(&this->base
);
14202 DEFINE_THISCALL_WRAPPER(strstreambuf_vector_dtor
, 8)
14203 strstreambuf
* __thiscall
strstreambuf_vector_dtor(strstreambuf
*this, unsigned int flags
)
14205 TRACE("(%p %x)\n", this, flags
);
14207 /* we have an array, with the number of elements stored before the first object */
14208 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
14210 for(i
=*ptr
-1; i
>=0; i
--)
14211 strstreambuf_dtor(this+i
);
14212 MSVCRT_operator_delete(ptr
);
14214 strstreambuf_dtor(this);
14216 MSVCRT_operator_delete(this);
14222 /* ?freeze@strstreambuf@std@@QAEX_N@Z */
14223 /* ?freeze@strstreambuf@std@@QEAAX_N@Z */
14224 DEFINE_THISCALL_WRAPPER(strstreambuf_freeze
, 8)
14225 void __thiscall
strstreambuf_freeze(strstreambuf
*this, MSVCP_bool freeze
)
14227 TRACE("(%p %d)\n", this, freeze
);
14229 if(!freeze
== !(this->strmode
& STRSTATE_Frozen
))
14233 this->strmode
|= STRSTATE_Frozen
;
14234 this->endsave
= basic_streambuf_char_epptr(&this->base
);
14235 basic_streambuf_char_setp_next(&this->base
, basic_streambuf_char_pbase(&this->base
),
14236 basic_streambuf_char_pptr(&this->base
), basic_streambuf_char_eback(&this->base
));
14238 this->strmode
&= ~STRSTATE_Frozen
;
14239 basic_streambuf_char_setp_next(&this->base
, basic_streambuf_char_pbase(&this->base
),
14240 basic_streambuf_char_pptr(&this->base
), this->endsave
);
14244 /* ?str@strstreambuf@std@@QAEPADXZ */
14245 /* ?str@strstreambuf@std@@QEAAPEADXZ */
14246 DEFINE_THISCALL_WRAPPER(strstreambuf_str
, 4)
14247 char* __thiscall
strstreambuf_str(strstreambuf
*this)
14249 TRACE("(%p)\n", this);
14251 strstreambuf_freeze(this, TRUE
);
14252 return basic_streambuf_char_gptr(&this->base
);
14255 /* ?pcount@strstreambuf@std@@QBEHXZ */
14256 /* ?pcount@strstreambuf@std@@QEBA_JXZ */
14257 DEFINE_THISCALL_WRAPPER(strstreambuf_pcount
, 4)
14258 streamsize __thiscall
strstreambuf_pcount(const strstreambuf
*this)
14260 char *ppos
= basic_streambuf_char_pptr(&this->base
);
14262 TRACE("(%p)\n", this);
14264 return ppos
? ppos
-basic_streambuf_char_pbase(&this->base
) : 0;
14267 /* ?overflow@strstreambuf@std@@MAEHH@Z */
14268 /* ?overflow@strstreambuf@std@@MEAAHH@Z */
14269 DEFINE_THISCALL_WRAPPER(strstreambuf_overflow
, 8)
14270 int __thiscall
strstreambuf_overflow(strstreambuf
*this, int c
)
14272 MSVCP_size_t old_size
, size
;
14275 TRACE("(%p %d)\n", this, c
);
14280 if(this->strmode
& STRSTATE_Frozen
)
14283 ptr
= basic_streambuf_char_pptr(&this->base
);
14284 if(ptr
&& ptr
<basic_streambuf_char_epptr(&this->base
))
14285 return (unsigned char)(*basic_streambuf_char__Pninc(&this->base
) = c
);
14287 if(!(this->strmode
& STRSTATE_Dynamic
) || (this->strmode
& STRSTATE_Constant
))
14290 ptr
= basic_streambuf_char_eback(&this->base
);
14291 old_size
= ptr
? basic_streambuf_char_epptr(&this->base
) - ptr
: 0;
14293 size
= old_size
+ old_size
/2;
14294 if(size
< this->minsize
)
14295 size
= this->minsize
;
14298 buf
= this->palloc(size
);
14300 buf
= MSVCRT_operator_new(size
);
14304 memcpy(buf
, ptr
, old_size
);
14305 if(this->strmode
& STRSTATE_Allocated
) {
14309 MSVCRT_operator_delete(ptr
);
14312 this->strmode
|= STRSTATE_Allocated
;
14314 this->seekhigh
= buf
;
14315 basic_streambuf_char_setp(&this->base
, buf
, buf
+size
);
14316 basic_streambuf_char_setg(&this->base
, buf
, buf
, buf
);
14318 this->seekhigh
= this->seekhigh
-ptr
+buf
;
14319 basic_streambuf_char_setp_next(&this->base
, basic_streambuf_char_pbase(&this->base
)-ptr
+buf
,
14320 basic_streambuf_char_pptr(&this->base
)-ptr
+buf
, buf
+size
);
14321 basic_streambuf_char_setg(&this->base
, buf
, basic_streambuf_char_gptr(&this->base
)-ptr
+buf
,
14322 basic_streambuf_char_pptr(&this->base
));
14325 return (unsigned char)(*basic_streambuf_char__Pninc(&this->base
) = c
);
14328 /* ?pbackfail@strstreambuf@std@@MAEHH@Z */
14329 /* ?pbackfail@strstreambuf@std@@MEAAHH@Z */
14330 DEFINE_THISCALL_WRAPPER(strstreambuf_pbackfail
, 8)
14331 int __thiscall
strstreambuf_pbackfail(strstreambuf
*this, int c
)
14333 char *ptr
= basic_streambuf_char_gptr(&this->base
);
14335 TRACE("(%p %d)\n", this, c
);
14337 if(ptr
<=basic_streambuf_char_eback(&this->base
)
14338 || ((this->strmode
& STRSTATE_Constant
) && c
!=ptr
[-1]))
14341 basic_streambuf_char_gbump(&this->base
, -1);
14344 if(this->strmode
& STRSTATE_Constant
)
14345 return (unsigned char)c
;
14347 return (unsigned char)(ptr
[0] = c
);
14350 /* ?seekoff@strstreambuf@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
14351 /* ?seekoff@strstreambuf@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
14352 /* ?seekoff@strstreambuf@std@@MAE?AV?$fpos@H@2@JHH@Z */
14353 /* ?seekoff@strstreambuf@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
14354 #if STREAMOFF_BITS == 64
14355 DEFINE_THISCALL_WRAPPER(strstreambuf_seekoff
, 24)
14357 DEFINE_THISCALL_WRAPPER(strstreambuf_seekoff
, 20)
14359 fpos_mbstatet
* __thiscall
strstreambuf_seekoff(strstreambuf
*this, fpos_mbstatet
*ret
, streamoff off
, int way
, int mode
)
14361 char *eback
= basic_streambuf_char_eback(&this->base
);
14362 char *pptr
= basic_streambuf_char_pptr(&this->base
);
14363 char *gptr
= basic_streambuf_char_gptr(&this->base
);
14365 TRACE("(%p %p %s %d %d)\n", this, ret
, wine_dbgstr_longlong(off
), way
, mode
);
14368 memset(&ret
->state
, 0, sizeof(ret
->state
));
14370 if(pptr
> this->seekhigh
)
14371 this->seekhigh
= pptr
;
14373 if((mode
& OPENMODE_in
) && gptr
) {
14374 if(way
==SEEKDIR_cur
&& !(mode
& OPENMODE_out
))
14376 else if(way
== SEEKDIR_end
)
14377 off
+= this->seekhigh
-eback
;
14378 else if(way
!= SEEKDIR_beg
)
14381 if(off
<0 || off
>this->seekhigh
-eback
) {
14384 basic_streambuf_char_gbump(&this->base
, eback
-gptr
+off
);
14385 if((mode
& OPENMODE_out
) && pptr
) {
14386 basic_streambuf_char_setp_next(&this->base
, eback
,
14387 gptr
, basic_streambuf_char_epptr(&this->base
));
14390 }else if((mode
& OPENMODE_out
) && pptr
) {
14391 if(way
== SEEKDIR_cur
)
14393 else if(way
== SEEKDIR_end
)
14394 off
+= this->seekhigh
-eback
;
14395 else if(way
!= SEEKDIR_beg
)
14398 if(off
<0 || off
>this->seekhigh
-eback
)
14401 basic_streambuf_char_pbump(&this->base
, eback
-pptr
+off
);
14410 /* ?seekpos@strstreambuf@std@@MAE?AV?$fpos@H@2@V32@H@Z */
14411 /* ?seekpos@strstreambuf@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
14412 DEFINE_THISCALL_WRAPPER(strstreambuf_seekpos
, 36)
14413 fpos_mbstatet
* __thiscall
strstreambuf_seekpos(strstreambuf
*this, fpos_mbstatet
*ret
, fpos_mbstatet pos
, int mode
)
14415 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_mbstatet(&pos
), mode
);
14417 if(pos
.off
==-1 && pos
.pos
==0 && MBSTATET_TO_INT(&pos
.state
)==0) {
14422 return strstreambuf_seekoff(this, ret
, pos
.pos
+pos
.off
, SEEKDIR_beg
, mode
);
14425 /* ?underflow@strstreambuf@std@@MAEHXZ */
14426 /* ?underflow@strstreambuf@std@@MEAAHXZ */
14427 DEFINE_THISCALL_WRAPPER(strstreambuf_underflow
, 4)
14428 int __thiscall
strstreambuf_underflow(strstreambuf
*this)
14430 char *gptr
= basic_streambuf_char_gptr(&this->base
);
14433 TRACE("(%p)\n", this);
14438 if(gptr
< basic_streambuf_char_egptr(&this->base
))
14439 return (unsigned char)(*gptr
);
14441 pptr
= basic_streambuf_char_gptr(&this->base
);
14442 if(pptr
> this->seekhigh
)
14443 this->seekhigh
= pptr
;
14445 if(this->seekhigh
<= gptr
)
14448 basic_streambuf_char_setg(&this->base
, basic_streambuf_char_eback(&this->base
),
14449 gptr
, this->seekhigh
);
14450 return (unsigned char)(*gptr
);
14453 static inline basic_ios_char
* ostrstream_to_basic_ios(ostrstream
*ptr
)
14455 return (basic_ios_char
*)((char*)ptr
+ostrstream_vbtable
[1]);
14458 static inline ostrstream
* ostrstream_from_basic_ios(basic_ios_char
*ptr
)
14460 return (ostrstream
*)((char*)ptr
-ostrstream_vbtable
[1]);
14463 /* ??0ostrstream@std@@QAE@PADHH@Z */
14464 #if STREAMSIZE_BITS == 64
14465 DEFINE_THISCALL_WRAPPER(ostrstream_ctor
, 24)
14467 DEFINE_THISCALL_WRAPPER(ostrstream_ctor
, 20)
14469 ostrstream
* __thiscall
ostrstream_ctor(ostrstream
*this, char *buf
, streamsize size
, int mode
, MSVCP_bool virt_init
)
14471 basic_ios_char
*basic_ios
;
14473 TRACE("(%p %p %s %d %d)\n", this, buf
, wine_dbgstr_longlong(size
), mode
, virt_init
);
14476 this->base
.vbtable
= ostrstream_vbtable
;
14477 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
14478 INIT_BASIC_IOS_VTORDISP(basic_ios
);
14479 basic_ios_char_ctor(basic_ios
);
14481 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
14484 strstreambuf_ctor_get_put(&this->buf
, buf
, size
,
14485 buf
&& (mode
& OPENMODE_app
) ? buf
+strlen(buf
) : buf
);
14486 basic_ostream_char_ctor(&this->base
, &this->buf
.base
, FALSE
, FALSE
);
14487 basic_ios
->base
.vtable
= &MSVCP_ostrstream_vtable
;
14491 /* ??1ostrstream@std@@UAE@XZ */
14492 /* ??1ostrstream@std@@UEAA@XZ */
14493 DEFINE_THISCALL_WRAPPER(ostrstream_dtor
, 4)
14494 void __thiscall
ostrstream_dtor(basic_ios_char
*base
)
14496 ostrstream
*this = ostrstream_from_basic_ios(base
);
14498 TRACE("(%p)\n", this);
14500 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&this->base
));
14501 strstreambuf_dtor(&this->buf
);
14504 static void ostrstream_vbase_dtor(ostrstream
*this)
14506 basic_ios_char
*base
= ostrstream_to_basic_ios(this);
14508 TRACE("(%p)\n", this);
14510 ostrstream_dtor(base
);
14511 basic_ios_char_dtor(base
);
14514 DEFINE_THISCALL_WRAPPER(ostrstream_vector_dtor
, 8)
14515 ostrstream
* __thiscall
ostrstream_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
14517 ostrstream
*this = ostrstream_from_basic_ios(base
);
14519 TRACE("(%p %x)\n", this, flags
);
14522 /* we have an array, with the number of elements stored before the first object */
14523 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
14525 for(i
=*ptr
-1; i
>=0; i
--)
14526 ostrstream_vbase_dtor(this+i
);
14527 MSVCRT_operator_delete(ptr
);
14529 ostrstream_vbase_dtor(this);
14531 MSVCRT_operator_delete(this);
14537 static inline istrstream
* istrstream_from_basic_ios(basic_ios_char
*ptr
)
14539 return (istrstream
*)((char*)ptr
-istrstream_vbtable
[1]);
14542 /* ??1istrstream@std@@UAE@XZ */
14543 /* ??1istrstream@std@@UEAA@XZ */
14544 DEFINE_THISCALL_WRAPPER(istrstream_dtor
, 4)
14545 void __thiscall
istrstream_dtor(basic_ios_char
*base
)
14547 istrstream
*this = istrstream_from_basic_ios(base
);
14549 TRACE("(%p)\n", this);
14551 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&this->base
));
14552 strstreambuf_dtor(&this->buf
);
14555 static inline basic_ios_char
* strstream_to_basic_ios(strstream
*ptr
)
14557 return (basic_ios_char
*)((char*)ptr
+strstream_vbtable1
[1]);
14560 static inline strstream
* strstream_from_basic_ios(basic_ios_char
*ptr
)
14562 return (strstream
*)((char*)ptr
-strstream_vbtable1
[1]);
14565 /* ??$?6MDU?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@ABV?$complex@M@0@@Z */
14566 /* ??$?6MDU?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@AEBV?$complex@M@0@@Z */
14567 basic_ostream_char
* __cdecl
basic_ostream_char_print_complex_float(basic_ostream_char
*ostr
, const complex_float
*val
)
14570 basic_ostringstream_char obj
;
14571 basic_ios_char vbase
;
14573 ios_base
*ostringstream_ios_base
, *ostream_ios_base
;
14575 basic_string_char str
;
14576 basic_ostringstream_char_ctor(&oss
.obj
);
14577 ostringstream_ios_base
= &oss
.vbase
.base
;
14578 ostream_ios_base
= &basic_ostream_char_get_basic_ios(ostr
)->base
;
14579 TRACE("(%p %p)\n", ostr
, val
);
14581 ios_base_imbue(ostringstream_ios_base
, &loc
, IOS_LOCALE(ostream_ios_base
));
14583 ios_base_precision_set(ostringstream_ios_base
, ios_base_precision_get(ostream_ios_base
));
14584 ios_base_flags_set(ostringstream_ios_base
, ios_base_flags_get(ostream_ios_base
));
14586 basic_ostream_char_print_ch(&oss
.obj
.base
, '(');
14587 basic_ostream_char_print_float(&oss
.obj
.base
, val
->real
);
14588 basic_ostream_char_print_ch(&oss
.obj
.base
, ',');
14589 basic_ostream_char_print_float(&oss
.obj
.base
, val
->imag
);
14590 basic_ostream_char_print_ch(&oss
.obj
.base
, ')');
14592 basic_ostringstream_char_str_get(&oss
.obj
, &str
);
14593 basic_ostringstream_char_dtor(&oss
.vbase
);
14594 basic_ostream_char_print_bstr(ostr
, &str
);
14595 MSVCP_basic_string_char_dtor(&str
);
14599 /* ??$?6NDU?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@ABV?$complex@N@0@@Z */
14600 /* ??$?6NDU?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@AEBV?$complex@N@0@@Z */
14601 basic_ostream_char
* __cdecl
basic_ostream_char_print_complex_double(basic_ostream_char
*ostr
, const complex_double
*val
)
14604 basic_ostringstream_char obj
;
14605 basic_ios_char vbase
;
14607 ios_base
*ostringstream_ios_base
, *ostream_ios_base
;
14609 basic_string_char str
;
14610 basic_ostringstream_char_ctor(&oss
.obj
);
14611 ostringstream_ios_base
= &oss
.vbase
.base
;
14612 ostream_ios_base
= &basic_ostream_char_get_basic_ios(ostr
)->base
;
14613 TRACE("(%p %p)\n", ostr
, val
);
14615 ios_base_imbue(ostringstream_ios_base
, &loc
, IOS_LOCALE(ostream_ios_base
));
14617 ios_base_precision_set(ostringstream_ios_base
, ios_base_precision_get(ostream_ios_base
));
14618 ios_base_flags_set(ostringstream_ios_base
, ios_base_flags_get(ostream_ios_base
));
14620 basic_ostream_char_print_ch(&oss
.obj
.base
, '(');
14621 basic_ostream_char_print_double(&oss
.obj
.base
, val
->real
);
14622 basic_ostream_char_print_ch(&oss
.obj
.base
, ',');
14623 basic_ostream_char_print_double(&oss
.obj
.base
, val
->imag
);
14624 basic_ostream_char_print_ch(&oss
.obj
.base
, ')');
14626 basic_ostringstream_char_str_get(&oss
.obj
, &str
);
14627 basic_ostringstream_char_dtor(&oss
.vbase
);
14628 basic_ostream_char_print_bstr(ostr
, &str
);
14629 MSVCP_basic_string_char_dtor(&str
);
14633 /* ??$?6odu?$char_traits@d@std@@@std@@yaaav?$basic_ostream@du?$char_traits@d@std@@@0@aav10@abv?$complex@o@0@@Z */
14634 /* ??$?6ODU?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@AEBV?$complex@O@0@@Z */
14635 basic_ostream_char
* __cdecl
basic_ostream_char_print_complex_ldouble(basic_ostream_char
*ostr
, const complex_double
*val
)
14638 basic_ostringstream_char obj
;
14639 basic_ios_char vbase
;
14641 ios_base
*ostringstream_ios_base
, *ostream_ios_base
;
14643 basic_string_char str
;
14644 basic_ostringstream_char_ctor(&oss
.obj
);
14645 ostringstream_ios_base
= &oss
.vbase
.base
;
14646 ostream_ios_base
= &basic_ostream_char_get_basic_ios(ostr
)->base
;
14647 TRACE("(%p %p)\n", ostr
, val
);
14649 ios_base_imbue(ostringstream_ios_base
, &loc
, IOS_LOCALE(ostream_ios_base
));
14651 ios_base_precision_set(ostringstream_ios_base
, ios_base_precision_get(ostream_ios_base
));
14652 ios_base_flags_set(ostringstream_ios_base
, ios_base_flags_get(ostream_ios_base
));
14654 basic_ostream_char_print_ch(&oss
.obj
.base
, '(');
14655 basic_ostream_char_print_ldouble(&oss
.obj
.base
, val
->real
);
14656 basic_ostream_char_print_ch(&oss
.obj
.base
, ',');
14657 basic_ostream_char_print_ldouble(&oss
.obj
.base
, val
->imag
);
14658 basic_ostream_char_print_ch(&oss
.obj
.base
, ')');
14660 basic_ostringstream_char_str_get(&oss
.obj
, &str
);
14661 basic_ostringstream_char_dtor(&oss
.vbase
);
14662 basic_ostream_char_print_bstr(ostr
, &str
);
14663 MSVCP_basic_string_char_dtor(&str
);
14667 /* ?_File_size@sys@tr2@std@@YA_KPBD@Z */
14668 /* ?_File_size@sys@tr2@std@@YA_KPEBD@Z */
14669 ULONGLONG __cdecl
tr2_sys__File_size(char const* path
)
14671 WIN32_FILE_ATTRIBUTE_DATA fad
;
14673 TRACE("(%s)\n", debugstr_a(path
));
14674 if(!GetFileAttributesExA(path
, GetFileExInfoStandard
, &fad
))
14676 if(fad
.dwFileAttributes
& FILE_ATTRIBUTE_DIRECTORY
)
14679 return ((ULONGLONG
)(fad
.nFileSizeHigh
) << 32) + fad
.nFileSizeLow
;
14682 /* ?_Equivalent@sys@tr2@std@@YAHPBD0@Z */
14683 /* ?_Equivalent@sys@tr2@std@@YAHPEBD0@Z */
14684 int __cdecl
tr2_sys__Equivalent(char const* path1
, char const* path2
)
14688 BY_HANDLE_FILE_INFORMATION info1
, info2
;
14689 TRACE("(%s %s)\n", debugstr_a(path1
), debugstr_a(path2
));
14691 h1
= CreateFileA(path1
, 0, FILE_SHARE_DELETE
| FILE_SHARE_READ
| FILE_SHARE_WRITE
,
14692 NULL
, OPEN_EXISTING
, 0, 0);
14693 h2
= CreateFileA(path2
, 0, FILE_SHARE_DELETE
| FILE_SHARE_READ
| FILE_SHARE_WRITE
,
14694 NULL
, OPEN_EXISTING
, 0, 0);
14695 if(h1
== INVALID_HANDLE_VALUE
) {
14696 if(h2
== INVALID_HANDLE_VALUE
) {
14702 }else if(h2
== INVALID_HANDLE_VALUE
) {
14707 ret
= GetFileInformationByHandle(h1
, &info1
) && GetFileInformationByHandle(h2
, &info2
);
14712 return (info1
.dwVolumeSerialNumber
== info2
.dwVolumeSerialNumber
14713 && info1
.nFileIndexHigh
== info2
.nFileIndexHigh
14714 && info1
.nFileIndexLow
== info2
.nFileIndexLow
14718 /* ?_Current_get@sys@tr2@std@@YAPADAAY0BAE@D@Z */
14719 /* ?_Current_get@sys@tr2@std@@YAPEADAEAY0BAE@D@Z */
14720 char* __cdecl
tr2_sys__Current_get(char *current_path
)
14722 TRACE("(%s)\n", debugstr_a(current_path
));
14724 if(!GetCurrentDirectoryA(MAX_PATH
, current_path
))
14726 return current_path
;
14729 /* ?_Current_set@sys@tr2@std@@YA_NPBD@Z */
14730 /* ?_Current_set@sys@tr2@std@@YA_NPEBD@Z */
14731 MSVCP_bool __cdecl
tr2_sys__Current_set(char const* path
)
14733 TRACE("(%s)\n", debugstr_a(path
));
14734 return SetCurrentDirectoryA(path
) != 0;
14737 /* ?_Make_dir@sys@tr2@std@@YAHPBD@Z */
14738 /* ?_Make_dir@sys@tr2@std@@YAHPEBD@Z */
14739 int __cdecl
tr2_sys__Make_dir(char const* path
)
14741 TRACE("(%s)\n", debugstr_a(path
));
14743 if(!CreateDirectoryA(path
, NULL
)) {
14744 if(GetLastError() == ERROR_ALREADY_EXISTS
)
14753 /* ?_Remove_dir@sys@tr2@std@@YA_NPBD@Z */
14754 /* ?_Remove_dir@sys@tr2@std@@YA_NPEBD@Z */
14755 MSVCP_bool __cdecl
tr2_sys__Remove_dir(char const* path
)
14757 TRACE("(%s)\n", debugstr_a(path
));
14758 return RemoveDirectoryA(path
) != 0;
14761 /* ?_Copy_file@sys@tr2@std@@YAHPBD0_N@Z */
14762 /* ?_Copy_file@sys@tr2@std@@YAHPEBD0_N@Z */
14763 int __cdecl
tr2_sys__Copy_file(char const* source
, char const* dest
, MSVCP_bool fail_if_exists
)
14765 TRACE("(%s %s %x)\n", debugstr_a(source
), debugstr_a(dest
), fail_if_exists
);
14767 if(CopyFileA(source
, dest
, fail_if_exists
))
14768 return ERROR_SUCCESS
;
14769 return GetLastError();
14772 /* ?_Rename@sys@tr2@std@@YAHPBD0@Z */
14773 /* ?_Rename@sys@tr2@std@@YAHPEBD0@Z */
14774 int __cdecl
tr2_sys__Rename(char const* old_path
, char const* new_path
)
14776 TRACE("(%s %s)\n", debugstr_a(old_path
), debugstr_a(new_path
));
14778 if(!old_path
|| !new_path
)
14779 return ERROR_INVALID_PARAMETER
;
14781 if(MoveFileExA(old_path
, new_path
, MOVEFILE_COPY_ALLOWED
))
14782 return ERROR_SUCCESS
;
14783 return GetLastError();
14786 /* ?_Statvfs@sys@tr2@std@@YA?AUspace_info@123@PBD@Z */
14787 /* ?_Statvfs@sys@tr2@std@@YA?AUspace_info@123@PEBD@Z */
14788 struct space_info
* __cdecl
tr2_sys__Statvfs(struct space_info
*ret
, const char* path
)
14790 ULARGE_INTEGER available
, total
, free
;
14792 TRACE("(%s)\n", debugstr_a(path
));
14794 if(!path
|| !GetDiskFreeSpaceExA(path
, &available
, &total
, &free
)) {
14795 ret
->capacity
= ret
->free
= ret
->available
= 0;
14797 ret
->capacity
= total
.QuadPart
;
14798 ret
->free
= free
.QuadPart
;
14799 ret
->available
= available
.QuadPart
;
14804 /* ?_Stat@sys@tr2@std@@YA?AW4file_type@123@PBDAAH@Z */
14805 /* ?_Stat@sys@tr2@std@@YA?AW4file_type@123@PEBDAEAH@Z */
14806 enum file_type __cdecl
tr2_sys__Stat(char const* path
, int* err_code
)
14809 TRACE("(%s %p)\n", debugstr_a(path
), err_code
);
14811 *err_code
= ERROR_INVALID_PARAMETER
;
14812 return status_unknown
;
14815 attr
=GetFileAttributesA(path
);
14816 if(attr
== INVALID_FILE_ATTRIBUTES
) {
14817 enum file_type ret
;
14818 switch(GetLastError()) {
14819 case ERROR_FILE_NOT_FOUND
:
14820 case ERROR_BAD_NETPATH
:
14821 case ERROR_INVALID_NAME
:
14822 case ERROR_BAD_PATHNAME
:
14823 case ERROR_PATH_NOT_FOUND
:
14824 ret
= file_not_found
;
14825 *err_code
= ERROR_SUCCESS
;
14828 ret
= status_unknown
;
14829 *err_code
= GetLastError();
14834 *err_code
= ERROR_SUCCESS
;
14835 return (attr
& FILE_ATTRIBUTE_DIRECTORY
)?directory_file
:regular_file
;
14838 /* ?_Lstat@sys@tr2@std@@YA?AW4file_type@123@PBDAAH@Z */
14839 /* ?_Lstat@sys@tr2@std@@YA?AW4file_type@123@PEBDAEAH@Z */
14840 enum file_type __cdecl
tr2_sys__Lstat(char const* path
, int* err_code
)
14842 return tr2_sys__Stat(path
, err_code
);
14845 /* ?_Last_write_time@sys@tr2@std@@YA_JPBD@Z */
14846 /* ?_Last_write_time@sys@tr2@std@@YA_JPEBD@Z */
14847 __int64 __cdecl
tr2_sys__Last_write_time(char const* path
)
14852 __int64 last_write_time
;
14853 TRACE("(%s)\n", debugstr_a(path
));
14855 handle
= CreateFileA(path
, 0, FILE_SHARE_DELETE
| FILE_SHARE_READ
| FILE_SHARE_WRITE
,
14856 NULL
, OPEN_EXISTING
, FILE_FLAG_BACKUP_SEMANTICS
, 0);
14857 if(handle
== INVALID_HANDLE_VALUE
)
14860 ret
= GetFileTime(handle
, 0, 0, &lwt
);
14861 CloseHandle(handle
);
14865 last_write_time
= (((__int64
)lwt
.dwHighDateTime
)<< 32) + lwt
.dwLowDateTime
;
14866 last_write_time
-= TICKS_1601_TO_1970
;
14867 last_write_time
/= TICKSPERSEC
;
14868 return last_write_time
;
14871 /* ?_Last_write_time@sys@tr2@std@@YAXPBD_J@Z */
14872 /* ?_Last_write_time@sys@tr2@std@@YAXPEBD_J@Z */
14873 void __cdecl
tr2_sys__Last_write_time_set(char const* path
, __int64 newtime
)
14877 TRACE("(%s)\n", debugstr_a(path
));
14879 handle
= CreateFileA(path
, FILE_WRITE_ATTRIBUTES
,
14880 FILE_SHARE_DELETE
| FILE_SHARE_READ
| FILE_SHARE_WRITE
,
14881 NULL
, OPEN_EXISTING
, FILE_FLAG_BACKUP_SEMANTICS
, 0);
14882 if(handle
== INVALID_HANDLE_VALUE
)
14885 /* This is the implementation based on the test of msvcp110.
14886 * According to the test of msvcp120,
14887 * msvcp120's implementation does nothing. Obviously, this is a bug of windows.
14890 newtime
*= TICKSPERSEC
;
14891 newtime
+= TICKS_1601_TO_1970
;
14892 lwt
.dwLowDateTime
= (DWORD
)(newtime
);
14893 lwt
.dwHighDateTime
= (DWORD
)(newtime
>> 32);
14894 SetFileTime(handle
, 0, 0, &lwt
);
14895 CloseHandle(handle
);
14898 /* ??_Open_dir@sys@tr2@std@@YAPAXPA_WPB_WAAHAAW4file_type@123@@Z */
14899 /* ??_Open_dir@sys@tr2@std@@YAPEAXPEA_WPEB_WAEAHAEAW4file_type@123@@Z */
14900 void* __cdecl
tr2_sys__Open_dir_wchar(wchar_t* target
, wchar_t const* dest
, int* err_code
, enum file_type
* type
)
14903 WIN32_FIND_DATAW data
;
14904 wchar_t temppath
[MAX_PATH
];
14905 static const wchar_t dot
[] = {'.', 0};
14906 static const wchar_t dotdot
[] = {'.', '.', 0};
14907 static const wchar_t asterisk
[] = {'\\', '*', 0};
14909 TRACE("(%p %s %p %p)\n", target
, debugstr_w(dest
), err_code
, type
);
14910 if(wcslen(dest
) > MAX_PATH
- 3) {
14911 *err_code
= ERROR_BAD_PATHNAME
;
14914 wcscpy(temppath
, dest
);
14915 wcscat(temppath
, asterisk
);
14917 handle
= FindFirstFileW(temppath
, &data
);
14918 if(handle
== INVALID_HANDLE_VALUE
) {
14919 *err_code
= GetLastError();
14922 while(!wcscmp(data
.cFileName
, dot
) || !wcscmp(data
.cFileName
, dotdot
)) {
14923 if(!FindNextFileW(handle
, &data
)) {
14924 *err_code
= ERROR_SUCCESS
;
14925 *type
= status_unknown
;
14931 wcscpy(target
, data
.cFileName
);
14932 *err_code
= ERROR_SUCCESS
;
14933 if(data
.dwFileAttributes
& FILE_ATTRIBUTE_DIRECTORY
)
14934 *type
= directory_file
;
14936 *type
= regular_file
;
14940 /* ?_Open_dir@sys@tr2@std@@YAPAXAAY0BAE@DPBDAAHAAW4file_type@123@@Z */
14941 /* ?_Open_dir@sys@tr2@std@@YAPEAXAEAY0BAE@DPEBDAEAHAEAW4file_type@123@@Z */
14942 void* __cdecl
tr2_sys__Open_dir(char* target
, char const* dest
, int* err_code
, enum file_type
* type
)
14945 wchar_t target_w
[MAX_PATH
];
14946 wchar_t dest_w
[MAX_PATH
];
14948 TRACE("(%p %s %p %p)\n", target
, debugstr_a(dest
), err_code
, type
);
14950 if (dest
&& !MultiByteToWideChar(CP_ACP
, 0, dest
, -1, dest_w
, MAX_PATH
))
14952 WARN("Failed to convert input string.\n");
14953 *err_code
= ERROR_BAD_PATHNAME
;
14957 handle
= tr2_sys__Open_dir_wchar(target_w
, dest
? dest_w
: NULL
, err_code
, type
);
14960 WideCharToMultiByte(CP_ACP
, 0, target_w
, -1, target
, MAX_PATH
, NULL
, NULL
);
14965 /* ??_Read_dir@sys@tr2@std@@YAPA_WPA_WPAXAAW4file_type@123@@Z */
14966 /* ??_Read_dir@sys@tr2@std@@YAPEA_WPEA_WPEAXAEAW4file_type@123@@Z */
14967 wchar_t* __cdecl
tr2_sys__Read_dir_wchar(wchar_t* target
, void* handle
, enum file_type
* type
)
14969 WIN32_FIND_DATAW data
;
14970 static const wchar_t dot
[] = {'.', 0};
14971 static const wchar_t dotdot
[] = {'.', '.', 0};
14973 TRACE("(%p %p %p)\n", target
, handle
, type
);
14976 if(!FindNextFileW(handle
, &data
)) {
14977 *type
= status_unknown
;
14981 } while(!wcscmp(data
.cFileName
, dot
) || !wcscmp(data
.cFileName
, dotdot
));
14983 wcscpy(target
, data
.cFileName
);
14984 if(data
.dwFileAttributes
& FILE_ATTRIBUTE_DIRECTORY
)
14985 *type
= directory_file
;
14987 *type
= regular_file
;
14991 /* ?_Read_dir@sys@tr2@std@@YAPADAAY0BAE@DPAXAAW4file_type@123@@Z */
14992 /* ?_Read_dir@sys@tr2@std@@YAPEADAEAY0BAE@DPEAXAEAW4file_type@123@@Z */
14993 char* __cdecl
tr2_sys__Read_dir(char* target
, void* handle
, enum file_type
* type
)
14995 wchar_t target_w
[MAX_PATH
];
14997 tr2_sys__Read_dir_wchar(target_w
, handle
, type
);
14998 WideCharToMultiByte(CP_ACP
, 0, target_w
, -1, target
, MAX_PATH
, NULL
, NULL
);
15003 /* ?_Close_dir@sys@tr2@std@@YAXPAX@Z */
15004 /* ?_Close_dir@sys@tr2@std@@YAXPEAX@Z */
15005 void __cdecl
tr2_sys__Close_dir(void* handle
)
15007 TRACE("(%p)\n", handle
);
15012 /* ?_Link@sys@tr2@std@@YAHPBD0@Z */
15013 /* ?_Link@sys@tr2@std@@YAHPEBD0@Z */
15014 int __cdecl
tr2_sys__Link(char const* existing_path
, char const* new_path
)
15016 TRACE("(%s %s)\n", debugstr_a(existing_path
), debugstr_a(new_path
));
15017 if(!existing_path
|| !new_path
)
15018 return ERROR_INVALID_PARAMETER
;
15020 if(CreateHardLinkA(new_path
, existing_path
, NULL
))
15021 return ERROR_SUCCESS
;
15022 return GetLastError();
15025 /* ?_Symlink@sys@tr2@std@@YAHPBD0@Z */
15026 /* ?_Symlink@sys@tr2@std@@YAHPEBD0@Z */
15027 int __cdecl
tr2_sys__Symlink(char const* existing_file_name
, char const* file_name
)
15029 TRACE("(%s %s)\n", debugstr_a(existing_file_name
), debugstr_a(file_name
));
15030 if(!existing_file_name
|| !file_name
)
15031 return ERROR_INVALID_PARAMETER
;
15033 if(CreateSymbolicLinkA(file_name
, existing_file_name
, 0))
15034 return ERROR_SUCCESS
;
15035 return GetLastError();
15038 /* ?_Unlink@sys@tr2@std@@YAHPBD@Z */
15039 /* ?_Unlink@sys@tr2@std@@YAHPEBD@Z */
15040 int __cdecl
tr2_sys__Unlink(char const* path
)
15042 TRACE("(%s)\n", debugstr_a(path
));
15044 if(DeleteFileA(path
))
15045 return ERROR_SUCCESS
;
15046 return GetLastError();
15049 /* ??0strstream@std@@QAE@PADHH@Z */
15050 /* ??0strstream@std@@QEAA@PEAD_JH@Z */
15051 #if STREAMSIZE_BITS == 64
15052 DEFINE_THISCALL_WRAPPER(strstream_ctor
, 24)
15054 DEFINE_THISCALL_WRAPPER(strstream_ctor
, 20)
15056 strstream
* __thiscall
strstream_ctor(strstream
*this, char *buf
, streamsize size
, int mode
, MSVCP_bool virt_init
)
15058 basic_ios_char
*basic_ios
;
15060 TRACE("(%p %p %s %d %d)\n", this, buf
, wine_dbgstr_longlong(size
), mode
, virt_init
);
15063 this->base
.base1
.vbtable
= strstream_vbtable1
;
15064 this->base
.base2
.vbtable
= strstream_vbtable2
;
15065 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
15066 INIT_BASIC_IOS_VTORDISP(basic_ios
);
15067 basic_ios_char_ctor(basic_ios
);
15069 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
15072 strstreambuf_ctor_get_put(&this->buf
, buf
, size
,
15073 buf
&& (mode
& OPENMODE_app
) ? buf
+strlen(buf
) : buf
);
15074 basic_iostream_char_ctor(&this->base
, &this->buf
.base
, FALSE
);
15075 basic_ios
->base
.vtable
= &MSVCP_strstream_vtable
;
15079 /* ??1strstream@std@@UAE@XZ */
15080 /* ??1strstream@std@@UEAA@XZ */
15081 DEFINE_THISCALL_WRAPPER(strstream_dtor
, 4)
15082 void __thiscall
strstream_dtor(basic_ios_char
*base
)
15084 strstream
*this = strstream_from_basic_ios(base
);
15086 TRACE("(%p)\n", this);
15088 basic_iostream_char_dtor(basic_iostream_char_to_basic_ios(&this->base
));
15089 strstreambuf_dtor(&this->buf
);
15092 static void strstream_vbase_dtor(strstream
*this)
15094 basic_ios_char
*base
= strstream_to_basic_ios(this);
15096 TRACE("(%p)\n", this);
15098 strstream_dtor(base
);
15099 basic_ios_char_dtor(base
);
15102 DEFINE_THISCALL_WRAPPER(strstream_vector_dtor
, 8)
15103 strstream
* __thiscall
strstream_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
15105 strstream
*this = strstream_from_basic_ios(base
);
15107 TRACE("(%p %x)\n", this, flags
);
15110 /* we have an array, with the number of elements stored before the first object */
15111 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
15113 for(i
=*ptr
-1; i
>=0; i
--)
15114 strstream_vbase_dtor(this+i
);
15115 MSVCRT_operator_delete(ptr
);
15117 strstream_vbase_dtor(this);
15119 MSVCRT_operator_delete(this);
15125 static void __cdecl
setprecision_func(ios_base
*base
, streamsize prec
)
15127 ios_base_precision_set(base
, prec
);
15130 /* ?setprecision@std@@YA?AU?$_Smanip@H@1@H@Z */
15131 /* ?setprecision@std@@YA?AU?$_Smanip@_J@1@_J@Z */
15132 manip_streamsize
* __cdecl
setprecision(manip_streamsize
*ret
, streamsize prec
)
15134 TRACE("(%p %s)\n", ret
, wine_dbgstr_longlong(prec
));
15136 ret
->pfunc
= setprecision_func
;
15141 static void __cdecl
setw_func(ios_base
*base
, streamsize width
)
15143 ios_base_width_set(base
, width
);
15146 /* ?setw@std@@YA?AU?$_Smanip@H@1@H@Z */
15147 /* ?setw@std@@YA?AU?$_Smanip@_J@1@_J@Z */
15148 manip_streamsize
* __cdecl
setw(manip_streamsize
*ret
, streamsize width
)
15150 TRACE("(%p %s)\n", ret
, wine_dbgstr_longlong(width
));
15152 ret
->pfunc
= setw_func
;
15157 static void __cdecl
resetioflags_func(ios_base
*base
, int mask
)
15159 ios_base_setf_mask(base
, 0, mask
);
15162 /* ?resetiosflags@std@@YA?AU?$_Smanip@H@1@H@Z */
15163 manip_int
* __cdecl
resetiosflags(manip_int
*ret
, int mask
)
15165 TRACE("(%p %d)\n", ret
, mask
);
15167 ret
->pfunc
= resetioflags_func
;
15172 static void __cdecl
setiosflags_func(ios_base
*base
, int mask
)
15174 ios_base_setf_mask(base
, FMTFLAG_mask
, mask
);
15177 /* ?setiosflags@std@@YA?AU?$_Smanip@H@1@H@Z */
15178 manip_int
* __cdecl
setiosflags(manip_int
*ret
, int mask
)
15180 TRACE("(%p %d)\n", ret
, mask
);
15182 ret
->pfunc
= setiosflags_func
;
15187 static void __cdecl
setbase_func(ios_base
*base
, int set_base
)
15190 set_base
= FMTFLAG_dec
;
15191 else if(set_base
== 8)
15192 set_base
= FMTFLAG_oct
;
15193 else if(set_base
== 16)
15194 set_base
= FMTFLAG_hex
;
15198 ios_base_setf_mask(base
, set_base
, FMTFLAG_basefield
);
15201 /* ?setbase@std@@YA?AU?$_Smanip@H@1@H@Z */
15202 manip_int
* __cdecl
setbase(manip_int
*ret
, int base
)
15204 TRACE("(%p %d)\n", ret
, base
);
15206 ret
->pfunc
= setbase_func
;
15211 static basic_filebuf_char filebuf_char_stdin
;
15212 /* ?cin@std@@3V?$basic_istream@DU?$char_traits@D@std@@@1@A */
15214 basic_istream_char obj
;
15215 #if _MSVCP_VER >= 110
15218 basic_ios_char vbase
;
15220 C_ASSERT(sizeof(cin
) == VBTABLE_BASIC_IOS_ENTRY(basic_istream_char
, 0)+sizeof(basic_ios_char
));
15221 /* ?_Ptr_cin@std@@3PAV?$basic_istream@DU?$char_traits@D@std@@@1@A */
15222 /* ?_Ptr_cin@std@@3PEAV?$basic_istream@DU?$char_traits@D@std@@@1@EA */
15223 basic_istream_char
*_Ptr_cin
= &cin
.obj
;
15225 static basic_filebuf_wchar filebuf_short_stdin
;
15226 /* ?wcin@std@@3V?$basic_istream@GU?$char_traits@G@std@@@1@A */
15228 basic_istream_wchar obj
;
15229 #if _MSVCP_VER >= 110
15232 basic_ios_wchar vbase
;
15233 } ucin
= { { 0 } };
15234 C_ASSERT(sizeof(ucin
) == VBTABLE_BASIC_IOS_ENTRY(basic_istream_wchar
, 0)+sizeof(basic_ios_wchar
));
15235 /* ?_Ptr_wcin@std@@3PAV?$basic_istream@GU?$char_traits@G@std@@@1@A */
15236 /* ?_Ptr_wcin@std@@3PEAV?$basic_istream@GU?$char_traits@G@std@@@1@EA */
15237 basic_istream_wchar
*_Ptr_ucin
= &ucin
.obj
;
15239 static basic_filebuf_wchar filebuf_wchar_stdin
;
15240 /* ?wcin@std@@3V?$basic_istream@_WU?$char_traits@_W@std@@@1@A */
15242 basic_istream_wchar obj
;
15243 #if _MSVCP_VER >= 110
15246 basic_ios_wchar vbase
;
15247 } wcin
= { { 0 } };
15248 C_ASSERT(sizeof(wcin
) == VBTABLE_BASIC_IOS_ENTRY(basic_istream_wchar
, 0)+sizeof(basic_ios_wchar
));
15249 /* ?_Ptr_wcin@std@@3PAV?$basic_istream@_WU?$char_traits@_W@std@@@1@A */
15250 /* ?_Ptr_wcin@std@@3PEAV?$basic_istream@_WU?$char_traits@_W@std@@@1@EA */
15251 basic_istream_wchar
*_Ptr_wcin
= &wcin
.obj
;
15253 static basic_filebuf_char filebuf_char_stdout
;
15254 /* ?cout@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A */
15256 basic_ostream_char obj
;
15257 #if _MSVCP_VER >= 110
15260 basic_ios_char vbase
;
15261 } cout
= { { 0 } };
15262 C_ASSERT(sizeof(cout
) == VBTABLE_BASIC_IOS_ENTRY(basic_ostream_char
, 0)+sizeof(basic_ios_char
));
15263 /* ?_Ptr_cout@std@@3PAV?$basic_ostream@DU?$char_traits@D@std@@@1@A */
15264 /* ?_Ptr_cout@std@@3PEAV?$basic_ostream@DU?$char_traits@D@std@@@1@EA */
15265 basic_ostream_char
*_Ptr_cout
= &cout
.obj
;
15267 static basic_filebuf_wchar filebuf_short_stdout
;
15268 /* ?wcout@std@@3V?$basic_ostream@GU?$char_traits@G@std@@@1@A */
15270 basic_ostream_wchar obj
;
15271 #if _MSVCP_VER >= 110
15274 basic_ios_wchar vbase
;
15275 } ucout
= { { 0 } };
15276 C_ASSERT(sizeof(ucout
) == VBTABLE_BASIC_IOS_ENTRY(basic_ostream_wchar
, 0)+sizeof(basic_ios_wchar
));
15277 /* ?_Ptr_wcout@std@@3PAV?$basic_ostream@GU?$char_traits@G@std@@@1@A */
15278 /* ?_Ptr_wcout@std@@3PEAV?$basic_ostream@GU?$char_traits@G@std@@@1@EA */
15279 basic_ostream_wchar
*_Ptr_ucout
= &ucout
.obj
;
15281 static basic_filebuf_wchar filebuf_wchar_stdout
;
15282 /* ?wcout@std@@3V?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
15284 basic_ostream_wchar obj
;
15285 #if _MSVCP_VER >= 110
15288 basic_ios_wchar vbase
;
15289 } wcout
= { { 0 } };
15290 C_ASSERT(sizeof(wcout
) == VBTABLE_BASIC_IOS_ENTRY(basic_ostream_wchar
, 0)+sizeof(basic_ios_wchar
));
15291 /* ?_Ptr_wcout@std@@3PAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
15292 /* ?_Ptr_wcout@std@@3PEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@EA */
15293 basic_ostream_wchar
*_Ptr_wcout
= &wcout
.obj
;
15295 static basic_filebuf_char filebuf_char_stderr
;
15296 /* ?cerr@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A */
15298 basic_ostream_char obj
;
15299 #if _MSVCP_VER >= 110
15302 basic_ios_char vbase
;
15303 } cerr
= { { 0 } };
15304 C_ASSERT(sizeof(cerr
) == VBTABLE_BASIC_IOS_ENTRY(basic_ostream_char
, 0)+sizeof(basic_ios_char
));
15305 /* ?_Ptr_cerr@std@@3PAV?$basic_ostream@DU?$char_traits@D@std@@@1@A */
15306 /* ?_Ptr_cerr@std@@3PEAV?$basic_ostream@DU?$char_traits@D@std@@@1@EA */
15307 basic_ostream_char
*_Ptr_cerr
= &cerr
.obj
;
15309 static basic_filebuf_wchar filebuf_short_stderr
;
15310 /* ?wcerr@std@@3V?$basic_ostream@GU?$char_traits@G@std@@@1@A */
15312 basic_ostream_wchar obj
;
15313 #if _MSVCP_VER >= 110
15316 basic_ios_wchar vbase
;
15317 } ucerr
= { { 0 } };
15318 C_ASSERT(sizeof(ucerr
) == VBTABLE_BASIC_IOS_ENTRY(basic_ostream_wchar
, 0)+sizeof(basic_ios_wchar
));
15319 /* ?_Ptr_wcerr@std@@3PAV?$basic_ostream@GU?$char_traits@G@std@@@1@A */
15320 /* ?_Ptr_wcerr@std@@3PEAV?$basic_ostream@GU?$char_traits@G@std@@@1@EA */
15321 basic_ostream_wchar
*_Ptr_ucerr
= &ucerr
.obj
;
15323 static basic_filebuf_wchar filebuf_wchar_stderr
;
15324 /* ?wcerr@std@@3V?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
15326 basic_ostream_wchar obj
;
15327 #if _MSVCP_VER >= 110
15330 basic_ios_wchar vbase
;
15331 } wcerr
= { { 0 } };
15332 C_ASSERT(sizeof(wcerr
) == VBTABLE_BASIC_IOS_ENTRY(basic_ostream_wchar
, 0)+sizeof(basic_ios_wchar
));
15333 /* ?_Ptr_wcerr@std@@3PAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
15334 /* ?_Ptr_wcerr@std@@3PEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@EA */
15335 basic_ostream_wchar
*_Ptr_wcerr
= &wcerr
.obj
;
15337 static basic_filebuf_char filebuf_char_log
;
15338 /* ?clog@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A */
15340 basic_ostream_char obj
;
15341 #if _MSVCP_VER >= 110
15344 basic_ios_char vbase
;
15345 } clog
= { { 0 } };
15346 C_ASSERT(sizeof(clog
) == VBTABLE_BASIC_IOS_ENTRY(basic_ostream_char
, 0)+sizeof(basic_ios_char
));
15347 /* ?_Ptr_clog@std@@3PAV?$basic_ostream@DU?$char_traits@D@std@@@1@A */
15348 /* ?_Ptr_clog@std@@3PEAV?$basic_ostream@DU?$char_traits@D@std@@@1@EA */
15349 basic_ostream_char
*_Ptr_clog
= &clog
.obj
;
15351 static basic_filebuf_wchar filebuf_short_log
;
15352 /* ?wclog@std@@3V?$basic_ostream@GU?$char_traits@G@std@@@1@A */
15354 basic_ostream_wchar obj
;
15355 #if _MSVCP_VER >= 110
15358 basic_ios_wchar vbase
;
15359 } uclog
= { { 0 } };
15360 C_ASSERT(sizeof(uclog
) == VBTABLE_BASIC_IOS_ENTRY(basic_ostream_wchar
, 0)+sizeof(basic_ios_wchar
));
15361 /* ?_Ptr_wclog@std@@3PAV?$basic_ostream@GU?$char_traits@G@std@@@1@A */
15362 /* ?_Ptr_wclog@std@@3PEAV?$basic_ostream@GU?$char_traits@G@std@@@1@EA */
15363 basic_ostream_wchar
*_Ptr_uclog
= &uclog
.obj
;
15365 static basic_filebuf_wchar filebuf_wchar_log
;
15366 /* ?wclog@std@@3V?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
15368 basic_ostream_wchar obj
;
15369 #if _MSVCP_VER >= 110
15372 basic_ios_wchar vbase
;
15373 } wclog
= { { 0 } };
15374 C_ASSERT(sizeof(wclog
) == VBTABLE_BASIC_IOS_ENTRY(basic_ostream_wchar
, 0)+sizeof(basic_ios_wchar
));
15375 /* ?_Ptr_wclog@std@@3PAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
15376 /* ?_Ptr_wclog@std@@3PEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@EA */
15377 basic_ostream_wchar
*_Ptr_wclog
= &wclog
.obj
;
15379 /* ?_Init_cnt@Init@ios_base@std@@0HA */
15380 int ios_base_Init__Init_cnt
= -1;
15382 /* ?_Init_cnt_func@Init@ios_base@std@@CAAAHXZ */
15383 /* ?_Init_cnt_func@Init@ios_base@std@@CAAEAHXZ */
15384 int* __cdecl
ios_base_Init__Init_cnt_func(void)
15386 return &ios_base_Init__Init_cnt
;
15389 /* ?_Init_ctor@Init@ios_base@std@@CAXPAV123@@Z */
15390 /* ?_Init_ctor@Init@ios_base@std@@CAXPEAV123@@Z */
15391 void __cdecl
ios_base_Init__Init_ctor(void *this)
15393 TRACE("(%p)\n", this);
15395 if(ios_base_Init__Init_cnt
< 0)
15396 ios_base_Init__Init_cnt
= 1;
15398 ios_base_Init__Init_cnt
++;
15401 /* ??0Init@ios_base@std@@QAE@XZ */
15402 /* ??0Init@ios_base@std@@QEAA@XZ */
15403 DEFINE_THISCALL_WRAPPER(ios_base_Init_ctor
, 4)
15404 void* __thiscall
ios_base_Init_ctor(void *this)
15406 ios_base_Init__Init_ctor(this);
15410 /* ?_Init_dtor@Init@ios_base@std@@CAXPAV123@@Z */
15411 /* ?_Init_dtor@Init@ios_base@std@@CAXPEAV123@@Z */
15412 void __cdecl
ios_base_Init__Init_dtor(void *this)
15414 TRACE("(%p)\n", this);
15416 ios_base_Init__Init_cnt
--;
15417 if(!ios_base_Init__Init_cnt
) {
15418 basic_ostream_char_flush(&cout
.obj
);
15419 basic_ostream_char_flush(&cerr
.obj
);
15420 basic_ostream_char_flush(&clog
.obj
);
15424 /* ??1Init@ios_base@std@@QAE@XZ */
15425 /* ??1Init@ios_base@std@@QEAA@XZ */
15426 DEFINE_THISCALL_WRAPPER(ios_base_Init_dtor
, 4)
15427 void __thiscall
ios_base_Init_dtor(void *this)
15429 ios_base_Init__Init_dtor(this);
15432 /* ??4Init@ios_base@std@@QAEAAV012@ABV012@@Z */
15433 /* ??4Init@ios_base@std@@QEAAAEAV012@AEBV012@@Z */
15434 DEFINE_THISCALL_WRAPPER(ios_base_Init_op_assign
, 8)
15435 void* __thiscall
ios_base_Init_op_assign(void *this, void *rhs
)
15437 TRACE("(%p %p)\n", this, rhs
);
15441 /* ?_Init_cnt@_Winit@std@@0HA */
15442 int _Winit__Init_cnt
= -1;
15444 /* ??0_Winit@std@@QAE@XZ */
15445 /* ??0_Winit@std@@QEAA@XZ */
15446 DEFINE_THISCALL_WRAPPER(_Winit_ctor
, 4)
15447 void* __thiscall
_Winit_ctor(void *this)
15449 TRACE("(%p)\n", this);
15451 if(_Winit__Init_cnt
< 0)
15452 _Winit__Init_cnt
= 1;
15454 _Winit__Init_cnt
++;
15459 /* ?_File_size@sys@tr2@std@@YA_KPB_W@Z */
15460 /* ?_File_size@sys@tr2@std@@YA_KPEB_W@Z */
15461 ULONGLONG __cdecl
tr2_sys__File_size_wchar(WCHAR
const* path
)
15463 WIN32_FILE_ATTRIBUTE_DATA fad
;
15465 TRACE("(%s)\n", debugstr_w(path
));
15466 if(!GetFileAttributesExW(path
, GetFileExInfoStandard
, &fad
))
15468 if(fad
.dwFileAttributes
& FILE_ATTRIBUTE_DIRECTORY
)
15471 return ((ULONGLONG
)(fad
.nFileSizeHigh
) << 32) + fad
.nFileSizeLow
;
15474 /* _File_size, msvcp140 version. Different error handling. */
15475 ULONGLONG __cdecl
_File_size(WCHAR
const* path
)
15477 WIN32_FILE_ATTRIBUTE_DATA fad
;
15479 TRACE("(%s)\n", debugstr_w(path
));
15480 if(!GetFileAttributesExW(path
, GetFileExInfoStandard
, &fad
))
15481 return ~(ULONGLONG
)0;
15483 return ((ULONGLONG
)(fad
.nFileSizeHigh
) << 32) + fad
.nFileSizeLow
;
15486 /* ?_Equivalent@sys@tr2@std@@YAHPB_W0@Z */
15487 /* ?_Equivalent@sys@tr2@std@@YAHPEB_W0@Z */
15488 int __cdecl
tr2_sys__Equivalent_wchar(WCHAR
const* path1
, WCHAR
const* path2
)
15492 BY_HANDLE_FILE_INFORMATION info1
, info2
;
15493 TRACE("(%s %s)\n", debugstr_w(path1
), debugstr_w(path2
));
15495 h1
= CreateFileW(path1
, 0, FILE_SHARE_DELETE
| FILE_SHARE_READ
| FILE_SHARE_WRITE
,
15496 NULL
, OPEN_EXISTING
, 0, 0);
15497 h2
= CreateFileW(path2
, 0, FILE_SHARE_DELETE
| FILE_SHARE_READ
| FILE_SHARE_WRITE
,
15498 NULL
, OPEN_EXISTING
, 0, 0);
15499 if(h1
== INVALID_HANDLE_VALUE
) {
15500 if(h2
== INVALID_HANDLE_VALUE
) {
15506 }else if(h2
== INVALID_HANDLE_VALUE
) {
15511 ret
= GetFileInformationByHandle(h1
, &info1
) && GetFileInformationByHandle(h2
, &info2
);
15516 return (info1
.dwVolumeSerialNumber
== info2
.dwVolumeSerialNumber
15517 && info1
.nFileIndexHigh
== info2
.nFileIndexHigh
15518 && info1
.nFileIndexLow
== info2
.nFileIndexLow
15522 /* ?_Current_get@sys@tr2@std@@YAPA_WAAY0BAE@_W@Z */
15523 /* ?_Current_get@sys@tr2@std@@YAPEA_WAEAY0BAE@_W@Z */
15524 WCHAR
* __cdecl
tr2_sys__Current_get_wchar(WCHAR
*current_path
)
15526 TRACE("(%s)\n", debugstr_w(current_path
));
15528 if(!GetCurrentDirectoryW(MAX_PATH
, current_path
))
15530 return current_path
;
15533 /* _Current_get, msvcp140 version */
15534 BOOL __cdecl
_Current_get(WCHAR
*current_path
)
15536 TRACE("(%s)\n", debugstr_w(current_path
));
15538 if(!GetCurrentDirectoryW(MAX_PATH
, current_path
))
15543 /* ?_Current_set@sys@tr2@std@@YA_NPB_W@Z */
15544 /* ?_Current_set@sys@tr2@std@@YA_NPEB_W@Z */
15545 MSVCP_bool __cdecl
tr2_sys__Current_set_wchar(WCHAR
const* path
)
15547 TRACE("(%s)\n", debugstr_w(path
));
15548 return SetCurrentDirectoryW(path
) != 0;
15551 /* ?_Make_dir@sys@tr2@std@@YAHPB_W@Z */
15552 /* ?_Make_dir@sys@tr2@std@@YAHPEB_W@Z */
15553 int __cdecl
tr2_sys__Make_dir_wchar(WCHAR
const* path
)
15555 TRACE("(%s)\n", debugstr_w(path
));
15557 if(!CreateDirectoryW(path
, NULL
)) {
15558 if(GetLastError() == ERROR_ALREADY_EXISTS
)
15567 /* ?_Remove_dir@sys@tr2@std@@YA_NPB_W@Z */
15568 /* ?_Remove_dir@sys@tr2@std@@YA_NPEB_W@Z */
15569 MSVCP_bool __cdecl
tr2_sys__Remove_dir_wchar(WCHAR
const* path
)
15571 TRACE("(%s)\n", debugstr_w(path
));
15572 return RemoveDirectoryW(path
) != 0;
15575 /* ?_Copy_file@sys@tr2@std@@YAHPB_W0_N@Z */
15576 /* ?_Copy_file@sys@tr2@std@@YAHPEB_W0_N@Z */
15577 int __cdecl
tr2_sys__Copy_file_wchar(WCHAR
const* source
, WCHAR
const* dest
, MSVCP_bool fail_if_exists
)
15579 TRACE("(%s %s %x)\n", debugstr_w(source
), debugstr_w(dest
), fail_if_exists
);
15581 if(CopyFileW(source
, dest
, fail_if_exists
))
15582 return ERROR_SUCCESS
;
15583 return GetLastError();
15586 /* ?_Rename@sys@tr2@std@@YAHPB_W0@Z */
15587 /* ?_Rename@sys@tr2@std@@YAHPEB_W0@Z */
15588 int __cdecl
tr2_sys__Rename_wchar(WCHAR
const* old_path
, WCHAR
const* new_path
)
15590 TRACE("(%s %s)\n", debugstr_w(old_path
), debugstr_w(new_path
));
15592 if(!old_path
|| !new_path
)
15593 return ERROR_INVALID_PARAMETER
;
15595 if(MoveFileExW(old_path
, new_path
, MOVEFILE_COPY_ALLOWED
))
15596 return ERROR_SUCCESS
;
15597 return GetLastError();
15600 /* ?_Statvfs@sys@tr2@std@@YA?AUspace_info@123@PB_W@Z */
15601 /* ?_Statvfs@sys@tr2@std@@YA?AUspace_info@123@PEB_W@Z */
15602 struct space_info
* __cdecl
tr2_sys__Statvfs_wchar(struct space_info
*ret
, const WCHAR
* path
)
15604 ULARGE_INTEGER available
, total
, free
;
15606 TRACE("(%s)\n", debugstr_w(path
));
15608 if(!path
|| !GetDiskFreeSpaceExW(path
, &available
, &total
, &free
)) {
15609 ret
->capacity
= ret
->free
= ret
->available
= 0;
15611 ret
->capacity
= total
.QuadPart
;
15612 ret
->free
= free
.QuadPart
;
15613 ret
->available
= available
.QuadPart
;
15618 /* ?_Stat@sys@tr2@std@@YA?AW4file_type@123@PB_WAAH@Z */
15619 /* ?_Stat@sys@tr2@std@@YA?AW4file_type@123@PEB_WAEAH@Z */
15620 enum file_type __cdecl
tr2_sys__Stat_wchar(WCHAR
const* path
, int* err_code
)
15623 TRACE("(%s %p)\n", debugstr_w(path
), err_code
);
15625 *err_code
= ERROR_INVALID_PARAMETER
;
15626 return status_unknown
;
15629 attr
=GetFileAttributesW(path
);
15630 if(attr
== INVALID_FILE_ATTRIBUTES
) {
15631 enum file_type ret
;
15632 switch(GetLastError()) {
15633 case ERROR_FILE_NOT_FOUND
:
15634 case ERROR_BAD_NETPATH
:
15635 case ERROR_INVALID_NAME
:
15636 case ERROR_BAD_PATHNAME
:
15637 case ERROR_PATH_NOT_FOUND
:
15638 ret
= file_not_found
;
15639 *err_code
= ERROR_SUCCESS
;
15642 ret
= status_unknown
;
15643 *err_code
= GetLastError();
15648 *err_code
= ERROR_SUCCESS
;
15649 return (attr
& FILE_ATTRIBUTE_DIRECTORY
)?directory_file
:regular_file
;
15652 /* ?_Lstat@sys@tr2@std@@YA?AW4file_type@123@PB_WAAH@Z */
15653 /* ?_Lstat@sys@tr2@std@@YA?AW4file_type@123@PEB_WAEAH@Z */
15654 enum file_type __cdecl
tr2_sys__Lstat_wchar(WCHAR
const* path
, int* err_code
)
15656 return tr2_sys__Stat_wchar(path
, err_code
);
15659 /* ??1_Winit@std@@QAE@XZ */
15660 /* ??1_Winit@std@@QAE@XZ */
15661 DEFINE_THISCALL_WRAPPER(_Winit_dtor
, 4)
15662 void __thiscall
_Winit_dtor(void *this)
15664 TRACE("(%p)\n", this);
15666 _Winit__Init_cnt
--;
15667 if(!_Winit__Init_cnt
) {
15668 basic_ostream_wchar_flush(&wcout
.obj
);
15669 basic_ostream_wchar_flush(&wcerr
.obj
);
15670 basic_ostream_wchar_flush(&wclog
.obj
);
15674 /* ??4_Winit@std@@QAEAAV01@ABV01@@Z */
15675 /* ??4_Winit@std@@QEAAAEAV01@AEBV01@@Z */
15676 DEFINE_THISCALL_WRAPPER(_Winit_op_assign
, 8)
15677 void* __thiscall
_Winit_op_assign(void *this, void *rhs
)
15679 TRACE("(%p %p)\n", this, rhs
);
15683 void init_io(void *base
)
15686 init_iosb_rtti(base
);
15687 init_ios_base_rtti(base
);
15688 init_basic_ios_char_rtti(base
);
15689 init_basic_ios_wchar_rtti(base
);
15690 init_basic_ios_short_rtti(base
);
15691 init_basic_streambuf_char_rtti(base
);
15692 init_basic_streambuf_wchar_rtti(base
);
15693 init_basic_streambuf_short_rtti(base
);
15694 init_basic_filebuf_char_rtti(base
);
15695 init_basic_filebuf_wchar_rtti(base
);
15696 init_basic_filebuf_short_rtti(base
);
15697 init_basic_stringbuf_char_rtti(base
);
15698 init_basic_stringbuf_wchar_rtti(base
);
15699 init_basic_stringbuf_short_rtti(base
);
15700 init_basic_ostream_char_rtti(base
);
15701 init_basic_ostream_wchar_rtti(base
);
15702 init_basic_ostream_short_rtti(base
);
15703 init_basic_istream_char_rtti(base
);
15704 init_basic_istream_wchar_rtti(base
);
15705 init_basic_istream_short_rtti(base
);
15706 init_basic_iostream_char_rtti(base
);
15707 init_basic_iostream_wchar_rtti(base
);
15708 init_basic_iostream_short_rtti(base
);
15709 init_basic_ofstream_char_rtti(base
);
15710 init_basic_ofstream_wchar_rtti(base
);
15711 init_basic_ofstream_short_rtti(base
);
15712 init_basic_ifstream_char_rtti(base
);
15713 init_basic_ifstream_wchar_rtti(base
);
15714 init_basic_ifstream_short_rtti(base
);
15715 init_basic_fstream_char_rtti(base
);
15716 init_basic_fstream_wchar_rtti(base
);
15717 init_basic_fstream_short_rtti(base
);
15718 init_basic_ostringstream_char_rtti(base
);
15719 init_basic_ostringstream_wchar_rtti(base
);
15720 init_basic_ostringstream_short_rtti(base
);
15721 init_basic_istringstream_char_rtti(base
);
15722 init_basic_istringstream_wchar_rtti(base
);
15723 init_basic_istringstream_short_rtti(base
);
15724 init_basic_stringstream_char_rtti(base
);
15725 init_basic_stringstream_wchar_rtti(base
);
15726 init_basic_stringstream_short_rtti(base
);
15727 init_strstreambuf_rtti(base
);
15728 init_strstream_rtti(base
);
15729 init_ostrstream_rtti(base
);
15732 basic_filebuf_char_ctor_file(&filebuf_char_stdin
, stdin
);
15733 basic_istream_char_ctor(&cin
.obj
, &filebuf_char_stdin
.base
, FALSE
/*FIXME*/, TRUE
);
15735 basic_filebuf_short_ctor_file(&filebuf_short_stdin
, stdin
);
15736 basic_istream_short_ctor(&ucin
.obj
, &filebuf_short_stdin
.base
, FALSE
/*FIXME*/, TRUE
);
15738 basic_filebuf_wchar_ctor_file(&filebuf_wchar_stdin
, stdin
);
15739 basic_istream_wchar_ctor(&wcin
.obj
, &filebuf_wchar_stdin
.base
, FALSE
/*FIXME*/, TRUE
);
15741 basic_filebuf_char_ctor_file(&filebuf_char_stdout
, stdout
);
15742 basic_ostream_char_ctor(&cout
.obj
, &filebuf_char_stdout
.base
, FALSE
/*FIXME*/, TRUE
);
15744 basic_filebuf_short_ctor_file(&filebuf_short_stdout
, stdout
);
15745 basic_ostream_short_ctor(&ucout
.obj
, &filebuf_short_stdout
.base
, FALSE
/*FIXME*/, TRUE
);
15747 basic_filebuf_wchar_ctor_file(&filebuf_wchar_stdout
, stdout
);
15748 basic_ostream_wchar_ctor(&wcout
.obj
, &filebuf_wchar_stdout
.base
, FALSE
/*FIXME*/, TRUE
);
15750 basic_filebuf_char_ctor_file(&filebuf_char_stderr
, stderr
);
15751 basic_ostream_char_ctor(&cerr
.obj
, &filebuf_char_stderr
.base
, FALSE
/*FIXME*/, TRUE
);
15753 basic_filebuf_short_ctor_file(&filebuf_short_stderr
, stderr
);
15754 basic_ostream_short_ctor(&ucerr
.obj
, &filebuf_short_stderr
.base
, FALSE
/*FIXME*/, TRUE
);
15756 basic_filebuf_wchar_ctor_file(&filebuf_wchar_stderr
, stderr
);
15757 basic_ostream_wchar_ctor(&wcerr
.obj
, &filebuf_wchar_stderr
.base
, FALSE
/*FIXME*/, TRUE
);
15759 basic_filebuf_char_ctor_file(&filebuf_char_log
, stderr
);
15760 basic_ostream_char_ctor(&clog
.obj
, &filebuf_char_log
.base
, FALSE
/*FIXME*/, TRUE
);
15762 basic_filebuf_short_ctor_file(&filebuf_short_log
, stderr
);
15763 basic_ostream_short_ctor(&uclog
.obj
, &filebuf_short_log
.base
, FALSE
/*FIXME*/, TRUE
);
15765 basic_filebuf_wchar_ctor_file(&filebuf_wchar_log
, stderr
);
15766 basic_ostream_wchar_ctor(&wclog
.obj
, &filebuf_wchar_log
.base
, FALSE
/*FIXME*/, TRUE
);
15771 basic_istream_char_vbase_dtor(&cin
.obj
);
15772 basic_filebuf_char_dtor(&filebuf_char_stdin
);
15774 basic_istream_wchar_vbase_dtor(&ucin
.obj
);
15775 basic_filebuf_wchar_dtor(&filebuf_short_stdin
);
15777 basic_istream_wchar_vbase_dtor(&wcin
.obj
);
15778 basic_filebuf_wchar_dtor(&filebuf_wchar_stdin
);
15780 basic_ostream_char_vbase_dtor(&cout
.obj
);
15781 basic_filebuf_char_dtor(&filebuf_char_stdout
);
15783 basic_ostream_wchar_vbase_dtor(&ucout
.obj
);
15784 basic_filebuf_wchar_dtor(&filebuf_short_stdout
);
15786 basic_ostream_wchar_vbase_dtor(&wcout
.obj
);
15787 basic_filebuf_wchar_dtor(&filebuf_wchar_stdout
);
15789 basic_ostream_char_vbase_dtor(&cerr
.obj
);
15790 basic_filebuf_char_dtor(&filebuf_char_stderr
);
15792 basic_ostream_wchar_vbase_dtor(&ucerr
.obj
);
15793 basic_filebuf_wchar_dtor(&filebuf_short_stderr
);
15795 basic_ostream_wchar_vbase_dtor(&wcerr
.obj
);
15796 basic_filebuf_wchar_dtor(&filebuf_wchar_stderr
);
15798 basic_ostream_char_vbase_dtor(&clog
.obj
);
15799 basic_filebuf_char_dtor(&filebuf_char_log
);
15801 basic_ostream_wchar_vbase_dtor(&uclog
.obj
);
15802 basic_filebuf_wchar_dtor(&filebuf_short_log
);
15804 basic_ostream_wchar_vbase_dtor(&wclog
.obj
);
15805 basic_filebuf_wchar_dtor(&filebuf_wchar_log
);