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
29 #include "wine/debug.h"
30 WINE_DEFAULT_DEBUG_CHANNEL(msvcp
);
32 #define SECSPERDAY 86400
33 /* 1601 to 1970 is 369 years plus 89 leap days */
34 #define SECS_1601_TO_1970 ((369 * 365 + 89) * (ULONGLONG)SECSPERDAY)
35 #define TICKSPERSEC 10000000
36 #define TICKS_1601_TO_1970 (SECS_1601_TO_1970 * TICKSPERSEC)
38 /* ?_Index@ios_base@std@@0HA */
39 int ios_base_Index
= 0;
40 /* ?_Sync@ios_base@std@@0_NA */
41 MSVCP_bool ios_base_Sync
= FALSE
;
45 __int64
DECLSPEC_ALIGN(8) pos
;
49 static inline const char* debugstr_fpos_int(fpos_int
*fpos
)
51 return wine_dbg_sprintf("fpos(%s %s %d)", wine_dbgstr_longlong(fpos
->off
), wine_dbgstr_longlong(fpos
->pos
), fpos
->state
);
55 void (__cdecl
*pfunc
)(ios_base
*, streamsize
);
60 void (__cdecl
*pfunc
)(ios_base
*, int);
68 } basic_filebuf__Initfl
;
71 basic_streambuf_char base
;
76 basic_string_char
*conv
;
90 basic_streambuf_wchar base
;
95 basic_string_char
*conv
;
106 } basic_filebuf_wchar
;
109 STRINGBUF_allocated
= 1,
110 STRINGBUF_no_write
= 2,
111 STRINGBUF_no_read
= 4,
112 STRINGBUF_append
= 8,
113 STRINGBUF_at_end
= 16
114 } basic_stringbuf_state
;
117 basic_streambuf_char base
;
120 char allocator
; /* empty struct */
121 } basic_stringbuf_char
;
124 basic_streambuf_wchar base
;
127 char allocator
; /* empty struct */
128 } basic_stringbuf_wchar
;
132 basic_streambuf_char
*strbuf
;
133 struct _basic_ostream_char
*stream
;
139 basic_streambuf_wchar
*strbuf
;
140 struct _basic_ostream_wchar
*stream
;
144 typedef struct _basic_ostream_char
{
146 /* virtual inheritance
147 * basic_ios_char basic_ios;
149 } basic_ostream_char
;
151 typedef struct _basic_ostream_wchar
{
153 /* virtual inheritance
154 * basic_ios_wchar basic_ios;
156 } basic_ostream_wchar
;
161 /* virtual inheritance
162 * basic_ios_char basic_ios;
164 } basic_istream_char
;
169 /* virtual inheritance
170 * basic_ios_wchar basic_ios;
172 } basic_istream_wchar
;
175 basic_istream_char base1
;
176 basic_ostream_char base2
;
177 /* virtual inheritance
178 * basic_ios_char basic_ios;
180 } basic_iostream_char
;
183 basic_istream_wchar base1
;
184 basic_ostream_wchar base2
;
185 /* virtual inheritance
186 * basic_ios_wchar basic_ios;
188 } basic_iostream_wchar
;
191 basic_ostream_char base
;
192 basic_filebuf_char filebuf
;
193 /* virtual inheritance
194 * basic_ios_char basic_ios;
196 } basic_ofstream_char
;
199 basic_ostream_wchar base
;
200 basic_filebuf_wchar filebuf
;
201 /* virtual inheritance
202 * basic_ios_wchar basic_ios;
204 } basic_ofstream_wchar
;
207 basic_istream_char base
;
208 basic_filebuf_char filebuf
;
209 /* virtual inheritance
210 * basic_ios_char basic_ios;
212 } basic_ifstream_char
;
215 basic_istream_wchar base
;
216 basic_filebuf_wchar filebuf
;
217 /* virtual inheritance
218 * basic_ios_wchar basic_ios;
220 } basic_ifstream_wchar
;
223 basic_iostream_char base
;
224 basic_filebuf_char filebuf
;
225 /* virtual inheritance
226 * basic_ios_char basic_ios;
228 } basic_fstream_char
;
231 basic_iostream_wchar base
;
232 basic_filebuf_wchar filebuf
;
233 /* virtual inheritance
234 * basic_ios_char basic_ios;
236 } basic_fstream_wchar
;
239 basic_ostream_char base
;
240 basic_stringbuf_char strbuf
;
241 /* virtual inheritance
242 * basic_ios_char basic_ios;
244 } basic_ostringstream_char
;
247 basic_ostream_wchar base
;
248 basic_stringbuf_wchar strbuf
;
249 /* virtual inheritance
250 * basic_ios_wchar basic_ios;
252 } basic_ostringstream_wchar
;
255 basic_istream_char base
;
256 basic_stringbuf_char strbuf
;
257 /* virtual inheritance
258 * basic_ios_char basic_ios;
260 } basic_istringstream_char
;
263 basic_istream_wchar base
;
264 basic_stringbuf_wchar strbuf
;
265 /* virtual inheritance
266 * basic_ios_wchar basic_ios;
268 } basic_istringstream_wchar
;
271 basic_iostream_char base
;
272 basic_stringbuf_char strbuf
;
273 /* virtual inheritance
274 * basic_ios_char basic_ios;
276 } basic_stringstream_char
;
279 basic_iostream_wchar base
;
280 basic_stringbuf_wchar strbuf
;
281 /* virtual inheritance
282 * basic_ios_wchar basic_ios;
284 } basic_stringstream_wchar
;
287 STRSTATE_Allocated
= 1,
288 STRSTATE_Constant
= 2,
289 STRSTATE_Dynamic
= 4,
291 } strstreambuf__Strstate
;
294 basic_streambuf_char base
;
299 void* (__cdecl
*palloc
)(MSVCP_size_t
);
300 void (__cdecl
*pfree
)(void*);
304 basic_ostream_char base
;
306 /* virtual inheritance
307 * basic_ios_char basic_ios;
312 basic_istream_char base
;
314 /* virtual inheritance
315 * basic_ios_char basic_ios;
320 basic_iostream_char base
;
322 /* virtual inheritance
323 * basic_ios_char basic_ios;
334 status_unknown
, file_not_found
, regular_file
, directory_file
,
335 symlink_file
, block_file
, character_file
, fifo_file
, socket_file
,
339 #if _MSVCP_VER >= 110
340 #define BASIC_IOS_VTORDISP 1
341 #define INIT_BASIC_IOS_VTORDISP(basic_ios) ((int*)basic_ios)[-1] = 0
343 #define BASIC_IOS_VTORDISP 0
344 #define INIT_BASIC_IOS_VTORDISP(basic_ios)
347 #define VBTABLE_ENTRY(class, offset, vbase, vtordisp) ALIGNED_SIZE(sizeof(class)+vtordisp*sizeof(int), TYPE_ALIGNMENT(vbase))-offset
348 #define VBTABLE_BASIC_IOS_ENTRY(class, offset) VBTABLE_ENTRY(class, offset, basic_ios_char, BASIC_IOS_VTORDISP)
350 extern const vtable_ptr MSVCP_iosb_vtable
;
352 /* ??_7ios_base@std@@6B@ */
353 extern const vtable_ptr MSVCP_ios_base_vtable
;
355 /* ??_7?$basic_ios@DU?$char_traits@D@std@@@std@@6B@ */
356 extern const vtable_ptr MSVCP_basic_ios_char_vtable
;
358 /* ??_7?$basic_ios@_WU?$char_traits@_W@std@@@std@@6B@ */
359 extern const vtable_ptr MSVCP_basic_ios_wchar_vtable
;
361 /* ??_7?$basic_ios@GU?$char_traits@G@std@@@std@@6B@ */
362 extern const vtable_ptr MSVCP_basic_ios_short_vtable
;
364 /* ??_7?$basic_streambuf@DU?$char_traits@D@std@@@std@@6B@ */
365 extern const vtable_ptr MSVCP_basic_streambuf_char_vtable
;
367 /* ??_7?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@6B@ */
368 extern const vtable_ptr MSVCP_basic_streambuf_wchar_vtable
;
370 /* ??_7?$basic_streambuf@GU?$char_traits@G@std@@@std@@6B@ */
371 extern const vtable_ptr MSVCP_basic_streambuf_short_vtable
;
373 /* ??_7?$basic_filebuf@DU?$char_traits@D@std@@@std@@6B@ */
374 extern const vtable_ptr MSVCP_basic_filebuf_char_vtable
;
376 /* ??_7?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@6B@ */
377 extern const vtable_ptr MSVCP_basic_filebuf_wchar_vtable
;
379 /* ??_7?$basic_filebuf@GU?$char_traits@G@std@@@std@@6B@ */
380 extern const vtable_ptr MSVCP_basic_filebuf_short_vtable
;
382 /* ??_7?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
383 extern const vtable_ptr MSVCP_basic_stringbuf_char_vtable
;
385 /* ??_7?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
386 extern const vtable_ptr MSVCP_basic_stringbuf_wchar_vtable
;
388 /* ??_7?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
389 extern const vtable_ptr MSVCP_basic_stringbuf_short_vtable
;
391 /* ??_8?$basic_ostream@DU?$char_traits@D@std@@@std@@7B@ */
392 const int basic_ostream_char_vbtable
[] = {0,
393 VBTABLE_BASIC_IOS_ENTRY(basic_ostream_char
, 0)};
394 /* ??_7?$basic_ostream@DU?$char_traits@D@std@@@std@@6B@ */
395 extern const vtable_ptr MSVCP_basic_ostream_char_vtable
;
397 /* ??_8?$basic_ostream@_WU?$char_traits@_W@std@@@std@@7B@ */
398 const int basic_ostream_wchar_vbtable
[] = {0,
399 VBTABLE_BASIC_IOS_ENTRY(basic_ostream_wchar
, 0)};
400 /* ??_7?$basic_ostream@_WU?$char_traits@_W@std@@@std@@6B@ */
401 extern const vtable_ptr MSVCP_basic_ostream_wchar_vtable
;
403 /* ??_8?$basic_ostream@GU?$char_traits@G@std@@@std@@7B@ */
404 const int basic_ostream_short_vbtable
[] = {0,
405 VBTABLE_BASIC_IOS_ENTRY(basic_ostream_wchar
, 0)};
406 /* ??_7?$basic_ostream@GU?$char_traits@G@std@@@std@@6B@ */
407 extern const vtable_ptr MSVCP_basic_ostream_short_vtable
;
409 /* ??_8?$basic_istream@DU?$char_traits@D@std@@@std@@7B@ */
410 const int basic_istream_char_vbtable
[] = {0,
411 VBTABLE_BASIC_IOS_ENTRY(basic_istream_char
, 0)};
412 /* ??_7?$basic_istream@DU?$char_traits@D@std@@@std@@6B@ */
413 extern const vtable_ptr MSVCP_basic_istream_char_vtable
;
415 /* ??_8?$basic_istream@_WU?$char_traits@_W@std@@@std@@7B@ */
416 const int basic_istream_wchar_vbtable
[] = {0,
417 VBTABLE_BASIC_IOS_ENTRY(basic_istream_wchar
, 0)};
418 /* ??_7?$basic_istream@_WU?$char_traits@_W@std@@@std@@6B@ */
419 extern const vtable_ptr MSVCP_basic_istream_wchar_vtable
;
421 /* ??_8?$basic_istream@GU?$char_traits@G@std@@@std@@7B@ */
422 const int basic_istream_short_vbtable
[] = {0,
423 VBTABLE_BASIC_IOS_ENTRY(basic_istream_wchar
, 0)};
424 /* ??_7?$basic_istream@GU?$char_traits@G@std@@@std@@6B@ */
425 extern const vtable_ptr MSVCP_basic_istream_short_vtable
;
427 /* ??_8?$basic_iostream@DU?$char_traits@D@std@@@std@@7B?$basic_istream@DU?$char_traits@D@std@@@1@@ */
428 const int basic_iostream_char_vbtable1
[] = {0,
429 VBTABLE_BASIC_IOS_ENTRY(basic_iostream_char
, 0)};
430 /* ??_8?$basic_iostream@DU?$char_traits@D@std@@@std@@7B?$basic_ostream@DU?$char_traits@D@std@@@1@@ */
431 const int basic_iostream_char_vbtable2
[] = {0,
432 VBTABLE_BASIC_IOS_ENTRY(basic_iostream_char
, FIELD_OFFSET(basic_iostream_char
, base2
))};
433 /* ??_7?$basic_iostream@DU?$char_traits@D@std@@@std@@6B@ */
434 extern const vtable_ptr MSVCP_basic_iostream_char_vtable
;
436 /* ??_8?$basic_iostream@_WU?$char_traits@_W@std@@@std@@7B?$basic_istream@_WU?$char_traits@_W@std@@@1@@ */
437 /* ??_8?$basic_iostream@GU?$char_traits@G@std@@@std@@7B?$basic_istream@GU?$char_traits@G@std@@@1@@ */
438 const int basic_iostream_wchar_vbtable1
[] = {0,
439 VBTABLE_BASIC_IOS_ENTRY(basic_iostream_wchar
, 0)};
440 /* ??_8?$basic_iostream@_WU?$char_traits@_W@std@@@std@@7B?$basic_ostream@_WU?$char_traits@_W@std@@@1@@ */
441 /* ??_8?$basic_iostream@GU?$char_traits@G@std@@@std@@7B?$basic_ostream@GU?$char_traits@G@std@@@1@@ */
442 const int basic_iostream_wchar_vbtable2
[] = {0,
443 VBTABLE_BASIC_IOS_ENTRY(basic_iostream_wchar
, FIELD_OFFSET(basic_iostream_wchar
, base2
))};
444 /* ??_7?$basic_iostream@_WU?$char_traits@_W@std@@@std@@6B@ */
445 extern const vtable_ptr MSVCP_basic_iostream_wchar_vtable
;
446 /* ??_7?$basic_iostream@GU?$char_traits@G@std@@@std@@6B@ */
447 extern const vtable_ptr MSVCP_basic_iostream_short_vtable
;
449 /* ??_8?$basic_ofstream@DU?$char_traits@D@std@@@std@@7B@ */
450 const int basic_ofstream_char_vbtable
[] = {0,
451 VBTABLE_BASIC_IOS_ENTRY(basic_ofstream_char
, 0)};
452 /* ??_7?$basic_ofstream@DU?$char_traits@D@std@@@std@@6B@ */
453 extern const vtable_ptr MSVCP_basic_ofstream_char_vtable
;
455 /* ??_8?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@7B@ */
456 const int basic_ofstream_wchar_vbtable
[] = {0,
457 VBTABLE_BASIC_IOS_ENTRY(basic_ofstream_wchar
, 0)};
458 /* ??_7?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@6B@ */
459 extern const vtable_ptr MSVCP_basic_ofstream_wchar_vtable
;
461 /* ??_8?$basic_ofstream@GU?$char_traits@G@std@@@std@@7B@ */
462 const int basic_ofstream_short_vbtable
[] = {0,
463 VBTABLE_BASIC_IOS_ENTRY(basic_ofstream_wchar
, 0)};
464 /* ??_7?$basic_ofstream@GU?$char_traits@G@std@@@std@@6B@ */
465 extern const vtable_ptr MSVCP_basic_ofstream_short_vtable
;
467 /* ??_8?$basic_ifstream@DU?$char_traits@D@std@@@std@@7B@ */
468 const int basic_ifstream_char_vbtable
[] = {0,
469 VBTABLE_BASIC_IOS_ENTRY(basic_ifstream_char
, 0)};
470 /* ??_7?$basic_ifstream@DU?$char_traits@D@std@@@std@@6B@ */
471 extern const vtable_ptr MSVCP_basic_ifstream_char_vtable
;
473 /* ??_8?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@7B@ */
474 const int basic_ifstream_wchar_vbtable
[] = {0,
475 VBTABLE_BASIC_IOS_ENTRY(basic_ifstream_wchar
, 0)};
476 /* ??_7?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@6B@ */
477 extern const vtable_ptr MSVCP_basic_ifstream_wchar_vtable
;
479 /* ??_8?$basic_ifstream@GU?$char_traits@G@std@@@std@@7B@ */
480 const int basic_ifstream_short_vbtable
[] = {0,
481 VBTABLE_BASIC_IOS_ENTRY(basic_ifstream_wchar
, 0)};
482 /* ??_7?$basic_ifstream@GU?$char_traits@G@std@@@std@@6B@ */
483 extern const vtable_ptr MSVCP_basic_ifstream_short_vtable
;
485 /* ??_8?$basic_fstream@DU?$char_traits@D@std@@@std@@7B?$basic_istream@DU?$char_traits@D@std@@@1@@ */
486 const int basic_fstream_char_vbtable1
[] = {0,
487 VBTABLE_BASIC_IOS_ENTRY(basic_fstream_char
, 0)};
488 /* ??_8?$basic_fstream@DU?$char_traits@D@std@@@std@@7B?$basic_ostream@DU?$char_traits@D@std@@@1@@ */
489 const int basic_fstream_char_vbtable2
[] = {0,
490 VBTABLE_BASIC_IOS_ENTRY(basic_fstream_char
, FIELD_OFFSET(basic_fstream_char
, base
.base2
))};
491 /* ??_7?$basic_fstream@DU?$char_traits@D@std@@@std@@6B@ */
492 extern const vtable_ptr MSVCP_basic_fstream_char_vtable
;
494 /* ??_8?$basic_fstream@_WU?$char_traits@_W@std@@@std@@7B?$basic_istream@_WU?$char_traits@_W@std@@@1@@ */
495 /* ??_8?$basic_fstream@GU?$char_traits@G@std@@@std@@7B?$basic_istream@GU?$char_traits@G@std@@@1@@ */
496 const int basic_fstream_wchar_vbtable1
[] = {0,
497 VBTABLE_BASIC_IOS_ENTRY(basic_fstream_wchar
, 0)};
498 /* ??_8?$basic_fstream@_WU?$char_traits@_W@std@@@std@@7B?$basic_ostream@_WU?$char_traits@_W@std@@@1@@ */
499 /* ??_8?$basic_fstream@GU?$char_traits@G@std@@@std@@7B?$basic_ostream@GU?$char_traits@G@std@@@1@@ */
500 const int basic_fstream_wchar_vbtable2
[] = {0,
501 VBTABLE_BASIC_IOS_ENTRY(basic_fstream_wchar
, FIELD_OFFSET(basic_fstream_wchar
, base
.base2
))};
502 /* ??_7?$basic_fstream@_WU?$char_traits@_W@std@@@std@@6B@ */
503 extern const vtable_ptr MSVCP_basic_fstream_wchar_vtable
;
504 /* ??_7?$basic_fstream@GU?$char_traits@G@std@@@std@@6B@ */
505 extern const vtable_ptr MSVCP_basic_fstream_short_vtable
;
507 /* ??_8?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B@ */
508 const int basic_ostringstream_char_vbtable
[] = {0,
509 VBTABLE_BASIC_IOS_ENTRY(basic_ostringstream_char
, 0)};
510 /* ??_7?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
511 extern const vtable_ptr MSVCP_basic_ostringstream_char_vtable
;
513 /* ??_8?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B@ */
514 const int basic_ostringstream_wchar_vbtable
[] = {0,
515 VBTABLE_BASIC_IOS_ENTRY(basic_ostringstream_wchar
, 0)};
516 /* ??_7?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
517 extern const vtable_ptr MSVCP_basic_ostringstream_wchar_vtable
;
519 /* ??_8?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B@ */
520 const int basic_ostringstream_short_vbtable
[] = {0,
521 VBTABLE_BASIC_IOS_ENTRY(basic_ostringstream_wchar
, 0)};
522 /* ??_7?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
523 extern const vtable_ptr MSVCP_basic_ostringstream_short_vtable
;
525 /* ??_8?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B@ */
526 const int basic_istringstream_char_vbtable
[] = {0,
527 VBTABLE_BASIC_IOS_ENTRY(basic_istringstream_char
, 0)};
528 /* ??_7?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
529 extern const vtable_ptr MSVCP_basic_istringstream_char_vtable
;
531 /* ??_8?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B@ */
532 const int basic_istringstream_wchar_vbtable
[] = {0,
533 VBTABLE_BASIC_IOS_ENTRY(basic_istringstream_wchar
, 0)};
534 /* ??_7?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
535 extern const vtable_ptr MSVCP_basic_istringstream_wchar_vtable
;
537 /* ??_8?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B@ */
538 const int basic_istringstream_short_vbtable
[] = {0,
539 VBTABLE_BASIC_IOS_ENTRY(basic_istringstream_wchar
, 0)};
540 /* ??_7?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
541 extern const vtable_ptr MSVCP_basic_istringstream_short_vtable
;
543 /* ??_8?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B?$basic_istream@DU?$char_traits@D@std@@@1@@ */
544 const int basic_stringstream_char_vbtable1
[] = {0,
545 VBTABLE_BASIC_IOS_ENTRY(basic_stringstream_char
, 0)};
546 /* ??_8?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B?$basic_ostream@DU?$char_traits@D@std@@@1@@ */
547 const int basic_stringstream_char_vbtable2
[] = {0,
548 VBTABLE_BASIC_IOS_ENTRY(basic_stringstream_char
, FIELD_OFFSET(basic_stringstream_char
, base
.base2
))};
549 /* ??_7?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
550 extern const vtable_ptr MSVCP_basic_stringstream_char_vtable
;
552 /* ??_8?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B?$basic_istream@_WU?$char_traits@_W@std@@@1@@ */
553 const int basic_stringstream_wchar_vbtable1
[] = {0,
554 VBTABLE_BASIC_IOS_ENTRY(basic_stringstream_wchar
, 0)};
555 /* ??_8?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B?$basic_ostream@_WU?$char_traits@_W@std@@@1@@ */
556 const int basic_stringstream_wchar_vbtable2
[] = {0,
557 VBTABLE_BASIC_IOS_ENTRY(basic_stringstream_wchar
, FIELD_OFFSET(basic_stringstream_wchar
, base
.base2
))};
558 /* ??_7?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
559 extern const vtable_ptr MSVCP_basic_stringstream_wchar_vtable
;
561 /* ??_8?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B?$basic_istream@GU?$char_traits@G@std@@@1@@ */
562 const int basic_stringstream_short_vbtable1
[] = {0,
563 VBTABLE_BASIC_IOS_ENTRY(basic_stringstream_wchar
, 0)};
564 /* ??_8?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B?$basic_ostream@GU?$char_traits@G@std@@@1@@ */
565 const int basic_stringstream_short_vbtable2
[] = {0,
566 VBTABLE_BASIC_IOS_ENTRY(basic_stringstream_wchar
, FIELD_OFFSET(basic_stringstream_wchar
, base
.base2
))};
567 /* ??_7?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
568 extern const vtable_ptr MSVCP_basic_stringstream_short_vtable
;
570 /* ??_7strstreambuf@std@@6B */
571 extern const vtable_ptr MSVCP_strstreambuf_vtable
;
573 static const int ostrstream_vbtable
[] = {0, VBTABLE_BASIC_IOS_ENTRY(ostrstream
, 0)};
574 extern const vtable_ptr MSVCP_ostrstream_vtable
;
576 static const int istrstream_vbtable
[] = {0, VBTABLE_BASIC_IOS_ENTRY(istrstream
, 0)};
578 static const int strstream_vbtable1
[] = {0, VBTABLE_BASIC_IOS_ENTRY(strstream
, 0)};
579 static const int strstream_vbtable2
[] = {0,
580 VBTABLE_BASIC_IOS_ENTRY(strstream
, FIELD_OFFSET(strstream
, base
.base2
))};
581 extern const vtable_ptr MSVCP_strstream_vtable
;
583 DEFINE_RTTI_DATA0(iosb
, 0, ".?AV?$_Iosb@H@std@@")
584 DEFINE_RTTI_DATA1(ios_base
, 0, &iosb_rtti_base_descriptor
, ".?AV?$_Iosb@H@std@@")
585 DEFINE_RTTI_DATA2(basic_ios_char
, 0, &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
586 ".?AV?$basic_ios@DU?$char_traits@D@std@@@std@@")
587 DEFINE_RTTI_DATA2(basic_ios_wchar
, 0, &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
588 ".?AV?$basic_ios@_WU?$char_traits@_W@std@@@std@@")
589 DEFINE_RTTI_DATA2(basic_ios_short
, 0, &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
590 ".?AV?$basic_ios@GU?$char_traits@G@std@@@std@@")
591 DEFINE_RTTI_DATA0(basic_streambuf_char
, 0,
592 ".?AV?$basic_streambuf@DU?$char_traits@D@std@@@std@@")
593 DEFINE_RTTI_DATA0(basic_streambuf_wchar
, 0,
594 ".?AV?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@")
595 DEFINE_RTTI_DATA0(basic_streambuf_short
, 0,
596 ".?AV?$basic_streambuf@GU?$char_traits@G@std@@@std@@")
597 DEFINE_RTTI_DATA1(basic_filebuf_char
, 0, &basic_streambuf_char_rtti_base_descriptor
,
598 ".?AV?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@")
599 DEFINE_RTTI_DATA1(basic_filebuf_wchar
, 0, &basic_streambuf_wchar_rtti_base_descriptor
,
600 ".?AV?$basic_filebuf@GU?$char_traits@G@std@@@std@@")
601 DEFINE_RTTI_DATA1(basic_filebuf_short
, 0, &basic_streambuf_short_rtti_base_descriptor
,
602 ".?AV?$basic_filebuf@DU?$char_traits@D@std@@@std@@")
603 DEFINE_RTTI_DATA1(basic_stringbuf_char
, 0, &basic_streambuf_char_rtti_base_descriptor
,
604 ".?AV?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@")
605 DEFINE_RTTI_DATA1(basic_stringbuf_wchar
, 0, &basic_streambuf_wchar_rtti_base_descriptor
,
606 ".?AV?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@")
607 DEFINE_RTTI_DATA1(basic_stringbuf_short
, 0, &basic_streambuf_short_rtti_base_descriptor
,
608 ".?AV?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@")
609 DEFINE_RTTI_DATA3(basic_ostream_char
, sizeof(basic_ostream_char
), &basic_ios_char_rtti_base_descriptor
,
610 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
611 ".?AV?$basic_ostream@DU?$char_traits@D@std@@@std@@")
612 DEFINE_RTTI_DATA3(basic_ostream_wchar
, sizeof(basic_ostream_wchar
), &basic_ios_wchar_rtti_base_descriptor
,
613 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
614 ".?AV?$basic_ostream@_WU?$char_traits@_W@std@@@std@@")
615 DEFINE_RTTI_DATA3(basic_ostream_short
, sizeof(basic_ostream_wchar
), &basic_ios_short_rtti_base_descriptor
,
616 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
617 ".?AV?$basic_ostream@GU?$char_traits@G@std@@@std@@")
618 DEFINE_RTTI_DATA3(basic_istream_char
, sizeof(basic_istream_char
), &basic_ios_char_rtti_base_descriptor
,
619 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
620 ".?AV?$basic_istream@DU?$char_traits@D@std@@@std@@")
621 DEFINE_RTTI_DATA3(basic_istream_wchar
, sizeof(basic_istream_wchar
), &basic_ios_wchar_rtti_base_descriptor
,
622 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
623 ".?AV?$basic_istream@_WU?$char_traits@_W@std@@@std@@")
624 DEFINE_RTTI_DATA3(basic_istream_short
, sizeof(basic_istream_wchar
), &basic_ios_short_rtti_base_descriptor
,
625 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
626 ".?AV?$basic_istream@GU?$char_traits@G@std@@@std@@")
627 DEFINE_RTTI_DATA8(basic_iostream_char
, sizeof(basic_iostream_char
),
628 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
629 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
630 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
631 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
632 ".?AV?$basic_iostream@DU?$char_traits@D@std@@@std@@")
633 DEFINE_RTTI_DATA8(basic_iostream_wchar
, sizeof(basic_iostream_wchar
),
634 &basic_istream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
635 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
636 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
637 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
638 ".?AV?$basic_iostream@_WU?$char_traits@_W@std@@@std@@")
639 DEFINE_RTTI_DATA8(basic_iostream_short
, sizeof(basic_iostream_wchar
),
640 &basic_istream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
641 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
642 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
643 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
644 ".?AV?$basic_iostream@GU?$char_traits@G@std@@@std@@")
645 DEFINE_RTTI_DATA4(basic_ofstream_char
, sizeof(basic_ofstream_char
),
646 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
647 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
648 ".?AV?$basic_ofstream@DU?$char_traits@D@std@@@std@@")
649 DEFINE_RTTI_DATA4(basic_ofstream_wchar
, sizeof(basic_ofstream_wchar
),
650 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
651 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
652 ".?AV?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@")
653 DEFINE_RTTI_DATA4(basic_ofstream_short
, sizeof(basic_ofstream_wchar
),
654 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
655 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
656 ".?AV?$basic_ofstream@GU?$char_traits@G@std@@@std@@")
657 DEFINE_RTTI_DATA4(basic_ifstream_char
, sizeof(basic_ifstream_char
),
658 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
659 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
660 ".?AV?$basic_ifstream@DU?$char_traits@D@std@@@std@@")
661 DEFINE_RTTI_DATA4(basic_ifstream_wchar
, sizeof(basic_ifstream_wchar
),
662 &basic_istream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
663 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
664 ".?AV?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@")
665 DEFINE_RTTI_DATA4(basic_ifstream_short
, sizeof(basic_ifstream_wchar
),
666 &basic_istream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
667 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
668 ".?AV?$basic_ifstream@GU?$char_traits@G@std@@@std@@")
669 DEFINE_RTTI_DATA8(basic_fstream_char
, sizeof(basic_fstream_char
),
670 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
671 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
672 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
673 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
674 ".?AV?$basic_fstream@DU?$char_traits@D@std@@@std@@")
675 DEFINE_RTTI_DATA8(basic_fstream_wchar
, sizeof(basic_fstream_wchar
),
676 &basic_istream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
677 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
678 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
679 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
680 ".?AV?$basic_fstream@_WU?$char_traits@_W@std@@@std@@")
681 DEFINE_RTTI_DATA8(basic_fstream_short
, sizeof(basic_fstream_wchar
),
682 &basic_istream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
683 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
684 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
685 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
686 ".?AV?$basic_fstream@GU?$char_traits@G@std@@@std@@")
687 DEFINE_RTTI_DATA4(basic_ostringstream_char
, sizeof(basic_ostringstream_char
),
688 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
689 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
690 ".?AV?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@")
691 DEFINE_RTTI_DATA4(basic_ostringstream_wchar
, sizeof(basic_ostringstream_wchar
),
692 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
693 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
694 ".?AV?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@")
695 DEFINE_RTTI_DATA4(basic_ostringstream_short
, sizeof(basic_ostringstream_wchar
),
696 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
697 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
698 ".?AV?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@")
699 DEFINE_RTTI_DATA4(basic_istringstream_char
, sizeof(basic_istringstream_char
),
700 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
701 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
702 ".?AV?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@")
703 DEFINE_RTTI_DATA4(basic_istringstream_wchar
, sizeof(basic_istringstream_wchar
),
704 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
705 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
706 ".?AV?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@")
707 DEFINE_RTTI_DATA4(basic_istringstream_short
, sizeof(basic_istringstream_wchar
),
708 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
709 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
710 ".?AV?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@")
711 DEFINE_RTTI_DATA8(basic_stringstream_char
, sizeof(basic_stringstream_char
),
712 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
713 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
714 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
715 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
716 ".?AV?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@")
717 DEFINE_RTTI_DATA8(basic_stringstream_wchar
, sizeof(basic_stringstream_wchar
),
718 &basic_istream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
719 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
720 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
721 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
722 ".?AV?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@")
723 DEFINE_RTTI_DATA8(basic_stringstream_short
, sizeof(basic_stringstream_wchar
),
724 &basic_istream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
725 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
726 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
727 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
728 ".?AV?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@")
729 DEFINE_RTTI_DATA1(strstreambuf
, sizeof(strstreambuf
),
730 &basic_streambuf_char_rtti_base_descriptor
, ".?AVstrstreambuf@std@@")
731 DEFINE_RTTI_DATA4(ostrstream
, sizeof(ostrstream
),
732 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
733 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
734 "?AVostrstream@std@@")
735 DEFINE_RTTI_DATA8(strstream
, sizeof(strstream
),
736 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
737 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
738 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
739 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
740 "?AVstrstream@std@@")
743 void __asm_dummy_vtables(void) {
746 VTABLE_ADD_FUNC(iosb_vector_dtor
));
747 __ASM_VTABLE(ios_base
,
748 VTABLE_ADD_FUNC(ios_base_vector_dtor
));
749 __ASM_VTABLE(basic_ios_char
,
750 VTABLE_ADD_FUNC(basic_ios_char_vector_dtor
)
751 #if _MSVCP_VER >= 110
752 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
753 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
756 __ASM_VTABLE(basic_ios_wchar
,
757 VTABLE_ADD_FUNC(basic_ios_wchar_vector_dtor
)
758 #if _MSVCP_VER >= 110
759 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
760 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
763 __ASM_VTABLE(basic_ios_short
,
764 VTABLE_ADD_FUNC(basic_ios_wchar_vector_dtor
)
765 #if _MSVCP_VER >= 110
766 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
767 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
770 __ASM_VTABLE(basic_streambuf_char
,
771 VTABLE_ADD_FUNC(basic_streambuf_char_vector_dtor
)
772 #if _MSVCP_VER >= 100
773 VTABLE_ADD_FUNC(basic_streambuf_char__Lock
)
774 VTABLE_ADD_FUNC(basic_streambuf_char__Unlock
)
776 VTABLE_ADD_FUNC(basic_streambuf_char_overflow
)
777 VTABLE_ADD_FUNC(basic_streambuf_char_pbackfail
)
778 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc
)
779 VTABLE_ADD_FUNC(basic_streambuf_char_underflow
)
780 VTABLE_ADD_FUNC(basic_streambuf_char_uflow
)
781 VTABLE_ADD_FUNC(basic_streambuf_char_xsgetn
)
782 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
783 VTABLE_ADD_FUNC(basic_streambuf_char__Xsgetn_s
)
785 VTABLE_ADD_FUNC(basic_streambuf_char_xsputn
)
786 VTABLE_ADD_FUNC(basic_streambuf_char_seekoff
)
787 VTABLE_ADD_FUNC(basic_streambuf_char_seekpos
)
788 VTABLE_ADD_FUNC(basic_streambuf_char_setbuf
)
789 VTABLE_ADD_FUNC(basic_streambuf_char_sync
)
790 VTABLE_ADD_FUNC(basic_streambuf_char_imbue
));
791 __ASM_VTABLE(basic_streambuf_wchar
,
792 VTABLE_ADD_FUNC(basic_streambuf_wchar_vector_dtor
)
793 #if _MSVCP_VER >= 100
794 VTABLE_ADD_FUNC(basic_streambuf_wchar__Lock
)
795 VTABLE_ADD_FUNC(basic_streambuf_wchar__Unlock
)
797 VTABLE_ADD_FUNC(basic_streambuf_wchar_overflow
)
798 VTABLE_ADD_FUNC(basic_streambuf_wchar_pbackfail
)
799 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
800 VTABLE_ADD_FUNC(basic_streambuf_wchar_underflow
)
801 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow
)
802 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
803 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
804 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
806 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
807 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekoff
)
808 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekpos
)
809 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf
)
810 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync
)
811 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
812 __ASM_VTABLE(basic_streambuf_short
,
813 VTABLE_ADD_FUNC(basic_streambuf_wchar_vector_dtor
)
814 #if _MSVCP_VER >= 100
815 VTABLE_ADD_FUNC(basic_streambuf_wchar__Lock
)
816 VTABLE_ADD_FUNC(basic_streambuf_wchar__Unlock
)
818 VTABLE_ADD_FUNC(basic_streambuf_wchar_overflow
)
819 VTABLE_ADD_FUNC(basic_streambuf_wchar_pbackfail
)
820 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
821 VTABLE_ADD_FUNC(basic_streambuf_wchar_underflow
)
822 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow
)
823 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
824 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
825 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
827 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
828 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekoff
)
829 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekpos
)
830 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf
)
831 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync
)
832 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
833 __ASM_VTABLE(basic_filebuf_char
,
834 VTABLE_ADD_FUNC(basic_filebuf_char_vector_dtor
)
835 #if _MSVCP_VER >= 100
836 VTABLE_ADD_FUNC(basic_streambuf_char__Lock
)
837 VTABLE_ADD_FUNC(basic_streambuf_char__Unlock
)
839 VTABLE_ADD_FUNC(basic_filebuf_char_overflow
)
840 VTABLE_ADD_FUNC(basic_filebuf_char_pbackfail
)
841 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc
)
842 VTABLE_ADD_FUNC(basic_filebuf_char_underflow
)
843 VTABLE_ADD_FUNC(basic_filebuf_char_uflow
)
844 VTABLE_ADD_FUNC(basic_streambuf_char_xsgetn
)
845 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
846 VTABLE_ADD_FUNC(basic_streambuf_char__Xsgetn_s
)
848 VTABLE_ADD_FUNC(basic_streambuf_char_xsputn
)
849 VTABLE_ADD_FUNC(basic_filebuf_char_seekoff
)
850 VTABLE_ADD_FUNC(basic_filebuf_char_seekpos
)
851 VTABLE_ADD_FUNC(basic_filebuf_char_setbuf
)
852 VTABLE_ADD_FUNC(basic_filebuf_char_sync
)
853 VTABLE_ADD_FUNC(basic_filebuf_char_imbue
));
854 __ASM_VTABLE(basic_filebuf_wchar
,
855 VTABLE_ADD_FUNC(basic_filebuf_wchar_vector_dtor
)
856 #if _MSVCP_VER >= 100
857 VTABLE_ADD_FUNC(basic_streambuf_wchar__Lock
)
858 VTABLE_ADD_FUNC(basic_streambuf_wchar__Unlock
)
860 VTABLE_ADD_FUNC(basic_filebuf_wchar_overflow
)
861 VTABLE_ADD_FUNC(basic_filebuf_wchar_pbackfail
)
862 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
863 VTABLE_ADD_FUNC(basic_filebuf_wchar_underflow
)
864 VTABLE_ADD_FUNC(basic_filebuf_wchar_uflow
)
865 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
866 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
867 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
869 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
870 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekoff
)
871 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekpos
)
872 VTABLE_ADD_FUNC(basic_filebuf_wchar_setbuf
)
873 VTABLE_ADD_FUNC(basic_filebuf_wchar_sync
)
874 VTABLE_ADD_FUNC(basic_filebuf_wchar_imbue
));
875 __ASM_VTABLE(basic_filebuf_short
,
876 VTABLE_ADD_FUNC(basic_filebuf_wchar_vector_dtor
)
877 #if _MSVCP_VER >= 100
878 VTABLE_ADD_FUNC(basic_streambuf_wchar__Lock
)
879 VTABLE_ADD_FUNC(basic_streambuf_wchar__Unlock
)
881 VTABLE_ADD_FUNC(basic_filebuf_wchar_overflow
)
882 VTABLE_ADD_FUNC(basic_filebuf_wchar_pbackfail
)
883 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
884 VTABLE_ADD_FUNC(basic_filebuf_wchar_underflow
)
885 VTABLE_ADD_FUNC(basic_filebuf_wchar_uflow
)
886 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
887 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
888 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
890 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
891 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekoff
)
892 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekpos
)
893 VTABLE_ADD_FUNC(basic_filebuf_short_setbuf
)
894 VTABLE_ADD_FUNC(basic_filebuf_wchar_sync
)
895 VTABLE_ADD_FUNC(basic_filebuf_short_imbue
));
896 __ASM_VTABLE(basic_stringbuf_char
,
897 VTABLE_ADD_FUNC(basic_stringbuf_char_vector_dtor
)
898 VTABLE_ADD_FUNC(basic_stringbuf_char_overflow
)
899 VTABLE_ADD_FUNC(basic_stringbuf_char_pbackfail
)
900 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc
)
901 VTABLE_ADD_FUNC(basic_stringbuf_char_underflow
)
902 VTABLE_ADD_FUNC(basic_streambuf_char_uflow
)
903 VTABLE_ADD_FUNC(basic_streambuf_char_xsgetn
)
904 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
905 VTABLE_ADD_FUNC(basic_streambuf_char__Xsgetn_s
)
907 VTABLE_ADD_FUNC(basic_streambuf_char_xsputn
)
908 VTABLE_ADD_FUNC(basic_stringbuf_char_seekoff
)
909 VTABLE_ADD_FUNC(basic_stringbuf_char_seekpos
)
910 VTABLE_ADD_FUNC(basic_streambuf_char_setbuf
)
911 VTABLE_ADD_FUNC(basic_streambuf_char_sync
)
912 VTABLE_ADD_FUNC(basic_streambuf_char_imbue
));
913 __ASM_VTABLE(basic_stringbuf_wchar
,
914 VTABLE_ADD_FUNC(basic_stringbuf_wchar_vector_dtor
)
915 VTABLE_ADD_FUNC(basic_stringbuf_wchar_overflow
)
916 VTABLE_ADD_FUNC(basic_stringbuf_wchar_pbackfail
)
917 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
918 VTABLE_ADD_FUNC(basic_stringbuf_wchar_underflow
)
919 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow
)
920 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
921 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
922 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
924 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
925 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekoff
)
926 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekpos
)
927 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf
)
928 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync
)
929 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
930 __ASM_VTABLE(basic_stringbuf_short
,
931 VTABLE_ADD_FUNC(basic_stringbuf_wchar_vector_dtor
)
932 VTABLE_ADD_FUNC(basic_stringbuf_wchar_overflow
)
933 VTABLE_ADD_FUNC(basic_stringbuf_wchar_pbackfail
)
934 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
935 VTABLE_ADD_FUNC(basic_stringbuf_wchar_underflow
)
936 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow
)
937 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
938 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
939 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
941 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
942 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekoff
)
943 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekpos
)
944 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf
)
945 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync
)
946 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
947 __ASM_VTABLE(basic_ostream_char
,
948 VTABLE_ADD_FUNC(basic_ostream_char_vector_dtor
)
949 #if _MSVCP_VER >= 110
950 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
951 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
954 __ASM_VTABLE(basic_ostream_wchar
,
955 VTABLE_ADD_FUNC(basic_ostream_wchar_vector_dtor
)
956 #if _MSVCP_VER >= 110
957 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
958 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
961 __ASM_VTABLE(basic_ostream_short
,
962 VTABLE_ADD_FUNC(basic_ostream_wchar_vector_dtor
)
963 #if _MSVCP_VER >= 110
964 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
965 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
968 __ASM_VTABLE(basic_istream_char
,
969 VTABLE_ADD_FUNC(basic_istream_char_vector_dtor
)
970 #if _MSVCP_VER >= 110
971 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
972 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
975 __ASM_VTABLE(basic_istream_wchar
,
976 VTABLE_ADD_FUNC(basic_istream_wchar_vector_dtor
)
977 #if _MSVCP_VER >= 110
978 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
979 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
982 __ASM_VTABLE(basic_istream_short
,
983 VTABLE_ADD_FUNC(basic_istream_wchar_vector_dtor
)
984 #if _MSVCP_VER >= 110
985 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
986 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
989 __ASM_VTABLE(basic_iostream_char
,
990 VTABLE_ADD_FUNC(basic_iostream_char_vector_dtor
)
991 #if _MSVCP_VER >= 110
992 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
993 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
996 __ASM_VTABLE(basic_iostream_wchar
,
997 VTABLE_ADD_FUNC(basic_iostream_wchar_vector_dtor
)
998 #if _MSVCP_VER >= 110
999 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1000 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1003 __ASM_VTABLE(basic_iostream_short
,
1004 VTABLE_ADD_FUNC(basic_iostream_wchar_vector_dtor
)
1005 #if _MSVCP_VER >= 110
1006 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1007 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1010 __ASM_VTABLE(basic_ofstream_char
,
1011 VTABLE_ADD_FUNC(basic_ofstream_char_vector_dtor
)
1012 #if _MSVCP_VER >= 110
1013 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1014 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1017 __ASM_VTABLE(basic_ofstream_wchar
,
1018 VTABLE_ADD_FUNC(basic_ofstream_wchar_vector_dtor
)
1019 #if _MSVCP_VER >= 110
1020 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1021 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1024 __ASM_VTABLE(basic_ofstream_short
,
1025 VTABLE_ADD_FUNC(basic_ofstream_wchar_vector_dtor
)
1026 #if _MSVCP_VER >= 110
1027 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1028 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1031 __ASM_VTABLE(basic_ifstream_char
,
1032 VTABLE_ADD_FUNC(basic_ifstream_char_vector_dtor
)
1033 #if _MSVCP_VER >= 110
1034 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1035 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1038 __ASM_VTABLE(basic_ifstream_wchar
,
1039 VTABLE_ADD_FUNC(basic_ifstream_wchar_vector_dtor
)
1040 #if _MSVCP_VER >= 110
1041 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1042 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1045 __ASM_VTABLE(basic_ifstream_short
,
1046 VTABLE_ADD_FUNC(basic_ifstream_wchar_vector_dtor
)
1047 #if _MSVCP_VER >= 110
1048 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1049 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1052 __ASM_VTABLE(basic_fstream_char
,
1053 VTABLE_ADD_FUNC(basic_fstream_char_vector_dtor
)
1054 #if _MSVCP_VER >= 110
1055 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1056 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1059 __ASM_VTABLE(basic_fstream_wchar
,
1060 VTABLE_ADD_FUNC(basic_fstream_wchar_vector_dtor
)
1061 #if _MSVCP_VER >= 110
1062 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1063 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1066 __ASM_VTABLE(basic_fstream_short
,
1067 VTABLE_ADD_FUNC(basic_fstream_wchar_vector_dtor
)
1068 #if _MSVCP_VER >= 110
1069 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1070 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1073 __ASM_VTABLE(basic_ostringstream_char
,
1074 VTABLE_ADD_FUNC(basic_ostringstream_char_vector_dtor
)
1075 #if _MSVCP_VER >= 110
1076 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1077 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1080 __ASM_VTABLE(basic_ostringstream_wchar
,
1081 VTABLE_ADD_FUNC(basic_ostringstream_wchar_vector_dtor
)
1082 #if _MSVCP_VER >= 110
1083 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1084 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1087 __ASM_VTABLE(basic_ostringstream_short
,
1088 VTABLE_ADD_FUNC(basic_ostringstream_wchar_vector_dtor
)
1089 #if _MSVCP_VER >= 110
1090 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1091 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1094 __ASM_VTABLE(basic_istringstream_char
,
1095 VTABLE_ADD_FUNC(basic_istringstream_char_vector_dtor
)
1096 #if _MSVCP_VER >= 110
1097 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1098 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1101 __ASM_VTABLE(basic_istringstream_wchar
,
1102 VTABLE_ADD_FUNC(basic_istringstream_wchar_vector_dtor
)
1103 #if _MSVCP_VER >= 110
1104 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1105 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1108 __ASM_VTABLE(basic_istringstream_short
,
1109 VTABLE_ADD_FUNC(basic_istringstream_wchar_vector_dtor
)
1110 #if _MSVCP_VER >= 110
1111 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1112 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1115 __ASM_VTABLE(basic_stringstream_char
,
1116 VTABLE_ADD_FUNC(basic_stringstream_char_vector_dtor
)
1117 #if _MSVCP_VER >= 110
1118 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1119 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1122 __ASM_VTABLE(basic_stringstream_wchar
,
1123 VTABLE_ADD_FUNC(basic_stringstream_wchar_vector_dtor
)
1124 #if _MSVCP_VER >= 110
1125 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1126 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1129 __ASM_VTABLE(basic_stringstream_short
,
1130 VTABLE_ADD_FUNC(basic_stringstream_wchar_vector_dtor
)
1131 #if _MSVCP_VER >= 110
1132 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1133 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1136 __ASM_VTABLE(strstreambuf
,
1137 VTABLE_ADD_FUNC(strstreambuf_vector_dtor
)
1138 VTABLE_ADD_FUNC(strstreambuf_overflow
)
1139 VTABLE_ADD_FUNC(strstreambuf_pbackfail
)
1140 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc
)
1141 VTABLE_ADD_FUNC(strstreambuf_underflow
)
1142 VTABLE_ADD_FUNC(basic_streambuf_char_uflow
)
1143 VTABLE_ADD_FUNC(basic_streambuf_char_xsgetn
)
1144 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
1145 VTABLE_ADD_FUNC(basic_streambuf_char__Xsgetn_s
)
1147 VTABLE_ADD_FUNC(basic_streambuf_char_xsputn
)
1148 VTABLE_ADD_FUNC(strstreambuf_seekoff
)
1149 VTABLE_ADD_FUNC(strstreambuf_seekpos
)
1150 VTABLE_ADD_FUNC(basic_streambuf_char_setbuf
)
1151 VTABLE_ADD_FUNC(basic_streambuf_char_sync
)
1152 VTABLE_ADD_FUNC(basic_streambuf_char_imbue
));
1153 __ASM_VTABLE(ostrstream
,
1154 VTABLE_ADD_FUNC(ostrstream_vector_dtor
)
1155 #if _MSVCP_VER >= 110
1156 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1157 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1160 __ASM_VTABLE(strstream
,
1161 VTABLE_ADD_FUNC(strstream_vector_dtor
)
1162 #if _MSVCP_VER >= 110
1163 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp1
)
1164 VTABLE_ADD_FUNC(basic_ios__Add_vtordisp2
)
1171 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD00@Z */
1172 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD00@Z */
1173 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setp_next
, 16)
1174 void __thiscall
basic_streambuf_char_setp_next(basic_streambuf_char
*this, char *first
, char *next
, char *last
)
1176 TRACE("(%p %p %p %p)\n", this, first
, next
, last
);
1180 this->wsize
= last
-next
;
1183 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD0@Z */
1184 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD0@Z */
1185 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setp
, 12)
1186 void __thiscall
basic_streambuf_char_setp(basic_streambuf_char
*this, char *first
, char *last
)
1188 basic_streambuf_char_setp_next(this, first
, first
, last
);
1191 /* ?setg@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD00@Z */
1192 /* ?setg@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD00@Z */
1193 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setg
, 16)
1194 void __thiscall
basic_streambuf_char_setg(basic_streambuf_char
*this, char *first
, char *next
, char *last
)
1196 TRACE("(%p %p %p %p)\n", this, first
, next
, last
);
1200 this->rsize
= last
-next
;
1203 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXXZ */
1204 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXXZ */
1205 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Init_empty
, 4)
1206 void __thiscall
basic_streambuf_char__Init_empty(basic_streambuf_char
*this)
1208 TRACE("(%p)\n", this);
1210 this->prbuf
= &this->rbuf
;
1211 this->pwbuf
= &this->wbuf
;
1212 this->prpos
= &this->rpos
;
1213 this->pwpos
= &this->wpos
;
1214 this->prsize
= &this->rsize
;
1215 this->pwsize
= &this->wsize
;
1217 basic_streambuf_char_setp(this, NULL
, NULL
);
1218 basic_streambuf_char_setg(this, NULL
, NULL
, NULL
);
1221 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAE@W4_Uninitialized@1@@Z */
1222 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAA@W4_Uninitialized@1@@Z */
1223 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_ctor_uninitialized
, 8)
1224 basic_streambuf_char
* __thiscall
basic_streambuf_char_ctor_uninitialized(basic_streambuf_char
*this, int uninitialized
)
1226 TRACE("(%p %d)\n", this, uninitialized
);
1227 this->vtable
= &MSVCP_basic_streambuf_char_vtable
;
1228 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
1229 mutex_ctor(&this->lock
);
1234 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAE@XZ */
1235 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAA@XZ */
1236 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_ctor
, 4)
1237 basic_streambuf_char
* __thiscall
basic_streambuf_char_ctor(basic_streambuf_char
*this)
1239 TRACE("(%p)\n", this);
1241 this->vtable
= &MSVCP_basic_streambuf_char_vtable
;
1242 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
1243 mutex_ctor(&this->lock
);
1245 #if _MSVCP_VER >= 70
1246 this->loc
= MSVCRT_operator_new(sizeof(locale
));
1248 locale_ctor(IOS_LOCALE(this));
1249 basic_streambuf_char__Init_empty(this);
1254 /* ??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UAE@XZ */
1255 /* ??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UEAA@XZ */
1256 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_dtor
, 4)
1257 void __thiscall
basic_streambuf_char_dtor(basic_streambuf_char
*this)
1259 TRACE("(%p)\n", this);
1261 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
1262 mutex_dtor(&this->lock
);
1264 locale_dtor(IOS_LOCALE(this));
1265 #if _MSVCP_VER >= 70
1266 MSVCRT_operator_delete(this->loc
);
1270 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_vector_dtor
, 8)
1271 basic_streambuf_char
* __thiscall
basic_streambuf_char_vector_dtor(basic_streambuf_char
*this, unsigned int flags
)
1273 TRACE("(%p %x)\n", this, flags
);
1275 /* we have an array, with the number of elements stored before the first object */
1276 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
1278 for(i
=*ptr
-1; i
>=0; i
--)
1279 basic_streambuf_char_dtor(this+i
);
1280 MSVCRT_operator_delete(ptr
);
1282 basic_streambuf_char_dtor(this);
1284 MSVCRT_operator_delete(this);
1290 /* ?_Gnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEHXZ */
1291 /* ?_Gnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBA_JXZ */
1292 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Gnavail
, 4)
1293 streamsize __thiscall
basic_streambuf_char__Gnavail(const basic_streambuf_char
*this)
1295 TRACE("(%p)\n", this);
1296 return *this->prpos
? *this->prsize
: 0;
1299 /* ?_Gndec@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
1300 /* ?_Gndec@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
1301 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Gndec
, 4)
1302 char* __thiscall
basic_streambuf_char__Gndec(basic_streambuf_char
*this)
1304 TRACE("(%p)\n", this);
1307 return *this->prpos
;
1310 /* ?_Gninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
1311 /* ?_Gninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
1312 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Gninc
, 4)
1313 char* __thiscall
basic_streambuf_char__Gninc(basic_streambuf_char
*this)
1315 TRACE("(%p)\n", this);
1317 return (*this->prpos
)++;
1320 /* ?_Gnpreinc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
1321 /* ?_Gnpreinc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
1322 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Gnpreinc
, 4)
1323 char* __thiscall
basic_streambuf_char__Gnpreinc(basic_streambuf_char
*this)
1325 TRACE("(%p)\n", this);
1328 return *this->prpos
;
1331 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAPAD0PAH001@Z */
1332 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAPEAD0PEAH001@Z */
1333 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Init
, 28)
1334 void __thiscall
basic_streambuf_char__Init(basic_streambuf_char
*this, char **gf
, char **gn
, int *gc
, char **pf
, char **pn
, int *pc
)
1336 TRACE("(%p %p %p %p %p %p %p)\n", this, gf
, gn
, gc
, pf
, pn
, pc
);
1346 /* ?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
1347 /* ?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
1348 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Lock
, 4)
1349 #if _MSVCP_VER >= 100
1350 #define call_basic_streambuf_char__Lock(this) CALL_VTBL_FUNC(this, 4, void, (basic_streambuf_char*), (this))
1352 #define call_basic_streambuf_char__Lock(this) basic_streambuf_char__Lock(this)
1354 void __thiscall
basic_streambuf_char__Lock(basic_streambuf_char
*this)
1356 TRACE("(%p)\n", this);
1357 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
1358 mutex_lock(&this->lock
);
1362 /* ?_Pnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEHXZ */
1363 /* ?_Pnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBA_JXZ */
1364 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Pnavail
, 4)
1365 streamsize __thiscall
basic_streambuf_char__Pnavail(const basic_streambuf_char
*this)
1367 TRACE("(%p)\n", this);
1368 return *this->pwpos
? *this->pwsize
: 0;
1371 /* ?_Pninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
1372 /* ?_Pninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
1373 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Pninc
, 4)
1374 char* __thiscall
basic_streambuf_char__Pninc(basic_streambuf_char
*this)
1376 TRACE("(%p)\n", this);
1378 return (*this->pwpos
)++;
1381 /* ?underflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1382 /* ?underflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
1383 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_underflow
, 4)
1384 #if _MSVCP_VER >= 100
1385 #define call_basic_streambuf_char_underflow(this) CALL_VTBL_FUNC(this, 24, int, (basic_streambuf_char*), (this))
1387 #define call_basic_streambuf_char_underflow(this) CALL_VTBL_FUNC(this, 16, int, (basic_streambuf_char*), (this))
1389 int __thiscall
basic_streambuf_char_underflow(basic_streambuf_char
*this)
1391 TRACE("(%p)\n", this);
1395 /* ?uflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1396 /* ?uflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
1397 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_uflow
, 4)
1398 #if _MSVCP_VER >= 100
1399 #define call_basic_streambuf_char_uflow(this) CALL_VTBL_FUNC(this, 28, int, (basic_streambuf_char*), (this))
1401 #define call_basic_streambuf_char_uflow(this) CALL_VTBL_FUNC(this, 20, int, (basic_streambuf_char*), (this))
1403 int __thiscall
basic_streambuf_char_uflow(basic_streambuf_char
*this)
1407 TRACE("(%p)\n", this);
1409 if(call_basic_streambuf_char_underflow(this)==EOF
)
1412 ret
= (unsigned char)**this->prpos
;
1418 /* ?_Xsgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHPADIH@Z */
1419 /* ?_Xsgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEAD_K_J@Z */
1420 #if STREAMSIZE_BITS == 64
1421 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Xsgetn_s
, 20)
1423 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Xsgetn_s
, 16)
1425 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
1426 #define call_basic_streambuf_char__Xsgetn_s(this, ptr, size, count) CALL_VTBL_FUNC(this, 28, \
1427 streamsize, (basic_streambuf_char*, char*, MSVCP_size_t, streamsize), (this, ptr, size, count))
1429 #define call_basic_streambuf_char__Xsgetn_s(this, ptr, size, count) basic_streambuf_char__Xsgetn_s(this, ptr, size, count)
1431 streamsize __thiscall
basic_streambuf_char__Xsgetn_s(basic_streambuf_char
*this, char *ptr
, MSVCP_size_t size
, streamsize count
)
1433 streamsize copied
, chunk
;
1436 TRACE("(%p %p %lu %s)\n", this, ptr
, size
, wine_dbgstr_longlong(count
));
1438 for(copied
=0; copied
<count
&& size
;) {
1439 chunk
= basic_streambuf_char__Gnavail(this);
1440 if(chunk
> count
-copied
)
1441 chunk
= count
-copied
;
1444 memcpy_s(ptr
+copied
, size
, *this->prpos
, chunk
);
1445 *this->prpos
+= chunk
;
1446 *this->prsize
-= chunk
;
1449 }else if((c
= call_basic_streambuf_char_uflow(this)) != EOF
) {
1461 /* ?_Sgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPADIH@Z */
1462 /* ?_Sgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_K_J@Z */
1463 #if STREAMSIZE_BITS == 64
1464 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Sgetn_s
, 20)
1466 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Sgetn_s
, 16)
1468 streamsize __thiscall
basic_streambuf_char__Sgetn_s(basic_streambuf_char
*this, char *ptr
, MSVCP_size_t size
, streamsize count
)
1470 TRACE("(%p %p %lu %s)\n", this, ptr
, size
, wine_dbgstr_longlong(count
));
1471 return call_basic_streambuf_char__Xsgetn_s(this, ptr
, size
, count
);
1474 /* ?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
1475 /* ?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
1476 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Unlock
, 4)
1477 #if _MSVCP_VER >= 100
1478 #define call_basic_streambuf_char__Unlock(this) CALL_VTBL_FUNC(this, 8, void, (basic_streambuf_char*), (this))
1480 #define call_basic_streambuf_char__Unlock(this) basic_streambuf_char__Unlock(this)
1482 void __thiscall
basic_streambuf_char__Unlock(basic_streambuf_char
*this)
1484 TRACE("(%p)\n", this);
1485 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
1486 mutex_unlock(&this->lock
);
1490 /* ?eback@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1491 /* ?eback@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1492 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_eback
, 4)
1493 char* __thiscall
basic_streambuf_char_eback(const basic_streambuf_char
*this)
1495 TRACE("(%p)\n", this);
1496 return *this->prbuf
;
1499 /* ?gptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1500 /* ?gptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1501 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_gptr
, 4)
1502 char* __thiscall
basic_streambuf_char_gptr(const basic_streambuf_char
*this)
1504 TRACE("(%p)\n", this);
1505 return *this->prpos
;
1508 /* ?egptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1509 /* ?egptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1510 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_egptr
, 4)
1511 char* __thiscall
basic_streambuf_char_egptr(const basic_streambuf_char
*this)
1513 TRACE("(%p)\n", this);
1514 return *this->prpos
+*this->prsize
;
1517 /* ?epptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1518 /* ?epptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1519 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_epptr
, 4)
1520 char* __thiscall
basic_streambuf_char_epptr(const basic_streambuf_char
*this)
1522 TRACE("(%p)\n", this);
1523 return *this->pwpos
+*this->pwsize
;
1526 /* ?gbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXH@Z */
1527 /* ?gbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXH@Z */
1528 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_gbump
, 8)
1529 void __thiscall
basic_streambuf_char_gbump(basic_streambuf_char
*this, int off
)
1531 TRACE("(%p %d)\n", this, off
);
1532 *this->prpos
+= off
;
1533 *this->prsize
-= off
;
1536 /* ?getloc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AVlocale@2@XZ */
1537 /* ?getloc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QBE?AVlocale@2@XZ */
1538 /* ?getloc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AVlocale@2@XZ */
1539 /* ?getloc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEBA?AVlocale@2@XZ */
1540 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_getloc
, 8)
1541 locale
* __thiscall
basic_streambuf_char_getloc(const basic_streambuf_char
*this, locale
*ret
)
1543 TRACE("(%p)\n", this);
1544 return locale_copy_ctor(ret
, IOS_LOCALE(this));
1547 /* ?imbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEXABVlocale@2@@Z */
1548 /* ?imbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAXAEBVlocale@2@@Z */
1549 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_imbue
, 8)
1550 #if _MSVCP_VER >= 100
1551 #define call_basic_streambuf_char_imbue(this, loc) CALL_VTBL_FUNC(this, 56, void, (basic_streambuf_char*, const locale*), (this, loc))
1552 #elif _MSVCP_VER >= 80
1553 #define call_basic_streambuf_char_imbue(this, loc) CALL_VTBL_FUNC(this, 52, void, (basic_streambuf_char*, const locale*), (this, loc))
1555 #define call_basic_streambuf_char_imbue(this, loc) CALL_VTBL_FUNC(this, 48, void, (basic_streambuf_char*, const locale*), (this, loc))
1557 void __thiscall
basic_streambuf_char_imbue(basic_streambuf_char
*this, const locale
*loc
)
1559 TRACE("(%p %p)\n", this, loc
);
1562 /* ?overflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHH@Z */
1563 /* ?overflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z */
1564 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_overflow
, 8)
1565 #if _MSVCP_VER >= 100
1566 #define call_basic_streambuf_char_overflow(this, ch) CALL_VTBL_FUNC(this, 12, int, (basic_streambuf_char*, int), (this, ch))
1568 #define call_basic_streambuf_char_overflow(this, ch) CALL_VTBL_FUNC(this, 4, int, (basic_streambuf_char*, int), (this, ch))
1570 int __thiscall
basic_streambuf_char_overflow(basic_streambuf_char
*this, int ch
)
1572 TRACE("(%p %d)\n", this, ch
);
1576 /* ?pbackfail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHH@Z */
1577 /* ?pbackfail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z */
1578 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pbackfail
, 8)
1579 #if _MSVCP_VER >= 100
1580 #define call_basic_streambuf_char_pbackfail(this, ch) CALL_VTBL_FUNC(this, 16, int, (basic_streambuf_char*, int), (this, ch))
1582 #define call_basic_streambuf_char_pbackfail(this, ch) CALL_VTBL_FUNC(this, 8, int, (basic_streambuf_char*, int), (this, ch))
1584 int __thiscall
basic_streambuf_char_pbackfail(basic_streambuf_char
*this, int ch
)
1586 TRACE("(%p %d)\n", this, ch
);
1590 /* ?pbase@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1591 /* ?pbase@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1592 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pbase
, 4)
1593 char* __thiscall
basic_streambuf_char_pbase(const basic_streambuf_char
*this)
1595 TRACE("(%p)\n", this);
1596 return *this->pwbuf
;
1599 /* ?pbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXH@Z */
1600 /* ?pbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXH@Z */
1601 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pbump
, 8)
1602 void __thiscall
basic_streambuf_char_pbump(basic_streambuf_char
*this, int off
)
1604 TRACE("(%p %d)\n", this, off
);
1605 *this->pwpos
+= off
;
1606 *this->pwsize
-= off
;
1609 /* ?pptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1610 /* ?pptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1611 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pptr
, 4)
1612 char* __thiscall
basic_streambuf_char_pptr(const basic_streambuf_char
*this)
1614 TRACE("(%p)\n", this);
1615 return *this->pwpos
;
1618 /* ?pubimbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
1619 /* ?pubimbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
1620 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubimbue
, 12)
1621 locale
* __thiscall
basic_streambuf_char_pubimbue(basic_streambuf_char
*this, locale
*ret
, const locale
*loc
)
1623 TRACE("(%p %p)\n", this, loc
);
1624 memcpy(ret
, IOS_LOCALE(this), sizeof(locale
));
1625 call_basic_streambuf_char_imbue(this, loc
);
1626 locale_copy_ctor(IOS_LOCALE(this), loc
);
1630 /* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
1631 /* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
1632 /* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
1633 /* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
1634 #if STREAMOFF_BITS == 64
1635 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_seekoff
, 24)
1637 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_seekoff
, 20)
1639 #if _MSVCP_VER >= 100
1640 #define call_basic_streambuf_char_seekoff(this, ret, off, way, mode) CALL_VTBL_FUNC(this, 40, fpos_int*, (basic_streambuf_char*, fpos_int*, streamoff, int, int), (this, ret, off, way, mode))
1641 #elif _MSVCP_VER >= 80
1642 #define call_basic_streambuf_char_seekoff(this, ret, off, way, mode) CALL_VTBL_FUNC(this, 36, fpos_int*, (basic_streambuf_char*, fpos_int*, streamoff, int, int), (this, ret, off, way, mode))
1644 #define call_basic_streambuf_char_seekoff(this, ret, off, way, mode) CALL_VTBL_FUNC(this, 32, fpos_int*, (basic_streambuf_char*, fpos_int*, streamoff, int, int), (this, ret, off, way, mode))
1646 fpos_int
* __thiscall
basic_streambuf_char_seekoff(basic_streambuf_char
*this,
1647 fpos_int
*ret
, streamoff off
, int way
, int mode
)
1649 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
1656 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JHH@Z */
1657 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JHH@Z */
1658 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JFF@Z */
1659 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JFF@Z */
1660 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
1661 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
1662 #if STREAMOFF_BITS == 64
1663 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff
, 24)
1665 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff
, 20)
1667 fpos_int
* __thiscall
basic_streambuf_char_pubseekoff(basic_streambuf_char
*this,
1668 fpos_int
*ret
, streamoff off
, int way
, int mode
)
1670 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
1671 return call_basic_streambuf_char_seekoff(this, ret
, off
, way
, mode
);
1674 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JII@Z */
1675 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JII@Z */
1676 #if STREAMOFF_BITS == 64
1677 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff_old
, 24)
1679 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff_old
, 20)
1681 fpos_int
* __thiscall
basic_streambuf_char_pubseekoff_old(basic_streambuf_char
*this,
1682 fpos_int
*ret
, streamoff off
, unsigned int way
, unsigned int mode
)
1684 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
1685 return basic_streambuf_char_pubseekoff(this, ret
, off
, way
, mode
);
1688 /* ?seekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
1689 /* ?seekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
1690 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_seekpos
, 36)
1691 #if _MSVCP_VER >= 100
1692 #define call_basic_streambuf_char_seekpos(this, ret, pos, mode) CALL_VTBL_FUNC(this, 44, fpos_int*, (basic_streambuf_char*, fpos_int*, fpos_int, int), (this, ret, pos, mode))
1693 #elif _MSVCP_VER >= 80
1694 #define call_basic_streambuf_char_seekpos(this, ret, pos, mode) CALL_VTBL_FUNC(this, 40, fpos_int*, (basic_streambuf_char*, fpos_int*, fpos_int, int), (this, ret, pos, mode))
1696 #define call_basic_streambuf_char_seekpos(this, ret, pos, mode) CALL_VTBL_FUNC(this, 36, fpos_int*, (basic_streambuf_char*, fpos_int*, fpos_int, int), (this, ret, pos, mode))
1698 fpos_int
* __thiscall
basic_streambuf_char_seekpos(basic_streambuf_char
*this,
1699 fpos_int
*ret
, fpos_int pos
, int mode
)
1701 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
1708 /* ?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@V32@H@Z */
1709 /* ?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@V32@H@Z */
1710 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekpos
, 36)
1711 fpos_int
* __thiscall
basic_streambuf_char_pubseekpos(basic_streambuf_char
*this,
1712 fpos_int
*ret
, fpos_int pos
, int mode
)
1714 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
1715 return call_basic_streambuf_char_seekpos(this, ret
, pos
, mode
);
1718 /* ?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@V32@I@Z */
1719 /* ?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@V32@I@Z */
1720 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekpos_old
, 36)
1721 fpos_int
* __thiscall
basic_streambuf_char_pubseekpos_old(basic_streambuf_char
*this,
1722 fpos_int
*ret
, fpos_int pos
, unsigned int mode
)
1724 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
1725 return basic_streambuf_char_pubseekpos(this, ret
, pos
, mode
);
1728 /* ?setbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEPAV12@PADH@Z */
1729 /* ?setbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAPEAV12@PEAD_J@Z */
1730 #if STREAMSIZE_BITS == 64
1731 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setbuf
, 16)
1733 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setbuf
, 12)
1735 #if _MSVCP_VER >= 100
1736 #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))
1737 #elif _MSVCP_VER >= 80
1738 #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))
1740 #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))
1742 basic_streambuf_char
* __thiscall
basic_streambuf_char_setbuf(basic_streambuf_char
*this, char *buf
, streamsize count
)
1744 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
1748 /* ?pubsetbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PADH@Z */
1749 /* ?pubsetbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEAD_J@Z */
1750 #if STREAMSIZE_BITS == 64
1751 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubsetbuf
, 16)
1753 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubsetbuf
, 12)
1755 basic_streambuf_char
* __thiscall
basic_streambuf_char_pubsetbuf(basic_streambuf_char
*this, char *buf
, streamsize count
)
1757 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
1758 return call_basic_streambuf_char_setbuf(this, buf
, count
);
1761 /* ?sync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1762 /* ?sync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
1763 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sync
, 4)
1764 #if _MSVCP_VER >= 100
1765 #define call_basic_streambuf_char_sync(this) CALL_VTBL_FUNC(this, 52, int, (basic_streambuf_char*), (this))
1766 #elif _MSVCP_VER >= 80
1767 #define call_basic_streambuf_char_sync(this) CALL_VTBL_FUNC(this, 48, int, (basic_streambuf_char*), (this))
1769 #define call_basic_streambuf_char_sync(this) CALL_VTBL_FUNC(this, 44, int, (basic_streambuf_char*), (this))
1771 int __thiscall
basic_streambuf_char_sync(basic_streambuf_char
*this)
1773 TRACE("(%p)\n", this);
1777 /* ?pubsync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1778 /* ?pubsync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1779 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubsync
, 4)
1780 int __thiscall
basic_streambuf_char_pubsync(basic_streambuf_char
*this)
1782 TRACE("(%p)\n", this);
1783 return call_basic_streambuf_char_sync(this);
1786 /* ?sgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPADH@Z */
1787 /* ?sgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_J@Z */
1788 #if STREAMSIZE_BITS == 64
1789 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sgetn
, 16)
1791 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sgetn
, 12)
1793 streamsize __thiscall
basic_streambuf_char_sgetn(basic_streambuf_char
*this, char *ptr
, streamsize count
)
1795 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
1796 return call_basic_streambuf_char__Xsgetn_s(this, ptr
, -1, count
);
1799 /* ?showmanyc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1800 /* ?showmanyc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JXZ */
1801 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_showmanyc
, 4)
1802 #if _MSVCP_VER >= 100
1803 #define call_basic_streambuf_char_showmanyc(this) CALL_VTBL_FUNC(this, 20, streamsize, (basic_streambuf_char*), (this))
1805 #define call_basic_streambuf_char_showmanyc(this) CALL_VTBL_FUNC(this, 12, streamsize, (basic_streambuf_char*), (this))
1807 streamsize __thiscall
basic_streambuf_char_showmanyc(basic_streambuf_char
*this)
1809 TRACE("(%p)\n", this);
1813 /* ?in_avail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1814 /* ?in_avail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JXZ */
1815 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_in_avail
, 4)
1816 streamsize __thiscall
basic_streambuf_char_in_avail(basic_streambuf_char
*this)
1820 TRACE("(%p)\n", this);
1822 ret
= basic_streambuf_char__Gnavail(this);
1823 return ret
? ret
: call_basic_streambuf_char_showmanyc(this);
1826 /* ?sputbackc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z */
1827 /* ?sputbackc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHD@Z */
1828 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputbackc
, 8)
1829 int __thiscall
basic_streambuf_char_sputbackc(basic_streambuf_char
*this, char ch
)
1831 TRACE("(%p %d)\n", this, ch
);
1832 if(*this->prpos
&& *this->prpos
>*this->prbuf
&& (*this->prpos
)[-1]==ch
) {
1835 return (unsigned char)ch
;
1838 return call_basic_streambuf_char_pbackfail(this, (unsigned char)ch
);
1841 /* ?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z */
1842 /* ?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHD@Z */
1843 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputc
, 8)
1844 int __thiscall
basic_streambuf_char_sputc(basic_streambuf_char
*this, char ch
)
1846 TRACE("(%p %d)\n", this, ch
);
1847 return basic_streambuf_char__Pnavail(this) ?
1848 (unsigned char)(*basic_streambuf_char__Pninc(this) = ch
) :
1849 call_basic_streambuf_char_overflow(this, (unsigned char)ch
);
1852 /* ?sungetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1853 /* ?sungetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1854 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sungetc
, 4)
1855 int __thiscall
basic_streambuf_char_sungetc(basic_streambuf_char
*this)
1857 TRACE("(%p)\n", this);
1858 if(*this->prpos
&& *this->prpos
>*this->prbuf
) {
1861 return (unsigned char)**this->prpos
;
1864 return call_basic_streambuf_char_pbackfail(this, EOF
);
1867 /* ?stossc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
1868 /* ?stossc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
1869 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_stossc
, 4)
1870 void __thiscall
basic_streambuf_char_stossc(basic_streambuf_char
*this)
1872 TRACE("(%p)\n", this);
1873 if(basic_streambuf_char__Gnavail(this))
1874 basic_streambuf_char__Gninc(this);
1876 call_basic_streambuf_char_uflow(this);
1879 /* ?sbumpc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1880 /* ?sbumpc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1881 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sbumpc
, 4)
1882 int __thiscall
basic_streambuf_char_sbumpc(basic_streambuf_char
*this)
1884 TRACE("(%p)\n", this);
1885 return basic_streambuf_char__Gnavail(this) ?
1886 (int)(unsigned char)*basic_streambuf_char__Gninc(this) : call_basic_streambuf_char_uflow(this);
1889 /* ?sgetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1890 /* ?sgetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1891 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sgetc
, 4)
1892 int __thiscall
basic_streambuf_char_sgetc(basic_streambuf_char
*this)
1894 TRACE("(%p)\n", this);
1895 return basic_streambuf_char__Gnavail(this) ?
1896 (int)(unsigned char)*basic_streambuf_char_gptr(this) : call_basic_streambuf_char_underflow(this);
1899 /* ?snextc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1900 /* ?snextc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1901 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_snextc
, 4)
1902 int __thiscall
basic_streambuf_char_snextc(basic_streambuf_char
*this)
1904 TRACE("(%p)\n", this);
1906 if(basic_streambuf_char__Gnavail(this) > 1)
1907 return (unsigned char)*basic_streambuf_char__Gnpreinc(this);
1908 return basic_streambuf_char_sbumpc(this)==EOF
?
1909 EOF
: basic_streambuf_char_sgetc(this);
1912 /* ?xsgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHPADH@Z */
1913 /* ?xsgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEAD_J@Z */
1914 #if STREAMSIZE_BITS == 64
1915 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsgetn
, 16)
1917 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsgetn
, 12)
1919 #if _MSVCP_VER >= 100
1920 #define call_basic_streambuf_char_xsgetn(this, ptr, count) CALL_VTBL_FUNC(this, 32, streamsize, (basic_streambuf_char*, char*, streamsize), (this, ptr, count))
1922 #define call_basic_streambuf_char_xsgetn(this, ptr, count) CALL_VTBL_FUNC(this, 24, streamsize, (basic_streambuf_char*, char*, streamsize), (this, ptr, count))
1924 streamsize __thiscall
basic_streambuf_char_xsgetn(basic_streambuf_char
*this, char *ptr
, streamsize count
)
1926 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
1927 return call_basic_streambuf_char__Xsgetn_s(this, ptr
, -1, count
);
1930 /* ?xsputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHPBDH@Z */
1931 /* ?xsputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEBD_J@Z */
1932 #if STREAMSIZE_BITS == 64
1933 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsputn
, 16)
1935 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsputn
, 12)
1937 #if _MSVCP_VER >= 100
1938 #define call_basic_streambuf_char_xsputn(this, ptr, count) CALL_VTBL_FUNC(this, 36, streamsize, (basic_streambuf_char*, const char*, streamsize), (this, ptr, count))
1939 #elif _MSVCP_VER >= 80
1940 #define call_basic_streambuf_char_xsputn(this, ptr, count) CALL_VTBL_FUNC(this, 32, streamsize, (basic_streambuf_char*, const char*, streamsize), (this, ptr, count))
1942 #define call_basic_streambuf_char_xsputn(this, ptr, count) CALL_VTBL_FUNC(this, 28, streamsize, (basic_streambuf_char*, const char*, streamsize), (this, ptr, count))
1944 streamsize __thiscall
basic_streambuf_char_xsputn(basic_streambuf_char
*this, const char *ptr
, streamsize count
)
1946 streamsize copied
, chunk
;
1948 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
1950 for(copied
=0; copied
<count
;) {
1951 chunk
= basic_streambuf_char__Pnavail(this);
1952 if(chunk
> count
-copied
)
1953 chunk
= count
-copied
;
1956 memcpy(*this->pwpos
, ptr
+copied
, chunk
);
1957 *this->pwpos
+= chunk
;
1958 *this->pwsize
-= chunk
;
1960 }else if(call_basic_streambuf_char_overflow(this, (unsigned char)ptr
[copied
]) != EOF
) {
1970 /* ?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPBDH@Z */
1971 /* ?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEBD_J@Z */
1972 #if STREAMSIZE_BITS == 64
1973 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputn
, 16)
1975 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputn
, 12)
1977 streamsize __thiscall
basic_streambuf_char_sputn(basic_streambuf_char
*this, const char *ptr
, streamsize count
)
1979 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
1980 return call_basic_streambuf_char_xsputn(this, ptr
, count
);
1983 /* ?swap@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXAAV12@@Z */
1984 /* ?swap@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXAEAV12@@Z */
1985 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_swap
, 8)
1986 void __thiscall
basic_streambuf_char_swap(basic_streambuf_char
*this, basic_streambuf_char
*r
)
1988 basic_streambuf_char tmp
;
1990 TRACE("(%p %p)\n", this, r
);
1997 this->vtable
= tmp
.vtable
;
1998 tmp
.vtable
= r
->vtable
;
2002 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPA_W00@Z */
2003 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEA_W00@Z */
2004 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAG00@Z */
2005 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAG00@Z */
2006 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setp_next
, 16)
2007 void __thiscall
basic_streambuf_wchar_setp_next(basic_streambuf_wchar
*this, wchar_t *first
, wchar_t *next
, wchar_t *last
)
2009 TRACE("(%p %p %p %p)\n", this, first
, next
, last
);
2013 this->wsize
= last
-next
;
2016 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPA_W0@Z */
2017 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEA_W0@Z */
2018 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAG0@Z */
2019 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAG0@Z */
2020 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setp
, 12)
2021 void __thiscall
basic_streambuf_wchar_setp(basic_streambuf_wchar
*this, wchar_t *first
, wchar_t *last
)
2023 basic_streambuf_wchar_setp_next(this, first
, first
, last
);
2026 /* ?setg@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPA_W00@Z */
2027 /* ?setg@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEA_W00@Z */
2028 /* ?setg@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAG00@Z */
2029 /* ?setg@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAG00@Z */
2030 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setg
, 16)
2031 void __thiscall
basic_streambuf_wchar_setg(basic_streambuf_wchar
*this, wchar_t *first
, wchar_t *next
, wchar_t *last
)
2033 TRACE("(%p %p %p %p)\n", this, first
, next
, last
);
2037 this->rsize
= last
-next
;
2040 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXXZ */
2041 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXXZ */
2042 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXXZ */
2043 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXXZ */
2044 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Init_empty
, 4)
2045 void __thiscall
basic_streambuf_wchar__Init_empty(basic_streambuf_wchar
*this)
2047 TRACE("(%p)\n", this);
2049 this->prbuf
= &this->rbuf
;
2050 this->pwbuf
= &this->wbuf
;
2051 this->prpos
= &this->rpos
;
2052 this->pwpos
= &this->wpos
;
2053 this->prsize
= &this->rsize
;
2054 this->pwsize
= &this->wsize
;
2056 basic_streambuf_wchar_setp(this, NULL
, NULL
);
2057 basic_streambuf_wchar_setg(this, NULL
, NULL
, NULL
);
2060 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAE@W4_Uninitialized@1@@Z */
2061 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAA@W4_Uninitialized@1@@Z */
2062 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_ctor_uninitialized
, 8)
2063 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_ctor_uninitialized(basic_streambuf_wchar
*this, int uninitialized
)
2065 TRACE("(%p %d)\n", this, uninitialized
);
2066 this->vtable
= &MSVCP_basic_streambuf_wchar_vtable
;
2067 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
2068 mutex_ctor(&this->lock
);
2073 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAE@W4_Uninitialized@1@@Z */
2074 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAA@W4_Uninitialized@1@@Z */
2075 DEFINE_THISCALL_WRAPPER(basic_streambuf_short_ctor_uninitialized
, 8)
2076 basic_streambuf_wchar
* __thiscall
basic_streambuf_short_ctor_uninitialized(basic_streambuf_wchar
*this, int uninitialized
)
2078 TRACE("(%p %d)\n", this, uninitialized
);
2079 basic_streambuf_wchar_ctor_uninitialized(this, uninitialized
);
2080 this->vtable
= &MSVCP_basic_streambuf_short_vtable
;
2084 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAE@XZ */
2085 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAA@XZ */
2086 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_ctor
, 4)
2087 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_ctor(basic_streambuf_wchar
*this)
2089 TRACE("(%p)\n", this);
2091 this->vtable
= &MSVCP_basic_streambuf_wchar_vtable
;
2092 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
2093 mutex_ctor(&this->lock
);
2095 #if _MSVCP_VER >= 70
2096 this->loc
= MSVCRT_operator_new(sizeof(locale
));
2098 locale_ctor(IOS_LOCALE(this));
2099 basic_streambuf_wchar__Init_empty(this);
2104 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAE@XZ */
2105 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAA@XZ */
2106 DEFINE_THISCALL_WRAPPER(basic_streambuf_short_ctor
, 4)
2107 basic_streambuf_wchar
* __thiscall
basic_streambuf_short_ctor(basic_streambuf_wchar
*this)
2109 TRACE("(%p)\n", this);
2110 basic_streambuf_wchar_ctor(this);
2111 this->vtable
= &MSVCP_basic_streambuf_short_vtable
;
2115 /* ??1?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
2116 /* ??1?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
2117 /* ??1?$basic_streambuf@GU?$char_traits@G@std@@@std@@UAE@XZ */
2118 /* ??1?$basic_streambuf@GU?$char_traits@G@std@@@std@@UEAA@XZ */
2119 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_dtor
, 4)
2120 void __thiscall
basic_streambuf_wchar_dtor(basic_streambuf_wchar
*this)
2122 TRACE("(%p)\n", this);
2124 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
2125 mutex_dtor(&this->lock
);
2127 locale_dtor(IOS_LOCALE(this));
2128 #if _MSVCP_VER >= 70
2129 MSVCRT_operator_delete(this->loc
);
2133 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_vector_dtor
, 8)
2134 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_vector_dtor(basic_streambuf_wchar
*this, unsigned int flags
)
2136 TRACE("(%p %x)\n", this, flags
);
2138 /* we have an array, with the number of elements stored before the first object */
2139 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
2141 for(i
=*ptr
-1; i
>=0; i
--)
2142 basic_streambuf_wchar_dtor(this+i
);
2143 MSVCRT_operator_delete(ptr
);
2145 basic_streambuf_wchar_dtor(this);
2147 MSVCRT_operator_delete(this);
2153 /* ?_Gnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEHXZ */
2154 /* ?_Gnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBA_JXZ */
2155 /* ?_Gnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEHXZ */
2156 /* ?_Gnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBA_JXZ */
2157 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Gnavail
, 4)
2158 streamsize __thiscall
basic_streambuf_wchar__Gnavail(const basic_streambuf_wchar
*this)
2160 TRACE("(%p)\n", this);
2161 return *this->prpos
? *this->prsize
: 0;
2164 /* ?_Gndec@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
2165 /* ?_Gndec@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
2166 /* ?_Gndec@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
2167 /* ?_Gndec@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
2168 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Gndec
, 4)
2169 wchar_t* __thiscall
basic_streambuf_wchar__Gndec(basic_streambuf_wchar
*this)
2171 TRACE("(%p)\n", this);
2174 return *this->prpos
;
2177 /* ?_Gninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
2178 /* ?_Gninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
2179 /* ?_Gninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
2180 /* ?_Gninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
2181 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Gninc
, 4)
2182 wchar_t* __thiscall
basic_streambuf_wchar__Gninc(basic_streambuf_wchar
*this)
2184 TRACE("(%p)\n", this);
2186 return (*this->prpos
)++;
2189 /* ?_Gnpreinc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
2190 /* ?_Gnpreinc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
2191 /* ?_Gnpreinc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
2192 /* ?_Gnpreinc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
2193 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Gnpreinc
, 4)
2194 wchar_t* __thiscall
basic_streambuf_wchar__Gnpreinc(basic_streambuf_wchar
*this)
2196 TRACE("(%p)\n", this);
2199 return *this->prpos
;
2202 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPAPA_W0PAH001@Z */
2203 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEAPEA_W0PEAH001@Z */
2204 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAPAG0PAH001@Z */
2205 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAPEAG0PEAH001@Z */
2206 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Init
, 28)
2207 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
)
2209 TRACE("(%p %p %p %p %p %p %p)\n", this, gf
, gn
, gc
, pf
, pn
, pc
);
2219 /* ?_Lock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
2220 /* ?_Lock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
2221 /* ?_Lock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
2222 /* ?_Lock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
2223 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Lock
, 4)
2224 void __thiscall
basic_streambuf_wchar__Lock(basic_streambuf_wchar
*this)
2226 TRACE("(%p)\n", this);
2227 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
2228 mutex_lock(&this->lock
);
2232 /* ?_Pnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEHXZ */
2233 /* ?_Pnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBA_JXZ */
2234 /* ?_Pnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEHXZ */
2235 /* ?_Pnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBA_JXZ */
2236 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Pnavail
, 4)
2237 streamsize __thiscall
basic_streambuf_wchar__Pnavail(const basic_streambuf_wchar
*this)
2239 TRACE("(%p)\n", this);
2240 return *this->pwpos
? *this->pwsize
: 0;
2243 /* ?_Pninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
2244 /* ?_Pninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
2245 /* ?_Pninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
2246 /* ?_Pninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
2247 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Pninc
, 4)
2248 wchar_t* __thiscall
basic_streambuf_wchar__Pninc(basic_streambuf_wchar
*this)
2250 TRACE("(%p)\n", this);
2252 return (*this->pwpos
)++;
2255 /* ?underflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
2256 /* ?underflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
2257 /* ?underflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
2258 /* ?underflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
2259 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_underflow
, 4)
2260 #if _MSVCP_VER >= 100
2261 #define call_basic_streambuf_wchar_underflow(this) CALL_VTBL_FUNC(this, 24, unsigned short, (basic_streambuf_wchar*), (this))
2263 #define call_basic_streambuf_wchar_underflow(this) CALL_VTBL_FUNC(this, 16, unsigned short, (basic_streambuf_wchar*), (this))
2265 unsigned short __thiscall
basic_streambuf_wchar_underflow(basic_streambuf_wchar
*this)
2267 TRACE("(%p)\n", this);
2271 /* ?uflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
2272 /* ?uflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
2273 /* ?uflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
2274 /* ?uflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
2275 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_uflow
, 4)
2276 #if _MSVCP_VER >= 100
2277 #define call_basic_streambuf_wchar_uflow(this) CALL_VTBL_FUNC(this, 28, unsigned short, (basic_streambuf_wchar*), (this))
2279 #define call_basic_streambuf_wchar_uflow(this) CALL_VTBL_FUNC(this, 20, unsigned short, (basic_streambuf_wchar*), (this))
2281 unsigned short __thiscall
basic_streambuf_wchar_uflow(basic_streambuf_wchar
*this)
2285 TRACE("(%p)\n", this);
2287 if(call_basic_streambuf_wchar_underflow(this)==WEOF
)
2290 ret
= **this->prpos
;
2296 /* ?_Xsgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHPA_WIH@Z */
2297 /* ?_Xsgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEA_W_K_J@Z */
2298 /* ?_Xsgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHPAGIH@Z */
2299 /* ?_Xsgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JPEAG_K_J@Z */
2300 #if STREAMSIZE_BITS == 64
2301 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Xsgetn_s
, 20)
2303 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Xsgetn_s
, 16)
2305 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
2306 #define call_basic_streambuf_wchar__Xsgetn_s(this, ptr, size, count) CALL_VTBL_FUNC(this, 28, \
2307 streamsize, (basic_streambuf_wchar*, wchar_t*, MSVCP_size_t, streamsize), (this, ptr, size, count))
2309 #define call_basic_streambuf_wchar__Xsgetn_s(this, ptr, size, count) basic_streambuf_wchar__Xsgetn_s(this, ptr, size, count)
2311 streamsize __thiscall
basic_streambuf_wchar__Xsgetn_s(basic_streambuf_wchar
*this, wchar_t *ptr
, MSVCP_size_t size
, streamsize count
)
2313 streamsize copied
, chunk
;
2316 TRACE("(%p %p %lu %s)\n", this, ptr
, size
, wine_dbgstr_longlong(count
));
2318 for(copied
=0; copied
<count
&& size
;) {
2319 chunk
= basic_streambuf_wchar__Gnavail(this);
2320 if(chunk
> count
-copied
)
2321 chunk
= count
-copied
;
2324 memcpy_s(ptr
+copied
, size
, *this->prpos
, chunk
*sizeof(wchar_t));
2325 *this->prpos
+= chunk
;
2326 *this->prsize
-= chunk
;
2328 size
-= chunk
*sizeof(wchar_t);
2329 }else if((c
= call_basic_streambuf_wchar_uflow(this)) != WEOF
) {
2341 /* ?_Sgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHPA_WIH@Z */
2342 /* ?_Sgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_K_J@Z */
2343 /* ?_Sgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHPAGIH@Z */
2344 /* ?_Sgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_K_J@Z */
2345 #if STREAMSIZE_BITS == 64
2346 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Sgetn_s
, 20)
2348 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Sgetn_s
, 16)
2350 streamsize __thiscall
basic_streambuf_wchar__Sgetn_s(basic_streambuf_wchar
*this, wchar_t *ptr
, MSVCP_size_t size
, streamsize count
)
2352 TRACE("(%p %p %lu %s)\n", this, ptr
, size
, wine_dbgstr_longlong(count
));
2353 return call_basic_streambuf_wchar__Xsgetn_s(this, ptr
, size
, count
);
2356 /* ?_Unlock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
2357 /* ?_Unlock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
2358 /* ?_Unlock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
2359 /* ?_Unlock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
2360 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Unlock
, 4)
2361 void __thiscall
basic_streambuf_wchar__Unlock(basic_streambuf_wchar
*this)
2363 TRACE("(%p)\n", this);
2364 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
2365 mutex_unlock(&this->lock
);
2369 /* ?eback@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2370 /* ?eback@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2371 /* ?eback@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2372 /* ?eback@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2373 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_eback
, 4)
2374 wchar_t* __thiscall
basic_streambuf_wchar_eback(const basic_streambuf_wchar
*this)
2376 TRACE("(%p)\n", this);
2377 return *this->prbuf
;
2380 /* ?gptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2381 /* ?gptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2382 /* ?gptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2383 /* ?gptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2384 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_gptr
, 4)
2385 wchar_t* __thiscall
basic_streambuf_wchar_gptr(const basic_streambuf_wchar
*this)
2387 TRACE("(%p)\n", this);
2388 return *this->prpos
;
2391 /* ?egptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2392 /* ?egptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2393 /* ?egptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2394 /* ?egptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2395 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_egptr
, 4)
2396 wchar_t* __thiscall
basic_streambuf_wchar_egptr(const basic_streambuf_wchar
*this)
2398 TRACE("(%p)\n", this);
2399 return *this->prpos
+*this->prsize
;
2402 /* ?epptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2403 /* ?epptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2404 /* ?epptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2405 /* ?epptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2406 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_epptr
, 4)
2407 wchar_t* __thiscall
basic_streambuf_wchar_epptr(const basic_streambuf_wchar
*this)
2409 TRACE("(%p)\n", this);
2410 return *this->pwpos
+*this->pwsize
;
2413 /* ?gbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXH@Z */
2414 /* ?gbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXH@Z */
2415 /* ?gbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXH@Z */
2416 /* ?gbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXH@Z */
2417 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_gbump
, 8)
2418 void __thiscall
basic_streambuf_wchar_gbump(basic_streambuf_wchar
*this, int off
)
2420 TRACE("(%p %d)\n", this, off
);
2421 *this->prpos
+= off
;
2422 *this->prsize
-= off
;
2425 /* ?getloc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QBE?AVlocale@2@XZ */
2426 /* ?getloc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEBA?AVlocale@2@XZ */
2427 /* ?getloc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QBE?AVlocale@2@XZ */
2428 /* ?getloc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEBA?AVlocale@2@XZ */
2429 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_getloc
, 8)
2430 locale
* __thiscall
basic_streambuf_wchar_getloc(const basic_streambuf_wchar
*this, locale
*ret
)
2432 TRACE("(%p)\n", this);
2433 return locale_copy_ctor(ret
, IOS_LOCALE(this));
2436 /* ?imbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEXABVlocale@2@@Z */
2437 /* ?imbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAXAEBVlocale@2@@Z */
2438 /* ?imbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEXABVlocale@2@@Z */
2439 /* ?imbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAXAEBVlocale@2@@Z */
2440 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_imbue
, 8)
2441 #if _MSVCP_VER >= 100
2442 #define call_basic_streambuf_wchar_imbue(this, loc) CALL_VTBL_FUNC(this, 56, void, (basic_streambuf_wchar*, const locale*), (this, loc))
2443 #elif _MSVCP_VER >= 80
2444 #define call_basic_streambuf_wchar_imbue(this, loc) CALL_VTBL_FUNC(this, 52, void, (basic_streambuf_wchar*, const locale*), (this, loc))
2446 #define call_basic_streambuf_wchar_imbue(this, loc) CALL_VTBL_FUNC(this, 48, void, (basic_streambuf_wchar*, const locale*), (this, loc))
2448 void __thiscall
basic_streambuf_wchar_imbue(basic_streambuf_wchar
*this, const locale
*loc
)
2450 TRACE("(%p %p)\n", this, loc
);
2453 /* ?overflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
2454 /* ?overflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
2455 /* ?overflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
2456 /* ?overflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
2457 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_overflow
, 8)
2458 #if _MSVCP_VER >= 100
2459 #define call_basic_streambuf_wchar_overflow(this, ch) CALL_VTBL_FUNC(this, 12, unsigned short, (basic_streambuf_wchar*, unsigned short), (this, ch))
2461 #define call_basic_streambuf_wchar_overflow(this, ch) CALL_VTBL_FUNC(this, 4, unsigned short, (basic_streambuf_wchar*, unsigned short), (this, ch))
2463 unsigned short __thiscall
basic_streambuf_wchar_overflow(basic_streambuf_wchar
*this, unsigned short ch
)
2465 TRACE("(%p %d)\n", this, ch
);
2469 /* ?pbackfail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
2470 /* ?pbackfail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
2471 /* ?pbackfail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
2472 /* ?pbackfail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
2473 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pbackfail
, 8)
2474 #if _MSVCP_VER >= 100
2475 #define call_basic_streambuf_wchar_pbackfail(this, ch) CALL_VTBL_FUNC(this, 16, unsigned short, (basic_streambuf_wchar*, unsigned short), (this, ch))
2477 #define call_basic_streambuf_wchar_pbackfail(this, ch) CALL_VTBL_FUNC(this, 8, unsigned short, (basic_streambuf_wchar*, unsigned short), (this, ch))
2479 unsigned short __thiscall
basic_streambuf_wchar_pbackfail(basic_streambuf_wchar
*this, unsigned short ch
)
2481 TRACE("(%p %d)\n", this, ch
);
2485 /* ?pbase@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2486 /* ?pbase@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2487 /* ?pbase@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2488 /* ?pbase@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2489 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pbase
, 4)
2490 wchar_t* __thiscall
basic_streambuf_wchar_pbase(const basic_streambuf_wchar
*this)
2492 TRACE("(%p)\n", this);
2493 return *this->pwbuf
;
2496 /* ?pbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXH@Z */
2497 /* ?pbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXH@Z */
2498 /* ?pbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXH@Z */
2499 /* ?pbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXH@Z */
2500 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pbump
, 8)
2501 void __thiscall
basic_streambuf_wchar_pbump(basic_streambuf_wchar
*this, int off
)
2503 TRACE("(%p %d)\n", this, off
);
2504 *this->pwpos
+= off
;
2505 *this->pwsize
-= off
;
2508 /* ?pptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2509 /* ?pptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2510 /* ?pptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2511 /* ?pptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2512 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pptr
, 4)
2513 wchar_t* __thiscall
basic_streambuf_wchar_pptr(const basic_streambuf_wchar
*this)
2515 TRACE("(%p)\n", this);
2516 return *this->pwpos
;
2519 /* ?pubimbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
2520 /* ?pubimbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
2521 /* ?pubimbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
2522 /* ?pubimbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
2523 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubimbue
, 12)
2524 locale
* __thiscall
basic_streambuf_wchar_pubimbue(basic_streambuf_wchar
*this, locale
*ret
, const locale
*loc
)
2526 TRACE("(%p %p)\n", this, loc
);
2527 memcpy(ret
, IOS_LOCALE(this), sizeof(locale
));
2528 call_basic_streambuf_wchar_imbue(this, loc
);
2529 locale_copy_ctor(IOS_LOCALE(this), loc
);
2533 /* ?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
2534 /* ?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
2535 /* ?seekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
2536 /* ?seekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
2537 /* ?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
2538 /* ?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
2539 #if STREAMOFF_BITS == 64
2540 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_seekoff
, 24)
2542 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_seekoff
, 20)
2544 #if _MSVCP_VER >= 100
2545 #define call_basic_streambuf_wchar_seekoff(this, ret, off, way, mode) CALL_VTBL_FUNC(this, 40, fpos_int*, (basic_streambuf_wchar*, fpos_int*, streamoff, int, int), (this, ret, off, way, mode))
2546 #elif _MSVCP_VER >= 80
2547 #define call_basic_streambuf_wchar_seekoff(this, ret, off, way, mode) CALL_VTBL_FUNC(this, 36, fpos_int*, (basic_streambuf_wchar*, fpos_int*, streamoff, int, int), (this, ret, off, way, mode))
2549 #define call_basic_streambuf_wchar_seekoff(this, ret, off, way, mode) CALL_VTBL_FUNC(this, 32, fpos_int*, (basic_streambuf_wchar*, fpos_int*, streamoff, int, int), (this, ret, off, way, mode))
2551 fpos_int
* __thiscall
basic_streambuf_wchar_seekoff(basic_streambuf_wchar
*this,
2552 fpos_int
*ret
, streamoff off
, int way
, int mode
)
2554 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
2561 /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@JHH@Z */
2562 /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@_JHH@Z */
2563 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JHH@Z */
2564 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JHH@Z */
2565 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JFF@Z */
2566 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JFF@Z */
2567 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
2568 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JW4seekdir@ioos_base@2@H@Z */
2569 #if STREAMOFF_BITS == 64
2570 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff
, 24)
2572 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff
, 20)
2574 fpos_int
* __thiscall
basic_streambuf_wchar_pubseekoff(basic_streambuf_wchar
*this,
2575 fpos_int
*ret
, streamoff off
, int way
, int mode
)
2577 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
2578 return call_basic_streambuf_wchar_seekoff(this, ret
, off
, way
, mode
);
2581 /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@JII@Z */
2582 /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@_JII@Z */
2583 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JII@Z */
2584 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JII@Z */
2585 #if STREAMOFF_BITS == 64
2586 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff_old
, 24)
2588 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff_old
, 20)
2590 fpos_int
* __thiscall
basic_streambuf_wchar_pubseekoff_old(basic_streambuf_wchar
*this,
2591 fpos_int
*ret
, streamoff off
, unsigned int way
, unsigned int mode
)
2593 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
2594 return basic_streambuf_wchar_pubseekoff(this, ret
, off
, way
, mode
);
2597 /* ?seekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
2598 /* ?seekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
2599 /* ?seekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
2600 /* ?seekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
2601 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_seekpos
, 36)
2602 #if _MSVCP_VER >= 100
2603 #define call_basic_streambuf_wchar_seekpos(this, ret, pos, mode) CALL_VTBL_FUNC(this, 44, fpos_int*, (basic_streambuf_wchar*, fpos_int*, fpos_int, int), (this, ret, pos, mode))
2604 #elif _MSVCP_VER >= 80
2605 #define call_basic_streambuf_wchar_seekpos(this, ret, pos, mode) CALL_VTBL_FUNC(this, 40, fpos_int*, (basic_streambuf_wchar*, fpos_int*, fpos_int, int), (this, ret, pos, mode))
2607 #define call_basic_streambuf_wchar_seekpos(this, ret, pos, mode) CALL_VTBL_FUNC(this, 36, fpos_int*, (basic_streambuf_wchar*, fpos_int*, fpos_int, int), (this, ret, pos, mode))
2609 fpos_int
* __thiscall
basic_streambuf_wchar_seekpos(basic_streambuf_wchar
*this,
2610 fpos_int
*ret
, fpos_int pos
, int mode
)
2612 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
2619 /* ?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@V32@H@Z */
2620 /* ?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@V32@H@Z */
2621 /* ?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@V32@H@Z */
2622 /* ?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@V32@H@Z */
2623 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekpos
, 36)
2624 fpos_int
* __thiscall
basic_streambuf_wchar_pubseekpos(basic_streambuf_wchar
*this,
2625 fpos_int
*ret
, fpos_int pos
, int mode
)
2627 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
2628 return call_basic_streambuf_wchar_seekpos(this, ret
, pos
, mode
);
2631 /* ?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@V32@I@Z */
2632 /* ?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@V32@I@Z */
2633 /* ?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@V32@I@Z */
2634 /* ?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@V32@I@Z */
2635 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekpos_old
, 36)
2636 fpos_int
* __thiscall
basic_streambuf_wchar_pubseekpos_old(basic_streambuf_wchar
*this,
2637 fpos_int
*ret
, fpos_int pos
, unsigned int mode
)
2639 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
2640 return basic_streambuf_wchar_pubseekpos(this, ret
, pos
, mode
);
2643 /* ?setbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEPAV12@PA_WH@Z */
2644 /* ?setbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAPEAV12@PEA_W_J@Z */
2645 /* ?setbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEPAV12@PAGH@Z */
2646 /* ?setbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAPEAV12@PEAG_J@Z */
2647 #if STREAMSIZE_BITS == 64
2648 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setbuf
, 16)
2650 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setbuf
, 12)
2652 #if _MSVCP_VER >= 100
2653 #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))
2654 #elif _MSVCP_VER >= 80
2655 #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))
2657 #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))
2659 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_setbuf(basic_streambuf_wchar
*this, wchar_t *buf
, streamsize count
)
2661 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
2665 /* ?pubsetbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PA_WH@Z */
2666 /* ?pubsetbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEA_W_J@Z */
2667 /* ?pubsetbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PAGH@Z */
2668 /* ?pubsetbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEAG_J@Z */
2669 #if STREAMSIZE_BITS == 64
2670 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubsetbuf
, 16)
2672 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubsetbuf
, 12)
2674 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_pubsetbuf(basic_streambuf_wchar
*this, wchar_t *buf
, streamsize count
)
2676 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
2677 return call_basic_streambuf_wchar_setbuf(this, buf
, count
);
2680 /* ?sync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHXZ */
2681 /* ?sync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAHXZ */
2682 /* ?sync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHXZ */
2683 /* ?sync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAHXZ */
2684 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sync
, 4)
2685 #if _MSVCP_VER >= 100
2686 #define call_basic_streambuf_wchar_sync(this) CALL_VTBL_FUNC(this, 52, int, (basic_streambuf_wchar*), (this))
2687 #elif _MSVCP_VER >= 80
2688 #define call_basic_streambuf_wchar_sync(this) CALL_VTBL_FUNC(this, 48, int, (basic_streambuf_wchar*), (this))
2690 #define call_basic_streambuf_wchar_sync(this) CALL_VTBL_FUNC(this, 44, int, (basic_streambuf_wchar*), (this))
2692 int __thiscall
basic_streambuf_wchar_sync(basic_streambuf_wchar
*this)
2694 TRACE("(%p)\n", this);
2698 /* ?pubsync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHXZ */
2699 /* ?pubsync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAHXZ */
2700 /* ?pubsync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHXZ */
2701 /* ?pubsync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAHXZ */
2702 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubsync
, 4)
2703 int __thiscall
basic_streambuf_wchar_pubsync(basic_streambuf_wchar
*this)
2705 TRACE("(%p)\n", this);
2706 return call_basic_streambuf_wchar_sync(this);
2709 /* ?xsgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHPA_WH@Z */
2710 /* ?xsgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEA_W_J@Z */
2711 /* ?xsgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHPAGH@Z */
2712 /* ?xsgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JPEAG_J@Z */
2713 #if STREAMSIZE_BITS == 64
2714 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsgetn
, 16)
2716 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsgetn
, 12)
2718 #if _MSVCP_VER >= 100
2719 #define call_basic_streambuf_wchar_xsgetn(this, ptr, count) CALL_VTBL_FUNC(this, 32, streamsize, (basic_streambuf_wchar*, wchar_t*, streamsize), (this, ptr, count))
2721 #define call_basic_streambuf_wchar_xsgetn(this, ptr, count) CALL_VTBL_FUNC(this, 24, streamsize, (basic_streambuf_wchar*, wchar_t*, streamsize), (this, ptr, count))
2723 streamsize __thiscall
basic_streambuf_wchar_xsgetn(basic_streambuf_wchar
*this, wchar_t *ptr
, streamsize count
)
2725 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
2726 return call_basic_streambuf_wchar__Xsgetn_s(this, ptr
, -1, count
);
2729 /* ?sgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHPA_WH@Z */
2730 /* ?sgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_J@Z */
2731 /* ?sgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHPAGH@Z */
2732 /* ?sgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_J@Z */
2733 #if STREAMSIZE_BITS == 64
2734 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sgetn
, 16)
2736 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sgetn
, 12)
2738 streamsize __thiscall
basic_streambuf_wchar_sgetn(basic_streambuf_wchar
*this, wchar_t *ptr
, streamsize count
)
2740 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
2741 return call_basic_streambuf_wchar_xsgetn(this, ptr
, count
);
2744 /* ?showmanyc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHXZ */
2745 /* ?showmanyc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JXZ */
2746 /* ?showmanyc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHXZ */
2747 /* ?showmanyc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JXZ */
2748 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_showmanyc
, 4)
2749 #if _MSVCP_VER >= 100
2750 #define call_basic_streambuf_wchar_showmanyc(this) CALL_VTBL_FUNC(this, 20, streamsize, (basic_streambuf_wchar*), (this))
2752 #define call_basic_streambuf_wchar_showmanyc(this) CALL_VTBL_FUNC(this, 12, streamsize, (basic_streambuf_wchar*), (this))
2754 streamsize __thiscall
basic_streambuf_wchar_showmanyc(basic_streambuf_wchar
*this)
2756 TRACE("(%p)\n", this);
2760 /* ?in_avail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHXZ */
2761 /* ?in_avail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JXZ */
2762 /* ?in_avail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHXZ */
2763 /* ?in_avail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JXZ */
2764 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_in_avail
, 4)
2765 streamsize __thiscall
basic_streambuf_wchar_in_avail(basic_streambuf_wchar
*this)
2769 TRACE("(%p)\n", this);
2771 ret
= basic_streambuf_wchar__Gnavail(this);
2772 return ret
? ret
: call_basic_streambuf_wchar_showmanyc(this);
2775 /* ?sputbackc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEG_W@Z */
2776 /* ?sputbackc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAG_W@Z */
2777 /* ?sputbackc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGG@Z */
2778 /* ?sputbackc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGG@Z */
2779 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputbackc
, 8)
2780 unsigned short __thiscall
basic_streambuf_wchar_sputbackc(basic_streambuf_wchar
*this, wchar_t ch
)
2782 TRACE("(%p %d)\n", this, ch
);
2783 if(*this->prpos
&& *this->prpos
>*this->prbuf
&& (*this->prpos
)[-1]==ch
) {
2789 return call_basic_streambuf_wchar_pbackfail(this, ch
);
2792 /* ?sputc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEG_W@Z */
2793 /* ?sputc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAG_W@Z */
2794 /* ?sputc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGG@Z */
2795 /* ?sputc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAHG@Z */
2796 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputc
, 8)
2797 unsigned short __thiscall
basic_streambuf_wchar_sputc(basic_streambuf_wchar
*this, wchar_t ch
)
2799 TRACE("(%p %d)\n", this, ch
);
2800 return basic_streambuf_wchar__Pnavail(this) ?
2801 (*basic_streambuf_wchar__Pninc(this) = ch
) :
2802 call_basic_streambuf_wchar_overflow(this, ch
);
2805 /* ?sungetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2806 /* ?sungetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2807 /* ?sungetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2808 /* ?sungetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2809 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sungetc
, 4)
2810 unsigned short __thiscall
basic_streambuf_wchar_sungetc(basic_streambuf_wchar
*this)
2812 TRACE("(%p)\n", this);
2813 if(*this->prpos
&& *this->prpos
>*this->prbuf
) {
2816 return **this->prpos
;
2819 return call_basic_streambuf_wchar_pbackfail(this, WEOF
);
2822 /* ?stossc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
2823 /* ?stossc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
2824 /* ?stossc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
2825 /* ?stossc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
2826 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_stossc
, 4)
2827 void __thiscall
basic_streambuf_wchar_stossc(basic_streambuf_wchar
*this)
2829 TRACE("(%p)\n", this);
2830 if(basic_streambuf_wchar__Gnavail(this))
2831 basic_streambuf_wchar__Gninc(this);
2833 call_basic_streambuf_wchar_uflow(this);
2836 /* ?sbumpc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2837 /* ?sbumpc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2838 /* ?sbumpc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2839 /* ?sbumpc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2840 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sbumpc
, 4)
2841 unsigned short __thiscall
basic_streambuf_wchar_sbumpc(basic_streambuf_wchar
*this)
2843 TRACE("(%p)\n", this);
2844 return basic_streambuf_wchar__Gnavail(this) ?
2845 *basic_streambuf_wchar__Gninc(this) : call_basic_streambuf_wchar_uflow(this);
2848 /* ?sgetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2849 /* ?sgetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2850 /* ?sgetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2851 /* ?sgetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2852 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sgetc
, 4)
2853 unsigned short __thiscall
basic_streambuf_wchar_sgetc(basic_streambuf_wchar
*this)
2855 TRACE("(%p)\n", this);
2856 return basic_streambuf_wchar__Gnavail(this) ?
2857 *basic_streambuf_wchar_gptr(this) : call_basic_streambuf_wchar_underflow(this);
2860 /* ?snextc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2861 /* ?snextc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2862 /* ?snextc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2863 /* ?snextc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2864 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_snextc
, 4)
2865 unsigned short __thiscall
basic_streambuf_wchar_snextc(basic_streambuf_wchar
*this)
2867 TRACE("(%p)\n", this);
2869 if(basic_streambuf_wchar__Gnavail(this) > 1)
2870 return *basic_streambuf_wchar__Gnpreinc(this);
2871 return basic_streambuf_wchar_sbumpc(this)==WEOF
?
2872 WEOF
: basic_streambuf_wchar_sgetc(this);
2875 /* ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHPB_WH@Z */
2876 /* ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEB_W_J@Z */
2877 /* ?xsputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHPBGH@Z */
2878 /* ?xsputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JPEBG_J@Z */
2879 #if STREAMSIZE_BITS == 64
2880 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsputn
, 16)
2882 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsputn
, 12)
2884 #if _MSVCP_VER >= 100
2885 #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))
2886 #elif _MSVCP_VER >= 80
2887 #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))
2889 #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))
2891 streamsize __thiscall
basic_streambuf_wchar_xsputn(basic_streambuf_wchar
*this, const wchar_t *ptr
, streamsize count
)
2893 streamsize copied
, chunk
;
2895 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
2897 for(copied
=0; copied
<count
;) {
2898 chunk
= basic_streambuf_wchar__Pnavail(this);
2899 if(chunk
> count
-copied
)
2900 chunk
= count
-copied
;
2903 memcpy(*this->pwpos
, ptr
+copied
, chunk
*sizeof(wchar_t));
2904 *this->pwpos
+= chunk
;
2905 *this->pwsize
-= chunk
;
2907 }else if(call_basic_streambuf_wchar_overflow(this, ptr
[copied
]) != WEOF
) {
2917 /* ?sputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHPB_WH@Z */
2918 /* ?sputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JPEB_W_J@Z */
2919 /* ?sputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHPBGH@Z */
2920 /* ?sputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JPEBG_J@Z */
2921 #if STREAMSIZE_BITS == 64
2922 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputn
, 16)
2924 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputn
, 12)
2926 streamsize __thiscall
basic_streambuf_wchar_sputn(basic_streambuf_wchar
*this, const wchar_t *ptr
, streamsize count
)
2928 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
2929 return call_basic_streambuf_wchar_xsputn(this, ptr
, count
);
2932 /* ?swap@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXAAV12@@Z */
2933 /* ?swap@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXAEAV12@@Z */
2934 /* ?swap@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXAAV12@@Z */
2935 /* ?swap@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXAAV12@@Z */
2936 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_swap
, 8)
2937 void __thiscall
basic_streambuf_wchar_swap(basic_streambuf_wchar
*this, basic_streambuf_wchar
*r
)
2939 basic_streambuf_wchar tmp
;
2941 TRACE("(%p %p)\n", this, r
);
2948 this->vtable
= tmp
.vtable
;
2949 tmp
.vtable
= r
->vtable
;
2953 /* ?_Stinit@?1??_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@23@@Z@4HA */
2954 /* ?_Stinit@?1??_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@23@@Z@4HA */
2955 int basic_filebuf_char__Init__Stinit
= 0;
2957 /* ?_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@12@@Z */
2958 /* ?_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@12@@Z */
2959 DEFINE_THISCALL_WRAPPER(basic_filebuf_char__Init
, 12)
2960 void __thiscall
basic_filebuf_char__Init(basic_filebuf_char
*this, FILE *file
, basic_filebuf__Initfl which
)
2962 TRACE("(%p %p %d)\n", this, file
, which
);
2965 this->wrotesome
= FALSE
;
2966 this->state
= basic_filebuf_char__Init__Stinit
;
2967 this->close
= (which
== INITFL_open
);
2970 basic_streambuf_char__Init_empty(&this->base
);
2972 basic_streambuf_char__Init(&this->base
, &file
->_base
, &file
->_ptr
,
2973 &file
->_cnt
, &file
->_base
, &file
->_ptr
, &file
->_cnt
);
2976 /* ?_Initcvt@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAEXPAV?$codecvt@DDH@2@@Z */
2977 /* ?_Initcvt@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXPEAV?$codecvt@DDH@2@@Z */
2978 DEFINE_THISCALL_WRAPPER(basic_filebuf_char__Initcvt_cvt
, 8)
2979 void __thiscall
basic_filebuf_char__Initcvt_cvt(basic_filebuf_char
*this, codecvt_char
*cvt
)
2981 TRACE("(%p %p)\n", this, cvt
);
2983 if(codecvt_base_always_noconv(&cvt
->base
)) {
2986 basic_streambuf_char__Init_empty(&this->base
);
2991 /* ?_Initcvt@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAEXXZ */
2992 /* ?_Initcvt@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXXZ */
2993 DEFINE_THISCALL_WRAPPER(basic_filebuf_char__Initcvt
, 4)
2994 void __thiscall
basic_filebuf_char__Initcvt(basic_filebuf_char
*this)
2996 codecvt_char
*cvt
= codecvt_char_use_facet(IOS_LOCALE(&this->base
));
2997 basic_filebuf_char__Initcvt_cvt( this, cvt
);
3000 /* ?_Endwrite@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAE_NXZ */
3001 /* ?_Endwrite@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAA_NXZ */
3002 DEFINE_THISCALL_WRAPPER(basic_filebuf_char__Endwrite
, 4)
3003 MSVCP_bool __thiscall
basic_filebuf_char__Endwrite(basic_filebuf_char
*this)
3005 TRACE("(%p)\n", this);
3007 if(!this->wrotesome
|| !this->cvt
)
3011 if(call_basic_streambuf_char_overflow(&this->base
, EOF
) == EOF
)
3015 /* TODO: check if we need a dynamic buffer here */
3020 ret
= codecvt_char_unshift(this->cvt
, &this->state
, buf
, buf
+sizeof(buf
), &next
);
3023 this->wrotesome
= FALSE
;
3025 case CODECVT_partial
:
3026 if(!fwrite(buf
, next
-buf
, 1, this->file
))
3031 case CODECVT_noconv
:
3032 if(call_basic_streambuf_char_overflow(&this->base
, EOF
) == EOF
)
3041 /* ?close@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@XZ */
3042 /* ?close@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@XZ */
3043 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_close
, 4)
3044 basic_filebuf_char
* __thiscall
basic_filebuf_char_close(basic_filebuf_char
*this)
3046 basic_filebuf_char
*ret
= this;
3048 TRACE("(%p)\n", this);
3053 /* TODO: handle exceptions */
3054 if(!basic_filebuf_char__Endwrite(this))
3056 if(fclose(this->file
))
3059 basic_filebuf_char__Init(this, NULL
, INITFL_close
);
3063 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
3064 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
3065 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_ctor_file
, 8)
3066 basic_filebuf_char
* __thiscall
basic_filebuf_char_ctor_file(basic_filebuf_char
*this, FILE *file
)
3068 TRACE("(%p %p)\n", this, file
);
3070 basic_streambuf_char_ctor(&this->base
);
3071 this->base
.vtable
= &MSVCP_basic_filebuf_char_vtable
;
3073 basic_filebuf_char__Init(this, file
, INITFL_new
);
3077 /* ??_F?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
3078 /* ??_F?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
3079 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_ctor
, 4)
3080 basic_filebuf_char
* __thiscall
basic_filebuf_char_ctor(basic_filebuf_char
*this)
3082 return basic_filebuf_char_ctor_file(this, NULL
);
3085 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAE@W4_Uninitialized@1@@Z */
3086 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
3087 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_ctor_uninitialized
, 8)
3088 basic_filebuf_char
* __thiscall
basic_filebuf_char_ctor_uninitialized(basic_filebuf_char
*this, int uninitialized
)
3090 TRACE("(%p %d)\n", this, uninitialized
);
3092 basic_streambuf_char_ctor(&this->base
);
3093 this->base
.vtable
= &MSVCP_basic_filebuf_char_vtable
;
3097 /* ??1?$basic_filebuf@DU?$char_traits@D@std@@@std@@UAE@XZ */
3098 /* ??1?$basic_filebuf@DU?$char_traits@D@std@@@std@@UEAA@XZ */
3099 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_dtor
, 4)
3100 void __thiscall
basic_filebuf_char_dtor(basic_filebuf_char
*this)
3102 TRACE("(%p)\n", this);
3105 basic_filebuf_char_close(this);
3106 basic_streambuf_char_dtor(&this->base
);
3109 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_vector_dtor
, 8)
3110 basic_filebuf_char
* __thiscall
basic_filebuf_char_vector_dtor(basic_filebuf_char
*this, unsigned int flags
)
3112 TRACE("(%p %x)\n", this, flags
);
3114 /* we have an array, with the number of elements stored before the first object */
3115 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
3117 for(i
=*ptr
-1; i
>=0; i
--)
3118 basic_filebuf_char_dtor(this+i
);
3119 MSVCRT_operator_delete(ptr
);
3121 basic_filebuf_char_dtor(this);
3123 MSVCRT_operator_delete(this);
3129 /* ?is_open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QBE_NXZ */
3130 /* ?is_open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
3131 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_is_open
, 4)
3132 MSVCP_bool __thiscall
basic_filebuf_char_is_open(const basic_filebuf_char
*this)
3134 TRACE("(%p)\n", this);
3135 return this->file
!= NULL
;
3138 /* ?_Fiopen@std@@YAPAU_iobuf@@PB_WHH@Z */
3139 /* ?_Fiopen@std@@YAPEAU_iobuf@@PEB_WHH@Z */
3140 FILE* __cdecl
_Fiopen_wchar(const wchar_t *name
, int mode
, int prot
)
3142 static const wchar_t rW
[] = {'r',0};
3143 static const struct {
3145 const wchar_t str
[4];
3146 const wchar_t str_bin
[4];
3148 {OPENMODE_out
, {'w',0}, {'w','b',0}},
3149 {OPENMODE_out
|OPENMODE_app
, {'a',0}, {'a','b',0}},
3150 {OPENMODE_app
, {'a',0}, {'a','b',0}},
3151 {OPENMODE_out
|OPENMODE_trunc
, {'w',0}, {'w','b',0}},
3152 {OPENMODE_in
, {'r',0}, {'r','b',0}},
3153 {OPENMODE_in
|OPENMODE_out
, {'r','+',0}, {'r','+','b',0}},
3154 {OPENMODE_in
|OPENMODE_out
|OPENMODE_trunc
, {'w','+',0}, {'w','+','b',0}},
3155 {OPENMODE_in
|OPENMODE_out
|OPENMODE_app
, {'a','+',0}, {'a','+','b',0}},
3156 {OPENMODE_in
|OPENMODE_app
, {'a','+',0}, {'a','+','b',0}}
3159 int real_mode
= mode
& ~(OPENMODE_ate
|OPENMODE__Nocreate
|OPENMODE__Noreplace
|OPENMODE_binary
);
3163 TRACE("(%s %d %d)\n", debugstr_w(name
), mode
, prot
);
3165 for(mode_idx
=0; mode_idx
<sizeof(str_mode
)/sizeof(str_mode
[0]); mode_idx
++)
3166 if(str_mode
[mode_idx
].mode
== real_mode
)
3168 if(mode_idx
== sizeof(str_mode
)/sizeof(str_mode
[0]))
3171 if((mode
& OPENMODE__Nocreate
) && !(f
= _wfopen(name
, rW
)))
3176 if((mode
& OPENMODE__Noreplace
) && (mode
& (OPENMODE_out
|OPENMODE_app
))
3177 && (f
= _wfopen(name
, rW
))) {
3182 #if _MSVCP_VER < 80 /* msvcp60 - msvcp71 are ignoring prot argument */
3186 f
= _wfsopen(name
, (mode
& OPENMODE_binary
) ? str_mode
[mode_idx
].str_bin
3187 : str_mode
[mode_idx
].str
, prot
);
3191 if((mode
& OPENMODE_ate
) && fseek(f
, 0, SEEK_END
)) {
3199 /* ?_Fiopen@std@@YAPAU_iobuf@@PBDHH@Z */
3200 /* ?_Fiopen@std@@YAPEAU_iobuf@@PEBDHH@Z */
3201 FILE* __cdecl
_Fiopen(const char *name
, int mode
, int prot
)
3203 wchar_t nameW
[FILENAME_MAX
];
3205 TRACE("(%s %d %d)\n", name
, mode
, prot
);
3207 if(mbstowcs_s(NULL
, nameW
, FILENAME_MAX
, name
, FILENAME_MAX
-1) != 0)
3209 return _Fiopen_wchar(nameW
, mode
, prot
);
3212 /* ?__Fiopen@std@@YAPAU_iobuf@@PBDH@Z */
3213 /* ?__Fiopen@std@@YAPEAU_iobuf@@PEBDH@Z */
3214 FILE* __cdecl
___Fiopen(const char *name
, int mode
)
3216 TRACE("(%p %d)\n", name
, mode
);
3217 return _Fiopen(name
, mode
, _SH_DENYNO
);
3220 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PB_WHH@Z */
3221 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEB_WHH@Z */
3222 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBGHH@Z */
3223 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBGHH@Z */
3224 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open_wchar
, 16)
3225 basic_filebuf_char
* __thiscall
basic_filebuf_char_open_wchar(basic_filebuf_char
*this, const wchar_t *name
, int mode
, int prot
)
3229 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
3231 if(basic_filebuf_char_is_open(this))
3234 if(!(f
= _Fiopen_wchar(name
, mode
, prot
)))
3237 basic_filebuf_char__Init(this, f
, INITFL_open
);
3238 basic_filebuf_char__Initcvt_cvt(this, codecvt_char_use_facet(IOS_LOCALE(&this->base
)));
3242 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PB_WI@Z */
3243 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEB_WI@Z */
3244 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBGI@Z */
3245 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBGI@Z */
3246 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open_wchar_mode
, 12)
3247 basic_filebuf_char
* __thiscall
basic_filebuf_char_open_wchar_mode(basic_filebuf_char
*this, const wchar_t *name
, unsigned int mode
)
3249 return basic_filebuf_char_open_wchar(this, name
, mode
, SH_DENYNO
);
3252 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDHH@Z */
3253 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDHH@Z */
3254 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open
, 16)
3255 basic_filebuf_char
* __thiscall
basic_filebuf_char_open(basic_filebuf_char
*this, const char *name
, int mode
, int prot
)
3257 wchar_t nameW
[FILENAME_MAX
];
3259 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
3261 if(mbstowcs_s(NULL
, nameW
, FILENAME_MAX
, name
, FILENAME_MAX
-1) != 0)
3263 return basic_filebuf_char_open_wchar(this, nameW
, mode
, prot
);
3266 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDF@Z */
3267 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDF@Z */
3268 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open_mode_old
, 12)
3269 basic_filebuf_char
* __thiscall
basic_filebuf_char_open_mode_old(basic_filebuf_char
*this, const char *name
, short mode
)
3271 TRACE("(%p %p %d)\n", this, name
, mode
);
3272 return basic_filebuf_char_open(this, name
, mode
, SH_DENYNO
);
3275 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDH@Z */
3276 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDH@Z */
3277 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDI@Z */
3278 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDI@Z */
3279 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open_mode
, 12)
3280 basic_filebuf_char
* __thiscall
basic_filebuf_char_open_mode(basic_filebuf_char
*this, const char *name
, unsigned int mode
)
3282 return basic_filebuf_char_open(this, name
, mode
, SH_DENYNO
);
3285 /* ?overflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHH@Z */
3286 /* ?overflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z */
3287 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_overflow
, 8)
3288 int __thiscall
basic_filebuf_char_overflow(basic_filebuf_char
*this, int c
)
3290 char buf
[8], *dyn_buf
;
3291 char ch
= c
, *to_next
;
3292 const char *from_next
;
3296 TRACE("(%p %d)\n", this, c
);
3298 if(!basic_filebuf_char_is_open(this))
3304 return fwrite(&ch
, sizeof(char), 1, this->file
) ? c
: EOF
;
3308 ret
= codecvt_char_out(this->cvt
, &this->state
, from_next
, &ch
+1,
3309 &from_next
, buf
, buf
+sizeof(buf
), &to_next
);
3312 case CODECVT_partial
:
3317 if(!fwrite(buf
, to_next
-buf
, 1, this->file
))
3319 if(ret
== CODECVT_partial
)
3322 case CODECVT_noconv
:
3323 return fwrite(&ch
, sizeof(char), 1, this->file
) ? c
: EOF
;
3331 max_size
= codecvt_base_max_length(&this->cvt
->base
);
3332 dyn_buf
= malloc(max_size
);
3336 ret
= codecvt_char_out(this->cvt
, &this->state
, from_next
, &ch
+1,
3337 &from_next
, dyn_buf
, dyn_buf
+max_size
, &to_next
);
3341 ret
= fwrite(dyn_buf
, to_next
-dyn_buf
, 1, this->file
);
3343 return ret
? c
: EOF
;
3344 case CODECVT_partial
:
3345 ERR("buffer should be big enough to store all output\n");
3353 /* ?pbackfail@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHH@Z */
3354 /* ?pbackfail@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z */
3355 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_pbackfail
, 8)
3356 int __thiscall
basic_filebuf_char_pbackfail(basic_filebuf_char
*this, int c
)
3358 TRACE("(%p %d)\n", this, c
);
3360 if(!basic_filebuf_char_is_open(this))
3363 if(basic_streambuf_char_gptr(&this->base
)>basic_streambuf_char_eback(&this->base
)
3364 && (c
==EOF
|| (int)(unsigned char)basic_streambuf_char_gptr(&this->base
)[-1]==c
)) {
3365 basic_streambuf_char__Gndec(&this->base
);
3366 return c
==EOF
? !c
: c
;
3367 }else if(c
!=EOF
&& !this->cvt
) {
3368 return ungetc(c
, this->file
);
3374 /* ?uflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
3375 /* ?uflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
3376 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_uflow
, 4)
3377 int __thiscall
basic_filebuf_char_uflow(basic_filebuf_char
*this)
3379 char ch
, buf
[128], *to_next
;
3380 const char *buf_next
;
3384 TRACE("(%p)\n", this);
3386 if(!basic_filebuf_char_is_open(this))
3389 if(basic_streambuf_char_gptr(&this->base
) < basic_streambuf_char_egptr(&this->base
))
3390 return (unsigned char)*basic_streambuf_char__Gninc(&this->base
);
3392 c
= fgetc(this->file
);
3393 if(!this->cvt
|| c
==EOF
)
3397 for(i
=0; i
< sizeof(buf
)/sizeof(buf
[0]); i
++) {
3400 switch(codecvt_char_in(this->cvt
, &this->state
, buf_next
,
3401 buf
+i
+1, &buf_next
, &ch
, &ch
+1, &to_next
)) {
3402 case CODECVT_partial
:
3404 if(to_next
== &ch
) {
3405 c
= fgetc(this->file
);
3411 for(j
= --i
; j
>= buf_next
-buf
; j
--)
3412 ungetc(buf
[j
], this->file
);
3414 case CODECVT_noconv
:
3415 return (unsigned char)buf
[0];
3421 FIXME("buffer is too small\n");
3425 /* ?underflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
3426 /* ?underflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
3427 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_underflow
, 4)
3428 int __thiscall
basic_filebuf_char_underflow(basic_filebuf_char
*this)
3432 TRACE("(%p)\n", this);
3434 if(basic_streambuf_char_gptr(&this->base
) < basic_streambuf_char_egptr(&this->base
))
3435 return (unsigned char)*basic_streambuf_char_gptr(&this->base
);
3437 ret
= call_basic_streambuf_char_uflow(&this->base
);
3439 ret
= call_basic_streambuf_char_pbackfail(&this->base
, ret
);
3443 /* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
3444 /* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
3445 /* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
3446 /* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
3447 #if STREAMOFF_BITS == 64
3448 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_seekoff
, 24)
3450 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_seekoff
, 20)
3452 fpos_int
* __thiscall
basic_filebuf_char_seekoff(basic_filebuf_char
*this,
3453 fpos_int
*ret
, streamoff off
, int way
, int mode
)
3457 TRACE("(%p %p %s %d %d)\n", this, ret
, wine_dbgstr_longlong(off
), way
, mode
);
3459 if(!basic_filebuf_char_is_open(this) || !basic_filebuf_char__Endwrite(this)
3460 || fseek(this->file
, off
, way
)) {
3467 fgetpos(this->file
, &pos
);
3470 ret
->state
= this->state
;
3474 /* ?seekpos@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
3475 /* ?seekpos@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
3476 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_seekpos
, 36)
3477 fpos_int
* __thiscall
basic_filebuf_char_seekpos(basic_filebuf_char
*this,
3478 fpos_int
*ret
, fpos_int pos
, int mode
)
3482 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_int(&pos
), mode
);
3484 if(!basic_filebuf_char_is_open(this) || !basic_filebuf_char__Endwrite(this)
3485 || fseek(this->file
, (LONG
)pos
.pos
, SEEK_SET
)
3486 || (pos
.off
&& fseek(this->file
, pos
.off
, SEEK_CUR
))) {
3493 fgetpos(this->file
, &fpos
);
3496 ret
->state
= this->state
;
3500 /* ?setbuf@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PADH@Z */
3501 /* ?setbuf@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PEAD_J@Z */
3502 #if STREAMSIZE_BITS == 64
3503 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_setbuf
, 16)
3505 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_setbuf
, 12)
3507 basic_streambuf_char
* __thiscall
basic_filebuf_char_setbuf(basic_filebuf_char
*this, char *buf
, streamsize count
)
3509 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
3511 if(!basic_filebuf_char_is_open(this))
3514 if(setvbuf(this->file
, buf
, (buf
==NULL
&& count
==0) ? _IONBF
: _IOFBF
, count
))
3517 basic_filebuf_char__Init(this, this->file
, INITFL_open
);
3521 /* ?sync@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
3522 /* ?sync@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
3523 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_sync
, 4)
3524 int __thiscall
basic_filebuf_char_sync(basic_filebuf_char
*this)
3526 TRACE("(%p)\n", this);
3528 if(!basic_filebuf_char_is_open(this))
3531 if(call_basic_streambuf_char_overflow(&this->base
, EOF
) == EOF
)
3533 return fflush(this->file
);
3536 /* ?imbue@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEXABVlocale@2@@Z */
3537 /* ?imbue@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAXAEBVlocale@2@@Z */
3538 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_imbue
, 8)
3539 void __thiscall
basic_filebuf_char_imbue(basic_filebuf_char
*this, const locale
*loc
)
3541 TRACE("(%p %p)\n", this, loc
);
3542 basic_filebuf_char__Initcvt_cvt(this, codecvt_char_use_facet(loc
));
3545 /* ?_Stinit@?1??_Init@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@23@@Z@4HA */
3546 /* ?_Stinit@?1??_Init@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@23@@Z@4HA */
3547 int basic_filebuf_wchar__Init__Stinit
= 0;
3549 /* ?_Stinit@?1??_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@23@@Z@4HA */
3550 /* ?_Stinit@?1??_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@23@@Z@4HA */
3551 int basic_filebuf_short__Init__Stinit
= 0;
3553 /* ?_Init@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@12@@Z */
3554 /* ?_Init@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@12@@Z */
3555 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar__Init
, 12)
3556 void __thiscall
basic_filebuf_wchar__Init(basic_filebuf_wchar
*this, FILE *file
, basic_filebuf__Initfl which
)
3558 TRACE("(%p %p %d)\n", this, file
, which
);
3561 this->wrotesome
= FALSE
;
3562 this->state
= basic_filebuf_wchar__Init__Stinit
;
3563 this->close
= (which
== INITFL_open
);
3566 basic_streambuf_wchar__Init_empty(&this->base
);
3569 /* ?_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@12@@Z */
3570 /* ?_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@12@@Z */
3571 DEFINE_THISCALL_WRAPPER(basic_filebuf_short__Init
, 12)
3572 void __thiscall
basic_filebuf_short__Init(basic_filebuf_wchar
*this, FILE *file
, basic_filebuf__Initfl which
)
3574 TRACE("(%p %p %d)\n", this, file
, which
);
3577 this->wrotesome
= FALSE
;
3578 this->state
= basic_filebuf_short__Init__Stinit
;
3579 this->close
= (which
== INITFL_open
);
3582 basic_streambuf_wchar__Init_empty(&this->base
);
3585 /* ?_Initcvt@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IAEXPAV?$codecvt@_WDH@2@@Z */
3586 /* ?_Initcvt@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEAV?$codecvt@_WDH@2@@Z */
3587 /* ?_Initcvt@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAEXPAV?$codecvt@GDH@2@@Z */
3588 /* ?_Initcvt@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAAXPEAV?$codecvt@GDH@2@@Z */
3589 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar__Initcvt_cvt
, 8)
3590 void __thiscall
basic_filebuf_wchar__Initcvt_cvt(basic_filebuf_wchar
*this, codecvt_wchar
*cvt
)
3592 TRACE("(%p %p)\n", this, cvt
);
3594 if(codecvt_base_always_noconv(&cvt
->base
)) {
3597 basic_streambuf_wchar__Init_empty(&this->base
);
3602 /* ?_Initcvt@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAEXXZ */
3603 /* ?_Initcvt@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAAXXZ */
3604 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar__Initcvt
, 4)
3605 void __thiscall
basic_filebuf_wchar__Initcvt(basic_filebuf_wchar
*this)
3607 codecvt_wchar
*cvt
= codecvt_wchar_use_facet(IOS_LOCALE(&this->base
));
3608 basic_filebuf_wchar__Initcvt_cvt( this, cvt
);
3611 /* ?_Endwrite@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IAE_NXZ */
3612 /* ?_Endwrite@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IEAA_NXZ */
3613 /* ?_Endwrite@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAE_NXZ */
3614 /* ?_Endwrite@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAA_NXZ */
3615 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar__Endwrite
, 4)
3616 MSVCP_bool __thiscall
basic_filebuf_wchar__Endwrite(basic_filebuf_wchar
*this)
3618 TRACE("(%p)\n", this);
3620 if(!this->wrotesome
|| !this->cvt
)
3623 if(call_basic_streambuf_wchar_overflow(&this->base
, WEOF
) == WEOF
)
3627 /* TODO: check if we need a dynamic buffer here */
3632 ret
= codecvt_wchar_unshift(this->cvt
, &this->state
, buf
, buf
+sizeof(buf
), &next
);
3635 this->wrotesome
= FALSE
;
3637 case CODECVT_partial
:
3638 if(!fwrite(buf
, next
-buf
, 1, this->file
))
3643 case CODECVT_noconv
:
3644 if(call_basic_streambuf_wchar_overflow(&this->base
, WEOF
) == WEOF
)
3653 /* ?close@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@XZ */
3654 /* ?close@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@XZ */
3655 /* ?close@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@XZ */
3656 /* ?close@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@XZ */
3657 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_close
, 4)
3658 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_close(basic_filebuf_wchar
*this)
3660 basic_filebuf_wchar
*ret
= this;
3662 TRACE("(%p)\n", this);
3667 /* TODO: handle exceptions */
3668 if(!basic_filebuf_wchar__Endwrite(this))
3670 if(fclose(this->file
))
3673 basic_filebuf_wchar__Init(this, NULL
, INITFL_close
);
3677 /* ??0?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
3678 /* ??0?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
3679 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_ctor_file
, 8)
3680 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_ctor_file(basic_filebuf_wchar
*this, FILE *file
)
3682 TRACE("(%p %p)\n", this, file
);
3684 basic_streambuf_wchar_ctor(&this->base
);
3685 this->base
.vtable
= &MSVCP_basic_filebuf_wchar_vtable
;
3687 basic_filebuf_wchar__Init(this, file
, INITFL_new
);
3691 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
3692 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
3693 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_ctor_file
, 8)
3694 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_ctor_file(basic_filebuf_wchar
*this, FILE *file
)
3696 TRACE("(%p %p)\n", this, file
);
3698 basic_streambuf_short_ctor(&this->base
);
3699 this->base
.vtable
= &MSVCP_basic_filebuf_short_vtable
;
3701 basic_filebuf_short__Init(this, file
, INITFL_new
);
3705 /* ??_F?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
3706 /* ??_F?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
3707 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_ctor
, 4)
3708 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_ctor(basic_filebuf_wchar
*this)
3710 return basic_filebuf_wchar_ctor_file(this, NULL
);
3713 /* ??_F?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
3714 /* ??_F?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
3715 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_ctor
, 4)
3716 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_ctor(basic_filebuf_wchar
*this)
3718 return basic_filebuf_short_ctor_file(this, NULL
);
3721 /* ??0?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAE@W4_Uninitialized@1@@Z */
3722 /* ??0?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
3723 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_ctor_uninitialized
, 8)
3724 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_ctor_uninitialized(basic_filebuf_wchar
*this, int uninitialized
)
3726 TRACE("(%p %d)\n", this, uninitialized
);
3728 basic_streambuf_wchar_ctor(&this->base
);
3729 this->base
.vtable
= &MSVCP_basic_filebuf_wchar_vtable
;
3733 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAE@W4_Uninitialized@1@@Z */
3734 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
3735 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_ctor_uninitialized
, 8)
3736 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_ctor_uninitialized(basic_filebuf_wchar
*this, int uninitialized
)
3738 TRACE("(%p %d)\n", this, uninitialized
);
3740 basic_streambuf_short_ctor(&this->base
);
3741 this->base
.vtable
= &MSVCP_basic_filebuf_short_vtable
;
3745 /* ??1?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
3746 /* ??1?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
3747 /* ??1?$basic_filebuf@GU?$char_traits@G@std@@@std@@UAE@XZ */
3748 /* ??1?$basic_filebuf@GU?$char_traits@G@std@@@std@@UEAA@XZ */
3749 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_dtor
, 4)
3750 void __thiscall
basic_filebuf_wchar_dtor(basic_filebuf_wchar
*this)
3752 TRACE("(%p)\n", this);
3755 basic_filebuf_wchar_close(this);
3756 basic_streambuf_wchar_dtor(&this->base
);
3759 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_vector_dtor
, 8)
3760 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_vector_dtor(basic_filebuf_wchar
*this, unsigned int flags
)
3762 TRACE("(%p %x)\n", this, flags
);
3764 /* we have an array, with the number of elements stored before the first object */
3765 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
3767 for(i
=*ptr
-1; i
>=0; i
--)
3768 basic_filebuf_wchar_dtor(this+i
);
3769 MSVCRT_operator_delete(ptr
);
3771 basic_filebuf_wchar_dtor(this);
3773 MSVCRT_operator_delete(this);
3779 /* ?is_open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
3780 /* ?is_open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
3781 /* ?is_open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QBE_NXZ */
3782 /* ?is_open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
3783 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_is_open
, 4)
3784 MSVCP_bool __thiscall
basic_filebuf_wchar_is_open(const basic_filebuf_wchar
*this)
3786 TRACE("(%p)\n", this);
3787 return this->file
!= NULL
;
3790 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PB_WHH@Z */
3791 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEB_WHH@Z */
3792 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBGHH@Z */
3793 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBGHH@Z */
3794 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open_wchar
, 16)
3795 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_open_wchar(basic_filebuf_wchar
*this, const wchar_t *name
, int mode
, int prot
)
3799 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
3801 if(basic_filebuf_wchar_is_open(this))
3804 if(!(f
= _Fiopen_wchar(name
, mode
, prot
)))
3807 basic_filebuf_wchar__Init(this, f
, INITFL_open
);
3808 basic_filebuf_wchar__Initcvt_cvt(this, codecvt_wchar_use_facet(IOS_LOCALE(&this->base
)));
3812 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PB_WHH@Z */
3813 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEB_WHH@Z */
3814 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBGHH@Z */
3815 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBGHH@Z */
3816 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_open_wchar
, 16)
3817 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_open_wchar(basic_filebuf_wchar
*this, const wchar_t *name
, int mode
, int prot
)
3821 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
3823 if(basic_filebuf_wchar_is_open(this))
3826 if(!(f
= _Fiopen_wchar(name
, mode
, prot
)))
3829 basic_filebuf_short__Init(this, f
, INITFL_open
);
3830 basic_filebuf_wchar__Initcvt_cvt(this, codecvt_short_use_facet(IOS_LOCALE(&this->base
)));
3834 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PB_WI@Z */
3835 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEB_WI@Z */
3836 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBGI@Z */
3837 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBGI@Z */
3838 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open_wchar_mode
, 12)
3839 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_open_wchar_mode(basic_filebuf_wchar
*this, const wchar_t *name
, unsigned int mode
)
3841 return basic_filebuf_wchar_open_wchar(this, name
, mode
, SH_DENYNO
);
3844 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PB_WI@Z */
3845 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEB_WI@Z */
3846 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBGI@Z */
3847 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBGI@Z */
3848 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_open_wchar_mode
, 12)
3849 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_open_wchar_mode(basic_filebuf_wchar
*this, const wchar_t *name
, unsigned int mode
)
3851 return basic_filebuf_short_open_wchar(this, name
, mode
, SH_DENYNO
);
3854 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBDHH@Z */
3855 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBDHH@Z */
3856 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open
, 16)
3857 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_open(basic_filebuf_wchar
*this, const char *name
, int mode
, int prot
)
3859 wchar_t nameW
[FILENAME_MAX
];
3861 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
3863 if(mbstowcs_s(NULL
, nameW
, FILENAME_MAX
, name
, FILENAME_MAX
-1) != 0)
3865 return basic_filebuf_wchar_open_wchar(this, nameW
, mode
, prot
);
3868 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDHH@Z */
3869 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDHH@Z */
3870 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_open
, 16)
3871 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_open(basic_filebuf_wchar
*this, const char *name
, int mode
, int prot
)
3873 wchar_t nameW
[FILENAME_MAX
];
3875 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
3877 if(mbstowcs_s(NULL
, nameW
, FILENAME_MAX
, name
, FILENAME_MAX
-1) != 0)
3879 return basic_filebuf_short_open_wchar(this, nameW
, mode
, prot
);
3882 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDF@Z */
3883 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDF@Z */
3884 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open_mode_old
, 12)
3885 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_open_mode_old(basic_filebuf_wchar
*this, const char *name
, short mode
)
3887 TRACE("(%p %p %d)\n", this, name
, mode
);
3888 return basic_filebuf_wchar_open(this, name
, mode
, SH_DENYNO
);
3891 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDH@Z */
3892 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDH@Z */
3893 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBDI@Z */
3894 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBDI@Z */
3895 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open_mode
, 12)
3896 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_open_mode(basic_filebuf_wchar
*this, const char *name
, unsigned int mode
)
3898 return basic_filebuf_wchar_open(this, name
, mode
, SH_DENYNO
);
3901 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDI@Z */
3902 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDI@Z */
3903 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_open_mode
, 12)
3904 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_open_mode(basic_filebuf_wchar
*this, const char *name
, unsigned int mode
)
3906 return basic_filebuf_short_open(this, name
, mode
, SH_DENYNO
);
3909 /* ?overflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
3910 /* ?overflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
3911 /* ?overflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
3912 /* ?overflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
3913 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_overflow
, 8)
3914 unsigned short __thiscall
basic_filebuf_wchar_overflow(basic_filebuf_wchar
*this, unsigned short c
)
3916 char buf
[8], *dyn_buf
, *to_next
;
3918 const wchar_t *from_next
;
3923 TRACE("(%p %d)\n", this, c
);
3925 if(!basic_filebuf_wchar_is_open(this))
3931 return fwrite(&ch
, sizeof(wchar_t), 1, this->file
) ? c
: WEOF
;
3935 ret
= codecvt_wchar_out(this->cvt
, &this->state
, from_next
, &ch
+1,
3936 &from_next
, buf
, buf
+sizeof(buf
), &to_next
);
3939 case CODECVT_partial
:
3944 if(!fwrite(buf
, to_next
-buf
, 1, this->file
))
3946 if(ret
== CODECVT_partial
)
3949 case CODECVT_noconv
:
3950 return fwrite(&ch
, sizeof(wchar_t), 1, this->file
) ? c
: WEOF
;
3958 max_size
= codecvt_base_max_length(&this->cvt
->base
);
3959 dyn_buf
= malloc(max_size
);
3963 ret
= codecvt_wchar_out(this->cvt
, &this->state
, from_next
, &ch
+1,
3964 &from_next
, dyn_buf
, dyn_buf
+max_size
, &to_next
);
3968 ret
= fwrite(dyn_buf
, to_next
-dyn_buf
, 1, this->file
);
3970 return ret
? c
: WEOF
;
3971 case CODECVT_partial
:
3972 ERR("buffer should be big enough to store all output\n");
3980 /* ?pbackfail@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
3981 /* ?pbackfail@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
3982 /* ?pbackfail@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
3983 /* ?pbackfail@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
3984 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_pbackfail
, 8)
3985 unsigned short __thiscall
basic_filebuf_wchar_pbackfail(basic_filebuf_wchar
*this, unsigned short c
)
3987 TRACE("(%p %d)\n", this, c
);
3989 if(!basic_filebuf_wchar_is_open(this))
3992 if(basic_streambuf_wchar_gptr(&this->base
)>basic_streambuf_wchar_eback(&this->base
)
3993 && (c
==WEOF
|| basic_streambuf_wchar_gptr(&this->base
)[-1]==c
)) {
3994 basic_streambuf_wchar__Gndec(&this->base
);
3995 return c
==WEOF
? !c
: c
;
3996 }else if(c
!=WEOF
&& !this->cvt
) {
3997 return ungetwc(c
, this->file
);
3998 }else if(c
!=WEOF
&& basic_streambuf_wchar_gptr(&this->base
)!=&this->putback
) {
4000 basic_streambuf_wchar_setg(&this->base
, &this->putback
, &this->putback
, &this->putback
+1);
4007 /* ?uflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
4008 /* ?uflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
4009 /* ?uflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
4010 /* ?uflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
4011 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_uflow
, 4)
4012 unsigned short __thiscall
basic_filebuf_wchar_uflow(basic_filebuf_wchar
*this)
4014 wchar_t ch
, *to_next
;
4016 const char *buf_next
;
4020 TRACE("(%p)\n", this);
4022 if(!basic_filebuf_wchar_is_open(this))
4025 if(basic_streambuf_wchar_gptr(&this->base
) < basic_streambuf_wchar_egptr(&this->base
))
4026 return *basic_streambuf_wchar__Gninc(&this->base
);
4029 return fgetwc(this->file
);
4032 for(i
=0; i
< sizeof(buf
)/sizeof(buf
[0]); i
++) {
4033 if((c
= fgetc(this->file
)) == EOF
)
4037 switch(codecvt_wchar_in(this->cvt
, &this->state
, buf_next
,
4038 buf
+i
+1, &buf_next
, &ch
, &ch
+1, &to_next
)) {
4039 case CODECVT_partial
:
4044 for(j
= --i
; j
>= buf_next
-buf
; j
--)
4045 ungetc(buf
[j
], this->file
);
4047 case CODECVT_noconv
:
4048 if(i
+1 < sizeof(wchar_t))
4051 memcpy(&ch
, buf
, sizeof(wchar_t));
4058 FIXME("buffer is too small\n");
4062 /* ?underflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
4063 /* ?underflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
4064 /* ?underflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
4065 /* ?underflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
4066 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_underflow
, 4)
4067 unsigned short __thiscall
basic_filebuf_wchar_underflow(basic_filebuf_wchar
*this)
4071 TRACE("(%p)\n", this);
4073 if(basic_streambuf_wchar_gptr(&this->base
) < basic_streambuf_wchar_egptr(&this->base
))
4074 return *basic_streambuf_wchar_gptr(&this->base
);
4076 ret
= call_basic_streambuf_wchar_uflow(&this->base
);
4078 ret
= call_basic_streambuf_wchar_pbackfail(&this->base
, ret
);
4082 /* ?seekoff@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
4083 /* ?seekoff@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
4084 /* ?seekoff@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
4085 /* ?seekoff@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
4086 /* ?seekoff@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
4087 /* ?seekoff@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
4088 #if STREAMOFF_BITS == 64
4089 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_seekoff
, 24)
4091 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_seekoff
, 20)
4093 fpos_int
* __thiscall
basic_filebuf_wchar_seekoff(basic_filebuf_wchar
*this,
4094 fpos_int
*ret
, streamoff off
, int way
, int mode
)
4098 TRACE("(%p %p %s %d %d)\n", this, ret
, wine_dbgstr_longlong(off
), way
, mode
);
4100 if(basic_streambuf_wchar_gptr(&this->base
) == &this->putback
) {
4101 if(way
== SEEKDIR_cur
)
4102 off
-= sizeof(wchar_t);
4104 basic_streambuf_wchar_setg(&this->base
, &this->putback
, &this->putback
+1, &this->putback
+1);
4107 if(!basic_filebuf_wchar_is_open(this) || !basic_filebuf_wchar__Endwrite(this)
4108 || fseek(this->file
, off
, way
)) {
4115 fgetpos(this->file
, &pos
);
4118 ret
->state
= this->state
;
4122 /* ?seekpos@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
4123 /* ?seekpos@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
4124 /* ?seekpos@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
4125 /* ?seekpos@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
4126 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_seekpos
, 36)
4127 fpos_int
* __thiscall
basic_filebuf_wchar_seekpos(basic_filebuf_wchar
*this,
4128 fpos_int
*ret
, fpos_int pos
, int mode
)
4132 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_int(&pos
), mode
);
4134 if(!basic_filebuf_wchar_is_open(this) || !basic_filebuf_wchar__Endwrite(this)
4135 || fseek(this->file
, (LONG
)pos
.pos
, SEEK_SET
)
4136 || (pos
.off
&& fseek(this->file
, pos
.off
, SEEK_CUR
))) {
4143 if(basic_streambuf_wchar_gptr(&this->base
) == &this->putback
)
4144 basic_streambuf_wchar_setg(&this->base
, &this->putback
, &this->putback
+1, &this->putback
+1);
4146 fgetpos(this->file
, &fpos
);
4149 ret
->state
= this->state
;
4153 /* ?setbuf@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PA_WH@Z */
4154 /* ?setbuf@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PEA_W_J@Z */
4155 #if STREAMSIZE_BITS == 64
4156 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_setbuf
, 16)
4158 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_setbuf
, 12)
4160 basic_streambuf_wchar
* __thiscall
basic_filebuf_wchar_setbuf(basic_filebuf_wchar
*this, wchar_t *buf
, streamsize count
)
4162 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
4164 if(!basic_filebuf_wchar_is_open(this))
4167 if(setvbuf(this->file
, (char*)buf
, (buf
==NULL
&& count
==0) ? _IONBF
: _IOFBF
, count
*sizeof(wchar_t)))
4170 basic_filebuf_wchar__Init(this, this->file
, INITFL_open
);
4174 /* ?setbuf@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PAGH@Z */
4175 /* ?setbuf@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PEAG_J@Z */
4176 #if STREAMSIZE_BITS == 64
4177 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_setbuf
, 16)
4179 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_setbuf
, 12)
4181 basic_streambuf_wchar
* __thiscall
basic_filebuf_short_setbuf(basic_filebuf_wchar
*this, wchar_t *buf
, streamsize count
)
4183 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
4185 if(!basic_filebuf_wchar_is_open(this))
4188 if(setvbuf(this->file
, (char*)buf
, (buf
==NULL
&& count
==0) ? _IONBF
: _IOFBF
, count
*sizeof(wchar_t)))
4191 basic_filebuf_short__Init(this, this->file
, INITFL_open
);
4195 /* ?sync@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEHXZ */
4196 /* ?sync@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAHXZ */
4197 /* ?sync@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEHXZ */
4198 /* ?sync@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAHXZ */
4199 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_sync
, 4)
4200 int __thiscall
basic_filebuf_wchar_sync(basic_filebuf_wchar
*this)
4202 TRACE("(%p)\n", this);
4204 if(!basic_filebuf_wchar_is_open(this))
4207 if(call_basic_streambuf_wchar_overflow(&this->base
, WEOF
) == WEOF
)
4209 return fflush(this->file
);
4212 /* ?imbue@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEXABVlocale@2@@Z */
4213 /* ?imbue@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAXAEBVlocale@2@@Z */
4214 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_imbue
, 8)
4215 void __thiscall
basic_filebuf_wchar_imbue(basic_filebuf_wchar
*this, const locale
*loc
)
4217 TRACE("(%p %p)\n", this, loc
);
4218 basic_filebuf_wchar__Initcvt_cvt(this, codecvt_wchar_use_facet(loc
));
4221 /* ?imbue@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEXABVlocale@2@@Z */
4222 /* ?imbue@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAXAEBVlocale@2@@Z */
4223 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_imbue
, 8)
4224 void __thiscall
basic_filebuf_short_imbue(basic_filebuf_wchar
*this, const locale
*loc
)
4226 TRACE("(%p %p)\n", this, loc
);
4227 basic_filebuf_wchar__Initcvt_cvt(this, codecvt_short_use_facet(loc
));
4230 /* ?_Getstate@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEHH@Z */
4231 /* ?_Getstate@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAHH@Z */
4232 /* ?_Mode@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEHH@Z */
4233 /* ?_Mode@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAHH@Z */
4234 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char__Getstate
, 8)
4235 int __thiscall
basic_stringbuf_char__Getstate(basic_stringbuf_char
*this, IOSB_openmode mode
)
4239 if(!(mode
& OPENMODE_in
))
4240 state
|= STRINGBUF_no_read
;
4242 if(!(mode
& OPENMODE_out
))
4243 state
|= STRINGBUF_no_write
;
4245 if(mode
& OPENMODE_ate
)
4246 state
|= STRINGBUF_at_end
;
4248 if(mode
& OPENMODE_app
)
4249 state
|= STRINGBUF_append
;
4254 /* ?_Init@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXPBDIH@Z */
4255 /* ?_Init@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAXPEBD_KH@Z */
4256 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char__Init
, 16)
4257 void __thiscall
basic_stringbuf_char__Init(basic_stringbuf_char
*this, const char *str
, MSVCP_size_t count
, int state
)
4259 TRACE("(%p, %p, %ld, %d)\n", this, str
, count
, state
);
4261 basic_streambuf_char__Init_empty(&this->base
);
4263 this->state
= state
;
4264 this->seekhigh
= NULL
;
4267 char *buf
= MSVCRT_operator_new(count
);
4269 ERR("Out of memory\n");
4270 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
4273 memcpy(buf
, str
, count
);
4274 this->seekhigh
= buf
+ count
;
4276 this->state
|= STRINGBUF_allocated
;
4278 if(!(state
& STRINGBUF_no_read
))
4279 basic_streambuf_char_setg(&this->base
, buf
, buf
, buf
+ count
);
4281 if(!(state
& STRINGBUF_no_write
)) {
4282 basic_streambuf_char_setp_next(&this->base
, buf
, (state
& STRINGBUF_at_end
) ? buf
+ count
: buf
, buf
+ count
);
4284 if(!basic_streambuf_char_gptr(&this->base
))
4285 basic_streambuf_char_setg(&this->base
, buf
, 0, buf
);
4290 /* ??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 */
4291 /* ??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 */
4292 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_ctor_str
, 12)
4293 basic_stringbuf_char
* __thiscall
basic_stringbuf_char_ctor_str(basic_stringbuf_char
*this,
4294 const basic_string_char
*str
, IOSB_openmode mode
)
4296 TRACE("(%p %p %d)\n", this, str
, mode
);
4298 basic_streambuf_char_ctor(&this->base
);
4299 this->base
.vtable
= &MSVCP_basic_stringbuf_char_vtable
;
4301 basic_stringbuf_char__Init(this, MSVCP_basic_string_char_c_str(str
),
4302 str
->size
, basic_stringbuf_char__Getstate(this, mode
));
4306 /* ??0?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
4307 /* ??0?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
4308 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_ctor_mode
, 8)
4309 basic_stringbuf_char
* __thiscall
basic_stringbuf_char_ctor_mode(
4310 basic_stringbuf_char
*this, IOSB_openmode mode
)
4312 TRACE("(%p %d)\n", this, mode
);
4314 basic_streambuf_char_ctor(&this->base
);
4315 this->base
.vtable
= &MSVCP_basic_stringbuf_char_vtable
;
4317 basic_stringbuf_char__Init(this, NULL
, 0, basic_stringbuf_char__Getstate(this, mode
));
4321 /* ??_F?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
4322 /* ??_F?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
4323 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_ctor
, 4)
4324 basic_stringbuf_char
* __thiscall
basic_stringbuf_char_ctor(basic_stringbuf_char
*this)
4326 return basic_stringbuf_char_ctor_mode(this, OPENMODE_in
|OPENMODE_out
);
4329 /* ?_Tidy@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXXZ */
4330 /* ?_Tidy@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAXXZ */
4331 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char__Tidy
, 4)
4332 void __thiscall
basic_stringbuf_char__Tidy(basic_stringbuf_char
*this)
4334 TRACE("(%p)\n", this);
4336 if(this->state
& STRINGBUF_allocated
) {
4337 MSVCRT_operator_delete(basic_streambuf_char_eback(&this->base
));
4338 this->seekhigh
= NULL
;
4339 this->state
&= ~STRINGBUF_allocated
;
4342 basic_streambuf_char__Init_empty(&this->base
);
4345 /* ??1?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
4346 /* ??1?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
4347 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_dtor
, 4)
4348 void __thiscall
basic_stringbuf_char_dtor(basic_stringbuf_char
*this)
4350 TRACE("(%p)\n", this);
4352 basic_stringbuf_char__Tidy(this);
4353 basic_streambuf_char_dtor(&this->base
);
4356 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_vector_dtor
, 8)
4357 basic_stringbuf_char
* __thiscall
basic_stringbuf_char_vector_dtor(basic_stringbuf_char
*this, unsigned int flags
)
4359 TRACE("(%p %x)\n", this, flags
);
4362 /* we have an array, with the number of elements stored before the first object */
4363 INT_PTR i
, *ptr
= (INT_PTR
*) this - 1;
4365 for (i
= *ptr
- 1; i
>= 0; i
--)
4366 basic_stringbuf_char_dtor(this+i
);
4368 MSVCRT_operator_delete(ptr
);
4370 basic_stringbuf_char_dtor(this);
4373 MSVCRT_operator_delete(this);
4379 /* ?overflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHH@Z */
4380 /* ?overflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAAHH@Z */
4381 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_overflow
, 8)
4382 int __thiscall
basic_stringbuf_char_overflow(basic_stringbuf_char
*this, int meta
)
4384 MSVCP_size_t oldsize
, size
;
4387 TRACE("(%p %x)\n", this, meta
);
4391 if(this->state
& STRINGBUF_no_write
)
4394 ptr
= basic_streambuf_char_pptr(&this->base
);
4395 if((this->state
&STRINGBUF_append
) && ptr
<this->seekhigh
)
4396 basic_streambuf_char_setp_next(&this->base
, basic_streambuf_char_pbase(&this->base
),
4397 this->seekhigh
, basic_streambuf_char_epptr(&this->base
));
4399 if(ptr
&& ptr
<basic_streambuf_char_epptr(&this->base
))
4400 return (unsigned char)(*basic_streambuf_char__Pninc(&this->base
) = meta
);
4402 oldsize
= (ptr
? basic_streambuf_char_epptr(&this->base
)-basic_streambuf_char_eback(&this->base
): 0);
4405 buf
= MSVCRT_operator_new(size
);
4407 ERR("Out of memory\n");
4408 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
4412 this->seekhigh
= buf
;
4413 basic_streambuf_char_setp(&this->base
, buf
, buf
+size
);
4414 if(this->state
& STRINGBUF_no_read
)
4415 basic_streambuf_char_setg(&this->base
, buf
, NULL
, buf
);
4417 basic_streambuf_char_setg(&this->base
, buf
, buf
, buf
+1);
4419 this->state
|= STRINGBUF_allocated
;
4421 ptr
= basic_streambuf_char_eback(&this->base
);
4422 memcpy(buf
, ptr
, oldsize
);
4424 this->seekhigh
= buf
+(this->seekhigh
-ptr
);
4425 basic_streambuf_char_setp_next(&this->base
, buf
,
4426 buf
+(basic_streambuf_char_pptr(&this->base
)-ptr
), buf
+size
);
4427 if(this->state
& STRINGBUF_no_read
)
4428 basic_streambuf_char_setg(&this->base
, buf
, NULL
, buf
);
4430 basic_streambuf_char_setg(&this->base
, buf
,
4431 buf
+(basic_streambuf_char_gptr(&this->base
)-ptr
),
4432 basic_streambuf_char_pptr(&this->base
)+1);
4434 MSVCRT_operator_delete(ptr
);
4437 return (unsigned char)(*basic_streambuf_char__Pninc(&this->base
) = meta
);
4440 /* ?pbackfail@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHH@Z */
4441 /* ?pbackfail@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAAHH@Z */
4442 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_pbackfail
, 8)
4443 int __thiscall
basic_stringbuf_char_pbackfail(basic_stringbuf_char
*this, int c
)
4447 TRACE("(%p %x)\n", this, c
);
4449 cur
= basic_streambuf_char_gptr(&this->base
);
4450 if(!cur
|| cur
==basic_streambuf_char_eback(&this->base
)
4451 || (c
!=EOF
&& c
!=cur
[-1] && this->state
&STRINGBUF_no_write
))
4456 basic_streambuf_char_gbump(&this->base
, -1);
4457 return c
==EOF
? !EOF
: c
;
4460 /* ?underflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHXZ */
4461 /* ?underflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAAHXZ */
4462 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_underflow
, 4)
4463 int __thiscall
basic_stringbuf_char_underflow(basic_stringbuf_char
*this)
4467 TRACE("(%p)\n", this);
4469 cur
= basic_streambuf_char_gptr(&this->base
);
4470 if(!cur
|| this->state
&STRINGBUF_no_read
)
4473 ptr
= basic_streambuf_char_pptr(&this->base
);
4474 if(this->seekhigh
< ptr
)
4475 this->seekhigh
= ptr
;
4477 ptr
= basic_streambuf_char_egptr(&this->base
);
4478 if(this->seekhigh
> ptr
)
4479 basic_streambuf_char_setg(&this->base
, basic_streambuf_char_eback(&this->base
), cur
, this->seekhigh
);
4481 if(cur
< this->seekhigh
)
4482 return (unsigned char)*cur
;
4486 /* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
4487 /* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
4488 /* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAE?AV?$fpos@H@2@JHH@Z */
4489 /* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
4490 #if STREAMOFF_BITS == 64
4491 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_seekoff
, 24)
4493 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_seekoff
, 20)
4495 fpos_int
* __thiscall
basic_stringbuf_char_seekoff(basic_stringbuf_char
*this,
4496 fpos_int
*ret
, streamoff off
, int way
, int mode
)
4498 char *beg
, *cur_r
, *cur_w
;
4500 TRACE("(%p %p %s %d %d)\n", this, ret
, wine_dbgstr_longlong(off
), way
, mode
);
4502 cur_w
= basic_streambuf_char_pptr(&this->base
);
4503 if(cur_w
> this->seekhigh
)
4504 this->seekhigh
= cur_w
;
4510 beg
= basic_streambuf_char_eback(&this->base
);
4511 cur_r
= basic_streambuf_char_gptr(&this->base
);
4512 if((mode
& OPENMODE_in
) && cur_r
) {
4513 if(way
==SEEKDIR_cur
&& !(mode
& OPENMODE_out
))
4515 else if(way
== SEEKDIR_end
)
4516 off
+= this->seekhigh
-beg
;
4517 else if(way
!= SEEKDIR_beg
)
4520 if(off
<0 || off
>this->seekhigh
-beg
) {
4523 basic_streambuf_char_gbump(&this->base
, beg
-cur_r
+off
);
4524 if((mode
& OPENMODE_out
) && cur_w
) {
4525 basic_streambuf_char_setp_next(&this->base
, beg
,
4526 basic_streambuf_char_gptr(&this->base
),
4527 basic_streambuf_char_epptr(&this->base
));
4530 }else if((mode
& OPENMODE_out
) && cur_w
) {
4531 if(way
== SEEKDIR_cur
)
4533 else if(way
== SEEKDIR_end
)
4534 off
+= this->seekhigh
-beg
;
4535 else if(way
!= SEEKDIR_beg
)
4538 if(off
<0 || off
>this->seekhigh
-beg
)
4541 basic_streambuf_char_pbump(&this->base
, beg
-cur_w
+off
);
4550 /* ?seekpos@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
4551 /* ?seekpos@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
4552 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_seekpos
, 36)
4553 fpos_int
* __thiscall
basic_stringbuf_char_seekpos(basic_stringbuf_char
*this,
4554 fpos_int
*ret
, fpos_int pos
, int mode
)
4556 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_int(&pos
), mode
);
4558 if(pos
.off
==-1 && pos
.pos
==0 && pos
.state
==0) {
4563 return basic_stringbuf_char_seekoff(this, ret
, pos
.pos
+pos
.off
, SEEKDIR_beg
, mode
);
4566 /* ?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 */
4567 /* ?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 */
4568 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_str_set
, 8)
4569 void __thiscall
basic_stringbuf_char_str_set(basic_stringbuf_char
*this, const basic_string_char
*str
)
4571 TRACE("(%p %p)\n", this, str
);
4573 basic_stringbuf_char__Tidy(this);
4574 basic_stringbuf_char__Init(this, MSVCP_basic_string_char_c_str(str
), str
->size
, this->state
);
4577 /* ?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 */
4578 /* ?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 */
4579 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_str_get
, 8)
4580 basic_string_char
* __thiscall
basic_stringbuf_char_str_get(const basic_stringbuf_char
*this, basic_string_char
*ret
)
4584 TRACE("(%p)\n", this);
4586 if(!(this->state
& STRINGBUF_no_write
) && basic_streambuf_char_pptr(&this->base
)) {
4589 ptr
= basic_streambuf_char_pbase(&this->base
);
4590 pptr
= basic_streambuf_char_pptr(&this->base
);
4592 return MSVCP_basic_string_char_ctor_cstr_len(ret
, ptr
, (this->seekhigh
< pptr
? pptr
: this->seekhigh
) - ptr
);
4595 if(!(this->state
& STRINGBUF_no_read
) && basic_streambuf_char_gptr(&this->base
)) {
4596 ptr
= basic_streambuf_char_eback(&this->base
);
4597 return MSVCP_basic_string_char_ctor_cstr_len(ret
, ptr
, basic_streambuf_char_egptr(&this->base
) - ptr
);
4600 return MSVCP_basic_string_char_ctor(ret
);
4603 /* ?_Getstate@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AAEHH@Z */
4604 /* ?_Getstate@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AEAAHH@Z */
4605 /* ?_Getstate@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AAEHH@Z */
4606 /* ?_Getstate@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AEAAHH@Z */
4607 /* ?_Mode@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AAEHH@Z */
4608 /* ?_Mode@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AEAAHH@Z */
4609 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar__Getstate
, 8)
4610 int __thiscall
basic_stringbuf_wchar__Getstate(basic_stringbuf_wchar
*this, IOSB_openmode mode
)
4614 if(!(mode
& OPENMODE_in
))
4615 state
|= STRINGBUF_no_read
;
4617 if(!(mode
& OPENMODE_out
))
4618 state
|= STRINGBUF_no_write
;
4620 if(mode
& OPENMODE_ate
)
4621 state
|= STRINGBUF_at_end
;
4623 if(mode
& OPENMODE_app
)
4624 state
|= STRINGBUF_append
;
4629 /* ?_Init@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXPB_WIH@Z */
4630 /* ?_Init@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAXPEB_W_KH@Z */
4631 /* ?_Init@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEXPBGIH@Z */
4632 /* ?_Init@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAXPEBG_KH@Z */
4633 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar__Init
, 16)
4634 void __thiscall
basic_stringbuf_wchar__Init(basic_stringbuf_wchar
*this, const wchar_t *str
, MSVCP_size_t count
, int state
)
4636 TRACE("(%p, %p, %lu, %d)\n", this, str
, count
, state
);
4638 basic_streambuf_wchar__Init_empty(&this->base
);
4640 this->state
= state
;
4641 this->seekhigh
= NULL
;
4644 wchar_t *buf
= MSVCRT_operator_new(count
*sizeof(wchar_t));
4646 ERR("Out of memory\n");
4647 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
4650 memcpy(buf
, str
, count
*sizeof(wchar_t));
4651 this->seekhigh
= buf
+ count
;
4653 this->state
|= STRINGBUF_allocated
;
4655 if(!(state
& STRINGBUF_no_read
))
4656 basic_streambuf_wchar_setg(&this->base
, buf
, buf
, buf
+ count
);
4658 if(!(state
& STRINGBUF_no_write
)) {
4659 basic_streambuf_wchar_setp_next(&this->base
, buf
, (state
& STRINGBUF_at_end
) ? buf
+ count
: buf
, buf
+ count
);
4661 if(!basic_streambuf_wchar_gptr(&this->base
))
4662 basic_streambuf_wchar_setg(&this->base
, buf
, 0, buf
);
4667 /* ??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 */
4668 /* ??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 */
4669 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_ctor_str
, 12)
4670 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_wchar_ctor_str(basic_stringbuf_wchar
*this,
4671 const basic_string_wchar
*str
, IOSB_openmode mode
)
4673 TRACE("(%p %p %d)\n", this, str
, mode
);
4675 basic_streambuf_wchar_ctor(&this->base
);
4676 this->base
.vtable
= &MSVCP_basic_stringbuf_wchar_vtable
;
4678 basic_stringbuf_wchar__Init(this, MSVCP_basic_string_wchar_c_str(str
),
4679 str
->size
, basic_stringbuf_wchar__Getstate(this, mode
));
4683 /* ??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 */
4684 /* ??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 */
4685 DEFINE_THISCALL_WRAPPER(basic_stringbuf_short_ctor_str
, 12)
4686 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_short_ctor_str(basic_stringbuf_wchar
*this,
4687 const basic_string_wchar
*str
, IOSB_openmode mode
)
4689 basic_stringbuf_wchar_ctor_str(this, str
, mode
);
4690 this->base
.vtable
= &MSVCP_basic_stringbuf_short_vtable
;
4694 /* ??0?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
4695 /* ??0?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
4696 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_ctor_mode
, 8)
4697 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_wchar_ctor_mode(
4698 basic_stringbuf_wchar
*this, IOSB_openmode mode
)
4700 TRACE("(%p %d)\n", this, mode
);
4702 basic_streambuf_wchar_ctor(&this->base
);
4703 this->base
.vtable
= &MSVCP_basic_stringbuf_wchar_vtable
;
4705 basic_stringbuf_wchar__Init(this, NULL
, 0, basic_stringbuf_wchar__Getstate(this, mode
));
4709 /* ??0?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
4710 /* ??0?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
4711 DEFINE_THISCALL_WRAPPER(basic_stringbuf_short_ctor_mode
, 8)
4712 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_short_ctor_mode(
4713 basic_stringbuf_wchar
*this, IOSB_openmode mode
)
4715 basic_stringbuf_wchar_ctor_mode(this, mode
);
4716 this->base
.vtable
= &MSVCP_basic_stringbuf_short_vtable
;
4720 /* ??_F?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
4721 /* ??_F?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
4722 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_ctor
, 4)
4723 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_wchar_ctor(basic_stringbuf_wchar
*this)
4725 return basic_stringbuf_wchar_ctor_mode(this, OPENMODE_in
|OPENMODE_out
);
4728 /* ??_F?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
4729 /* ??_F?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
4730 DEFINE_THISCALL_WRAPPER(basic_stringbuf_short_ctor
, 4)
4731 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_short_ctor(basic_stringbuf_wchar
*this)
4733 return basic_stringbuf_short_ctor_mode(this, OPENMODE_in
|OPENMODE_out
);
4736 /* ?_Tidy@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXXZ */
4737 /* ?_Tidy@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAXXZ */
4738 /* ?_Tidy@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEXXZ */
4739 /* ?_Tidy@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAXXZ */
4740 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar__Tidy
, 4)
4741 void __thiscall
basic_stringbuf_wchar__Tidy(basic_stringbuf_wchar
*this)
4743 TRACE("(%p)\n", this);
4745 if(this->state
& STRINGBUF_allocated
) {
4746 MSVCRT_operator_delete(basic_streambuf_wchar_eback(&this->base
));
4747 this->seekhigh
= NULL
;
4748 this->state
&= ~STRINGBUF_allocated
;
4751 basic_streambuf_wchar__Init_empty(&this->base
);
4754 /* ??1?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
4755 /* ??1?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
4756 /* ??1?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
4757 /* ??1?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
4758 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_dtor
, 4)
4759 void __thiscall
basic_stringbuf_wchar_dtor(basic_stringbuf_wchar
*this)
4761 TRACE("(%p)\n", this);
4763 basic_stringbuf_wchar__Tidy(this);
4764 basic_streambuf_wchar_dtor(&this->base
);
4767 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_vector_dtor
, 8)
4768 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_wchar_vector_dtor(basic_stringbuf_wchar
*this, unsigned int flags
)
4770 TRACE("(%p %x)\n", this, flags
);
4773 /* we have an array, with the number of elements stored before the first object */
4774 INT_PTR i
, *ptr
= (INT_PTR
*) this - 1;
4776 for (i
= *ptr
- 1; i
>= 0; i
--)
4777 basic_stringbuf_wchar_dtor(this+i
);
4779 MSVCRT_operator_delete(ptr
);
4781 basic_stringbuf_wchar_dtor(this);
4784 MSVCRT_operator_delete(this);
4790 /* ?overflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAEGG@Z */
4791 /* ?overflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAAGG@Z */
4792 /* ?overflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAEGG@Z */
4793 /* ?overflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAAGG@Z */
4794 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_overflow
, 8)
4795 unsigned short __thiscall
basic_stringbuf_wchar_overflow(basic_stringbuf_wchar
*this, unsigned short meta
)
4797 MSVCP_size_t oldsize
, size
;
4800 TRACE("(%p %x)\n", this, meta
);
4804 if(this->state
& STRINGBUF_no_write
)
4807 ptr
= basic_streambuf_wchar_pptr(&this->base
);
4808 if((this->state
&STRINGBUF_append
) && ptr
<this->seekhigh
)
4809 basic_streambuf_wchar_setp_next(&this->base
, basic_streambuf_wchar_pbase(&this->base
),
4810 this->seekhigh
, basic_streambuf_wchar_epptr(&this->base
));
4812 if(ptr
&& ptr
<basic_streambuf_wchar_epptr(&this->base
))
4813 return (*basic_streambuf_wchar__Pninc(&this->base
) = meta
);
4815 oldsize
= (ptr
? basic_streambuf_wchar_epptr(&this->base
)-basic_streambuf_wchar_eback(&this->base
): 0);
4818 buf
= MSVCRT_operator_new(size
*sizeof(wchar_t));
4820 ERR("Out of memory\n");
4821 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
4825 this->seekhigh
= buf
;
4826 basic_streambuf_wchar_setp(&this->base
, buf
, buf
+size
);
4827 if(this->state
& STRINGBUF_no_read
)
4828 basic_streambuf_wchar_setg(&this->base
, buf
, NULL
, buf
);
4830 basic_streambuf_wchar_setg(&this->base
, buf
, buf
, buf
+1);
4832 this->state
|= STRINGBUF_allocated
;
4834 ptr
= basic_streambuf_wchar_eback(&this->base
);
4835 memcpy(buf
, ptr
, oldsize
*sizeof(wchar_t));
4837 this->seekhigh
= buf
+(this->seekhigh
-ptr
);
4838 basic_streambuf_wchar_setp_next(&this->base
, buf
,
4839 buf
+(basic_streambuf_wchar_pptr(&this->base
)-ptr
), buf
+size
);
4840 if(this->state
& STRINGBUF_no_read
)
4841 basic_streambuf_wchar_setg(&this->base
, buf
, NULL
, buf
);
4843 basic_streambuf_wchar_setg(&this->base
, buf
,
4844 buf
+(basic_streambuf_wchar_gptr(&this->base
)-ptr
),
4845 basic_streambuf_wchar_pptr(&this->base
)+1);
4847 MSVCRT_operator_delete(ptr
);
4850 return (*basic_streambuf_wchar__Pninc(&this->base
) = meta
);
4853 /* ?pbackfail@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAEGG@Z */
4854 /* ?pbackfail@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAAGG@Z */
4855 /* ?pbackfail@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAEGG@Z */
4856 /* ?pbackfail@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAAGG@Z */
4857 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_pbackfail
, 8)
4858 unsigned short __thiscall
basic_stringbuf_wchar_pbackfail(basic_stringbuf_wchar
*this, unsigned short c
)
4862 TRACE("(%p %x)\n", this, c
);
4864 cur
= basic_streambuf_wchar_gptr(&this->base
);
4865 if(!cur
|| cur
==basic_streambuf_wchar_eback(&this->base
)
4866 || (c
!=WEOF
&& c
!=cur
[-1] && this->state
&STRINGBUF_no_write
))
4871 basic_streambuf_wchar_gbump(&this->base
, -1);
4872 return c
==WEOF
? !WEOF
: c
;
4875 /* ?underflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAEGXZ */
4876 /* ?underflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAAGXZ */
4877 /* ?underflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAEGXZ */
4878 /* ?underflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAAGXZ */
4879 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_underflow
, 4)
4880 unsigned short __thiscall
basic_stringbuf_wchar_underflow(basic_stringbuf_wchar
*this)
4884 TRACE("(%p)\n", this);
4886 cur
= basic_streambuf_wchar_gptr(&this->base
);
4887 if(!cur
|| this->state
&STRINGBUF_no_read
)
4890 ptr
= basic_streambuf_wchar_pptr(&this->base
);
4891 if(this->seekhigh
< ptr
)
4892 this->seekhigh
= ptr
;
4894 ptr
= basic_streambuf_wchar_egptr(&this->base
);
4895 if(this->seekhigh
> ptr
)
4896 basic_streambuf_wchar_setg(&this->base
, basic_streambuf_wchar_eback(&this->base
), cur
, this->seekhigh
);
4898 if(cur
< this->seekhigh
)
4903 /* ?seekoff@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
4904 /* ?seekoff@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
4905 /* ?seekoff@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAE?AV?$fpos@H@2@JHH@Z */
4906 /* ?seekoff@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
4907 /* ?seekoff@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAE?AV?$fpos@H@2@JHH@Z */
4908 /* ?seekoff@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
4909 #if STREAMOFF_BITS == 64
4910 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_seekoff
, 24)
4912 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_seekoff
, 20)
4914 fpos_int
* __thiscall
basic_stringbuf_wchar_seekoff(basic_stringbuf_wchar
*this,
4915 fpos_int
*ret
, streamoff off
, int way
, int mode
)
4917 wchar_t *beg
, *cur_r
, *cur_w
;
4919 TRACE("(%p %p %s %d %d)\n", this, ret
, wine_dbgstr_longlong(off
), way
, mode
);
4921 cur_w
= basic_streambuf_wchar_pptr(&this->base
);
4922 if(cur_w
> this->seekhigh
)
4923 this->seekhigh
= cur_w
;
4929 beg
= basic_streambuf_wchar_eback(&this->base
);
4930 cur_r
= basic_streambuf_wchar_gptr(&this->base
);
4931 if((mode
& OPENMODE_in
) && cur_r
) {
4932 if(way
==SEEKDIR_cur
&& !(mode
& OPENMODE_out
))
4934 else if(way
== SEEKDIR_end
)
4935 off
+= this->seekhigh
-beg
;
4936 else if(way
!= SEEKDIR_beg
)
4939 if(off
<0 || off
>this->seekhigh
-beg
) {
4942 basic_streambuf_wchar_gbump(&this->base
, beg
-cur_r
+off
);
4943 if((mode
& OPENMODE_out
) && cur_w
) {
4944 basic_streambuf_wchar_setp_next(&this->base
, beg
,
4945 basic_streambuf_wchar_gptr(&this->base
),
4946 basic_streambuf_wchar_epptr(&this->base
));
4949 }else if((mode
& OPENMODE_out
) && cur_w
) {
4950 if(way
== SEEKDIR_cur
)
4952 else if(way
== SEEKDIR_end
)
4953 off
+= this->seekhigh
-beg
;
4954 else if(way
!= SEEKDIR_beg
)
4957 if(off
<0 || off
>this->seekhigh
-beg
)
4960 basic_streambuf_wchar_pbump(&this->base
, beg
-cur_w
+off
);
4969 /* ?seekpos@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
4970 /* ?seekpos@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
4971 /* ?seekpos@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
4972 /* ?seekpos@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
4973 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_seekpos
, 36)
4974 fpos_int
* __thiscall
basic_stringbuf_wchar_seekpos(basic_stringbuf_wchar
*this,
4975 fpos_int
*ret
, fpos_int pos
, int mode
)
4977 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_int(&pos
), mode
);
4979 if(pos
.off
==-1 && pos
.pos
==0 && pos
.state
==0) {
4984 return basic_stringbuf_wchar_seekoff(this, ret
, pos
.pos
+pos
.off
, SEEKDIR_beg
, mode
);
4987 /* ?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 */
4988 /* ?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 */
4989 /* ?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 */
4990 /* ?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 */
4991 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_str_set
, 8)
4992 void __thiscall
basic_stringbuf_wchar_str_set(basic_stringbuf_wchar
*this, const basic_string_wchar
*str
)
4994 TRACE("(%p %p)\n", this, str
);
4996 basic_stringbuf_wchar__Tidy(this);
4997 basic_stringbuf_wchar__Init(this, MSVCP_basic_string_wchar_c_str(str
), str
->size
, this->state
);
5000 /* ?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 */
5001 /* ?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 */
5002 /* ?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 */
5003 /* ?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 */
5004 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_str_get
, 8)
5005 basic_string_wchar
* __thiscall
basic_stringbuf_wchar_str_get(const basic_stringbuf_wchar
*this, basic_string_wchar
*ret
)
5009 TRACE("(%p)\n", this);
5011 if(!(this->state
& STRINGBUF_no_write
) && basic_streambuf_wchar_pptr(&this->base
)) {
5014 ptr
= basic_streambuf_wchar_pbase(&this->base
);
5015 pptr
= basic_streambuf_wchar_pptr(&this->base
);
5017 return MSVCP_basic_string_wchar_ctor_cstr_len(ret
, ptr
, (this->seekhigh
< pptr
? pptr
: this->seekhigh
) - ptr
);
5020 if(!(this->state
& STRINGBUF_no_read
) && basic_streambuf_wchar_gptr(&this->base
)) {
5021 ptr
= basic_streambuf_wchar_eback(&this->base
);
5022 return MSVCP_basic_string_wchar_ctor_cstr_len(ret
, ptr
, basic_streambuf_wchar_egptr(&this->base
) - ptr
);
5025 return MSVCP_basic_string_wchar_ctor(ret
);
5028 /* ??0ios_base@std@@IAE@XZ */
5029 /* ??0ios_base@std@@IEAA@XZ */
5030 DEFINE_THISCALL_WRAPPER(ios_base_ctor
, 4)
5031 ios_base
* __thiscall
ios_base_ctor(ios_base
*this)
5033 TRACE("(%p)\n", this);
5034 this->vtable
= &MSVCP_ios_base_vtable
;
5038 /* ??0ios_base@std@@QAE@ABV01@@Z */
5039 /* ??0ios_base@std@@QEAA@AEBV01@@Z */
5040 DEFINE_THISCALL_WRAPPER(ios_base_copy_ctor
, 8)
5041 ios_base
* __thiscall
ios_base_copy_ctor(ios_base
*this, const ios_base
*copy
)
5043 TRACE("(%p %p)\n", this, copy
);
5045 this->vtable
= &MSVCP_ios_base_vtable
;
5049 /* ?_Callfns@ios_base@std@@AAEXW4event@12@@Z */
5050 /* ?_Callfns@ios_base@std@@AEAAXW4event@12@@Z */
5051 DEFINE_THISCALL_WRAPPER(ios_base_Callfns
, 8)
5052 void __thiscall
ios_base_Callfns(ios_base
*this, IOS_BASE_event event
)
5054 IOS_BASE_fnarray
*cur
;
5056 TRACE("(%p %x)\n", this, event
);
5058 for(cur
=this->calls
; cur
; cur
=cur
->next
)
5059 cur
->event_handler(event
, this, cur
->index
);
5062 /* ?_Tidy@ios_base@std@@AAAXXZ */
5063 /* ?_Tidy@ios_base@std@@AEAAXXZ */
5064 void __cdecl
ios_base_Tidy(ios_base
*this)
5066 IOS_BASE_iosarray
*arr_cur
, *arr_next
;
5067 IOS_BASE_fnarray
*event_cur
, *event_next
;
5069 TRACE("(%p)\n", this);
5071 ios_base_Callfns(this, EVENT_erase_event
);
5073 for(arr_cur
=this->arr
; arr_cur
; arr_cur
=arr_next
) {
5074 arr_next
= arr_cur
->next
;
5075 MSVCRT_operator_delete(arr_cur
);
5079 for(event_cur
=this->calls
; event_cur
; event_cur
=event_next
) {
5080 event_next
= event_cur
->next
;
5081 MSVCRT_operator_delete(event_cur
);
5086 /* ?_Ios_base_dtor@ios_base@std@@CAXPAV12@@Z */
5087 /* ?_Ios_base_dtor@ios_base@std@@CAXPEAV12@@Z */
5088 void __cdecl
ios_base_Ios_base_dtor(ios_base
*obj
)
5090 TRACE("(%p)\n", obj
);
5091 locale_dtor(IOS_LOCALE(obj
));
5092 #if _MSVCP_VER >= 70
5093 MSVCRT_operator_delete(obj
->loc
);
5098 /* ??1ios_base@std@@UAE@XZ */
5099 /* ??1ios_base@std@@UEAA@XZ */
5100 DEFINE_THISCALL_WRAPPER(ios_base_dtor
, 4)
5101 void __thiscall
ios_base_dtor(ios_base
*this)
5103 ios_base_Ios_base_dtor(this);
5106 DEFINE_THISCALL_WRAPPER(ios_base_vector_dtor
, 8)
5107 ios_base
* __thiscall
ios_base_vector_dtor(ios_base
*this, unsigned int flags
)
5109 TRACE("(%p %x)\n", this, flags
);
5111 /* we have an array, with the number of elements stored before the first object */
5112 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
5114 for(i
=*ptr
-1; i
>=0; i
--)
5115 ios_base_dtor(this+i
);
5116 MSVCRT_operator_delete(ptr
);
5118 ios_base_dtor(this);
5120 MSVCRT_operator_delete(this);
5126 DEFINE_THISCALL_WRAPPER(iosb_vector_dtor
, 8)
5127 void* __thiscall
iosb_vector_dtor(void *this, unsigned int flags
)
5129 TRACE("(%p %x)\n", this, flags
);
5131 INT_PTR
*ptr
= (INT_PTR
*)this-1;
5132 MSVCRT_operator_delete(ptr
);
5135 MSVCRT_operator_delete(this);
5141 /* ?_Findarr@ios_base@std@@AAEAAU_Iosarray@12@H@Z */
5142 /* ?_Findarr@ios_base@std@@AEAAAEAU_Iosarray@12@H@Z */
5143 DEFINE_THISCALL_WRAPPER(ios_base_Findarr
, 8)
5144 IOS_BASE_iosarray
* __thiscall
ios_base_Findarr(ios_base
*this, int index
)
5146 IOS_BASE_iosarray
*p
;
5148 TRACE("(%p %d)\n", this, index
);
5150 for(p
=this->arr
; p
; p
=p
->next
) {
5151 if(p
->index
== index
)
5155 for(p
=this->arr
; p
; p
=p
->next
) {
5156 if(!p
->long_val
&& !p
->ptr_val
) {
5162 p
= MSVCRT_operator_new(sizeof(IOS_BASE_iosarray
));
5163 p
->next
= this->arr
;
5171 /* ?iword@ios_base@std@@QAEAAJH@Z */
5172 /* ?iword@ios_base@std@@QEAAAEAJH@Z */
5173 DEFINE_THISCALL_WRAPPER(ios_base_iword
, 8)
5174 LONG
* __thiscall
ios_base_iword(ios_base
*this, int index
)
5176 TRACE("(%p %d)\n", this, index
);
5177 return &ios_base_Findarr(this, index
)->long_val
;
5180 /* ?pword@ios_base@std@@QAEAAPAXH@Z */
5181 /* ?pword@ios_base@std@@QEAAAEAPEAXH@Z */
5182 DEFINE_THISCALL_WRAPPER(ios_base_pword
, 8)
5183 void** __thiscall
ios_base_pword(ios_base
*this, int index
)
5185 TRACE("(%p %d)\n", this, index
);
5186 return &ios_base_Findarr(this, index
)->ptr_val
;
5189 /* ?register_callback@ios_base@std@@QAEXP6AXW4event@12@AAV12@H@ZH@Z */
5190 /* ?register_callback@ios_base@std@@QEAAXP6AXW4event@12@AEAV12@H@ZH@Z */
5191 DEFINE_THISCALL_WRAPPER(ios_base_register_callback
, 12)
5192 void __thiscall
ios_base_register_callback(ios_base
*this, IOS_BASE_event_callback callback
, int index
)
5194 IOS_BASE_fnarray
*event
;
5196 TRACE("(%p %p %d)\n", this, callback
, index
);
5198 event
= MSVCRT_operator_new(sizeof(IOS_BASE_fnarray
));
5199 event
->next
= this->calls
;
5200 event
->index
= index
;
5201 event
->event_handler
= callback
;
5202 this->calls
= event
;
5205 /* ?clear@ios_base@std@@QAEXH_N@Z */
5206 /* ?clear@ios_base@std@@QEAAXH_N@Z */
5207 DEFINE_THISCALL_WRAPPER(ios_base_clear_reraise
, 12)
5208 void __thiscall
ios_base_clear_reraise(ios_base
*this, IOSB_iostate state
, MSVCP_bool reraise
)
5210 TRACE("(%p %x %x)\n", this, state
, reraise
);
5212 this->state
= state
& IOSTATE_mask
;
5213 if(!(this->state
& this->except
))
5217 throw_exception(EXCEPTION_RERAISE
, NULL
);
5218 else if(this->state
& this->except
& IOSTATE_eofbit
)
5219 throw_exception(EXCEPTION_FAILURE
, "eofbit is set");
5220 else if(this->state
& this->except
& IOSTATE_failbit
)
5221 throw_exception(EXCEPTION_FAILURE
, "failbit is set");
5222 else if(this->state
& this->except
& IOSTATE_badbit
)
5223 throw_exception(EXCEPTION_FAILURE
, "badbit is set");
5224 else if(this->state
& this->except
& IOSTATE__Hardfail
)
5225 throw_exception(EXCEPTION_FAILURE
, "_Hardfail is set");
5228 /* ?clear@ios_base@std@@QAEXH@Z */
5229 /* ?clear@ios_base@std@@QEAAXH@Z */
5230 DEFINE_THISCALL_WRAPPER(ios_base_clear
, 8)
5231 void __thiscall
ios_base_clear(ios_base
*this, IOSB_iostate state
)
5233 ios_base_clear_reraise(this, state
, FALSE
);
5236 /* ?clear@ios_base@std@@QAEXI@Z */
5237 /* ?clear@ios_base@std@@QEAAXI@Z */
5238 DEFINE_THISCALL_WRAPPER(ios_base_clear_unsigned
, 8)
5239 void __thiscall
ios_base_clear_unsigned(ios_base
*this, unsigned int state
)
5241 ios_base_clear_reraise(this, (IOSB_iostate
)state
, FALSE
);
5244 /* ?exceptions@ios_base@std@@QAEXH@Z */
5245 /* ?exceptions@ios_base@std@@QEAAXH@Z */
5246 DEFINE_THISCALL_WRAPPER(ios_base_exceptions_set
, 8)
5247 void __thiscall
ios_base_exceptions_set(ios_base
*this, IOSB_iostate state
)
5249 TRACE("(%p %x)\n", this, state
);
5250 this->except
= state
& IOSTATE_mask
;
5251 ios_base_clear(this, this->state
);
5254 /* ?exceptions@ios_base@std@@QAEXI@Z */
5255 /* ?exceptions@ios_base@std@@QEAAXI@Z */
5256 DEFINE_THISCALL_WRAPPER(ios_base_exceptions_set_unsigned
, 8)
5257 void __thiscall
ios_base_exceptions_set_unsigned(ios_base
*this, unsigned int state
)
5259 TRACE("(%p %x)\n", this, state
);
5260 ios_base_exceptions_set(this, state
);
5263 /* ?exceptions@ios_base@std@@QBEHXZ */
5264 /* ?exceptions@ios_base@std@@QEBAHXZ */
5265 DEFINE_THISCALL_WRAPPER(ios_base_exceptions_get
, 4)
5266 IOSB_iostate __thiscall
ios_base_exceptions_get(ios_base
*this)
5268 TRACE("(%p)\n", this);
5269 return this->except
;
5272 /* ?copyfmt@ios_base@std@@QAEAAV12@ABV12@@Z */
5273 /* ?copyfmt@ios_base@std@@QEAAAEAV12@AEBV12@@Z */
5274 DEFINE_THISCALL_WRAPPER(ios_base_copyfmt
, 8)
5275 ios_base
* __thiscall
ios_base_copyfmt(ios_base
*this, const ios_base
*rhs
)
5277 TRACE("(%p %p)\n", this, rhs
);
5280 IOS_BASE_iosarray
*arr_cur
;
5281 IOS_BASE_fnarray
*event_cur
;
5283 ios_base_Tidy(this);
5285 for(arr_cur
=rhs
->arr
; arr_cur
; arr_cur
=arr_cur
->next
) {
5286 if(arr_cur
->long_val
)
5287 *ios_base_iword(this, arr_cur
->index
) = arr_cur
->long_val
;
5288 if(arr_cur
->ptr_val
)
5289 *ios_base_pword(this, arr_cur
->index
) = arr_cur
->ptr_val
;
5291 this->stdstr
= rhs
->stdstr
;
5292 this->fmtfl
= rhs
->fmtfl
;
5293 this->prec
= rhs
->prec
;
5294 this->wide
= rhs
->wide
;
5295 locale_operator_assign(IOS_LOCALE(this), IOS_LOCALE(rhs
));
5297 for(event_cur
=rhs
->calls
; event_cur
; event_cur
=event_cur
->next
)
5298 ios_base_register_callback(this, event_cur
->event_handler
, event_cur
->index
);
5300 ios_base_Callfns(this, EVENT_copyfmt_event
);
5301 ios_base_exceptions_set(this, rhs
->except
);
5307 /* ??4ios_base@std@@QAEAAV01@ABV01@@Z */
5308 /* ??4ios_base@std@@QEAAAEAV01@AEBV01@@Z */
5309 DEFINE_THISCALL_WRAPPER(ios_base_assign
, 8)
5310 ios_base
* __thiscall
ios_base_assign(ios_base
*this, const ios_base
*right
)
5312 TRACE("(%p %p)\n", this, right
);
5315 this->state
= right
->state
;
5316 ios_base_copyfmt(this, right
);
5322 /* ?fail@ios_base@std@@QBE_NXZ */
5323 /* ?fail@ios_base@std@@QEBA_NXZ */
5324 DEFINE_THISCALL_WRAPPER(ios_base_fail
, 4)
5325 MSVCP_bool __thiscall
ios_base_fail(const ios_base
*this)
5327 TRACE("(%p)\n", this);
5328 return (this->state
& (IOSTATE_failbit
|IOSTATE_badbit
)) != 0;
5331 /* ??7ios_base@std@@QBE_NXZ */
5332 /* ??7ios_base@std@@QEBA_NXZ */
5333 DEFINE_THISCALL_WRAPPER(ios_base_op_succ
, 4)
5334 MSVCP_bool __thiscall
ios_base_op_succ(const ios_base
*this)
5336 TRACE("(%p)\n", this);
5337 return ios_base_fail(this);
5340 /* ??Bios_base@std@@QBEPAXXZ */
5341 /* ??Bios_base@std@@QEBAPEAXXZ */
5342 DEFINE_THISCALL_WRAPPER(ios_base_op_fail
, 4)
5343 void* __thiscall
ios_base_op_fail(const ios_base
*this)
5345 TRACE("(%p)\n", this);
5346 return ios_base_fail(this) ? NULL
: (void*)this;
5349 /* ??Bios_base@std@@QBA_NXZ */
5350 /* ??Bios_base@std@@QBE_NXZ */
5351 /* ??Bios_base@std@@QEBA_NXZ */
5352 DEFINE_THISCALL_WRAPPER(ios_base_operator_bool
, 4)
5353 MSVCP_bool __thiscall
ios_base_operator_bool(const ios_base
*this)
5355 TRACE("(%p)\n", this);
5356 return (this->state
& (IOSTATE_failbit
|IOSTATE_badbit
)) == 0;
5359 /* ?_Addstd@ios_base@std@@SAXPAV12@@Z */
5360 /* ?_Addstd@ios_base@std@@SAXPEAV12@@Z */
5361 void __cdecl
ios_base_Addstd(ios_base
*add
)
5363 FIXME("(%p) stub\n", add
);
5366 /* ?_Index_func@ios_base@std@@CAAAHXZ */
5367 /* ?_Index_func@ios_base@std@@CAAEAHXZ */
5368 int* __cdecl
ios_base_Index_func(void)
5371 return &ios_base_Index
;
5374 /* ?_Init@ios_base@std@@IAEXXZ */
5375 /* ?_Init@ios_base@std@@IEAAXXZ */
5376 DEFINE_THISCALL_WRAPPER(ios_base__Init
, 4)
5377 void __thiscall
ios_base__Init(ios_base
*this)
5379 TRACE("(%p)\n", this);
5382 this->state
= this->except
= IOSTATE_goodbit
;
5383 this->fmtfl
= FMTFLAG_skipws
| FMTFLAG_dec
;
5388 #if _MSVCP_VER >= 70
5389 this->loc
= MSVCRT_operator_new(sizeof(locale
));
5391 locale_ctor(IOS_LOCALE(this));
5394 /* ?_Sync_func@ios_base@std@@CAAA_NXZ */
5395 /* ?_Sync_func@ios_base@std@@CAAEA_NXZ */
5396 MSVCP_bool
* __cdecl
ios_base_Sync_func(void)
5399 return &ios_base_Sync
;
5402 /* ?bad@ios_base@std@@QBE_NXZ */
5403 /* ?bad@ios_base@std@@QEBA_NXZ */
5404 DEFINE_THISCALL_WRAPPER(ios_base_bad
, 4)
5405 MSVCP_bool __thiscall
ios_base_bad(const ios_base
*this)
5407 TRACE("(%p)\n", this);
5408 return (this->state
& IOSTATE_badbit
) != 0;
5411 /* ?eof@ios_base@std@@QBE_NXZ */
5412 /* ?eof@ios_base@std@@QEBA_NXZ */
5413 DEFINE_THISCALL_WRAPPER(ios_base_eof
, 4)
5414 MSVCP_bool __thiscall
ios_base_eof(const ios_base
*this)
5416 TRACE("(%p)\n", this);
5417 return (this->state
& IOSTATE_eofbit
) != 0;
5420 /* ?flags@ios_base@std@@QAEHH@Z */
5421 /* ?flags@ios_base@std@@QEAAHH@Z */
5422 DEFINE_THISCALL_WRAPPER(ios_base_flags_set
, 8)
5423 IOSB_fmtflags __thiscall
ios_base_flags_set(ios_base
*this, IOSB_fmtflags flags
)
5425 IOSB_fmtflags ret
= this->fmtfl
;
5427 TRACE("(%p %x)\n", this, flags
);
5429 this->fmtfl
= flags
& FMTFLAG_mask
;
5433 /* ?flags@ios_base@std@@QBEHXZ */
5434 /* ?flags@ios_base@std@@QEBAHXZ */
5435 DEFINE_THISCALL_WRAPPER(ios_base_flags_get
, 4)
5436 IOSB_fmtflags __thiscall
ios_base_flags_get(const ios_base
*this)
5438 TRACE("(%p)\n", this);
5442 /* ?getloc@ios_base@std@@QBE?AVlocale@2@XZ */
5443 /* ?getloc@ios_base@std@@QEBA?AVlocale@2@XZ */
5444 DEFINE_THISCALL_WRAPPER(ios_base_getloc
, 8)
5445 locale
* __thiscall
ios_base_getloc(const ios_base
*this, locale
*ret
)
5447 TRACE("(%p)\n", this);
5448 return locale_copy_ctor(ret
, IOS_LOCALE(this));
5451 /* ?good@ios_base@std@@QBE_NXZ */
5452 /* ?good@ios_base@std@@QEBA_NXZ */
5453 DEFINE_THISCALL_WRAPPER(ios_base_good
, 4)
5454 MSVCP_bool __thiscall
ios_base_good(const ios_base
*this)
5456 TRACE("(%p)\n", this);
5457 return this->state
== IOSTATE_goodbit
;
5460 /* ?imbue@ios_base@std@@QAE?AVlocale@2@ABV32@@Z */
5461 /* ?imbue@ios_base@std@@QEAA?AVlocale@2@AEBV32@@Z */
5462 DEFINE_THISCALL_WRAPPER(ios_base_imbue
, 12)
5463 locale
* __thiscall
ios_base_imbue(ios_base
*this, locale
*ret
, const locale
*loc
)
5465 TRACE("(%p %p)\n", this, loc
);
5466 *ret
= *IOS_LOCALE(this);
5467 locale_copy_ctor(IOS_LOCALE(this), loc
);
5471 /* ?precision@ios_base@std@@QAEHH@Z */
5472 /* ?precision@ios_base@std@@QEAA_J_J@Z */
5473 #if STREAMSIZE_BITS == 64
5474 DEFINE_THISCALL_WRAPPER(ios_base_precision_set
, 12)
5476 DEFINE_THISCALL_WRAPPER(ios_base_precision_set
, 8)
5478 streamsize __thiscall
ios_base_precision_set(ios_base
*this, streamsize precision
)
5480 streamsize ret
= this->prec
;
5482 TRACE("(%p %s)\n", this, wine_dbgstr_longlong(precision
));
5484 this->prec
= precision
;
5488 /* ?precision@ios_base@std@@QBEHXZ */
5489 /* ?precision@ios_base@std@@QEBA_JXZ */
5490 DEFINE_THISCALL_WRAPPER(ios_base_precision_get
, 4)
5491 streamsize __thiscall
ios_base_precision_get(const ios_base
*this)
5493 TRACE("(%p)\n", this);
5497 /* ?rdstate@ios_base@std@@QBEHXZ */
5498 /* ?rdstate@ios_base@std@@QEBAHXZ */
5499 DEFINE_THISCALL_WRAPPER(ios_base_rdstate
, 4)
5500 IOSB_iostate __thiscall
ios_base_rdstate(const ios_base
*this)
5502 TRACE("(%p)\n", this);
5506 /* ?setf@ios_base@std@@QAEHHH@Z */
5507 /* ?setf@ios_base@std@@QEAAHHH@Z */
5508 DEFINE_THISCALL_WRAPPER(ios_base_setf_mask
, 12)
5509 IOSB_fmtflags __thiscall
ios_base_setf_mask(ios_base
*this, IOSB_fmtflags flags
, IOSB_fmtflags mask
)
5511 IOSB_fmtflags ret
= this->fmtfl
;
5513 TRACE("(%p %x %x)\n", this, flags
, mask
);
5515 this->fmtfl
= (this->fmtfl
& (~mask
)) | (flags
& mask
& FMTFLAG_mask
);
5519 /* ?setf@ios_base@std@@QAEHH@Z */
5520 /* ?setf@ios_base@std@@QEAAHH@Z */
5521 DEFINE_THISCALL_WRAPPER(ios_base_setf
, 8)
5522 IOSB_fmtflags __thiscall
ios_base_setf(ios_base
*this, IOSB_fmtflags flags
)
5524 IOSB_fmtflags ret
= this->fmtfl
;
5526 TRACE("(%p %x)\n", this, flags
);
5528 this->fmtfl
|= flags
& FMTFLAG_mask
;
5532 /* ?setstate@ios_base@std@@QAEXH_N@Z */
5533 /* ?setstate@ios_base@std@@QEAAXH_N@Z */
5534 DEFINE_THISCALL_WRAPPER(ios_base_setstate_reraise
, 12)
5535 void __thiscall
ios_base_setstate_reraise(ios_base
*this, IOSB_iostate state
, MSVCP_bool reraise
)
5537 TRACE("(%p %x %x)\n", this, state
, reraise
);
5539 if(state
!= IOSTATE_goodbit
)
5540 ios_base_clear_reraise(this, this->state
| state
, reraise
);
5543 /* ?setstate@ios_base@std@@QAEXH@Z */
5544 /* ?setstate@ios_base@std@@QEAAXH@Z */
5545 DEFINE_THISCALL_WRAPPER(ios_base_setstate
, 8)
5546 void __thiscall
ios_base_setstate(ios_base
*this, IOSB_iostate state
)
5548 ios_base_setstate_reraise(this, state
, FALSE
);
5551 /* ?setstate@ios_base@std@@QAEXI@Z */
5552 /* ?setstate@ios_base@std@@QEAAXI@Z */
5553 DEFINE_THISCALL_WRAPPER(ios_base_setstate_unsigned
, 8)
5554 void __thiscall
ios_base_setstate_unsigned(ios_base
*this, unsigned int state
)
5556 ios_base_setstate_reraise(this, (IOSB_iostate
)state
, FALSE
);
5559 /* ?sync_with_stdio@ios_base@std@@SA_N_N@Z */
5560 MSVCP_bool __cdecl
ios_base_sync_with_stdio(MSVCP_bool sync
)
5565 TRACE("(%x)\n", sync
);
5567 _Lockit_ctor_locktype(&lock
, _LOCK_STREAM
);
5568 ret
= ios_base_Sync
;
5569 ios_base_Sync
= sync
;
5570 _Lockit_dtor(&lock
);
5574 /* ?unsetf@ios_base@std@@QAEXH@Z */
5575 /* ?unsetf@ios_base@std@@QEAAXH@Z */
5576 DEFINE_THISCALL_WRAPPER(ios_base_unsetf
, 8)
5577 void __thiscall
ios_base_unsetf(ios_base
*this, IOSB_fmtflags flags
)
5579 TRACE("(%p %x)\n", this, flags
);
5580 this->fmtfl
&= ~flags
;
5583 /* ?width@ios_base@std@@QAEHH@Z */
5584 /* ?width@ios_base@std@@QEAA_J_J@Z */
5585 #if STREAMSIZE_BITS == 64
5586 DEFINE_THISCALL_WRAPPER(ios_base_width_set
, 12)
5588 DEFINE_THISCALL_WRAPPER(ios_base_width_set
, 8)
5590 streamsize __thiscall
ios_base_width_set(ios_base
*this, streamsize width
)
5592 streamsize ret
= this->wide
;
5594 TRACE("(%p %s)\n", this, wine_dbgstr_longlong(width
));
5600 /* ?width@ios_base@std@@QBEHXZ */
5601 /* ?width@ios_base@std@@QEBA_JXZ */
5602 DEFINE_THISCALL_WRAPPER(ios_base_width_get
, 4)
5603 streamsize __thiscall
ios_base_width_get(ios_base
*this)
5605 TRACE("(%p)\n", this);
5609 /* ?xalloc@ios_base@std@@SAHXZ */
5610 int __cdecl
ios_base_xalloc(void)
5617 _Lockit_ctor_locktype(&lock
, _LOCK_STREAM
);
5618 ret
= ios_base_Index
++;
5619 _Lockit_dtor(&lock
);
5623 /* ?swap@ios_base@std@@QAEXAAV12@@Z */
5624 /* ?swap@ios_base@std@@QEAAXAEAV12@@Z */
5625 DEFINE_THISCALL_WRAPPER(ios_base_swap
, 8)
5626 void __thiscall
ios_base_swap(ios_base
*this, ios_base
*r
)
5630 TRACE("(%p %p)\n", this, r
);
5637 this->vtable
= tmp
.vtable
;
5638 tmp
.vtable
= r
->vtable
;
5642 DEFINE_THISCALL_WRAPPER(basic_ios__Add_vtordisp1
, 4)
5643 void __thiscall
basic_ios__Add_vtordisp1(void *this)
5645 WARN("should not be called (%p)\n", this);
5648 DEFINE_THISCALL_WRAPPER(basic_ios__Add_vtordisp2
, 4)
5649 void __thiscall
basic_ios__Add_vtordisp2(void *this)
5651 WARN("should not be called (%p)\n", this);
5654 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@IAE@XZ */
5655 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@IEAA@XZ */
5656 DEFINE_THISCALL_WRAPPER(basic_ios_char_ctor
, 4)
5657 basic_ios_char
* __thiscall
basic_ios_char_ctor(basic_ios_char
*this)
5659 TRACE("(%p)\n", this);
5661 ios_base_ctor(&this->base
);
5662 this->base
.vtable
= &MSVCP_basic_ios_char_vtable
;
5666 /* ?init@?$basic_ios@DU?$char_traits@D@std@@@std@@IAEXPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@_N@Z */
5667 /* ?init@?$basic_ios@DU?$char_traits@D@std@@@std@@IEAAXPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@_N@Z */
5668 DEFINE_THISCALL_WRAPPER(basic_ios_char_init
, 12)
5669 void __thiscall
basic_ios_char_init(basic_ios_char
*this, basic_streambuf_char
*streambuf
, MSVCP_bool isstd
)
5671 TRACE("(%p %p %x)\n", this, streambuf
, isstd
);
5672 ios_base__Init(&this->base
);
5673 this->strbuf
= streambuf
;
5674 this->stream
= NULL
;
5678 ios_base_setstate(&this->base
, IOSTATE_badbit
);
5681 FIXME("standard streams not handled yet\n");
5684 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
5685 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
5686 DEFINE_THISCALL_WRAPPER(basic_ios_char_ctor_streambuf
, 8)
5687 basic_ios_char
* __thiscall
basic_ios_char_ctor_streambuf(basic_ios_char
*this, basic_streambuf_char
*strbuf
)
5689 TRACE("(%p %p)\n", this, strbuf
);
5691 basic_ios_char_ctor(this);
5692 basic_ios_char_init(this, strbuf
, FALSE
);
5696 /* ??1?$basic_ios@DU?$char_traits@D@std@@@std@@UAE@XZ */
5697 /* ??1?$basic_ios@DU?$char_traits@D@std@@@std@@UEAA@XZ */
5698 DEFINE_THISCALL_WRAPPER(basic_ios_char_dtor
, 4)
5699 void __thiscall
basic_ios_char_dtor(basic_ios_char
*this)
5701 TRACE("(%p)\n", this);
5702 ios_base_dtor(&this->base
);
5705 DEFINE_THISCALL_WRAPPER(basic_ios_char_vector_dtor
, 8)
5706 basic_ios_char
* __thiscall
basic_ios_char_vector_dtor(basic_ios_char
*this, unsigned int flags
)
5708 TRACE("(%p %x)\n", this, flags
);
5710 /* we have an array, with the number of elements stored before the first object */
5711 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
5713 for(i
=*ptr
-1; i
>=0; i
--)
5714 basic_ios_char_dtor(this+i
);
5715 MSVCRT_operator_delete(ptr
);
5717 basic_ios_char_dtor(this);
5719 MSVCRT_operator_delete(this);
5725 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z */
5726 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXH_N@Z */
5727 DEFINE_THISCALL_WRAPPER(basic_ios_char_clear_reraise
, 12)
5728 void __thiscall
basic_ios_char_clear_reraise(basic_ios_char
*this, IOSB_iostate state
, MSVCP_bool reraise
)
5730 TRACE("(%p %x %x)\n", this, state
, reraise
);
5731 ios_base_clear_reraise(&this->base
, state
| (this->strbuf
? IOSTATE_goodbit
: IOSTATE_badbit
), reraise
);
5734 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXI@Z */
5735 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXI@Z */
5736 DEFINE_THISCALL_WRAPPER(basic_ios_char_clear
, 8)
5737 void __thiscall
basic_ios_char_clear(basic_ios_char
*this, unsigned int state
)
5739 basic_ios_char_clear_reraise(this, (IOSB_iostate
)state
, FALSE
);
5742 /* ?copyfmt@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEAAV12@ABV12@@Z */
5743 /* ?copyfmt@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEBV12@@Z */
5744 DEFINE_THISCALL_WRAPPER(basic_ios_char_copyfmt
, 8)
5745 basic_ios_char
* __thiscall
basic_ios_char_copyfmt(basic_ios_char
*this, basic_ios_char
*copy
)
5747 TRACE("(%p %p)\n", this, copy
);
5751 this->stream
= copy
->stream
;
5752 this->fillch
= copy
->fillch
;
5753 ios_base_copyfmt(&this->base
, ©
->base
);
5757 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEDD@Z */
5758 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAADD@Z */
5759 DEFINE_THISCALL_WRAPPER(basic_ios_char_fill_set
, 8)
5760 char __thiscall
basic_ios_char_fill_set(basic_ios_char
*this, char fill
)
5762 char ret
= this->fillch
;
5764 TRACE("(%p %c)\n", this, fill
);
5766 this->fillch
= fill
;
5770 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDXZ */
5771 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBADXZ */
5772 DEFINE_THISCALL_WRAPPER(basic_ios_char_fill_get
, 4)
5773 char __thiscall
basic_ios_char_fill_get(basic_ios_char
*this)
5775 TRACE("(%p)\n", this);
5776 return this->fillch
;
5779 /* ?imbue@?$basic_ios@DU?$char_traits@D@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
5780 /* ?imbue@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
5781 DEFINE_THISCALL_WRAPPER(basic_ios_char_imbue
, 12)
5782 locale
*__thiscall
basic_ios_char_imbue(basic_ios_char
*this, locale
*ret
, const locale
*loc
)
5784 TRACE("(%p %p %p)\n", this, ret
, loc
);
5787 basic_streambuf_char_pubimbue(this->strbuf
, ret
, loc
);
5791 return ios_base_imbue(&this->base
, ret
, loc
);
5794 /* ?narrow@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDDD@Z */
5795 /* ?narrow@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBADDD@Z */
5796 DEFINE_THISCALL_WRAPPER(basic_ios_char_narrow
, 12)
5797 char __thiscall
basic_ios_char_narrow(basic_ios_char
*this, char ch
, char def
)
5799 TRACE("(%p %c %c)\n", this, ch
, def
);
5800 return ctype_char_narrow_ch(ctype_char_use_facet(IOS_LOCALE(this->strbuf
)), ch
, def
);
5803 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PAV32@@Z */
5804 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PEAV32@@Z */
5805 DEFINE_THISCALL_WRAPPER(basic_ios_char_rdbuf_set
, 8)
5806 basic_streambuf_char
* __thiscall
basic_ios_char_rdbuf_set(basic_ios_char
*this, basic_streambuf_char
*streambuf
)
5808 basic_streambuf_char
*ret
= this->strbuf
;
5810 TRACE("(%p %p)\n", this, streambuf
);
5812 this->strbuf
= streambuf
;
5813 basic_ios_char_clear(this, IOSTATE_goodbit
);
5817 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ */
5818 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ */
5819 DEFINE_THISCALL_WRAPPER(basic_ios_char_rdbuf_get
, 4)
5820 basic_streambuf_char
* __thiscall
basic_ios_char_rdbuf_get(const basic_ios_char
*this)
5822 TRACE("(%p)\n", this);
5823 return this->strbuf
;
5826 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z */
5827 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXH_N@Z */
5828 DEFINE_THISCALL_WRAPPER(basic_ios_char_setstate_reraise
, 12)
5829 void __thiscall
basic_ios_char_setstate_reraise(basic_ios_char
*this, IOSB_iostate state
, MSVCP_bool reraise
)
5831 TRACE("(%p %x %x)\n", this, state
, reraise
);
5833 if(state
!= IOSTATE_goodbit
)
5834 basic_ios_char_clear_reraise(this, this->base
.state
| state
, reraise
);
5837 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXI@Z */
5838 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXI@Z */
5839 DEFINE_THISCALL_WRAPPER(basic_ios_char_setstate
, 8)
5840 void __thiscall
basic_ios_char_setstate(basic_ios_char
*this, unsigned int state
)
5842 basic_ios_char_setstate_reraise(this, (IOSB_iostate
)state
, FALSE
);
5845 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEPAV?$basic_ostream@DU?$char_traits@D@std@@@2@PAV32@@Z */
5846 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAPEAV?$basic_ostream@DU?$char_traits@D@std@@@2@PEAV32@@Z */
5847 DEFINE_THISCALL_WRAPPER(basic_ios_char_tie_set
, 8)
5848 basic_ostream_char
* __thiscall
basic_ios_char_tie_set(basic_ios_char
*this, basic_ostream_char
*ostream
)
5850 basic_ostream_char
*ret
= this->stream
;
5852 TRACE("(%p %p)\n", this, ostream
);
5854 this->stream
= ostream
;
5858 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ */
5859 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ */
5860 DEFINE_THISCALL_WRAPPER(basic_ios_char_tie_get
, 4)
5861 basic_ostream_char
* __thiscall
basic_ios_char_tie_get(const basic_ios_char
*this)
5863 TRACE("(%p)\n", this);
5864 return this->stream
;
5867 /* ?widen@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDD@Z */
5868 /* ?widen@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBADD@Z */
5869 DEFINE_THISCALL_WRAPPER(basic_ios_char_widen
, 8)
5870 char __thiscall
basic_ios_char_widen(basic_ios_char
*this, char ch
)
5872 TRACE("(%p %c)\n", this, ch
);
5873 return ctype_char_widen_ch(ctype_char_use_facet(IOS_LOCALE(this->strbuf
)), ch
);
5876 /* ?swap@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXAAV12@@Z */
5877 /* ?swap@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXAEAV12@@Z */
5878 DEFINE_THISCALL_WRAPPER(basic_ios_char_swap
, 8)
5879 void __thiscall
basic_ios_char_swap(basic_ios_char
*this, basic_ios_char
*r
)
5883 TRACE("(%p %p)\n", this, r
);
5888 ios_base_swap(&this->base
, &r
->base
);
5889 swap_ptr
= this->stream
;
5890 this->stream
= r
->stream
;
5891 r
->stream
= swap_ptr
;
5892 this->fillch
^= r
->fillch
;
5893 r
->fillch
^= this->fillch
;
5894 this->fillch
^= r
->fillch
;
5897 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@IAE@XZ */
5898 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@IEAA@XZ */
5899 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_ctor
, 4)
5900 basic_ios_wchar
* __thiscall
basic_ios_wchar_ctor(basic_ios_wchar
*this)
5902 TRACE("(%p)\n", this);
5904 ios_base_ctor(&this->base
);
5905 this->base
.vtable
= &MSVCP_basic_ios_wchar_vtable
;
5909 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@IAE@XZ */
5910 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@IEAA@XZ */
5911 DEFINE_THISCALL_WRAPPER(basic_ios_short_ctor
, 4)
5912 basic_ios_wchar
* __thiscall
basic_ios_short_ctor(basic_ios_wchar
*this)
5914 basic_ios_wchar_ctor(this);
5915 this->base
.vtable
= &MSVCP_basic_ios_short_vtable
;
5919 /* ?init@?$basic_ios@_WU?$char_traits@_W@std@@@std@@IAEXPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_N@Z */
5920 /* ?init@?$basic_ios@_WU?$char_traits@_W@std@@@std@@IEAAXPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_N@Z */
5921 /* ?init@?$basic_ios@GU?$char_traits@G@std@@@std@@IAEXPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@_N@Z */
5922 /* ?init@?$basic_ios@GU?$char_traits@G@std@@@std@@IEAAXPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@_N@Z */
5923 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_init
, 12)
5924 void __thiscall
basic_ios_wchar_init(basic_ios_wchar
*this, basic_streambuf_wchar
*streambuf
, MSVCP_bool isstd
)
5926 TRACE("(%p %p %x)\n", this, streambuf
, isstd
);
5927 ios_base__Init(&this->base
);
5928 this->strbuf
= streambuf
;
5929 this->stream
= NULL
;
5933 ios_base_setstate(&this->base
, IOSTATE_badbit
);
5936 FIXME("standard streams not handled yet\n");
5939 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
5940 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
5941 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_ctor_streambuf
, 8)
5942 basic_ios_wchar
* __thiscall
basic_ios_wchar_ctor_streambuf(basic_ios_wchar
*this, basic_streambuf_wchar
*strbuf
)
5944 TRACE("(%p %p)\n", this, strbuf
);
5946 basic_ios_wchar_ctor(this);
5947 basic_ios_wchar_init(this, strbuf
, FALSE
);
5951 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
5952 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
5953 DEFINE_THISCALL_WRAPPER(basic_ios_short_ctor_streambuf
, 8)
5954 basic_ios_wchar
* __thiscall
basic_ios_short_ctor_streambuf(basic_ios_wchar
*this, basic_streambuf_wchar
*strbuf
)
5956 basic_ios_wchar_ctor_streambuf(this, strbuf
);
5957 this->base
.vtable
= &MSVCP_basic_ios_short_vtable
;
5961 /* ??1?$basic_ios@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
5962 /* ??1?$basic_ios@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
5963 /* ??1?$basic_ios@GU?$char_traits@G@std@@@std@@UAE@XZ */
5964 /* ??1?$basic_ios@GU?$char_traits@G@std@@@std@@UEAA@XZ */
5965 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_dtor
, 4)
5966 void __thiscall
basic_ios_wchar_dtor(basic_ios_wchar
*this)
5968 TRACE("(%p)\n", this);
5969 ios_base_dtor(&this->base
);
5972 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_vector_dtor
, 8)
5973 basic_ios_wchar
* __thiscall
basic_ios_wchar_vector_dtor(basic_ios_wchar
*this, unsigned int flags
)
5975 TRACE("(%p %x)\n", this, flags
);
5977 /* we have an array, with the number of elements stored before the first object */
5978 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
5980 for(i
=*ptr
-1; i
>=0; i
--)
5981 basic_ios_wchar_dtor(this+i
);
5982 MSVCRT_operator_delete(ptr
);
5984 basic_ios_wchar_dtor(this);
5986 MSVCRT_operator_delete(this);
5992 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXH_N@Z */
5993 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXH_N@Z */
5994 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXH_N@Z */
5995 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXH_N@Z */
5996 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_clear_reraise
, 12)
5997 void __thiscall
basic_ios_wchar_clear_reraise(basic_ios_wchar
*this, IOSB_iostate state
, MSVCP_bool reraise
)
5999 TRACE("(%p %x %x)\n", this, state
, reraise
);
6000 ios_base_clear_reraise(&this->base
, state
| (this->strbuf
? IOSTATE_goodbit
: IOSTATE_badbit
), reraise
);
6003 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXI@Z */
6004 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXI@Z */
6005 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXI@Z */
6006 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXI@Z */
6007 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_clear
, 8)
6008 void __thiscall
basic_ios_wchar_clear(basic_ios_wchar
*this, unsigned int state
)
6010 basic_ios_wchar_clear_reraise(this, (IOSB_iostate
)state
, FALSE
);
6013 /* ?copyfmt@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEAAV12@ABV12@@Z */
6014 /* ?copyfmt@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEBV12@@Z */
6015 /* ?copyfmt@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEAAV12@ABV12@@Z */
6016 /* ?copyfmt@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEBV12@@Z */
6017 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_copyfmt
, 8)
6018 basic_ios_wchar
* __thiscall
basic_ios_wchar_copyfmt(basic_ios_wchar
*this, basic_ios_wchar
*copy
)
6020 TRACE("(%p %p)\n", this, copy
);
6024 this->stream
= copy
->stream
;
6025 this->fillch
= copy
->fillch
;
6026 ios_base_copyfmt(&this->base
, ©
->base
);
6030 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAE_W_W@Z */
6031 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAA_W_W@Z */
6032 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEGG@Z */
6033 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAGG@Z */
6034 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_fill_set
, 8)
6035 wchar_t __thiscall
basic_ios_wchar_fill_set(basic_ios_wchar
*this, wchar_t fill
)
6037 wchar_t ret
= this->fillch
;
6039 TRACE("(%p %c)\n", this, fill
);
6041 this->fillch
= fill
;
6045 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBE_WXZ */
6046 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBA_WXZ */
6047 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEGXZ */
6048 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAGXZ */
6049 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_fill_get
, 4)
6050 wchar_t __thiscall
basic_ios_wchar_fill_get(basic_ios_wchar
*this)
6052 TRACE("(%p)\n", this);
6053 return this->fillch
;
6056 /* ?imbue@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
6057 /* ?imbue@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
6058 /* ?imbue@?$basic_ios@GU?$char_traits@G@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
6059 /* ?imbue@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
6060 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_imbue
, 12)
6061 locale
*__thiscall
basic_ios_wchar_imbue(basic_ios_wchar
*this, locale
*ret
, const locale
*loc
)
6063 TRACE("(%p %p %p)\n", this, ret
, loc
);
6066 basic_streambuf_wchar_pubimbue(this->strbuf
, ret
, loc
);
6070 return ios_base_imbue(&this->base
, ret
, loc
);
6073 /* ?narrow@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBED_WD@Z */
6074 /* ?narrow@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBAD_WD@Z */
6075 /* ?narrow@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEDGD@Z */
6076 /* ?narrow@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBADGD@Z */
6077 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_narrow
, 12)
6078 char __thiscall
basic_ios_wchar_narrow(basic_ios_wchar
*this, wchar_t ch
, char def
)
6080 TRACE("(%p %c %c)\n", this, ch
, def
);
6081 return ctype_wchar_narrow_ch(ctype_wchar_use_facet(IOS_LOCALE(this->strbuf
)), ch
, def
);
6084 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PAV32@@Z */
6085 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PEAV32@@Z */
6086 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PAV32@@Z */
6087 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PEAV32@@Z */
6088 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_rdbuf_set
, 8)
6089 basic_streambuf_wchar
* __thiscall
basic_ios_wchar_rdbuf_set(basic_ios_wchar
*this, basic_streambuf_wchar
*streambuf
)
6091 basic_streambuf_wchar
*ret
= this->strbuf
;
6093 TRACE("(%p %p)\n", this, streambuf
);
6095 this->strbuf
= streambuf
;
6096 basic_ios_wchar_clear(this, IOSTATE_goodbit
);
6100 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@XZ */
6101 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@XZ */
6102 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@XZ */
6103 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@XZ */
6104 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_rdbuf_get
, 4)
6105 basic_streambuf_wchar
* __thiscall
basic_ios_wchar_rdbuf_get(const basic_ios_wchar
*this)
6107 TRACE("(%p)\n", this);
6108 return this->strbuf
;
6111 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXH_N@Z */
6112 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXH_N@Z */
6113 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXH_N@Z */
6114 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXH_N@Z */
6115 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_setstate_reraise
, 12)
6116 void __thiscall
basic_ios_wchar_setstate_reraise(basic_ios_wchar
*this, IOSB_iostate state
, MSVCP_bool reraise
)
6118 TRACE("(%p %x %x)\n", this, state
, reraise
);
6120 if(state
!= IOSTATE_goodbit
)
6121 basic_ios_wchar_clear_reraise(this, this->base
.state
| state
, reraise
);
6124 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXI@Z */
6125 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXI@Z */
6126 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXI@Z */
6127 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXI@Z */
6128 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_setstate
, 8)
6129 void __thiscall
basic_ios_wchar_setstate(basic_ios_wchar
*this, IOSB_iostate state
)
6131 basic_ios_wchar_setstate_reraise(this, state
, FALSE
);
6134 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEPAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@PAV32@@Z */
6135 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAPEAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@PEAV32@@Z */
6136 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEPAV?$basic_ostream@GU?$char_traits@G@std@@@2@PAV32@@Z */
6137 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAPEAV?$basic_ostream@GU?$char_traits@G@std@@@2@PEAV32@@Z */
6138 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_tie_set
, 8)
6139 basic_ostream_wchar
* __thiscall
basic_ios_wchar_tie_set(basic_ios_wchar
*this, basic_ostream_wchar
*ostream
)
6141 basic_ostream_wchar
*ret
= this->stream
;
6143 TRACE("(%p %p)\n", this, ostream
);
6145 this->stream
= ostream
;
6149 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@XZ */
6150 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@XZ */
6151 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_ostream@GU?$char_traits@G@std@@@2@XZ */
6152 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_ostream@GU?$char_traits@G@std@@@2@XZ */
6153 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_tie_get
, 4)
6154 basic_ostream_wchar
* __thiscall
basic_ios_wchar_tie_get(const basic_ios_wchar
*this)
6156 TRACE("(%p)\n", this);
6157 return this->stream
;
6160 /* ?widen@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBE_WD@Z */
6161 /* ?widen@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBA_WD@Z */
6162 /* ?widen@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEGD@Z */
6163 /* ?widen@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAGD@Z */
6164 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_widen
, 8)
6165 wchar_t __thiscall
basic_ios_wchar_widen(basic_ios_wchar
*this, char ch
)
6167 TRACE("(%p %c)\n", this, ch
);
6168 return ctype_wchar_widen_ch(ctype_wchar_use_facet(IOS_LOCALE(this->strbuf
)), ch
);
6171 /* ?swap@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXAAV12@@Z */
6172 /* ?swap@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXAEAV12@@Z */
6173 /* ?swap@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXAAV12@@Z */
6174 /* ?swap@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXAEAV12@@Z */
6175 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_swap
, 8)
6176 void __thiscall
basic_ios_wchar_swap(basic_ios_wchar
*this, basic_ios_wchar
*r
)
6180 TRACE("(%p %p)\n", this, r
);
6185 ios_base_swap(&this->base
, &r
->base
);
6186 swap_ptr
= this->stream
;
6187 this->stream
= r
->stream
;
6188 r
->stream
= swap_ptr
;
6189 this->fillch
^= r
->fillch
;
6190 r
->fillch
^= this->fillch
;
6191 this->fillch
^= r
->fillch
;
6194 /* Caution: basic_ostream uses virtual inheritance.
6195 * All constructors have additional parameter that says if base class should be initialized.
6196 * Base class needs to be accessed using vbtable.
6198 static inline basic_ios_char
* basic_ostream_char_get_basic_ios(basic_ostream_char
*this)
6200 return (basic_ios_char
*)((char*)this+this->vbtable
[1]);
6203 static inline basic_ios_char
* basic_ostream_char_to_basic_ios(basic_ostream_char
*ptr
)
6205 return (basic_ios_char
*)((char*)ptr
+basic_ostream_char_vbtable
[1]);
6208 static inline basic_ostream_char
* basic_ostream_char_from_basic_ios(basic_ios_char
*ptr
)
6210 return (basic_ostream_char
*)((char*)ptr
-basic_ostream_char_vbtable
[1]);
6213 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z */
6214 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z */
6215 DEFINE_THISCALL_WRAPPER(basic_ostream_char_ctor
, 16)
6216 basic_ostream_char
* __thiscall
basic_ostream_char_ctor(basic_ostream_char
*this,
6217 basic_streambuf_char
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
6219 basic_ios_char
*base
;
6221 TRACE("(%p %p %d %d)\n", this, strbuf
, isstd
, virt_init
);
6224 this->vbtable
= basic_ostream_char_vbtable
;
6225 base
= basic_ostream_char_get_basic_ios(this);
6226 INIT_BASIC_IOS_VTORDISP(base
);
6227 basic_ios_char_ctor(base
);
6229 base
= basic_ostream_char_get_basic_ios(this);
6232 base
->base
.vtable
= &MSVCP_basic_ostream_char_vtable
;
6233 basic_ios_char_init(base
, strbuf
, isstd
);
6237 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@W4_Uninitialized@1@_N@Z */
6238 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA@W4_Uninitialized@1@_N@Z */
6239 DEFINE_THISCALL_WRAPPER(basic_ostream_char_ctor_uninitialized
, 16)
6240 basic_ostream_char
* __thiscall
basic_ostream_char_ctor_uninitialized(basic_ostream_char
*this,
6241 int uninitialized
, MSVCP_bool addstd
, MSVCP_bool virt_init
)
6243 basic_ios_char
*base
;
6245 TRACE("(%p %d %x)\n", this, uninitialized
, addstd
);
6248 this->vbtable
= basic_ostream_char_vbtable
;
6249 base
= basic_ostream_char_get_basic_ios(this);
6250 INIT_BASIC_IOS_VTORDISP(base
);
6251 basic_ios_char_ctor(base
);
6253 base
= basic_ostream_char_get_basic_ios(this);
6256 base
->base
.vtable
= &MSVCP_basic_ostream_char_vtable
;
6258 ios_base_Addstd(&base
->base
);
6262 /* ??1?$basic_ostream@DU?$char_traits@D@std@@@std@@UAE@XZ */
6263 /* ??1?$basic_ostream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
6264 DEFINE_THISCALL_WRAPPER(basic_ostream_char_dtor
, 4)
6265 void __thiscall
basic_ostream_char_dtor(basic_ios_char
*base
)
6267 basic_ostream_char
*this = basic_ostream_char_from_basic_ios(base
);
6269 /* don't destroy virtual base here */
6270 TRACE("(%p)\n", this);
6273 /* ??_D?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
6274 /* ??_D?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
6275 DEFINE_THISCALL_WRAPPER(basic_ostream_char_vbase_dtor
, 4)
6276 void __thiscall
basic_ostream_char_vbase_dtor(basic_ostream_char
*this)
6278 basic_ios_char
*base
= basic_ostream_char_to_basic_ios(this);
6280 TRACE("(%p)\n", this);
6282 basic_ostream_char_dtor(base
);
6283 basic_ios_char_dtor(base
);
6286 DEFINE_THISCALL_WRAPPER(basic_ostream_char_vector_dtor
, 8)
6287 basic_ostream_char
* __thiscall
basic_ostream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
6289 basic_ostream_char
*this = basic_ostream_char_from_basic_ios(base
);
6291 TRACE("(%p %x)\n", this, flags
);
6294 /* we have an array, with the number of elements stored before the first object */
6295 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
6297 for(i
=*ptr
-1; i
>=0; i
--)
6298 basic_ostream_char_vbase_dtor(this+i
);
6299 MSVCRT_operator_delete(ptr
);
6301 basic_ostream_char_vbase_dtor(this);
6303 MSVCRT_operator_delete(this);
6309 /* ?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ */
6310 /* ?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@XZ */
6311 DEFINE_THISCALL_WRAPPER(basic_ostream_char_flush
, 4)
6312 basic_ostream_char
* __thiscall
basic_ostream_char_flush(basic_ostream_char
*this)
6314 /* this function is not matching C++ specification */
6315 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6317 TRACE("(%p)\n", this);
6319 if(basic_ios_char_rdbuf_get(base
) && ios_base_good(&base
->base
)
6320 && basic_streambuf_char_pubsync(basic_ios_char_rdbuf_get(base
))==-1)
6321 basic_ios_char_setstate(base
, IOSTATE_badbit
);
6325 /* ?flush@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z */
6326 /* ?flush@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@1@AEAV21@@Z */
6327 basic_ostream_char
* __cdecl
flush_ostream_char(basic_ostream_char
*ostream
)
6329 return basic_ostream_char_flush(ostream
);
6332 /* ?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
6333 /* ?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
6334 DEFINE_THISCALL_WRAPPER(basic_ostream_char__Osfx
, 4)
6335 void __thiscall
basic_ostream_char__Osfx(basic_ostream_char
*this)
6337 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6339 TRACE("(%p)\n", this);
6341 if(base
->base
.fmtfl
& FMTFLAG_unitbuf
)
6342 basic_ostream_char_flush(this);
6345 /* ?osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
6346 /* ?osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
6347 DEFINE_THISCALL_WRAPPER(basic_ostream_char_osfx
, 4)
6348 void __thiscall
basic_ostream_char_osfx(basic_ostream_char
*this)
6350 TRACE("(%p)\n", this);
6351 basic_ostream_char__Osfx(this);
6354 static BOOL
basic_ostream_char_sentry_create(basic_ostream_char
*ostr
)
6356 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
6358 if(basic_ios_char_rdbuf_get(base
))
6359 call_basic_streambuf_char__Lock(base
->strbuf
);
6361 if(ios_base_good(&base
->base
) && base
->stream
)
6362 basic_ostream_char_flush(base
->stream
);
6364 return ios_base_good(&base
->base
);
6367 static void basic_ostream_char_sentry_destroy(basic_ostream_char
*ostr
)
6369 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
6371 if(ios_base_good(&base
->base
) && !__uncaught_exception())
6372 basic_ostream_char_osfx(ostr
);
6374 if(basic_ios_char_rdbuf_get(base
))
6375 call_basic_streambuf_char__Unlock(base
->strbuf
);
6378 /* ?opfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE_NXZ */
6379 /* ?opfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA_NXZ */
6380 DEFINE_THISCALL_WRAPPER(basic_ostream_char_opfx
, 4)
6381 MSVCP_bool __thiscall
basic_ostream_char_opfx(basic_ostream_char
*this)
6383 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6385 TRACE("(%p)\n", this);
6387 if(ios_base_good(&base
->base
) && base
->stream
)
6388 basic_ostream_char_flush(base
->stream
);
6389 return ios_base_good(&base
->base
);
6392 /* ?put@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@D@Z */
6393 /* ?put@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@D@Z */
6394 DEFINE_THISCALL_WRAPPER(basic_ostream_char_put
, 8)
6395 basic_ostream_char
* __thiscall
basic_ostream_char_put(basic_ostream_char
*this, char ch
)
6397 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6399 TRACE("(%p %c)\n", this, ch
);
6401 if(!basic_ostream_char_sentry_create(this)
6402 || basic_streambuf_char_sputc(base
->strbuf
, ch
)==EOF
) {
6403 basic_ostream_char_sentry_destroy(this);
6404 basic_ios_char_setstate(base
, IOSTATE_badbit
);
6408 basic_ostream_char_sentry_destroy(this);
6412 /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@JH@Z */
6413 /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JH@Z */
6414 #if STREAMOFF_BITS == 64
6415 DEFINE_THISCALL_WRAPPER(basic_ostream_char_seekp
, 16)
6417 DEFINE_THISCALL_WRAPPER(basic_ostream_char_seekp
, 12)
6419 basic_ostream_char
* __thiscall
basic_ostream_char_seekp(basic_ostream_char
*this, streamoff off
, int way
)
6421 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6423 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(off
), way
);
6425 if(!ios_base_fail(&base
->base
)) {
6428 basic_streambuf_char_pubseekoff(basic_ios_char_rdbuf_get(base
),
6429 &seek
, off
, way
, OPENMODE_out
);
6430 if(seek
.off
==-1 && seek
.pos
==0 && seek
.state
==0)
6431 basic_ios_char_setstate(base
, IOSTATE_failbit
);
6436 /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
6437 /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
6438 DEFINE_THISCALL_WRAPPER(basic_ostream_char_seekp_fpos
, 28)
6439 basic_ostream_char
* __thiscall
basic_ostream_char_seekp_fpos(basic_ostream_char
*this, fpos_int pos
)
6441 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6443 TRACE("(%p %s)\n", this, debugstr_fpos_int(&pos
));
6445 if(!ios_base_fail(&base
->base
)) {
6448 basic_streambuf_char_pubseekpos(basic_ios_char_rdbuf_get(base
),
6449 &seek
, pos
, OPENMODE_out
);
6450 if(seek
.off
==-1 && seek
.pos
==0 && seek
.state
==0)
6451 basic_ios_char_setstate(base
, IOSTATE_failbit
);
6456 /* ?tellp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@XZ */
6457 /* ?tellp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
6458 DEFINE_THISCALL_WRAPPER(basic_ostream_char_tellp
, 8)
6459 fpos_int
* __thiscall
basic_ostream_char_tellp(basic_ostream_char
*this, fpos_int
*ret
)
6461 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6463 TRACE("(%p)\n", this);
6465 if(!ios_base_fail(&base
->base
)) {
6466 basic_streambuf_char_pubseekoff(basic_ios_char_rdbuf_get(base
),
6467 ret
, 0, SEEKDIR_cur
, OPENMODE_out
);
6476 /* ?write@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@PBDH@Z */
6477 /* ?write@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEBD_J@Z */
6478 #if STREAMSIZE_BITS == 64
6479 DEFINE_THISCALL_WRAPPER(basic_ostream_char_write
, 16)
6481 DEFINE_THISCALL_WRAPPER(basic_ostream_char_write
, 12)
6483 basic_ostream_char
* __thiscall
basic_ostream_char_write(basic_ostream_char
*this, const char *str
, streamsize count
)
6485 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6487 TRACE("(%p %s %s)\n", this, debugstr_a(str
), wine_dbgstr_longlong(count
));
6489 if(!basic_ostream_char_sentry_create(this)
6490 || basic_streambuf_char_sputn(base
->strbuf
, str
, count
)!=count
) {
6491 basic_ostream_char_sentry_destroy(this);
6492 basic_ios_char_setstate(base
, IOSTATE_badbit
);
6496 basic_ostream_char_sentry_destroy(this);
6500 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@F@Z */
6501 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@F@Z */
6502 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_short
, 8)
6503 basic_ostream_char
* __thiscall
basic_ostream_char_print_short(basic_ostream_char
*this, short val
)
6505 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6506 int state
= IOSTATE_goodbit
;
6508 TRACE("(%p %d)\n", this, val
);
6510 if(basic_ostream_char_sentry_create(this)) {
6511 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6512 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6513 ostreambuf_iterator_char dest
;
6515 memset(&dest
, 0, sizeof(dest
));
6516 dest
.strbuf
= strbuf
;
6517 num_put_char_put_long(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
),
6518 (ios_base_flags_get(&base
->base
) & FMTFLAG_basefield
& (FMTFLAG_oct
| FMTFLAG_hex
))
6519 ? (LONG
)((unsigned short)val
) : (LONG
)val
);
6521 basic_ostream_char_sentry_destroy(this);
6523 basic_ios_char_setstate(base
, state
);
6527 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@G@Z */
6528 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@G@Z */
6529 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_ushort
, 8)
6530 basic_ostream_char
* __thiscall
basic_ostream_char_print_ushort(basic_ostream_char
*this, unsigned short val
)
6532 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6533 int state
= IOSTATE_goodbit
;
6535 TRACE("(%p %u)\n", this, val
);
6537 if(basic_ostream_char_sentry_create(this)) {
6538 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6539 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6540 ostreambuf_iterator_char dest
;
6542 memset(&dest
, 0, sizeof(dest
));
6543 dest
.strbuf
= strbuf
;
6544 num_put_char_put_ulong(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6546 basic_ostream_char_sentry_destroy(this);
6548 basic_ios_char_setstate(base
, state
);
6552 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@H@Z */
6553 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@H@Z */
6554 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@J@Z */
6555 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@J@Z */
6556 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_int
, 8)
6557 basic_ostream_char
* __thiscall
basic_ostream_char_print_int(basic_ostream_char
*this, int val
)
6559 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6560 int state
= IOSTATE_goodbit
;
6562 TRACE("(%p %d)\n", this, val
);
6564 if(basic_ostream_char_sentry_create(this)) {
6565 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6566 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6567 ostreambuf_iterator_char dest
;
6569 memset(&dest
, 0, sizeof(dest
));
6570 dest
.strbuf
= strbuf
;
6571 num_put_char_put_long(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6573 basic_ostream_char_sentry_destroy(this);
6575 basic_ios_char_setstate(base
, state
);
6579 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@I@Z */
6580 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@I@Z */
6581 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@K@Z */
6582 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@K@Z */
6583 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_uint
, 8)
6584 basic_ostream_char
* __thiscall
basic_ostream_char_print_uint(basic_ostream_char
*this, unsigned int val
)
6586 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6587 int state
= IOSTATE_goodbit
;
6589 TRACE("(%p %u)\n", this, val
);
6591 if(basic_ostream_char_sentry_create(this)) {
6592 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6593 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6594 ostreambuf_iterator_char dest
;
6596 memset(&dest
, 0, sizeof(dest
));
6597 dest
.strbuf
= strbuf
;
6598 num_put_char_put_ulong(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6600 basic_ostream_char_sentry_destroy(this);
6602 basic_ios_char_setstate(base
, state
);
6606 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@M@Z */
6607 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@M@Z */
6608 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_float
, 8)
6609 basic_ostream_char
* __thiscall
basic_ostream_char_print_float(basic_ostream_char
*this, float val
)
6611 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6612 int state
= IOSTATE_goodbit
;
6614 TRACE("(%p %f)\n", this, val
);
6616 if(basic_ostream_char_sentry_create(this)) {
6617 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6618 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6619 ostreambuf_iterator_char dest
;
6621 memset(&dest
, 0, sizeof(dest
));
6622 dest
.strbuf
= strbuf
;
6623 num_put_char_put_double(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6625 basic_ostream_char_sentry_destroy(this);
6627 basic_ios_char_setstate(base
, state
);
6631 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@N@Z */
6632 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@N@Z */
6633 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_double
, 12)
6634 basic_ostream_char
* __thiscall
basic_ostream_char_print_double(basic_ostream_char
*this, double val
)
6636 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6637 int state
= IOSTATE_goodbit
;
6639 TRACE("(%p %lf)\n", this, val
);
6641 if(basic_ostream_char_sentry_create(this)) {
6642 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6643 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6644 ostreambuf_iterator_char dest
;
6646 memset(&dest
, 0, sizeof(dest
));
6647 dest
.strbuf
= strbuf
;
6648 num_put_char_put_double(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6650 basic_ostream_char_sentry_destroy(this);
6652 basic_ios_char_setstate(base
, state
);
6656 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@O@Z */
6657 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@O@Z */
6658 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_ldouble
, 12)
6659 basic_ostream_char
* __thiscall
basic_ostream_char_print_ldouble(basic_ostream_char
*this, double val
)
6661 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6662 int state
= IOSTATE_goodbit
;
6664 TRACE("(%p %lf)\n", this, val
);
6666 if(basic_ostream_char_sentry_create(this)) {
6667 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6668 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6669 ostreambuf_iterator_char dest
;
6671 memset(&dest
, 0, sizeof(dest
));
6672 dest
.strbuf
= strbuf
;
6673 num_put_char_put_ldouble(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6675 basic_ostream_char_sentry_destroy(this);
6677 basic_ios_char_setstate(base
, state
);
6681 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
6682 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
6683 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_streambuf
, 8)
6684 basic_ostream_char
* __thiscall
basic_ostream_char_print_streambuf(basic_ostream_char
*this, basic_streambuf_char
*val
)
6686 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6687 IOSB_iostate state
= IOSTATE_badbit
;
6690 TRACE("(%p %p)\n", this, val
);
6692 if(basic_ostream_char_sentry_create(this)) {
6693 for(c
= basic_streambuf_char_sgetc(val
); c
!=EOF
;
6694 c
= basic_streambuf_char_snextc(val
)) {
6695 state
= IOSTATE_goodbit
;
6697 if(basic_streambuf_char_sputc(base
->strbuf
, c
) == EOF
) {
6698 state
= IOSTATE_badbit
;
6703 state
= IOSTATE_badbit
;
6705 basic_ostream_char_sentry_destroy(this);
6707 ios_base_width_set(&base
->base
, 0);
6708 basic_ios_char_setstate(base
, state
);
6712 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@PBX@Z */
6713 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@PEBX@Z */
6714 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_ptr
, 8)
6715 basic_ostream_char
* __thiscall
basic_ostream_char_print_ptr(basic_ostream_char
*this, const void *val
)
6717 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6718 int state
= IOSTATE_goodbit
;
6720 TRACE("(%p %p)\n", this, val
);
6722 if(basic_ostream_char_sentry_create(this)) {
6723 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6724 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6725 ostreambuf_iterator_char dest
;
6727 memset(&dest
, 0, sizeof(dest
));
6728 dest
.strbuf
= strbuf
;
6729 num_put_char_put_ptr(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6731 basic_ostream_char_sentry_destroy(this);
6733 basic_ios_char_setstate(base
, state
);
6737 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@_J@Z */
6738 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@_J@Z */
6739 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_int64
, 12)
6740 basic_ostream_char
* __thiscall
basic_ostream_char_print_int64(basic_ostream_char
*this, __int64 val
)
6742 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6743 int state
= IOSTATE_goodbit
;
6745 TRACE("(%p)\n", this);
6747 if(basic_ostream_char_sentry_create(this)) {
6748 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6749 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6750 ostreambuf_iterator_char dest
;
6752 memset(&dest
, 0, sizeof(dest
));
6753 dest
.strbuf
= strbuf
;
6754 num_put_char_put_int64(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6756 basic_ostream_char_sentry_destroy(this);
6758 basic_ios_char_setstate(base
, state
);
6762 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@_K@Z */
6763 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@_K@Z */
6764 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_uint64
, 12)
6765 basic_ostream_char
* __thiscall
basic_ostream_char_print_uint64(basic_ostream_char
*this, unsigned __int64 val
)
6767 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6768 int state
= IOSTATE_goodbit
;
6770 TRACE("(%p)\n", this);
6772 if(basic_ostream_char_sentry_create(this)) {
6773 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6774 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6775 ostreambuf_iterator_char dest
;
6777 memset(&dest
, 0, sizeof(dest
));
6778 dest
.strbuf
= strbuf
;
6779 num_put_char_put_uint64(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6781 basic_ostream_char_sentry_destroy(this);
6783 basic_ios_char_setstate(base
, state
);
6787 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@_N@Z */
6788 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@_N@Z */
6789 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_bool
, 8)
6790 basic_ostream_char
* __thiscall
basic_ostream_char_print_bool(basic_ostream_char
*this, MSVCP_bool val
)
6792 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6793 int state
= IOSTATE_goodbit
;
6795 TRACE("(%p %x)\n", this, val
);
6797 if(basic_ostream_char_sentry_create(this)) {
6798 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6799 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6800 ostreambuf_iterator_char dest
;
6802 memset(&dest
, 0, sizeof(dest
));
6803 dest
.strbuf
= strbuf
;
6804 num_put_char_put_bool(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6806 basic_ostream_char_sentry_destroy(this);
6808 basic_ios_char_setstate(base
, state
);
6812 /* ?ends@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z */
6813 /* ?ends@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@1@AEAV21@@Z */
6814 basic_ostream_char
* __cdecl
basic_ostream_char_ends(basic_ostream_char
*ostr
)
6816 TRACE("(%p)\n", ostr
);
6818 basic_ostream_char_put(ostr
, 0);
6822 /* ?endl@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z */
6823 /* ?endl@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@1@AEAV21@@Z */
6824 basic_ostream_char
* __cdecl
basic_ostream_char_endl(basic_ostream_char
*ostr
)
6826 TRACE("(%p)\n", ostr
);
6828 basic_ostream_char_put(ostr
, '\n');
6829 basic_ostream_char_flush(ostr
);
6833 /* ??$?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 */
6834 /* ??$?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 */
6835 basic_ostream_char
* __cdecl
basic_ostream_char_print_bstr(basic_ostream_char
*ostr
, const basic_string_char
*str
)
6837 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
6838 IOSB_iostate state
= IOSTATE_goodbit
;
6840 TRACE("(%p %p)\n", ostr
, str
);
6842 if(basic_ostream_char_sentry_create(ostr
)) {
6843 MSVCP_size_t len
= MSVCP_basic_string_char_length(str
);
6844 streamsize pad
= (base
->base
.wide
>len
? base
->base
.wide
-len
: 0);
6846 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
6847 for(; pad
!=0; pad
--) {
6848 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
6849 state
= IOSTATE_badbit
;
6855 if(state
== IOSTATE_goodbit
) {
6856 if(basic_streambuf_char_sputn(base
->strbuf
, MSVCP_basic_string_char_c_str(str
), len
) != len
)
6857 state
= IOSTATE_badbit
;
6860 if(state
== IOSTATE_goodbit
) {
6861 for(; pad
!=0; pad
--) {
6862 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
6863 state
= IOSTATE_badbit
;
6869 base
->base
.wide
= 0;
6871 state
= IOSTATE_badbit
;
6873 basic_ostream_char_sentry_destroy(ostr
);
6875 basic_ios_char_setstate(base
, state
);
6879 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@C@Z */
6880 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@C@Z */
6881 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@D@Z */
6882 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@D@Z */
6883 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@E@Z */
6884 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@E@Z */
6885 basic_ostream_char
* __cdecl
basic_ostream_char_print_ch(basic_ostream_char
*ostr
, char ch
)
6887 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
6888 IOSB_iostate state
= IOSTATE_goodbit
;
6890 TRACE("(%p %d)\n", ostr
, ch
);
6892 if(basic_ostream_char_sentry_create(ostr
)) {
6893 streamsize pad
= (base
->base
.wide
>1 ? base
->base
.wide
-1 : 0);
6895 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
6896 for(; pad
!=0; pad
--) {
6897 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
6898 state
= IOSTATE_badbit
;
6904 if(state
== IOSTATE_goodbit
) {
6905 if(basic_streambuf_char_sputc(base
->strbuf
, ch
) == EOF
)
6906 state
= IOSTATE_badbit
;
6909 if(state
== IOSTATE_goodbit
) {
6910 for(; pad
!=0; pad
--) {
6911 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
6912 state
= IOSTATE_badbit
;
6918 base
->base
.wide
= 0;
6920 state
= IOSTATE_badbit
;
6922 basic_ostream_char_sentry_destroy(ostr
);
6924 basic_ios_char_setstate(base
, state
);
6928 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBC@Z */
6929 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBC@Z */
6930 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z */
6931 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBD@Z */
6932 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBE@Z */
6933 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBE@Z */
6934 basic_ostream_char
* __cdecl
basic_ostream_char_print_str(basic_ostream_char
*ostr
, const char *str
)
6936 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
6937 IOSB_iostate state
= IOSTATE_goodbit
;
6939 TRACE("(%p %s)\n", ostr
, str
);
6941 if(basic_ostream_char_sentry_create(ostr
)) {
6942 MSVCP_size_t len
= strlen(str
);
6943 streamsize pad
= (base
->base
.wide
>len
? base
->base
.wide
-len
: 0);
6945 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
6946 for(; pad
!=0; pad
--) {
6947 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
6948 state
= IOSTATE_badbit
;
6954 if(state
== IOSTATE_goodbit
) {
6955 if(basic_streambuf_char_sputn(base
->strbuf
, str
, len
) != len
)
6956 state
= IOSTATE_badbit
;
6959 if(state
== IOSTATE_goodbit
) {
6960 for(; pad
!=0; pad
--) {
6961 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
6962 state
= IOSTATE_badbit
;
6968 base
->base
.wide
= 0;
6970 state
= IOSTATE_badbit
;
6972 basic_ostream_char_sentry_destroy(ostr
);
6974 basic_ios_char_setstate(base
, state
);
6978 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
6979 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
6980 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_func
, 8)
6981 basic_ostream_char
* __thiscall
basic_ostream_char_print_func(basic_ostream_char
*this,
6982 basic_ostream_char
* (__cdecl
*pfunc
)(basic_ostream_char
*))
6984 TRACE("(%p %p)\n", this, pfunc
);
6989 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@DU?$char_traits@D@std@@@1@AAV21@@Z@Z */
6990 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@DU?$char_traits@D@std@@@1@AEAV21@@Z@Z */
6991 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_func_basic_ios
, 8)
6992 basic_ostream_char
* __thiscall
basic_ostream_char_print_func_basic_ios(basic_ostream_char
*this,
6993 basic_ios_char
* (__cdecl
*pfunc
)(basic_ios_char
*))
6995 TRACE("(%p %p)\n", this, pfunc
);
6996 pfunc(basic_ostream_char_get_basic_ios(this));
7000 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
7001 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
7002 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_func_ios_base
, 8)
7003 basic_ostream_char
* __thiscall
basic_ostream_char_print_func_ios_base(
7004 basic_ostream_char
*this, ios_base
* (__cdecl
*pfunc
)(ios_base
*))
7006 TRACE("(%p %p)\n", this, pfunc
);
7007 pfunc(&basic_ostream_char_get_basic_ios(this)->base
);
7011 /* ?swap@?$basic_ostream@DU?$char_traits@D@std@@@std@@IAEXAAV12@@Z */
7012 /* ?swap@?$basic_ostream@DU?$char_traits@D@std@@@std@@IEAAXAEAV12@@Z */
7013 DEFINE_THISCALL_WRAPPER(basic_ostream_char_swap
, 8)
7014 void __thiscall
basic_ostream_char_swap(basic_ostream_char
*this, basic_ostream_char
*r
)
7016 TRACE("(%p %p)\n", this, r
);
7021 basic_ios_char_swap(basic_ostream_char_get_basic_ios(this),
7022 basic_ostream_char_get_basic_ios(r
));
7025 /* Caution: basic_ostream uses virtual inheritance. */
7026 static inline basic_ios_wchar
* basic_ostream_wchar_get_basic_ios(basic_ostream_wchar
*this)
7028 return (basic_ios_wchar
*)((char*)this+this->vbtable
[1]);
7031 static inline basic_ios_wchar
* basic_ostream_wchar_to_basic_ios(basic_ostream_wchar
*ptr
)
7033 return (basic_ios_wchar
*)((char*)ptr
+basic_ostream_wchar_vbtable
[1]);
7036 static inline basic_ostream_wchar
* basic_ostream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
7038 return (basic_ostream_wchar
*)((char*)ptr
-basic_ostream_wchar_vbtable
[1]);
7041 /* ??0?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N@Z */
7042 /* ??0?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N@Z */
7043 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_ctor
, 16)
7044 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_ctor(basic_ostream_wchar
*this,
7045 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
7047 basic_ios_wchar
*base
;
7049 TRACE("(%p %p %d %d)\n", this, strbuf
, isstd
, virt_init
);
7052 this->vbtable
= basic_ostream_wchar_vbtable
;
7053 base
= basic_ostream_wchar_get_basic_ios(this);
7054 INIT_BASIC_IOS_VTORDISP(base
);
7055 basic_ios_wchar_ctor(base
);
7057 base
= basic_ostream_wchar_get_basic_ios(this);
7060 base
->base
.vtable
= &MSVCP_basic_ostream_wchar_vtable
;
7061 basic_ios_wchar_init(base
, strbuf
, isstd
);
7065 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N@Z */
7066 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N@Z */
7067 DEFINE_THISCALL_WRAPPER(basic_ostream_short_ctor
, 16)
7068 basic_ostream_wchar
* __thiscall
basic_ostream_short_ctor(basic_ostream_wchar
*this,
7069 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
7071 basic_ostream_wchar_ctor(this, strbuf
, isstd
, virt_init
);
7072 basic_ostream_wchar_get_basic_ios(this)->base
.vtable
= &MSVCP_basic_ostream_short_vtable
;
7076 /* ??0?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAE@W4_Uninitialized@1@_N@Z */
7077 /* ??0?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA@W4_Uninitialized@1@_N@Z */
7078 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_ctor_uninitialized
, 16)
7079 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_ctor_uninitialized(basic_ostream_wchar
*this,
7080 int uninitialized
, MSVCP_bool addstd
, MSVCP_bool virt_init
)
7082 basic_ios_wchar
*base
;
7084 TRACE("(%p %d %x)\n", this, uninitialized
, addstd
);
7087 this->vbtable
= basic_ostream_wchar_vbtable
;
7088 base
= basic_ostream_wchar_get_basic_ios(this);
7089 INIT_BASIC_IOS_VTORDISP(base
);
7090 basic_ios_wchar_ctor(base
);
7092 base
= basic_ostream_wchar_get_basic_ios(this);
7095 base
->base
.vtable
= &MSVCP_basic_ostream_wchar_vtable
;
7097 ios_base_Addstd(&base
->base
);
7101 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE@W4_Uninitialized@1@_N@Z */
7102 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA@W4_Uninitialized@1@_N@Z */
7103 DEFINE_THISCALL_WRAPPER(basic_ostream_short_ctor_uninitialized
, 16)
7104 basic_ostream_wchar
* __thiscall
basic_ostream_short_ctor_uninitialized(basic_ostream_wchar
*this,
7105 int uninitialized
, MSVCP_bool addstd
, MSVCP_bool virt_init
)
7107 basic_ostream_wchar_ctor_uninitialized(this, uninitialized
, addstd
, virt_init
);
7108 basic_ostream_wchar_get_basic_ios(this)->base
.vtable
= &MSVCP_basic_ostream_short_vtable
;
7112 /* ??1?$basic_ostream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
7113 /* ??1?$basic_ostream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
7114 /* ??1?$basic_ostream@GU?$char_traits@G@std@@@std@@UAE@XZ */
7115 /* ??1?$basic_ostream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
7116 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_dtor
, 4)
7117 void __thiscall
basic_ostream_wchar_dtor(basic_ios_wchar
*base
)
7119 basic_ostream_wchar
*this = basic_ostream_wchar_from_basic_ios(base
);
7121 /* don't destroy virtual base here */
7122 TRACE("(%p)\n", this);
7125 /* ??_D?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
7126 /* ??_D?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
7127 /* ??_D?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
7128 /* ??_D?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
7129 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_vbase_dtor
, 4)
7130 void __thiscall
basic_ostream_wchar_vbase_dtor(basic_ostream_wchar
*this)
7132 basic_ios_wchar
*base
= basic_ostream_wchar_to_basic_ios(this);
7134 TRACE("(%p)\n", this);
7136 basic_ostream_wchar_dtor(base
);
7137 basic_ios_wchar_dtor(base
);
7140 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_vector_dtor
, 8)
7141 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
7143 basic_ostream_wchar
*this = basic_ostream_wchar_from_basic_ios(base
);
7145 TRACE("(%p %x)\n", this, flags
);
7148 /* we have an array, with the number of elements stored before the first object */
7149 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
7151 for(i
=*ptr
-1; i
>=0; i
--)
7152 basic_ostream_wchar_vbase_dtor(this+i
);
7153 MSVCRT_operator_delete(ptr
);
7155 basic_ostream_wchar_vbase_dtor(this);
7157 MSVCRT_operator_delete(this);
7163 /* ?flush@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@XZ */
7164 /* ?flush@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@XZ */
7165 /* ?flush@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@XZ */
7166 /* ?flush@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@XZ */
7167 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_flush
, 4)
7168 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_flush(basic_ostream_wchar
*this)
7170 /* this function is not matching C++ specification */
7171 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7173 TRACE("(%p)\n", this);
7175 if(basic_ios_wchar_rdbuf_get(base
) && ios_base_good(&base
->base
)
7176 && basic_streambuf_wchar_pubsync(basic_ios_wchar_rdbuf_get(base
))==-1)
7177 basic_ios_wchar_setstate(base
, IOSTATE_badbit
);
7181 /* ?flush@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AAV21@@Z */
7182 /* ?flush@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AEAV21@@Z */
7183 /* ?flush@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@1@AAV21@@Z */
7184 /* ?flush@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@1@AEAV21@@Z */
7185 basic_ostream_wchar
* __cdecl
flush_ostream_wchar(basic_ostream_wchar
*ostream
)
7187 return basic_ostream_wchar_flush(ostream
);
7190 /* ?_Osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
7191 /* ?_Osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
7192 /* ?_Osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
7193 /* ?_Osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
7194 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar__Osfx
, 4)
7195 void __thiscall
basic_ostream_wchar__Osfx(basic_ostream_wchar
*this)
7197 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7199 TRACE("(%p)\n", this);
7201 if(base
->base
.fmtfl
& FMTFLAG_unitbuf
)
7202 basic_ostream_wchar_flush(this);
7205 /* ?osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
7206 /* ?osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
7207 /* ?osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
7208 /* ?osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
7209 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_osfx
, 4)
7210 void __thiscall
basic_ostream_wchar_osfx(basic_ostream_wchar
*this)
7212 TRACE("(%p)\n", this);
7213 basic_ostream_wchar__Osfx(this);
7216 static BOOL
basic_ostream_wchar_sentry_create(basic_ostream_wchar
*ostr
)
7218 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
7220 if(basic_ios_wchar_rdbuf_get(base
))
7221 basic_streambuf_wchar__Lock(base
->strbuf
);
7223 if(ios_base_good(&base
->base
) && base
->stream
)
7224 basic_ostream_wchar_flush(base
->stream
);
7226 return ios_base_good(&base
->base
);
7229 static void basic_ostream_wchar_sentry_destroy(basic_ostream_wchar
*ostr
)
7231 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
7233 if(ios_base_good(&base
->base
) && !__uncaught_exception())
7234 basic_ostream_wchar_osfx(ostr
);
7236 if(basic_ios_wchar_rdbuf_get(base
))
7237 basic_streambuf_wchar__Unlock(base
->strbuf
);
7240 /* ?opfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAE_NXZ */
7241 /* ?opfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA_NXZ */
7242 /* ?opfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE_NXZ */
7243 /* ?opfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA_NXZ */
7244 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_opfx
, 4)
7245 MSVCP_bool __thiscall
basic_ostream_wchar_opfx(basic_ostream_wchar
*this)
7247 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7249 TRACE("(%p)\n", this);
7251 if(ios_base_good(&base
->base
) && base
->stream
)
7252 basic_ostream_wchar_flush(base
->stream
);
7253 return ios_base_good(&base
->base
);
7256 /* ?put@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@_W@Z */
7257 /* ?put@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_W@Z */
7258 /* ?put@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@G@Z */
7259 /* ?put@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@G@Z */
7260 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_put
, 8)
7261 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_put(basic_ostream_wchar
*this, wchar_t ch
)
7263 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7265 TRACE("(%p %c)\n", this, ch
);
7267 if(!basic_ostream_wchar_sentry_create(this)
7268 || basic_streambuf_wchar_sputc(base
->strbuf
, ch
)==WEOF
) {
7269 basic_ostream_wchar_sentry_destroy(this);
7270 basic_ios_wchar_setstate(base
, IOSTATE_badbit
);
7274 basic_ostream_wchar_sentry_destroy(this);
7278 /* ?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@JH@Z */
7279 /* ?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_JH@Z */
7280 /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@JH@Z */
7281 /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JH@Z */
7282 #if STREAMOFF_BITS == 64
7283 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_seekp
, 16)
7285 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_seekp
, 12)
7287 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_seekp(basic_ostream_wchar
*this, streamoff off
, int way
)
7289 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7291 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(off
), way
);
7293 if(!ios_base_fail(&base
->base
)) {
7296 basic_streambuf_wchar_pubseekoff(basic_ios_wchar_rdbuf_get(base
),
7297 &seek
, off
, way
, OPENMODE_out
);
7298 if(seek
.off
==-1 && seek
.pos
==0 && seek
.state
==0)
7299 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
7304 /* ?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
7305 /* ?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
7306 /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
7307 /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
7308 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_seekp_fpos
, 28)
7309 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_seekp_fpos(basic_ostream_wchar
*this, fpos_int pos
)
7311 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7313 TRACE("(%p %s)\n", this, debugstr_fpos_int(&pos
));
7315 if(!ios_base_fail(&base
->base
)) {
7318 basic_streambuf_wchar_pubseekpos(basic_ios_wchar_rdbuf_get(base
),
7319 &seek
, pos
, OPENMODE_out
);
7320 if(seek
.off
==-1 && seek
.pos
==0 && seek
.state
==0)
7321 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
7326 /* ?tellp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@XZ */
7327 /* ?tellp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
7328 /* ?tellp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@XZ */
7329 /* ?tellp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
7330 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_tellp
, 8)
7331 fpos_int
* __thiscall
basic_ostream_wchar_tellp(basic_ostream_wchar
*this, fpos_int
*ret
)
7333 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7335 TRACE("(%p)\n", this);
7337 if(!ios_base_fail(&base
->base
)) {
7338 basic_streambuf_wchar_pubseekoff(basic_ios_wchar_rdbuf_get(base
),
7339 ret
, 0, SEEKDIR_cur
, OPENMODE_out
);
7348 /* ?write@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PB_WH@Z */
7349 /* ?write@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEB_W_J@Z */
7350 /* ?write@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@PBGH@Z */
7351 /* ?write@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEBG_J@Z */
7352 #if STREAMSIZE_BITS == 64
7353 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_write
, 16)
7355 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_write
, 12)
7357 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_write(basic_ostream_wchar
*this, const wchar_t *str
, streamsize count
)
7359 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7361 TRACE("(%p %s %s)\n", this, debugstr_w(str
), wine_dbgstr_longlong(count
));
7363 if(!basic_ostream_wchar_sentry_create(this)
7364 || basic_streambuf_wchar_sputn(base
->strbuf
, str
, count
)!=count
) {
7365 basic_ostream_wchar_sentry_destroy(this);
7366 basic_ios_wchar_setstate(base
, IOSTATE_badbit
);
7370 basic_ostream_wchar_sentry_destroy(this);
7374 static basic_ostream_wchar
* basic_ostream_print_short(basic_ostream_wchar
*this, short val
, const num_put
*numput
)
7376 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7377 int state
= IOSTATE_goodbit
;
7379 TRACE("(%p %d)\n", this, val
);
7381 if(basic_ostream_wchar_sentry_create(this)) {
7382 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7383 ostreambuf_iterator_wchar dest
;
7385 memset(&dest
, 0, sizeof(dest
));
7386 dest
.strbuf
= strbuf
;
7387 num_put_wchar_put_long(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
),
7388 (ios_base_flags_get(&base
->base
) & FMTFLAG_basefield
& (FMTFLAG_oct
| FMTFLAG_hex
))
7389 ? (LONG
)((unsigned short)val
) : (LONG
)val
);
7391 basic_ostream_wchar_sentry_destroy(this);
7393 basic_ios_wchar_setstate(base
, state
);
7397 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@F@Z */
7398 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@F@Z */
7399 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_short
, 8)
7400 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_short(basic_ostream_wchar
*this, short val
)
7402 return basic_ostream_print_short(this, val
, num_put_wchar_use_facet(
7403 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7406 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@F@Z */
7407 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@F@Z */
7408 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_short
, 8)
7409 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_short(basic_ostream_wchar
*this, short val
)
7411 return basic_ostream_print_short(this, val
, num_put_short_use_facet(
7412 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7415 static basic_ostream_wchar
* basic_ostream_print_ushort(basic_ostream_wchar
*this, unsigned short val
, const num_put
*numput
)
7417 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7418 int state
= IOSTATE_goodbit
;
7420 TRACE("(%p %d)\n", this, val
);
7422 if(basic_ostream_wchar_sentry_create(this)) {
7423 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7424 ostreambuf_iterator_wchar dest
;
7426 memset(&dest
, 0, sizeof(dest
));
7427 dest
.strbuf
= strbuf
;
7428 num_put_wchar_put_ulong(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7430 basic_ostream_wchar_sentry_destroy(this);
7432 basic_ios_wchar_setstate(base
, state
);
7436 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@G@Z */
7437 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@G@Z */
7438 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_ushort
, 8)
7439 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_ushort(basic_ostream_wchar
*this, unsigned short val
)
7441 return basic_ostream_print_ushort(this, val
, num_put_wchar_use_facet(
7442 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7445 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@G@Z */
7446 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@G@Z */
7447 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_ushort
, 8)
7448 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_ushort(basic_ostream_wchar
*this, unsigned short val
)
7450 return basic_ostream_print_ushort(this, val
, num_put_short_use_facet(
7451 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7454 /* ??6std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@0@AAV10@G@Z */
7455 /* ??6std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@0@AEAV10@G@Z */
7456 basic_ostream_wchar
* __cdecl
basic_ostream_short_print_ushort_global(basic_ostream_wchar
*ostr
, unsigned short val
)
7458 return basic_ostream_print_ushort(ostr
, val
, num_put_short_use_facet(
7459 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(ostr
)))));
7462 static basic_ostream_wchar
* basic_ostream_print_int(basic_ostream_wchar
*this, int val
, const num_put
*numput
)
7464 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7465 int state
= IOSTATE_goodbit
;
7467 TRACE("(%p %d)\n", this, val
);
7469 if(basic_ostream_wchar_sentry_create(this)) {
7470 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7471 ostreambuf_iterator_wchar dest
;
7473 memset(&dest
, 0, sizeof(dest
));
7474 dest
.strbuf
= strbuf
;
7475 num_put_wchar_put_long(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7477 basic_ostream_wchar_sentry_destroy(this);
7479 basic_ios_wchar_setstate(base
, state
);
7483 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@H@Z */
7484 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@H@Z */
7485 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@J@Z */
7486 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@J@Z */
7487 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_int
, 8)
7488 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_int(basic_ostream_wchar
*this, int val
)
7490 return basic_ostream_print_int(this, val
, num_put_wchar_use_facet(
7491 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7494 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@H@Z */
7495 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@H@Z */
7496 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@J@Z */
7497 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@J@Z */
7498 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_int
, 8)
7499 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_int(basic_ostream_wchar
*this, int val
)
7501 return basic_ostream_print_int(this, val
, num_put_short_use_facet(
7502 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7505 static basic_ostream_wchar
* basic_ostream_print_uint(basic_ostream_wchar
*this, unsigned int val
, const num_put
*numput
)
7507 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7508 int state
= IOSTATE_goodbit
;
7510 TRACE("(%p %u)\n", this, val
);
7512 if(basic_ostream_wchar_sentry_create(this)) {
7513 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7514 ostreambuf_iterator_wchar dest
;
7516 memset(&dest
, 0, sizeof(dest
));
7517 dest
.strbuf
= strbuf
;
7518 num_put_wchar_put_ulong(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7520 basic_ostream_wchar_sentry_destroy(this);
7522 basic_ios_wchar_setstate(base
, state
);
7526 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@I@Z */
7527 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@I@Z */
7528 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@K@Z */
7529 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@K@Z */
7530 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_uint
, 8)
7531 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_uint(basic_ostream_wchar
*this, unsigned int val
)
7533 return basic_ostream_print_uint(this, val
, num_put_wchar_use_facet(
7534 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7537 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@I@Z */
7538 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@I@Z */
7539 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@K@Z */
7540 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@K@Z */
7541 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_uint
, 8)
7542 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_uint(basic_ostream_wchar
*this, unsigned int val
)
7544 return basic_ostream_print_uint(this, val
, num_put_short_use_facet(
7545 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7548 static basic_ostream_wchar
* basic_ostream_print_float(basic_ostream_wchar
*this, float val
, const num_put
*numput
)
7550 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7551 int state
= IOSTATE_goodbit
;
7553 TRACE("(%p %f)\n", this, val
);
7555 if(basic_ostream_wchar_sentry_create(this)) {
7556 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7557 ostreambuf_iterator_wchar dest
;
7559 memset(&dest
, 0, sizeof(dest
));
7560 dest
.strbuf
= strbuf
;
7561 num_put_wchar_put_double(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7563 basic_ostream_wchar_sentry_destroy(this);
7565 basic_ios_wchar_setstate(base
, state
);
7569 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@M@Z */
7570 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@M@Z */
7571 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_float
, 8)
7572 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_float(basic_ostream_wchar
*this, float val
)
7574 return basic_ostream_print_float(this, val
, num_put_wchar_use_facet(
7575 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7578 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@M@Z */
7579 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@M@Z */
7580 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_float
, 8)
7581 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_float(basic_ostream_wchar
*this, float val
)
7583 return basic_ostream_print_float(this, val
, num_put_short_use_facet(
7584 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7587 static basic_ostream_wchar
* basic_ostream_print_double(basic_ostream_wchar
*this, double val
, const num_put
*numput
)
7589 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7590 int state
= IOSTATE_goodbit
;
7592 TRACE("(%p %lf)\n", this, val
);
7594 if(basic_ostream_wchar_sentry_create(this)) {
7595 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7596 ostreambuf_iterator_wchar dest
;
7598 memset(&dest
, 0, sizeof(dest
));
7599 dest
.strbuf
= strbuf
;
7600 num_put_wchar_put_double(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7602 basic_ostream_wchar_sentry_destroy(this);
7604 basic_ios_wchar_setstate(base
, state
);
7608 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@N@Z */
7609 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@N@Z */
7610 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_double
, 12)
7611 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_double(basic_ostream_wchar
*this, double val
)
7613 return basic_ostream_print_double(this, val
, num_put_wchar_use_facet(
7614 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7617 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@N@Z */
7618 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@N@Z */
7619 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_double
, 12)
7620 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_double(basic_ostream_wchar
*this, double val
)
7622 return basic_ostream_print_double(this, val
, num_put_short_use_facet(
7623 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7626 static basic_ostream_wchar
* basic_ostream_print_ldouble(basic_ostream_wchar
*this, double val
, const num_put
*numput
)
7628 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7629 int state
= IOSTATE_goodbit
;
7631 TRACE("(%p %lf)\n", this, val
);
7633 if(basic_ostream_wchar_sentry_create(this)) {
7634 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7635 ostreambuf_iterator_wchar dest
;
7637 memset(&dest
, 0, sizeof(dest
));
7638 dest
.strbuf
= strbuf
;
7639 num_put_wchar_put_ldouble(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7641 basic_ostream_wchar_sentry_destroy(this);
7643 basic_ios_wchar_setstate(base
, state
);
7647 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@O@Z */
7648 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@O@Z */
7649 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_ldouble
, 12)
7650 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_ldouble(basic_ostream_wchar
*this, double val
)
7652 return basic_ostream_print_ldouble(this, val
, num_put_wchar_use_facet(
7653 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7656 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@O@Z */
7657 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@O@Z */
7658 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_ldouble
, 12)
7659 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_ldouble(basic_ostream_wchar
*this, double val
)
7661 return basic_ostream_print_ldouble(this, val
, num_put_short_use_facet(
7662 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7665 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
7666 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
7667 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
7668 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
7669 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_streambuf
, 8)
7670 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_streambuf(basic_ostream_wchar
*this, basic_streambuf_wchar
*val
)
7672 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7673 IOSB_iostate state
= IOSTATE_badbit
;
7674 unsigned short c
= '\n';
7676 TRACE("(%p %p)\n", this, val
);
7678 if(basic_ostream_wchar_sentry_create(this)) {
7679 for(c
= basic_streambuf_wchar_sgetc(val
); c
!=WEOF
;
7680 c
= basic_streambuf_wchar_snextc(val
)) {
7681 state
= IOSTATE_goodbit
;
7683 if(basic_streambuf_wchar_sputc(base
->strbuf
, c
) == WEOF
) {
7684 state
= IOSTATE_badbit
;
7689 state
= IOSTATE_badbit
;
7691 basic_ostream_wchar_sentry_destroy(this);
7693 ios_base_width_set(&base
->base
, 0);
7694 basic_ios_wchar_setstate(base
, state
);
7698 static basic_ostream_wchar
* basic_ostream_print_ptr(basic_ostream_wchar
*this, const void *val
, const num_put
*numput
)
7700 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7701 int state
= IOSTATE_goodbit
;
7703 TRACE("(%p %p)\n", this, val
);
7705 if(basic_ostream_wchar_sentry_create(this)) {
7706 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7707 ostreambuf_iterator_wchar dest
;
7709 memset(&dest
, 0, sizeof(dest
));
7710 dest
.strbuf
= strbuf
;
7711 num_put_wchar_put_ptr(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7713 basic_ostream_wchar_sentry_destroy(this);
7715 basic_ios_wchar_setstate(base
, state
);
7719 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@PBX@Z */
7720 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@PEBX@Z */
7721 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_ptr
, 8)
7722 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_ptr(basic_ostream_wchar
*this, const void *val
)
7724 return basic_ostream_print_ptr(this, val
, num_put_wchar_use_facet(
7725 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7728 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@PBX@Z */
7729 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@PEBX@Z */
7730 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_ptr
, 8)
7731 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_ptr(basic_ostream_wchar
*this, const void *val
)
7733 return basic_ostream_print_ptr(this, val
, num_put_short_use_facet(
7734 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7737 static basic_ostream_wchar
* basic_ostream_print_int64(basic_ostream_wchar
*this, __int64 val
, const num_put
*numput
)
7739 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7740 int state
= IOSTATE_goodbit
;
7742 TRACE("(%p)\n", this);
7744 if(basic_ostream_wchar_sentry_create(this)) {
7745 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7746 ostreambuf_iterator_wchar dest
;
7748 memset(&dest
, 0, sizeof(dest
));
7749 dest
.strbuf
= strbuf
;
7750 num_put_wchar_put_int64(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7752 basic_ostream_wchar_sentry_destroy(this);
7754 basic_ios_wchar_setstate(base
, state
);
7758 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@_J@Z */
7759 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@_J@Z */
7760 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_int64
, 12)
7761 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_int64(basic_ostream_wchar
*this, __int64 val
)
7763 return basic_ostream_print_int64(this, val
, num_put_wchar_use_facet(
7764 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7767 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@_J@Z */
7768 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@_J@Z */
7769 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_int64
, 12)
7770 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_int64(basic_ostream_wchar
*this, __int64 val
)
7772 return basic_ostream_print_int64(this, val
, num_put_short_use_facet(
7773 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7776 static basic_ostream_wchar
* basic_ostream_print_uint64(basic_ostream_wchar
*this, unsigned __int64 val
, const num_put
*numput
)
7778 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7779 int state
= IOSTATE_goodbit
;
7781 TRACE("(%p)\n", this);
7783 if(basic_ostream_wchar_sentry_create(this)) {
7784 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7785 ostreambuf_iterator_wchar dest
;
7787 memset(&dest
, 0, sizeof(dest
));
7788 dest
.strbuf
= strbuf
;
7789 num_put_wchar_put_uint64(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7791 basic_ostream_wchar_sentry_destroy(this);
7793 basic_ios_wchar_setstate(base
, state
);
7797 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@_K@Z */
7798 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@_K@Z */
7799 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_uint64
, 12)
7800 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_uint64(basic_ostream_wchar
*this, unsigned __int64 val
)
7802 return basic_ostream_print_uint64(this, val
, num_put_wchar_use_facet(
7803 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7806 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@_K@Z */
7807 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@_K@Z */
7808 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_uint64
, 12)
7809 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_uint64(basic_ostream_wchar
*this, unsigned __int64 val
)
7811 return basic_ostream_print_uint64(this, val
, num_put_short_use_facet(
7812 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7815 static basic_ostream_wchar
* basic_ostream_print_bool(basic_ostream_wchar
*this, MSVCP_bool val
, const num_put
*numput
)
7817 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7818 int state
= IOSTATE_goodbit
;
7820 TRACE("(%p %x)\n", this, val
);
7822 if(basic_ostream_wchar_sentry_create(this)) {
7823 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7824 ostreambuf_iterator_wchar dest
;
7826 memset(&dest
, 0, sizeof(dest
));
7827 dest
.strbuf
= strbuf
;
7828 num_put_wchar_put_bool(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7830 basic_ostream_wchar_sentry_destroy(this);
7832 basic_ios_wchar_setstate(base
, state
);
7836 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@_N@Z */
7837 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@_N@Z */
7838 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_bool
, 8)
7839 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_bool(basic_ostream_wchar
*this, MSVCP_bool val
)
7841 return basic_ostream_print_bool(this, val
, num_put_wchar_use_facet(
7842 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7845 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@_N@Z */
7846 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@_N@Z */
7847 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_bool
, 8)
7848 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_bool(basic_ostream_wchar
*this, MSVCP_bool val
)
7850 return basic_ostream_print_bool(this, val
, num_put_short_use_facet(
7851 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7854 /* ?ends@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AAV21@@Z */
7855 /* ?ends@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AEAV21@@Z */
7856 /* ?ends@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@1@AAV21@@Z */
7857 /* ?ends@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@1@AEAV21@@Z */
7858 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_ends(basic_ostream_wchar
*ostr
)
7860 TRACE("(%p)\n", ostr
);
7862 basic_ostream_wchar_put(ostr
, 0);
7866 /* ?endl@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AAV21@@Z */
7867 /* ?endl@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AEAV21@@Z */
7868 /* ?endl@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@1@AAV21@@Z */
7869 /* ?endl@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@1@AEAV21@@Z */
7870 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_endl(basic_ostream_wchar
*ostr
)
7872 TRACE("(%p)\n", ostr
);
7874 basic_ostream_wchar_put(ostr
, '\n');
7875 basic_ostream_wchar_flush(ostr
);
7879 /* ??$?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 */
7880 /* ??$?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 */
7881 /* ??$?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 */
7882 /* ??$?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 */
7883 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_print_bstr(basic_ostream_wchar
*ostr
, const basic_string_wchar
*str
)
7885 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
7886 IOSB_iostate state
= IOSTATE_goodbit
;
7888 TRACE("(%p %p)\n", ostr
, str
);
7890 if(basic_ostream_wchar_sentry_create(ostr
)) {
7891 MSVCP_size_t len
= MSVCP_basic_string_wchar_length(str
);
7892 streamsize pad
= (base
->base
.wide
>len
? base
->base
.wide
-len
: 0);
7894 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
7895 for(; pad
!=0; pad
--) {
7896 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
7897 state
= IOSTATE_badbit
;
7903 if(state
== IOSTATE_goodbit
) {
7904 if(basic_streambuf_wchar_sputn(base
->strbuf
, MSVCP_basic_string_wchar_c_str(str
), len
) != len
)
7905 state
= IOSTATE_badbit
;
7908 if(state
== IOSTATE_goodbit
) {
7909 for(; pad
!=0; pad
--) {
7910 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
7911 state
= IOSTATE_badbit
;
7917 base
->base
.wide
= 0;
7919 state
= IOSTATE_badbit
;
7921 basic_ostream_wchar_sentry_destroy(ostr
);
7923 basic_ios_wchar_setstate(base
, state
);
7927 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AAV10@_W@Z */
7928 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AEAV10@_W@Z */
7929 /* ??$?6GU?$char_traits@G@std@@@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@0@AAV10@G@Z */
7930 /* ??$?6GU?$char_traits@G@std@@@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@0@AEAV10@G@Z */
7931 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_print_ch(basic_ostream_wchar
*ostr
, wchar_t ch
)
7933 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
7934 IOSB_iostate state
= IOSTATE_goodbit
;
7936 TRACE("(%p %d)\n", ostr
, ch
);
7938 if(basic_ostream_wchar_sentry_create(ostr
)) {
7939 streamsize pad
= (base
->base
.wide
>1 ? base
->base
.wide
-1 : 0);
7941 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
7942 for(; pad
!=0; pad
--) {
7943 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
7944 state
= IOSTATE_badbit
;
7950 if(state
== IOSTATE_goodbit
) {
7951 if(basic_streambuf_wchar_sputc(base
->strbuf
, ch
) == WEOF
)
7952 state
= IOSTATE_badbit
;
7955 if(state
== IOSTATE_goodbit
) {
7956 for(; pad
!=0; pad
--) {
7957 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
7958 state
= IOSTATE_badbit
;
7964 base
->base
.wide
= 0;
7966 state
= IOSTATE_badbit
;
7968 basic_ostream_wchar_sentry_destroy(ostr
);
7970 basic_ios_wchar_setstate(base
, state
);
7974 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AAV10@PB_W@Z */
7975 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AEAV10@PEB_W@Z */
7976 /* ??$?6GU?$char_traits@G@std@@@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@0@AAV10@PBG@Z */
7977 /* ??$?6GU?$char_traits@G@std@@@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@0@AEAV10@PEBG@Z */
7978 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_print_str(basic_ostream_wchar
*ostr
, const wchar_t *str
)
7980 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
7981 IOSB_iostate state
= IOSTATE_goodbit
;
7983 TRACE("(%p %s)\n", ostr
, debugstr_w(str
));
7985 if(basic_ostream_wchar_sentry_create(ostr
)) {
7986 MSVCP_size_t len
= wcslen(str
);
7987 streamsize pad
= (base
->base
.wide
>len
? base
->base
.wide
-len
: 0);
7989 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
7990 for(; pad
!=0; pad
--) {
7991 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
7992 state
= IOSTATE_badbit
;
7998 if(state
== IOSTATE_goodbit
) {
7999 if(basic_streambuf_wchar_sputn(base
->strbuf
, str
, len
) != len
)
8000 state
= IOSTATE_badbit
;
8003 if(state
== IOSTATE_goodbit
) {
8004 for(; pad
!=0; pad
--) {
8005 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
8006 state
= IOSTATE_badbit
;
8012 base
->base
.wide
= 0;
8014 state
= IOSTATE_badbit
;
8016 basic_ostream_wchar_sentry_destroy(ostr
);
8018 basic_ios_wchar_setstate(base
, state
);
8022 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
8023 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
8024 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
8025 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
8026 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_func
, 8)
8027 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_func(basic_ostream_wchar
*this,
8028 basic_ostream_wchar
* (__cdecl
*pfunc
)(basic_ostream_wchar
*))
8030 TRACE("(%p %p)\n", this, pfunc
);
8035 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AAV21@@Z@Z */
8036 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AEAV21@@Z@Z */
8037 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@GU?$char_traits@G@std@@@1@AAV21@@Z@Z */
8038 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@GU?$char_traits@G@std@@@1@AEAV21@@Z@Z */
8039 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_func_basic_ios
, 8)
8040 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_func_basic_ios(basic_ostream_wchar
*this,
8041 basic_ios_wchar
* (__cdecl
*pfunc
)(basic_ios_wchar
*))
8043 TRACE("(%p %p)\n", this, pfunc
);
8044 pfunc(basic_ostream_wchar_get_basic_ios(this));
8048 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
8049 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
8050 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
8051 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
8052 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_func_ios_base
, 8)
8053 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_func_ios_base(
8054 basic_ostream_wchar
*this, ios_base
* (__cdecl
*pfunc
)(ios_base
*))
8056 TRACE("(%p %p)\n", this, pfunc
);
8057 pfunc(&basic_ostream_wchar_get_basic_ios(this)->base
);
8061 /* ?swap@?$basic_ostream@GU?$char_traits@G@std@@@std@@IAEXAAV12@@Z */
8062 /* ?swap@?$basic_ostream@GU?$char_traits@G@std@@@std@@IEAAXAEAV12@@Z */
8063 /* ?swap@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@IAEXAAV12@@Z */
8064 /* ?swap@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@IEAAXAEAV12@@Z */
8065 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_swap
, 8)
8066 void __thiscall
basic_ostream_wchar_swap(basic_ostream_wchar
*this, basic_ostream_wchar
*r
)
8068 TRACE("(%p %p)\n", this, r
);
8073 basic_ios_wchar_swap(basic_ostream_wchar_get_basic_ios(this),
8074 basic_ostream_wchar_get_basic_ios(r
));
8077 /* Caution: basic_istream uses virtual inheritance. */
8078 static inline basic_ios_char
* basic_istream_char_get_basic_ios(basic_istream_char
*this)
8080 return (basic_ios_char
*)((char*)this+this->vbtable
[1]);
8083 static inline basic_ios_char
* basic_istream_char_to_basic_ios(basic_istream_char
*ptr
)
8085 return (basic_ios_char
*)((char*)ptr
+basic_istream_char_vbtable
[1]);
8088 static inline basic_istream_char
* basic_istream_char_from_basic_ios(basic_ios_char
*ptr
)
8090 return (basic_istream_char
*)((char*)ptr
-basic_istream_char_vbtable
[1]);
8093 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N1@Z */
8094 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N1@Z */
8095 DEFINE_THISCALL_WRAPPER(basic_istream_char_ctor_init
, 20)
8096 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
)
8098 basic_ios_char
*base
;
8100 TRACE("(%p %p %d %d %d)\n", this, strbuf
, isstd
, noinit
, virt_init
);
8103 this->vbtable
= basic_istream_char_vbtable
;
8104 base
= basic_istream_char_get_basic_ios(this);
8105 INIT_BASIC_IOS_VTORDISP(base
);
8106 basic_ios_char_ctor(base
);
8108 base
= basic_istream_char_get_basic_ios(this);
8111 base
->base
.vtable
= &MSVCP_basic_istream_char_vtable
;
8114 basic_ios_char_init(base
, strbuf
, isstd
);
8118 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z */
8119 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z */
8120 DEFINE_THISCALL_WRAPPER(basic_istream_char_ctor
, 16)
8121 basic_istream_char
* __thiscall
basic_istream_char_ctor(basic_istream_char
*this, basic_streambuf_char
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
8123 return basic_istream_char_ctor_init(this, strbuf
, isstd
, FALSE
, virt_init
);
8126 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QAE@W4_Uninitialized@1@@Z */
8127 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
8128 DEFINE_THISCALL_WRAPPER(basic_istream_char_ctor_uninitialized
, 12)
8129 basic_istream_char
* __thiscall
basic_istream_char_ctor_uninitialized(basic_istream_char
*this, int uninitialized
, MSVCP_bool virt_init
)
8131 basic_ios_char
*base
;
8133 TRACE("(%p %d %d)\n", this, uninitialized
, virt_init
);
8136 this->vbtable
= basic_istream_char_vbtable
;
8137 base
= basic_istream_char_get_basic_ios(this);
8138 INIT_BASIC_IOS_VTORDISP(base
);
8139 basic_ios_char_ctor(base
);
8141 base
= basic_istream_char_get_basic_ios(this);
8144 base
->base
.vtable
= &MSVCP_basic_istream_char_vtable
;
8145 ios_base_Addstd(&base
->base
);
8149 /* ??1?$basic_istream@DU?$char_traits@D@std@@@std@@UAE@XZ */
8150 /* ??1?$basic_istream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
8151 DEFINE_THISCALL_WRAPPER(basic_istream_char_dtor
, 4)
8152 void __thiscall
basic_istream_char_dtor(basic_ios_char
*base
)
8154 basic_istream_char
*this = basic_istream_char_from_basic_ios(base
);
8156 /* don't destroy virtual base here */
8157 TRACE("(%p)\n", this);
8160 /* ??_D?$basic_istream@DU?$char_traits@D@std@@@std@@QAEXXZ */
8161 /* ??_D?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
8162 DEFINE_THISCALL_WRAPPER(basic_istream_char_vbase_dtor
, 4)
8163 void __thiscall
basic_istream_char_vbase_dtor(basic_istream_char
*this)
8165 basic_ios_char
*base
= basic_istream_char_to_basic_ios(this);
8167 TRACE("(%p)\n", this);
8169 basic_istream_char_dtor(base
);
8170 basic_ios_char_dtor(base
);
8173 DEFINE_THISCALL_WRAPPER(basic_istream_char_vector_dtor
, 8)
8174 basic_istream_char
* __thiscall
basic_istream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
8176 basic_istream_char
*this = basic_istream_char_from_basic_ios(base
);
8178 TRACE("(%p %x)\n", this, flags
);
8181 /* we have an array, with the number of elements stored before the first object */
8182 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
8184 for(i
=*ptr
-1; i
>=0; i
--)
8185 basic_istream_char_vbase_dtor(this+i
);
8186 MSVCRT_operator_delete(ptr
);
8188 basic_istream_char_vbase_dtor(this);
8190 MSVCRT_operator_delete(this);
8196 /* ?_Ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QAE_N_N@Z */
8197 /* ?_Ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_N_N@Z */
8198 DEFINE_THISCALL_WRAPPER(basic_istream_char__Ipfx
, 8)
8199 MSVCP_bool __thiscall
basic_istream_char__Ipfx(basic_istream_char
*this, MSVCP_bool noskip
)
8201 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8203 TRACE("(%p %d)\n", this, noskip
);
8205 if(ios_base_good(&base
->base
)) {
8206 if(basic_ios_char_tie_get(base
))
8207 basic_ostream_char_flush(basic_ios_char_tie_get(base
));
8209 if(!noskip
&& (ios_base_flags_get(&base
->base
) & FMTFLAG_skipws
)) {
8210 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8211 const ctype_char
*ctype
= ctype_char_use_facet(IOS_LOCALE(base
->strbuf
));
8214 for(ch
= basic_streambuf_char_sgetc(strbuf
); ;
8215 ch
= basic_streambuf_char_snextc(strbuf
)) {
8217 basic_ios_char_setstate(base
, IOSTATE_eofbit
);
8221 if(!ctype_char_is_ch(ctype
, _SPACE
|_BLANK
, ch
))
8227 if(!ios_base_good(&base
->base
)) {
8228 basic_ios_char_setstate(base
, IOSTATE_failbit
);
8235 /* ?ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QAE_N_N@Z */
8236 /* ?ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_N_N@Z */
8237 DEFINE_THISCALL_WRAPPER(basic_istream_char_ipfx
, 8)
8238 MSVCP_bool __thiscall
basic_istream_char_ipfx(basic_istream_char
*this, MSVCP_bool noskip
)
8240 return basic_istream_char__Ipfx(this, noskip
);
8243 /* ?isfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEXXZ */
8244 /* ?isfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
8245 DEFINE_THISCALL_WRAPPER(basic_istream_char_isfx
, 4)
8246 void __thiscall
basic_istream_char_isfx(basic_istream_char
*this)
8248 TRACE("(%p)\n", this);
8251 static BOOL
basic_istream_char_sentry_create(basic_istream_char
*istr
, MSVCP_bool noskip
)
8253 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istr
);
8255 if(basic_ios_char_rdbuf_get(base
))
8256 call_basic_streambuf_char__Lock(base
->strbuf
);
8258 return basic_istream_char_ipfx(istr
, noskip
);
8261 static void basic_istream_char_sentry_destroy(basic_istream_char
*istr
)
8263 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istr
);
8265 if(basic_ios_char_rdbuf_get(base
))
8266 call_basic_streambuf_char__Unlock(base
->strbuf
);
8269 /* ?gcount@?$basic_istream@DU?$char_traits@D@std@@@std@@QBEHXZ */
8270 /* ?gcount@?$basic_istream@DU?$char_traits@D@std@@@std@@QEBA_JXZ */
8271 /* ?gcount@?$basic_istream@DU?$char_traits@D@std@@@std@@QBA_JXZ */
8272 /* ?gcount@?$basic_istream@DU?$char_traits@D@std@@@std@@QBE_JXZ */
8273 DEFINE_THISCALL_WRAPPER(basic_istream_char_gcount
, 4)
8274 streamsize __thiscall
basic_istream_char_gcount(const basic_istream_char
*this)
8276 TRACE("(%p)\n", this);
8280 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHXZ */
8281 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAHXZ */
8282 DEFINE_THISCALL_WRAPPER(basic_istream_char_get
, 4)
8283 int __thiscall
basic_istream_char_get(basic_istream_char
*this)
8285 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8288 TRACE("(%p)\n", this);
8292 if(!basic_istream_char_sentry_create(this, TRUE
)) {
8293 basic_istream_char_sentry_destroy(this);
8297 ret
= basic_streambuf_char_sbumpc(basic_ios_char_rdbuf_get(base
));
8298 basic_istream_char_sentry_destroy(this);
8300 basic_ios_char_setstate(base
, IOSTATE_eofbit
|IOSTATE_failbit
);
8307 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@AAD@Z */
8308 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEAD@Z */
8309 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_ch
, 8)
8310 basic_istream_char
* __thiscall
basic_istream_char_get_ch(basic_istream_char
*this, char *ch
)
8314 TRACE("(%p %p)\n", this, ch
);
8316 ret
= basic_istream_char_get(this);
8322 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADHD@Z */
8323 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_JD@Z */
8324 #if STREAMSIZE_BITS == 64
8325 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str_delim
, 20)
8327 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str_delim
, 16)
8329 basic_istream_char
* __thiscall
basic_istream_char_get_str_delim(basic_istream_char
*this, char *str
, streamsize count
, char delim
)
8331 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8334 TRACE("(%p %p %s %c)\n", this, str
, wine_dbgstr_longlong(count
), delim
);
8338 if(basic_istream_char_sentry_create(this, TRUE
)) {
8339 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8341 for(ch
= basic_streambuf_char_sgetc(strbuf
); count
>1;
8342 ch
= basic_streambuf_char_snextc(strbuf
)) {
8343 if(ch
==EOF
|| ch
==delim
)
8351 basic_istream_char_sentry_destroy(this);
8353 basic_ios_char_setstate(base
, (!this->count
? IOSTATE_failbit
: IOSTATE_goodbit
) |
8354 (ch
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
8360 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADH@Z */
8361 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z */
8362 #if STREAMSIZE_BITS == 64
8363 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str
, 16)
8365 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str
, 12)
8367 basic_istream_char
* __thiscall
basic_istream_char_get_str(basic_istream_char
*this, char *str
, streamsize count
)
8369 return basic_istream_char_get_str_delim(this, str
, count
, '\n');
8372 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@AAV?$basic_streambuf@DU?$char_traits@D@std@@@2@D@Z */
8373 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@D@Z */
8374 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_streambuf_delim
, 12)
8375 basic_istream_char
* __thiscall
basic_istream_char_get_streambuf_delim(basic_istream_char
*this, basic_streambuf_char
*strbuf
, char delim
)
8377 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8380 TRACE("(%p %p %c)\n", this, strbuf
, delim
);
8384 if(basic_istream_char_sentry_create(this, TRUE
)) {
8385 basic_streambuf_char
*strbuf_read
= basic_ios_char_rdbuf_get(base
);
8387 for(ch
= basic_streambuf_char_sgetc(strbuf_read
); ;
8388 ch
= basic_streambuf_char_snextc(strbuf_read
)) {
8389 if(ch
==EOF
|| ch
==delim
)
8392 if(basic_streambuf_char_sputc(strbuf
, ch
) == EOF
)
8397 basic_istream_char_sentry_destroy(this);
8399 basic_ios_char_setstate(base
, (!this->count
? IOSTATE_failbit
: IOSTATE_goodbit
) |
8400 (ch
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
8404 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@AAV?$basic_streambuf@DU?$char_traits@D@std@@@2@@Z */
8405 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@@Z */
8406 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_streambuf
, 8)
8407 basic_istream_char
* __thiscall
basic_istream_char_get_streambuf(basic_istream_char
*this, basic_streambuf_char
*strbuf
)
8409 return basic_istream_char_get_streambuf_delim(this, strbuf
, '\n');
8412 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADHD@Z */
8413 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_JD@Z */
8414 #if STREAMSIZE_BITS == 64
8415 DEFINE_THISCALL_WRAPPER(basic_istream_char_getline_delim
, 20)
8417 DEFINE_THISCALL_WRAPPER(basic_istream_char_getline_delim
, 16)
8419 basic_istream_char
* __thiscall
basic_istream_char_getline_delim(basic_istream_char
*this, char *str
, streamsize count
, char delim
)
8421 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8422 int ch
= (unsigned char)delim
;
8424 TRACE("(%p %p %s %c)\n", this, str
, wine_dbgstr_longlong(count
), delim
);
8428 if(basic_istream_char_sentry_create(this, TRUE
) && count
>0) {
8429 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8432 ch
= basic_streambuf_char_sbumpc(strbuf
);
8434 if(ch
==EOF
|| ch
==(unsigned char)delim
)
8442 if(ch
== (unsigned char)delim
)
8444 else if(ch
!= EOF
) {
8445 ch
= basic_streambuf_char_sgetc(strbuf
);
8447 if(ch
== (unsigned char)delim
) {
8448 basic_streambuf_char__Gninc(strbuf
);
8453 basic_istream_char_sentry_destroy(this);
8455 basic_ios_char_setstate(base
, (ch
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
) |
8456 (!this->count
|| (ch
!=(unsigned char)delim
&& ch
!=EOF
) ? IOSTATE_failbit
: IOSTATE_goodbit
));
8462 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADH@Z */
8463 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z */
8464 #if STREAMSIZE_BITS == 64
8465 DEFINE_THISCALL_WRAPPER(basic_istream_char_getline
, 16)
8467 DEFINE_THISCALL_WRAPPER(basic_istream_char_getline
, 12)
8469 basic_istream_char
* __thiscall
basic_istream_char_getline(basic_istream_char
*this, char *str
, streamsize count
)
8471 return basic_istream_char_getline_delim(this, str
, count
, '\n');
8474 /* ?ignore@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@HH@Z */
8475 /* ?ignore@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JH@Z */
8476 #if STREAMSIZE_BITS == 64
8477 DEFINE_THISCALL_WRAPPER(basic_istream_char_ignore
, 16)
8479 DEFINE_THISCALL_WRAPPER(basic_istream_char_ignore
, 12)
8481 basic_istream_char
* __thiscall
basic_istream_char_ignore(basic_istream_char
*this, streamsize count
, int delim
)
8483 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8484 int ch
= (unsigned char)delim
;
8487 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(count
), delim
);
8491 if(basic_istream_char_sentry_create(this, TRUE
)) {
8492 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8493 state
= IOSTATE_goodbit
;
8496 ch
= basic_streambuf_char_sbumpc(strbuf
);
8499 state
= IOSTATE_eofbit
;
8503 if(ch
==(unsigned char)delim
)
8507 if(count
!= INT_MAX
)
8511 state
= IOSTATE_failbit
;
8512 basic_istream_char_sentry_destroy(this);
8514 basic_ios_char_setstate(base
, state
);
8518 /* ?ws@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@1@AAV21@@Z */
8519 /* ?ws@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@1@AEAV21@@Z */
8520 basic_istream_char
* __cdecl
ws_basic_istream_char(basic_istream_char
*istream
)
8522 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istream
);
8525 TRACE("(%p)\n", istream
);
8527 if(basic_istream_char_sentry_create(istream
, TRUE
)) {
8528 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8529 const ctype_char
*ctype
= ctype_char_use_facet(IOS_LOCALE(strbuf
));
8531 for(ch
= basic_streambuf_char_sgetc(strbuf
); ctype_char_is_ch(ctype
, _SPACE
, ch
);
8532 ch
= basic_streambuf_char_snextc(strbuf
)) {
8537 basic_istream_char_sentry_destroy(istream
);
8540 basic_ios_char_setstate(base
, IOSTATE_eofbit
);
8544 /* ?peek@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHXZ */
8545 /* ?peek@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAHXZ */
8546 DEFINE_THISCALL_WRAPPER(basic_istream_char_peek
, 4)
8547 int __thiscall
basic_istream_char_peek(basic_istream_char
*this)
8549 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8552 TRACE("(%p)\n", this);
8556 if(basic_istream_char_sentry_create(this, TRUE
))
8557 ret
= basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base
));
8558 basic_istream_char_sentry_destroy(this);
8561 basic_ios_char_setstate(base
, IOSTATE_eofbit
);
8566 /* ?_Read_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADIH@Z */
8567 /* ?_Read_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_K_J@Z */
8568 #if STREAMSIZE_BITS == 64
8569 DEFINE_THISCALL_WRAPPER(basic_istream_char__Read_s
, 20)
8571 DEFINE_THISCALL_WRAPPER(basic_istream_char__Read_s
, 16)
8573 basic_istream_char
* __thiscall
basic_istream_char__Read_s(basic_istream_char
*this, char *str
, MSVCP_size_t size
, streamsize count
)
8575 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8576 IOSB_iostate state
= IOSTATE_goodbit
;
8578 TRACE("(%p %p %lu %s)\n", this, str
, size
, wine_dbgstr_longlong(count
));
8580 if(basic_istream_char_sentry_create(this, TRUE
)) {
8581 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8583 this->count
= basic_streambuf_char__Sgetn_s(strbuf
, str
, size
, count
);
8584 if(this->count
!= count
)
8585 state
|= IOSTATE_failbit
| IOSTATE_eofbit
;
8589 basic_istream_char_sentry_destroy(this);
8591 basic_ios_char_setstate(base
, state
);
8595 /* ?read@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADH@Z */
8596 /* ?read@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z */
8597 #if STREAMSIZE_BITS == 64
8598 DEFINE_THISCALL_WRAPPER(basic_istream_char_read
, 16)
8600 DEFINE_THISCALL_WRAPPER(basic_istream_char_read
, 12)
8602 basic_istream_char
* __thiscall
basic_istream_char_read(basic_istream_char
*this, char *str
, streamsize count
)
8604 return basic_istream_char__Read_s(this, str
, -1, count
);
8607 /* ?_Readsome_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHPADIH@Z */
8608 /* ?_Readsome_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_K_J@Z */
8609 #if STREAMSIZE_BITS == 64
8610 DEFINE_THISCALL_WRAPPER(basic_istream_char__Readsome_s
, 20)
8612 DEFINE_THISCALL_WRAPPER(basic_istream_char__Readsome_s
, 16)
8614 streamsize __thiscall
basic_istream_char__Readsome_s(basic_istream_char
*this, char *str
, MSVCP_size_t size
, streamsize count
)
8616 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8617 IOSB_iostate state
= IOSTATE_goodbit
;
8619 TRACE("(%p %p %lu %s)\n", this, str
, size
, wine_dbgstr_longlong(count
));
8623 if(basic_istream_char_sentry_create(this, TRUE
)) {
8624 streamsize avail
= basic_streambuf_char_in_avail(basic_ios_char_rdbuf_get(base
));
8629 state
|= IOSTATE_eofbit
;
8631 basic_istream_char__Read_s(this, str
, size
, avail
);
8633 state
|= IOSTATE_failbit
;
8635 basic_istream_char_sentry_destroy(this);
8637 basic_ios_char_setstate(base
, state
);
8641 /* ?readsome@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHPADH@Z */
8642 /* ?readsome@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_J@Z */
8643 #if STREAMSIZE_BITS == 64
8644 DEFINE_THISCALL_WRAPPER(basic_istream_char_readsome
, 16)
8646 DEFINE_THISCALL_WRAPPER(basic_istream_char_readsome
, 12)
8648 streamsize __thiscall
basic_istream_char_readsome(basic_istream_char
*this, char *str
, streamsize count
)
8650 return basic_istream_char__Readsome_s(this, str
, count
, count
);
8653 /* ?putback@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@D@Z */
8654 /* ?putback@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@D@Z */
8655 DEFINE_THISCALL_WRAPPER(basic_istream_char_putback
, 8)
8656 basic_istream_char
* __thiscall
basic_istream_char_putback(basic_istream_char
*this, char ch
)
8658 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8659 IOSB_iostate state
= IOSTATE_goodbit
;
8661 TRACE("(%p %c)\n", this, ch
);
8665 if(basic_istream_char_sentry_create(this, TRUE
)) {
8666 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8668 if(!ios_base_good(&base
->base
))
8669 state
|= IOSTATE_failbit
;
8670 else if(!strbuf
|| basic_streambuf_char_sputbackc(strbuf
, ch
)==EOF
)
8671 state
|= IOSTATE_badbit
;
8673 basic_istream_char_sentry_destroy(this);
8675 basic_ios_char_setstate(base
, state
);
8679 /* ?unget@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ */
8680 /* ?unget@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@XZ */
8681 DEFINE_THISCALL_WRAPPER(basic_istream_char_unget
, 4)
8682 basic_istream_char
* __thiscall
basic_istream_char_unget(basic_istream_char
*this)
8684 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8685 IOSB_iostate state
= IOSTATE_goodbit
;
8687 TRACE("(%p)\n", this);
8691 if(basic_istream_char_sentry_create(this, TRUE
)) {
8692 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8694 if(!ios_base_good(&base
->base
))
8695 state
|= IOSTATE_failbit
;
8696 else if(!strbuf
|| basic_streambuf_char_sungetc(strbuf
)==EOF
)
8697 state
|= IOSTATE_badbit
;
8699 basic_istream_char_sentry_destroy(this);
8701 basic_ios_char_setstate(base
, state
);
8705 /* ?sync@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHXZ */
8706 /* ?sync@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAHXZ */
8707 DEFINE_THISCALL_WRAPPER(basic_istream_char_sync
, 4)
8708 int __thiscall
basic_istream_char_sync(basic_istream_char
*this)
8710 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8711 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8713 TRACE("(%p)\n", this);
8718 if(basic_istream_char_sentry_create(this, TRUE
)) {
8719 if(basic_streambuf_char_pubsync(strbuf
) != -1) {
8720 basic_istream_char_sentry_destroy(this);
8724 basic_istream_char_sentry_destroy(this);
8726 basic_ios_char_setstate(base
, IOSTATE_badbit
);
8730 /* ?tellg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@XZ */
8731 /* ?tellg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
8732 DEFINE_THISCALL_WRAPPER(basic_istream_char_tellg
, 8)
8733 fpos_int
* __thiscall
basic_istream_char_tellg(basic_istream_char
*this, fpos_int
*ret
)
8735 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8737 TRACE("(%p %p)\n", this, ret
);
8739 if(ios_base_fail(&base
->base
)) {
8746 basic_streambuf_char_pubseekoff(basic_ios_char_rdbuf_get(base
),
8747 ret
, 0, SEEKDIR_cur
, OPENMODE_in
);
8749 if(ret
->off
==-1 && ret
->pos
==0 && ret
->state
==0)
8750 basic_ios_char_setstate(base
, IOSTATE_failbit
);
8755 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@JW4seekdir@ios_base@2@@Z */
8756 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JW4seekdir@ios_base@2@@Z */
8757 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@JH@Z */
8758 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JH@Z */
8759 #if STREAMOFF_BITS == 64
8760 DEFINE_THISCALL_WRAPPER(basic_istream_char_seekg
, 16)
8762 DEFINE_THISCALL_WRAPPER(basic_istream_char_seekg
, 12)
8764 basic_istream_char
* __thiscall
basic_istream_char_seekg(basic_istream_char
*this, streamoff off
, int dir
)
8766 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8768 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(off
), dir
);
8770 if(!ios_base_fail(&base
->base
)) {
8771 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8774 basic_streambuf_char_pubseekoff(strbuf
, &ret
, off
, dir
, OPENMODE_in
);
8776 if(ret
.off
==-1 && ret
.pos
==0 && ret
.state
==0)
8777 basic_ios_char_setstate(base
, IOSTATE_failbit
);
8779 basic_ios_char_clear(base
, IOSTATE_goodbit
);
8782 basic_ios_char_clear(base
, IOSTATE_goodbit
);
8787 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
8788 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
8789 DEFINE_THISCALL_WRAPPER(basic_istream_char_seekg_fpos
, 28)
8790 basic_istream_char
* __thiscall
basic_istream_char_seekg_fpos(basic_istream_char
*this, fpos_int pos
)
8792 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8794 TRACE("(%p %s)\n", this, debugstr_fpos_int(&pos
));
8796 if(!ios_base_fail(&base
->base
)) {
8797 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8800 basic_streambuf_char_pubseekpos(strbuf
, &ret
, pos
, OPENMODE_in
);
8802 if(ret
.off
==-1 && ret
.pos
==0 && ret
.state
==0)
8803 basic_ios_char_setstate(base
, IOSTATE_failbit
);
8805 basic_ios_char_clear(base
, IOSTATE_goodbit
);
8808 basic_ios_char_clear(base
, IOSTATE_goodbit
);
8813 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAF@Z */
8814 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAF@Z */
8815 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_short
, 8)
8816 basic_istream_char
* __thiscall
basic_istream_char_read_short(basic_istream_char
*this, short *v
)
8818 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8819 int state
= IOSTATE_goodbit
;
8821 TRACE("(%p %p)\n", this, v
);
8823 if(basic_istream_char_sentry_create(this, FALSE
)) {
8824 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8825 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8826 istreambuf_iterator_char first
={0}, last
={0};
8829 first
.strbuf
= strbuf
;
8830 num_get_char_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, &tmp
);
8832 if(!(state
&IOSTATE_failbit
) && tmp
==(LONG
)((short)tmp
))
8835 state
|= IOSTATE_failbit
;
8837 basic_istream_char_sentry_destroy(this);
8839 basic_ios_char_setstate(base
, state
);
8843 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAG@Z */
8844 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAG@Z */
8845 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ushort
, 8)
8846 basic_istream_char
* __thiscall
basic_istream_char_read_ushort(basic_istream_char
*this, unsigned short *v
)
8848 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8849 int state
= IOSTATE_goodbit
;
8851 TRACE("(%p %p)\n", this, v
);
8853 if(basic_istream_char_sentry_create(this, FALSE
)) {
8854 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8855 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8856 istreambuf_iterator_char first
={0}, last
={0};
8858 first
.strbuf
= strbuf
;
8859 num_get_char_get_ushort(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8861 basic_istream_char_sentry_destroy(this);
8863 basic_ios_char_setstate(base
, state
);
8867 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAH@Z */
8868 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAH@Z */
8869 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_int
, 8)
8870 basic_istream_char
* __thiscall
basic_istream_char_read_int(basic_istream_char
*this, int *v
)
8872 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8873 int state
= IOSTATE_goodbit
;
8875 TRACE("(%p %p)\n", this, v
);
8877 if(basic_istream_char_sentry_create(this, FALSE
)) {
8878 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8879 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8880 istreambuf_iterator_char first
={0}, last
={0};
8882 first
.strbuf
= strbuf
;
8883 num_get_char_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8885 basic_istream_char_sentry_destroy(this);
8887 basic_ios_char_setstate(base
, state
);
8891 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAI@Z */
8892 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAI@Z */
8893 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_uint
, 8)
8894 basic_istream_char
* __thiscall
basic_istream_char_read_uint(basic_istream_char
*this, unsigned int *v
)
8896 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8897 int state
= IOSTATE_goodbit
;
8899 TRACE("(%p %p)\n", this, v
);
8901 if(basic_istream_char_sentry_create(this, FALSE
)) {
8902 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8903 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8904 istreambuf_iterator_char first
={0}, last
={0};
8906 first
.strbuf
= strbuf
;
8907 num_get_char_get_uint(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8909 basic_istream_char_sentry_destroy(this);
8911 basic_ios_char_setstate(base
, state
);
8915 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAJ@Z */
8916 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAJ@Z */
8917 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_long
, 8)
8918 basic_istream_char
* __thiscall
basic_istream_char_read_long(basic_istream_char
*this, LONG
*v
)
8920 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8921 int state
= IOSTATE_goodbit
;
8923 TRACE("(%p %p)\n", this, v
);
8925 if(basic_istream_char_sentry_create(this, FALSE
)) {
8926 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8927 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8928 istreambuf_iterator_char first
={0}, last
={0};
8930 first
.strbuf
= strbuf
;
8931 num_get_char_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8933 basic_istream_char_sentry_destroy(this);
8935 basic_ios_char_setstate(base
, state
);
8939 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAK@Z */
8940 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAK@Z */
8941 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ulong
, 8)
8942 basic_istream_char
* __thiscall
basic_istream_char_read_ulong(basic_istream_char
*this, ULONG
*v
)
8944 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8945 int state
= IOSTATE_goodbit
;
8947 TRACE("(%p %p)\n", this, v
);
8949 if(basic_istream_char_sentry_create(this, FALSE
)) {
8950 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8951 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8952 istreambuf_iterator_char first
={0}, last
={0};
8954 first
.strbuf
= strbuf
;
8955 num_get_char_get_ulong(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8957 basic_istream_char_sentry_destroy(this);
8959 basic_ios_char_setstate(base
, state
);
8963 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAM@Z */
8964 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAM@Z */
8965 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_float
, 8)
8966 basic_istream_char
* __thiscall
basic_istream_char_read_float(basic_istream_char
*this, float *v
)
8968 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8969 int state
= IOSTATE_goodbit
;
8971 TRACE("(%p %p)\n", this, v
);
8973 if(basic_istream_char_sentry_create(this, FALSE
)) {
8974 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8975 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8976 istreambuf_iterator_char first
={0}, last
={0};
8978 first
.strbuf
= strbuf
;
8979 num_get_char_get_float(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8981 basic_istream_char_sentry_destroy(this);
8983 basic_ios_char_setstate(base
, state
);
8987 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAN@Z */
8988 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAN@Z */
8989 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_double
, 8)
8990 basic_istream_char
* __thiscall
basic_istream_char_read_double(basic_istream_char
*this, double *v
)
8992 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8993 int state
= IOSTATE_goodbit
;
8995 TRACE("(%p %p)\n", this, v
);
8997 if(basic_istream_char_sentry_create(this, FALSE
)) {
8998 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8999 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
9000 istreambuf_iterator_char first
={0}, last
={0};
9002 first
.strbuf
= strbuf
;
9003 num_get_char_get_double(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
9005 basic_istream_char_sentry_destroy(this);
9007 basic_ios_char_setstate(base
, state
);
9011 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAO@Z */
9012 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAO@Z */
9013 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ldouble
, 8)
9014 basic_istream_char
* __thiscall
basic_istream_char_read_ldouble(basic_istream_char
*this, double *v
)
9016 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
9017 int state
= IOSTATE_goodbit
;
9019 TRACE("(%p %p)\n", this, v
);
9021 if(basic_istream_char_sentry_create(this, FALSE
)) {
9022 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
9023 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
9024 istreambuf_iterator_char first
={0}, last
={0};
9026 first
.strbuf
= strbuf
;
9027 num_get_char_get_ldouble(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
9029 basic_istream_char_sentry_destroy(this);
9031 basic_ios_char_setstate(base
, state
);
9035 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAPAX@Z */
9036 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAPEAX@Z */
9037 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ptr
, 8)
9038 basic_istream_char
* __thiscall
basic_istream_char_read_ptr(basic_istream_char
*this, void **v
)
9040 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
9041 int state
= IOSTATE_goodbit
;
9043 TRACE("(%p %p)\n", this, v
);
9045 if(basic_istream_char_sentry_create(this, FALSE
)) {
9046 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
9047 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
9048 istreambuf_iterator_char first
={0}, last
={0};
9050 first
.strbuf
= strbuf
;
9051 num_get_char_get_void(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
9053 basic_istream_char_sentry_destroy(this);
9055 basic_ios_char_setstate(base
, state
);
9059 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AA_J@Z */
9060 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEA_J@Z */
9061 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_int64
, 8)
9062 basic_istream_char
* __thiscall
basic_istream_char_read_int64(basic_istream_char
*this, __int64
*v
)
9064 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
9065 int state
= IOSTATE_goodbit
;
9067 TRACE("(%p %p)\n", this, v
);
9069 if(basic_istream_char_sentry_create(this, FALSE
)) {
9070 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
9071 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
9072 istreambuf_iterator_char first
={0}, last
={0};
9074 first
.strbuf
= strbuf
;
9075 num_get_char_get_int64(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
9077 basic_istream_char_sentry_destroy(this);
9079 basic_ios_char_setstate(base
, state
);
9083 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AA_K@Z */
9084 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEA_K@Z */
9085 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_uint64
, 8)
9086 basic_istream_char
* __thiscall
basic_istream_char_read_uint64(basic_istream_char
*this, unsigned __int64
*v
)
9088 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
9089 int state
= IOSTATE_goodbit
;
9091 TRACE("(%p %p)\n", this, v
);
9093 if(basic_istream_char_sentry_create(this, FALSE
)) {
9094 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
9095 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
9096 istreambuf_iterator_char first
={0}, last
={0};
9098 first
.strbuf
= strbuf
;
9099 num_get_char_get_uint64(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
9101 basic_istream_char_sentry_destroy(this);
9103 basic_ios_char_setstate(base
, state
);
9107 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AA_N@Z */
9108 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEA_N@Z */
9109 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_bool
, 8)
9110 basic_istream_char
* __thiscall
basic_istream_char_read_bool(basic_istream_char
*this, MSVCP_bool
*v
)
9112 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
9113 int state
= IOSTATE_goodbit
;
9115 TRACE("(%p %p)\n", this, v
);
9117 if(basic_istream_char_sentry_create(this, FALSE
)) {
9118 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
9119 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
9120 istreambuf_iterator_char first
={0}, last
={0};
9122 first
.strbuf
= strbuf
;
9123 num_get_char_get_bool(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
9125 basic_istream_char_sentry_destroy(this);
9127 basic_ios_char_setstate(base
, state
);
9131 /* ??$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 */
9132 /* ??$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 */
9133 basic_istream_char
* __cdecl
basic_istream_char_getline_bstr_delim(
9134 basic_istream_char
*istream
, basic_string_char
*str
, char delim
)
9136 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istream
);
9137 IOSB_iostate state
= IOSTATE_goodbit
;
9138 int c
= (unsigned char)delim
;
9140 TRACE("(%p %p %c)\n", istream
, str
, delim
);
9142 if(basic_istream_char_sentry_create(istream
, TRUE
)) {
9143 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
9144 MSVCP_basic_string_char_clear(str
);
9146 c
= basic_streambuf_char_sgetc(strbuf
);
9147 for(; c
!=(unsigned char)delim
&& c
!=EOF
; c
= basic_streambuf_char_snextc(strbuf
))
9148 MSVCP_basic_string_char_append_ch(str
, c
);
9149 if(c
==EOF
) state
|= IOSTATE_eofbit
;
9150 else if(c
==(unsigned char)delim
) basic_streambuf_char_sbumpc(strbuf
);
9152 if(!MSVCP_basic_string_char_length(str
) && c
!=(unsigned char)delim
) state
|= IOSTATE_failbit
;
9154 basic_istream_char_sentry_destroy(istream
);
9156 basic_ios_char_setstate(basic_istream_char_get_basic_ios(istream
), state
);
9160 /* ??$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 */
9161 /* ??$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 */
9162 basic_istream_char
* __cdecl
basic_istream_char_getline_bstr(
9163 basic_istream_char
*istream
, basic_string_char
*str
)
9165 return basic_istream_char_getline_bstr_delim(istream
, str
, '\n');
9168 /* ??$?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 */
9169 /* ??$?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 */
9170 basic_istream_char
* __cdecl
basic_istream_char_read_bstr(
9171 basic_istream_char
*istream
, basic_string_char
*str
)
9173 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istream
);
9174 IOSB_iostate state
= IOSTATE_failbit
;
9177 TRACE("(%p %p)\n", istream
, str
);
9179 if(basic_istream_char_sentry_create(istream
, FALSE
)) {
9180 const ctype_char
*ctype
= ctype_char_use_facet(IOS_LOCALE(base
->strbuf
));
9181 MSVCP_size_t count
= ios_base_width_get(&base
->base
);
9186 MSVCP_basic_string_char_clear(str
);
9188 for(c
= basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base
));
9189 c
!=EOF
&& !ctype_char_is_ch(ctype
, _SPACE
|_BLANK
, c
) && count
>0;
9190 c
= basic_streambuf_char_snextc(basic_ios_char_rdbuf_get(base
)), count
--) {
9191 state
= IOSTATE_goodbit
;
9192 MSVCP_basic_string_char_append_ch(str
, c
);
9195 basic_istream_char_sentry_destroy(istream
);
9197 ios_base_width_set(&base
->base
, 0);
9198 basic_ios_char_setstate(base
, state
| (c
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
9202 /* ??$?5DU?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@PAD@Z */
9203 /* ??$?5DU?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@PEAD@Z */
9204 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@PAC@Z */
9205 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@PEAC@Z */
9206 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@PAE@Z */
9207 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@PEAE@Z */
9208 basic_istream_char
* __cdecl
basic_istream_char_read_str(basic_istream_char
*istream
, char *str
)
9210 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istream
);
9211 IOSB_iostate state
= IOSTATE_failbit
;
9214 TRACE("(%p %p)\n", istream
, str
);
9216 if(basic_istream_char_sentry_create(istream
, FALSE
)) {
9217 const ctype_char
*ctype
= ctype_char_use_facet(IOS_LOCALE(base
->strbuf
));
9218 MSVCP_size_t count
= ios_base_width_get(&base
->base
)-1;
9220 for(c
= basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base
));
9221 c
!=EOF
&& !ctype_char_is_ch(ctype
, _SPACE
|_BLANK
, c
) && count
>0;
9222 c
= basic_streambuf_char_snextc(basic_ios_char_rdbuf_get(base
)), count
--) {
9223 state
= IOSTATE_goodbit
;
9227 basic_istream_char_sentry_destroy(istream
);
9230 ios_base_width_set(&base
->base
, 0);
9231 basic_ios_char_setstate(base
, state
| (c
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
9235 /* ??$?5DU?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAD@Z */
9236 /* ??$?5DU?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAD@Z */
9237 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAC@Z */
9238 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAC@Z */
9239 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAE@Z */
9240 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAE@Z */
9241 basic_istream_char
* __cdecl
basic_istream_char_read_ch(basic_istream_char
*istream
, char *ch
)
9243 IOSB_iostate state
= IOSTATE_failbit
;
9246 TRACE("(%p %p)\n", istream
, ch
);
9248 if(basic_istream_char_sentry_create(istream
, FALSE
)) {
9249 c
= basic_streambuf_char_sbumpc(basic_ios_char_rdbuf_get(
9250 basic_istream_char_get_basic_ios(istream
)));
9252 state
= IOSTATE_goodbit
;
9256 basic_istream_char_sentry_destroy(istream
);
9258 basic_ios_char_setstate(basic_istream_char_get_basic_ios(istream
),
9259 state
| (c
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
9263 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
9264 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
9265 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_streambuf
, 8)
9266 basic_istream_char
* __thiscall
basic_istream_char_read_streambuf(
9267 basic_istream_char
*this, basic_streambuf_char
*streambuf
)
9269 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
9270 IOSB_iostate state
= IOSTATE_failbit
;
9273 TRACE("(%p %p)\n", this, streambuf
);
9275 if(basic_istream_char_sentry_create(this, FALSE
)) {
9276 for(c
= basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base
)); c
!=EOF
;
9277 c
= basic_streambuf_char_snextc(basic_ios_char_rdbuf_get(base
))) {
9278 state
= IOSTATE_goodbit
;
9279 if(basic_streambuf_char_sputc(streambuf
, c
) == EOF
)
9283 basic_istream_char_sentry_destroy(this);
9285 basic_ios_char_setstate(base
, state
| (c
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
9289 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
9290 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
9291 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_func
, 8)
9292 basic_istream_char
* __thiscall
basic_istream_char_read_func(basic_istream_char
*this,
9293 basic_istream_char
* (__cdecl
*pfunc
)(basic_istream_char
*))
9295 TRACE("(%p %p)\n", this, pfunc
);
9300 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@DU?$char_traits@D@std@@@1@AAV21@@Z@Z */
9301 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@DU?$char_traits@D@std@@@1@AEAV21@@Z@Z */
9302 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_func_basic_ios
, 8)
9303 basic_istream_char
* __thiscall
basic_istream_char_read_func_basic_ios(basic_istream_char
*this,
9304 basic_ios_char
* (__cdecl
*pfunc
)(basic_ios_char
*))
9306 TRACE("(%p %p)\n", this, pfunc
);
9307 pfunc(basic_istream_char_get_basic_ios(this));
9311 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
9312 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
9313 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_func_ios_base
, 8)
9314 basic_istream_char
* __thiscall
basic_istream_char_read_func_ios_base(basic_istream_char
*this,
9315 ios_base
* (__cdecl
*pfunc
)(ios_base
*))
9317 TRACE("(%p %p)\n", this, pfunc
);
9318 pfunc(&basic_istream_char_get_basic_ios(this)->base
);
9322 /* ??$?5MDU?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAV?$complex@M@0@@Z */
9323 /* ??$?5MDU?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAV?$complex@M@0@@Z */
9324 basic_istream_char
* __cdecl
basic_istream_char_read_complex_float(basic_istream_char
*this, complex_float
*v
)
9327 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
9329 TRACE("(%p %p)\n", this, v
);
9331 ws_basic_istream_char(this);
9332 if(basic_istream_char_peek(this) == '(') {
9334 basic_istream_char_get(this);
9335 basic_istream_char_read_float(this, &r
);
9337 if(ios_base_fail(&base
->base
))
9340 ws_basic_istream_char(this);
9341 c
= basic_istream_char_peek(this);
9344 basic_istream_char_get(this);
9345 basic_istream_char_read_float(this, &i
);
9347 if(ios_base_fail(&base
->base
))
9350 ws_basic_istream_char(this);
9351 c
= basic_istream_char_peek(this);
9352 if(c
== ')') { /* supported format: (real, imag) */
9353 basic_istream_char_get(this);
9357 basic_ios_char_setstate(base
, IOSTATE_failbit
);
9360 }else if(c
== ')') { /* supported format: (real) */
9361 basic_istream_char_get(this);
9365 basic_ios_char_setstate(base
, IOSTATE_failbit
);
9368 }else { /* supported format: real */
9369 basic_istream_char_read_float(this, &r
);
9371 if(ios_base_fail(&base
->base
))
9381 /* ??$?5NDU?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAV?$complex@N@0@@Z */
9382 /* ??$?5DU?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAV?$complex@N@0@@Z */
9383 basic_istream_char
* __cdecl
basic_istream_char_read_complex_double(basic_istream_char
*this, complex_double
*v
)
9386 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
9388 TRACE("(%p %p)\n", this, v
);
9390 ws_basic_istream_char(this);
9391 if(basic_istream_char_peek(this) == '(') {
9393 basic_istream_char_get(this);
9394 basic_istream_char_read_double(this, &r
);
9396 if(ios_base_fail(&base
->base
))
9399 ws_basic_istream_char(this);
9400 c
= basic_istream_char_peek(this);
9403 basic_istream_char_get(this);
9404 basic_istream_char_read_double(this, &i
);
9406 if(ios_base_fail(&base
->base
))
9409 ws_basic_istream_char(this);
9410 c
= basic_istream_char_peek(this);
9411 if(c
== ')') { /* supported format: (real, imag) */
9412 basic_istream_char_get(this);
9416 basic_ios_char_setstate(base
, IOSTATE_failbit
);
9419 }else if(c
== ')') { /* supported format: (real) */
9420 basic_istream_char_get(this);
9424 basic_ios_char_setstate(base
, IOSTATE_failbit
);
9427 }else { /* supported format: real */
9428 basic_istream_char_read_double(this, &r
);
9430 if(ios_base_fail(&base
->base
))
9440 /* ??$?5ODU?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAV?$complex@O@0@@Z */
9441 /* ??$?5ODU?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAV?$complex@O@0@@Z */
9442 basic_istream_char
* __cdecl
basic_istream_char_read_complex_ldouble(basic_istream_char
*this, complex_double
*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_ldouble(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_ldouble(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_ldouble(this, &r
);
9489 if(ios_base_fail(&base
->base
))
9499 /* ?swap@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEXAAV12@@Z */
9500 /* ?swap@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAXAEAV12@@Z */
9501 DEFINE_THISCALL_WRAPPER(basic_istream_char_swap
, 8)
9502 void __thiscall
basic_istream_char_swap(basic_istream_char
*this, basic_istream_char
*r
)
9504 TRACE("(%p %p)\n", this, r
);
9509 basic_ios_char_swap(basic_istream_char_get_basic_ios(this),
9510 basic_istream_char_get_basic_ios(r
));
9511 this->count
^= r
->count
;
9512 r
->count
^= this->count
;
9513 this->count
^= r
->count
;
9516 /* Caution: basic_istream uses virtual inheritance. */
9517 static inline basic_ios_wchar
* basic_istream_wchar_get_basic_ios(basic_istream_wchar
*this)
9519 return (basic_ios_wchar
*)((char*)this+this->vbtable
[1]);
9522 static inline basic_ios_wchar
* basic_istream_wchar_to_basic_ios(basic_istream_wchar
*ptr
)
9524 return (basic_ios_wchar
*)((char*)ptr
+basic_istream_wchar_vbtable
[1]);
9527 static inline basic_istream_wchar
* basic_istream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
9529 return (basic_istream_wchar
*)((char*)ptr
-basic_istream_wchar_vbtable
[1]);
9532 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N1@Z */
9533 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N1@Z */
9534 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ctor_init
, 20)
9535 basic_istream_wchar
* __thiscall
basic_istream_wchar_ctor_init(basic_istream_wchar
*this,
9536 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool noinit
, MSVCP_bool virt_init
)
9538 basic_ios_wchar
*base
;
9540 TRACE("(%p %p %d %d %d)\n", this, strbuf
, isstd
, noinit
, virt_init
);
9543 this->vbtable
= basic_istream_wchar_vbtable
;
9544 base
= basic_istream_wchar_get_basic_ios(this);
9545 INIT_BASIC_IOS_VTORDISP(base
);
9546 basic_ios_wchar_ctor(base
);
9548 base
= basic_istream_wchar_get_basic_ios(this);
9551 base
->base
.vtable
= &MSVCP_basic_istream_wchar_vtable
;
9554 basic_ios_wchar_init(base
, strbuf
, isstd
);
9558 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N1@Z */
9559 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N1@Z */
9560 DEFINE_THISCALL_WRAPPER(basic_istream_short_ctor_init
, 20)
9561 basic_istream_wchar
* __thiscall
basic_istream_short_ctor_init(basic_istream_wchar
*this,
9562 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool noinit
, MSVCP_bool virt_init
)
9564 basic_istream_wchar_ctor_init(this, strbuf
, isstd
, noinit
, virt_init
);
9565 basic_istream_wchar_get_basic_ios(this)->base
.vtable
= &MSVCP_basic_istream_short_vtable
;
9569 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N@Z */
9570 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N@Z */
9571 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ctor
, 16)
9572 basic_istream_wchar
* __thiscall
basic_istream_wchar_ctor(basic_istream_wchar
*this,
9573 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
9575 return basic_istream_wchar_ctor_init(this, strbuf
, isstd
, FALSE
, virt_init
);
9578 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N@Z */
9579 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N@Z */
9580 DEFINE_THISCALL_WRAPPER(basic_istream_short_ctor
, 16)
9581 basic_istream_wchar
* __thiscall
basic_istream_short_ctor(basic_istream_wchar
*this,
9582 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
9584 return basic_istream_short_ctor_init(this, strbuf
, isstd
, FALSE
, virt_init
);
9587 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE@W4_Uninitialized@1@@Z */
9588 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
9589 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ctor_uninitialized
, 12)
9590 basic_istream_wchar
* __thiscall
basic_istream_wchar_ctor_uninitialized(
9591 basic_istream_wchar
*this, int uninitialized
, MSVCP_bool virt_init
)
9593 basic_ios_wchar
*base
;
9595 TRACE("(%p %d %d)\n", this, uninitialized
, virt_init
);
9598 this->vbtable
= basic_istream_wchar_vbtable
;
9599 base
= basic_istream_wchar_get_basic_ios(this);
9600 INIT_BASIC_IOS_VTORDISP(base
);
9601 basic_ios_wchar_ctor(base
);
9603 base
= basic_istream_wchar_get_basic_ios(this);
9606 base
->base
.vtable
= &MSVCP_basic_istream_wchar_vtable
;
9607 ios_base_Addstd(&base
->base
);
9611 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QAE@W4_Uninitialized@1@@Z */
9612 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
9613 DEFINE_THISCALL_WRAPPER(basic_istream_short_ctor_uninitialized
, 12)
9614 basic_istream_wchar
* __thiscall
basic_istream_short_ctor_uninitialized(
9615 basic_istream_wchar
*this, int uninitialized
, MSVCP_bool virt_init
)
9617 basic_istream_wchar_ctor_uninitialized(this, uninitialized
, virt_init
);
9618 basic_istream_wchar_get_basic_ios(this)->base
.vtable
= &MSVCP_basic_istream_short_vtable
;
9622 /* ??1?$basic_istream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
9623 /* ??1?$basic_istream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
9624 /* ??1?$basic_istream@GU?$char_traits@G@std@@@std@@UAE@XZ */
9625 /* ??1?$basic_istream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
9626 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_dtor
, 4)
9627 void __thiscall
basic_istream_wchar_dtor(basic_ios_wchar
*base
)
9629 basic_istream_wchar
*this = basic_istream_wchar_from_basic_ios(base
);
9631 /* don't destroy virtual base here */
9632 TRACE("(%p)\n", this);
9635 /* ??_D?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
9636 /* ??_D?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
9637 /* ??_D?$basic_istream@GU?$char_traits@G@std@@@std@@QAEXXZ */
9638 /* ??_D?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
9639 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_vbase_dtor
, 4)
9640 void __thiscall
basic_istream_wchar_vbase_dtor(basic_istream_wchar
*this)
9642 basic_ios_wchar
*base
= basic_istream_wchar_to_basic_ios(this);
9644 TRACE("(%p)\n", this);
9646 basic_istream_wchar_dtor(base
);
9647 basic_ios_wchar_dtor(base
);
9650 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_vector_dtor
, 8)
9651 basic_istream_wchar
* __thiscall
basic_istream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
9653 basic_istream_wchar
*this = basic_istream_wchar_from_basic_ios(base
);
9655 TRACE("(%p %x)\n", this, flags
);
9658 /* we have an array, with the number of elements stored before the first object */
9659 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
9661 for(i
=*ptr
-1; i
>=0; i
--)
9662 basic_istream_wchar_vbase_dtor(this+i
);
9663 MSVCRT_operator_delete(ptr
);
9665 basic_istream_wchar_vbase_dtor(this);
9667 MSVCRT_operator_delete(this);
9673 /* ?_Ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE_N_N@Z */
9674 /* ?_Ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_N_N@Z */
9675 /* ?_Ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QAE_N_N@Z */
9676 /* ?_Ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_N_N@Z */
9677 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Ipfx
, 8)
9678 MSVCP_bool __thiscall
basic_istream_wchar__Ipfx(basic_istream_wchar
*this, MSVCP_bool noskip
)
9680 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9682 TRACE("(%p %d)\n", this, noskip
);
9684 if(ios_base_good(&base
->base
)) {
9685 if(basic_ios_wchar_tie_get(base
))
9686 basic_ostream_wchar_flush(basic_ios_wchar_tie_get(base
));
9688 if(!noskip
&& (ios_base_flags_get(&base
->base
) & FMTFLAG_skipws
)) {
9689 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9690 const ctype_wchar
*ctype
= ctype_wchar_use_facet(IOS_LOCALE(base
->strbuf
));
9693 for(ch
= basic_streambuf_wchar_sgetc(strbuf
); ;
9694 ch
= basic_streambuf_wchar_snextc(strbuf
)) {
9696 basic_ios_wchar_setstate(base
, IOSTATE_eofbit
);
9700 if(!ctype_wchar_is_ch(ctype
, _SPACE
|_BLANK
, ch
))
9706 if(!ios_base_good(&base
->base
)) {
9707 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
9713 /* ?ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE_N_N@Z */
9714 /* ?ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_N_N@Z */
9715 /* ?ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QAE_N_N@Z */
9716 /* ?ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_N_N@Z */
9717 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ipfx
, 8)
9718 MSVCP_bool __thiscall
basic_istream_wchar_ipfx(basic_istream_wchar
*this, MSVCP_bool noskip
)
9720 return basic_istream_wchar__Ipfx(this, noskip
);
9723 /* ?isfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
9724 /* ?isfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
9725 /* ?isfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEXXZ */
9726 /* ?isfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
9727 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_isfx
, 4)
9728 void __thiscall
basic_istream_wchar_isfx(basic_istream_wchar
*this)
9730 TRACE("(%p)\n", this);
9733 static BOOL
basic_istream_wchar_sentry_create(basic_istream_wchar
*istr
, MSVCP_bool noskip
)
9735 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istr
);
9737 if(basic_ios_wchar_rdbuf_get(base
))
9738 basic_streambuf_wchar__Lock(base
->strbuf
);
9740 return basic_istream_wchar_ipfx(istr
, noskip
);
9743 static void basic_istream_wchar_sentry_destroy(basic_istream_wchar
*istr
)
9745 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istr
);
9747 if(basic_ios_wchar_rdbuf_get(base
))
9748 basic_streambuf_wchar__Unlock(base
->strbuf
);
9751 /* ?gcount@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QBEHXZ */
9752 /* ?gcount@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEBA_JXZ */
9753 /* ?gcount@?$basic_istream@GU?$char_traits@G@std@@@std@@QBEHXZ */
9754 /* ?gcount@?$basic_istream@GU?$char_traits@G@std@@@std@@QEBA_JXZ */
9755 /* ?gcount@?$basic_istream@GU?$char_traits@G@std@@@std@@QBA_JXZ */
9756 /* ?gcount@?$basic_istream@GU?$char_traits@G@std@@@std@@QBE_JXZ */
9757 /* ?gcount@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QBA_JXZ */
9758 /* ?gcount@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QBE_JXZ */
9759 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_gcount
, 4)
9760 streamsize __thiscall
basic_istream_wchar_gcount(const basic_istream_wchar
*this)
9762 TRACE("(%p)\n", this);
9766 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
9767 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
9768 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEGXZ */
9769 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAGXZ */
9770 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get
, 4)
9771 unsigned short __thiscall
basic_istream_wchar_get(basic_istream_wchar
*this)
9773 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9776 TRACE("(%p)\n", this);
9780 if(!basic_istream_wchar_sentry_create(this, TRUE
)) {
9781 basic_istream_wchar_sentry_destroy(this);
9785 ret
= basic_streambuf_wchar_sbumpc(basic_ios_wchar_rdbuf_get(base
));
9786 basic_istream_wchar_sentry_destroy(this);
9788 basic_ios_wchar_setstate(base
, IOSTATE_eofbit
|IOSTATE_failbit
);
9795 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@AA_W@Z */
9796 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEA_W@Z */
9797 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@AAG@Z */
9798 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEAG@Z */
9799 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_ch
, 8)
9800 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_ch(basic_istream_wchar
*this, wchar_t *ch
)
9804 TRACE("(%p %p)\n", this, ch
);
9806 ret
= basic_istream_wchar_get(this);
9812 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH_W@Z */
9813 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J_W@Z */
9814 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGHG@Z */
9815 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_JG@Z */
9816 #if STREAMSIZE_BITS == 64
9817 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str_delim
, 20)
9819 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str_delim
, 16)
9821 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_str_delim(basic_istream_wchar
*this, wchar_t *str
, streamsize count
, wchar_t delim
)
9823 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9824 unsigned short ch
= delim
;
9826 TRACE("(%p %p %s %c)\n", this, str
, wine_dbgstr_longlong(count
), delim
);
9830 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9831 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9833 for(ch
= basic_streambuf_wchar_sgetc(strbuf
); count
>1;
9834 ch
= basic_streambuf_wchar_snextc(strbuf
)) {
9835 if(ch
==WEOF
|| ch
==delim
)
9843 basic_istream_wchar_sentry_destroy(this);
9845 basic_ios_wchar_setstate(base
, (!this->count
? IOSTATE_failbit
: IOSTATE_goodbit
) |
9846 (ch
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
9852 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH@Z */
9853 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J@Z */
9854 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGH@Z */
9855 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_J@Z */
9856 #if STREAMSIZE_BITS == 64
9857 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str
, 16)
9859 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str
, 12)
9861 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_str(basic_istream_wchar
*this, wchar_t *str
, streamsize count
)
9863 return basic_istream_wchar_get_str_delim(this, str
, count
, '\n');
9866 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@AAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_W@Z */
9867 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_W@Z */
9868 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@AAV?$basic_streambuf@GU?$char_traits@G@std@@@2@G@Z */
9869 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@G@Z */
9870 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_streambuf_delim
, 12)
9871 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_streambuf_delim(basic_istream_wchar
*this, basic_streambuf_wchar
*strbuf
, wchar_t delim
)
9873 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9874 unsigned short ch
= delim
;
9876 TRACE("(%p %p %c)\n", this, strbuf
, delim
);
9880 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9881 basic_streambuf_wchar
*strbuf_read
= basic_ios_wchar_rdbuf_get(base
);
9883 for(ch
= basic_streambuf_wchar_sgetc(strbuf_read
); ;
9884 ch
= basic_streambuf_wchar_snextc(strbuf_read
)) {
9885 if(ch
==WEOF
|| ch
==delim
)
9888 if(basic_streambuf_wchar_sputc(strbuf
, ch
) == WEOF
)
9893 basic_istream_wchar_sentry_destroy(this);
9895 basic_ios_wchar_setstate(base
, (!this->count
? IOSTATE_failbit
: IOSTATE_goodbit
) |
9896 (ch
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
9900 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@AAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@@Z */
9901 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@@Z */
9902 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@AAV?$basic_streambuf@GU?$char_traits@G@std@@@2@@Z */
9903 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@@Z */
9904 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_streambuf
, 8)
9905 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_streambuf(basic_istream_wchar
*this, basic_streambuf_wchar
*strbuf
)
9907 return basic_istream_wchar_get_streambuf_delim(this, strbuf
, '\n');
9910 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH_W@Z */
9911 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J_W@Z */
9912 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGHG@Z */
9913 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_JG@Z */
9914 #if STREAMSIZE_BITS == 64
9915 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline_delim
, 20)
9917 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline_delim
, 16)
9919 basic_istream_wchar
* __thiscall
basic_istream_wchar_getline_delim(basic_istream_wchar
*this, wchar_t *str
, streamsize count
, wchar_t delim
)
9921 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9922 unsigned short ch
= delim
;
9924 TRACE("(%p %p %s %c)\n", this, str
, wine_dbgstr_longlong(count
), delim
);
9928 if(basic_istream_wchar_sentry_create(this, TRUE
) && count
>0) {
9929 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9932 ch
= basic_streambuf_wchar_sbumpc(strbuf
);
9934 if(ch
==WEOF
|| ch
==delim
)
9944 else if(ch
!= WEOF
) {
9945 ch
= basic_streambuf_wchar_sgetc(strbuf
);
9948 basic_streambuf_wchar__Gninc(strbuf
);
9953 basic_istream_wchar_sentry_destroy(this);
9955 basic_ios_wchar_setstate(base
, (ch
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
) |
9956 (!this->count
|| (ch
!=delim
&& ch
!=WEOF
) ? IOSTATE_failbit
: IOSTATE_goodbit
));
9962 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH@Z */
9963 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J@Z */
9964 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGH@Z */
9965 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_J@Z */
9966 #if STREAMSIZE_BITS == 64
9967 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline
, 16)
9969 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline
, 12)
9971 basic_istream_wchar
* __thiscall
basic_istream_wchar_getline(basic_istream_wchar
*this, wchar_t *str
, streamsize count
)
9973 return basic_istream_wchar_getline_delim(this, str
, count
, '\n');
9976 /* ?ignore@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@HG@Z */
9977 /* ?ignore@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_JG@Z */
9978 /* ?ignore@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@HG@Z */
9979 /* ?ignore@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JG@Z */
9980 #if STREAMSIZE_BITS == 64
9981 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ignore
, 16)
9983 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ignore
, 12)
9985 basic_istream_wchar
* __thiscall
basic_istream_wchar_ignore(basic_istream_wchar
*this, streamsize count
, unsigned short delim
)
9987 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9988 unsigned short ch
= delim
;
9991 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(count
), delim
);
9995 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9996 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9997 state
= IOSTATE_goodbit
;
10000 ch
= basic_streambuf_wchar_sbumpc(strbuf
);
10003 state
= IOSTATE_eofbit
;
10011 if(count
!= INT_MAX
)
10015 state
= IOSTATE_failbit
;
10016 basic_istream_wchar_sentry_destroy(this);
10018 basic_ios_wchar_setstate(base
, state
);
10022 /* ?ws@std@@YAAAV?$basic_istream@_WU?$char_traits@_W@std@@@1@AAV21@@Z */
10023 /* ?ws@std@@YAAEAV?$basic_istream@_WU?$char_traits@_W@std@@@1@AEAV21@@Z */
10024 /* ?ws@std@@YAAAV?$basic_istream@GU?$char_traits@G@std@@@1@AAV21@@Z */
10025 /* ?ws@std@@YAAEAV?$basic_istream@GU?$char_traits@G@std@@@1@AEAV21@@Z */
10026 basic_istream_wchar
* __cdecl
ws_basic_istream_wchar(basic_istream_wchar
*istream
)
10028 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istream
);
10029 unsigned short ch
= '\n';
10031 TRACE("(%p)\n", istream
);
10033 if(basic_istream_wchar_sentry_create(istream
, TRUE
)) {
10034 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10035 const ctype_wchar
*ctype
= ctype_wchar_use_facet(IOS_LOCALE(strbuf
));
10037 for(ch
= basic_streambuf_wchar_sgetc(strbuf
); ctype_wchar_is_ch(ctype
, _SPACE
, ch
);
10038 ch
= basic_streambuf_wchar_snextc(strbuf
)) {
10043 basic_istream_wchar_sentry_destroy(istream
);
10046 basic_ios_wchar_setstate(base
, IOSTATE_eofbit
);
10050 /* ?peek@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
10051 /* ?peek@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
10052 /* ?peek@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEGXZ */
10053 /* ?peek@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAGXZ */
10054 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_peek
, 4)
10055 unsigned short __thiscall
basic_istream_wchar_peek(basic_istream_wchar
*this)
10057 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10058 unsigned short ret
= WEOF
;
10060 TRACE("(%p)\n", this);
10064 if(basic_istream_wchar_sentry_create(this, TRUE
))
10065 ret
= basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base
));
10066 basic_istream_wchar_sentry_destroy(this);
10069 basic_ios_wchar_setstate(base
, IOSTATE_eofbit
);
10074 /* ?_Read_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WIH@Z */
10075 /* ?_Read_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_K_J@Z */
10076 /* ?_Read_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGIH@Z */
10077 /* ?_Read_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_K_J@Z */
10078 #if STREAMSIZE_BITS == 64
10079 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Read_s
, 20)
10081 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Read_s
, 16)
10083 basic_istream_wchar
* __thiscall
basic_istream_wchar__Read_s(basic_istream_wchar
*this, wchar_t *str
, MSVCP_size_t size
, streamsize count
)
10085 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10086 IOSB_iostate state
= IOSTATE_goodbit
;
10088 TRACE("(%p %p %lu %s)\n", this, str
, size
, wine_dbgstr_longlong(count
));
10090 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
10091 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10093 this->count
= basic_streambuf_wchar__Sgetn_s(strbuf
, str
, size
, count
);
10094 if(this->count
!= count
)
10095 state
|= IOSTATE_failbit
| IOSTATE_eofbit
;
10099 basic_istream_wchar_sentry_destroy(this);
10101 basic_ios_wchar_setstate(base
, state
);
10105 /* ?read@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH@Z */
10106 /* ?read@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J@Z */
10107 /* ?read@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGH@Z */
10108 /* ?read@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_J@Z */
10109 #if STREAMSIZE_BITS == 64
10110 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read
, 16)
10112 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read
, 12)
10114 basic_istream_wchar
* __thiscall
basic_istream_wchar_read(basic_istream_wchar
*this, wchar_t *str
, streamsize count
)
10116 return basic_istream_wchar__Read_s(this, str
, -1, count
);
10119 /* ?_Readsome_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEHPA_WIH@Z */
10120 /* ?_Readsome_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_K_J@Z */
10121 /* ?_Readsome_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEHPAGIH@Z */
10122 /* ?_Readsome_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_K_J@Z */
10123 #if STREAMSIZE_BITS == 64
10124 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Readsome_s
, 20)
10126 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Readsome_s
, 16)
10128 streamsize __thiscall
basic_istream_wchar__Readsome_s(basic_istream_wchar
*this, wchar_t *str
, MSVCP_size_t size
, streamsize count
)
10130 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10131 IOSB_iostate state
= IOSTATE_goodbit
;
10133 TRACE("(%p %p %lu %s)\n", this, str
, size
, wine_dbgstr_longlong(count
));
10137 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
10138 streamsize avail
= basic_streambuf_wchar_in_avail(basic_ios_wchar_rdbuf_get(base
));
10143 state
|= IOSTATE_eofbit
;
10145 basic_istream_wchar__Read_s(this, str
, size
, avail
);
10147 state
|= IOSTATE_failbit
;
10149 basic_istream_wchar_sentry_destroy(this);
10151 basic_ios_wchar_setstate(base
, state
);
10152 return this->count
;
10155 /* ?readsome@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEHPA_WH@Z */
10156 /* ?readsome@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_J@Z */
10157 /* ?readsome@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEHPAGH@Z */
10158 /* ?readsome@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_J@Z */
10159 #if STREAMSIZE_BITS == 64
10160 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_readsome
, 16)
10162 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_readsome
, 12)
10164 streamsize __thiscall
basic_istream_wchar_readsome(basic_istream_wchar
*this, wchar_t *str
, streamsize count
)
10166 return basic_istream_wchar__Readsome_s(this, str
, count
, count
);
10169 /* ?putback@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@_W@Z */
10170 /* ?putback@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_W@Z */
10171 /* ?putback@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@G@Z */
10172 /* ?putback@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@G@Z */
10173 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_putback
, 8)
10174 basic_istream_wchar
* __thiscall
basic_istream_wchar_putback(basic_istream_wchar
*this, wchar_t ch
)
10176 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10177 IOSB_iostate state
= IOSTATE_goodbit
;
10179 TRACE("(%p %c)\n", this, ch
);
10183 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
10184 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10186 if(!ios_base_good(&base
->base
))
10187 state
|= IOSTATE_failbit
;
10188 else if(!strbuf
|| basic_streambuf_wchar_sputbackc(strbuf
, ch
)==WEOF
)
10189 state
|= IOSTATE_badbit
;
10191 basic_istream_wchar_sentry_destroy(this);
10193 basic_ios_wchar_setstate(base
, state
);
10197 /* ?unget@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@XZ */
10198 /* ?unget@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@XZ */
10199 /* ?unget@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@XZ */
10200 /* ?unget@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@XZ */
10201 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_unget
, 4)
10202 basic_istream_wchar
* __thiscall
basic_istream_wchar_unget(basic_istream_wchar
*this)
10204 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10205 IOSB_iostate state
= IOSTATE_goodbit
;
10207 TRACE("(%p)\n", this);
10211 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
10212 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10214 if(!ios_base_good(&base
->base
))
10215 state
|= IOSTATE_failbit
;
10216 else if(!strbuf
|| basic_streambuf_wchar_sungetc(strbuf
)==WEOF
)
10217 state
|= IOSTATE_badbit
;
10219 basic_istream_wchar_sentry_destroy(this);
10221 basic_ios_wchar_setstate(base
, state
);
10225 /* ?sync@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEHXZ */
10226 /* ?sync@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAHXZ */
10227 /* ?sync@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEHXZ */
10228 /* ?sync@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAHXZ */
10229 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_sync
, 4)
10230 int __thiscall
basic_istream_wchar_sync(basic_istream_wchar
*this)
10232 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10233 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10235 TRACE("(%p)\n", this);
10240 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
10241 if(basic_streambuf_wchar_pubsync(strbuf
) != -1) {
10242 basic_istream_wchar_sentry_destroy(this);
10246 basic_istream_wchar_sentry_destroy(this);
10248 basic_ios_wchar_setstate(base
, IOSTATE_badbit
);
10252 /* ?tellg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@XZ */
10253 /* ?tellg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
10254 /* ?tellg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@XZ */
10255 /* ?tellg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
10256 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_tellg
, 8)
10257 fpos_int
* __thiscall
basic_istream_wchar_tellg(basic_istream_wchar
*this, fpos_int
*ret
)
10259 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10261 TRACE("(%p %p)\n", this, ret
);
10263 if(ios_base_fail(&base
->base
)) {
10270 basic_streambuf_wchar_pubseekoff(basic_ios_wchar_rdbuf_get(base
),
10271 ret
, 0, SEEKDIR_cur
, OPENMODE_in
);
10272 if(ret
->off
==-1 && ret
->pos
==0 && ret
->state
==0)
10273 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
10278 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@JW4seekdir@ios_base@2@@Z */
10279 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JW4seekdir@ios_base@2@@Z */
10280 /* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@JH@Z */
10281 /* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_JH@Z */
10282 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@JH@Z */
10283 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JH@Z */
10284 #if STREAMOFF_BITS == 64
10285 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_seekg
, 16)
10287 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_seekg
, 12)
10289 basic_istream_wchar
* __thiscall
basic_istream_wchar_seekg(basic_istream_wchar
*this, streamoff off
, int dir
)
10291 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10293 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(off
), dir
);
10295 if(!ios_base_fail(&base
->base
)) {
10296 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10299 basic_streambuf_wchar_pubseekoff(strbuf
, &ret
, off
, dir
, OPENMODE_in
);
10301 if(ret
.off
==-1 && ret
.pos
==0 && ret
.state
==0)
10302 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
10304 basic_ios_wchar_clear(base
, IOSTATE_goodbit
);
10307 basic_ios_wchar_clear(base
, IOSTATE_goodbit
);
10312 /* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
10313 /* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
10314 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
10315 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
10316 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_seekg_fpos
, 28)
10317 basic_istream_wchar
* __thiscall
basic_istream_wchar_seekg_fpos(basic_istream_wchar
*this, fpos_int pos
)
10319 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10321 TRACE("(%p %s)\n", this, debugstr_fpos_int(&pos
));
10323 if(!ios_base_fail(&base
->base
)) {
10324 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10327 basic_streambuf_wchar_pubseekpos(strbuf
, &ret
, pos
, OPENMODE_in
);
10329 if(ret
.off
==-1 && ret
.pos
==0 && ret
.state
==0)
10330 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
10332 basic_ios_wchar_clear(base
, IOSTATE_goodbit
);
10335 basic_ios_wchar_clear(base
, IOSTATE_goodbit
);
10340 static basic_istream_wchar
* basic_istream_read_short(basic_istream_wchar
*this, short *v
, const num_get
*numget
)
10342 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10343 int state
= IOSTATE_goodbit
;
10345 TRACE("(%p %p)\n", this, v
);
10347 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10348 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10349 istreambuf_iterator_wchar first
={0}, last
={0};
10352 first
.strbuf
= strbuf
;
10353 num_get_wchar_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, &tmp
);
10355 if(!(state
&IOSTATE_failbit
) && tmp
==(LONG
)((short)tmp
))
10358 state
|= IOSTATE_failbit
;
10360 basic_istream_wchar_sentry_destroy(this);
10362 basic_ios_wchar_setstate(base
, state
);
10366 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAF@Z */
10367 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAF@Z */
10368 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_short
, 8)
10369 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_short(basic_istream_wchar
*this, short *v
)
10371 return basic_istream_read_short(this, v
, num_get_wchar_use_facet(
10372 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10375 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAF@Z */
10376 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAF@Z */
10377 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_short
, 8)
10378 basic_istream_wchar
* __thiscall
basic_istream_short_read_short(basic_istream_wchar
*this, short *v
)
10380 return basic_istream_read_short(this, v
, num_get_short_use_facet(
10381 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10384 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAG@Z */
10385 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAG@Z */
10386 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_ushort
, 8)
10387 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_ushort(basic_istream_wchar
*this, unsigned short *v
)
10389 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10390 int state
= IOSTATE_goodbit
;
10392 TRACE("(%p %p)\n", this, v
);
10394 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10395 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10396 const num_get
*numget
= num_get_wchar_use_facet(IOS_LOCALE(strbuf
));
10397 istreambuf_iterator_wchar first
={0}, last
={0};
10399 first
.strbuf
= strbuf
;
10400 num_get_wchar_get_ushort(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10402 basic_istream_wchar_sentry_destroy(this);
10404 basic_ios_wchar_setstate(base
, state
);
10408 static basic_istream_wchar
* basic_istream_read_int(basic_istream_wchar
*this, int *v
, const num_get
*numget
)
10410 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10411 int state
= IOSTATE_goodbit
;
10413 TRACE("(%p %p)\n", this, v
);
10415 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10416 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10417 istreambuf_iterator_wchar first
={0}, last
={0};
10419 first
.strbuf
= strbuf
;
10420 num_get_wchar_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10422 basic_istream_wchar_sentry_destroy(this);
10424 basic_ios_wchar_setstate(base
, state
);
10428 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAH@Z */
10429 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAH@Z */
10430 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_int
, 8)
10431 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_int(basic_istream_wchar
*this, int *v
)
10433 return basic_istream_read_int(this, v
, num_get_wchar_use_facet(
10434 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10437 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAH@Z */
10438 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAH@Z */
10439 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_int
, 8)
10440 basic_istream_wchar
* __thiscall
basic_istream_short_read_int(basic_istream_wchar
*this, int *v
)
10442 return basic_istream_read_int(this, v
, num_get_short_use_facet(
10443 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10446 static basic_istream_wchar
* basic_istream_read_uint(basic_istream_wchar
*this, unsigned int *v
, const num_get
*numget
)
10448 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10449 int state
= IOSTATE_goodbit
;
10451 TRACE("(%p %p)\n", this, v
);
10453 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10454 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10455 istreambuf_iterator_wchar first
={0}, last
={0};
10457 first
.strbuf
= strbuf
;
10458 num_get_wchar_get_uint(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10460 basic_istream_wchar_sentry_destroy(this);
10462 basic_ios_wchar_setstate(base
, state
);
10466 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAI@Z */
10467 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAI@Z */
10468 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_uint
, 8)
10469 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_uint(basic_istream_wchar
*this, unsigned int *v
)
10471 return basic_istream_read_uint(this, v
, num_get_wchar_use_facet(
10472 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10475 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAI@Z */
10476 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAI@Z */
10477 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_uint
, 8)
10478 basic_istream_wchar
* __thiscall
basic_istream_short_read_uint(basic_istream_wchar
*this, unsigned int *v
)
10480 return basic_istream_read_uint(this, v
, num_get_short_use_facet(
10481 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10484 static basic_istream_wchar
* basic_istream_read_long(basic_istream_wchar
*this, LONG
*v
, const num_get
*numget
)
10486 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10487 int state
= IOSTATE_goodbit
;
10489 TRACE("(%p %p)\n", this, v
);
10491 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10492 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10493 istreambuf_iterator_wchar first
={0}, last
={0};
10495 first
.strbuf
= strbuf
;
10496 num_get_wchar_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10498 basic_istream_wchar_sentry_destroy(this);
10500 basic_ios_wchar_setstate(base
, state
);
10504 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAJ@Z */
10505 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAJ@Z */
10506 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_long
, 8)
10507 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_long(basic_istream_wchar
*this, LONG
*v
)
10509 return basic_istream_read_long(this, v
, num_get_wchar_use_facet(
10510 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10513 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAJ@Z */
10514 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAJ@Z */
10515 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_long
, 8)
10516 basic_istream_wchar
* __thiscall
basic_istream_short_read_long(basic_istream_wchar
*this, LONG
*v
)
10518 return basic_istream_read_long(this, v
, num_get_short_use_facet(
10519 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10522 static basic_istream_wchar
* basic_istream_read_ulong(basic_istream_wchar
*this, ULONG
*v
, const num_get
*numget
)
10524 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10525 int state
= IOSTATE_goodbit
;
10527 TRACE("(%p %p)\n", this, v
);
10529 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10530 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10531 istreambuf_iterator_wchar first
={0}, last
={0};
10533 first
.strbuf
= strbuf
;
10534 num_get_wchar_get_ulong(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10536 basic_istream_wchar_sentry_destroy(this);
10538 basic_ios_wchar_setstate(base
, state
);
10542 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAK@Z */
10543 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAK@Z */
10544 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_ulong
, 8)
10545 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_ulong(basic_istream_wchar
*this, ULONG
*v
)
10547 return basic_istream_read_ulong(this, v
, num_get_wchar_use_facet(
10548 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10551 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAK@Z */
10552 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAK@Z */
10553 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_ulong
, 8)
10554 basic_istream_wchar
* __thiscall
basic_istream_short_read_ulong(basic_istream_wchar
*this, ULONG
*v
)
10556 return basic_istream_read_ulong(this, v
, num_get_short_use_facet(
10557 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10560 static basic_istream_wchar
* basic_istream_read_float(basic_istream_wchar
*this, float *v
, const num_get
*numget
)
10562 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10563 int state
= IOSTATE_goodbit
;
10565 TRACE("(%p %p)\n", this, v
);
10567 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10568 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10569 istreambuf_iterator_wchar first
={0}, last
={0};
10571 first
.strbuf
= strbuf
;
10572 num_get_wchar_get_float(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10574 basic_istream_wchar_sentry_destroy(this);
10576 basic_ios_wchar_setstate(base
, state
);
10580 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAM@Z */
10581 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAM@Z */
10582 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_float
, 8)
10583 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_float(basic_istream_wchar
*this, float *v
)
10585 return basic_istream_read_float(this, v
, num_get_wchar_use_facet(
10586 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10589 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAM@Z */
10590 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAM@Z */
10591 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_float
, 8)
10592 basic_istream_wchar
* __thiscall
basic_istream_short_read_float(basic_istream_wchar
*this, float *v
)
10594 return basic_istream_read_float(this, v
, num_get_short_use_facet(
10595 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10598 static basic_istream_wchar
* basic_istream_read_double(basic_istream_wchar
*this, double *v
, const num_get
*numget
)
10600 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10601 int state
= IOSTATE_goodbit
;
10603 TRACE("(%p %p)\n", this, v
);
10605 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10606 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10607 istreambuf_iterator_wchar first
={0}, last
={0};
10609 first
.strbuf
= strbuf
;
10610 num_get_wchar_get_double(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10612 basic_istream_wchar_sentry_destroy(this);
10614 basic_ios_wchar_setstate(base
, state
);
10618 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAN@Z */
10619 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAN@Z */
10620 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_double
, 8)
10621 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_double(basic_istream_wchar
*this, double *v
)
10623 return basic_istream_read_double(this, v
, num_get_wchar_use_facet(
10624 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10627 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAN@Z */
10628 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAN@Z */
10629 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_double
, 8)
10630 basic_istream_wchar
* __thiscall
basic_istream_short_read_double(basic_istream_wchar
*this, double *v
)
10632 return basic_istream_read_double(this, v
, num_get_short_use_facet(
10633 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10636 static basic_istream_wchar
* basic_istream_read_ldouble(basic_istream_wchar
*this, double *v
, const num_get
*numget
)
10638 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10639 int state
= IOSTATE_goodbit
;
10641 TRACE("(%p %p)\n", this, v
);
10643 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10644 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10645 istreambuf_iterator_wchar first
={0}, last
={0};
10647 first
.strbuf
= strbuf
;
10648 num_get_wchar_get_ldouble(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10650 basic_istream_wchar_sentry_destroy(this);
10652 basic_ios_wchar_setstate(base
, state
);
10656 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAO@Z */
10657 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAO@Z */
10658 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_ldouble
, 8)
10659 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_ldouble(basic_istream_wchar
*this, double *v
)
10661 return basic_istream_read_ldouble(this, v
, num_get_wchar_use_facet(
10662 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10665 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAO@Z */
10666 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAO@Z */
10667 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_ldouble
, 8)
10668 basic_istream_wchar
* __thiscall
basic_istream_short_read_ldouble(basic_istream_wchar
*this, double *v
)
10670 return basic_istream_read_ldouble(this, v
, num_get_short_use_facet(
10671 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10674 static basic_istream_wchar
* basic_istream_read_ptr(basic_istream_wchar
*this, void **v
, const num_get
*numget
)
10676 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10677 int state
= IOSTATE_goodbit
;
10679 TRACE("(%p %p)\n", this, v
);
10681 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10682 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10683 istreambuf_iterator_wchar first
={0}, last
={0};
10685 first
.strbuf
= strbuf
;
10686 num_get_wchar_get_void(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10688 basic_istream_wchar_sentry_destroy(this);
10690 basic_ios_wchar_setstate(base
, state
);
10694 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAPAX@Z */
10695 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAPEAX@Z */
10696 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_ptr
, 8)
10697 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_ptr(basic_istream_wchar
*this, void **v
)
10699 return basic_istream_read_ptr(this, v
, num_get_wchar_use_facet(
10700 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10703 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAPAX@Z */
10704 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAPEAX@Z */
10705 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_ptr
, 8)
10706 basic_istream_wchar
* __thiscall
basic_istream_short_read_ptr(basic_istream_wchar
*this, void **v
)
10708 return basic_istream_read_ptr(this, v
, num_get_short_use_facet(
10709 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10712 static basic_istream_wchar
* basic_istream_read_int64(basic_istream_wchar
*this, __int64
*v
, const num_get
*numget
)
10714 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10715 int state
= IOSTATE_goodbit
;
10717 TRACE("(%p %p)\n", this, v
);
10719 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10720 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10721 istreambuf_iterator_wchar first
={0}, last
={0};
10723 first
.strbuf
= strbuf
;
10724 num_get_wchar_get_int64(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10726 basic_istream_wchar_sentry_destroy(this);
10728 basic_ios_wchar_setstate(base
, state
);
10732 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AA_J@Z */
10733 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEA_J@Z */
10734 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_int64
, 8)
10735 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_int64(basic_istream_wchar
*this, __int64
*v
)
10737 return basic_istream_read_int64(this, v
, num_get_wchar_use_facet(
10738 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10741 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AA_J@Z */
10742 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEA_J@Z */
10743 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_int64
, 8)
10744 basic_istream_wchar
* __thiscall
basic_istream_short_read_int64(basic_istream_wchar
*this, __int64
*v
)
10746 return basic_istream_read_int64(this, v
, num_get_short_use_facet(
10747 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10750 static basic_istream_wchar
* basic_istream_read_uint64(basic_istream_wchar
*this, unsigned __int64
*v
, const num_get
*numget
)
10752 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10753 int state
= IOSTATE_goodbit
;
10755 TRACE("(%p %p)\n", this, v
);
10757 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10758 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10759 istreambuf_iterator_wchar first
={0}, last
={0};
10761 first
.strbuf
= strbuf
;
10762 num_get_wchar_get_uint64(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10764 basic_istream_wchar_sentry_destroy(this);
10766 basic_ios_wchar_setstate(base
, state
);
10770 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AA_K@Z */
10771 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEA_K@Z */
10772 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_uint64
, 8)
10773 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_uint64(basic_istream_wchar
*this, unsigned __int64
*v
)
10775 return basic_istream_read_uint64(this, v
, num_get_wchar_use_facet(
10776 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10779 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AA_K@Z */
10780 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEA_K@Z */
10781 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_uint64
, 8)
10782 basic_istream_wchar
* __thiscall
basic_istream_short_read_uint64(basic_istream_wchar
*this, unsigned __int64
*v
)
10784 return basic_istream_read_uint64(this, v
, num_get_short_use_facet(
10785 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10788 static basic_istream_wchar
* basic_istream_read_bool(basic_istream_wchar
*this, MSVCP_bool
*v
, const num_get
*numget
)
10790 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10791 int state
= IOSTATE_goodbit
;
10793 TRACE("(%p %p)\n", this, v
);
10795 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10796 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10797 istreambuf_iterator_wchar first
={0}, last
={0};
10799 first
.strbuf
= strbuf
;
10800 num_get_wchar_get_bool(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10802 basic_istream_wchar_sentry_destroy(this);
10804 basic_ios_wchar_setstate(base
, state
);
10808 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AA_N@Z */
10809 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEA_N@Z */
10810 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_bool
, 8)
10811 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_bool(basic_istream_wchar
*this, MSVCP_bool
*v
)
10813 return basic_istream_read_bool(this, v
, num_get_wchar_use_facet(
10814 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10817 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AA_N@Z */
10818 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEA_N@Z */
10819 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_bool
, 8)
10820 basic_istream_wchar
* __thiscall
basic_istream_short_read_bool(basic_istream_wchar
*this, MSVCP_bool
*v
)
10822 return basic_istream_read_bool(this, v
, num_get_short_use_facet(
10823 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10826 /* ??$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 */
10827 /* ??$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 */
10828 /* ??$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 */
10829 /* ??$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 */
10830 basic_istream_wchar
* __cdecl
basic_istream_wchar_getline_bstr_delim(
10831 basic_istream_wchar
*istream
, basic_string_wchar
*str
, wchar_t delim
)
10833 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istream
);
10834 IOSB_iostate state
= IOSTATE_goodbit
;
10837 TRACE("(%p %p %c)\n", istream
, str
, delim
);
10839 if(basic_istream_wchar_sentry_create(istream
, TRUE
)) {
10840 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10841 MSVCP_basic_string_wchar_clear(str
);
10843 c
= basic_streambuf_wchar_sgetc(strbuf
);
10844 for(; c
!=delim
&& c
!=WEOF
; c
= basic_streambuf_wchar_snextc(strbuf
))
10845 MSVCP_basic_string_wchar_append_ch(str
, c
);
10846 if(c
==delim
) basic_streambuf_wchar_sbumpc(strbuf
);
10847 else if(c
==WEOF
) state
|= IOSTATE_eofbit
;
10849 if(!MSVCP_basic_string_wchar_length(str
) && c
!=delim
) state
|= IOSTATE_failbit
;
10851 basic_istream_wchar_sentry_destroy(istream
);
10853 basic_ios_wchar_setstate(basic_istream_wchar_get_basic_ios(istream
), state
);
10857 /* ??$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 */
10858 /* ??$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 */
10859 /* ??$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 */
10860 /* ??$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 */
10861 basic_istream_wchar
* __cdecl
basic_istream_wchar_getline_bstr(
10862 basic_istream_wchar
*istream
, basic_string_wchar
*str
)
10864 return basic_istream_wchar_getline_bstr_delim(istream
, str
, '\n');
10867 static basic_istream_wchar
* basic_istream_read_bstr(basic_istream_wchar
*istream
,
10868 basic_string_wchar
*str
, const ctype_wchar
*ctype
)
10870 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istream
);
10871 IOSB_iostate state
= IOSTATE_failbit
;
10874 TRACE("(%p %p)\n", istream
, str
);
10876 if(basic_istream_wchar_sentry_create(istream
, FALSE
)) {
10877 MSVCP_size_t count
= ios_base_width_get(&base
->base
);
10882 MSVCP_basic_string_wchar_clear(str
);
10884 for(c
= basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base
));
10885 c
!=WEOF
&& !ctype_wchar_is_ch(ctype
, _SPACE
|_BLANK
, c
) && count
>0;
10886 c
= basic_streambuf_wchar_snextc(basic_ios_wchar_rdbuf_get(base
)), count
--) {
10887 state
= IOSTATE_goodbit
;
10888 MSVCP_basic_string_wchar_append_ch(str
, c
);
10891 basic_istream_wchar_sentry_destroy(istream
);
10893 ios_base_width_set(&base
->base
, 0);
10894 basic_ios_wchar_setstate(base
, state
| (c
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
10898 /* ??$?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 */
10899 /* ??$?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 */
10900 basic_istream_wchar
* __cdecl
basic_istream_wchar_read_bstr(
10901 basic_istream_wchar
*istream
, basic_string_wchar
*str
)
10903 return basic_istream_read_bstr(istream
, str
, ctype_wchar_use_facet(
10904 IOS_LOCALE(basic_istream_wchar_get_basic_ios(istream
)->strbuf
)));
10907 /* ??$?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 */
10908 /* ??$?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 */
10909 basic_istream_wchar
* __cdecl
basic_istream_short_read_bstr(
10910 basic_istream_wchar
*istream
, basic_string_wchar
*str
)
10912 return basic_istream_read_bstr(istream
, str
, ctype_short_use_facet(
10913 IOS_LOCALE(basic_istream_wchar_get_basic_ios(istream
)->strbuf
)));
10916 static basic_istream_wchar
* basic_istream_read_str(basic_istream_wchar
*istream
, wchar_t *str
, const ctype_wchar
*ctype
)
10918 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istream
);
10919 IOSB_iostate state
= IOSTATE_failbit
;
10920 unsigned short c
= '\n';
10922 TRACE("(%p %p)\n", istream
, str
);
10924 if(basic_istream_wchar_sentry_create(istream
, FALSE
)) {
10925 MSVCP_size_t count
= ios_base_width_get(&base
->base
)-1;
10927 for(c
= basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base
));
10928 c
!=WEOF
&& !ctype_wchar_is_ch(ctype
, _SPACE
|_BLANK
, c
) && count
>0;
10929 c
= basic_streambuf_wchar_snextc(basic_ios_wchar_rdbuf_get(base
)), count
--) {
10930 state
= IOSTATE_goodbit
;
10934 basic_istream_wchar_sentry_destroy(istream
);
10937 ios_base_width_set(&base
->base
, 0);
10938 basic_ios_wchar_setstate(base
, state
| (c
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
10942 /* ??$?5_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AAV10@PA_W@Z */
10943 /* ??$?5_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AEAV10@PEA_W@Z */
10944 basic_istream_wchar
* __cdecl
basic_istream_wchar_read_str(basic_istream_wchar
*istream
, wchar_t *str
)
10946 return basic_istream_read_str(istream
, str
, ctype_wchar_use_facet(
10947 IOS_LOCALE(basic_istream_wchar_get_basic_ios(istream
)->strbuf
)));
10950 /* ??$?5GU?$char_traits@G@std@@@std@@YAAAV?$basic_istream@GU?$char_traits@G@std@@@0@AAV10@PAG@Z */
10951 /* ??$?5GU?$char_traits@G@std@@@std@@YAAEAV?$basic_istream@GU?$char_traits@G@std@@@0@AEAV10@PEAG@Z */
10952 basic_istream_wchar
* __cdecl
basic_istream_short_read_str(basic_istream_wchar
*istream
, wchar_t *str
)
10954 return basic_istream_read_str(istream
, str
, ctype_short_use_facet(
10955 IOS_LOCALE(basic_istream_wchar_get_basic_ios(istream
)->strbuf
)));
10958 /* ??$?5_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AAV10@AA_W@Z */
10959 /* ??$?5_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AEAV10@AEA_W@Z */
10960 /* ??$?5GU?$char_traits@G@std@@@std@@YAAAV?$basic_istream@GU?$char_traits@G@std@@@0@AAV10@AAG@Z */
10961 /* ??$?5GU?$char_traits@G@std@@@std@@YAAEAV?$basic_istream@GU?$char_traits@G@std@@@0@AEAV10@AEAG@Z */
10962 basic_istream_wchar
* __cdecl
basic_istream_wchar_read_ch(basic_istream_wchar
*istream
, wchar_t *ch
)
10964 IOSB_iostate state
= IOSTATE_failbit
;
10965 unsigned short c
= 0;
10967 TRACE("(%p %p)\n", istream
, ch
);
10969 if(basic_istream_wchar_sentry_create(istream
, FALSE
)) {
10970 c
= basic_streambuf_wchar_sbumpc(basic_ios_wchar_rdbuf_get(
10971 basic_istream_wchar_get_basic_ios(istream
)));
10973 state
= IOSTATE_goodbit
;
10977 basic_istream_wchar_sentry_destroy(istream
);
10979 basic_ios_wchar_setstate(basic_istream_wchar_get_basic_ios(istream
),
10980 state
| (c
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
10984 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
10985 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
10986 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
10987 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
10988 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_streambuf
, 8)
10989 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_streambuf(
10990 basic_istream_wchar
*this, basic_streambuf_wchar
*streambuf
)
10992 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10993 IOSB_iostate state
= IOSTATE_failbit
;
10994 unsigned short c
= '\n';
10996 TRACE("(%p %p)\n", this, streambuf
);
10998 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10999 for(c
= basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base
)); c
!=WEOF
;
11000 c
= basic_streambuf_wchar_snextc(basic_ios_wchar_rdbuf_get(base
))) {
11001 state
= IOSTATE_goodbit
;
11002 if(basic_streambuf_wchar_sputc(streambuf
, c
) == WEOF
)
11006 basic_istream_wchar_sentry_destroy(this);
11008 basic_ios_wchar_setstate(base
, state
| (c
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
11012 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
11013 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
11014 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
11015 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
11016 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_func
, 8)
11017 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_func(basic_istream_wchar
*this,
11018 basic_istream_wchar
* (__cdecl
*pfunc
)(basic_istream_wchar
*))
11020 TRACE("(%p %p)\n", this, pfunc
);
11025 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AAV21@@Z@Z */
11026 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AEAV21@@Z@Z */
11027 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@GU?$char_traits@G@std@@@1@AAV21@@Z@Z */
11028 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@GU?$char_traits@G@std@@@1@AEAV21@@Z@Z */
11029 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_func_basic_ios
, 8)
11030 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_func_basic_ios(basic_istream_wchar
*this,
11031 basic_ios_wchar
* (__cdecl
*pfunc
)(basic_ios_wchar
*))
11033 TRACE("(%p %p)\n", this, pfunc
);
11034 pfunc(basic_istream_wchar_get_basic_ios(this));
11038 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
11039 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
11040 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
11041 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
11042 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_func_ios_base
, 8)
11043 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_func_ios_base(
11044 basic_istream_wchar
*this, ios_base
* (__cdecl
*pfunc
)(ios_base
*))
11046 TRACE("(%p %p)\n", this, pfunc
);
11047 pfunc(&basic_istream_wchar_get_basic_ios(this)->base
);
11051 /* ?swap@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEXAAV12@@Z */
11052 /* ?swap@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAXAEAV12@@Z */
11053 /* ?swap@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEXAAV12@@Z */
11054 /* ?swap@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAXAEAV12@@Z */
11055 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_swap
, 8)
11056 void __thiscall
basic_istream_wchar_swap(basic_istream_wchar
*this, basic_istream_wchar
*r
)
11058 TRACE("(%p %p)\n", this, r
);
11063 basic_ios_wchar_swap(basic_istream_wchar_get_basic_ios(this),
11064 basic_istream_wchar_get_basic_ios(r
));
11065 this->count
^= r
->count
;
11066 r
->count
^= this->count
;
11067 this->count
^= r
->count
;
11070 static inline basic_ios_char
* basic_iostream_char_to_basic_ios(basic_iostream_char
*ptr
)
11072 return (basic_ios_char
*)((char*)ptr
+basic_iostream_char_vbtable1
[1]);
11075 static inline basic_iostream_char
* basic_iostream_char_from_basic_ios(basic_ios_char
*ptr
)
11077 return (basic_iostream_char
*)((char*)ptr
-basic_iostream_char_vbtable1
[1]);
11080 /* ??0?$basic_iostream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
11081 /* ??0?$basic_iostream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
11082 DEFINE_THISCALL_WRAPPER(basic_iostream_char_ctor
, 12)
11083 basic_iostream_char
* __thiscall
basic_iostream_char_ctor(basic_iostream_char
*this, basic_streambuf_char
*strbuf
, MSVCP_bool virt_init
)
11085 basic_ios_char
*basic_ios
;
11087 TRACE("(%p %p %d)\n", this, strbuf
, virt_init
);
11090 this->base1
.vbtable
= basic_iostream_char_vbtable1
;
11091 this->base2
.vbtable
= basic_iostream_char_vbtable2
;
11092 basic_ios
= basic_istream_char_get_basic_ios(&this->base1
);
11093 INIT_BASIC_IOS_VTORDISP(basic_ios
);
11094 basic_ios_char_ctor(basic_ios
);
11096 basic_ios
= basic_istream_char_get_basic_ios(&this->base1
);
11099 basic_ios
->base
.vtable
= &MSVCP_basic_iostream_char_vtable
;
11101 basic_istream_char_ctor(&this->base1
, strbuf
, FALSE
, FALSE
);
11102 basic_ostream_char_ctor_uninitialized(&this->base2
, 0, FALSE
, FALSE
);
11106 /* ??1?$basic_iostream@DU?$char_traits@D@std@@@std@@UAE@XZ */
11107 /* ??1?$basic_iostream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
11108 DEFINE_THISCALL_WRAPPER(basic_iostream_char_dtor
, 4)
11109 void __thiscall
basic_iostream_char_dtor(basic_ios_char
*base
)
11111 basic_iostream_char
*this = basic_iostream_char_from_basic_ios(base
);
11113 TRACE("(%p)\n", this);
11114 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&this->base2
));
11115 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&this->base1
));
11118 /* ??_D?$basic_iostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
11119 /* ??_D?$basic_iostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
11120 DEFINE_THISCALL_WRAPPER(basic_iostream_char_vbase_dtor
, 4)
11121 void __thiscall
basic_iostream_char_vbase_dtor(basic_iostream_char
*this)
11123 basic_ios_char
*base
= basic_iostream_char_to_basic_ios(this);
11125 TRACE("(%p)\n", this);
11127 basic_iostream_char_dtor(base
);
11128 basic_ios_char_dtor(base
);
11131 DEFINE_THISCALL_WRAPPER(basic_iostream_char_vector_dtor
, 8)
11132 basic_iostream_char
* __thiscall
basic_iostream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
11134 basic_iostream_char
*this = basic_iostream_char_from_basic_ios(base
);
11136 TRACE("(%p %x)\n", this, flags
);
11139 /* we have an array, with the number of elements stored before the first object */
11140 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11142 for(i
=*ptr
-1; i
>=0; i
--)
11143 basic_iostream_char_vbase_dtor(this+i
);
11144 MSVCRT_operator_delete(ptr
);
11146 basic_iostream_char_vbase_dtor(this);
11148 MSVCRT_operator_delete(this);
11154 /* ?swap@?$basic_iostream@DU?$char_traits@D@std@@@std@@QAEXAAV12@@Z */
11155 /* ?swap@?$basic_iostream@DU?$char_traits@D@std@@@std@@QEAAXAEAV12@@Z */
11156 DEFINE_THISCALL_WRAPPER(basic_iostream_char_swap
, 8)
11157 void __thiscall
basic_iostream_char_swap(basic_iostream_char
*this, basic_iostream_char
*r
)
11159 TRACE("(%p %p)\n", this, r
);
11164 basic_ios_char_swap(basic_istream_char_get_basic_ios(&this->base1
),
11165 basic_istream_char_get_basic_ios(&r
->base1
));
11168 static inline basic_ios_wchar
* basic_iostream_wchar_to_basic_ios(basic_iostream_wchar
*ptr
)
11170 return (basic_ios_wchar
*)((char*)ptr
+basic_iostream_wchar_vbtable1
[1]);
11173 static inline basic_iostream_wchar
* basic_iostream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
11175 return (basic_iostream_wchar
*)((char*)ptr
-basic_iostream_wchar_vbtable1
[1]);
11178 /* ??0?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
11179 /* ??0?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
11180 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_ctor
, 12)
11181 basic_iostream_wchar
* __thiscall
basic_iostream_wchar_ctor(basic_iostream_wchar
*this,
11182 basic_streambuf_wchar
*strbuf
, MSVCP_bool virt_init
)
11184 basic_ios_wchar
*basic_ios
;
11186 TRACE("(%p %p %d)\n", this, strbuf
, virt_init
);
11189 this->base1
.vbtable
= basic_iostream_wchar_vbtable1
;
11190 this->base2
.vbtable
= basic_iostream_wchar_vbtable2
;
11191 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base1
);
11192 INIT_BASIC_IOS_VTORDISP(basic_ios
);
11193 basic_ios_wchar_ctor(basic_ios
);
11195 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base1
);
11198 basic_istream_wchar_ctor(&this->base1
, strbuf
, FALSE
, FALSE
);
11199 basic_ostream_wchar_ctor_uninitialized(&this->base2
, 0, FALSE
, FALSE
);
11201 basic_ios
->base
.vtable
= &MSVCP_basic_iostream_wchar_vtable
;
11205 /* ??0?$basic_iostream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
11206 /* ??0?$basic_iostream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
11207 DEFINE_THISCALL_WRAPPER(basic_iostream_short_ctor
, 12)
11208 basic_iostream_wchar
* __thiscall
basic_iostream_short_ctor(basic_iostream_wchar
*this,
11209 basic_streambuf_wchar
*strbuf
, MSVCP_bool virt_init
)
11211 basic_iostream_wchar_ctor(this, strbuf
, virt_init
);
11212 basic_istream_wchar_get_basic_ios(&this->base1
)->base
.vtable
= &MSVCP_basic_iostream_short_vtable
;
11216 /* ??1?$basic_iostream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
11217 /* ??1?$basic_iostream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
11218 /* ??1?$basic_iostream@GU?$char_traits@G@std@@@std@@UAE@XZ */
11219 /* ??1?$basic_iostream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
11220 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_dtor
, 4)
11221 void __thiscall
basic_iostream_wchar_dtor(basic_ios_wchar
*base
)
11223 basic_iostream_wchar
*this = basic_iostream_wchar_from_basic_ios(base
);
11225 TRACE("(%p)\n", this);
11226 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(&this->base2
));
11227 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(&this->base1
));
11230 /* ??_D?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
11231 /* ??_D?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
11232 /* ??_D?$basic_iostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
11233 /* ??_D?$basic_iostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
11234 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_vbase_dtor
, 4)
11235 void __thiscall
basic_iostream_wchar_vbase_dtor(basic_iostream_wchar
*this)
11237 basic_ios_wchar
*base
= basic_iostream_wchar_to_basic_ios(this);
11239 TRACE("(%p)\n", this);
11241 basic_iostream_wchar_dtor(base
);
11242 basic_ios_wchar_dtor(base
);
11245 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_vector_dtor
, 8)
11246 basic_iostream_wchar
* __thiscall
basic_iostream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
11248 basic_iostream_wchar
*this = basic_iostream_wchar_from_basic_ios(base
);
11250 TRACE("(%p %x)\n", this, flags
);
11253 /* we have an array, with the number of elements stored before the first object */
11254 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11256 for(i
=*ptr
-1; i
>=0; i
--)
11257 basic_iostream_wchar_vbase_dtor(this+i
);
11258 MSVCRT_operator_delete(ptr
);
11260 basic_iostream_wchar_vbase_dtor(this);
11262 MSVCRT_operator_delete(this);
11268 /* ?swap@?$basic_iostream@GU?$char_traits@G@std@@@std@@QAEXAAV12@@Z */
11269 /* ?swap@?$basic_iostream@GU?$char_traits@G@std@@@std@@QEAAXAEAV12@@Z */
11270 /* ?swap@?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QAEXAAV12@@Z */
11271 /* ?swap@?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QEAAXAEAV12@@Z */
11272 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_swap
, 8)
11273 void __thiscall
basic_iostream_wchar_swap(basic_iostream_wchar
*this, basic_iostream_wchar
*r
)
11275 TRACE("(%p %p)\n", this, r
);
11280 basic_ios_wchar_swap(basic_istream_wchar_get_basic_ios(&this->base1
),
11281 basic_istream_wchar_get_basic_ios(&r
->base1
));
11284 static inline basic_ios_char
* basic_ofstream_char_to_basic_ios(basic_ofstream_char
*ptr
)
11286 return (basic_ios_char
*)((char*)ptr
+basic_ofstream_char_vbtable
[1]);
11289 static inline basic_ofstream_char
* basic_ofstream_char_from_basic_ios(basic_ios_char
*ptr
)
11291 return (basic_ofstream_char
*)((char*)ptr
-basic_ofstream_char_vbtable
[1]);
11294 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@XZ */
11295 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@XZ */
11296 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_ctor
, 8)
11297 basic_ofstream_char
* __thiscall
basic_ofstream_char_ctor(basic_ofstream_char
*this, MSVCP_bool virt_init
)
11299 basic_ios_char
*basic_ios
;
11301 TRACE("(%p %d)\n", this, virt_init
);
11304 this->base
.vbtable
= basic_ofstream_char_vbtable
;
11305 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11306 INIT_BASIC_IOS_VTORDISP(basic_ios
);
11307 basic_ios_char_ctor(basic_ios
);
11309 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11312 basic_filebuf_char_ctor(&this->filebuf
);
11313 basic_ostream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
11314 basic_ios
->base
.vtable
= &MSVCP_basic_ofstream_char_vtable
;
11318 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
11319 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11320 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_ctor_file
, 12)
11321 basic_ofstream_char
* __thiscall
basic_ofstream_char_ctor_file(
11322 basic_ofstream_char
*this, FILE *file
, MSVCP_bool virt_init
)
11324 basic_ios_char
*basic_ios
;
11326 TRACE("(%p %p %d)\n", this, file
, virt_init
);
11329 this->base
.vbtable
= basic_ofstream_char_vbtable
;
11330 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11331 INIT_BASIC_IOS_VTORDISP(basic_ios
);
11332 basic_ios_char_ctor(basic_ios
);
11334 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11337 basic_filebuf_char_ctor_file(&this->filebuf
, file
);
11338 basic_ostream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
11339 basic_ios
->base
.vtable
= &MSVCP_basic_ofstream_char_vtable
;
11343 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@PBDHH@Z */
11344 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDHH@Z */
11345 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_ctor_name
, 20)
11346 basic_ofstream_char
* __thiscall
basic_ofstream_char_ctor_name(basic_ofstream_char
*this,
11347 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11349 TRACE("(%p %s %d %d %d)\n", this, name
, mode
, prot
, virt_init
);
11351 basic_ofstream_char_ctor(this, virt_init
);
11353 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
11354 basic_ios_char
*basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11355 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11360 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@PBGHH@Z */
11361 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@PEBGHH@Z */
11362 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@PB_WHH@Z */
11363 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@PEB_WHH@Z */
11364 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_ctor_name_wchar
, 20)
11365 basic_ofstream_char
* __thiscall
basic_ofstream_char_ctor_name_wchar(basic_ofstream_char
*this,
11366 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11368 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name
), mode
, prot
, virt_init
);
11370 basic_ofstream_char_ctor(this, virt_init
);
11372 if(!basic_filebuf_char_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
11373 basic_ios_char
*basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11374 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11379 /* ??1?$basic_ofstream@DU?$char_traits@D@std@@@std@@UAE@XZ */
11380 /* ??1?$basic_ofstream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
11381 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_dtor
, 4)
11382 void __thiscall
basic_ofstream_char_dtor(basic_ios_char
*base
)
11384 basic_ofstream_char
*this = basic_ofstream_char_from_basic_ios(base
);
11386 TRACE("(%p)\n", this);
11388 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&this->base
));
11389 basic_filebuf_char_dtor(&this->filebuf
);
11392 /* ??_D?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
11393 /* ??_D?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
11394 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_vbase_dtor
, 4)
11395 void __thiscall
basic_ofstream_char_vbase_dtor(basic_ofstream_char
*this)
11397 basic_ios_char
*base
= basic_ofstream_char_to_basic_ios(this);
11399 TRACE("(%p)\n", this);
11401 basic_ofstream_char_dtor(base
);
11402 basic_ios_char_dtor(base
);
11405 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_vector_dtor
, 8)
11406 basic_ofstream_char
* __thiscall
basic_ofstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
11408 basic_ofstream_char
*this = basic_ofstream_char_from_basic_ios(base
);
11410 TRACE("(%p %x)\n", this, flags
);
11413 /* we have an array, with the number of elements stored before the first object */
11414 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11416 for(i
=*ptr
-1; i
>=0; i
--)
11417 basic_ofstream_char_vbase_dtor(this+i
);
11418 MSVCRT_operator_delete(ptr
);
11420 basic_ofstream_char_vbase_dtor(this);
11422 MSVCRT_operator_delete(this);
11428 /* ?close@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
11429 /* ?close@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
11430 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_close
, 4)
11431 void __thiscall
basic_ofstream_char_close(basic_ofstream_char
*this)
11433 TRACE("(%p)\n", this);
11435 if(!basic_filebuf_char_close(&this->filebuf
)) {
11436 basic_ios_char
*basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11437 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11441 /* ?is_open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QBE_NXZ */
11442 /* ?is_open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
11443 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_is_open
, 4)
11444 MSVCP_bool __thiscall
basic_ofstream_char_is_open(const basic_ofstream_char
*this)
11446 TRACE("(%p)\n", this);
11447 return basic_filebuf_char_is_open(&this->filebuf
);
11450 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPBDHH@Z */
11451 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDHH@Z */
11452 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_open
, 16)
11453 void __thiscall
basic_ofstream_char_open(basic_ofstream_char
*this,
11454 const char *name
, int mode
, int prot
)
11456 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
11458 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
11459 basic_ios_char
*basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11460 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11464 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPBDI@Z */
11465 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDI@Z */
11466 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_open_old
, 12)
11467 void __thiscall
basic_ofstream_char_open_old(basic_ofstream_char
*this,
11468 const char *name
, unsigned int mode
)
11470 basic_ofstream_char_open(this, name
, mode
, _SH_DENYNO
);
11473 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPBGHH@Z */
11474 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGHH@Z */
11475 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPB_WHH@Z */
11476 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WHH@Z */
11477 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_open_wchar
, 16)
11478 void __thiscall
basic_ofstream_char_open_wchar(basic_ofstream_char
*this,
11479 const wchar_t *name
, int mode
, int prot
)
11481 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
11483 if(!basic_filebuf_char_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
11484 basic_ios_char
*basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11485 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11489 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPBGI@Z */
11490 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGI@Z */
11491 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPB_WI@Z */
11492 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WI@Z */
11493 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_open_wchar_old
, 12)
11494 void __thiscall
basic_ofstream_char_open_wchar_old(basic_ofstream_char
*this,
11495 const wchar_t *name
, unsigned int mode
)
11497 basic_ofstream_char_open_wchar(this, name
, mode
, _SH_DENYNO
);
11500 /* ?rdbuf@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
11501 /* ?rdbuf@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
11502 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_rdbuf
, 4)
11503 basic_filebuf_char
* __thiscall
basic_ofstream_char_rdbuf(const basic_ofstream_char
*this)
11505 TRACE("(%p)\n", this);
11506 return (basic_filebuf_char
*)&this->filebuf
;
11509 static inline basic_ios_wchar
* basic_ofstream_wchar_to_basic_ios(basic_ofstream_wchar
*ptr
)
11511 return (basic_ios_wchar
*)((char*)ptr
+basic_ofstream_wchar_vbtable
[1]);
11514 static inline basic_ofstream_wchar
* basic_ofstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
11516 return (basic_ofstream_wchar
*)((char*)ptr
-basic_ofstream_wchar_vbtable
[1]);
11519 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@XZ */
11520 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@XZ */
11521 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_ctor
, 8)
11522 basic_ofstream_wchar
* __thiscall
basic_ofstream_wchar_ctor(basic_ofstream_wchar
*this, MSVCP_bool virt_init
)
11524 basic_ios_wchar
*basic_ios
;
11526 TRACE("(%p %d)\n", this, virt_init
);
11529 this->base
.vbtable
= basic_ofstream_wchar_vbtable
;
11530 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11531 INIT_BASIC_IOS_VTORDISP(basic_ios
);
11532 basic_ios_wchar_ctor(basic_ios
);
11534 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11537 basic_filebuf_wchar_ctor(&this->filebuf
);
11538 basic_ostream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
11539 basic_ios
->base
.vtable
= &MSVCP_basic_ofstream_wchar_vtable
;
11543 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@XZ */
11544 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@XZ */
11545 DEFINE_THISCALL_WRAPPER(basic_ofstream_short_ctor
, 8)
11546 basic_ofstream_wchar
* __thiscall
basic_ofstream_short_ctor(basic_ofstream_wchar
*this, MSVCP_bool virt_init
)
11548 basic_ofstream_wchar_ctor(this, virt_init
);
11549 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ofstream_short_vtable
;
11553 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
11554 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11555 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_ctor_file
, 12)
11556 basic_ofstream_wchar
* __thiscall
basic_ofstream_wchar_ctor_file(
11557 basic_ofstream_wchar
*this, FILE *file
, MSVCP_bool virt_init
)
11559 basic_ios_wchar
*basic_ios
;
11561 TRACE("(%p %p %d)\n", this, file
, virt_init
);
11564 this->base
.vbtable
= basic_ofstream_wchar_vbtable
;
11565 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11566 INIT_BASIC_IOS_VTORDISP(basic_ios
);
11567 basic_ios_wchar_ctor(basic_ios
);
11569 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11572 basic_filebuf_wchar_ctor_file(&this->filebuf
, file
);
11573 basic_ostream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
11574 basic_ios
->base
.vtable
= &MSVCP_basic_ofstream_wchar_vtable
;
11578 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
11579 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11580 DEFINE_THISCALL_WRAPPER(basic_ofstream_short_ctor_file
, 12)
11581 basic_ofstream_wchar
* __thiscall
basic_ofstream_short_ctor_file(
11582 basic_ofstream_wchar
*this, FILE *file
, MSVCP_bool virt_init
)
11584 basic_ofstream_wchar_ctor_file(this, file
, virt_init
);
11585 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ofstream_short_vtable
;
11589 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@PBDHH@Z */
11590 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBDHH@Z */
11591 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_ctor_name
, 20)
11592 basic_ofstream_wchar
* __thiscall
basic_ofstream_wchar_ctor_name(basic_ofstream_wchar
*this,
11593 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11595 TRACE("(%p %s %d %d %d)\n", this, name
, mode
, prot
, virt_init
);
11597 basic_ofstream_wchar_ctor(this, virt_init
);
11599 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
11600 basic_ios_wchar
*basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11601 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11606 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@PBDHH@Z */
11607 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@PEBDHH@Z */
11608 DEFINE_THISCALL_WRAPPER(basic_ofstream_short_ctor_name
, 20)
11609 basic_ofstream_wchar
* __thiscall
basic_ofstream_short_ctor_name(basic_ofstream_wchar
*this,
11610 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11612 basic_ofstream_wchar_ctor_name(this, name
, mode
, prot
, virt_init
);
11613 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ofstream_short_vtable
;
11617 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@PBGHH@Z */
11618 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBGHH@Z */
11619 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@PB_WHH@Z */
11620 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEB_WHH@Z */
11621 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_ctor_name_wchar
, 20)
11622 basic_ofstream_wchar
* __thiscall
basic_ofstream_wchar_ctor_name_wchar(basic_ofstream_wchar
*this,
11623 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11625 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name
), mode
, prot
, virt_init
);
11627 basic_ofstream_wchar_ctor(this, virt_init
);
11629 if(!basic_filebuf_wchar_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
11630 basic_ios_wchar
*basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11631 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11636 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@PBGHH@Z */
11637 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@PEBGHH@Z */
11638 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@PB_WHH@Z */
11639 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@PEB_WHH@Z */
11640 DEFINE_THISCALL_WRAPPER(basic_ofstream_short_ctor_name_wchar
, 20)
11641 basic_ofstream_wchar
* __thiscall
basic_ofstream_short_ctor_name_wchar(basic_ofstream_wchar
*this,
11642 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11644 basic_ofstream_wchar_ctor_name_wchar(this, name
, mode
, prot
, virt_init
);
11645 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ofstream_short_vtable
;
11649 /* ??1?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
11650 /* ??1?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
11651 /* ??1?$basic_ofstream@GU?$char_traits@G@std@@@std@@UAE@XZ */
11652 /* ??1?$basic_ofstream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
11653 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_dtor
, 4)
11654 void __thiscall
basic_ofstream_wchar_dtor(basic_ios_wchar
*base
)
11656 basic_ofstream_wchar
*this = basic_ofstream_wchar_from_basic_ios(base
);
11658 TRACE("(%p)\n", this);
11660 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(&this->base
));
11661 basic_filebuf_wchar_dtor(&this->filebuf
);
11664 /* ??_D?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
11665 /* ??_D?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
11666 /* ??_D?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
11667 /* ??_D?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
11668 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_vbase_dtor
, 4)
11669 void __thiscall
basic_ofstream_wchar_vbase_dtor(basic_ofstream_wchar
*this)
11671 basic_ios_wchar
*base
= basic_ofstream_wchar_to_basic_ios(this);
11673 TRACE("(%p)\n", this);
11675 basic_ofstream_wchar_dtor(base
);
11676 basic_ios_wchar_dtor(base
);
11679 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_vector_dtor
, 8)
11680 basic_ofstream_wchar
* __thiscall
basic_ofstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
11682 basic_ofstream_wchar
*this = basic_ofstream_wchar_from_basic_ios(base
);
11684 TRACE("(%p %x)\n", this, flags
);
11687 /* we have an array, with the number of elements stored before the first object */
11688 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11690 for(i
=*ptr
-1; i
>=0; i
--)
11691 basic_ofstream_wchar_vbase_dtor(this+i
);
11692 MSVCRT_operator_delete(ptr
);
11694 basic_ofstream_wchar_vbase_dtor(this);
11696 MSVCRT_operator_delete(this);
11702 /* ?close@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
11703 /* ?close@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
11704 /* ?close@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
11705 /* ?close@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
11706 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_close
, 4)
11707 void __thiscall
basic_ofstream_wchar_close(basic_ofstream_wchar
*this)
11709 TRACE("(%p)\n", this);
11711 if(!basic_filebuf_wchar_close(&this->filebuf
)) {
11712 basic_ios_wchar
*basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11713 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11717 /* ?is_open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
11718 /* ?is_open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
11719 /* ?is_open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QBE_NXZ */
11720 /* ?is_open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
11721 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_is_open
, 4)
11722 MSVCP_bool __thiscall
basic_ofstream_wchar_is_open(const basic_ofstream_wchar
*this)
11724 TRACE("(%p)\n", this);
11725 return basic_filebuf_wchar_is_open(&this->filebuf
);
11728 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDHH@Z */
11729 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDHH@Z */
11730 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPBDHH@Z */
11731 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDHH@Z */
11732 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_open
, 16)
11733 void __thiscall
basic_ofstream_wchar_open(basic_ofstream_wchar
*this,
11734 const char *name
, int mode
, int prot
)
11736 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
11738 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
11739 basic_ios_wchar
*basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11740 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11744 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDI@Z */
11745 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDI@Z */
11746 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPBDI@Z */
11747 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDI@Z */
11748 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_open_old
, 12)
11749 void __thiscall
basic_ofstream_wchar_open_old(basic_ofstream_wchar
*this,
11750 const char *name
, unsigned int mode
)
11752 basic_ofstream_wchar_open(this, name
, mode
, _SH_DENYNO
);
11755 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGHH@Z */
11756 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGHH@Z */
11757 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WHH@Z */
11758 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WHH@Z */
11759 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPBGHH@Z */
11760 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGHH@Z */
11761 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPB_WHH@Z */
11762 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WHH@Z */
11763 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_open_wchar
, 16)
11764 void __thiscall
basic_ofstream_wchar_open_wchar(basic_ofstream_wchar
*this,
11765 const wchar_t *name
, int mode
, int prot
)
11767 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
11769 if(!basic_filebuf_wchar_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
11770 basic_ios_wchar
*basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11771 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11775 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGI@Z */
11776 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGI@Z */
11777 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WI@Z */
11778 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WI@Z */
11779 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPBGI@Z */
11780 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGI@Z */
11781 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPB_WI@Z */
11782 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WI@Z */
11783 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_open_wchar_old
, 12)
11784 void __thiscall
basic_ofstream_wchar_open_wchar_old(basic_ofstream_wchar
*this,
11785 const wchar_t *name
, unsigned int mode
)
11787 basic_ofstream_wchar_open_wchar(this, name
, mode
, _SH_DENYNO
);
11790 /* ?rdbuf@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
11791 /* ?rdbuf@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
11792 /* ?rdbuf@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
11793 /* ?rdbuf@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
11794 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_rdbuf
, 4)
11795 basic_filebuf_wchar
* __thiscall
basic_ofstream_wchar_rdbuf(const basic_ofstream_wchar
*this)
11797 TRACE("(%p)\n", this);
11798 return (basic_filebuf_wchar
*)&this->filebuf
;
11801 static inline basic_ios_char
* basic_ifstream_char_to_basic_ios(basic_ifstream_char
*ptr
)
11803 return (basic_ios_char
*)((char*)ptr
+basic_ifstream_char_vbtable
[1]);
11806 static inline basic_ifstream_char
* basic_ifstream_char_from_basic_ios(basic_ios_char
*ptr
)
11808 return (basic_ifstream_char
*)((char*)ptr
-basic_ifstream_char_vbtable
[1]);
11811 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@XZ */
11812 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@XZ */
11813 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor
, 8)
11814 basic_ifstream_char
* __thiscall
basic_ifstream_char_ctor(basic_ifstream_char
*this, MSVCP_bool virt_init
)
11816 basic_ios_char
*basic_ios
;
11818 TRACE("(%p %d)\n", this, virt_init
);
11821 this->base
.vbtable
= basic_ifstream_char_vbtable
;
11822 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11823 INIT_BASIC_IOS_VTORDISP(basic_ios
);
11824 basic_ios_char_ctor(basic_ios
);
11826 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11829 basic_filebuf_char_ctor(&this->filebuf
);
11830 basic_istream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
11831 basic_ios
->base
.vtable
= &MSVCP_basic_ifstream_char_vtable
;
11835 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
11836 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11837 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor_file
, 12)
11838 basic_ifstream_char
* __thiscall
basic_ifstream_char_ctor_file(
11839 basic_ifstream_char
*this, FILE *file
, MSVCP_bool virt_init
)
11841 basic_ios_char
*basic_ios
;
11843 TRACE("(%p %p %d)\n", this, file
, virt_init
);
11846 this->base
.vbtable
= basic_ifstream_char_vbtable
;
11847 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11848 INIT_BASIC_IOS_VTORDISP(basic_ios
);
11849 basic_ios_char_ctor(basic_ios
);
11851 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11854 basic_filebuf_char_ctor_file(&this->filebuf
, file
);
11855 basic_istream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
11856 basic_ios
->base
.vtable
= &MSVCP_basic_ifstream_char_vtable
;
11860 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PBDHH@Z */
11861 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDHH@Z */
11862 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor_name
, 20)
11863 basic_ifstream_char
* __thiscall
basic_ifstream_char_ctor_name(basic_ifstream_char
*this,
11864 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11866 TRACE("(%p %s %d %d %d)\n", this, name
, mode
, prot
, virt_init
);
11868 basic_ifstream_char_ctor(this, virt_init
);
11870 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
11871 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11872 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11877 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PBDH@Z */
11878 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDH@Z */
11879 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor_name_old
, 16)
11880 basic_ifstream_char
* __thiscall
basic_ifstream_char_ctor_name_old(basic_ifstream_char
*this,
11881 const char *name
, int mode
, MSVCP_bool virt_init
)
11883 return basic_ifstream_char_ctor_name(this, name
, mode
, _SH_DENYNO
, virt_init
);
11886 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PBGHH@Z */
11887 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEBGHH@Z */
11888 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PB_WHH@Z */
11889 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEB_WHH@Z */
11890 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor_name_wchar
, 20)
11891 basic_ifstream_char
* __thiscall
basic_ifstream_char_ctor_name_wchar(basic_ifstream_char
*this,
11892 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11894 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name
), mode
, prot
, virt_init
);
11896 basic_ifstream_char_ctor(this, virt_init
);
11898 if(!basic_filebuf_char_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
11899 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11900 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11905 /* ??1?$basic_ifstream@DU?$char_traits@D@std@@@std@@UAE@XZ */
11906 /* ??1?$basic_ifstream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
11907 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_dtor
, 4)
11908 void __thiscall
basic_ifstream_char_dtor(basic_ios_char
*base
)
11910 basic_ifstream_char
*this = basic_ifstream_char_from_basic_ios(base
);
11912 TRACE("(%p)\n", this);
11914 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&this->base
));
11915 basic_filebuf_char_dtor(&this->filebuf
);
11918 /* ??_D?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
11919 /* ??_D?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
11920 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_vbase_dtor
, 4)
11921 void __thiscall
basic_ifstream_char_vbase_dtor(basic_ifstream_char
*this)
11923 basic_ios_char
*base
= basic_ifstream_char_to_basic_ios(this);
11925 TRACE("(%p)\n", this);
11927 basic_ifstream_char_dtor(base
);
11928 basic_ios_char_dtor(base
);
11931 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_vector_dtor
, 8)
11932 basic_ifstream_char
* __thiscall
basic_ifstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
11934 basic_ifstream_char
*this = basic_ifstream_char_from_basic_ios(base
);
11936 TRACE("(%p %x)\n", this, flags
);
11939 /* we have an array, with the number of elements stored before the first object */
11940 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11942 for(i
=*ptr
-1; i
>=0; i
--)
11943 basic_ifstream_char_vbase_dtor(this+i
);
11944 MSVCRT_operator_delete(ptr
);
11946 basic_ifstream_char_vbase_dtor(this);
11948 MSVCRT_operator_delete(this);
11954 /* ?close@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
11955 /* ?close@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
11956 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_close
, 4)
11957 void __thiscall
basic_ifstream_char_close(basic_ifstream_char
*this)
11959 TRACE("(%p)\n", this);
11961 if(!basic_filebuf_char_close(&this->filebuf
)) {
11962 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11963 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11967 /* ?is_open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QBE_NXZ */
11968 /* ?is_open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
11969 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_is_open
, 4)
11970 MSVCP_bool __thiscall
basic_ifstream_char_is_open(const basic_ifstream_char
*this)
11972 TRACE("(%p)\n", this);
11973 return basic_filebuf_char_is_open(&this->filebuf
);
11976 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBDHH@Z */
11977 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDHH@Z */
11978 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_open
, 16)
11979 void __thiscall
basic_ifstream_char_open(basic_ifstream_char
*this,
11980 const char *name
, int mode
, int prot
)
11982 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
11984 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
11985 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11986 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11990 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBDI@Z */
11991 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDI@Z */
11992 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_open_old
, 12)
11993 void __thiscall
basic_ifstream_char_open_old(basic_ifstream_char
*this,
11994 const char *name
, unsigned int mode
)
11996 basic_ifstream_char_open(this, name
, mode
, _SH_DENYNO
);
11999 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBGHH@Z */
12000 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGHH@Z */
12001 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPB_WHH@Z */
12002 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WHH@Z */
12003 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_open_wchar
, 16)
12004 void __thiscall
basic_ifstream_char_open_wchar(basic_ifstream_char
*this,
12005 const wchar_t *name
, int mode
, int prot
)
12007 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
12009 if(!basic_filebuf_char_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
12010 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
12011 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
12015 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBGI@Z */
12016 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGI@Z */
12017 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPB_WI@Z */
12018 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WI@Z */
12019 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_open_wchar_old
, 12)
12020 void __thiscall
basic_ifstream_char_open_wchar_old(basic_ifstream_char
*this,
12021 const wchar_t *name
, unsigned int mode
)
12023 basic_ifstream_char_open_wchar(this, name
, mode
, _SH_DENYNO
);
12026 /* ?rdbuf@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
12027 /* ?rdbuf@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
12028 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_rdbuf
, 4)
12029 basic_filebuf_char
* __thiscall
basic_ifstream_char_rdbuf(const basic_ifstream_char
*this)
12031 TRACE("(%p)\n", this);
12032 return (basic_filebuf_char
*)&this->filebuf
;
12035 static inline basic_ios_wchar
* basic_ifstream_wchar_to_basic_ios(basic_ifstream_wchar
*ptr
)
12037 return (basic_ios_wchar
*)((char*)ptr
+basic_ifstream_wchar_vbtable
[1]);
12040 static inline basic_ifstream_wchar
* basic_ifstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
12042 return (basic_ifstream_wchar
*)((char*)ptr
-basic_ifstream_wchar_vbtable
[1]);
12045 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@XZ */
12046 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@XZ */
12047 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_ctor
, 8)
12048 basic_ifstream_wchar
* __thiscall
basic_ifstream_wchar_ctor(basic_ifstream_wchar
*this, MSVCP_bool virt_init
)
12050 basic_ios_wchar
*basic_ios
;
12052 TRACE("(%p %d)\n", this, virt_init
);
12055 this->base
.vbtable
= basic_ifstream_wchar_vbtable
;
12056 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12057 INIT_BASIC_IOS_VTORDISP(basic_ios
);
12058 basic_ios_wchar_ctor(basic_ios
);
12060 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12063 basic_filebuf_wchar_ctor(&this->filebuf
);
12064 basic_istream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
12065 basic_ios
->base
.vtable
= &MSVCP_basic_ifstream_wchar_vtable
;
12069 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@XZ */
12070 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@XZ */
12071 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor
, 8)
12072 basic_ifstream_wchar
* __thiscall
basic_ifstream_short_ctor(basic_ifstream_wchar
*this, MSVCP_bool virt_init
)
12074 basic_ifstream_wchar_ctor(this, virt_init
);
12075 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ifstream_short_vtable
;
12079 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
12080 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
12081 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_ctor_file
, 12)
12082 basic_ifstream_wchar
* __thiscall
basic_ifstream_wchar_ctor_file(
12083 basic_ifstream_wchar
*this, FILE *file
, MSVCP_bool virt_init
)
12085 basic_ios_wchar
*basic_ios
;
12087 TRACE("(%p %p %d)\n", this, file
, virt_init
);
12090 this->base
.vbtable
= basic_ifstream_wchar_vbtable
;
12091 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12092 INIT_BASIC_IOS_VTORDISP(basic_ios
);
12093 basic_ios_wchar_ctor(basic_ios
);
12095 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12098 basic_filebuf_wchar_ctor_file(&this->filebuf
, file
);
12099 basic_istream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
12100 basic_ios
->base
.vtable
= &MSVCP_basic_ifstream_wchar_vtable
;
12104 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
12105 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
12106 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor_file
, 12)
12107 basic_ifstream_wchar
* __thiscall
basic_ifstream_short_ctor_file(
12108 basic_ifstream_wchar
*this, FILE *file
, MSVCP_bool virt_init
)
12110 basic_ifstream_wchar_ctor_file(this, file
, virt_init
);
12111 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ifstream_short_vtable
;
12115 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@PBDHH@Z */
12116 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBDHH@Z */
12117 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_ctor_name
, 20)
12118 basic_ifstream_wchar
* __thiscall
basic_ifstream_wchar_ctor_name(basic_ifstream_wchar
*this,
12119 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12121 TRACE("(%p %s %d %d %d)\n", this, name
, mode
, prot
, virt_init
);
12123 basic_ifstream_wchar_ctor(this, virt_init
);
12125 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
12126 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12127 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12132 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@PBDHH@Z */
12133 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@PEBDHH@Z */
12134 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor_name
, 20)
12135 basic_ifstream_wchar
* __thiscall
basic_ifstream_short_ctor_name(basic_ifstream_wchar
*this,
12136 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12138 basic_ifstream_wchar_ctor_name(this, name
, mode
, prot
, virt_init
);
12139 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ifstream_short_vtable
;
12143 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@PBDH@Z */
12144 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBDH@Z */
12145 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_ctor_name_old
, 16)
12146 basic_ifstream_wchar
* __thiscall
basic_ifstream_wchar_ctor_name_old(basic_ifstream_wchar
*this,
12147 const char *name
, int mode
, MSVCP_bool virt_init
)
12149 return basic_ifstream_wchar_ctor_name(this, name
, mode
, _SH_DENYNO
, virt_init
);
12152 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@PBDH@Z */
12153 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@PEBDH@Z */
12154 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor_name_old
, 16)
12155 basic_ifstream_wchar
* __thiscall
basic_ifstream_short_ctor_name_old(basic_ifstream_wchar
*this,
12156 const char *name
, int mode
, MSVCP_bool virt_init
)
12158 return basic_ifstream_short_ctor_name(this, name
, mode
, _SH_DENYNO
, virt_init
);
12161 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@PBGHH@Z */
12162 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBGHH@Z */
12163 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@PB_WHH@Z */
12164 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEB_WHH@Z */
12165 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_ctor_name_wchar
, 20)
12166 basic_ifstream_wchar
* __thiscall
basic_ifstream_wchar_ctor_name_wchar(basic_ifstream_wchar
*this,
12167 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12169 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name
), mode
, prot
, virt_init
);
12171 basic_ifstream_wchar_ctor(this, virt_init
);
12173 if(!basic_filebuf_wchar_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
12174 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12175 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12180 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@PBGHH@Z */
12181 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@PEBGHH@Z */
12182 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@PB_WHH@Z */
12183 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@PEB_WHH@Z */
12184 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor_name_wchar
, 20)
12185 basic_ifstream_wchar
* __thiscall
basic_ifstream_short_ctor_name_wchar(basic_ifstream_wchar
*this,
12186 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12188 basic_ifstream_wchar_ctor_name_wchar(this, name
, mode
, prot
, virt_init
);
12189 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ifstream_short_vtable
;
12193 /* ??1?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
12194 /* ??1?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
12195 /* ??1?$basic_ifstream@GU?$char_traits@G@std@@@std@@UAE@XZ */
12196 /* ??1?$basic_ifstream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
12197 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_dtor
, 4)
12198 void __thiscall
basic_ifstream_wchar_dtor(basic_ios_wchar
*base
)
12200 basic_ifstream_wchar
*this = basic_ifstream_wchar_from_basic_ios(base
);
12202 TRACE("(%p)\n", this);
12204 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(&this->base
));
12205 basic_filebuf_wchar_dtor(&this->filebuf
);
12208 /* ??_D?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
12209 /* ??_D?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
12210 /* ??_D?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
12211 /* ??_D?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
12212 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_vbase_dtor
, 4)
12213 void __thiscall
basic_ifstream_wchar_vbase_dtor(basic_ifstream_wchar
*this)
12215 basic_ios_wchar
*base
= basic_ifstream_wchar_to_basic_ios(this);
12217 TRACE("(%p)\n", this);
12219 basic_ifstream_wchar_dtor(base
);
12220 basic_ios_wchar_dtor(base
);
12223 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_vector_dtor
, 8)
12224 basic_ifstream_wchar
* __thiscall
basic_ifstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
12226 basic_ifstream_wchar
*this = basic_ifstream_wchar_from_basic_ios(base
);
12228 TRACE("(%p %x)\n", this, flags
);
12231 /* we have an array, with the number of elements stored before the first object */
12232 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
12234 for(i
=*ptr
-1; i
>=0; i
--)
12235 basic_ifstream_wchar_vbase_dtor(this+i
);
12236 MSVCRT_operator_delete(ptr
);
12238 basic_ifstream_wchar_vbase_dtor(this);
12240 MSVCRT_operator_delete(this);
12246 /* ?close@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
12247 /* ?close@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
12248 /* ?close@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
12249 /* ?close@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
12250 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_close
, 4)
12251 void __thiscall
basic_ifstream_wchar_close(basic_ifstream_wchar
*this)
12253 TRACE("(%p)\n", this);
12255 if(!basic_filebuf_wchar_close(&this->filebuf
)) {
12256 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12257 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12261 /* ?is_open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
12262 /* ?is_open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
12263 /* ?is_open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QBE_NXZ */
12264 /* ?is_open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
12265 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_is_open
, 4)
12266 MSVCP_bool __thiscall
basic_ifstream_wchar_is_open(const basic_ifstream_wchar
*this)
12268 TRACE("(%p)\n", this);
12269 return basic_filebuf_wchar_is_open(&this->filebuf
);
12272 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDHH@Z */
12273 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDHH@Z */
12274 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPBDHH@Z */
12275 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDHH@Z */
12276 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_open
, 16)
12277 void __thiscall
basic_ifstream_wchar_open(basic_ifstream_wchar
*this,
12278 const char *name
, int mode
, int prot
)
12280 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
12282 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
12283 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12284 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12288 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDI@Z */
12289 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDI@Z */
12290 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPBDI@Z */
12291 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDI@Z */
12292 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_open_old
, 12)
12293 void __thiscall
basic_ifstream_wchar_open_old(basic_ifstream_wchar
*this,
12294 const char *name
, unsigned int mode
)
12296 basic_ifstream_wchar_open(this, name
, mode
, _SH_DENYNO
);
12299 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGHH@Z */
12300 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGHH@Z */
12301 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WHH@Z */
12302 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WHH@Z */
12303 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPBGHH@Z */
12304 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGHH@Z */
12305 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPB_WHH@Z */
12306 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WHH@Z */
12307 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_open_wchar
, 16)
12308 void __thiscall
basic_ifstream_wchar_open_wchar(basic_ifstream_wchar
*this,
12309 const wchar_t *name
, int mode
, int prot
)
12311 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
12313 if(!basic_filebuf_wchar_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
12314 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12315 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12319 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGI@Z */
12320 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGI@Z */
12321 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WI@Z */
12322 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WI@Z */
12323 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPBGI@Z */
12324 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGI@Z */
12325 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPB_WI@Z */
12326 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WI@Z */
12327 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_open_wchar_old
, 12)
12328 void __thiscall
basic_ifstream_wchar_open_wchar_old(basic_ifstream_wchar
*this,
12329 const wchar_t *name
, unsigned int mode
)
12331 basic_ifstream_wchar_open_wchar(this, name
, mode
, _SH_DENYNO
);
12334 /* ?rdbuf@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
12335 /* ?rdbuf@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
12336 /* ?rdbuf@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
12337 /* ?rdbuf@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
12338 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_rdbuf
, 4)
12339 basic_filebuf_wchar
* __thiscall
basic_ifstream_wchar_rdbuf(const basic_ifstream_wchar
*this)
12341 TRACE("(%p)\n", this);
12342 return (basic_filebuf_wchar
*)&this->filebuf
;
12345 static inline basic_ios_char
* basic_fstream_char_to_basic_ios(basic_fstream_char
*ptr
)
12347 return (basic_ios_char
*)((char*)ptr
+basic_fstream_char_vbtable1
[1]);
12350 static inline basic_fstream_char
* basic_fstream_char_from_basic_ios(basic_ios_char
*ptr
)
12352 return (basic_fstream_char
*)((char*)ptr
-basic_fstream_char_vbtable1
[1]);
12355 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@XZ */
12356 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@XZ */
12357 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor
, 8)
12358 basic_fstream_char
* __thiscall
basic_fstream_char_ctor(basic_fstream_char
*this, MSVCP_bool virt_init
)
12360 basic_ios_char
*basic_ios
;
12362 TRACE("(%p %d)\n", this, virt_init
);
12365 this->base
.base1
.vbtable
= basic_fstream_char_vbtable1
;
12366 this->base
.base2
.vbtable
= basic_fstream_char_vbtable2
;
12367 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12368 INIT_BASIC_IOS_VTORDISP(basic_ios
);
12369 basic_ios_char_ctor(basic_ios
);
12371 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12374 basic_filebuf_char_ctor(&this->filebuf
);
12375 basic_iostream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
);
12376 basic_ios
->base
.vtable
= &MSVCP_basic_fstream_char_vtable
;
12380 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
12381 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
12382 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor_file
, 12)
12383 basic_fstream_char
* __thiscall
basic_fstream_char_ctor_file(basic_fstream_char
*this,
12384 FILE *file
, MSVCP_bool virt_init
)
12386 basic_ios_char
*basic_ios
;
12388 TRACE("(%p %p %d)\n", this, file
, virt_init
);
12391 this->base
.base1
.vbtable
= basic_fstream_char_vbtable1
;
12392 this->base
.base2
.vbtable
= basic_fstream_char_vbtable2
;
12393 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12394 INIT_BASIC_IOS_VTORDISP(basic_ios
);
12395 basic_ios_char_ctor(basic_ios
);
12397 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12400 basic_filebuf_char_ctor_file(&this->filebuf
, file
);
12401 basic_iostream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
);
12402 basic_ios
->base
.vtable
= &MSVCP_basic_fstream_char_vtable
;
12406 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PBDHH@Z */
12407 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDHH@Z */
12408 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor_name
, 20)
12409 basic_fstream_char
* __thiscall
basic_fstream_char_ctor_name(basic_fstream_char
*this,
12410 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12412 TRACE("(%p %s %d %d %d)\n", this, name
, mode
, prot
, virt_init
);
12414 basic_fstream_char_ctor(this, virt_init
);
12416 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
, prot
)) {
12417 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12418 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
12423 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PBDH@Z */
12424 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDH@Z */
12425 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor_name_noprot
, 16)
12426 basic_fstream_char
* __thiscall
basic_fstream_char_ctor_name_noprot(basic_fstream_char
*this,
12427 const char *name
, int mode
, MSVCP_bool virt_init
)
12429 return basic_fstream_char_ctor_name(this, name
, mode
, _SH_DENYNO
, virt_init
);
12432 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PBGHH@Z */
12433 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEBGHH@Z */
12434 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PB_WHH@Z */
12435 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEB_WHH@Z */
12436 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor_name_wchar
, 20)
12437 basic_fstream_char
* __thiscall
basic_fstream_char_ctor_name_wchar(basic_fstream_char
*this,
12438 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12440 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name
), mode
, prot
, virt_init
);
12442 basic_fstream_char_ctor(this, virt_init
);
12444 if(!basic_filebuf_char_open_wchar(&this->filebuf
, name
, mode
, prot
)) {
12445 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12446 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
12451 /* ??1?$basic_fstream@DU?$char_traits@D@std@@@std@@UAE@XZ */
12452 /* ??1?$basic_fstream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
12453 DEFINE_THISCALL_WRAPPER(basic_fstream_char_dtor
, 4)
12454 void __thiscall
basic_fstream_char_dtor(basic_ios_char
*base
)
12456 basic_fstream_char
*this = basic_fstream_char_from_basic_ios(base
);
12458 TRACE("(%p)\n", this);
12460 basic_iostream_char_dtor(basic_iostream_char_to_basic_ios(&this->base
));
12461 basic_filebuf_char_dtor(&this->filebuf
);
12464 /* ??_D?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
12465 /* ??_D?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
12466 DEFINE_THISCALL_WRAPPER(basic_fstream_char_vbase_dtor
, 4)
12467 void __thiscall
basic_fstream_char_vbase_dtor(basic_fstream_char
*this)
12469 basic_ios_char
*base
= basic_fstream_char_to_basic_ios(this);
12471 TRACE("(%p)\n", this);
12473 basic_fstream_char_dtor(base
);
12474 basic_ios_char_dtor(base
);
12477 DEFINE_THISCALL_WRAPPER(basic_fstream_char_vector_dtor
, 8)
12478 basic_fstream_char
* __thiscall
basic_fstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
12480 basic_fstream_char
*this = basic_fstream_char_from_basic_ios(base
);
12482 TRACE("(%p %x)\n", this, flags
);
12485 /* we have an array, with the number of elements stored before the first object */
12486 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
12488 for(i
=*ptr
-1; i
>=0; i
--)
12489 basic_fstream_char_vbase_dtor(this+i
);
12490 MSVCRT_operator_delete(ptr
);
12492 basic_fstream_char_vbase_dtor(this);
12494 MSVCRT_operator_delete(this);
12500 /* ?close@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
12501 /* ?close@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
12502 DEFINE_THISCALL_WRAPPER(basic_fstream_char_close
, 4)
12503 void __thiscall
basic_fstream_char_close(basic_fstream_char
*this)
12505 TRACE("(%p)\n", this);
12507 if(!basic_filebuf_char_close(&this->filebuf
)) {
12508 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12509 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
12513 /* ?is_open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QBE_NXZ */
12514 /* ?is_open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
12515 DEFINE_THISCALL_WRAPPER(basic_fstream_char_is_open
, 4)
12516 MSVCP_bool __thiscall
basic_fstream_char_is_open(const basic_fstream_char
*this)
12518 TRACE("(%p)\n", this);
12519 return basic_filebuf_char_is_open(&this->filebuf
);
12522 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPBDHH@Z */
12523 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDHH@Z */
12524 DEFINE_THISCALL_WRAPPER(basic_fstream_char_open
, 16)
12525 void __thiscall
basic_fstream_char_open(basic_fstream_char
*this,
12526 const char *name
, int mode
, int prot
)
12528 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
12530 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
, prot
)) {
12531 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12532 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
12536 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPBDI@Z */
12537 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDI@Z */
12538 DEFINE_THISCALL_WRAPPER(basic_fstream_char_open_old
, 12)
12539 void __thiscall
basic_fstream_char_open_old(basic_fstream_char
*this,
12540 const char *name
, unsigned int mode
)
12542 basic_fstream_char_open(this, name
, mode
, _SH_DENYNO
);
12545 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPBGHH@Z */
12546 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGHH@Z */
12547 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPB_WHH@Z */
12548 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WHH@Z */
12549 DEFINE_THISCALL_WRAPPER(basic_fstream_char_open_wchar
, 16)
12550 void __thiscall
basic_fstream_char_open_wchar(basic_fstream_char
*this,
12551 const wchar_t *name
, int mode
, int prot
)
12553 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
12555 if(!basic_filebuf_char_open_wchar(&this->filebuf
, name
, mode
, prot
)) {
12556 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12557 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
12561 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPBGI@Z */
12562 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGI@Z */
12563 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPB_WI@Z */
12564 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WI@Z */
12565 DEFINE_THISCALL_WRAPPER(basic_fstream_char_open_wchar_old
, 12)
12566 void __thiscall
basic_fstream_char_open_wchar_old(basic_fstream_char
*this,
12567 const wchar_t *name
, unsigned int mode
)
12569 basic_fstream_char_open_wchar(this, name
, mode
, _SH_DENYNO
);
12572 /* ?rdbuf@?$basic_fstream@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
12573 /* ?rdbuf@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
12574 DEFINE_THISCALL_WRAPPER(basic_fstream_char_rdbuf
, 4)
12575 basic_filebuf_char
* __thiscall
basic_fstream_char_rdbuf(const basic_fstream_char
*this)
12577 TRACE("(%p)\n", this);
12578 return (basic_filebuf_char
*)&this->filebuf
;
12581 static inline basic_ios_wchar
* basic_fstream_wchar_to_basic_ios(basic_fstream_wchar
*ptr
)
12583 return (basic_ios_wchar
*)((char*)ptr
+basic_fstream_wchar_vbtable1
[1]);
12586 static inline basic_fstream_wchar
* basic_fstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
12588 return (basic_fstream_wchar
*)((char*)ptr
-basic_fstream_wchar_vbtable1
[1]);
12591 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@XZ */
12592 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@XZ */
12593 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_ctor
, 8)
12594 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_ctor(basic_fstream_wchar
*this, MSVCP_bool virt_init
)
12596 basic_ios_wchar
*basic_ios
;
12598 TRACE("(%p %d)\n", this, virt_init
);
12601 this->base
.base1
.vbtable
= basic_fstream_wchar_vbtable1
;
12602 this->base
.base2
.vbtable
= basic_fstream_wchar_vbtable2
;
12603 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12604 INIT_BASIC_IOS_VTORDISP(basic_ios
);
12605 basic_ios_wchar_ctor(basic_ios
);
12607 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12610 basic_filebuf_wchar_ctor(&this->filebuf
);
12611 basic_iostream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
);
12612 basic_ios
->base
.vtable
= &MSVCP_basic_fstream_wchar_vtable
;
12616 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@XZ */
12617 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@XZ */
12618 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor
, 8)
12619 basic_fstream_wchar
* __thiscall
basic_fstream_short_ctor(basic_fstream_wchar
*this, MSVCP_bool virt_init
)
12621 basic_fstream_wchar_ctor(this, virt_init
);
12622 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_fstream_short_vtable
;
12626 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
12627 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
12628 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_ctor_file
, 12)
12629 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_ctor_file(basic_fstream_wchar
*this,
12630 FILE *file
, MSVCP_bool virt_init
)
12632 basic_ios_wchar
*basic_ios
;
12634 TRACE("(%p %p %d)\n", this, file
, virt_init
);
12637 this->base
.base1
.vbtable
= basic_fstream_wchar_vbtable1
;
12638 this->base
.base2
.vbtable
= basic_fstream_wchar_vbtable2
;
12639 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12640 INIT_BASIC_IOS_VTORDISP(basic_ios
);
12641 basic_ios_wchar_ctor(basic_ios
);
12643 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12646 basic_filebuf_wchar_ctor_file(&this->filebuf
, file
);
12647 basic_iostream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
);
12648 basic_ios
->base
.vtable
= &MSVCP_basic_fstream_wchar_vtable
;
12652 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
12653 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
12654 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor_file
, 12)
12655 basic_fstream_wchar
* __thiscall
basic_fstream_short_ctor_file(basic_fstream_wchar
*this,
12656 FILE *file
, MSVCP_bool virt_init
)
12658 basic_fstream_wchar_ctor_file(this, file
, virt_init
);
12659 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_fstream_short_vtable
;
12663 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PB_WHH@Z */
12664 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEB_WHH@Z */
12665 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_ctor_name
, 20)
12666 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_ctor_name(basic_fstream_wchar
*this,
12667 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12669 TRACE("(%p %s %d %d %d)\n", this, name
, mode
, prot
, virt_init
);
12671 basic_fstream_wchar_ctor(this, virt_init
);
12673 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
, prot
)) {
12674 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12675 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12680 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@PBGHH@Z */
12681 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@PEBGHH@Z */
12682 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor_name
, 20)
12683 basic_fstream_wchar
* __thiscall
basic_fstream_short_ctor_name(basic_fstream_wchar
*this,
12684 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12686 basic_fstream_wchar_ctor_name(this, name
, mode
, prot
, virt_init
);
12687 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_fstream_short_vtable
;
12691 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PBDH@Z */
12692 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_ctor_name_noprot
, 16)
12693 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_ctor_name_noprot(basic_fstream_wchar
*this,
12694 const char *name
, int mode
, MSVCP_bool virt_init
)
12696 return basic_fstream_wchar_ctor_name(this, name
, mode
, _SH_DENYNO
, virt_init
);
12699 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@PBDH@Z */
12700 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@PEBDH@Z */
12701 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor_name_noprot
, 16)
12702 basic_fstream_wchar
* __thiscall
basic_fstream_short_ctor_name_noprot(basic_fstream_wchar
*this,
12703 const char *name
, int mode
, MSVCP_bool virt_init
)
12705 return basic_fstream_short_ctor_name(this, name
, mode
, _SH_DENYNO
, virt_init
);
12708 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PBGHH@Z */
12709 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBGHH@Z */
12710 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PB_WHH@Z */
12711 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEB_WHH@Z */
12712 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_ctor_name_wchar
, 20)
12713 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_ctor_name_wchar(basic_fstream_wchar
*this,
12714 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12716 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name
), mode
, prot
, virt_init
);
12718 basic_fstream_wchar_ctor(this, virt_init
);
12720 if(!basic_filebuf_wchar_open_wchar(&this->filebuf
, name
, mode
, prot
)) {
12721 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12722 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12727 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@PBGHH@Z */
12728 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@PEBGHH@Z */
12729 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@PB_WHH@Z */
12730 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@PEB_WHH@Z */
12731 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor_name_wchar
, 20)
12732 basic_fstream_wchar
* __thiscall
basic_fstream_short_ctor_name_wchar(basic_fstream_wchar
*this,
12733 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12735 basic_fstream_wchar_ctor_name_wchar(this, name
, mode
, prot
, virt_init
);
12736 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_fstream_short_vtable
;
12740 /* ??1?$basic_fstream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
12741 /* ??1?$basic_fstream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
12742 /* ??1?$basic_fstream@GU?$char_traits@G@std@@@std@@UAE@XZ */
12743 /* ??1?$basic_fstream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
12744 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_dtor
, 4)
12745 void __thiscall
basic_fstream_wchar_dtor(basic_ios_wchar
*base
)
12747 basic_fstream_wchar
*this = basic_fstream_wchar_from_basic_ios(base
);
12749 TRACE("(%p)\n", this);
12751 basic_iostream_wchar_dtor(basic_iostream_wchar_to_basic_ios(&this->base
));
12752 basic_filebuf_wchar_dtor(&this->filebuf
);
12755 /* ??_D?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
12756 /* ??_D?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
12757 /* ??_D?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
12758 /* ??_D?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
12759 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_vbase_dtor
, 4)
12760 void __thiscall
basic_fstream_wchar_vbase_dtor(basic_fstream_wchar
*this)
12762 basic_ios_wchar
*base
= basic_fstream_wchar_to_basic_ios(this);
12764 TRACE("(%p)\n", this);
12766 basic_fstream_wchar_dtor(base
);
12767 basic_ios_wchar_dtor(base
);
12770 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_vector_dtor
, 8)
12771 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
12773 basic_fstream_wchar
*this = basic_fstream_wchar_from_basic_ios(base
);
12775 TRACE("(%p %x)\n", this, flags
);
12778 /* we have an array, with the number of elements stored before the first object */
12779 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
12781 for(i
=*ptr
-1; i
>=0; i
--)
12782 basic_fstream_wchar_vbase_dtor(this+i
);
12783 MSVCRT_operator_delete(ptr
);
12785 basic_fstream_wchar_vbase_dtor(this);
12787 MSVCRT_operator_delete(this);
12793 /* ?close@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
12794 /* ?close@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
12795 /* ?close@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
12796 /* ?close@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
12797 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_close
, 4)
12798 void __thiscall
basic_fstream_wchar_close(basic_fstream_wchar
*this)
12800 TRACE("(%p)\n", this);
12802 if(!basic_filebuf_wchar_close(&this->filebuf
)) {
12803 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12804 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12808 /* ?is_open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
12809 /* ?is_open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
12810 /* ?is_open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QBE_NXZ */
12811 /* ?is_open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
12812 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_is_open
, 4)
12813 MSVCP_bool __thiscall
basic_fstream_wchar_is_open(const basic_fstream_wchar
*this)
12815 TRACE("(%p)\n", this);
12816 return basic_filebuf_wchar_is_open(&this->filebuf
);
12819 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDHH@Z */
12820 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDHH@Z */
12821 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPBDHH@Z */
12822 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDHH@Z */
12823 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_open
, 16)
12824 void __thiscall
basic_fstream_wchar_open(basic_fstream_wchar
*this,
12825 const char *name
, int mode
, int prot
)
12827 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
12829 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
, prot
)) {
12830 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12831 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12835 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDI@Z */
12836 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDI@Z */
12837 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPBDI@Z */
12838 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDI@Z */
12839 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_open_old
, 12)
12840 void __thiscall
basic_fstream_wchar_open_old(basic_fstream_wchar
*this,
12841 const char *name
, unsigned int mode
)
12843 basic_fstream_wchar_open(this, name
, mode
, _SH_DENYNO
);
12846 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGHH@Z */
12847 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGHH@Z */
12848 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WHH@Z */
12849 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WHH@Z */
12850 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPBGHH@Z */
12851 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGHH@Z */
12852 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPB_WHH@Z */
12853 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WHH@Z */
12854 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_open_wchar
, 16)
12855 void __thiscall
basic_fstream_wchar_open_wchar(basic_fstream_wchar
*this,
12856 const wchar_t *name
, int mode
, int prot
)
12858 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
12860 if(!basic_filebuf_wchar_open_wchar(&this->filebuf
, name
, mode
, prot
)) {
12861 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12862 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12866 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGI@Z */
12867 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGI@Z */
12868 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WI@Z */
12869 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WI@Z */
12870 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPBGI@Z */
12871 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGI@Z */
12872 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPB_WI@Z */
12873 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WI@Z */
12874 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_open_wchar_old
, 12)
12875 void __thiscall
basic_fstream_wchar_open_wchar_old(basic_fstream_wchar
*this,
12876 const wchar_t *name
, unsigned int mode
)
12878 basic_fstream_wchar_open_wchar(this, name
, mode
, _SH_DENYNO
);
12881 /* ?rdbuf@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
12882 /* ?rdbuf@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
12883 /* ?rdbuf@?$basic_fstream@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
12884 /* ?rdbuf@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
12885 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_rdbuf
, 4)
12886 basic_filebuf_wchar
* __thiscall
basic_fstream_wchar_rdbuf(const basic_fstream_wchar
*this)
12888 TRACE("(%p)\n", this);
12889 return (basic_filebuf_wchar
*)&this->filebuf
;
12892 static inline basic_ios_char
* basic_ostringstream_char_to_basic_ios(basic_ostringstream_char
*ptr
)
12894 return (basic_ios_char
*)((char*)ptr
+basic_ostringstream_char_vbtable
[1]);
12897 static inline basic_ostringstream_char
* basic_ostringstream_char_from_basic_ios(basic_ios_char
*ptr
)
12899 return (basic_ostringstream_char
*)((char*)ptr
-basic_ostringstream_char_vbtable
[1]);
12902 /* ??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 */
12903 /* ??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 */
12904 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_ctor_str
, 16)
12905 basic_ostringstream_char
* __thiscall
basic_ostringstream_char_ctor_str(basic_ostringstream_char
*this,
12906 const basic_string_char
*str
, int mode
, MSVCP_bool virt_init
)
12908 basic_ios_char
*basic_ios
;
12910 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
12913 this->base
.vbtable
= basic_ostringstream_char_vbtable
;
12914 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
12915 INIT_BASIC_IOS_VTORDISP(basic_ios
);
12916 basic_ios_char_ctor(basic_ios
);
12918 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
12921 basic_stringbuf_char_ctor_str(&this->strbuf
, str
, mode
|OPENMODE_out
);
12922 basic_ostream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
12923 basic_ios
->base
.vtable
= &MSVCP_basic_ostringstream_char_vtable
;
12927 /* ??0?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
12928 /* ??0?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
12929 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_ctor_mode
, 12)
12930 basic_ostringstream_char
* __thiscall
basic_ostringstream_char_ctor_mode(
12931 basic_ostringstream_char
*this, int mode
, MSVCP_bool virt_init
)
12933 basic_ios_char
*basic_ios
;
12935 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
12938 this->base
.vbtable
= basic_ostringstream_char_vbtable
;
12939 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
12940 INIT_BASIC_IOS_VTORDISP(basic_ios
);
12941 basic_ios_char_ctor(basic_ios
);
12943 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
12946 basic_stringbuf_char_ctor_mode(&this->strbuf
, mode
|OPENMODE_out
);
12947 basic_ostream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
12948 basic_ios
->base
.vtable
= &MSVCP_basic_ostringstream_char_vtable
;
12952 /* ??_F?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
12953 /* ??_F?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
12954 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_ctor
, 4)
12955 basic_ostringstream_char
* __thiscall
basic_ostringstream_char_ctor(
12956 basic_ostringstream_char
*this)
12958 return basic_ostringstream_char_ctor_mode(this, 0, TRUE
);
12961 /* ??1?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
12962 /* ??1?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
12963 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_dtor
, 4)
12964 void __thiscall
basic_ostringstream_char_dtor(basic_ios_char
*base
)
12966 basic_ostringstream_char
*this = basic_ostringstream_char_from_basic_ios(base
);
12968 TRACE("(%p)\n", this);
12970 basic_stringbuf_char_dtor(&this->strbuf
);
12971 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&this->base
));
12974 /* ??_D?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
12975 /* ??_D?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
12976 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_vbase_dtor
, 4)
12977 void __thiscall
basic_ostringstream_char_vbase_dtor(basic_ostringstream_char
*this)
12979 basic_ios_char
*base
= basic_ostringstream_char_to_basic_ios(this);
12981 TRACE("(%p)\n", this);
12983 basic_ostringstream_char_dtor(base
);
12984 basic_ios_char_dtor(base
);
12987 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_vector_dtor
, 8)
12988 basic_ostringstream_char
* __thiscall
basic_ostringstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
12990 basic_ostringstream_char
*this = basic_ostringstream_char_from_basic_ios(base
);
12992 TRACE("(%p %x)\n", this, flags
);
12995 /* we have an array, with the number of elements stored before the first object */
12996 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
12998 for(i
=*ptr
-1; i
>=0; i
--)
12999 basic_ostringstream_char_vbase_dtor(this+i
);
13000 MSVCRT_operator_delete(ptr
);
13002 basic_ostringstream_char_vbase_dtor(this);
13004 MSVCRT_operator_delete(this);
13010 /* ?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 */
13011 /* ?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 */
13012 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_rdbuf
, 4)
13013 basic_stringbuf_char
* __thiscall
basic_ostringstream_char_rdbuf(const basic_ostringstream_char
*this)
13015 TRACE("(%p)\n", this);
13016 return (basic_stringbuf_char
*)&this->strbuf
;
13019 /* ?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 */
13020 /* ?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 */
13021 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_str_set
, 8)
13022 void __thiscall
basic_ostringstream_char_str_set(basic_ostringstream_char
*this, const basic_string_char
*str
)
13024 TRACE("(%p %p)\n", this, str
);
13025 basic_stringbuf_char_str_set(&this->strbuf
, str
);
13028 /* ?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 */
13029 /* ?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 */
13030 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_str_get
, 8)
13031 basic_string_char
* __thiscall
basic_ostringstream_char_str_get(const basic_ostringstream_char
*this, basic_string_char
*ret
)
13033 TRACE("(%p %p)\n", this, ret
);
13034 return basic_stringbuf_char_str_get(&this->strbuf
, ret
);
13037 static inline basic_ios_wchar
* basic_ostringstream_wchar_to_basic_ios(basic_ostringstream_wchar
*ptr
)
13039 return (basic_ios_wchar
*)((char*)ptr
+basic_ostringstream_wchar_vbtable
[1]);
13042 static inline basic_ostringstream_wchar
* basic_ostringstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
13044 return (basic_ostringstream_wchar
*)((char*)ptr
-basic_ostringstream_wchar_vbtable
[1]);
13047 /* ??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 */
13048 /* ??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 */
13049 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_ctor_str
, 16)
13050 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_wchar_ctor_str(basic_ostringstream_wchar
*this,
13051 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
13053 basic_ios_wchar
*basic_ios
;
13055 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
13058 this->base
.vbtable
= basic_ostringstream_wchar_vbtable
;
13059 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
13060 INIT_BASIC_IOS_VTORDISP(basic_ios
);
13061 basic_ios_wchar_ctor(basic_ios
);
13063 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
13066 basic_stringbuf_wchar_ctor_str(&this->strbuf
, str
, mode
|OPENMODE_out
);
13067 basic_ostream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
13068 basic_ios
->base
.vtable
= &MSVCP_basic_ostringstream_wchar_vtable
;
13072 /* ??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 */
13073 /* ??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 */
13074 DEFINE_THISCALL_WRAPPER(basic_ostringstream_short_ctor_str
, 16)
13075 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_short_ctor_str(basic_ostringstream_wchar
*this,
13076 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
13078 basic_ostringstream_wchar_ctor_str(this, str
, mode
, virt_init
);
13079 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ostringstream_short_vtable
;
13083 /* ??0?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
13084 /* ??0?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
13085 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_ctor_mode
, 12)
13086 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_wchar_ctor_mode(
13087 basic_ostringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
13089 basic_ios_wchar
*basic_ios
;
13091 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
13094 this->base
.vbtable
= basic_ostringstream_wchar_vbtable
;
13095 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
13096 INIT_BASIC_IOS_VTORDISP(basic_ios
);
13097 basic_ios_wchar_ctor(basic_ios
);
13099 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
13102 basic_stringbuf_wchar_ctor_mode(&this->strbuf
, mode
|OPENMODE_out
);
13103 basic_ostream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
13104 basic_ios
->base
.vtable
= &MSVCP_basic_ostringstream_wchar_vtable
;
13108 /* ??0?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
13109 /* ??0?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
13110 DEFINE_THISCALL_WRAPPER(basic_ostringstream_short_ctor_mode
, 12)
13111 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_short_ctor_mode(
13112 basic_ostringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
13114 basic_ostringstream_wchar_ctor_mode(this, mode
, virt_init
);
13115 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ostringstream_short_vtable
;
13119 /* ??_F?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
13120 /* ??_F?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
13121 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_ctor
, 4)
13122 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_wchar_ctor(
13123 basic_ostringstream_wchar
*this)
13125 return basic_ostringstream_wchar_ctor_mode(this, 0, TRUE
);
13128 /* ??_F?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
13129 /* ??_F?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
13130 DEFINE_THISCALL_WRAPPER(basic_ostringstream_short_ctor
, 4)
13131 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_short_ctor(
13132 basic_ostringstream_wchar
*this)
13134 return basic_ostringstream_short_ctor_mode(this, 0, TRUE
);
13137 /* ??1?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
13138 /* ??1?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
13139 /* ??1?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
13140 /* ??1?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
13141 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_dtor
, 4)
13142 void __thiscall
basic_ostringstream_wchar_dtor(basic_ios_wchar
*base
)
13144 basic_ostringstream_wchar
*this = basic_ostringstream_wchar_from_basic_ios(base
);
13146 TRACE("(%p)\n", this);
13148 basic_stringbuf_wchar_dtor(&this->strbuf
);
13149 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(&this->base
));
13152 /* ??_D?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
13153 /* ??_D?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
13154 /* ??_D?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
13155 /* ??_D?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
13156 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_vbase_dtor
, 4)
13157 void __thiscall
basic_ostringstream_wchar_vbase_dtor(basic_ostringstream_wchar
*this)
13159 basic_ios_wchar
*base
= basic_ostringstream_wchar_to_basic_ios(this);
13161 TRACE("(%p)\n", this);
13163 basic_ostringstream_wchar_dtor(base
);
13164 basic_ios_wchar_dtor(base
);
13167 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_vector_dtor
, 8)
13168 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
13170 basic_ostringstream_wchar
*this = basic_ostringstream_wchar_from_basic_ios(base
);
13172 TRACE("(%p %x)\n", this, flags
);
13175 /* we have an array, with the number of elements stored before the first object */
13176 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
13178 for(i
=*ptr
-1; i
>=0; i
--)
13179 basic_ostringstream_wchar_vbase_dtor(this+i
);
13180 MSVCRT_operator_delete(ptr
);
13182 basic_ostringstream_wchar_vbase_dtor(this);
13184 MSVCRT_operator_delete(this);
13190 /* ?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 */
13191 /* ?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 */
13192 /* ?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 */
13193 /* ?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 */
13194 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_rdbuf
, 4)
13195 basic_stringbuf_wchar
* __thiscall
basic_ostringstream_wchar_rdbuf(const basic_ostringstream_wchar
*this)
13197 TRACE("(%p)\n", this);
13198 return (basic_stringbuf_wchar
*)&this->strbuf
;
13201 /* ?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 */
13202 /* ?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 */
13203 /* ?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 */
13204 /* ?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 */
13205 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_str_set
, 8)
13206 void __thiscall
basic_ostringstream_wchar_str_set(basic_ostringstream_wchar
*this, const basic_string_wchar
*str
)
13208 TRACE("(%p %p)\n", this, str
);
13209 basic_stringbuf_wchar_str_set(&this->strbuf
, str
);
13212 /* ?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 */
13213 /* ?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 */
13214 /* ?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 */
13215 /* ?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 */
13216 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_str_get
, 8)
13217 basic_string_wchar
* __thiscall
basic_ostringstream_wchar_str_get(const basic_ostringstream_wchar
*this, basic_string_wchar
*ret
)
13219 TRACE("(%p %p)\n", this, ret
);
13220 return basic_stringbuf_wchar_str_get(&this->strbuf
, ret
);
13223 static inline basic_ios_char
* basic_istringstream_char_to_basic_ios(basic_istringstream_char
*ptr
)
13225 return (basic_ios_char
*)((char*)ptr
+basic_istringstream_char_vbtable
[1]);
13228 static inline basic_istringstream_char
* basic_istringstream_char_from_basic_ios(basic_ios_char
*ptr
)
13230 return (basic_istringstream_char
*)((char*)ptr
-basic_istringstream_char_vbtable
[1]);
13233 /* ??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 */
13234 /* ??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 */
13235 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_ctor_str
, 16)
13236 basic_istringstream_char
* __thiscall
basic_istringstream_char_ctor_str(basic_istringstream_char
*this,
13237 const basic_string_char
*str
, int mode
, MSVCP_bool virt_init
)
13239 basic_ios_char
*basic_ios
;
13241 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
13244 this->base
.vbtable
= basic_istringstream_char_vbtable
;
13245 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
13246 INIT_BASIC_IOS_VTORDISP(basic_ios
);
13247 basic_ios_char_ctor(basic_ios
);
13249 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
13252 basic_stringbuf_char_ctor_str(&this->strbuf
, str
, mode
|OPENMODE_in
);
13253 basic_istream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
13254 basic_ios
->base
.vtable
= &MSVCP_basic_istringstream_char_vtable
;
13258 /* ??0?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
13259 /* ??0?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
13260 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_ctor_mode
, 12)
13261 basic_istringstream_char
* __thiscall
basic_istringstream_char_ctor_mode(
13262 basic_istringstream_char
*this, int mode
, MSVCP_bool virt_init
)
13264 basic_ios_char
*basic_ios
;
13266 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
13269 this->base
.vbtable
= basic_istringstream_char_vbtable
;
13270 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
13271 INIT_BASIC_IOS_VTORDISP(basic_ios
);
13272 basic_ios_char_ctor(basic_ios
);
13274 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
13277 basic_stringbuf_char_ctor_mode(&this->strbuf
, mode
|OPENMODE_in
);
13278 basic_istream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
13279 basic_ios
->base
.vtable
= &MSVCP_basic_istringstream_char_vtable
;
13283 /* ??_F?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
13284 /* ??_F?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
13285 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_ctor
, 4)
13286 basic_istringstream_char
* __thiscall
basic_istringstream_char_ctor(
13287 basic_istringstream_char
*this)
13289 return basic_istringstream_char_ctor_mode(this, 0, TRUE
);
13292 /* ??1?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
13293 /* ??1?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
13294 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_dtor
, 4)
13295 void __thiscall
basic_istringstream_char_dtor(basic_ios_char
*base
)
13297 basic_istringstream_char
*this = basic_istringstream_char_from_basic_ios(base
);
13299 TRACE("(%p)\n", this);
13301 basic_stringbuf_char_dtor(&this->strbuf
);
13302 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&this->base
));
13305 /* ??_D?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
13306 /* ??_D?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
13307 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_vbase_dtor
, 4)
13308 void __thiscall
basic_istringstream_char_vbase_dtor(basic_istringstream_char
*this)
13310 basic_ios_char
*base
= basic_istringstream_char_to_basic_ios(this);
13312 TRACE("(%p)\n", this);
13314 basic_istringstream_char_dtor(base
);
13315 basic_ios_char_dtor(base
);
13318 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_vector_dtor
, 8)
13319 basic_istringstream_char
* __thiscall
basic_istringstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
13321 basic_istringstream_char
*this = basic_istringstream_char_from_basic_ios(base
);
13323 TRACE("(%p %x)\n", this, flags
);
13326 /* we have an array, with the number of elements stored before the first object */
13327 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
13329 for(i
=*ptr
-1; i
>=0; i
--)
13330 basic_istringstream_char_vbase_dtor(this+i
);
13331 MSVCRT_operator_delete(ptr
);
13333 basic_istringstream_char_vbase_dtor(this);
13335 MSVCRT_operator_delete(this);
13341 /* ?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 */
13342 /* ?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 */
13343 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_rdbuf
, 4)
13344 basic_stringbuf_char
* __thiscall
basic_istringstream_char_rdbuf(const basic_istringstream_char
*this)
13346 TRACE("(%p)\n", this);
13347 return (basic_stringbuf_char
*)&this->strbuf
;
13350 /* ?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 */
13351 /* ?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 */
13352 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_str_set
, 8)
13353 void __thiscall
basic_istringstream_char_str_set(basic_istringstream_char
*this, const basic_string_char
*str
)
13355 TRACE("(%p %p)\n", this, str
);
13356 basic_stringbuf_char_str_set(&this->strbuf
, str
);
13359 /* ?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 */
13360 /* ?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 */
13361 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_str_get
, 8)
13362 basic_string_char
* __thiscall
basic_istringstream_char_str_get(const basic_istringstream_char
*this, basic_string_char
*ret
)
13364 TRACE("(%p %p)\n", this, ret
);
13365 return basic_stringbuf_char_str_get(&this->strbuf
, ret
);
13368 static inline basic_ios_wchar
* basic_istringstream_wchar_to_basic_ios(basic_istringstream_wchar
*ptr
)
13370 return (basic_ios_wchar
*)((char*)ptr
+basic_istringstream_wchar_vbtable
[1]);
13373 static inline basic_istringstream_wchar
* basic_istringstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
13375 return (basic_istringstream_wchar
*)((char*)ptr
-basic_istringstream_wchar_vbtable
[1]);
13378 /* ??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 */
13379 /* ??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 */
13380 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_ctor_str
, 16)
13381 basic_istringstream_wchar
* __thiscall
basic_istringstream_wchar_ctor_str(basic_istringstream_wchar
*this,
13382 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
13384 basic_ios_wchar
*basic_ios
;
13386 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
13389 this->base
.vbtable
= basic_istringstream_wchar_vbtable
;
13390 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
13391 INIT_BASIC_IOS_VTORDISP(basic_ios
);
13392 basic_ios_wchar_ctor(basic_ios
);
13394 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
13397 basic_stringbuf_wchar_ctor_str(&this->strbuf
, str
, mode
|OPENMODE_in
);
13398 basic_istream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
13399 basic_ios
->base
.vtable
= &MSVCP_basic_istringstream_wchar_vtable
;
13403 /* ??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 */
13404 /* ??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 */
13405 DEFINE_THISCALL_WRAPPER(basic_istringstream_short_ctor_str
, 16)
13406 basic_istringstream_wchar
* __thiscall
basic_istringstream_short_ctor_str(basic_istringstream_wchar
*this,
13407 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
13409 basic_istringstream_wchar_ctor_str(this, str
, mode
, virt_init
);
13410 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_istringstream_short_vtable
;
13414 /* ??0?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
13415 /* ??0?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
13416 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_ctor_mode
, 12)
13417 basic_istringstream_wchar
* __thiscall
basic_istringstream_wchar_ctor_mode(
13418 basic_istringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
13420 basic_ios_wchar
*basic_ios
;
13422 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
13425 this->base
.vbtable
= basic_istringstream_wchar_vbtable
;
13426 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
13427 INIT_BASIC_IOS_VTORDISP(basic_ios
);
13428 basic_ios_wchar_ctor(basic_ios
);
13430 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
13433 basic_stringbuf_wchar_ctor_mode(&this->strbuf
, mode
|OPENMODE_in
);
13434 basic_istream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
13435 basic_ios
->base
.vtable
= &MSVCP_basic_istringstream_wchar_vtable
;
13439 /* ??0?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
13440 /* ??0?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
13441 DEFINE_THISCALL_WRAPPER(basic_istringstream_short_ctor_mode
, 12)
13442 basic_istringstream_wchar
* __thiscall
basic_istringstream_short_ctor_mode(
13443 basic_istringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
13445 basic_istringstream_wchar_ctor_mode(this, mode
, virt_init
);
13446 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_istringstream_short_vtable
;
13450 /* ??_F?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
13451 /* ??_F?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
13452 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_ctor
, 4)
13453 basic_istringstream_wchar
* __thiscall
basic_istringstream_wchar_ctor(
13454 basic_istringstream_wchar
*this)
13456 return basic_istringstream_wchar_ctor_mode(this, 0, TRUE
);
13459 /* ??_F?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
13460 /* ??_F?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
13461 DEFINE_THISCALL_WRAPPER(basic_istringstream_short_ctor
, 4)
13462 basic_istringstream_wchar
* __thiscall
basic_istringstream_short_ctor(
13463 basic_istringstream_wchar
*this)
13465 return basic_istringstream_short_ctor_mode(this, 0, TRUE
);
13468 /* ??1?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
13469 /* ??1?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
13470 /* ??1?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
13471 /* ??1?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
13472 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_dtor
, 4)
13473 void __thiscall
basic_istringstream_wchar_dtor(basic_ios_wchar
*base
)
13475 basic_istringstream_wchar
*this = basic_istringstream_wchar_from_basic_ios(base
);
13477 TRACE("(%p)\n", this);
13479 basic_stringbuf_wchar_dtor(&this->strbuf
);
13480 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(&this->base
));
13483 /* ??_D?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
13484 /* ??_D?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
13485 /* ??_D?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
13486 /* ??_D?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
13487 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_vbase_dtor
, 4)
13488 void __thiscall
basic_istringstream_wchar_vbase_dtor(basic_istringstream_wchar
*this)
13490 basic_ios_wchar
*base
= basic_istringstream_wchar_to_basic_ios(this);
13492 TRACE("(%p)\n", this);
13494 basic_istringstream_wchar_dtor(base
);
13495 basic_ios_wchar_dtor(base
);
13498 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_vector_dtor
, 8)
13499 basic_istringstream_wchar
* __thiscall
basic_istringstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
13501 basic_istringstream_wchar
*this = basic_istringstream_wchar_from_basic_ios(base
);
13503 TRACE("(%p %x)\n", this, flags
);
13506 /* we have an array, with the number of elements stored before the first object */
13507 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
13509 for(i
=*ptr
-1; i
>=0; i
--)
13510 basic_istringstream_wchar_vbase_dtor(this+i
);
13511 MSVCRT_operator_delete(ptr
);
13513 basic_istringstream_wchar_vbase_dtor(this);
13515 MSVCRT_operator_delete(this);
13521 /* ?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 */
13522 /* ?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 */
13523 /* ?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 */
13524 /* ?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 */
13525 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_rdbuf
, 4)
13526 basic_stringbuf_wchar
* __thiscall
basic_istringstream_wchar_rdbuf(const basic_istringstream_wchar
*this)
13528 TRACE("(%p)\n", this);
13529 return (basic_stringbuf_wchar
*)&this->strbuf
;
13532 /* ?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 */
13533 /* ?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 */
13534 /* ?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 */
13535 /* ?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 */
13536 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_str_set
, 8)
13537 void __thiscall
basic_istringstream_wchar_str_set(basic_istringstream_wchar
*this, const basic_string_wchar
*str
)
13539 TRACE("(%p %p)\n", this, str
);
13540 basic_stringbuf_wchar_str_set(&this->strbuf
, str
);
13543 /* ?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 */
13544 /* ?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 */
13545 /* ?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 */
13546 /* ?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 */
13547 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_str_get
, 8)
13548 basic_string_wchar
* __thiscall
basic_istringstream_wchar_str_get(const basic_istringstream_wchar
*this, basic_string_wchar
*ret
)
13550 TRACE("(%p %p)\n", this, ret
);
13551 return basic_stringbuf_wchar_str_get(&this->strbuf
, ret
);
13554 static inline basic_ios_char
* basic_stringstream_char_to_basic_ios(basic_stringstream_char
*ptr
)
13556 return (basic_ios_char
*)((char*)ptr
+basic_stringstream_char_vbtable1
[1]);
13559 static inline basic_stringstream_char
* basic_stringstream_char_from_basic_ios(basic_ios_char
*ptr
)
13561 return (basic_stringstream_char
*)((char*)ptr
-basic_stringstream_char_vbtable1
[1]);
13564 /* ??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 */
13565 /* ??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 */
13566 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_ctor_str
, 16)
13567 basic_stringstream_char
* __thiscall
basic_stringstream_char_ctor_str(basic_stringstream_char
*this,
13568 const basic_string_char
*str
, int mode
, MSVCP_bool virt_init
)
13570 basic_ios_char
*basic_ios
;
13572 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
13575 this->base
.base1
.vbtable
= basic_stringstream_char_vbtable1
;
13576 this->base
.base2
.vbtable
= basic_stringstream_char_vbtable2
;
13577 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
13578 INIT_BASIC_IOS_VTORDISP(basic_ios
);
13579 basic_ios_char_ctor(basic_ios
);
13581 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
13584 basic_stringbuf_char_ctor_str(&this->strbuf
, str
, mode
);
13585 basic_iostream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
);
13586 basic_ios
->base
.vtable
= &MSVCP_basic_stringstream_char_vtable
;
13590 /* ??0?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
13591 /* ??0?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
13592 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_ctor_mode
, 12)
13593 basic_stringstream_char
* __thiscall
basic_stringstream_char_ctor_mode(
13594 basic_stringstream_char
*this, int mode
, MSVCP_bool virt_init
)
13596 basic_ios_char
*basic_ios
;
13598 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
13601 this->base
.base1
.vbtable
= basic_stringstream_char_vbtable1
;
13602 this->base
.base2
.vbtable
= basic_stringstream_char_vbtable2
;
13603 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
13604 INIT_BASIC_IOS_VTORDISP(basic_ios
);
13605 basic_ios_char_ctor(basic_ios
);
13607 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
13610 basic_stringbuf_char_ctor_mode(&this->strbuf
, mode
);
13611 basic_iostream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
);
13612 basic_ios
->base
.vtable
= &MSVCP_basic_stringstream_char_vtable
;
13616 /* ??_F?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
13617 /* ??_F?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
13618 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_ctor
, 4)
13619 basic_stringstream_char
* __thiscall
basic_stringstream_char_ctor(
13620 basic_stringstream_char
*this)
13622 return basic_stringstream_char_ctor_mode(
13623 this, OPENMODE_out
|OPENMODE_in
, TRUE
);
13626 /* ??1?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
13627 /* ??1?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
13628 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_dtor
, 4)
13629 void __thiscall
basic_stringstream_char_dtor(basic_ios_char
*base
)
13631 basic_stringstream_char
*this = basic_stringstream_char_from_basic_ios(base
);
13633 TRACE("(%p)\n", this);
13635 basic_iostream_char_dtor(basic_iostream_char_to_basic_ios(&this->base
));
13636 basic_stringbuf_char_dtor(&this->strbuf
);
13639 /* ??_D?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
13640 /* ??_D?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
13641 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_vbase_dtor
, 4)
13642 void __thiscall
basic_stringstream_char_vbase_dtor(basic_stringstream_char
*this)
13644 basic_ios_char
*base
= basic_stringstream_char_to_basic_ios(this);
13646 TRACE("(%p)\n", this);
13648 basic_stringstream_char_dtor(base
);
13649 basic_ios_char_dtor(base
);
13652 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_vector_dtor
, 8)
13653 basic_stringstream_char
* __thiscall
basic_stringstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
13655 basic_stringstream_char
*this = basic_stringstream_char_from_basic_ios(base
);
13657 TRACE("(%p %x)\n", this, flags
);
13660 /* we have an array, with the number of elements stored before the first object */
13661 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
13663 for(i
=*ptr
-1; i
>=0; i
--)
13664 basic_stringstream_char_vbase_dtor(this+i
);
13665 MSVCRT_operator_delete(ptr
);
13667 basic_stringstream_char_vbase_dtor(this);
13669 MSVCRT_operator_delete(this);
13675 /* ?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 */
13676 /* ?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 */
13677 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_rdbuf
, 4)
13678 basic_stringbuf_char
* __thiscall
basic_stringstream_char_rdbuf(const basic_stringstream_char
*this)
13680 TRACE("(%p)\n", this);
13681 return (basic_stringbuf_char
*)&this->strbuf
;
13684 /* ?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 */
13685 /* ?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 */
13686 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_str_set
, 8)
13687 void __thiscall
basic_stringstream_char_str_set(basic_stringstream_char
*this, const basic_string_char
*str
)
13689 TRACE("(%p %p)\n", this, str
);
13690 basic_stringbuf_char_str_set(&this->strbuf
, str
);
13693 /* ?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 */
13694 /* ?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 */
13695 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_str_get
, 8)
13696 basic_string_char
* __thiscall
basic_stringstream_char_str_get(const basic_stringstream_char
*this, basic_string_char
*ret
)
13698 TRACE("(%p %p)\n", this, ret
);
13699 return basic_stringbuf_char_str_get(&this->strbuf
, ret
);
13702 static inline basic_ios_wchar
* basic_stringstream_wchar_to_basic_ios(basic_stringstream_wchar
*ptr
)
13704 return (basic_ios_wchar
*)((char*)ptr
+basic_stringstream_wchar_vbtable1
[1]);
13707 static inline basic_stringstream_wchar
* basic_stringstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
13709 return (basic_stringstream_wchar
*)((char*)ptr
-basic_stringstream_wchar_vbtable1
[1]);
13712 /* ??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 */
13713 /* ??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 */
13714 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_ctor_str
, 16)
13715 basic_stringstream_wchar
* __thiscall
basic_stringstream_wchar_ctor_str(basic_stringstream_wchar
*this,
13716 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
13718 basic_ios_wchar
*basic_ios
;
13720 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
13723 this->base
.base1
.vbtable
= basic_stringstream_wchar_vbtable1
;
13724 this->base
.base2
.vbtable
= basic_stringstream_wchar_vbtable2
;
13725 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
13726 INIT_BASIC_IOS_VTORDISP(basic_ios
);
13727 basic_ios_wchar_ctor(basic_ios
);
13729 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
13732 basic_stringbuf_wchar_ctor_str(&this->strbuf
, str
, mode
);
13733 basic_iostream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
);
13734 basic_ios
->base
.vtable
= &MSVCP_basic_stringstream_wchar_vtable
;
13738 /* ??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 */
13739 /* ??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 */
13740 DEFINE_THISCALL_WRAPPER(basic_stringstream_short_ctor_str
, 16)
13741 basic_stringstream_wchar
* __thiscall
basic_stringstream_short_ctor_str(basic_stringstream_wchar
*this,
13742 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
13744 basic_stringstream_wchar_ctor_str(this, str
, mode
, virt_init
);
13745 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_stringstream_short_vtable
;
13749 /* ??0?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
13750 /* ??0?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
13751 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_ctor_mode
, 12)
13752 basic_stringstream_wchar
* __thiscall
basic_stringstream_wchar_ctor_mode(
13753 basic_stringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
13755 basic_ios_wchar
*basic_ios
;
13757 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
13760 this->base
.base1
.vbtable
= basic_stringstream_wchar_vbtable1
;
13761 this->base
.base2
.vbtable
= basic_stringstream_wchar_vbtable2
;
13762 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
13763 INIT_BASIC_IOS_VTORDISP(basic_ios
);
13764 basic_ios_wchar_ctor(basic_ios
);
13766 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
13769 basic_stringbuf_wchar_ctor_mode(&this->strbuf
, mode
);
13770 basic_iostream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
);
13771 basic_ios
->base
.vtable
= &MSVCP_basic_stringstream_wchar_vtable
;
13775 /* ??0?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
13776 /* ??0?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
13777 DEFINE_THISCALL_WRAPPER(basic_stringstream_short_ctor_mode
, 12)
13778 basic_stringstream_wchar
* __thiscall
basic_stringstream_short_ctor_mode(
13779 basic_stringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
13781 basic_stringstream_wchar_ctor_mode(this, mode
, virt_init
);
13782 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_stringstream_short_vtable
;
13786 /* ??_F?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
13787 /* ??_F?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
13788 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_ctor
, 4)
13789 basic_stringstream_wchar
* __thiscall
basic_stringstream_wchar_ctor(
13790 basic_stringstream_wchar
*this)
13792 return basic_stringstream_wchar_ctor_mode(
13793 this, OPENMODE_out
|OPENMODE_in
, TRUE
);
13796 /* ??_F?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
13797 /* ??_F?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
13798 DEFINE_THISCALL_WRAPPER(basic_stringstream_short_ctor
, 4)
13799 basic_stringstream_wchar
* __thiscall
basic_stringstream_short_ctor(
13800 basic_stringstream_wchar
*this)
13802 return basic_stringstream_short_ctor_mode(
13803 this, OPENMODE_out
|OPENMODE_in
, TRUE
);
13806 /* ??1?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
13807 /* ??1?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
13808 /* ??1?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
13809 /* ??1?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
13810 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_dtor
, 4)
13811 void __thiscall
basic_stringstream_wchar_dtor(basic_ios_wchar
*base
)
13813 basic_stringstream_wchar
*this = basic_stringstream_wchar_from_basic_ios(base
);
13815 TRACE("(%p)\n", this);
13817 basic_iostream_wchar_dtor(basic_iostream_wchar_to_basic_ios(&this->base
));
13818 basic_stringbuf_wchar_dtor(&this->strbuf
);
13821 /* ??_D?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
13822 /* ??_D?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
13823 /* ??_D?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
13824 /* ??_D?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
13825 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_vbase_dtor
, 4)
13826 void __thiscall
basic_stringstream_wchar_vbase_dtor(basic_stringstream_wchar
*this)
13828 basic_ios_wchar
*base
= basic_stringstream_wchar_to_basic_ios(this);
13830 TRACE("(%p)\n", this);
13832 basic_stringstream_wchar_dtor(base
);
13833 basic_ios_wchar_dtor(base
);
13836 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_vector_dtor
, 8)
13837 basic_stringstream_wchar
* __thiscall
basic_stringstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
13839 basic_stringstream_wchar
*this = basic_stringstream_wchar_from_basic_ios(base
);
13841 TRACE("(%p %x)\n", this, flags
);
13844 /* we have an array, with the number of elements stored before the first object */
13845 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
13847 for(i
=*ptr
-1; i
>=0; i
--)
13848 basic_stringstream_wchar_vbase_dtor(this+i
);
13849 MSVCRT_operator_delete(ptr
);
13851 basic_stringstream_wchar_vbase_dtor(this);
13853 MSVCRT_operator_delete(this);
13859 /* ?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 */
13860 /* ?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 */
13861 /* ?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 */
13862 /* ?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 */
13863 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_rdbuf
, 4)
13864 basic_stringbuf_wchar
* __thiscall
basic_stringstream_wchar_rdbuf(const basic_stringstream_wchar
*this)
13866 TRACE("(%p)\n", this);
13867 return (basic_stringbuf_wchar
*)&this->strbuf
;
13870 /* ?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 */
13871 /* ?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 */
13872 /* ?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 */
13873 /* ?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 */
13874 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_str_set
, 8)
13875 void __thiscall
basic_stringstream_wchar_str_set(basic_stringstream_wchar
*this, const basic_string_wchar
*str
)
13877 TRACE("(%p %p)\n", this, str
);
13878 basic_stringbuf_wchar_str_set(&this->strbuf
, str
);
13881 /* ?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 */
13882 /* ?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 */
13883 /* ?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 */
13884 /* ?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 */
13885 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_str_get
, 8)
13886 basic_string_wchar
* __thiscall
basic_stringstream_wchar_str_get(const basic_stringstream_wchar
*this, basic_string_wchar
*ret
)
13888 TRACE("(%p %p)\n", this, ret
);
13889 return basic_stringbuf_wchar_str_get(&this->strbuf
, ret
);
13892 /* ?_Init@strstreambuf@std@@IAEXHPAD0H@Z */
13893 /* ?_Init@strstreambuf@std@@IEAAX_JPEAD1H@Z */
13894 #if STREAMSIZE_BITS == 64
13895 DEFINE_THISCALL_WRAPPER(strstreambuf__Init
, 24)
13897 DEFINE_THISCALL_WRAPPER(strstreambuf__Init
, 20)
13899 void __thiscall
strstreambuf__Init(strstreambuf
*this, streamsize len
, char *g
, char *p
, int mode
)
13901 TRACE("(%p %s %p %p %d)\n", this, wine_dbgstr_longlong(len
), g
, p
, mode
);
13903 this->minsize
= 32;
13904 this->endsave
= NULL
;
13905 this->strmode
= mode
;
13906 this->palloc
= NULL
;
13907 this->pfree
= NULL
;
13910 this->strmode
|= STRSTATE_Dynamic
;
13911 if(len
> this->minsize
)
13912 this->minsize
= len
;
13913 this->seekhigh
= NULL
;
13922 this->seekhigh
= g
+len
;
13923 basic_streambuf_char_setg(&this->base
, g
, g
, p
? p
: this->seekhigh
);
13925 basic_streambuf_char_setp(&this->base
, p
, this->seekhigh
);
13928 /* ??0strstreambuf@std@@QAE@PACH0@Z */
13929 /* ??0strstreambuf@std@@QEAA@PEAC_J0@Z */
13930 /* ??0strstreambuf@std@@QAE@PADH0@Z */
13931 /* ??0strstreambuf@std@@QEAA@PEAD_J0@Z */
13932 /* ??0strstreambuf@std@@QAE@PAEH0@Z */
13933 /* ??0strstreambuf@std@@QEAA@PEAE_J0@Z */
13934 #if STREAMSIZE_BITS == 64
13935 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_get_put
, 20)
13937 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_get_put
, 16)
13939 strstreambuf
* __thiscall
strstreambuf_ctor_get_put(strstreambuf
*this, char *g
, streamsize len
, char *p
)
13941 TRACE("(%p %p %s %p)\n", this, g
, wine_dbgstr_longlong(len
), p
);
13943 basic_streambuf_char_ctor(&this->base
);
13944 this->base
.vtable
= &MSVCP_strstreambuf_vtable
;
13946 strstreambuf__Init(this, len
, g
, p
, 0);
13950 /* ??0strstreambuf@std@@QAE@H@Z */
13951 /* ??0strstreambuf@std@@QEAA@_J@Z */
13952 #if STREAMSIZE_BITS == 64
13953 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_len
, 12)
13955 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_len
, 8)
13957 strstreambuf
* __thiscall
strstreambuf_ctor_len(strstreambuf
*this, streamsize len
)
13959 return strstreambuf_ctor_get_put(this, NULL
, len
, NULL
);
13962 /* ??0strstreambuf@std@@QAE@P6APAXI@ZP6AXPAX@Z@Z */
13963 /* ??0strstreambuf@std@@QEAA@P6APEAX_K@ZP6AXPEAX@Z@Z */
13964 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_alloc
, 12)
13965 strstreambuf
* __thiscall
strstreambuf_ctor_alloc(strstreambuf
*this, void* (__cdecl
*palloc
)(MSVCP_size_t
), void (__cdecl
*pfree
)(void*))
13967 TRACE("(%p %p %p)\n", this, palloc
, pfree
);
13969 strstreambuf_ctor_get_put(this, NULL
, 0, NULL
);
13970 this->palloc
= palloc
;
13971 this->pfree
= pfree
;
13975 /* ??0strstreambuf@std@@QAE@PBCH@Z */
13976 /* ??0strstreambuf@std@@QEAA@PEBC_J@Z */
13977 /* ??0strstreambuf@std@@QAE@PBDH@Z */
13978 /* ??0strstreambuf@std@@QEAA@PEBD_J@Z */
13979 /* ??0strstreambuf@std@@QAE@PBEH@Z */
13980 /* ??0strstreambuf@std@@QEAA@PEBE_J@Z */
13981 #if STREAMSIZE_BITS == 64
13982 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_get
, 16)
13984 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_get
, 12)
13986 strstreambuf
* __thiscall
strstreambuf_ctor_get(strstreambuf
*this, const char *g
, streamsize len
)
13988 TRACE("(%p %p %s)\n", this, g
, wine_dbgstr_longlong(len
));
13990 strstreambuf_ctor_get_put(this, (char*)g
, len
, NULL
);
13991 this->strmode
|= STRSTATE_Constant
;
13995 /* ??_Fstrstreambuf@std@@QAEXXZ */
13996 /* ??_Fstrstreambuf@std@@QEAAXXZ */
13997 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor
, 4)
13998 strstreambuf
* __thiscall
strstreambuf_ctor(strstreambuf
*this)
14000 return strstreambuf_ctor_get_put(this, NULL
, 0, NULL
);
14003 /* ?_Tidy@strstreambuf@std@@IAEXXZ */
14004 /* ?_Tidy@strstreambuf@std@@IEAAXXZ */
14005 DEFINE_THISCALL_WRAPPER(strstreambuf__Tidy
, 4)
14006 void __thiscall
strstreambuf__Tidy(strstreambuf
*this)
14008 TRACE("(%p)\n", this);
14010 if((this->strmode
& STRSTATE_Allocated
) && !(this->strmode
& STRSTATE_Frozen
)) {
14012 this->pfree(basic_streambuf_char_eback(&this->base
));
14014 MSVCRT_operator_delete(basic_streambuf_char_eback(&this->base
));
14017 this->endsave
= NULL
;
14018 this->seekhigh
= NULL
;
14019 this->strmode
&= ~(STRSTATE_Allocated
| STRSTATE_Frozen
);
14020 basic_streambuf_char_setg(&this->base
, NULL
, NULL
, NULL
);
14021 basic_streambuf_char_setp(&this->base
, NULL
, NULL
);
14024 /* ??1strstreambuf@std@@UAE@XZ */
14025 /* ??1strstreambuf@std@@UEAA@XZ */
14026 DEFINE_THISCALL_WRAPPER(strstreambuf_dtor
, 4)
14027 void __thiscall
strstreambuf_dtor(strstreambuf
*this)
14029 TRACE("(%p)\n", this);
14031 strstreambuf__Tidy(this);
14032 basic_streambuf_char_dtor(&this->base
);
14035 DEFINE_THISCALL_WRAPPER(strstreambuf_vector_dtor
, 8)
14036 strstreambuf
* __thiscall
strstreambuf_vector_dtor(strstreambuf
*this, unsigned int flags
)
14038 TRACE("(%p %x)\n", this, flags
);
14040 /* we have an array, with the number of elements stored before the first object */
14041 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
14043 for(i
=*ptr
-1; i
>=0; i
--)
14044 strstreambuf_dtor(this+i
);
14045 MSVCRT_operator_delete(ptr
);
14047 strstreambuf_dtor(this);
14049 MSVCRT_operator_delete(this);
14055 /* ?freeze@strstreambuf@std@@QAEX_N@Z */
14056 /* ?freeze@strstreambuf@std@@QEAAX_N@Z */
14057 DEFINE_THISCALL_WRAPPER(strstreambuf_freeze
, 8)
14058 void __thiscall
strstreambuf_freeze(strstreambuf
*this, MSVCP_bool freeze
)
14060 TRACE("(%p %d)\n", this, freeze
);
14062 if(!freeze
== !(this->strmode
& STRSTATE_Frozen
))
14066 this->strmode
|= STRSTATE_Frozen
;
14067 this->endsave
= basic_streambuf_char_epptr(&this->base
);
14068 basic_streambuf_char_setp_next(&this->base
, basic_streambuf_char_pbase(&this->base
),
14069 basic_streambuf_char_pptr(&this->base
), basic_streambuf_char_eback(&this->base
));
14071 this->strmode
&= ~STRSTATE_Frozen
;
14072 basic_streambuf_char_setp_next(&this->base
, basic_streambuf_char_pbase(&this->base
),
14073 basic_streambuf_char_pptr(&this->base
), this->endsave
);
14077 /* ?str@strstreambuf@std@@QAEPADXZ */
14078 /* ?str@strstreambuf@std@@QEAAPEADXZ */
14079 DEFINE_THISCALL_WRAPPER(strstreambuf_str
, 4)
14080 char* __thiscall
strstreambuf_str(strstreambuf
*this)
14082 TRACE("(%p)\n", this);
14084 strstreambuf_freeze(this, TRUE
);
14085 return basic_streambuf_char_gptr(&this->base
);
14088 /* ?pcount@strstreambuf@std@@QBEHXZ */
14089 /* ?pcount@strstreambuf@std@@QEBA_JXZ */
14090 DEFINE_THISCALL_WRAPPER(strstreambuf_pcount
, 4)
14091 streamsize __thiscall
strstreambuf_pcount(const strstreambuf
*this)
14093 char *ppos
= basic_streambuf_char_pptr(&this->base
);
14095 TRACE("(%p)\n", this);
14097 return ppos
? ppos
-basic_streambuf_char_pbase(&this->base
) : 0;
14100 /* ?overflow@strstreambuf@std@@MAEHH@Z */
14101 /* ?overflow@strstreambuf@std@@MEAAHH@Z */
14102 DEFINE_THISCALL_WRAPPER(strstreambuf_overflow
, 8)
14103 int __thiscall
strstreambuf_overflow(strstreambuf
*this, int c
)
14105 MSVCP_size_t old_size
, size
;
14108 TRACE("(%p %d)\n", this, c
);
14113 if(this->strmode
& STRSTATE_Frozen
)
14116 ptr
= basic_streambuf_char_pptr(&this->base
);
14117 if(ptr
&& ptr
<basic_streambuf_char_epptr(&this->base
))
14118 return (unsigned char)(*basic_streambuf_char__Pninc(&this->base
) = c
);
14120 if(!(this->strmode
& STRSTATE_Dynamic
) || (this->strmode
& STRSTATE_Constant
))
14123 ptr
= basic_streambuf_char_eback(&this->base
);
14124 old_size
= ptr
? basic_streambuf_char_epptr(&this->base
) - ptr
: 0;
14126 size
= old_size
+ old_size
/2;
14127 if(size
< this->minsize
)
14128 size
= this->minsize
;
14131 buf
= this->palloc(size
);
14133 buf
= MSVCRT_operator_new(size
);
14137 memcpy(buf
, ptr
, old_size
);
14138 if(this->strmode
& STRSTATE_Allocated
) {
14142 MSVCRT_operator_delete(ptr
);
14145 this->strmode
|= STRSTATE_Allocated
;
14147 this->seekhigh
= buf
;
14148 basic_streambuf_char_setp(&this->base
, buf
, buf
+size
);
14149 basic_streambuf_char_setg(&this->base
, buf
, buf
, buf
);
14151 this->seekhigh
= this->seekhigh
-ptr
+buf
;
14152 basic_streambuf_char_setp_next(&this->base
, basic_streambuf_char_pbase(&this->base
)-ptr
+buf
,
14153 basic_streambuf_char_pptr(&this->base
)-ptr
+buf
, buf
+size
);
14154 basic_streambuf_char_setg(&this->base
, buf
, basic_streambuf_char_gptr(&this->base
)-ptr
+buf
,
14155 basic_streambuf_char_pptr(&this->base
));
14158 return (unsigned char)(*basic_streambuf_char__Pninc(&this->base
) = c
);
14161 /* ?pbackfail@strstreambuf@std@@MAEHH@Z */
14162 /* ?pbackfail@strstreambuf@std@@MEAAHH@Z */
14163 DEFINE_THISCALL_WRAPPER(strstreambuf_pbackfail
, 8)
14164 int __thiscall
strstreambuf_pbackfail(strstreambuf
*this, int c
)
14166 char *ptr
= basic_streambuf_char_gptr(&this->base
);
14168 TRACE("(%p %d)\n", this, c
);
14170 if(ptr
<=basic_streambuf_char_eback(&this->base
)
14171 || ((this->strmode
& STRSTATE_Constant
) && c
!=ptr
[-1]))
14174 basic_streambuf_char_gbump(&this->base
, -1);
14177 if(this->strmode
& STRSTATE_Constant
)
14178 return (unsigned char)c
;
14180 return (unsigned char)(ptr
[0] = c
);
14183 /* ?seekoff@strstreambuf@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
14184 /* ?seekoff@strstreambuf@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
14185 /* ?seekoff@strstreambuf@std@@MAE?AV?$fpos@H@2@JHH@Z */
14186 /* ?seekoff@strstreambuf@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
14187 #if STREAMOFF_BITS == 64
14188 DEFINE_THISCALL_WRAPPER(strstreambuf_seekoff
, 24)
14190 DEFINE_THISCALL_WRAPPER(strstreambuf_seekoff
, 20)
14192 fpos_int
* __thiscall
strstreambuf_seekoff(strstreambuf
*this, fpos_int
*ret
, streamoff off
, int way
, int mode
)
14194 char *eback
= basic_streambuf_char_eback(&this->base
);
14195 char *pptr
= basic_streambuf_char_pptr(&this->base
);
14196 char *gptr
= basic_streambuf_char_gptr(&this->base
);
14198 TRACE("(%p %p %s %d %d)\n", this, ret
, wine_dbgstr_longlong(off
), way
, mode
);
14203 if(pptr
> this->seekhigh
)
14204 this->seekhigh
= pptr
;
14206 if((mode
& OPENMODE_in
) && gptr
) {
14207 if(way
==SEEKDIR_cur
&& !(mode
& OPENMODE_out
))
14209 else if(way
== SEEKDIR_end
)
14210 off
+= this->seekhigh
-eback
;
14211 else if(way
!= SEEKDIR_beg
)
14214 if(off
<0 || off
>this->seekhigh
-eback
) {
14217 basic_streambuf_char_gbump(&this->base
, eback
-gptr
+off
);
14218 if((mode
& OPENMODE_out
) && pptr
) {
14219 basic_streambuf_char_setp_next(&this->base
, eback
,
14220 gptr
, basic_streambuf_char_epptr(&this->base
));
14223 }else if((mode
& OPENMODE_out
) && pptr
) {
14224 if(way
== SEEKDIR_cur
)
14226 else if(way
== SEEKDIR_end
)
14227 off
+= this->seekhigh
-eback
;
14228 else if(way
!= SEEKDIR_beg
)
14231 if(off
<0 || off
>this->seekhigh
-eback
)
14234 basic_streambuf_char_pbump(&this->base
, eback
-pptr
+off
);
14243 /* ?seekpos@strstreambuf@std@@MAE?AV?$fpos@H@2@V32@H@Z */
14244 /* ?seekpos@strstreambuf@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
14245 DEFINE_THISCALL_WRAPPER(strstreambuf_seekpos
, 36)
14246 fpos_int
* __thiscall
strstreambuf_seekpos(strstreambuf
*this, fpos_int
*ret
, fpos_int pos
, int mode
)
14248 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_int(&pos
), mode
);
14250 if(pos
.off
==-1 && pos
.pos
==0 && pos
.state
==0) {
14255 return strstreambuf_seekoff(this, ret
, pos
.pos
+pos
.off
, SEEKDIR_beg
, mode
);
14258 /* ?underflow@strstreambuf@std@@MAEHXZ */
14259 /* ?underflow@strstreambuf@std@@MEAAHXZ */
14260 DEFINE_THISCALL_WRAPPER(strstreambuf_underflow
, 4)
14261 int __thiscall
strstreambuf_underflow(strstreambuf
*this)
14263 char *gptr
= basic_streambuf_char_gptr(&this->base
);
14266 TRACE("(%p)\n", this);
14271 if(gptr
< basic_streambuf_char_egptr(&this->base
))
14272 return (unsigned char)(*gptr
);
14274 pptr
= basic_streambuf_char_gptr(&this->base
);
14275 if(pptr
> this->seekhigh
)
14276 this->seekhigh
= pptr
;
14278 if(this->seekhigh
<= gptr
)
14281 basic_streambuf_char_setg(&this->base
, basic_streambuf_char_eback(&this->base
),
14282 gptr
, this->seekhigh
);
14283 return (unsigned char)(*gptr
);
14286 static inline basic_ios_char
* ostrstream_to_basic_ios(ostrstream
*ptr
)
14288 return (basic_ios_char
*)((char*)ptr
+ostrstream_vbtable
[1]);
14291 static inline ostrstream
* ostrstream_from_basic_ios(basic_ios_char
*ptr
)
14293 return (ostrstream
*)((char*)ptr
-ostrstream_vbtable
[1]);
14296 /* ??0ostrstream@std@@QAE@PADHH@Z */
14297 #if STREAMSIZE_BITS == 64
14298 DEFINE_THISCALL_WRAPPER(ostrstream_ctor
, 24)
14300 DEFINE_THISCALL_WRAPPER(ostrstream_ctor
, 20)
14302 ostrstream
* __thiscall
ostrstream_ctor(ostrstream
*this, char *buf
, streamsize size
, int mode
, MSVCP_bool virt_init
)
14304 basic_ios_char
*basic_ios
;
14306 TRACE("(%p %p %s %d %d)\n", this, buf
, wine_dbgstr_longlong(size
), mode
, virt_init
);
14309 this->base
.vbtable
= ostrstream_vbtable
;
14310 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
14311 INIT_BASIC_IOS_VTORDISP(basic_ios
);
14312 basic_ios_char_ctor(basic_ios
);
14314 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
14317 strstreambuf_ctor_get_put(&this->buf
, buf
, size
,
14318 buf
&& (mode
& OPENMODE_app
) ? buf
+strlen(buf
) : buf
);
14319 basic_ostream_char_ctor(&this->base
, &this->buf
.base
, FALSE
, FALSE
);
14320 basic_ios
->base
.vtable
= &MSVCP_ostrstream_vtable
;
14324 /* ??1ostrstream@std@@UAE@XZ */
14325 /* ??1ostrstream@std@@UEAA@XZ */
14326 DEFINE_THISCALL_WRAPPER(ostrstream_dtor
, 4)
14327 void __thiscall
ostrstream_dtor(basic_ios_char
*base
)
14329 ostrstream
*this = ostrstream_from_basic_ios(base
);
14331 TRACE("(%p)\n", this);
14333 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&this->base
));
14334 strstreambuf_dtor(&this->buf
);
14337 static void ostrstream_vbase_dtor(ostrstream
*this)
14339 basic_ios_char
*base
= ostrstream_to_basic_ios(this);
14341 TRACE("(%p)\n", this);
14343 ostrstream_dtor(base
);
14344 basic_ios_char_dtor(base
);
14347 DEFINE_THISCALL_WRAPPER(ostrstream_vector_dtor
, 8)
14348 ostrstream
* __thiscall
ostrstream_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
14350 ostrstream
*this = ostrstream_from_basic_ios(base
);
14352 TRACE("(%p %x)\n", this, flags
);
14355 /* we have an array, with the number of elements stored before the first object */
14356 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
14358 for(i
=*ptr
-1; i
>=0; i
--)
14359 ostrstream_vbase_dtor(this+i
);
14360 MSVCRT_operator_delete(ptr
);
14362 ostrstream_vbase_dtor(this);
14364 MSVCRT_operator_delete(this);
14370 static inline istrstream
* istrstream_from_basic_ios(basic_ios_char
*ptr
)
14372 return (istrstream
*)((char*)ptr
-istrstream_vbtable
[1]);
14375 /* ??1istrstream@std@@UAE@XZ */
14376 /* ??1istrstream@std@@UEAA@XZ */
14377 DEFINE_THISCALL_WRAPPER(istrstream_dtor
, 4)
14378 void __thiscall
istrstream_dtor(basic_ios_char
*base
)
14380 istrstream
*this = istrstream_from_basic_ios(base
);
14382 TRACE("(%p)\n", this);
14384 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&this->base
));
14385 strstreambuf_dtor(&this->buf
);
14388 static inline basic_ios_char
* strstream_to_basic_ios(strstream
*ptr
)
14390 return (basic_ios_char
*)((char*)ptr
+strstream_vbtable1
[1]);
14393 static inline strstream
* strstream_from_basic_ios(basic_ios_char
*ptr
)
14395 return (strstream
*)((char*)ptr
-strstream_vbtable1
[1]);
14398 /* ??$?6MDU?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@ABV?$complex@M@0@@Z */
14399 /* ??$?6MDU?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@AEBV?$complex@M@0@@Z */
14400 basic_ostream_char
* __cdecl
basic_ostream_char_print_complex_float(basic_ostream_char
*ostr
, const complex_float
*val
)
14403 basic_ostringstream_char obj
;
14404 basic_ios_char vbase
;
14406 ios_base
*ostringstream_ios_base
, *ostream_ios_base
;
14408 basic_string_char str
;
14409 basic_ostringstream_char_ctor(&oss
.obj
);
14410 ostringstream_ios_base
= &oss
.vbase
.base
;
14411 ostream_ios_base
= &basic_ostream_char_get_basic_ios(ostr
)->base
;
14412 TRACE("(%p %p)\n", ostr
, val
);
14414 ios_base_imbue(ostringstream_ios_base
, &loc
, IOS_LOCALE(ostream_ios_base
));
14416 ios_base_precision_set(ostringstream_ios_base
, ios_base_precision_get(ostream_ios_base
));
14417 ios_base_flags_set(ostringstream_ios_base
, ios_base_flags_get(ostream_ios_base
));
14419 basic_ostream_char_print_ch(&oss
.obj
.base
, '(');
14420 basic_ostream_char_print_float(&oss
.obj
.base
, val
->real
);
14421 basic_ostream_char_print_ch(&oss
.obj
.base
, ',');
14422 basic_ostream_char_print_float(&oss
.obj
.base
, val
->imag
);
14423 basic_ostream_char_print_ch(&oss
.obj
.base
, ')');
14425 basic_ostringstream_char_str_get(&oss
.obj
, &str
);
14426 basic_ostringstream_char_dtor(&oss
.vbase
);
14427 basic_ostream_char_print_bstr(ostr
, &str
);
14428 MSVCP_basic_string_char_dtor(&str
);
14432 /* ??$?6NDU?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@ABV?$complex@N@0@@Z */
14433 /* ??$?6NDU?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@AEBV?$complex@N@0@@Z */
14434 basic_ostream_char
* __cdecl
basic_ostream_char_print_complex_double(basic_ostream_char
*ostr
, const complex_double
*val
)
14437 basic_ostringstream_char obj
;
14438 basic_ios_char vbase
;
14440 ios_base
*ostringstream_ios_base
, *ostream_ios_base
;
14442 basic_string_char str
;
14443 basic_ostringstream_char_ctor(&oss
.obj
);
14444 ostringstream_ios_base
= &oss
.vbase
.base
;
14445 ostream_ios_base
= &basic_ostream_char_get_basic_ios(ostr
)->base
;
14446 TRACE("(%p %p)\n", ostr
, val
);
14448 ios_base_imbue(ostringstream_ios_base
, &loc
, IOS_LOCALE(ostream_ios_base
));
14450 ios_base_precision_set(ostringstream_ios_base
, ios_base_precision_get(ostream_ios_base
));
14451 ios_base_flags_set(ostringstream_ios_base
, ios_base_flags_get(ostream_ios_base
));
14453 basic_ostream_char_print_ch(&oss
.obj
.base
, '(');
14454 basic_ostream_char_print_double(&oss
.obj
.base
, val
->real
);
14455 basic_ostream_char_print_ch(&oss
.obj
.base
, ',');
14456 basic_ostream_char_print_double(&oss
.obj
.base
, val
->imag
);
14457 basic_ostream_char_print_ch(&oss
.obj
.base
, ')');
14459 basic_ostringstream_char_str_get(&oss
.obj
, &str
);
14460 basic_ostringstream_char_dtor(&oss
.vbase
);
14461 basic_ostream_char_print_bstr(ostr
, &str
);
14462 MSVCP_basic_string_char_dtor(&str
);
14466 /* ??$?6odu?$char_traits@d@std@@@std@@yaaav?$basic_ostream@du?$char_traits@d@std@@@0@aav10@abv?$complex@o@0@@Z */
14467 /* ??$?6ODU?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@AEBV?$complex@O@0@@Z */
14468 basic_ostream_char
* __cdecl
basic_ostream_char_print_complex_ldouble(basic_ostream_char
*ostr
, const complex_double
*val
)
14471 basic_ostringstream_char obj
;
14472 basic_ios_char vbase
;
14474 ios_base
*ostringstream_ios_base
, *ostream_ios_base
;
14476 basic_string_char str
;
14477 basic_ostringstream_char_ctor(&oss
.obj
);
14478 ostringstream_ios_base
= &oss
.vbase
.base
;
14479 ostream_ios_base
= &basic_ostream_char_get_basic_ios(ostr
)->base
;
14480 TRACE("(%p %p)\n", ostr
, val
);
14482 ios_base_imbue(ostringstream_ios_base
, &loc
, IOS_LOCALE(ostream_ios_base
));
14484 ios_base_precision_set(ostringstream_ios_base
, ios_base_precision_get(ostream_ios_base
));
14485 ios_base_flags_set(ostringstream_ios_base
, ios_base_flags_get(ostream_ios_base
));
14487 basic_ostream_char_print_ch(&oss
.obj
.base
, '(');
14488 basic_ostream_char_print_ldouble(&oss
.obj
.base
, val
->real
);
14489 basic_ostream_char_print_ch(&oss
.obj
.base
, ',');
14490 basic_ostream_char_print_ldouble(&oss
.obj
.base
, val
->imag
);
14491 basic_ostream_char_print_ch(&oss
.obj
.base
, ')');
14493 basic_ostringstream_char_str_get(&oss
.obj
, &str
);
14494 basic_ostringstream_char_dtor(&oss
.vbase
);
14495 basic_ostream_char_print_bstr(ostr
, &str
);
14496 MSVCP_basic_string_char_dtor(&str
);
14500 /* ?_File_size@sys@tr2@std@@YA_KPBD@Z */
14501 /* ?_File_size@sys@tr2@std@@YA_KPEBD@Z */
14502 ULONGLONG __cdecl
tr2_sys__File_size(char const* path
)
14504 WIN32_FILE_ATTRIBUTE_DATA fad
;
14506 TRACE("(%s)\n", debugstr_a(path
));
14507 if(!GetFileAttributesExA(path
, GetFileExInfoStandard
, &fad
))
14509 if(fad
.dwFileAttributes
& FILE_ATTRIBUTE_DIRECTORY
)
14512 return ((ULONGLONG
)(fad
.nFileSizeHigh
) << 32) + fad
.nFileSizeLow
;
14515 /* ?_Equivalent@sys@tr2@std@@YAHPBD0@Z */
14516 /* ?_Equivalent@sys@tr2@std@@YAHPEBD0@Z */
14517 int __cdecl
tr2_sys__Equivalent(char const* path1
, char const* path2
)
14521 BY_HANDLE_FILE_INFORMATION info1
, info2
;
14522 TRACE("(%s %s)\n", debugstr_a(path1
), debugstr_a(path2
));
14524 h1
= CreateFileA(path1
, 0, FILE_SHARE_DELETE
| FILE_SHARE_READ
| FILE_SHARE_WRITE
,
14525 NULL
, OPEN_EXISTING
, 0, 0);
14526 h2
= CreateFileA(path2
, 0, FILE_SHARE_DELETE
| FILE_SHARE_READ
| FILE_SHARE_WRITE
,
14527 NULL
, OPEN_EXISTING
, 0, 0);
14528 if(h1
== INVALID_HANDLE_VALUE
) {
14529 if(h2
== INVALID_HANDLE_VALUE
) {
14535 }else if(h2
== INVALID_HANDLE_VALUE
) {
14540 ret
= GetFileInformationByHandle(h1
, &info1
) && GetFileInformationByHandle(h2
, &info2
);
14545 return (info1
.dwVolumeSerialNumber
== info2
.dwVolumeSerialNumber
14546 && info1
.nFileIndexHigh
== info2
.nFileIndexHigh
14547 && info1
.nFileIndexLow
== info2
.nFileIndexLow
14551 /* ?_Current_get@sys@tr2@std@@YAPADAAY0BAE@D@Z */
14552 /* ?_Current_get@sys@tr2@std@@YAPEADAEAY0BAE@D@Z */
14553 char* __cdecl
tr2_sys__Current_get(char *current_path
)
14555 TRACE("(%s)\n", debugstr_a(current_path
));
14557 if(!GetCurrentDirectoryA(MAX_PATH
, current_path
))
14559 return current_path
;
14562 /* ?_Current_set@sys@tr2@std@@YA_NPBD@Z */
14563 /* ?_Current_set@sys@tr2@std@@YA_NPEBD@Z */
14564 MSVCP_bool __cdecl
tr2_sys__Current_set(char const* path
)
14566 TRACE("(%s)\n", debugstr_a(path
));
14567 return SetCurrentDirectoryA(path
) != 0;
14570 /* ?_Make_dir@sys@tr2@std@@YAHPBD@Z */
14571 /* ?_Make_dir@sys@tr2@std@@YAHPEBD@Z */
14572 int __cdecl
tr2_sys__Make_dir(char const* path
)
14574 TRACE("(%s)\n", debugstr_a(path
));
14576 if(!CreateDirectoryA(path
, NULL
)) {
14577 if(GetLastError() == ERROR_ALREADY_EXISTS
)
14586 /* ?_Remove_dir@sys@tr2@std@@YA_NPBD@Z */
14587 /* ?_Remove_dir@sys@tr2@std@@YA_NPEBD@Z */
14588 MSVCP_bool __cdecl
tr2_sys__Remove_dir(char const* path
)
14590 TRACE("(%s)\n", debugstr_a(path
));
14591 return RemoveDirectoryA(path
) != 0;
14594 /* ?_Copy_file@sys@tr2@std@@YAHPBD0_N@Z */
14595 /* ?_Copy_file@sys@tr2@std@@YAHPEBD0_N@Z */
14596 int __cdecl
tr2_sys__Copy_file(char const* source
, char const* dest
, MSVCP_bool fail_if_exists
)
14598 TRACE("(%s %s %x)\n", debugstr_a(source
), debugstr_a(dest
), fail_if_exists
);
14600 if(CopyFileA(source
, dest
, fail_if_exists
))
14601 return ERROR_SUCCESS
;
14602 return GetLastError();
14605 /* ?_Rename@sys@tr2@std@@YAHPBD0@Z */
14606 /* ?_Rename@sys@tr2@std@@YAHPEBD0@Z */
14607 int __cdecl
tr2_sys__Rename(char const* old_path
, char const* new_path
)
14609 TRACE("(%s %s)\n", debugstr_a(old_path
), debugstr_a(new_path
));
14611 if(!old_path
|| !new_path
)
14612 return ERROR_INVALID_PARAMETER
;
14614 if(MoveFileExA(old_path
, new_path
, MOVEFILE_COPY_ALLOWED
))
14615 return ERROR_SUCCESS
;
14616 return GetLastError();
14619 /* ?_Statvfs@sys@tr2@std@@YA?AUspace_info@123@PBD@Z */
14620 /* ?_Statvfs@sys@tr2@std@@YA?AUspace_info@123@PEBD@Z */
14621 struct space_info
* __cdecl
tr2_sys__Statvfs(struct space_info
*ret
, const char* path
)
14623 ULARGE_INTEGER available
, total
, free
;
14625 TRACE("(%s)\n", debugstr_a(path
));
14627 if(!path
|| !GetDiskFreeSpaceExA(path
, &available
, &total
, &free
)) {
14628 ret
->capacity
= ret
->free
= ret
->available
= 0;
14630 ret
->capacity
= total
.QuadPart
;
14631 ret
->free
= free
.QuadPart
;
14632 ret
->available
= available
.QuadPart
;
14637 /* ?_Stat@sys@tr2@std@@YA?AW4file_type@123@PBDAAH@Z */
14638 /* ?_Stat@sys@tr2@std@@YA?AW4file_type@123@PEBDAEAH@Z */
14639 enum file_type __cdecl
tr2_sys__Stat(char const* path
, int* err_code
)
14642 TRACE("(%s %p)\n", debugstr_a(path
), err_code
);
14644 *err_code
= ERROR_INVALID_PARAMETER
;
14645 return status_unknown
;
14648 attr
=GetFileAttributesA(path
);
14649 if(attr
== INVALID_FILE_ATTRIBUTES
) {
14650 enum file_type ret
;
14651 switch(GetLastError()) {
14652 case ERROR_FILE_NOT_FOUND
:
14653 case ERROR_BAD_NETPATH
:
14654 case ERROR_INVALID_NAME
:
14655 case ERROR_BAD_PATHNAME
:
14656 case ERROR_PATH_NOT_FOUND
:
14657 ret
= file_not_found
;
14658 *err_code
= ERROR_SUCCESS
;
14661 ret
= status_unknown
;
14662 *err_code
= GetLastError();
14667 *err_code
= ERROR_SUCCESS
;
14668 return (attr
& FILE_ATTRIBUTE_DIRECTORY
)?directory_file
:regular_file
;
14671 /* ?_Lstat@sys@tr2@std@@YA?AW4file_type@123@PBDAAH@Z */
14672 /* ?_Lstat@sys@tr2@std@@YA?AW4file_type@123@PEBDAEAH@Z */
14673 enum file_type __cdecl
tr2_sys__Lstat(char const* path
, int* err_code
)
14675 return tr2_sys__Stat(path
, err_code
);
14678 /* ?_Last_write_time@sys@tr2@std@@YA_JPBD@Z */
14679 /* ?_Last_write_time@sys@tr2@std@@YA_JPEBD@Z */
14680 __int64 __cdecl
tr2_sys__Last_write_time(char const* path
)
14685 __int64 last_write_time
;
14686 TRACE("(%s)\n", debugstr_a(path
));
14688 handle
= CreateFileA(path
, 0, FILE_SHARE_DELETE
| FILE_SHARE_READ
| FILE_SHARE_WRITE
,
14689 NULL
, OPEN_EXISTING
, FILE_FLAG_BACKUP_SEMANTICS
, 0);
14690 if(handle
== INVALID_HANDLE_VALUE
)
14693 ret
= GetFileTime(handle
, 0, 0, &lwt
);
14694 CloseHandle(handle
);
14698 last_write_time
= (((__int64
)lwt
.dwHighDateTime
)<< 32) + lwt
.dwLowDateTime
;
14699 last_write_time
-= TICKS_1601_TO_1970
;
14700 last_write_time
/= TICKSPERSEC
;
14701 return last_write_time
;
14704 /* ?_Last_write_time@sys@tr2@std@@YAXPBD_J@Z */
14705 /* ?_Last_write_time@sys@tr2@std@@YAXPEBD_J@Z */
14706 void __cdecl
tr2_sys__Last_write_time_set(char const* path
, __int64 newtime
)
14710 TRACE("(%s)\n", debugstr_a(path
));
14712 handle
= CreateFileA(path
, FILE_WRITE_ATTRIBUTES
,
14713 FILE_SHARE_DELETE
| FILE_SHARE_READ
| FILE_SHARE_WRITE
,
14714 NULL
, OPEN_EXISTING
, FILE_FLAG_BACKUP_SEMANTICS
, 0);
14715 if(handle
== INVALID_HANDLE_VALUE
)
14718 /* This is the implementation based on the test of msvcp110.
14719 * According to the test of msvcp120,
14720 * msvcp120's implementation does nothing. Obviously, this is a bug of windows.
14723 newtime
*= TICKSPERSEC
;
14724 newtime
+= TICKS_1601_TO_1970
;
14725 lwt
.dwLowDateTime
= (DWORD
)(newtime
);
14726 lwt
.dwHighDateTime
= (DWORD
)(newtime
>> 32);
14727 SetFileTime(handle
, 0, 0, &lwt
);
14728 CloseHandle(handle
);
14731 /* ?_Open_dir@sys@tr2@std@@YAPAXAAY0BAE@DPBDAAHAAW4file_type@123@@Z */
14732 /* ?_Open_dir@sys@tr2@std@@YAPEAXAEAY0BAE@DPEBDAEAHAEAW4file_type@123@@Z */
14733 void* __cdecl
tr2_sys__Open_dir(char* target
, char const* dest
, int* err_code
, enum file_type
* type
)
14736 WIN32_FIND_DATAA data
;
14737 char temppath
[MAX_PATH
];
14739 TRACE("(%p %s %p %p)\n", target
, debugstr_a(dest
), err_code
, type
);
14740 if(strlen(dest
) > MAX_PATH
- 3) {
14741 *err_code
= ERROR_BAD_PATHNAME
;
14744 strcpy(temppath
, dest
);
14745 strcat(temppath
, "\\*");
14747 handle
= FindFirstFileA(temppath
, &data
);
14748 if(handle
== INVALID_HANDLE_VALUE
) {
14749 *err_code
= GetLastError();
14752 while(!strcmp(data
.cFileName
, ".") || !strcmp(data
.cFileName
, "..")) {
14753 if(!FindNextFileA(handle
, &data
)) {
14754 *err_code
= ERROR_SUCCESS
;
14755 *type
= status_unknown
;
14761 strcpy(target
, data
.cFileName
);
14762 *err_code
= ERROR_SUCCESS
;
14763 if(data
.dwFileAttributes
& FILE_ATTRIBUTE_DIRECTORY
)
14764 *type
= directory_file
;
14766 *type
= regular_file
;
14770 /* ?_Read_dir@sys@tr2@std@@YAPADAAY0BAE@DPAXAAW4file_type@123@@Z */
14771 /* ?_Read_dir@sys@tr2@std@@YAPEADAEAY0BAE@DPEAXAEAW4file_type@123@@Z */
14772 char* __cdecl
tr2_sys__Read_dir(char* target
, void* handle
, enum file_type
* type
)
14774 WIN32_FIND_DATAA data
;
14776 TRACE("(%p %p %p)\n", target
, handle
, type
);
14779 if(!FindNextFileA(handle
, &data
)) {
14780 *type
= status_unknown
;
14784 } while(!strcmp(data
.cFileName
, ".") || !strcmp(data
.cFileName
, ".."));
14786 strcpy(target
, data
.cFileName
);
14787 if(data
.dwFileAttributes
& FILE_ATTRIBUTE_DIRECTORY
)
14788 *type
= directory_file
;
14790 *type
= regular_file
;
14794 /* ?_Close_dir@sys@tr2@std@@YAXPAX@Z */
14795 /* ?_Close_dir@sys@tr2@std@@YAXPEAX@Z */
14796 void __cdecl
tr2_sys__Close_dir(void* handle
)
14798 TRACE("(%p)\n", handle
);
14803 /* ?_Link@sys@tr2@std@@YAHPBD0@Z */
14804 /* ?_Link@sys@tr2@std@@YAHPEBD0@Z */
14805 int __cdecl
tr2_sys__Link(char const* existing_path
, char const* new_path
)
14807 TRACE("(%s %s)\n", debugstr_a(existing_path
), debugstr_a(new_path
));
14808 if(!existing_path
|| !new_path
)
14809 return ERROR_INVALID_PARAMETER
;
14811 if(CreateHardLinkA(new_path
, existing_path
, NULL
))
14812 return ERROR_SUCCESS
;
14813 return GetLastError();
14816 /* ?_Symlink@sys@tr2@std@@YAHPBD0@Z */
14817 /* ?_Symlink@sys@tr2@std@@YAHPEBD0@Z */
14818 int __cdecl
tr2_sys__Symlink(char const* existing_file_name
, char const* file_name
)
14820 TRACE("(%s %s)\n", debugstr_a(existing_file_name
), debugstr_a(file_name
));
14821 if(!existing_file_name
|| !file_name
)
14822 return ERROR_INVALID_PARAMETER
;
14824 if(CreateSymbolicLinkA(file_name
, existing_file_name
, 0))
14825 return ERROR_SUCCESS
;
14826 return GetLastError();
14829 /* ?_Unlink@sys@tr2@std@@YAHPBD@Z */
14830 /* ?_Unlink@sys@tr2@std@@YAHPEBD@Z */
14831 int __cdecl
tr2_sys__Unlink(char const* path
)
14833 TRACE("(%s)\n", debugstr_a(path
));
14835 if(DeleteFileA(path
))
14836 return ERROR_SUCCESS
;
14837 return GetLastError();
14840 /* ??0strstream@std@@QAE@PADHH@Z */
14841 /* ??0strstream@std@@QEAA@PEAD_JH@Z */
14842 #if STREAMSIZE_BITS == 64
14843 DEFINE_THISCALL_WRAPPER(strstream_ctor
, 24)
14845 DEFINE_THISCALL_WRAPPER(strstream_ctor
, 20)
14847 strstream
* __thiscall
strstream_ctor(strstream
*this, char *buf
, streamsize size
, int mode
, MSVCP_bool virt_init
)
14849 basic_ios_char
*basic_ios
;
14851 TRACE("(%p %p %s %d %d)\n", this, buf
, wine_dbgstr_longlong(size
), mode
, virt_init
);
14854 this->base
.base1
.vbtable
= strstream_vbtable1
;
14855 this->base
.base2
.vbtable
= strstream_vbtable2
;
14856 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
14857 INIT_BASIC_IOS_VTORDISP(basic_ios
);
14858 basic_ios_char_ctor(basic_ios
);
14860 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
14863 strstreambuf_ctor_get_put(&this->buf
, buf
, size
,
14864 buf
&& (mode
& OPENMODE_app
) ? buf
+strlen(buf
) : buf
);
14865 basic_iostream_char_ctor(&this->base
, &this->buf
.base
, FALSE
);
14866 basic_ios
->base
.vtable
= &MSVCP_strstream_vtable
;
14870 /* ??1strstream@std@@UAE@XZ */
14871 /* ??1strstream@std@@UEAA@XZ */
14872 DEFINE_THISCALL_WRAPPER(strstream_dtor
, 4)
14873 void __thiscall
strstream_dtor(basic_ios_char
*base
)
14875 strstream
*this = strstream_from_basic_ios(base
);
14877 TRACE("(%p)\n", this);
14879 basic_iostream_char_dtor(basic_iostream_char_to_basic_ios(&this->base
));
14880 strstreambuf_dtor(&this->buf
);
14883 static void strstream_vbase_dtor(strstream
*this)
14885 basic_ios_char
*base
= strstream_to_basic_ios(this);
14887 TRACE("(%p)\n", this);
14889 strstream_dtor(base
);
14890 basic_ios_char_dtor(base
);
14893 DEFINE_THISCALL_WRAPPER(strstream_vector_dtor
, 8)
14894 strstream
* __thiscall
strstream_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
14896 strstream
*this = strstream_from_basic_ios(base
);
14898 TRACE("(%p %x)\n", this, flags
);
14901 /* we have an array, with the number of elements stored before the first object */
14902 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
14904 for(i
=*ptr
-1; i
>=0; i
--)
14905 strstream_vbase_dtor(this+i
);
14906 MSVCRT_operator_delete(ptr
);
14908 strstream_vbase_dtor(this);
14910 MSVCRT_operator_delete(this);
14916 static void __cdecl
setprecision_func(ios_base
*base
, streamsize prec
)
14918 ios_base_precision_set(base
, prec
);
14921 /* ?setprecision@std@@YA?AU?$_Smanip@H@1@H@Z */
14922 /* ?setprecision@std@@YA?AU?$_Smanip@_J@1@_J@Z */
14923 manip_streamsize
* __cdecl
setprecision(manip_streamsize
*ret
, streamsize prec
)
14925 TRACE("(%p %s)\n", ret
, wine_dbgstr_longlong(prec
));
14927 ret
->pfunc
= setprecision_func
;
14932 static void __cdecl
setw_func(ios_base
*base
, streamsize width
)
14934 ios_base_width_set(base
, width
);
14937 /* ?setw@std@@YA?AU?$_Smanip@H@1@H@Z */
14938 /* ?setw@std@@YA?AU?$_Smanip@_J@1@_J@Z */
14939 manip_streamsize
* __cdecl
setw(manip_streamsize
*ret
, streamsize width
)
14941 TRACE("(%p %s)\n", ret
, wine_dbgstr_longlong(width
));
14943 ret
->pfunc
= setw_func
;
14948 static void __cdecl
resetioflags_func(ios_base
*base
, int mask
)
14950 ios_base_setf_mask(base
, 0, mask
);
14953 /* ?resetiosflags@std@@YA?AU?$_Smanip@H@1@H@Z */
14954 manip_int
* __cdecl
resetiosflags(manip_int
*ret
, int mask
)
14956 TRACE("(%p %d)\n", ret
, mask
);
14958 ret
->pfunc
= resetioflags_func
;
14963 static void __cdecl
setiosflags_func(ios_base
*base
, int mask
)
14965 ios_base_setf_mask(base
, FMTFLAG_mask
, mask
);
14968 /* ?setiosflags@std@@YA?AU?$_Smanip@H@1@H@Z */
14969 manip_int
* __cdecl
setiosflags(manip_int
*ret
, int mask
)
14971 TRACE("(%p %d)\n", ret
, mask
);
14973 ret
->pfunc
= setiosflags_func
;
14978 static void __cdecl
setbase_func(ios_base
*base
, int set_base
)
14981 set_base
= FMTFLAG_dec
;
14982 else if(set_base
== 8)
14983 set_base
= FMTFLAG_oct
;
14984 else if(set_base
== 16)
14985 set_base
= FMTFLAG_hex
;
14989 ios_base_setf_mask(base
, set_base
, FMTFLAG_basefield
);
14992 /* ?setbase@std@@YA?AU?$_Smanip@H@1@H@Z */
14993 manip_int
* __cdecl
setbase(manip_int
*ret
, int base
)
14995 TRACE("(%p %d)\n", ret
, base
);
14997 ret
->pfunc
= setbase_func
;
15002 static basic_filebuf_char filebuf_char_stdin
;
15003 /* ?cin@std@@3V?$basic_istream@DU?$char_traits@D@std@@@1@A */
15005 basic_istream_char obj
;
15006 basic_ios_char vbase
;
15008 /* ?_Ptr_cin@std@@3PAV?$basic_istream@DU?$char_traits@D@std@@@1@A */
15009 /* ?_Ptr_cin@std@@3PEAV?$basic_istream@DU?$char_traits@D@std@@@1@EA */
15010 basic_istream_char
*_Ptr_cin
= &cin
.obj
;
15012 static basic_filebuf_wchar filebuf_short_stdin
;
15013 /* ?wcin@std@@3V?$basic_istream@GU?$char_traits@G@std@@@1@A */
15015 basic_istream_wchar obj
;
15016 basic_ios_wchar vbase
;
15017 } ucin
= { { 0 } };
15018 /* ?_Ptr_wcin@std@@3PAV?$basic_istream@GU?$char_traits@G@std@@@1@A */
15019 /* ?_Ptr_wcin@std@@3PEAV?$basic_istream@GU?$char_traits@G@std@@@1@EA */
15020 basic_istream_wchar
*_Ptr_ucin
= &ucin
.obj
;
15022 static basic_filebuf_wchar filebuf_wchar_stdin
;
15023 /* ?wcin@std@@3V?$basic_istream@_WU?$char_traits@_W@std@@@1@A */
15025 basic_istream_wchar obj
;
15026 basic_ios_wchar vbase
;
15027 } wcin
= { { 0 } };
15028 /* ?_Ptr_wcin@std@@3PAV?$basic_istream@_WU?$char_traits@_W@std@@@1@A */
15029 /* ?_Ptr_wcin@std@@3PEAV?$basic_istream@_WU?$char_traits@_W@std@@@1@EA */
15030 basic_istream_wchar
*_Ptr_wcin
= &wcin
.obj
;
15032 static basic_filebuf_char filebuf_char_stdout
;
15033 /* ?cout@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A */
15035 basic_ostream_char obj
;
15036 basic_ios_char vbase
;
15037 } cout
= { { 0 } };
15038 /* ?_Ptr_cout@std@@3PAV?$basic_ostream@DU?$char_traits@D@std@@@1@A */
15039 /* ?_Ptr_cout@std@@3PEAV?$basic_ostream@DU?$char_traits@D@std@@@1@EA */
15040 basic_ostream_char
*_Ptr_cout
= &cout
.obj
;
15042 static basic_filebuf_wchar filebuf_short_stdout
;
15043 /* ?wcout@std@@3V?$basic_ostream@GU?$char_traits@G@std@@@1@A */
15045 basic_ostream_wchar obj
;
15046 basic_ios_wchar vbase
;
15047 } ucout
= { { 0 } };
15048 /* ?_Ptr_wcout@std@@3PAV?$basic_ostream@GU?$char_traits@G@std@@@1@A */
15049 /* ?_Ptr_wcout@std@@3PEAV?$basic_ostream@GU?$char_traits@G@std@@@1@EA */
15050 basic_ostream_wchar
*_Ptr_ucout
= &ucout
.obj
;
15052 static basic_filebuf_wchar filebuf_wchar_stdout
;
15053 /* ?wcout@std@@3V?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
15055 basic_ostream_wchar obj
;
15056 basic_ios_wchar vbase
;
15057 } wcout
= { { 0 } };
15058 /* ?_Ptr_wcout@std@@3PAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
15059 /* ?_Ptr_wcout@std@@3PEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@EA */
15060 basic_ostream_wchar
*_Ptr_wcout
= &wcout
.obj
;
15062 static basic_filebuf_char filebuf_char_stderr
;
15063 /* ?cerr@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A */
15065 basic_ostream_char obj
;
15066 basic_ios_char vbase
;
15067 } cerr
= { { 0 } };
15068 /* ?_Ptr_cerr@std@@3PAV?$basic_ostream@DU?$char_traits@D@std@@@1@A */
15069 /* ?_Ptr_cerr@std@@3PEAV?$basic_ostream@DU?$char_traits@D@std@@@1@EA */
15070 basic_ostream_char
*_Ptr_cerr
= &cerr
.obj
;
15072 static basic_filebuf_wchar filebuf_short_stderr
;
15073 /* ?wcerr@std@@3V?$basic_ostream@GU?$char_traits@G@std@@@1@A */
15075 basic_ostream_wchar obj
;
15076 basic_ios_wchar vbase
;
15077 } ucerr
= { { 0 } };
15078 /* ?_Ptr_wcerr@std@@3PAV?$basic_ostream@GU?$char_traits@G@std@@@1@A */
15079 /* ?_Ptr_wcerr@std@@3PEAV?$basic_ostream@GU?$char_traits@G@std@@@1@EA */
15080 basic_ostream_wchar
*_Ptr_ucerr
= &ucerr
.obj
;
15082 static basic_filebuf_wchar filebuf_wchar_stderr
;
15083 /* ?wcerr@std@@3V?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
15085 basic_ostream_wchar obj
;
15086 basic_ios_wchar vbase
;
15087 } wcerr
= { { 0 } };
15088 /* ?_Ptr_wcerr@std@@3PAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
15089 /* ?_Ptr_wcerr@std@@3PEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@EA */
15090 basic_ostream_wchar
*_Ptr_wcerr
= &wcerr
.obj
;
15092 static basic_filebuf_char filebuf_char_log
;
15093 /* ?clog@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A */
15095 basic_ostream_char obj
;
15096 basic_ios_char vbase
;
15097 } clog
= { { 0 } };
15098 /* ?_Ptr_clog@std@@3PAV?$basic_ostream@DU?$char_traits@D@std@@@1@A */
15099 /* ?_Ptr_clog@std@@3PEAV?$basic_ostream@DU?$char_traits@D@std@@@1@EA */
15100 basic_ostream_char
*_Ptr_clog
= &clog
.obj
;
15102 static basic_filebuf_wchar filebuf_short_log
;
15103 /* ?wclog@std@@3V?$basic_ostream@GU?$char_traits@G@std@@@1@A */
15105 basic_ostream_wchar obj
;
15106 basic_ios_wchar vbase
;
15107 } uclog
= { { 0 } };
15108 /* ?_Ptr_wclog@std@@3PAV?$basic_ostream@GU?$char_traits@G@std@@@1@A */
15109 /* ?_Ptr_wclog@std@@3PEAV?$basic_ostream@GU?$char_traits@G@std@@@1@EA */
15110 basic_ostream_wchar
*_Ptr_uclog
= &uclog
.obj
;
15112 static basic_filebuf_wchar filebuf_wchar_log
;
15113 /* ?wclog@std@@3V?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
15115 basic_ostream_wchar obj
;
15116 basic_ios_wchar vbase
;
15117 } wclog
= { { 0 } };
15118 /* ?_Ptr_wclog@std@@3PAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
15119 /* ?_Ptr_wclog@std@@3PEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@EA */
15120 basic_ostream_wchar
*_Ptr_wclog
= &wclog
.obj
;
15122 /* ?_Init_cnt@Init@ios_base@std@@0HA */
15123 int ios_base_Init__Init_cnt
= -1;
15125 /* ?_Init_cnt_func@Init@ios_base@std@@CAAAHXZ */
15126 /* ?_Init_cnt_func@Init@ios_base@std@@CAAEAHXZ */
15127 int* __cdecl
ios_base_Init__Init_cnt_func(void)
15129 return &ios_base_Init__Init_cnt
;
15132 /* ?_Init_ctor@Init@ios_base@std@@CAXPAV123@@Z */
15133 /* ?_Init_ctor@Init@ios_base@std@@CAXPEAV123@@Z */
15134 void __cdecl
ios_base_Init__Init_ctor(void *this)
15136 TRACE("(%p)\n", this);
15138 if(ios_base_Init__Init_cnt
< 0)
15139 ios_base_Init__Init_cnt
= 1;
15141 ios_base_Init__Init_cnt
++;
15144 /* ??0Init@ios_base@std@@QAE@XZ */
15145 /* ??0Init@ios_base@std@@QEAA@XZ */
15146 DEFINE_THISCALL_WRAPPER(ios_base_Init_ctor
, 4)
15147 void* __thiscall
ios_base_Init_ctor(void *this)
15149 ios_base_Init__Init_ctor(this);
15153 /* ?_Init_dtor@Init@ios_base@std@@CAXPAV123@@Z */
15154 /* ?_Init_dtor@Init@ios_base@std@@CAXPEAV123@@Z */
15155 void __cdecl
ios_base_Init__Init_dtor(void *this)
15157 TRACE("(%p)\n", this);
15159 ios_base_Init__Init_cnt
--;
15160 if(!ios_base_Init__Init_cnt
) {
15161 basic_ostream_char_flush(&cout
.obj
);
15162 basic_ostream_char_flush(&cerr
.obj
);
15163 basic_ostream_char_flush(&clog
.obj
);
15167 /* ??1Init@ios_base@std@@QAE@XZ */
15168 /* ??1Init@ios_base@std@@QEAA@XZ */
15169 DEFINE_THISCALL_WRAPPER(ios_base_Init_dtor
, 4)
15170 void __thiscall
ios_base_Init_dtor(void *this)
15172 ios_base_Init__Init_dtor(this);
15175 /* ??4Init@ios_base@std@@QAEAAV012@ABV012@@Z */
15176 /* ??4Init@ios_base@std@@QEAAAEAV012@AEBV012@@Z */
15177 DEFINE_THISCALL_WRAPPER(ios_base_Init_op_assign
, 8)
15178 void* __thiscall
ios_base_Init_op_assign(void *this, void *rhs
)
15180 TRACE("(%p %p)\n", this, rhs
);
15184 /* ?_Init_cnt@_Winit@std@@0HA */
15185 int _Winit__Init_cnt
= -1;
15187 /* ??0_Winit@std@@QAE@XZ */
15188 /* ??0_Winit@std@@QEAA@XZ */
15189 DEFINE_THISCALL_WRAPPER(_Winit_ctor
, 4)
15190 void* __thiscall
_Winit_ctor(void *this)
15192 TRACE("(%p)\n", this);
15194 if(_Winit__Init_cnt
< 0)
15195 _Winit__Init_cnt
= 1;
15197 _Winit__Init_cnt
++;
15202 /* ?_File_size@sys@tr2@std@@YA_KPB_W@Z */
15203 /* ?_File_size@sys@tr2@std@@YA_KPEB_W@Z */
15204 ULONGLONG __cdecl
tr2_sys__File_size_wchar(WCHAR
const* path
)
15206 WIN32_FILE_ATTRIBUTE_DATA fad
;
15208 TRACE("(%s)\n", debugstr_w(path
));
15209 if(!GetFileAttributesExW(path
, GetFileExInfoStandard
, &fad
))
15211 if(fad
.dwFileAttributes
& FILE_ATTRIBUTE_DIRECTORY
)
15214 return ((ULONGLONG
)(fad
.nFileSizeHigh
) << 32) + fad
.nFileSizeLow
;
15217 /* ?_Equivalent@sys@tr2@std@@YAHPB_W0@Z */
15218 /* ?_Equivalent@sys@tr2@std@@YAHPEB_W0@Z */
15219 int __cdecl
tr2_sys__Equivalent_wchar(WCHAR
const* path1
, WCHAR
const* path2
)
15223 BY_HANDLE_FILE_INFORMATION info1
, info2
;
15224 TRACE("(%s %s)\n", debugstr_w(path1
), debugstr_w(path2
));
15226 h1
= CreateFileW(path1
, 0, FILE_SHARE_DELETE
| FILE_SHARE_READ
| FILE_SHARE_WRITE
,
15227 NULL
, OPEN_EXISTING
, 0, 0);
15228 h2
= CreateFileW(path2
, 0, FILE_SHARE_DELETE
| FILE_SHARE_READ
| FILE_SHARE_WRITE
,
15229 NULL
, OPEN_EXISTING
, 0, 0);
15230 if(h1
== INVALID_HANDLE_VALUE
) {
15231 if(h2
== INVALID_HANDLE_VALUE
) {
15237 }else if(h2
== INVALID_HANDLE_VALUE
) {
15242 ret
= GetFileInformationByHandle(h1
, &info1
) && GetFileInformationByHandle(h2
, &info2
);
15247 return (info1
.dwVolumeSerialNumber
== info2
.dwVolumeSerialNumber
15248 && info1
.nFileIndexHigh
== info2
.nFileIndexHigh
15249 && info1
.nFileIndexLow
== info2
.nFileIndexLow
15253 /* ?_Current_get@sys@tr2@std@@YAPA_WAAY0BAE@_W@Z */
15254 /* ?_Current_get@sys@tr2@std@@YAPEA_WAEAY0BAE@_W@Z */
15255 WCHAR
* __cdecl
tr2_sys__Current_get_wchar(WCHAR
*current_path
)
15257 TRACE("(%s)\n", debugstr_w(current_path
));
15259 if(!GetCurrentDirectoryW(MAX_PATH
, current_path
))
15261 return current_path
;
15264 /* ?_Current_set@sys@tr2@std@@YA_NPB_W@Z */
15265 /* ?_Current_set@sys@tr2@std@@YA_NPEB_W@Z */
15266 MSVCP_bool __cdecl
tr2_sys__Current_set_wchar(WCHAR
const* path
)
15268 TRACE("(%s)\n", debugstr_w(path
));
15269 return SetCurrentDirectoryW(path
) != 0;
15272 /* ?_Make_dir@sys@tr2@std@@YAHPB_W@Z */
15273 /* ?_Make_dir@sys@tr2@std@@YAHPEB_W@Z */
15274 int __cdecl
tr2_sys__Make_dir_wchar(WCHAR
const* path
)
15276 TRACE("(%s)\n", debugstr_w(path
));
15278 if(!CreateDirectoryW(path
, NULL
)) {
15279 if(GetLastError() == ERROR_ALREADY_EXISTS
)
15288 /* ?_Remove_dir@sys@tr2@std@@YA_NPB_W@Z */
15289 /* ?_Remove_dir@sys@tr2@std@@YA_NPEB_W@Z */
15290 MSVCP_bool __cdecl
tr2_sys__Remove_dir_wchar(WCHAR
const* path
)
15292 TRACE("(%s)\n", debugstr_w(path
));
15293 return RemoveDirectoryW(path
) != 0;
15296 /* ?_Copy_file@sys@tr2@std@@YAHPB_W0_N@Z */
15297 /* ?_Copy_file@sys@tr2@std@@YAHPEB_W0_N@Z */
15298 int __cdecl
tr2_sys__Copy_file_wchar(WCHAR
const* source
, WCHAR
const* dest
, MSVCP_bool fail_if_exists
)
15300 TRACE("(%s %s %x)\n", debugstr_w(source
), debugstr_w(dest
), fail_if_exists
);
15302 if(CopyFileW(source
, dest
, fail_if_exists
))
15303 return ERROR_SUCCESS
;
15304 return GetLastError();
15307 /* ?_Rename@sys@tr2@std@@YAHPB_W0@Z */
15308 /* ?_Rename@sys@tr2@std@@YAHPEB_W0@Z */
15309 int __cdecl
tr2_sys__Rename_wchar(WCHAR
const* old_path
, WCHAR
const* new_path
)
15311 TRACE("(%s %s)\n", debugstr_w(old_path
), debugstr_w(new_path
));
15313 if(!old_path
|| !new_path
)
15314 return ERROR_INVALID_PARAMETER
;
15316 if(MoveFileExW(old_path
, new_path
, MOVEFILE_COPY_ALLOWED
))
15317 return ERROR_SUCCESS
;
15318 return GetLastError();
15321 /* ?_Statvfs@sys@tr2@std@@YA?AUspace_info@123@PB_W@Z */
15322 /* ?_Statvfs@sys@tr2@std@@YA?AUspace_info@123@PEB_W@Z */
15323 struct space_info
* __cdecl
tr2_sys__Statvfs_wchar(struct space_info
*ret
, const WCHAR
* path
)
15325 ULARGE_INTEGER available
, total
, free
;
15327 TRACE("(%s)\n", debugstr_w(path
));
15329 if(!path
|| !GetDiskFreeSpaceExW(path
, &available
, &total
, &free
)) {
15330 ret
->capacity
= ret
->free
= ret
->available
= 0;
15332 ret
->capacity
= total
.QuadPart
;
15333 ret
->free
= free
.QuadPart
;
15334 ret
->available
= available
.QuadPart
;
15339 /* ?_Stat@sys@tr2@std@@YA?AW4file_type@123@PB_WAAH@Z */
15340 /* ?_Stat@sys@tr2@std@@YA?AW4file_type@123@PEB_WAEAH@Z */
15341 enum file_type __cdecl
tr2_sys__Stat_wchar(WCHAR
const* path
, int* err_code
)
15344 TRACE("(%s %p)\n", debugstr_w(path
), err_code
);
15346 *err_code
= ERROR_INVALID_PARAMETER
;
15347 return status_unknown
;
15350 attr
=GetFileAttributesW(path
);
15351 if(attr
== INVALID_FILE_ATTRIBUTES
) {
15352 enum file_type ret
;
15353 switch(GetLastError()) {
15354 case ERROR_FILE_NOT_FOUND
:
15355 case ERROR_BAD_NETPATH
:
15356 case ERROR_INVALID_NAME
:
15357 case ERROR_BAD_PATHNAME
:
15358 case ERROR_PATH_NOT_FOUND
:
15359 ret
= file_not_found
;
15360 *err_code
= ERROR_SUCCESS
;
15363 ret
= status_unknown
;
15364 *err_code
= GetLastError();
15369 *err_code
= ERROR_SUCCESS
;
15370 return (attr
& FILE_ATTRIBUTE_DIRECTORY
)?directory_file
:regular_file
;
15373 /* ?_Lstat@sys@tr2@std@@YA?AW4file_type@123@PB_WAAH@Z */
15374 /* ?_Lstat@sys@tr2@std@@YA?AW4file_type@123@PEB_WAEAH@Z */
15375 enum file_type __cdecl
tr2_sys__Lstat_wchar(WCHAR
const* path
, int* err_code
)
15377 return tr2_sys__Stat_wchar(path
, err_code
);
15380 /* ??1_Winit@std@@QAE@XZ */
15381 /* ??1_Winit@std@@QAE@XZ */
15382 DEFINE_THISCALL_WRAPPER(_Winit_dtor
, 4)
15383 void __thiscall
_Winit_dtor(void *this)
15385 TRACE("(%p)\n", this);
15387 _Winit__Init_cnt
--;
15388 if(!_Winit__Init_cnt
) {
15389 basic_ostream_wchar_flush(&wcout
.obj
);
15390 basic_ostream_wchar_flush(&wcerr
.obj
);
15391 basic_ostream_wchar_flush(&wclog
.obj
);
15395 /* ??4_Winit@std@@QAEAAV01@ABV01@@Z */
15396 /* ??4_Winit@std@@QEAAAEAV01@AEBV01@@Z */
15397 DEFINE_THISCALL_WRAPPER(_Winit_op_assign
, 8)
15398 void* __thiscall
_Winit_op_assign(void *this, void *rhs
)
15400 TRACE("(%p %p)\n", this, rhs
);
15404 void init_io(void *base
)
15407 init_iosb_rtti(base
);
15408 init_ios_base_rtti(base
);
15409 init_basic_ios_char_rtti(base
);
15410 init_basic_ios_wchar_rtti(base
);
15411 init_basic_ios_short_rtti(base
);
15412 init_basic_streambuf_char_rtti(base
);
15413 init_basic_streambuf_wchar_rtti(base
);
15414 init_basic_streambuf_short_rtti(base
);
15415 init_basic_filebuf_char_rtti(base
);
15416 init_basic_filebuf_wchar_rtti(base
);
15417 init_basic_filebuf_short_rtti(base
);
15418 init_basic_stringbuf_char_rtti(base
);
15419 init_basic_stringbuf_wchar_rtti(base
);
15420 init_basic_stringbuf_short_rtti(base
);
15421 init_basic_ostream_char_rtti(base
);
15422 init_basic_ostream_wchar_rtti(base
);
15423 init_basic_ostream_short_rtti(base
);
15424 init_basic_istream_char_rtti(base
);
15425 init_basic_istream_wchar_rtti(base
);
15426 init_basic_istream_short_rtti(base
);
15427 init_basic_iostream_char_rtti(base
);
15428 init_basic_iostream_wchar_rtti(base
);
15429 init_basic_iostream_short_rtti(base
);
15430 init_basic_ofstream_char_rtti(base
);
15431 init_basic_ofstream_wchar_rtti(base
);
15432 init_basic_ofstream_short_rtti(base
);
15433 init_basic_ifstream_char_rtti(base
);
15434 init_basic_ifstream_wchar_rtti(base
);
15435 init_basic_ifstream_short_rtti(base
);
15436 init_basic_fstream_char_rtti(base
);
15437 init_basic_fstream_wchar_rtti(base
);
15438 init_basic_fstream_short_rtti(base
);
15439 init_basic_ostringstream_char_rtti(base
);
15440 init_basic_ostringstream_wchar_rtti(base
);
15441 init_basic_ostringstream_short_rtti(base
);
15442 init_basic_istringstream_char_rtti(base
);
15443 init_basic_istringstream_wchar_rtti(base
);
15444 init_basic_istringstream_short_rtti(base
);
15445 init_basic_stringstream_char_rtti(base
);
15446 init_basic_stringstream_wchar_rtti(base
);
15447 init_basic_stringstream_short_rtti(base
);
15448 init_strstreambuf_rtti(base
);
15449 init_strstream_rtti(base
);
15450 init_ostrstream_rtti(base
);
15453 basic_filebuf_char_ctor_file(&filebuf_char_stdin
, stdin
);
15454 basic_istream_char_ctor(&cin
.obj
, &filebuf_char_stdin
.base
, FALSE
/*FIXME*/, TRUE
);
15456 basic_filebuf_short_ctor_file(&filebuf_short_stdin
, stdin
);
15457 basic_istream_short_ctor(&ucin
.obj
, &filebuf_short_stdin
.base
, FALSE
/*FIXME*/, TRUE
);
15459 basic_filebuf_wchar_ctor_file(&filebuf_wchar_stdin
, stdin
);
15460 basic_istream_wchar_ctor(&wcin
.obj
, &filebuf_wchar_stdin
.base
, FALSE
/*FIXME*/, TRUE
);
15462 basic_filebuf_char_ctor_file(&filebuf_char_stdout
, stdout
);
15463 basic_ostream_char_ctor(&cout
.obj
, &filebuf_char_stdout
.base
, FALSE
/*FIXME*/, TRUE
);
15465 basic_filebuf_short_ctor_file(&filebuf_short_stdout
, stdout
);
15466 basic_ostream_short_ctor(&ucout
.obj
, &filebuf_short_stdout
.base
, FALSE
/*FIXME*/, TRUE
);
15468 basic_filebuf_wchar_ctor_file(&filebuf_wchar_stdout
, stdout
);
15469 basic_ostream_wchar_ctor(&wcout
.obj
, &filebuf_wchar_stdout
.base
, FALSE
/*FIXME*/, TRUE
);
15471 basic_filebuf_char_ctor_file(&filebuf_char_stderr
, stderr
);
15472 basic_ostream_char_ctor(&cerr
.obj
, &filebuf_char_stderr
.base
, FALSE
/*FIXME*/, TRUE
);
15474 basic_filebuf_short_ctor_file(&filebuf_short_stderr
, stderr
);
15475 basic_ostream_short_ctor(&ucerr
.obj
, &filebuf_short_stderr
.base
, FALSE
/*FIXME*/, TRUE
);
15477 basic_filebuf_wchar_ctor_file(&filebuf_wchar_stderr
, stderr
);
15478 basic_ostream_wchar_ctor(&wcerr
.obj
, &filebuf_wchar_stderr
.base
, FALSE
/*FIXME*/, TRUE
);
15480 basic_filebuf_char_ctor_file(&filebuf_char_log
, stderr
);
15481 basic_ostream_char_ctor(&clog
.obj
, &filebuf_char_log
.base
, FALSE
/*FIXME*/, TRUE
);
15483 basic_filebuf_short_ctor_file(&filebuf_short_log
, stderr
);
15484 basic_ostream_short_ctor(&uclog
.obj
, &filebuf_short_log
.base
, FALSE
/*FIXME*/, TRUE
);
15486 basic_filebuf_wchar_ctor_file(&filebuf_wchar_log
, stderr
);
15487 basic_ostream_wchar_ctor(&wclog
.obj
, &filebuf_wchar_log
.base
, FALSE
/*FIXME*/, TRUE
);
15492 basic_istream_char_vbase_dtor(&cin
.obj
);
15493 basic_filebuf_char_dtor(&filebuf_char_stdin
);
15495 basic_istream_wchar_vbase_dtor(&ucin
.obj
);
15496 basic_filebuf_wchar_dtor(&filebuf_short_stdin
);
15498 basic_istream_wchar_vbase_dtor(&wcin
.obj
);
15499 basic_filebuf_wchar_dtor(&filebuf_wchar_stdin
);
15501 basic_ostream_char_vbase_dtor(&cout
.obj
);
15502 basic_filebuf_char_dtor(&filebuf_char_stdout
);
15504 basic_ostream_wchar_vbase_dtor(&ucout
.obj
);
15505 basic_filebuf_wchar_dtor(&filebuf_short_stdout
);
15507 basic_ostream_wchar_vbase_dtor(&wcout
.obj
);
15508 basic_filebuf_wchar_dtor(&filebuf_wchar_stdout
);
15510 basic_ostream_char_vbase_dtor(&cerr
.obj
);
15511 basic_filebuf_char_dtor(&filebuf_char_stderr
);
15513 basic_ostream_wchar_vbase_dtor(&ucerr
.obj
);
15514 basic_filebuf_wchar_dtor(&filebuf_short_stderr
);
15516 basic_ostream_wchar_vbase_dtor(&wcerr
.obj
);
15517 basic_filebuf_wchar_dtor(&filebuf_wchar_stderr
);
15519 basic_ostream_char_vbase_dtor(&clog
.obj
);
15520 basic_filebuf_char_dtor(&filebuf_char_log
);
15522 basic_ostream_wchar_vbase_dtor(&uclog
.obj
);
15523 basic_filebuf_wchar_dtor(&filebuf_short_log
);
15525 basic_ostream_wchar_vbase_dtor(&wclog
.obj
);
15526 basic_filebuf_wchar_dtor(&filebuf_wchar_log
);