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 /* ?_Index@ios_base@std@@0HA */
33 int ios_base_Index
= 0;
34 /* ?_Sync@ios_base@std@@0_NA */
35 MSVCP_bool ios_base_Sync
= FALSE
;
39 __int64
DECLSPEC_ALIGN(8) pos
;
43 static inline const char* debugstr_fpos_int(fpos_int
*fpos
)
45 return wine_dbg_sprintf("fpos(%s %s %d)", wine_dbgstr_longlong(fpos
->off
), wine_dbgstr_longlong(fpos
->pos
), fpos
->state
);
49 void (__cdecl
*pfunc
)(ios_base
*, streamsize
);
54 void (__cdecl
*pfunc
)(ios_base
*, int);
62 } basic_filebuf__Initfl
;
65 basic_streambuf_char base
;
70 basic_string_char
*conv
;
84 basic_streambuf_wchar base
;
89 basic_string_char
*conv
;
100 } basic_filebuf_wchar
;
103 STRINGBUF_allocated
= 1,
104 STRINGBUF_no_write
= 2,
105 STRINGBUF_no_read
= 4,
106 STRINGBUF_append
= 8,
107 STRINGBUF_at_end
= 16
108 } basic_stringbuf_state
;
111 basic_streambuf_char base
;
114 char allocator
; /* empty struct */
115 } basic_stringbuf_char
;
118 basic_streambuf_wchar base
;
121 char allocator
; /* empty struct */
122 } basic_stringbuf_wchar
;
126 basic_streambuf_char
*strbuf
;
127 struct _basic_ostream_char
*stream
;
133 basic_streambuf_wchar
*strbuf
;
134 struct _basic_ostream_wchar
*stream
;
138 typedef struct _basic_ostream_char
{
140 /* virtual inheritance
141 * basic_ios_char basic_ios;
143 } basic_ostream_char
;
145 typedef struct _basic_ostream_wchar
{
147 /* virtual inheritance
148 * basic_ios_wchar basic_ios;
150 } basic_ostream_wchar
;
155 /* virtual inheritance
156 * basic_ios_char basic_ios;
158 } basic_istream_char
;
163 /* virtual inheritance
164 * basic_ios_wchar basic_ios;
166 } basic_istream_wchar
;
169 basic_istream_char base1
;
170 basic_ostream_char base2
;
171 /* virtual inheritance
172 * basic_ios_char basic_ios;
174 } basic_iostream_char
;
177 basic_istream_wchar base1
;
178 basic_ostream_wchar base2
;
179 /* virtual inheritance
180 * basic_ios_wchar basic_ios;
182 } basic_iostream_wchar
;
185 basic_ostream_char base
;
186 basic_filebuf_char filebuf
;
187 /* virtual inheritance
188 * basic_ios_char basic_ios;
190 } basic_ofstream_char
;
193 basic_ostream_wchar base
;
194 basic_filebuf_wchar filebuf
;
195 /* virtual inheritance
196 * basic_ios_wchar basic_ios;
198 } basic_ofstream_wchar
;
201 basic_istream_char base
;
202 basic_filebuf_char filebuf
;
203 /* virtual inheritance
204 * basic_ios_char basic_ios;
206 } basic_ifstream_char
;
209 basic_istream_wchar base
;
210 basic_filebuf_wchar filebuf
;
211 /* virtual inheritance
212 * basic_ios_wchar basic_ios;
214 } basic_ifstream_wchar
;
217 basic_iostream_char base
;
218 basic_filebuf_char filebuf
;
219 /* virtual inheritance
220 * basic_ios_char basic_ios;
222 } basic_fstream_char
;
225 basic_iostream_wchar base
;
226 basic_filebuf_wchar filebuf
;
227 /* virtual inheritance
228 * basic_ios_char basic_ios;
230 } basic_fstream_wchar
;
233 basic_ostream_char base
;
234 basic_stringbuf_char strbuf
;
235 /* virtual inheritance
236 * basic_ios_char basic_ios;
238 } basic_ostringstream_char
;
241 basic_ostream_wchar base
;
242 basic_stringbuf_wchar strbuf
;
243 /* virtual inheritance
244 * basic_ios_wchar basic_ios;
246 } basic_ostringstream_wchar
;
249 basic_istream_char base
;
250 basic_stringbuf_char strbuf
;
251 /* virtual inheritance
252 * basic_ios_char basic_ios;
254 } basic_istringstream_char
;
257 basic_istream_wchar base
;
258 basic_stringbuf_wchar strbuf
;
259 /* virtual inheritance
260 * basic_ios_wchar basic_ios;
262 } basic_istringstream_wchar
;
265 basic_iostream_char base
;
266 basic_stringbuf_char strbuf
;
267 /* virtual inheritance
268 * basic_ios_char basic_ios;
270 } basic_stringstream_char
;
273 basic_iostream_wchar base
;
274 basic_stringbuf_wchar strbuf
;
275 /* virtual inheritance
276 * basic_ios_wchar basic_ios;
278 } basic_stringstream_wchar
;
281 STRSTATE_Allocated
= 1,
282 STRSTATE_Constant
= 2,
283 STRSTATE_Dynamic
= 4,
285 } strstreambuf__Strstate
;
288 basic_streambuf_char base
;
293 void* (__cdecl
*palloc
)(MSVCP_size_t
);
294 void (__cdecl
*pfree
)(void*);
298 basic_ostream_char base
;
300 /* virtual inheritance
301 * basic_ios_char basic_ios;
306 basic_istream_char base
;
308 /* virtual inheritance
309 * basic_ios_char basic_ios;
314 basic_iostream_char base
;
316 /* virtual inheritance
317 * basic_ios_char basic_ios;
328 status_unknown
, file_not_found
, regular_file
, directory_file
,
329 symlink_file
, block_file
, character_file
, fifo_file
, socket_file
,
333 #if _MSVCP_VER >= 100
334 #define VBTABLE_ALIGN 8
336 #define VBTABLE_ALIGN 4
339 extern const vtable_ptr MSVCP_iosb_vtable
;
341 /* ??_7ios_base@std@@6B@ */
342 extern const vtable_ptr MSVCP_ios_base_vtable
;
344 /* ??_7?$basic_ios@DU?$char_traits@D@std@@@std@@6B@ */
345 extern const vtable_ptr MSVCP_basic_ios_char_vtable
;
347 /* ??_7?$basic_ios@_WU?$char_traits@_W@std@@@std@@6B@ */
348 extern const vtable_ptr MSVCP_basic_ios_wchar_vtable
;
350 /* ??_7?$basic_ios@GU?$char_traits@G@std@@@std@@6B@ */
351 extern const vtable_ptr MSVCP_basic_ios_short_vtable
;
353 /* ??_7?$basic_streambuf@DU?$char_traits@D@std@@@std@@6B@ */
354 extern const vtable_ptr MSVCP_basic_streambuf_char_vtable
;
356 /* ??_7?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@6B@ */
357 extern const vtable_ptr MSVCP_basic_streambuf_wchar_vtable
;
359 /* ??_7?$basic_streambuf@GU?$char_traits@G@std@@@std@@6B@ */
360 extern const vtable_ptr MSVCP_basic_streambuf_short_vtable
;
362 /* ??_7?$basic_filebuf@DU?$char_traits@D@std@@@std@@6B@ */
363 extern const vtable_ptr MSVCP_basic_filebuf_char_vtable
;
365 /* ??_7?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@6B@ */
366 extern const vtable_ptr MSVCP_basic_filebuf_wchar_vtable
;
368 /* ??_7?$basic_filebuf@GU?$char_traits@G@std@@@std@@6B@ */
369 extern const vtable_ptr MSVCP_basic_filebuf_short_vtable
;
371 /* ??_7?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
372 extern const vtable_ptr MSVCP_basic_stringbuf_char_vtable
;
374 /* ??_7?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
375 extern const vtable_ptr MSVCP_basic_stringbuf_wchar_vtable
;
377 /* ??_7?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
378 extern const vtable_ptr MSVCP_basic_stringbuf_short_vtable
;
380 /* ??_8?$basic_ostream@DU?$char_traits@D@std@@@std@@7B@ */
381 const int basic_ostream_char_vbtable
[] = {0, ALIGNED_SIZE(sizeof(basic_ostream_char
), VBTABLE_ALIGN
)};
382 /* ??_7?$basic_ostream@DU?$char_traits@D@std@@@std@@6B@ */
383 extern const vtable_ptr MSVCP_basic_ostream_char_vtable
;
385 /* ??_8?$basic_ostream@_WU?$char_traits@_W@std@@@std@@7B@ */
386 const int basic_ostream_wchar_vbtable
[] = {0, ALIGNED_SIZE(sizeof(basic_ostream_wchar
), VBTABLE_ALIGN
)};
387 /* ??_7?$basic_ostream@_WU?$char_traits@_W@std@@@std@@6B@ */
388 extern const vtable_ptr MSVCP_basic_ostream_wchar_vtable
;
390 /* ??_8?$basic_ostream@GU?$char_traits@G@std@@@std@@7B@ */
391 const int basic_ostream_short_vbtable
[] = {0, ALIGNED_SIZE(sizeof(basic_ostream_wchar
), VBTABLE_ALIGN
)};
392 /* ??_7?$basic_ostream@GU?$char_traits@G@std@@@std@@6B@ */
393 extern const vtable_ptr MSVCP_basic_ostream_short_vtable
;
395 /* ??_8?$basic_istream@DU?$char_traits@D@std@@@std@@7B@ */
396 const int basic_istream_char_vbtable
[] = {0, ALIGNED_SIZE(sizeof(basic_istream_char
), VBTABLE_ALIGN
)};
397 /* ??_7?$basic_istream@DU?$char_traits@D@std@@@std@@6B@ */
398 extern const vtable_ptr MSVCP_basic_istream_char_vtable
;
400 /* ??_8?$basic_istream@_WU?$char_traits@_W@std@@@std@@7B@ */
401 const int basic_istream_wchar_vbtable
[] = {0, ALIGNED_SIZE(sizeof(basic_istream_wchar
), VBTABLE_ALIGN
)};
402 /* ??_7?$basic_istream@_WU?$char_traits@_W@std@@@std@@6B@ */
403 extern const vtable_ptr MSVCP_basic_istream_wchar_vtable
;
405 /* ??_8?$basic_istream@GU?$char_traits@G@std@@@std@@7B@ */
406 const int basic_istream_short_vbtable
[] = {0, ALIGNED_SIZE(sizeof(basic_istream_wchar
), VBTABLE_ALIGN
)};
407 /* ??_7?$basic_istream@GU?$char_traits@G@std@@@std@@6B@ */
408 extern const vtable_ptr MSVCP_basic_istream_short_vtable
;
410 /* ??_8?$basic_iostream@DU?$char_traits@D@std@@@std@@7B?$basic_istream@DU?$char_traits@D@std@@@1@@ */
411 const int basic_iostream_char_vbtable1
[] = {0, ALIGNED_SIZE(sizeof(basic_iostream_char
), VBTABLE_ALIGN
)};
412 /* ??_8?$basic_iostream@DU?$char_traits@D@std@@@std@@7B?$basic_ostream@DU?$char_traits@D@std@@@1@@ */
413 const int basic_iostream_char_vbtable2
[] = {0, ALIGNED_SIZE(sizeof(basic_iostream_char
), VBTABLE_ALIGN
)-FIELD_OFFSET(basic_iostream_char
, base2
)};
414 /* ??_7?$basic_iostream@DU?$char_traits@D@std@@@std@@6B@ */
415 extern const vtable_ptr MSVCP_basic_iostream_char_vtable
;
417 /* ??_8?$basic_iostream@_WU?$char_traits@_W@std@@@std@@7B?$basic_istream@_WU?$char_traits@_W@std@@@1@@ */
418 /* ??_8?$basic_iostream@GU?$char_traits@G@std@@@std@@7B?$basic_istream@GU?$char_traits@G@std@@@1@@ */
419 const int basic_iostream_wchar_vbtable1
[] = {0, ALIGNED_SIZE(sizeof(basic_iostream_wchar
), VBTABLE_ALIGN
)};
420 /* ??_8?$basic_iostream@_WU?$char_traits@_W@std@@@std@@7B?$basic_ostream@_WU?$char_traits@_W@std@@@1@@ */
421 /* ??_8?$basic_iostream@GU?$char_traits@G@std@@@std@@7B?$basic_ostream@GU?$char_traits@G@std@@@1@@ */
422 const int basic_iostream_wchar_vbtable2
[] = {0, ALIGNED_SIZE(sizeof(basic_iostream_wchar
), VBTABLE_ALIGN
)-FIELD_OFFSET(basic_iostream_wchar
, base2
)};
423 /* ??_7?$basic_iostream@_WU?$char_traits@_W@std@@@std@@6B@ */
424 extern const vtable_ptr MSVCP_basic_iostream_wchar_vtable
;
425 /* ??_7?$basic_iostream@GU?$char_traits@G@std@@@std@@6B@ */
426 extern const vtable_ptr MSVCP_basic_iostream_short_vtable
;
428 /* ??_8?$basic_ofstream@DU?$char_traits@D@std@@@std@@7B@ */
429 const int basic_ofstream_char_vbtable
[] = {0, sizeof(basic_ofstream_char
)};
430 /* ??_7?$basic_ofstream@DU?$char_traits@D@std@@@std@@6B@ */
431 extern const vtable_ptr MSVCP_basic_ofstream_char_vtable
;
433 /* ??_8?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@7B@ */
434 const int basic_ofstream_wchar_vbtable
[] = {0, sizeof(basic_ofstream_wchar
)};
435 /* ??_7?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@6B@ */
436 extern const vtable_ptr MSVCP_basic_ofstream_wchar_vtable
;
438 /* ??_8?$basic_ofstream@GU?$char_traits@G@std@@@std@@7B@ */
439 const int basic_ofstream_short_vbtable
[] = {0, sizeof(basic_ofstream_wchar
)};
440 /* ??_7?$basic_ofstream@GU?$char_traits@G@std@@@std@@6B@ */
441 extern const vtable_ptr MSVCP_basic_ofstream_short_vtable
;
443 /* ??_8?$basic_ifstream@DU?$char_traits@D@std@@@std@@7B@ */
444 const int basic_ifstream_char_vbtable
[] = {0, sizeof(basic_ifstream_char
)};
445 /* ??_7?$basic_ifstream@DU?$char_traits@D@std@@@std@@6B@ */
446 extern const vtable_ptr MSVCP_basic_ifstream_char_vtable
;
448 /* ??_8?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@7B@ */
449 const int basic_ifstream_wchar_vbtable
[] = {0, sizeof(basic_ifstream_wchar
)};
450 /* ??_7?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@6B@ */
451 extern const vtable_ptr MSVCP_basic_ifstream_wchar_vtable
;
453 /* ??_8?$basic_ifstream@GU?$char_traits@G@std@@@std@@7B@ */
454 const int basic_ifstream_short_vbtable
[] = {0, sizeof(basic_ifstream_wchar
)};
455 /* ??_7?$basic_ifstream@GU?$char_traits@G@std@@@std@@6B@ */
456 extern const vtable_ptr MSVCP_basic_ifstream_short_vtable
;
458 /* ??_8?$basic_fstream@DU?$char_traits@D@std@@@std@@7B?$basic_istream@DU?$char_traits@D@std@@@1@@ */
459 const int basic_fstream_char_vbtable1
[] = {0, sizeof(basic_fstream_char
)};
460 /* ??_8?$basic_fstream@DU?$char_traits@D@std@@@std@@7B?$basic_ostream@DU?$char_traits@D@std@@@1@@ */
461 const int basic_fstream_char_vbtable2
[] = {0, sizeof(basic_fstream_char
)-FIELD_OFFSET(basic_fstream_char
, base
.base2
)};
462 /* ??_7?$basic_fstream@DU?$char_traits@D@std@@@std@@6B@ */
463 extern const vtable_ptr MSVCP_basic_fstream_char_vtable
;
465 /* ??_8?$basic_fstream@_WU?$char_traits@_W@std@@@std@@7B?$basic_istream@_WU?$char_traits@_W@std@@@1@@ */
466 /* ??_8?$basic_fstream@GU?$char_traits@G@std@@@std@@7B?$basic_istream@GU?$char_traits@G@std@@@1@@ */
467 const int basic_fstream_wchar_vbtable1
[] = {0, sizeof(basic_fstream_wchar
)};
468 /* ??_8?$basic_fstream@_WU?$char_traits@_W@std@@@std@@7B?$basic_ostream@_WU?$char_traits@_W@std@@@1@@ */
469 /* ??_8?$basic_fstream@GU?$char_traits@G@std@@@std@@7B?$basic_ostream@GU?$char_traits@G@std@@@1@@ */
470 const int basic_fstream_wchar_vbtable2
[] = {0, sizeof(basic_fstream_wchar
)-FIELD_OFFSET(basic_fstream_wchar
, base
.base2
)};
471 /* ??_7?$basic_fstream@_WU?$char_traits@_W@std@@@std@@6B@ */
472 extern const vtable_ptr MSVCP_basic_fstream_wchar_vtable
;
473 /* ??_7?$basic_fstream@GU?$char_traits@G@std@@@std@@6B@ */
474 extern const vtable_ptr MSVCP_basic_fstream_short_vtable
;
476 /* ??_8?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B@ */
477 const int basic_ostringstream_char_vbtable
[] = {0, sizeof(basic_ostringstream_char
)};
478 /* ??_7?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
479 extern const vtable_ptr MSVCP_basic_ostringstream_char_vtable
;
481 /* ??_8?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B@ */
482 const int basic_ostringstream_wchar_vbtable
[] = {0, sizeof(basic_ostringstream_wchar
)};
483 /* ??_7?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
484 extern const vtable_ptr MSVCP_basic_ostringstream_wchar_vtable
;
486 /* ??_8?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B@ */
487 const int basic_ostringstream_short_vbtable
[] = {0, sizeof(basic_ostringstream_wchar
)};
488 /* ??_7?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
489 extern const vtable_ptr MSVCP_basic_ostringstream_short_vtable
;
491 /* ??_8?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B@ */
492 const int basic_istringstream_char_vbtable
[] = {0, sizeof(basic_istringstream_char
)};
493 /* ??_7?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
494 extern const vtable_ptr MSVCP_basic_istringstream_char_vtable
;
496 /* ??_8?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B@ */
497 const int basic_istringstream_wchar_vbtable
[] = {0, sizeof(basic_istringstream_wchar
)};
498 /* ??_7?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
499 extern const vtable_ptr MSVCP_basic_istringstream_wchar_vtable
;
501 /* ??_8?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B@ */
502 const int basic_istringstream_short_vbtable
[] = {0, sizeof(basic_istringstream_wchar
)};
503 /* ??_7?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
504 extern const vtable_ptr MSVCP_basic_istringstream_short_vtable
;
506 /* ??_8?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B?$basic_istream@DU?$char_traits@D@std@@@1@@ */
507 const int basic_stringstream_char_vbtable1
[] = {0, sizeof(basic_stringstream_char
)};
508 /* ??_8?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B?$basic_ostream@DU?$char_traits@D@std@@@1@@ */
509 const int basic_stringstream_char_vbtable2
[] = {0, sizeof(basic_stringstream_char
)-FIELD_OFFSET(basic_stringstream_char
, base
.base2
)};
510 /* ??_7?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
511 extern const vtable_ptr MSVCP_basic_stringstream_char_vtable
;
513 /* ??_8?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B?$basic_istream@_WU?$char_traits@_W@std@@@1@@ */
514 const int basic_stringstream_wchar_vbtable1
[] = {0, sizeof(basic_stringstream_wchar
)};
515 /* ??_8?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B?$basic_ostream@_WU?$char_traits@_W@std@@@1@@ */
516 const int basic_stringstream_wchar_vbtable2
[] = {0, sizeof(basic_stringstream_wchar
)-FIELD_OFFSET(basic_stringstream_wchar
, base
.base2
)};
517 /* ??_7?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
518 extern const vtable_ptr MSVCP_basic_stringstream_wchar_vtable
;
520 /* ??_8?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B?$basic_istream@GU?$char_traits@G@std@@@1@@ */
521 const int basic_stringstream_short_vbtable1
[] = {0, sizeof(basic_stringstream_wchar
)};
522 /* ??_8?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B?$basic_ostream@GU?$char_traits@G@std@@@1@@ */
523 const int basic_stringstream_short_vbtable2
[] = {0, sizeof(basic_stringstream_wchar
)-FIELD_OFFSET(basic_stringstream_wchar
, base
.base2
)};
524 /* ??_7?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
525 extern const vtable_ptr MSVCP_basic_stringstream_short_vtable
;
527 /* ??_7strstreambuf@std@@6B */
528 extern const vtable_ptr MSVCP_strstreambuf_vtable
;
530 static const int ostrstream_vbtable
[] = {0, sizeof(ostrstream
)};
531 extern const vtable_ptr MSVCP_ostrstream_vtable
;
533 static const int istrstream_vbtable
[] = {0, sizeof(istrstream
)};
535 static const int strstream_vbtable1
[] = {0, sizeof(strstream
)};
536 static const int strstream_vbtable2
[] = {0, sizeof(strstream
)-FIELD_OFFSET(strstream
, base
.base2
)};
537 extern const vtable_ptr MSVCP_strstream_vtable
;
539 DEFINE_RTTI_DATA0(iosb
, 0, ".?AV?$_Iosb@H@std@@")
540 DEFINE_RTTI_DATA1(ios_base
, 0, &iosb_rtti_base_descriptor
, ".?AV?$_Iosb@H@std@@")
541 DEFINE_RTTI_DATA2(basic_ios_char
, 0, &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
542 ".?AV?$basic_ios@DU?$char_traits@D@std@@@std@@")
543 DEFINE_RTTI_DATA2(basic_ios_wchar
, 0, &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
544 ".?AV?$basic_ios@_WU?$char_traits@_W@std@@@std@@")
545 DEFINE_RTTI_DATA2(basic_ios_short
, 0, &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
546 ".?AV?$basic_ios@GU?$char_traits@G@std@@@std@@")
547 DEFINE_RTTI_DATA0(basic_streambuf_char
, 0,
548 ".?AV?$basic_streambuf@DU?$char_traits@D@std@@@std@@")
549 DEFINE_RTTI_DATA0(basic_streambuf_wchar
, 0,
550 ".?AV?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@")
551 DEFINE_RTTI_DATA0(basic_streambuf_short
, 0,
552 ".?AV?$basic_streambuf@GU?$char_traits@G@std@@@std@@")
553 DEFINE_RTTI_DATA1(basic_filebuf_char
, 0, &basic_streambuf_char_rtti_base_descriptor
,
554 ".?AV?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@")
555 DEFINE_RTTI_DATA1(basic_filebuf_wchar
, 0, &basic_streambuf_wchar_rtti_base_descriptor
,
556 ".?AV?$basic_filebuf@GU?$char_traits@G@std@@@std@@")
557 DEFINE_RTTI_DATA1(basic_filebuf_short
, 0, &basic_streambuf_short_rtti_base_descriptor
,
558 ".?AV?$basic_filebuf@DU?$char_traits@D@std@@@std@@")
559 DEFINE_RTTI_DATA1(basic_stringbuf_char
, 0, &basic_streambuf_char_rtti_base_descriptor
,
560 ".?AV?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@")
561 DEFINE_RTTI_DATA1(basic_stringbuf_wchar
, 0, &basic_streambuf_wchar_rtti_base_descriptor
,
562 ".?AV?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@")
563 DEFINE_RTTI_DATA1(basic_stringbuf_short
, 0, &basic_streambuf_short_rtti_base_descriptor
,
564 ".?AV?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@")
565 DEFINE_RTTI_DATA3(basic_ostream_char
, sizeof(basic_ostream_char
), &basic_ios_char_rtti_base_descriptor
,
566 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
567 ".?AV?$basic_ostream@DU?$char_traits@D@std@@@std@@")
568 DEFINE_RTTI_DATA3(basic_ostream_wchar
, sizeof(basic_ostream_wchar
), &basic_ios_wchar_rtti_base_descriptor
,
569 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
570 ".?AV?$basic_ostream@_WU?$char_traits@_W@std@@@std@@")
571 DEFINE_RTTI_DATA3(basic_ostream_short
, sizeof(basic_ostream_wchar
), &basic_ios_short_rtti_base_descriptor
,
572 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
573 ".?AV?$basic_ostream@GU?$char_traits@G@std@@@std@@")
574 DEFINE_RTTI_DATA3(basic_istream_char
, sizeof(basic_istream_char
), &basic_ios_char_rtti_base_descriptor
,
575 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
576 ".?AV?$basic_istream@DU?$char_traits@D@std@@@std@@")
577 DEFINE_RTTI_DATA3(basic_istream_wchar
, sizeof(basic_istream_wchar
), &basic_ios_wchar_rtti_base_descriptor
,
578 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
579 ".?AV?$basic_istream@_WU?$char_traits@_W@std@@@std@@")
580 DEFINE_RTTI_DATA3(basic_istream_short
, sizeof(basic_istream_wchar
), &basic_ios_short_rtti_base_descriptor
,
581 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
582 ".?AV?$basic_istream@GU?$char_traits@G@std@@@std@@")
583 DEFINE_RTTI_DATA8(basic_iostream_char
, sizeof(basic_iostream_char
),
584 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
585 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
586 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
587 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
588 ".?AV?$basic_iostream@DU?$char_traits@D@std@@@std@@")
589 DEFINE_RTTI_DATA8(basic_iostream_wchar
, sizeof(basic_iostream_wchar
),
590 &basic_istream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
591 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
592 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
593 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
594 ".?AV?$basic_iostream@_WU?$char_traits@_W@std@@@std@@")
595 DEFINE_RTTI_DATA8(basic_iostream_short
, sizeof(basic_iostream_wchar
),
596 &basic_istream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
597 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
598 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
599 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
600 ".?AV?$basic_iostream@GU?$char_traits@G@std@@@std@@")
601 DEFINE_RTTI_DATA4(basic_ofstream_char
, sizeof(basic_ofstream_char
),
602 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
603 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
604 ".?AV?$basic_ofstream@DU?$char_traits@D@std@@@std@@")
605 DEFINE_RTTI_DATA4(basic_ofstream_wchar
, sizeof(basic_ofstream_wchar
),
606 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
607 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
608 ".?AV?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@")
609 DEFINE_RTTI_DATA4(basic_ofstream_short
, sizeof(basic_ofstream_wchar
),
610 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
611 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
612 ".?AV?$basic_ofstream@GU?$char_traits@G@std@@@std@@")
613 DEFINE_RTTI_DATA4(basic_ifstream_char
, sizeof(basic_ifstream_char
),
614 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
615 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
616 ".?AV?$basic_ifstream@DU?$char_traits@D@std@@@std@@")
617 DEFINE_RTTI_DATA4(basic_ifstream_wchar
, sizeof(basic_ifstream_wchar
),
618 &basic_istream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
619 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
620 ".?AV?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@")
621 DEFINE_RTTI_DATA4(basic_ifstream_short
, sizeof(basic_ifstream_wchar
),
622 &basic_istream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
623 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
624 ".?AV?$basic_ifstream@GU?$char_traits@G@std@@@std@@")
625 DEFINE_RTTI_DATA8(basic_fstream_char
, sizeof(basic_fstream_char
),
626 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
627 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
628 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
629 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
630 ".?AV?$basic_fstream@DU?$char_traits@D@std@@@std@@")
631 DEFINE_RTTI_DATA8(basic_fstream_wchar
, sizeof(basic_fstream_wchar
),
632 &basic_istream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
633 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
634 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
635 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
636 ".?AV?$basic_fstream@_WU?$char_traits@_W@std@@@std@@")
637 DEFINE_RTTI_DATA8(basic_fstream_short
, sizeof(basic_fstream_wchar
),
638 &basic_istream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
639 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
640 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
641 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
642 ".?AV?$basic_fstream@GU?$char_traits@G@std@@@std@@")
643 DEFINE_RTTI_DATA4(basic_ostringstream_char
, sizeof(basic_ostringstream_char
),
644 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
645 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
646 ".?AV?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@")
647 DEFINE_RTTI_DATA4(basic_ostringstream_wchar
, sizeof(basic_ostringstream_wchar
),
648 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
649 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
650 ".?AV?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@")
651 DEFINE_RTTI_DATA4(basic_ostringstream_short
, sizeof(basic_ostringstream_wchar
),
652 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
653 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
654 ".?AV?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@")
655 DEFINE_RTTI_DATA4(basic_istringstream_char
, sizeof(basic_istringstream_char
),
656 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
657 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
658 ".?AV?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@")
659 DEFINE_RTTI_DATA4(basic_istringstream_wchar
, sizeof(basic_istringstream_wchar
),
660 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
661 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
662 ".?AV?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@")
663 DEFINE_RTTI_DATA4(basic_istringstream_short
, sizeof(basic_istringstream_wchar
),
664 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
665 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
666 ".?AV?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@")
667 DEFINE_RTTI_DATA8(basic_stringstream_char
, sizeof(basic_stringstream_char
),
668 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
669 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
670 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
671 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
672 ".?AV?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@")
673 DEFINE_RTTI_DATA8(basic_stringstream_wchar
, sizeof(basic_stringstream_wchar
),
674 &basic_istream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
675 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
676 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
677 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
678 ".?AV?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@")
679 DEFINE_RTTI_DATA8(basic_stringstream_short
, sizeof(basic_stringstream_wchar
),
680 &basic_istream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
681 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
682 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
683 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
684 ".?AV?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@")
685 DEFINE_RTTI_DATA1(strstreambuf
, sizeof(strstreambuf
),
686 &basic_streambuf_char_rtti_base_descriptor
, ".?AVstrstreambuf@std@@")
687 DEFINE_RTTI_DATA4(ostrstream
, sizeof(ostrstream
),
688 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
689 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
690 "?AVostrstream@std@@")
691 DEFINE_RTTI_DATA8(strstream
, sizeof(strstream
),
692 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
693 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
694 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
695 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
696 "?AVstrstream@std@@")
699 void __asm_dummy_vtables(void) {
702 VTABLE_ADD_FUNC(iosb_vector_dtor
));
703 __ASM_VTABLE(ios_base
,
704 VTABLE_ADD_FUNC(ios_base_vector_dtor
));
705 __ASM_VTABLE(basic_ios_char
,
706 VTABLE_ADD_FUNC(basic_ios_char_vector_dtor
));
707 __ASM_VTABLE(basic_ios_wchar
,
708 VTABLE_ADD_FUNC(basic_ios_wchar_vector_dtor
));
709 __ASM_VTABLE(basic_ios_short
,
710 VTABLE_ADD_FUNC(basic_ios_wchar_vector_dtor
));
711 __ASM_VTABLE(basic_streambuf_char
,
712 VTABLE_ADD_FUNC(basic_streambuf_char_vector_dtor
)
713 #if _MSVCP_VER >= 100
714 VTABLE_ADD_FUNC(basic_streambuf_char__Lock
)
715 VTABLE_ADD_FUNC(basic_streambuf_char__Unlock
)
717 VTABLE_ADD_FUNC(basic_streambuf_char_overflow
)
718 VTABLE_ADD_FUNC(basic_streambuf_char_pbackfail
)
719 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc
)
720 VTABLE_ADD_FUNC(basic_streambuf_char_underflow
)
721 VTABLE_ADD_FUNC(basic_streambuf_char_uflow
)
722 VTABLE_ADD_FUNC(basic_streambuf_char_xsgetn
)
723 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
724 VTABLE_ADD_FUNC(basic_streambuf_char__Xsgetn_s
)
726 VTABLE_ADD_FUNC(basic_streambuf_char_xsputn
)
727 VTABLE_ADD_FUNC(basic_streambuf_char_seekoff
)
728 VTABLE_ADD_FUNC(basic_streambuf_char_seekpos
)
729 VTABLE_ADD_FUNC(basic_streambuf_char_setbuf
)
730 VTABLE_ADD_FUNC(basic_streambuf_char_sync
)
731 VTABLE_ADD_FUNC(basic_streambuf_char_imbue
));
732 __ASM_VTABLE(basic_streambuf_wchar
,
733 VTABLE_ADD_FUNC(basic_streambuf_wchar_vector_dtor
)
734 #if _MSVCP_VER >= 100
735 VTABLE_ADD_FUNC(basic_streambuf_wchar__Lock
)
736 VTABLE_ADD_FUNC(basic_streambuf_wchar__Unlock
)
738 VTABLE_ADD_FUNC(basic_streambuf_wchar_overflow
)
739 VTABLE_ADD_FUNC(basic_streambuf_wchar_pbackfail
)
740 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
741 VTABLE_ADD_FUNC(basic_streambuf_wchar_underflow
)
742 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow
)
743 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
744 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
745 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
747 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
748 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekoff
)
749 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekpos
)
750 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf
)
751 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync
)
752 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
753 __ASM_VTABLE(basic_streambuf_short
,
754 VTABLE_ADD_FUNC(basic_streambuf_wchar_vector_dtor
)
755 #if _MSVCP_VER >= 100
756 VTABLE_ADD_FUNC(basic_streambuf_wchar__Lock
)
757 VTABLE_ADD_FUNC(basic_streambuf_wchar__Unlock
)
759 VTABLE_ADD_FUNC(basic_streambuf_wchar_overflow
)
760 VTABLE_ADD_FUNC(basic_streambuf_wchar_pbackfail
)
761 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
762 VTABLE_ADD_FUNC(basic_streambuf_wchar_underflow
)
763 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow
)
764 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
765 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
766 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
768 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
769 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekoff
)
770 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekpos
)
771 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf
)
772 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync
)
773 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
774 __ASM_VTABLE(basic_filebuf_char
,
775 VTABLE_ADD_FUNC(basic_filebuf_char_vector_dtor
)
776 #if _MSVCP_VER >= 100
777 VTABLE_ADD_FUNC(basic_streambuf_char__Lock
)
778 VTABLE_ADD_FUNC(basic_streambuf_char__Unlock
)
780 VTABLE_ADD_FUNC(basic_filebuf_char_overflow
)
781 VTABLE_ADD_FUNC(basic_filebuf_char_pbackfail
)
782 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc
)
783 VTABLE_ADD_FUNC(basic_filebuf_char_underflow
)
784 VTABLE_ADD_FUNC(basic_filebuf_char_uflow
)
785 VTABLE_ADD_FUNC(basic_streambuf_char_xsgetn
)
786 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
787 VTABLE_ADD_FUNC(basic_streambuf_char__Xsgetn_s
)
789 VTABLE_ADD_FUNC(basic_streambuf_char_xsputn
)
790 VTABLE_ADD_FUNC(basic_filebuf_char_seekoff
)
791 VTABLE_ADD_FUNC(basic_filebuf_char_seekpos
)
792 VTABLE_ADD_FUNC(basic_filebuf_char_setbuf
)
793 VTABLE_ADD_FUNC(basic_filebuf_char_sync
)
794 VTABLE_ADD_FUNC(basic_filebuf_char_imbue
));
795 __ASM_VTABLE(basic_filebuf_wchar
,
796 VTABLE_ADD_FUNC(basic_filebuf_wchar_vector_dtor
)
797 #if _MSVCP_VER >= 100
798 VTABLE_ADD_FUNC(basic_streambuf_wchar__Lock
)
799 VTABLE_ADD_FUNC(basic_streambuf_wchar__Unlock
)
801 VTABLE_ADD_FUNC(basic_filebuf_wchar_overflow
)
802 VTABLE_ADD_FUNC(basic_filebuf_wchar_pbackfail
)
803 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
804 VTABLE_ADD_FUNC(basic_filebuf_wchar_underflow
)
805 VTABLE_ADD_FUNC(basic_filebuf_wchar_uflow
)
806 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
807 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
808 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
810 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
811 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekoff
)
812 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekpos
)
813 VTABLE_ADD_FUNC(basic_filebuf_wchar_setbuf
)
814 VTABLE_ADD_FUNC(basic_filebuf_wchar_sync
)
815 VTABLE_ADD_FUNC(basic_filebuf_wchar_imbue
));
816 __ASM_VTABLE(basic_filebuf_short
,
817 VTABLE_ADD_FUNC(basic_filebuf_wchar_vector_dtor
)
818 #if _MSVCP_VER >= 100
819 VTABLE_ADD_FUNC(basic_streambuf_wchar__Lock
)
820 VTABLE_ADD_FUNC(basic_streambuf_wchar__Unlock
)
822 VTABLE_ADD_FUNC(basic_filebuf_wchar_overflow
)
823 VTABLE_ADD_FUNC(basic_filebuf_wchar_pbackfail
)
824 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
825 VTABLE_ADD_FUNC(basic_filebuf_wchar_underflow
)
826 VTABLE_ADD_FUNC(basic_filebuf_wchar_uflow
)
827 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
828 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
829 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
831 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
832 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekoff
)
833 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekpos
)
834 VTABLE_ADD_FUNC(basic_filebuf_short_setbuf
)
835 VTABLE_ADD_FUNC(basic_filebuf_wchar_sync
)
836 VTABLE_ADD_FUNC(basic_filebuf_short_imbue
));
837 __ASM_VTABLE(basic_stringbuf_char
,
838 VTABLE_ADD_FUNC(basic_stringbuf_char_vector_dtor
)
839 VTABLE_ADD_FUNC(basic_stringbuf_char_overflow
)
840 VTABLE_ADD_FUNC(basic_stringbuf_char_pbackfail
)
841 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc
)
842 VTABLE_ADD_FUNC(basic_stringbuf_char_underflow
)
843 VTABLE_ADD_FUNC(basic_streambuf_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_stringbuf_char_seekoff
)
850 VTABLE_ADD_FUNC(basic_stringbuf_char_seekpos
)
851 VTABLE_ADD_FUNC(basic_streambuf_char_setbuf
)
852 VTABLE_ADD_FUNC(basic_streambuf_char_sync
)
853 VTABLE_ADD_FUNC(basic_streambuf_char_imbue
));
854 __ASM_VTABLE(basic_stringbuf_wchar
,
855 VTABLE_ADD_FUNC(basic_stringbuf_wchar_vector_dtor
)
856 VTABLE_ADD_FUNC(basic_stringbuf_wchar_overflow
)
857 VTABLE_ADD_FUNC(basic_stringbuf_wchar_pbackfail
)
858 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
859 VTABLE_ADD_FUNC(basic_stringbuf_wchar_underflow
)
860 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow
)
861 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
862 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
863 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
865 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
866 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekoff
)
867 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekpos
)
868 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf
)
869 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync
)
870 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
871 __ASM_VTABLE(basic_stringbuf_short
,
872 VTABLE_ADD_FUNC(basic_stringbuf_wchar_vector_dtor
)
873 VTABLE_ADD_FUNC(basic_stringbuf_wchar_overflow
)
874 VTABLE_ADD_FUNC(basic_stringbuf_wchar_pbackfail
)
875 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
876 VTABLE_ADD_FUNC(basic_stringbuf_wchar_underflow
)
877 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow
)
878 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
879 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
880 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
882 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
883 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekoff
)
884 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekpos
)
885 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf
)
886 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync
)
887 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
888 __ASM_VTABLE(basic_ostream_char
,
889 VTABLE_ADD_FUNC(basic_ostream_char_vector_dtor
));
890 __ASM_VTABLE(basic_ostream_wchar
,
891 VTABLE_ADD_FUNC(basic_ostream_wchar_vector_dtor
));
892 __ASM_VTABLE(basic_ostream_short
,
893 VTABLE_ADD_FUNC(basic_ostream_wchar_vector_dtor
));
894 __ASM_VTABLE(basic_istream_char
,
895 VTABLE_ADD_FUNC(basic_istream_char_vector_dtor
));
896 __ASM_VTABLE(basic_istream_wchar
,
897 VTABLE_ADD_FUNC(basic_istream_wchar_vector_dtor
));
898 __ASM_VTABLE(basic_istream_short
,
899 VTABLE_ADD_FUNC(basic_istream_wchar_vector_dtor
));
900 __ASM_VTABLE(basic_iostream_char
,
901 VTABLE_ADD_FUNC(basic_iostream_char_vector_dtor
));
902 __ASM_VTABLE(basic_iostream_wchar
,
903 VTABLE_ADD_FUNC(basic_iostream_wchar_vector_dtor
));
904 __ASM_VTABLE(basic_iostream_short
,
905 VTABLE_ADD_FUNC(basic_iostream_wchar_vector_dtor
));
906 __ASM_VTABLE(basic_ofstream_char
,
907 VTABLE_ADD_FUNC(basic_ofstream_char_vector_dtor
));
908 __ASM_VTABLE(basic_ofstream_wchar
,
909 VTABLE_ADD_FUNC(basic_ofstream_wchar_vector_dtor
));
910 __ASM_VTABLE(basic_ofstream_short
,
911 VTABLE_ADD_FUNC(basic_ofstream_wchar_vector_dtor
));
912 __ASM_VTABLE(basic_ifstream_char
,
913 VTABLE_ADD_FUNC(basic_ifstream_char_vector_dtor
));
914 __ASM_VTABLE(basic_ifstream_wchar
,
915 VTABLE_ADD_FUNC(basic_ifstream_wchar_vector_dtor
));
916 __ASM_VTABLE(basic_ifstream_short
,
917 VTABLE_ADD_FUNC(basic_ifstream_wchar_vector_dtor
));
918 __ASM_VTABLE(basic_fstream_char
,
919 VTABLE_ADD_FUNC(basic_fstream_char_vector_dtor
));
920 __ASM_VTABLE(basic_fstream_wchar
,
921 VTABLE_ADD_FUNC(basic_fstream_wchar_vector_dtor
));
922 __ASM_VTABLE(basic_fstream_short
,
923 VTABLE_ADD_FUNC(basic_fstream_wchar_vector_dtor
));
924 __ASM_VTABLE(basic_ostringstream_char
,
925 VTABLE_ADD_FUNC(basic_ostringstream_char_vector_dtor
));
926 __ASM_VTABLE(basic_ostringstream_wchar
,
927 VTABLE_ADD_FUNC(basic_ostringstream_wchar_vector_dtor
));
928 __ASM_VTABLE(basic_ostringstream_short
,
929 VTABLE_ADD_FUNC(basic_ostringstream_wchar_vector_dtor
));
930 __ASM_VTABLE(basic_istringstream_char
,
931 VTABLE_ADD_FUNC(basic_istringstream_char_vector_dtor
));
932 __ASM_VTABLE(basic_istringstream_wchar
,
933 VTABLE_ADD_FUNC(basic_istringstream_wchar_vector_dtor
));
934 __ASM_VTABLE(basic_istringstream_short
,
935 VTABLE_ADD_FUNC(basic_istringstream_wchar_vector_dtor
));
936 __ASM_VTABLE(basic_stringstream_char
,
937 VTABLE_ADD_FUNC(basic_stringstream_char_vector_dtor
));
938 __ASM_VTABLE(basic_stringstream_wchar
,
939 VTABLE_ADD_FUNC(basic_stringstream_wchar_vector_dtor
));
940 __ASM_VTABLE(basic_stringstream_short
,
941 VTABLE_ADD_FUNC(basic_stringstream_wchar_vector_dtor
));
942 __ASM_VTABLE(strstreambuf
,
943 VTABLE_ADD_FUNC(strstreambuf_vector_dtor
)
944 VTABLE_ADD_FUNC(strstreambuf_overflow
)
945 VTABLE_ADD_FUNC(strstreambuf_pbackfail
)
946 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc
)
947 VTABLE_ADD_FUNC(strstreambuf_underflow
)
948 VTABLE_ADD_FUNC(basic_streambuf_char_uflow
)
949 VTABLE_ADD_FUNC(basic_streambuf_char_xsgetn
)
950 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
951 VTABLE_ADD_FUNC(basic_streambuf_char__Xsgetn_s
)
953 VTABLE_ADD_FUNC(basic_streambuf_char_xsputn
)
954 VTABLE_ADD_FUNC(strstreambuf_seekoff
)
955 VTABLE_ADD_FUNC(strstreambuf_seekpos
)
956 VTABLE_ADD_FUNC(basic_streambuf_char_setbuf
)
957 VTABLE_ADD_FUNC(basic_streambuf_char_sync
)
958 VTABLE_ADD_FUNC(basic_streambuf_char_imbue
));
959 __ASM_VTABLE(ostrstream
,
960 VTABLE_ADD_FUNC(ostrstream_vector_dtor
));
961 __ASM_VTABLE(strstream
,
962 VTABLE_ADD_FUNC(strstream_vector_dtor
));
967 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD00@Z */
968 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD00@Z */
969 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setp_next
, 16)
970 void __thiscall
basic_streambuf_char_setp_next(basic_streambuf_char
*this, char *first
, char *next
, char *last
)
972 TRACE("(%p %p %p %p)\n", this, first
, next
, last
);
976 this->wsize
= last
-next
;
979 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD0@Z */
980 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD0@Z */
981 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setp
, 12)
982 void __thiscall
basic_streambuf_char_setp(basic_streambuf_char
*this, char *first
, char *last
)
984 basic_streambuf_char_setp_next(this, first
, first
, last
);
987 /* ?setg@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD00@Z */
988 /* ?setg@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD00@Z */
989 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setg
, 16)
990 void __thiscall
basic_streambuf_char_setg(basic_streambuf_char
*this, char *first
, char *next
, char *last
)
992 TRACE("(%p %p %p %p)\n", this, first
, next
, last
);
996 this->rsize
= last
-next
;
999 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXXZ */
1000 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXXZ */
1001 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Init_empty
, 4)
1002 void __thiscall
basic_streambuf_char__Init_empty(basic_streambuf_char
*this)
1004 TRACE("(%p)\n", this);
1006 this->prbuf
= &this->rbuf
;
1007 this->pwbuf
= &this->wbuf
;
1008 this->prpos
= &this->rpos
;
1009 this->pwpos
= &this->wpos
;
1010 this->prsize
= &this->rsize
;
1011 this->pwsize
= &this->wsize
;
1013 basic_streambuf_char_setp(this, NULL
, NULL
);
1014 basic_streambuf_char_setg(this, NULL
, NULL
, NULL
);
1017 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAE@W4_Uninitialized@1@@Z */
1018 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAA@W4_Uninitialized@1@@Z */
1019 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_ctor_uninitialized
, 8)
1020 basic_streambuf_char
* __thiscall
basic_streambuf_char_ctor_uninitialized(basic_streambuf_char
*this, int uninitialized
)
1022 TRACE("(%p %d)\n", this, uninitialized
);
1023 this->vtable
= &MSVCP_basic_streambuf_char_vtable
;
1024 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
1025 mutex_ctor(&this->lock
);
1030 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAE@XZ */
1031 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAA@XZ */
1032 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_ctor
, 4)
1033 basic_streambuf_char
* __thiscall
basic_streambuf_char_ctor(basic_streambuf_char
*this)
1035 TRACE("(%p)\n", this);
1037 this->vtable
= &MSVCP_basic_streambuf_char_vtable
;
1038 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
1039 mutex_ctor(&this->lock
);
1041 #if _MSVCP_VER >= 70
1042 this->loc
= MSVCRT_operator_new(sizeof(locale
));
1044 locale_ctor(IOS_LOCALE(this));
1045 basic_streambuf_char__Init_empty(this);
1050 /* ??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UAE@XZ */
1051 /* ??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UEAA@XZ */
1052 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_dtor
, 4)
1053 void __thiscall
basic_streambuf_char_dtor(basic_streambuf_char
*this)
1055 TRACE("(%p)\n", this);
1057 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
1058 mutex_dtor(&this->lock
);
1060 locale_dtor(IOS_LOCALE(this));
1061 #if _MSVCP_VER >= 70
1062 MSVCRT_operator_delete(this->loc
);
1066 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_vector_dtor
, 8)
1067 basic_streambuf_char
* __thiscall
basic_streambuf_char_vector_dtor(basic_streambuf_char
*this, unsigned int flags
)
1069 TRACE("(%p %x)\n", this, flags
);
1071 /* we have an array, with the number of elements stored before the first object */
1072 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
1074 for(i
=*ptr
-1; i
>=0; i
--)
1075 basic_streambuf_char_dtor(this+i
);
1076 MSVCRT_operator_delete(ptr
);
1078 basic_streambuf_char_dtor(this);
1080 MSVCRT_operator_delete(this);
1086 /* ?_Gnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEHXZ */
1087 /* ?_Gnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBA_JXZ */
1088 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Gnavail
, 4)
1089 streamsize __thiscall
basic_streambuf_char__Gnavail(const basic_streambuf_char
*this)
1091 TRACE("(%p)\n", this);
1092 return *this->prpos
? *this->prsize
: 0;
1095 /* ?_Gndec@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
1096 /* ?_Gndec@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
1097 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Gndec
, 4)
1098 char* __thiscall
basic_streambuf_char__Gndec(basic_streambuf_char
*this)
1100 TRACE("(%p)\n", this);
1103 return *this->prpos
;
1106 /* ?_Gninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
1107 /* ?_Gninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
1108 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Gninc
, 4)
1109 char* __thiscall
basic_streambuf_char__Gninc(basic_streambuf_char
*this)
1111 TRACE("(%p)\n", this);
1113 return (*this->prpos
)++;
1116 /* ?_Gnpreinc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
1117 /* ?_Gnpreinc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
1118 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Gnpreinc
, 4)
1119 char* __thiscall
basic_streambuf_char__Gnpreinc(basic_streambuf_char
*this)
1121 TRACE("(%p)\n", this);
1124 return *this->prpos
;
1127 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAPAD0PAH001@Z */
1128 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAPEAD0PEAH001@Z */
1129 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Init
, 28)
1130 void __thiscall
basic_streambuf_char__Init(basic_streambuf_char
*this, char **gf
, char **gn
, int *gc
, char **pf
, char **pn
, int *pc
)
1132 TRACE("(%p %p %p %p %p %p %p)\n", this, gf
, gn
, gc
, pf
, pn
, pc
);
1142 /* ?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
1143 /* ?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
1144 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Lock
, 4)
1145 #if _MSVCP_VER >= 100
1146 #define call_basic_streambuf_char__Lock(this) CALL_VTBL_FUNC(this, 4, void, (basic_streambuf_char*), (this))
1148 #define call_basic_streambuf_char__Lock(this) basic_streambuf_char__Lock(this)
1150 void __thiscall
basic_streambuf_char__Lock(basic_streambuf_char
*this)
1152 TRACE("(%p)\n", this);
1153 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
1154 mutex_lock(&this->lock
);
1158 /* ?_Pnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEHXZ */
1159 /* ?_Pnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBA_JXZ */
1160 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Pnavail
, 4)
1161 streamsize __thiscall
basic_streambuf_char__Pnavail(const basic_streambuf_char
*this)
1163 TRACE("(%p)\n", this);
1164 return *this->pwpos
? *this->pwsize
: 0;
1167 /* ?_Pninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
1168 /* ?_Pninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
1169 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Pninc
, 4)
1170 char* __thiscall
basic_streambuf_char__Pninc(basic_streambuf_char
*this)
1172 TRACE("(%p)\n", this);
1174 return (*this->pwpos
)++;
1177 /* ?underflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1178 /* ?underflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
1179 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_underflow
, 4)
1180 #if _MSVCP_VER >= 100
1181 #define call_basic_streambuf_char_underflow(this) CALL_VTBL_FUNC(this, 24, int, (basic_streambuf_char*), (this))
1183 #define call_basic_streambuf_char_underflow(this) CALL_VTBL_FUNC(this, 16, int, (basic_streambuf_char*), (this))
1185 int __thiscall
basic_streambuf_char_underflow(basic_streambuf_char
*this)
1187 TRACE("(%p)\n", this);
1191 /* ?uflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1192 /* ?uflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
1193 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_uflow
, 4)
1194 #if _MSVCP_VER >= 100
1195 #define call_basic_streambuf_char_uflow(this) CALL_VTBL_FUNC(this, 28, int, (basic_streambuf_char*), (this))
1197 #define call_basic_streambuf_char_uflow(this) CALL_VTBL_FUNC(this, 20, int, (basic_streambuf_char*), (this))
1199 int __thiscall
basic_streambuf_char_uflow(basic_streambuf_char
*this)
1203 TRACE("(%p)\n", this);
1205 if(call_basic_streambuf_char_underflow(this)==EOF
)
1208 ret
= (unsigned char)**this->prpos
;
1214 /* ?_Xsgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHPADIH@Z */
1215 /* ?_Xsgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEAD_K_J@Z */
1216 #if STREAMSIZE_BITS == 64
1217 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Xsgetn_s
, 20)
1219 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Xsgetn_s
, 16)
1221 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
1222 #define call_basic_streambuf_char__Xsgetn_s(this, ptr, size, count) CALL_VTBL_FUNC(this, 28, \
1223 streamsize, (basic_streambuf_char*, char*, MSVCP_size_t, streamsize), (this, ptr, size, count))
1225 #define call_basic_streambuf_char__Xsgetn_s(this, ptr, size, count) basic_streambuf_char__Xsgetn_s(this, ptr, size, count)
1227 streamsize __thiscall
basic_streambuf_char__Xsgetn_s(basic_streambuf_char
*this, char *ptr
, MSVCP_size_t size
, streamsize count
)
1229 streamsize copied
, chunk
;
1232 TRACE("(%p %p %lu %s)\n", this, ptr
, size
, wine_dbgstr_longlong(count
));
1234 for(copied
=0; copied
<count
&& size
;) {
1235 chunk
= basic_streambuf_char__Gnavail(this);
1236 if(chunk
> count
-copied
)
1237 chunk
= count
-copied
;
1240 memcpy_s(ptr
+copied
, size
, *this->prpos
, chunk
);
1241 *this->prpos
+= chunk
;
1242 *this->prsize
-= chunk
;
1245 }else if((c
= call_basic_streambuf_char_uflow(this)) != EOF
) {
1257 /* ?_Sgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPADIH@Z */
1258 /* ?_Sgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_K_J@Z */
1259 #if STREAMSIZE_BITS == 64
1260 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Sgetn_s
, 20)
1262 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Sgetn_s
, 16)
1264 streamsize __thiscall
basic_streambuf_char__Sgetn_s(basic_streambuf_char
*this, char *ptr
, MSVCP_size_t size
, streamsize count
)
1266 TRACE("(%p %p %lu %s)\n", this, ptr
, size
, wine_dbgstr_longlong(count
));
1267 return call_basic_streambuf_char__Xsgetn_s(this, ptr
, size
, count
);
1270 /* ?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
1271 /* ?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
1272 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Unlock
, 4)
1273 #if _MSVCP_VER >= 100
1274 #define call_basic_streambuf_char__Unlock(this) CALL_VTBL_FUNC(this, 8, void, (basic_streambuf_char*), (this))
1276 #define call_basic_streambuf_char__Unlock(this) basic_streambuf_char__Unlock(this)
1278 void __thiscall
basic_streambuf_char__Unlock(basic_streambuf_char
*this)
1280 TRACE("(%p)\n", this);
1281 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
1282 mutex_unlock(&this->lock
);
1286 /* ?eback@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1287 /* ?eback@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1288 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_eback
, 4)
1289 char* __thiscall
basic_streambuf_char_eback(const basic_streambuf_char
*this)
1291 TRACE("(%p)\n", this);
1292 return *this->prbuf
;
1295 /* ?gptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1296 /* ?gptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1297 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_gptr
, 4)
1298 char* __thiscall
basic_streambuf_char_gptr(const basic_streambuf_char
*this)
1300 TRACE("(%p)\n", this);
1301 return *this->prpos
;
1304 /* ?egptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1305 /* ?egptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1306 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_egptr
, 4)
1307 char* __thiscall
basic_streambuf_char_egptr(const basic_streambuf_char
*this)
1309 TRACE("(%p)\n", this);
1310 return *this->prpos
+*this->prsize
;
1313 /* ?epptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1314 /* ?epptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1315 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_epptr
, 4)
1316 char* __thiscall
basic_streambuf_char_epptr(const basic_streambuf_char
*this)
1318 TRACE("(%p)\n", this);
1319 return *this->pwpos
+*this->pwsize
;
1322 /* ?gbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXH@Z */
1323 /* ?gbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXH@Z */
1324 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_gbump
, 8)
1325 void __thiscall
basic_streambuf_char_gbump(basic_streambuf_char
*this, int off
)
1327 TRACE("(%p %d)\n", this, off
);
1328 *this->prpos
+= off
;
1329 *this->prsize
-= off
;
1332 /* ?getloc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AVlocale@2@XZ */
1333 /* ?getloc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QBE?AVlocale@2@XZ */
1334 /* ?getloc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AVlocale@2@XZ */
1335 /* ?getloc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEBA?AVlocale@2@XZ */
1336 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_getloc
, 8)
1337 locale
* __thiscall
basic_streambuf_char_getloc(const basic_streambuf_char
*this, locale
*ret
)
1339 TRACE("(%p)\n", this);
1340 return locale_copy_ctor(ret
, IOS_LOCALE(this));
1343 /* ?imbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEXABVlocale@2@@Z */
1344 /* ?imbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAXAEBVlocale@2@@Z */
1345 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_imbue
, 8)
1346 #if _MSVCP_VER >= 100
1347 #define call_basic_streambuf_char_imbue(this, loc) CALL_VTBL_FUNC(this, 56, void, (basic_streambuf_char*, const locale*), (this, loc))
1348 #elif _MSVCP_VER >= 80
1349 #define call_basic_streambuf_char_imbue(this, loc) CALL_VTBL_FUNC(this, 52, void, (basic_streambuf_char*, const locale*), (this, loc))
1351 #define call_basic_streambuf_char_imbue(this, loc) CALL_VTBL_FUNC(this, 48, void, (basic_streambuf_char*, const locale*), (this, loc))
1353 void __thiscall
basic_streambuf_char_imbue(basic_streambuf_char
*this, const locale
*loc
)
1355 TRACE("(%p %p)\n", this, loc
);
1358 /* ?overflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHH@Z */
1359 /* ?overflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z */
1360 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_overflow
, 8)
1361 #if _MSVCP_VER >= 100
1362 #define call_basic_streambuf_char_overflow(this, ch) CALL_VTBL_FUNC(this, 12, int, (basic_streambuf_char*, int), (this, ch))
1364 #define call_basic_streambuf_char_overflow(this, ch) CALL_VTBL_FUNC(this, 4, int, (basic_streambuf_char*, int), (this, ch))
1366 int __thiscall
basic_streambuf_char_overflow(basic_streambuf_char
*this, int ch
)
1368 TRACE("(%p %d)\n", this, ch
);
1372 /* ?pbackfail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHH@Z */
1373 /* ?pbackfail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z */
1374 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pbackfail
, 8)
1375 #if _MSVCP_VER >= 100
1376 #define call_basic_streambuf_char_pbackfail(this, ch) CALL_VTBL_FUNC(this, 16, int, (basic_streambuf_char*, int), (this, ch))
1378 #define call_basic_streambuf_char_pbackfail(this, ch) CALL_VTBL_FUNC(this, 8, int, (basic_streambuf_char*, int), (this, ch))
1380 int __thiscall
basic_streambuf_char_pbackfail(basic_streambuf_char
*this, int ch
)
1382 TRACE("(%p %d)\n", this, ch
);
1386 /* ?pbase@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1387 /* ?pbase@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1388 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pbase
, 4)
1389 char* __thiscall
basic_streambuf_char_pbase(const basic_streambuf_char
*this)
1391 TRACE("(%p)\n", this);
1392 return *this->pwbuf
;
1395 /* ?pbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXH@Z */
1396 /* ?pbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXH@Z */
1397 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pbump
, 8)
1398 void __thiscall
basic_streambuf_char_pbump(basic_streambuf_char
*this, int off
)
1400 TRACE("(%p %d)\n", this, off
);
1401 *this->pwpos
+= off
;
1402 *this->pwsize
-= off
;
1405 /* ?pptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1406 /* ?pptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1407 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pptr
, 4)
1408 char* __thiscall
basic_streambuf_char_pptr(const basic_streambuf_char
*this)
1410 TRACE("(%p)\n", this);
1411 return *this->pwpos
;
1414 /* ?pubimbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
1415 /* ?pubimbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
1416 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubimbue
, 12)
1417 locale
* __thiscall
basic_streambuf_char_pubimbue(basic_streambuf_char
*this, locale
*ret
, const locale
*loc
)
1419 TRACE("(%p %p)\n", this, loc
);
1420 memcpy(ret
, IOS_LOCALE(this), sizeof(locale
));
1421 call_basic_streambuf_char_imbue(this, loc
);
1422 locale_copy_ctor(IOS_LOCALE(this), loc
);
1426 /* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
1427 /* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
1428 /* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
1429 /* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
1430 #if STREAMOFF_BITS == 64
1431 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_seekoff
, 24)
1433 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_seekoff
, 20)
1435 #if _MSVCP_VER >= 100
1436 #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))
1437 #elif _MSVCP_VER >= 80
1438 #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))
1440 #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))
1442 fpos_int
* __thiscall
basic_streambuf_char_seekoff(basic_streambuf_char
*this,
1443 fpos_int
*ret
, streamoff off
, int way
, int mode
)
1445 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
1452 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JHH@Z */
1453 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JHH@Z */
1454 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JFF@Z */
1455 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JFF@Z */
1456 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
1457 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
1458 #if STREAMOFF_BITS == 64
1459 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff
, 24)
1461 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff
, 20)
1463 fpos_int
* __thiscall
basic_streambuf_char_pubseekoff(basic_streambuf_char
*this,
1464 fpos_int
*ret
, streamoff off
, int way
, int mode
)
1466 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
1467 return call_basic_streambuf_char_seekoff(this, ret
, off
, way
, mode
);
1470 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JII@Z */
1471 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JII@Z */
1472 #if STREAMOFF_BITS == 64
1473 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff_old
, 24)
1475 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff_old
, 20)
1477 fpos_int
* __thiscall
basic_streambuf_char_pubseekoff_old(basic_streambuf_char
*this,
1478 fpos_int
*ret
, streamoff off
, unsigned int way
, unsigned int mode
)
1480 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
1481 return basic_streambuf_char_pubseekoff(this, ret
, off
, way
, mode
);
1484 /* ?seekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
1485 /* ?seekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
1486 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_seekpos
, 36)
1487 #if _MSVCP_VER >= 100
1488 #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))
1489 #elif _MSVCP_VER >= 80
1490 #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))
1492 #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))
1494 fpos_int
* __thiscall
basic_streambuf_char_seekpos(basic_streambuf_char
*this,
1495 fpos_int
*ret
, fpos_int pos
, int mode
)
1497 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
1504 /* ?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@V32@H@Z */
1505 /* ?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@V32@H@Z */
1506 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekpos
, 36)
1507 fpos_int
* __thiscall
basic_streambuf_char_pubseekpos(basic_streambuf_char
*this,
1508 fpos_int
*ret
, fpos_int pos
, int mode
)
1510 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
1511 return call_basic_streambuf_char_seekpos(this, ret
, pos
, mode
);
1514 /* ?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@V32@I@Z */
1515 /* ?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@V32@I@Z */
1516 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekpos_old
, 36)
1517 fpos_int
* __thiscall
basic_streambuf_char_pubseekpos_old(basic_streambuf_char
*this,
1518 fpos_int
*ret
, fpos_int pos
, unsigned int mode
)
1520 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
1521 return basic_streambuf_char_pubseekpos(this, ret
, pos
, mode
);
1524 /* ?setbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEPAV12@PADH@Z */
1525 /* ?setbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAPEAV12@PEAD_J@Z */
1526 #if STREAMSIZE_BITS == 64
1527 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setbuf
, 16)
1529 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setbuf
, 12)
1531 #if _MSVCP_VER >= 100
1532 #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))
1533 #elif _MSVCP_VER >= 80
1534 #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))
1536 #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))
1538 basic_streambuf_char
* __thiscall
basic_streambuf_char_setbuf(basic_streambuf_char
*this, char *buf
, streamsize count
)
1540 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
1544 /* ?pubsetbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PADH@Z */
1545 /* ?pubsetbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEAD_J@Z */
1546 #if STREAMSIZE_BITS == 64
1547 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubsetbuf
, 16)
1549 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubsetbuf
, 12)
1551 basic_streambuf_char
* __thiscall
basic_streambuf_char_pubsetbuf(basic_streambuf_char
*this, char *buf
, streamsize count
)
1553 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
1554 return call_basic_streambuf_char_setbuf(this, buf
, count
);
1557 /* ?sync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1558 /* ?sync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
1559 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sync
, 4)
1560 #if _MSVCP_VER >= 100
1561 #define call_basic_streambuf_char_sync(this) CALL_VTBL_FUNC(this, 52, int, (basic_streambuf_char*), (this))
1562 #elif _MSVCP_VER >= 80
1563 #define call_basic_streambuf_char_sync(this) CALL_VTBL_FUNC(this, 48, int, (basic_streambuf_char*), (this))
1565 #define call_basic_streambuf_char_sync(this) CALL_VTBL_FUNC(this, 44, int, (basic_streambuf_char*), (this))
1567 int __thiscall
basic_streambuf_char_sync(basic_streambuf_char
*this)
1569 TRACE("(%p)\n", this);
1573 /* ?pubsync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1574 /* ?pubsync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1575 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubsync
, 4)
1576 int __thiscall
basic_streambuf_char_pubsync(basic_streambuf_char
*this)
1578 TRACE("(%p)\n", this);
1579 return call_basic_streambuf_char_sync(this);
1582 /* ?sgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPADH@Z */
1583 /* ?sgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_J@Z */
1584 #if STREAMSIZE_BITS == 64
1585 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sgetn
, 16)
1587 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sgetn
, 12)
1589 streamsize __thiscall
basic_streambuf_char_sgetn(basic_streambuf_char
*this, char *ptr
, streamsize count
)
1591 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
1592 return call_basic_streambuf_char__Xsgetn_s(this, ptr
, -1, count
);
1595 /* ?showmanyc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1596 /* ?showmanyc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JXZ */
1597 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_showmanyc
, 4)
1598 #if _MSVCP_VER >= 100
1599 #define call_basic_streambuf_char_showmanyc(this) CALL_VTBL_FUNC(this, 20, streamsize, (basic_streambuf_char*), (this))
1601 #define call_basic_streambuf_char_showmanyc(this) CALL_VTBL_FUNC(this, 12, streamsize, (basic_streambuf_char*), (this))
1603 streamsize __thiscall
basic_streambuf_char_showmanyc(basic_streambuf_char
*this)
1605 TRACE("(%p)\n", this);
1609 /* ?in_avail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1610 /* ?in_avail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JXZ */
1611 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_in_avail
, 4)
1612 streamsize __thiscall
basic_streambuf_char_in_avail(basic_streambuf_char
*this)
1616 TRACE("(%p)\n", this);
1618 ret
= basic_streambuf_char__Gnavail(this);
1619 return ret
? ret
: call_basic_streambuf_char_showmanyc(this);
1622 /* ?sputbackc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z */
1623 /* ?sputbackc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHD@Z */
1624 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputbackc
, 8)
1625 int __thiscall
basic_streambuf_char_sputbackc(basic_streambuf_char
*this, char ch
)
1627 TRACE("(%p %d)\n", this, ch
);
1628 if(*this->prpos
&& *this->prpos
>*this->prbuf
&& (*this->prpos
)[-1]==ch
) {
1631 return (unsigned char)ch
;
1634 return call_basic_streambuf_char_pbackfail(this, (unsigned char)ch
);
1637 /* ?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z */
1638 /* ?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHD@Z */
1639 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputc
, 8)
1640 int __thiscall
basic_streambuf_char_sputc(basic_streambuf_char
*this, char ch
)
1642 TRACE("(%p %d)\n", this, ch
);
1643 return basic_streambuf_char__Pnavail(this) ?
1644 (unsigned char)(*basic_streambuf_char__Pninc(this) = ch
) :
1645 call_basic_streambuf_char_overflow(this, (unsigned char)ch
);
1648 /* ?sungetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1649 /* ?sungetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1650 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sungetc
, 4)
1651 int __thiscall
basic_streambuf_char_sungetc(basic_streambuf_char
*this)
1653 TRACE("(%p)\n", this);
1654 if(*this->prpos
&& *this->prpos
>*this->prbuf
) {
1657 return (unsigned char)**this->prpos
;
1660 return call_basic_streambuf_char_pbackfail(this, EOF
);
1663 /* ?stossc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
1664 /* ?stossc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
1665 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_stossc
, 4)
1666 void __thiscall
basic_streambuf_char_stossc(basic_streambuf_char
*this)
1668 TRACE("(%p)\n", this);
1669 if(basic_streambuf_char__Gnavail(this))
1670 basic_streambuf_char__Gninc(this);
1672 call_basic_streambuf_char_uflow(this);
1675 /* ?sbumpc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1676 /* ?sbumpc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1677 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sbumpc
, 4)
1678 int __thiscall
basic_streambuf_char_sbumpc(basic_streambuf_char
*this)
1680 TRACE("(%p)\n", this);
1681 return basic_streambuf_char__Gnavail(this) ?
1682 (int)(unsigned char)*basic_streambuf_char__Gninc(this) : call_basic_streambuf_char_uflow(this);
1685 /* ?sgetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1686 /* ?sgetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1687 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sgetc
, 4)
1688 int __thiscall
basic_streambuf_char_sgetc(basic_streambuf_char
*this)
1690 TRACE("(%p)\n", this);
1691 return basic_streambuf_char__Gnavail(this) ?
1692 (int)(unsigned char)*basic_streambuf_char_gptr(this) : call_basic_streambuf_char_underflow(this);
1695 /* ?snextc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1696 /* ?snextc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1697 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_snextc
, 4)
1698 int __thiscall
basic_streambuf_char_snextc(basic_streambuf_char
*this)
1700 TRACE("(%p)\n", this);
1702 if(basic_streambuf_char__Gnavail(this) > 1)
1703 return (unsigned char)*basic_streambuf_char__Gnpreinc(this);
1704 return basic_streambuf_char_sbumpc(this)==EOF
?
1705 EOF
: basic_streambuf_char_sgetc(this);
1708 /* ?xsgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHPADH@Z */
1709 /* ?xsgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEAD_J@Z */
1710 #if STREAMSIZE_BITS == 64
1711 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsgetn
, 16)
1713 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsgetn
, 12)
1715 #if _MSVCP_VER >= 100
1716 #define call_basic_streambuf_char_xsgetn(this, ptr, count) CALL_VTBL_FUNC(this, 32, streamsize, (basic_streambuf_char*, char*, streamsize), (this, ptr, count))
1718 #define call_basic_streambuf_char_xsgetn(this, ptr, count) CALL_VTBL_FUNC(this, 24, streamsize, (basic_streambuf_char*, char*, streamsize), (this, ptr, count))
1720 streamsize __thiscall
basic_streambuf_char_xsgetn(basic_streambuf_char
*this, char *ptr
, streamsize count
)
1722 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
1723 return call_basic_streambuf_char__Xsgetn_s(this, ptr
, -1, count
);
1726 /* ?xsputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHPBDH@Z */
1727 /* ?xsputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEBD_J@Z */
1728 #if STREAMSIZE_BITS == 64
1729 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsputn
, 16)
1731 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsputn
, 12)
1733 #if _MSVCP_VER >= 100
1734 #define call_basic_streambuf_char_xsputn(this, ptr, count) CALL_VTBL_FUNC(this, 36, streamsize, (basic_streambuf_char*, const char*, streamsize), (this, ptr, count))
1735 #elif _MSVCP_VER >= 80
1736 #define call_basic_streambuf_char_xsputn(this, ptr, count) CALL_VTBL_FUNC(this, 32, streamsize, (basic_streambuf_char*, const char*, streamsize), (this, ptr, count))
1738 #define call_basic_streambuf_char_xsputn(this, ptr, count) CALL_VTBL_FUNC(this, 28, streamsize, (basic_streambuf_char*, const char*, streamsize), (this, ptr, count))
1740 streamsize __thiscall
basic_streambuf_char_xsputn(basic_streambuf_char
*this, const char *ptr
, streamsize count
)
1742 streamsize copied
, chunk
;
1744 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
1746 for(copied
=0; copied
<count
;) {
1747 chunk
= basic_streambuf_char__Pnavail(this);
1748 if(chunk
> count
-copied
)
1749 chunk
= count
-copied
;
1752 memcpy(*this->pwpos
, ptr
+copied
, chunk
);
1753 *this->pwpos
+= chunk
;
1754 *this->pwsize
-= chunk
;
1756 }else if(call_basic_streambuf_char_overflow(this, (unsigned char)ptr
[copied
]) != EOF
) {
1766 /* ?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPBDH@Z */
1767 /* ?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEBD_J@Z */
1768 #if STREAMSIZE_BITS == 64
1769 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputn
, 16)
1771 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputn
, 12)
1773 streamsize __thiscall
basic_streambuf_char_sputn(basic_streambuf_char
*this, const char *ptr
, streamsize count
)
1775 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
1776 return call_basic_streambuf_char_xsputn(this, ptr
, count
);
1779 /* ?swap@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXAAV12@@Z */
1780 /* ?swap@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXAEAV12@@Z */
1781 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_swap
, 8)
1782 void __thiscall
basic_streambuf_char_swap(basic_streambuf_char
*this, basic_streambuf_char
*r
)
1784 basic_streambuf_char tmp
;
1786 TRACE("(%p %p)\n", this, r
);
1793 this->vtable
= tmp
.vtable
;
1794 tmp
.vtable
= r
->vtable
;
1798 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPA_W00@Z */
1799 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEA_W00@Z */
1800 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAG00@Z */
1801 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAG00@Z */
1802 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setp_next
, 16)
1803 void __thiscall
basic_streambuf_wchar_setp_next(basic_streambuf_wchar
*this, wchar_t *first
, wchar_t *next
, wchar_t *last
)
1805 TRACE("(%p %p %p %p)\n", this, first
, next
, last
);
1809 this->wsize
= last
-next
;
1812 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPA_W0@Z */
1813 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEA_W0@Z */
1814 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAG0@Z */
1815 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAG0@Z */
1816 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setp
, 12)
1817 void __thiscall
basic_streambuf_wchar_setp(basic_streambuf_wchar
*this, wchar_t *first
, wchar_t *last
)
1819 basic_streambuf_wchar_setp_next(this, first
, first
, last
);
1822 /* ?setg@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPA_W00@Z */
1823 /* ?setg@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEA_W00@Z */
1824 /* ?setg@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAG00@Z */
1825 /* ?setg@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAG00@Z */
1826 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setg
, 16)
1827 void __thiscall
basic_streambuf_wchar_setg(basic_streambuf_wchar
*this, wchar_t *first
, wchar_t *next
, wchar_t *last
)
1829 TRACE("(%p %p %p %p)\n", this, first
, next
, last
);
1833 this->rsize
= last
-next
;
1836 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXXZ */
1837 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXXZ */
1838 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXXZ */
1839 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXXZ */
1840 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Init_empty
, 4)
1841 void __thiscall
basic_streambuf_wchar__Init_empty(basic_streambuf_wchar
*this)
1843 TRACE("(%p)\n", this);
1845 this->prbuf
= &this->rbuf
;
1846 this->pwbuf
= &this->wbuf
;
1847 this->prpos
= &this->rpos
;
1848 this->pwpos
= &this->wpos
;
1849 this->prsize
= &this->rsize
;
1850 this->pwsize
= &this->wsize
;
1852 basic_streambuf_wchar_setp(this, NULL
, NULL
);
1853 basic_streambuf_wchar_setg(this, NULL
, NULL
, NULL
);
1856 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAE@W4_Uninitialized@1@@Z */
1857 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAA@W4_Uninitialized@1@@Z */
1858 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_ctor_uninitialized
, 8)
1859 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_ctor_uninitialized(basic_streambuf_wchar
*this, int uninitialized
)
1861 TRACE("(%p %d)\n", this, uninitialized
);
1862 this->vtable
= &MSVCP_basic_streambuf_wchar_vtable
;
1863 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
1864 mutex_ctor(&this->lock
);
1869 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAE@W4_Uninitialized@1@@Z */
1870 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAA@W4_Uninitialized@1@@Z */
1871 DEFINE_THISCALL_WRAPPER(basic_streambuf_short_ctor_uninitialized
, 8)
1872 basic_streambuf_wchar
* __thiscall
basic_streambuf_short_ctor_uninitialized(basic_streambuf_wchar
*this, int uninitialized
)
1874 TRACE("(%p %d)\n", this, uninitialized
);
1875 basic_streambuf_wchar_ctor_uninitialized(this, uninitialized
);
1876 this->vtable
= &MSVCP_basic_streambuf_short_vtable
;
1880 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAE@XZ */
1881 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAA@XZ */
1882 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_ctor
, 4)
1883 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_ctor(basic_streambuf_wchar
*this)
1885 TRACE("(%p)\n", this);
1887 this->vtable
= &MSVCP_basic_streambuf_wchar_vtable
;
1888 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
1889 mutex_ctor(&this->lock
);
1891 #if _MSVCP_VER >= 70
1892 this->loc
= MSVCRT_operator_new(sizeof(locale
));
1894 locale_ctor(IOS_LOCALE(this));
1895 basic_streambuf_wchar__Init_empty(this);
1900 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAE@XZ */
1901 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAA@XZ */
1902 DEFINE_THISCALL_WRAPPER(basic_streambuf_short_ctor
, 4)
1903 basic_streambuf_wchar
* __thiscall
basic_streambuf_short_ctor(basic_streambuf_wchar
*this)
1905 TRACE("(%p)\n", this);
1906 basic_streambuf_wchar_ctor(this);
1907 this->vtable
= &MSVCP_basic_streambuf_short_vtable
;
1911 /* ??1?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
1912 /* ??1?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
1913 /* ??1?$basic_streambuf@GU?$char_traits@G@std@@@std@@UAE@XZ */
1914 /* ??1?$basic_streambuf@GU?$char_traits@G@std@@@std@@UEAA@XZ */
1915 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_dtor
, 4)
1916 void __thiscall
basic_streambuf_wchar_dtor(basic_streambuf_wchar
*this)
1918 TRACE("(%p)\n", this);
1920 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
1921 mutex_dtor(&this->lock
);
1923 locale_dtor(IOS_LOCALE(this));
1924 #if _MSVCP_VER >= 70
1925 MSVCRT_operator_delete(this->loc
);
1929 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_vector_dtor
, 8)
1930 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_vector_dtor(basic_streambuf_wchar
*this, unsigned int flags
)
1932 TRACE("(%p %x)\n", this, flags
);
1934 /* we have an array, with the number of elements stored before the first object */
1935 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
1937 for(i
=*ptr
-1; i
>=0; i
--)
1938 basic_streambuf_wchar_dtor(this+i
);
1939 MSVCRT_operator_delete(ptr
);
1941 basic_streambuf_wchar_dtor(this);
1943 MSVCRT_operator_delete(this);
1949 /* ?_Gnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEHXZ */
1950 /* ?_Gnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBA_JXZ */
1951 /* ?_Gnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEHXZ */
1952 /* ?_Gnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBA_JXZ */
1953 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Gnavail
, 4)
1954 streamsize __thiscall
basic_streambuf_wchar__Gnavail(const basic_streambuf_wchar
*this)
1956 TRACE("(%p)\n", this);
1957 return *this->prpos
? *this->prsize
: 0;
1960 /* ?_Gndec@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
1961 /* ?_Gndec@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
1962 /* ?_Gndec@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
1963 /* ?_Gndec@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
1964 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Gndec
, 4)
1965 wchar_t* __thiscall
basic_streambuf_wchar__Gndec(basic_streambuf_wchar
*this)
1967 TRACE("(%p)\n", this);
1970 return *this->prpos
;
1973 /* ?_Gninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
1974 /* ?_Gninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
1975 /* ?_Gninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
1976 /* ?_Gninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
1977 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Gninc
, 4)
1978 wchar_t* __thiscall
basic_streambuf_wchar__Gninc(basic_streambuf_wchar
*this)
1980 TRACE("(%p)\n", this);
1982 return (*this->prpos
)++;
1985 /* ?_Gnpreinc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
1986 /* ?_Gnpreinc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
1987 /* ?_Gnpreinc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
1988 /* ?_Gnpreinc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
1989 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Gnpreinc
, 4)
1990 wchar_t* __thiscall
basic_streambuf_wchar__Gnpreinc(basic_streambuf_wchar
*this)
1992 TRACE("(%p)\n", this);
1995 return *this->prpos
;
1998 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPAPA_W0PAH001@Z */
1999 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEAPEA_W0PEAH001@Z */
2000 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAPAG0PAH001@Z */
2001 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAPEAG0PEAH001@Z */
2002 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Init
, 28)
2003 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
)
2005 TRACE("(%p %p %p %p %p %p %p)\n", this, gf
, gn
, gc
, pf
, pn
, pc
);
2015 /* ?_Lock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
2016 /* ?_Lock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
2017 /* ?_Lock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
2018 /* ?_Lock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
2019 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Lock
, 4)
2020 void __thiscall
basic_streambuf_wchar__Lock(basic_streambuf_wchar
*this)
2022 TRACE("(%p)\n", this);
2023 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
2024 mutex_lock(&this->lock
);
2028 /* ?_Pnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEHXZ */
2029 /* ?_Pnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBA_JXZ */
2030 /* ?_Pnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEHXZ */
2031 /* ?_Pnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBA_JXZ */
2032 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Pnavail
, 4)
2033 streamsize __thiscall
basic_streambuf_wchar__Pnavail(const basic_streambuf_wchar
*this)
2035 TRACE("(%p)\n", this);
2036 return *this->pwpos
? *this->pwsize
: 0;
2039 /* ?_Pninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
2040 /* ?_Pninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
2041 /* ?_Pninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
2042 /* ?_Pninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
2043 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Pninc
, 4)
2044 wchar_t* __thiscall
basic_streambuf_wchar__Pninc(basic_streambuf_wchar
*this)
2046 TRACE("(%p)\n", this);
2048 return (*this->pwpos
)++;
2051 /* ?underflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
2052 /* ?underflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
2053 /* ?underflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
2054 /* ?underflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
2055 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_underflow
, 4)
2056 #if _MSVCP_VER >= 100
2057 #define call_basic_streambuf_wchar_underflow(this) CALL_VTBL_FUNC(this, 24, unsigned short, (basic_streambuf_wchar*), (this))
2059 #define call_basic_streambuf_wchar_underflow(this) CALL_VTBL_FUNC(this, 16, unsigned short, (basic_streambuf_wchar*), (this))
2061 unsigned short __thiscall
basic_streambuf_wchar_underflow(basic_streambuf_wchar
*this)
2063 TRACE("(%p)\n", this);
2067 /* ?uflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
2068 /* ?uflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
2069 /* ?uflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
2070 /* ?uflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
2071 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_uflow
, 4)
2072 #if _MSVCP_VER >= 100
2073 #define call_basic_streambuf_wchar_uflow(this) CALL_VTBL_FUNC(this, 28, unsigned short, (basic_streambuf_wchar*), (this))
2075 #define call_basic_streambuf_wchar_uflow(this) CALL_VTBL_FUNC(this, 20, unsigned short, (basic_streambuf_wchar*), (this))
2077 unsigned short __thiscall
basic_streambuf_wchar_uflow(basic_streambuf_wchar
*this)
2081 TRACE("(%p)\n", this);
2083 if(call_basic_streambuf_wchar_underflow(this)==WEOF
)
2086 ret
= **this->prpos
;
2092 /* ?_Xsgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHPA_WIH@Z */
2093 /* ?_Xsgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEA_W_K_J@Z */
2094 /* ?_Xsgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHPAGIH@Z */
2095 /* ?_Xsgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JPEAG_K_J@Z */
2096 #if STREAMSIZE_BITS == 64
2097 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Xsgetn_s
, 20)
2099 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Xsgetn_s
, 16)
2101 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
2102 #define call_basic_streambuf_wchar__Xsgetn_s(this, ptr, size, count) CALL_VTBL_FUNC(this, 28, \
2103 streamsize, (basic_streambuf_wchar*, wchar_t*, MSVCP_size_t, streamsize), (this, ptr, size, count))
2105 #define call_basic_streambuf_wchar__Xsgetn_s(this, ptr, size, count) basic_streambuf_wchar__Xsgetn_s(this, ptr, size, count)
2107 streamsize __thiscall
basic_streambuf_wchar__Xsgetn_s(basic_streambuf_wchar
*this, wchar_t *ptr
, MSVCP_size_t size
, streamsize count
)
2109 streamsize copied
, chunk
;
2112 TRACE("(%p %p %lu %s)\n", this, ptr
, size
, wine_dbgstr_longlong(count
));
2114 for(copied
=0; copied
<count
&& size
;) {
2115 chunk
= basic_streambuf_wchar__Gnavail(this);
2116 if(chunk
> count
-copied
)
2117 chunk
= count
-copied
;
2120 memcpy_s(ptr
+copied
, size
, *this->prpos
, chunk
*sizeof(wchar_t));
2121 *this->prpos
+= chunk
;
2122 *this->prsize
-= chunk
;
2124 size
-= chunk
*sizeof(wchar_t);
2125 }else if((c
= call_basic_streambuf_wchar_uflow(this)) != WEOF
) {
2137 /* ?_Sgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHPA_WIH@Z */
2138 /* ?_Sgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_K_J@Z */
2139 /* ?_Sgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHPAGIH@Z */
2140 /* ?_Sgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_K_J@Z */
2141 #if STREAMSIZE_BITS == 64
2142 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Sgetn_s
, 20)
2144 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Sgetn_s
, 16)
2146 streamsize __thiscall
basic_streambuf_wchar__Sgetn_s(basic_streambuf_wchar
*this, wchar_t *ptr
, MSVCP_size_t size
, streamsize count
)
2148 TRACE("(%p %p %lu %s)\n", this, ptr
, size
, wine_dbgstr_longlong(count
));
2149 return call_basic_streambuf_wchar__Xsgetn_s(this, ptr
, size
, count
);
2152 /* ?_Unlock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
2153 /* ?_Unlock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
2154 /* ?_Unlock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
2155 /* ?_Unlock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
2156 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Unlock
, 4)
2157 void __thiscall
basic_streambuf_wchar__Unlock(basic_streambuf_wchar
*this)
2159 TRACE("(%p)\n", this);
2160 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
2161 mutex_unlock(&this->lock
);
2165 /* ?eback@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2166 /* ?eback@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2167 /* ?eback@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2168 /* ?eback@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2169 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_eback
, 4)
2170 wchar_t* __thiscall
basic_streambuf_wchar_eback(const basic_streambuf_wchar
*this)
2172 TRACE("(%p)\n", this);
2173 return *this->prbuf
;
2176 /* ?gptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2177 /* ?gptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2178 /* ?gptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2179 /* ?gptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2180 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_gptr
, 4)
2181 wchar_t* __thiscall
basic_streambuf_wchar_gptr(const basic_streambuf_wchar
*this)
2183 TRACE("(%p)\n", this);
2184 return *this->prpos
;
2187 /* ?egptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2188 /* ?egptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2189 /* ?egptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2190 /* ?egptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2191 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_egptr
, 4)
2192 wchar_t* __thiscall
basic_streambuf_wchar_egptr(const basic_streambuf_wchar
*this)
2194 TRACE("(%p)\n", this);
2195 return *this->prpos
+*this->prsize
;
2198 /* ?epptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2199 /* ?epptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2200 /* ?epptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2201 /* ?epptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2202 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_epptr
, 4)
2203 wchar_t* __thiscall
basic_streambuf_wchar_epptr(const basic_streambuf_wchar
*this)
2205 TRACE("(%p)\n", this);
2206 return *this->pwpos
+*this->pwsize
;
2209 /* ?gbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXH@Z */
2210 /* ?gbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXH@Z */
2211 /* ?gbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXH@Z */
2212 /* ?gbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXH@Z */
2213 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_gbump
, 8)
2214 void __thiscall
basic_streambuf_wchar_gbump(basic_streambuf_wchar
*this, int off
)
2216 TRACE("(%p %d)\n", this, off
);
2217 *this->prpos
+= off
;
2218 *this->prsize
-= off
;
2221 /* ?getloc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QBE?AVlocale@2@XZ */
2222 /* ?getloc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEBA?AVlocale@2@XZ */
2223 /* ?getloc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QBE?AVlocale@2@XZ */
2224 /* ?getloc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEBA?AVlocale@2@XZ */
2225 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_getloc
, 8)
2226 locale
* __thiscall
basic_streambuf_wchar_getloc(const basic_streambuf_wchar
*this, locale
*ret
)
2228 TRACE("(%p)\n", this);
2229 return locale_copy_ctor(ret
, IOS_LOCALE(this));
2232 /* ?imbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEXABVlocale@2@@Z */
2233 /* ?imbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAXAEBVlocale@2@@Z */
2234 /* ?imbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEXABVlocale@2@@Z */
2235 /* ?imbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAXAEBVlocale@2@@Z */
2236 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_imbue
, 8)
2237 #if _MSVCP_VER >= 100
2238 #define call_basic_streambuf_wchar_imbue(this, loc) CALL_VTBL_FUNC(this, 56, void, (basic_streambuf_wchar*, const locale*), (this, loc))
2239 #elif _MSVCP_VER >= 80
2240 #define call_basic_streambuf_wchar_imbue(this, loc) CALL_VTBL_FUNC(this, 52, void, (basic_streambuf_wchar*, const locale*), (this, loc))
2242 #define call_basic_streambuf_wchar_imbue(this, loc) CALL_VTBL_FUNC(this, 48, void, (basic_streambuf_wchar*, const locale*), (this, loc))
2244 void __thiscall
basic_streambuf_wchar_imbue(basic_streambuf_wchar
*this, const locale
*loc
)
2246 TRACE("(%p %p)\n", this, loc
);
2249 /* ?overflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
2250 /* ?overflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
2251 /* ?overflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
2252 /* ?overflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
2253 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_overflow
, 8)
2254 #if _MSVCP_VER >= 100
2255 #define call_basic_streambuf_wchar_overflow(this, ch) CALL_VTBL_FUNC(this, 12, unsigned short, (basic_streambuf_wchar*, unsigned short), (this, ch))
2257 #define call_basic_streambuf_wchar_overflow(this, ch) CALL_VTBL_FUNC(this, 4, unsigned short, (basic_streambuf_wchar*, unsigned short), (this, ch))
2259 unsigned short __thiscall
basic_streambuf_wchar_overflow(basic_streambuf_wchar
*this, unsigned short ch
)
2261 TRACE("(%p %d)\n", this, ch
);
2265 /* ?pbackfail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
2266 /* ?pbackfail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
2267 /* ?pbackfail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
2268 /* ?pbackfail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
2269 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pbackfail
, 8)
2270 #if _MSVCP_VER >= 100
2271 #define call_basic_streambuf_wchar_pbackfail(this, ch) CALL_VTBL_FUNC(this, 16, unsigned short, (basic_streambuf_wchar*, unsigned short), (this, ch))
2273 #define call_basic_streambuf_wchar_pbackfail(this, ch) CALL_VTBL_FUNC(this, 8, unsigned short, (basic_streambuf_wchar*, unsigned short), (this, ch))
2275 unsigned short __thiscall
basic_streambuf_wchar_pbackfail(basic_streambuf_wchar
*this, unsigned short ch
)
2277 TRACE("(%p %d)\n", this, ch
);
2281 /* ?pbase@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2282 /* ?pbase@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2283 /* ?pbase@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2284 /* ?pbase@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2285 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pbase
, 4)
2286 wchar_t* __thiscall
basic_streambuf_wchar_pbase(const basic_streambuf_wchar
*this)
2288 TRACE("(%p)\n", this);
2289 return *this->pwbuf
;
2292 /* ?pbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXH@Z */
2293 /* ?pbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXH@Z */
2294 /* ?pbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXH@Z */
2295 /* ?pbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXH@Z */
2296 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pbump
, 8)
2297 void __thiscall
basic_streambuf_wchar_pbump(basic_streambuf_wchar
*this, int off
)
2299 TRACE("(%p %d)\n", this, off
);
2300 *this->pwpos
+= off
;
2301 *this->pwsize
-= off
;
2304 /* ?pptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2305 /* ?pptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2306 /* ?pptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2307 /* ?pptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2308 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pptr
, 4)
2309 wchar_t* __thiscall
basic_streambuf_wchar_pptr(const basic_streambuf_wchar
*this)
2311 TRACE("(%p)\n", this);
2312 return *this->pwpos
;
2315 /* ?pubimbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
2316 /* ?pubimbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
2317 /* ?pubimbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
2318 /* ?pubimbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
2319 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubimbue
, 12)
2320 locale
* __thiscall
basic_streambuf_wchar_pubimbue(basic_streambuf_wchar
*this, locale
*ret
, const locale
*loc
)
2322 TRACE("(%p %p)\n", this, loc
);
2323 memcpy(ret
, IOS_LOCALE(this), sizeof(locale
));
2324 call_basic_streambuf_wchar_imbue(this, loc
);
2325 locale_copy_ctor(IOS_LOCALE(this), loc
);
2329 /* ?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
2330 /* ?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
2331 /* ?seekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
2332 /* ?seekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
2333 /* ?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
2334 /* ?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
2335 #if STREAMOFF_BITS == 64
2336 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_seekoff
, 24)
2338 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_seekoff
, 20)
2340 #if _MSVCP_VER >= 100
2341 #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))
2342 #elif _MSVCP_VER >= 80
2343 #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))
2345 #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))
2347 fpos_int
* __thiscall
basic_streambuf_wchar_seekoff(basic_streambuf_wchar
*this,
2348 fpos_int
*ret
, streamoff off
, int way
, int mode
)
2350 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
2357 /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@JHH@Z */
2358 /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@_JHH@Z */
2359 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JHH@Z */
2360 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JHH@Z */
2361 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JFF@Z */
2362 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JFF@Z */
2363 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
2364 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JW4seekdir@ioos_base@2@H@Z */
2365 #if STREAMOFF_BITS == 64
2366 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff
, 24)
2368 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff
, 20)
2370 fpos_int
* __thiscall
basic_streambuf_wchar_pubseekoff(basic_streambuf_wchar
*this,
2371 fpos_int
*ret
, streamoff off
, int way
, int mode
)
2373 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
2374 return call_basic_streambuf_wchar_seekoff(this, ret
, off
, way
, mode
);
2377 /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@JII@Z */
2378 /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@_JII@Z */
2379 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JII@Z */
2380 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JII@Z */
2381 #if STREAMOFF_BITS == 64
2382 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff_old
, 24)
2384 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff_old
, 20)
2386 fpos_int
* __thiscall
basic_streambuf_wchar_pubseekoff_old(basic_streambuf_wchar
*this,
2387 fpos_int
*ret
, streamoff off
, unsigned int way
, unsigned int mode
)
2389 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
2390 return basic_streambuf_wchar_pubseekoff(this, ret
, off
, way
, mode
);
2393 /* ?seekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
2394 /* ?seekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
2395 /* ?seekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
2396 /* ?seekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
2397 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_seekpos
, 36)
2398 #if _MSVCP_VER >= 100
2399 #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))
2400 #elif _MSVCP_VER >= 80
2401 #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))
2403 #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))
2405 fpos_int
* __thiscall
basic_streambuf_wchar_seekpos(basic_streambuf_wchar
*this,
2406 fpos_int
*ret
, fpos_int pos
, int mode
)
2408 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
2415 /* ?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@V32@H@Z */
2416 /* ?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@V32@H@Z */
2417 /* ?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@V32@H@Z */
2418 /* ?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@V32@H@Z */
2419 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekpos
, 36)
2420 fpos_int
* __thiscall
basic_streambuf_wchar_pubseekpos(basic_streambuf_wchar
*this,
2421 fpos_int
*ret
, fpos_int pos
, int mode
)
2423 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
2424 return call_basic_streambuf_wchar_seekpos(this, ret
, pos
, mode
);
2427 /* ?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@V32@I@Z */
2428 /* ?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@V32@I@Z */
2429 /* ?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@V32@I@Z */
2430 /* ?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@V32@I@Z */
2431 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekpos_old
, 36)
2432 fpos_int
* __thiscall
basic_streambuf_wchar_pubseekpos_old(basic_streambuf_wchar
*this,
2433 fpos_int
*ret
, fpos_int pos
, unsigned int mode
)
2435 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
2436 return basic_streambuf_wchar_pubseekpos(this, ret
, pos
, mode
);
2439 /* ?setbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEPAV12@PA_WH@Z */
2440 /* ?setbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAPEAV12@PEA_W_J@Z */
2441 /* ?setbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEPAV12@PAGH@Z */
2442 /* ?setbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAPEAV12@PEAG_J@Z */
2443 #if STREAMSIZE_BITS == 64
2444 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setbuf
, 16)
2446 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setbuf
, 12)
2448 #if _MSVCP_VER >= 100
2449 #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))
2450 #elif _MSVCP_VER >= 80
2451 #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))
2453 #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))
2455 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_setbuf(basic_streambuf_wchar
*this, wchar_t *buf
, streamsize count
)
2457 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
2461 /* ?pubsetbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PA_WH@Z */
2462 /* ?pubsetbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEA_W_J@Z */
2463 /* ?pubsetbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PAGH@Z */
2464 /* ?pubsetbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEAG_J@Z */
2465 #if STREAMSIZE_BITS == 64
2466 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubsetbuf
, 16)
2468 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubsetbuf
, 12)
2470 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_pubsetbuf(basic_streambuf_wchar
*this, wchar_t *buf
, streamsize count
)
2472 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
2473 return call_basic_streambuf_wchar_setbuf(this, buf
, count
);
2476 /* ?sync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHXZ */
2477 /* ?sync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAHXZ */
2478 /* ?sync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHXZ */
2479 /* ?sync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAHXZ */
2480 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sync
, 4)
2481 #if _MSVCP_VER >= 100
2482 #define call_basic_streambuf_wchar_sync(this) CALL_VTBL_FUNC(this, 52, int, (basic_streambuf_wchar*), (this))
2483 #elif _MSVCP_VER >= 80
2484 #define call_basic_streambuf_wchar_sync(this) CALL_VTBL_FUNC(this, 48, int, (basic_streambuf_wchar*), (this))
2486 #define call_basic_streambuf_wchar_sync(this) CALL_VTBL_FUNC(this, 44, int, (basic_streambuf_wchar*), (this))
2488 int __thiscall
basic_streambuf_wchar_sync(basic_streambuf_wchar
*this)
2490 TRACE("(%p)\n", this);
2494 /* ?pubsync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHXZ */
2495 /* ?pubsync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAHXZ */
2496 /* ?pubsync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHXZ */
2497 /* ?pubsync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAHXZ */
2498 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubsync
, 4)
2499 int __thiscall
basic_streambuf_wchar_pubsync(basic_streambuf_wchar
*this)
2501 TRACE("(%p)\n", this);
2502 return call_basic_streambuf_wchar_sync(this);
2505 /* ?xsgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHPA_WH@Z */
2506 /* ?xsgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEA_W_J@Z */
2507 /* ?xsgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHPAGH@Z */
2508 /* ?xsgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JPEAG_J@Z */
2509 #if STREAMSIZE_BITS == 64
2510 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsgetn
, 16)
2512 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsgetn
, 12)
2514 #if _MSVCP_VER >= 100
2515 #define call_basic_streambuf_wchar_xsgetn(this, ptr, count) CALL_VTBL_FUNC(this, 32, streamsize, (basic_streambuf_wchar*, wchar_t*, streamsize), (this, ptr, count))
2517 #define call_basic_streambuf_wchar_xsgetn(this, ptr, count) CALL_VTBL_FUNC(this, 24, streamsize, (basic_streambuf_wchar*, wchar_t*, streamsize), (this, ptr, count))
2519 streamsize __thiscall
basic_streambuf_wchar_xsgetn(basic_streambuf_wchar
*this, wchar_t *ptr
, streamsize count
)
2521 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
2522 return call_basic_streambuf_wchar__Xsgetn_s(this, ptr
, -1, count
);
2525 /* ?sgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHPA_WH@Z */
2526 /* ?sgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_J@Z */
2527 /* ?sgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHPAGH@Z */
2528 /* ?sgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_J@Z */
2529 #if STREAMSIZE_BITS == 64
2530 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sgetn
, 16)
2532 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sgetn
, 12)
2534 streamsize __thiscall
basic_streambuf_wchar_sgetn(basic_streambuf_wchar
*this, wchar_t *ptr
, streamsize count
)
2536 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
2537 return call_basic_streambuf_wchar_xsgetn(this, ptr
, count
);
2540 /* ?showmanyc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHXZ */
2541 /* ?showmanyc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JXZ */
2542 /* ?showmanyc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHXZ */
2543 /* ?showmanyc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JXZ */
2544 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_showmanyc
, 4)
2545 #if _MSVCP_VER >= 100
2546 #define call_basic_streambuf_wchar_showmanyc(this) CALL_VTBL_FUNC(this, 20, streamsize, (basic_streambuf_wchar*), (this))
2548 #define call_basic_streambuf_wchar_showmanyc(this) CALL_VTBL_FUNC(this, 12, streamsize, (basic_streambuf_wchar*), (this))
2550 streamsize __thiscall
basic_streambuf_wchar_showmanyc(basic_streambuf_wchar
*this)
2552 TRACE("(%p)\n", this);
2556 /* ?in_avail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHXZ */
2557 /* ?in_avail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JXZ */
2558 /* ?in_avail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHXZ */
2559 /* ?in_avail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JXZ */
2560 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_in_avail
, 4)
2561 streamsize __thiscall
basic_streambuf_wchar_in_avail(basic_streambuf_wchar
*this)
2565 TRACE("(%p)\n", this);
2567 ret
= basic_streambuf_wchar__Gnavail(this);
2568 return ret
? ret
: call_basic_streambuf_wchar_showmanyc(this);
2571 /* ?sputbackc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEG_W@Z */
2572 /* ?sputbackc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAG_W@Z */
2573 /* ?sputbackc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGG@Z */
2574 /* ?sputbackc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGG@Z */
2575 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputbackc
, 8)
2576 unsigned short __thiscall
basic_streambuf_wchar_sputbackc(basic_streambuf_wchar
*this, wchar_t ch
)
2578 TRACE("(%p %d)\n", this, ch
);
2579 if(*this->prpos
&& *this->prpos
>*this->prbuf
&& (*this->prpos
)[-1]==ch
) {
2585 return call_basic_streambuf_wchar_pbackfail(this, ch
);
2588 /* ?sputc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEG_W@Z */
2589 /* ?sputc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAG_W@Z */
2590 /* ?sputc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGG@Z */
2591 /* ?sputc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAHG@Z */
2592 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputc
, 8)
2593 unsigned short __thiscall
basic_streambuf_wchar_sputc(basic_streambuf_wchar
*this, wchar_t ch
)
2595 TRACE("(%p %d)\n", this, ch
);
2596 return basic_streambuf_wchar__Pnavail(this) ?
2597 (*basic_streambuf_wchar__Pninc(this) = ch
) :
2598 call_basic_streambuf_wchar_overflow(this, ch
);
2601 /* ?sungetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2602 /* ?sungetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2603 /* ?sungetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2604 /* ?sungetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2605 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sungetc
, 4)
2606 unsigned short __thiscall
basic_streambuf_wchar_sungetc(basic_streambuf_wchar
*this)
2608 TRACE("(%p)\n", this);
2609 if(*this->prpos
&& *this->prpos
>*this->prbuf
) {
2612 return **this->prpos
;
2615 return call_basic_streambuf_wchar_pbackfail(this, WEOF
);
2618 /* ?stossc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
2619 /* ?stossc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
2620 /* ?stossc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
2621 /* ?stossc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
2622 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_stossc
, 4)
2623 void __thiscall
basic_streambuf_wchar_stossc(basic_streambuf_wchar
*this)
2625 TRACE("(%p)\n", this);
2626 if(basic_streambuf_wchar__Gnavail(this))
2627 basic_streambuf_wchar__Gninc(this);
2629 call_basic_streambuf_wchar_uflow(this);
2632 /* ?sbumpc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2633 /* ?sbumpc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2634 /* ?sbumpc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2635 /* ?sbumpc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2636 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sbumpc
, 4)
2637 unsigned short __thiscall
basic_streambuf_wchar_sbumpc(basic_streambuf_wchar
*this)
2639 TRACE("(%p)\n", this);
2640 return basic_streambuf_wchar__Gnavail(this) ?
2641 *basic_streambuf_wchar__Gninc(this) : call_basic_streambuf_wchar_uflow(this);
2644 /* ?sgetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2645 /* ?sgetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2646 /* ?sgetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2647 /* ?sgetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2648 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sgetc
, 4)
2649 unsigned short __thiscall
basic_streambuf_wchar_sgetc(basic_streambuf_wchar
*this)
2651 TRACE("(%p)\n", this);
2652 return basic_streambuf_wchar__Gnavail(this) ?
2653 *basic_streambuf_wchar_gptr(this) : call_basic_streambuf_wchar_underflow(this);
2656 /* ?snextc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2657 /* ?snextc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2658 /* ?snextc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2659 /* ?snextc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2660 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_snextc
, 4)
2661 unsigned short __thiscall
basic_streambuf_wchar_snextc(basic_streambuf_wchar
*this)
2663 TRACE("(%p)\n", this);
2665 if(basic_streambuf_wchar__Gnavail(this) > 1)
2666 return *basic_streambuf_wchar__Gnpreinc(this);
2667 return basic_streambuf_wchar_sbumpc(this)==WEOF
?
2668 WEOF
: basic_streambuf_wchar_sgetc(this);
2671 /* ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHPB_WH@Z */
2672 /* ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEB_W_J@Z */
2673 /* ?xsputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHPBGH@Z */
2674 /* ?xsputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JPEBG_J@Z */
2675 #if STREAMSIZE_BITS == 64
2676 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsputn
, 16)
2678 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsputn
, 12)
2680 #if _MSVCP_VER >= 100
2681 #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))
2682 #elif _MSVCP_VER >= 80
2683 #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))
2685 #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))
2687 streamsize __thiscall
basic_streambuf_wchar_xsputn(basic_streambuf_wchar
*this, const wchar_t *ptr
, streamsize count
)
2689 streamsize copied
, chunk
;
2691 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
2693 for(copied
=0; copied
<count
;) {
2694 chunk
= basic_streambuf_wchar__Pnavail(this);
2695 if(chunk
> count
-copied
)
2696 chunk
= count
-copied
;
2699 memcpy(*this->pwpos
, ptr
+copied
, chunk
*sizeof(wchar_t));
2700 *this->pwpos
+= chunk
;
2701 *this->pwsize
-= chunk
;
2703 }else if(call_basic_streambuf_wchar_overflow(this, ptr
[copied
]) != WEOF
) {
2713 /* ?sputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHPB_WH@Z */
2714 /* ?sputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JPEB_W_J@Z */
2715 /* ?sputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHPBGH@Z */
2716 /* ?sputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JPEBG_J@Z */
2717 #if STREAMSIZE_BITS == 64
2718 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputn
, 16)
2720 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputn
, 12)
2722 streamsize __thiscall
basic_streambuf_wchar_sputn(basic_streambuf_wchar
*this, const wchar_t *ptr
, streamsize count
)
2724 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
2725 return call_basic_streambuf_wchar_xsputn(this, ptr
, count
);
2728 /* ?swap@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXAAV12@@Z */
2729 /* ?swap@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXAEAV12@@Z */
2730 /* ?swap@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXAAV12@@Z */
2731 /* ?swap@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXAAV12@@Z */
2732 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_swap
, 8)
2733 void __thiscall
basic_streambuf_wchar_swap(basic_streambuf_wchar
*this, basic_streambuf_wchar
*r
)
2735 basic_streambuf_wchar tmp
;
2737 TRACE("(%p %p)\n", this, r
);
2744 this->vtable
= tmp
.vtable
;
2745 tmp
.vtable
= r
->vtable
;
2749 /* ?_Stinit@?1??_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@23@@Z@4HA */
2750 /* ?_Stinit@?1??_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@23@@Z@4HA */
2751 int basic_filebuf_char__Init__Stinit
= 0;
2753 /* ?_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@12@@Z */
2754 /* ?_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@12@@Z */
2755 DEFINE_THISCALL_WRAPPER(basic_filebuf_char__Init
, 12)
2756 void __thiscall
basic_filebuf_char__Init(basic_filebuf_char
*this, FILE *file
, basic_filebuf__Initfl which
)
2758 TRACE("(%p %p %d)\n", this, file
, which
);
2761 this->wrotesome
= FALSE
;
2762 this->state
= basic_filebuf_char__Init__Stinit
;
2763 this->close
= (which
== INITFL_open
);
2766 basic_streambuf_char__Init_empty(&this->base
);
2768 basic_streambuf_char__Init(&this->base
, &file
->_base
, &file
->_ptr
,
2769 &file
->_cnt
, &file
->_base
, &file
->_ptr
, &file
->_cnt
);
2772 /* ?_Initcvt@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAEXPAV?$codecvt@DDH@2@@Z */
2773 /* ?_Initcvt@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXPEAV?$codecvt@DDH@2@@Z */
2774 DEFINE_THISCALL_WRAPPER(basic_filebuf_char__Initcvt_cvt
, 8)
2775 void __thiscall
basic_filebuf_char__Initcvt_cvt(basic_filebuf_char
*this, codecvt_char
*cvt
)
2777 TRACE("(%p %p)\n", this, cvt
);
2779 if(codecvt_base_always_noconv(&cvt
->base
)) {
2782 basic_streambuf_char__Init_empty(&this->base
);
2787 /* ?_Initcvt@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAEXXZ */
2788 /* ?_Initcvt@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXXZ */
2789 DEFINE_THISCALL_WRAPPER(basic_filebuf_char__Initcvt
, 4)
2790 void __thiscall
basic_filebuf_char__Initcvt(basic_filebuf_char
*this)
2792 codecvt_char
*cvt
= codecvt_char_use_facet(IOS_LOCALE(&this->base
));
2793 basic_filebuf_char__Initcvt_cvt( this, cvt
);
2796 /* ?_Endwrite@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAE_NXZ */
2797 /* ?_Endwrite@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAA_NXZ */
2798 DEFINE_THISCALL_WRAPPER(basic_filebuf_char__Endwrite
, 4)
2799 MSVCP_bool __thiscall
basic_filebuf_char__Endwrite(basic_filebuf_char
*this)
2801 TRACE("(%p)\n", this);
2803 if(!this->wrotesome
|| !this->cvt
)
2807 if(call_basic_streambuf_char_overflow(&this->base
, EOF
) == EOF
)
2811 /* TODO: check if we need a dynamic buffer here */
2816 ret
= codecvt_char_unshift(this->cvt
, &this->state
, buf
, buf
+sizeof(buf
), &next
);
2819 this->wrotesome
= FALSE
;
2821 case CODECVT_partial
:
2822 if(!fwrite(buf
, next
-buf
, 1, this->file
))
2827 case CODECVT_noconv
:
2828 if(call_basic_streambuf_char_overflow(&this->base
, EOF
) == EOF
)
2837 /* ?close@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@XZ */
2838 /* ?close@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@XZ */
2839 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_close
, 4)
2840 basic_filebuf_char
* __thiscall
basic_filebuf_char_close(basic_filebuf_char
*this)
2842 basic_filebuf_char
*ret
= this;
2844 TRACE("(%p)\n", this);
2849 /* TODO: handle exceptions */
2850 if(!basic_filebuf_char__Endwrite(this))
2852 if(fclose(this->file
))
2855 basic_filebuf_char__Init(this, NULL
, INITFL_close
);
2859 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
2860 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
2861 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_ctor_file
, 8)
2862 basic_filebuf_char
* __thiscall
basic_filebuf_char_ctor_file(basic_filebuf_char
*this, FILE *file
)
2864 TRACE("(%p %p)\n", this, file
);
2866 basic_streambuf_char_ctor(&this->base
);
2867 this->base
.vtable
= &MSVCP_basic_filebuf_char_vtable
;
2869 basic_filebuf_char__Init(this, file
, INITFL_new
);
2873 /* ??_F?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
2874 /* ??_F?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
2875 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_ctor
, 4)
2876 basic_filebuf_char
* __thiscall
basic_filebuf_char_ctor(basic_filebuf_char
*this)
2878 return basic_filebuf_char_ctor_file(this, NULL
);
2881 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAE@W4_Uninitialized@1@@Z */
2882 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
2883 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_ctor_uninitialized
, 8)
2884 basic_filebuf_char
* __thiscall
basic_filebuf_char_ctor_uninitialized(basic_filebuf_char
*this, int uninitialized
)
2886 TRACE("(%p %d)\n", this, uninitialized
);
2888 basic_streambuf_char_ctor(&this->base
);
2889 this->base
.vtable
= &MSVCP_basic_filebuf_char_vtable
;
2893 /* ??1?$basic_filebuf@DU?$char_traits@D@std@@@std@@UAE@XZ */
2894 /* ??1?$basic_filebuf@DU?$char_traits@D@std@@@std@@UEAA@XZ */
2895 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_dtor
, 4)
2896 void __thiscall
basic_filebuf_char_dtor(basic_filebuf_char
*this)
2898 TRACE("(%p)\n", this);
2901 basic_filebuf_char_close(this);
2902 basic_streambuf_char_dtor(&this->base
);
2905 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_vector_dtor
, 8)
2906 basic_filebuf_char
* __thiscall
basic_filebuf_char_vector_dtor(basic_filebuf_char
*this, unsigned int flags
)
2908 TRACE("(%p %x)\n", this, flags
);
2910 /* we have an array, with the number of elements stored before the first object */
2911 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
2913 for(i
=*ptr
-1; i
>=0; i
--)
2914 basic_filebuf_char_dtor(this+i
);
2915 MSVCRT_operator_delete(ptr
);
2917 basic_filebuf_char_dtor(this);
2919 MSVCRT_operator_delete(this);
2925 /* ?is_open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QBE_NXZ */
2926 /* ?is_open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
2927 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_is_open
, 4)
2928 MSVCP_bool __thiscall
basic_filebuf_char_is_open(const basic_filebuf_char
*this)
2930 TRACE("(%p)\n", this);
2931 return this->file
!= NULL
;
2934 /* ?_Fiopen@std@@YAPAU_iobuf@@PB_WHH@Z */
2935 /* ?_Fiopen@std@@YAPEAU_iobuf@@PEB_WHH@Z */
2936 FILE* __cdecl
_Fiopen_wchar(const wchar_t *name
, int mode
, int prot
)
2938 static const wchar_t rW
[] = {'r',0};
2939 static const struct {
2941 const wchar_t str
[4];
2942 const wchar_t str_bin
[4];
2944 {OPENMODE_out
, {'w',0}, {'w','b',0}},
2945 {OPENMODE_out
|OPENMODE_app
, {'a',0}, {'a','b',0}},
2946 {OPENMODE_app
, {'a',0}, {'a','b',0}},
2947 {OPENMODE_out
|OPENMODE_trunc
, {'w',0}, {'w','b',0}},
2948 {OPENMODE_in
, {'r',0}, {'r','b',0}},
2949 {OPENMODE_in
|OPENMODE_out
, {'r','+',0}, {'r','+','b',0}},
2950 {OPENMODE_in
|OPENMODE_out
|OPENMODE_trunc
, {'w','+',0}, {'w','+','b',0}},
2951 {OPENMODE_in
|OPENMODE_out
|OPENMODE_app
, {'a','+',0}, {'a','+','b',0}},
2952 {OPENMODE_in
|OPENMODE_app
, {'a','+',0}, {'a','+','b',0}}
2955 int real_mode
= mode
& ~(OPENMODE_ate
|OPENMODE__Nocreate
|OPENMODE__Noreplace
|OPENMODE_binary
);
2959 TRACE("(%s %d %d)\n", debugstr_w(name
), mode
, prot
);
2961 for(mode_idx
=0; mode_idx
<sizeof(str_mode
)/sizeof(str_mode
[0]); mode_idx
++)
2962 if(str_mode
[mode_idx
].mode
== real_mode
)
2964 if(mode_idx
== sizeof(str_mode
)/sizeof(str_mode
[0]))
2967 if((mode
& OPENMODE__Nocreate
) && !(f
= _wfopen(name
, rW
)))
2972 if((mode
& OPENMODE__Noreplace
) && (mode
& (OPENMODE_out
|OPENMODE_app
))
2973 && (f
= _wfopen(name
, rW
))) {
2978 #if _MSVCP_VER < 80 /* msvcp60 - msvcp71 are ignoring prot argument */
2982 f
= _wfsopen(name
, (mode
& OPENMODE_binary
) ? str_mode
[mode_idx
].str_bin
2983 : str_mode
[mode_idx
].str
, prot
);
2987 if((mode
& OPENMODE_ate
) && fseek(f
, 0, SEEK_END
)) {
2995 /* ?_Fiopen@std@@YAPAU_iobuf@@PBDHH@Z */
2996 /* ?_Fiopen@std@@YAPEAU_iobuf@@PEBDHH@Z */
2997 FILE* __cdecl
_Fiopen(const char *name
, int mode
, int prot
)
2999 wchar_t nameW
[FILENAME_MAX
];
3001 TRACE("(%s %d %d)\n", name
, mode
, prot
);
3003 if(mbstowcs_s(NULL
, nameW
, FILENAME_MAX
, name
, FILENAME_MAX
-1) != 0)
3005 return _Fiopen_wchar(nameW
, mode
, prot
);
3008 /* ?__Fiopen@std@@YAPAU_iobuf@@PBDH@Z */
3009 /* ?__Fiopen@std@@YAPEAU_iobuf@@PEBDH@Z */
3010 FILE* __cdecl
___Fiopen(const char *name
, int mode
)
3012 TRACE("(%p %d)\n", name
, mode
);
3013 return _Fiopen(name
, mode
, _SH_DENYNO
);
3016 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PB_WHH@Z */
3017 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEB_WHH@Z */
3018 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBGHH@Z */
3019 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBGHH@Z */
3020 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open_wchar
, 16)
3021 basic_filebuf_char
* __thiscall
basic_filebuf_char_open_wchar(basic_filebuf_char
*this, const wchar_t *name
, int mode
, int prot
)
3025 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
3027 if(basic_filebuf_char_is_open(this))
3030 if(!(f
= _Fiopen_wchar(name
, mode
, prot
)))
3033 basic_filebuf_char__Init(this, f
, INITFL_open
);
3034 basic_filebuf_char__Initcvt_cvt(this, codecvt_char_use_facet(IOS_LOCALE(&this->base
)));
3038 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PB_WI@Z */
3039 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEB_WI@Z */
3040 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBGI@Z */
3041 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBGI@Z */
3042 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open_wchar_mode
, 12)
3043 basic_filebuf_char
* __thiscall
basic_filebuf_char_open_wchar_mode(basic_filebuf_char
*this, const wchar_t *name
, unsigned int mode
)
3045 return basic_filebuf_char_open_wchar(this, name
, mode
, SH_DENYNO
);
3048 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDHH@Z */
3049 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDHH@Z */
3050 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open
, 16)
3051 basic_filebuf_char
* __thiscall
basic_filebuf_char_open(basic_filebuf_char
*this, const char *name
, int mode
, int prot
)
3053 wchar_t nameW
[FILENAME_MAX
];
3055 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
3057 if(mbstowcs_s(NULL
, nameW
, FILENAME_MAX
, name
, FILENAME_MAX
-1) != 0)
3059 return basic_filebuf_char_open_wchar(this, nameW
, mode
, prot
);
3062 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDF@Z */
3063 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDF@Z */
3064 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open_mode_old
, 12)
3065 basic_filebuf_char
* __thiscall
basic_filebuf_char_open_mode_old(basic_filebuf_char
*this, const char *name
, short mode
)
3067 TRACE("(%p %p %d)\n", this, name
, mode
);
3068 return basic_filebuf_char_open(this, name
, mode
, SH_DENYNO
);
3071 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDH@Z */
3072 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDH@Z */
3073 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDI@Z */
3074 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDI@Z */
3075 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open_mode
, 12)
3076 basic_filebuf_char
* __thiscall
basic_filebuf_char_open_mode(basic_filebuf_char
*this, const char *name
, unsigned int mode
)
3078 return basic_filebuf_char_open(this, name
, mode
, SH_DENYNO
);
3081 /* ?overflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHH@Z */
3082 /* ?overflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z */
3083 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_overflow
, 8)
3084 int __thiscall
basic_filebuf_char_overflow(basic_filebuf_char
*this, int c
)
3086 char buf
[8], *dyn_buf
;
3087 char ch
= c
, *to_next
;
3088 const char *from_next
;
3092 TRACE("(%p %d)\n", this, c
);
3094 if(!basic_filebuf_char_is_open(this))
3100 return fwrite(&ch
, sizeof(char), 1, this->file
) ? c
: EOF
;
3104 ret
= codecvt_char_out(this->cvt
, &this->state
, from_next
, &ch
+1,
3105 &from_next
, buf
, buf
+sizeof(buf
), &to_next
);
3108 case CODECVT_partial
:
3113 if(!fwrite(buf
, to_next
-buf
, 1, this->file
))
3115 if(ret
== CODECVT_partial
)
3118 case CODECVT_noconv
:
3119 return fwrite(&ch
, sizeof(char), 1, this->file
) ? c
: EOF
;
3127 max_size
= codecvt_base_max_length(&this->cvt
->base
);
3128 dyn_buf
= malloc(max_size
);
3132 ret
= codecvt_char_out(this->cvt
, &this->state
, from_next
, &ch
+1,
3133 &from_next
, dyn_buf
, dyn_buf
+max_size
, &to_next
);
3137 ret
= fwrite(dyn_buf
, to_next
-dyn_buf
, 1, this->file
);
3139 return ret
? c
: EOF
;
3140 case CODECVT_partial
:
3141 ERR("buffer should be big enough to store all output\n");
3149 /* ?pbackfail@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHH@Z */
3150 /* ?pbackfail@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z */
3151 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_pbackfail
, 8)
3152 int __thiscall
basic_filebuf_char_pbackfail(basic_filebuf_char
*this, int c
)
3154 TRACE("(%p %d)\n", this, c
);
3156 if(!basic_filebuf_char_is_open(this))
3159 if(basic_streambuf_char_gptr(&this->base
)>basic_streambuf_char_eback(&this->base
)
3160 && (c
==EOF
|| (int)(unsigned char)basic_streambuf_char_gptr(&this->base
)[-1]==c
)) {
3161 basic_streambuf_char__Gndec(&this->base
);
3162 return c
==EOF
? !c
: c
;
3163 }else if(c
!=EOF
&& !this->cvt
) {
3164 return ungetc(c
, this->file
);
3170 /* ?uflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
3171 /* ?uflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
3172 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_uflow
, 4)
3173 int __thiscall
basic_filebuf_char_uflow(basic_filebuf_char
*this)
3175 char ch
, buf
[128], *to_next
;
3176 const char *buf_next
;
3180 TRACE("(%p)\n", this);
3182 if(!basic_filebuf_char_is_open(this))
3185 if(basic_streambuf_char_gptr(&this->base
) < basic_streambuf_char_egptr(&this->base
))
3186 return (unsigned char)*basic_streambuf_char__Gninc(&this->base
);
3188 c
= fgetc(this->file
);
3189 if(!this->cvt
|| c
==EOF
)
3193 for(i
=0; i
< sizeof(buf
)/sizeof(buf
[0]); i
++) {
3196 switch(codecvt_char_in(this->cvt
, &this->state
, buf_next
,
3197 buf
+i
+1, &buf_next
, &ch
, &ch
+1, &to_next
)) {
3198 case CODECVT_partial
:
3200 if(to_next
== &ch
) {
3201 c
= fgetc(this->file
);
3207 for(j
= --i
; j
>= buf_next
-buf
; j
--)
3208 ungetc(buf
[j
], this->file
);
3210 case CODECVT_noconv
:
3211 return (unsigned char)buf
[0];
3217 FIXME("buffer is too small\n");
3221 /* ?underflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
3222 /* ?underflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
3223 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_underflow
, 4)
3224 int __thiscall
basic_filebuf_char_underflow(basic_filebuf_char
*this)
3228 TRACE("(%p)\n", this);
3230 if(basic_streambuf_char_gptr(&this->base
) < basic_streambuf_char_egptr(&this->base
))
3231 return (unsigned char)*basic_streambuf_char_gptr(&this->base
);
3233 ret
= call_basic_streambuf_char_uflow(&this->base
);
3235 ret
= call_basic_streambuf_char_pbackfail(&this->base
, ret
);
3239 /* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
3240 /* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
3241 /* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
3242 /* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
3243 #if STREAMOFF_BITS == 64
3244 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_seekoff
, 24)
3246 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_seekoff
, 20)
3248 fpos_int
* __thiscall
basic_filebuf_char_seekoff(basic_filebuf_char
*this,
3249 fpos_int
*ret
, streamoff off
, int way
, int mode
)
3253 TRACE("(%p %p %s %d %d)\n", this, ret
, wine_dbgstr_longlong(off
), way
, mode
);
3255 if(!basic_filebuf_char_is_open(this) || !basic_filebuf_char__Endwrite(this)
3256 || fseek(this->file
, off
, way
)) {
3263 fgetpos(this->file
, &pos
);
3266 ret
->state
= this->state
;
3270 /* ?seekpos@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
3271 /* ?seekpos@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
3272 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_seekpos
, 36)
3273 fpos_int
* __thiscall
basic_filebuf_char_seekpos(basic_filebuf_char
*this,
3274 fpos_int
*ret
, fpos_int pos
, int mode
)
3278 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_int(&pos
), mode
);
3280 if(!basic_filebuf_char_is_open(this) || !basic_filebuf_char__Endwrite(this)
3281 || fseek(this->file
, (LONG
)pos
.pos
, SEEK_SET
)
3282 || (pos
.off
&& fseek(this->file
, pos
.off
, SEEK_CUR
))) {
3289 fgetpos(this->file
, &fpos
);
3292 ret
->state
= this->state
;
3296 /* ?setbuf@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PADH@Z */
3297 /* ?setbuf@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PEAD_J@Z */
3298 #if STREAMSIZE_BITS == 64
3299 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_setbuf
, 16)
3301 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_setbuf
, 12)
3303 basic_streambuf_char
* __thiscall
basic_filebuf_char_setbuf(basic_filebuf_char
*this, char *buf
, streamsize count
)
3305 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
3307 if(!basic_filebuf_char_is_open(this))
3310 if(setvbuf(this->file
, buf
, (buf
==NULL
&& count
==0) ? _IONBF
: _IOFBF
, count
))
3313 basic_filebuf_char__Init(this, this->file
, INITFL_open
);
3317 /* ?sync@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
3318 /* ?sync@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
3319 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_sync
, 4)
3320 int __thiscall
basic_filebuf_char_sync(basic_filebuf_char
*this)
3322 TRACE("(%p)\n", this);
3324 if(!basic_filebuf_char_is_open(this))
3327 if(call_basic_streambuf_char_overflow(&this->base
, EOF
) == EOF
)
3329 return fflush(this->file
);
3332 /* ?imbue@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEXABVlocale@2@@Z */
3333 /* ?imbue@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAXAEBVlocale@2@@Z */
3334 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_imbue
, 8)
3335 void __thiscall
basic_filebuf_char_imbue(basic_filebuf_char
*this, const locale
*loc
)
3337 TRACE("(%p %p)\n", this, loc
);
3338 basic_filebuf_char__Initcvt_cvt(this, codecvt_char_use_facet(loc
));
3341 /* ?_Stinit@?1??_Init@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@23@@Z@4HA */
3342 /* ?_Stinit@?1??_Init@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@23@@Z@4HA */
3343 int basic_filebuf_wchar__Init__Stinit
= 0;
3345 /* ?_Stinit@?1??_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@23@@Z@4HA */
3346 /* ?_Stinit@?1??_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@23@@Z@4HA */
3347 int basic_filebuf_short__Init__Stinit
= 0;
3349 /* ?_Init@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@12@@Z */
3350 /* ?_Init@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@12@@Z */
3351 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar__Init
, 12)
3352 void __thiscall
basic_filebuf_wchar__Init(basic_filebuf_wchar
*this, FILE *file
, basic_filebuf__Initfl which
)
3354 TRACE("(%p %p %d)\n", this, file
, which
);
3357 this->wrotesome
= FALSE
;
3358 this->state
= basic_filebuf_wchar__Init__Stinit
;
3359 this->close
= (which
== INITFL_open
);
3362 basic_streambuf_wchar__Init_empty(&this->base
);
3365 /* ?_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@12@@Z */
3366 /* ?_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@12@@Z */
3367 DEFINE_THISCALL_WRAPPER(basic_filebuf_short__Init
, 12)
3368 void __thiscall
basic_filebuf_short__Init(basic_filebuf_wchar
*this, FILE *file
, basic_filebuf__Initfl which
)
3370 TRACE("(%p %p %d)\n", this, file
, which
);
3373 this->wrotesome
= FALSE
;
3374 this->state
= basic_filebuf_short__Init__Stinit
;
3375 this->close
= (which
== INITFL_open
);
3378 basic_streambuf_wchar__Init_empty(&this->base
);
3381 /* ?_Initcvt@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IAEXPAV?$codecvt@_WDH@2@@Z */
3382 /* ?_Initcvt@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEAV?$codecvt@_WDH@2@@Z */
3383 /* ?_Initcvt@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAEXPAV?$codecvt@GDH@2@@Z */
3384 /* ?_Initcvt@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAAXPEAV?$codecvt@GDH@2@@Z */
3385 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar__Initcvt_cvt
, 8)
3386 void __thiscall
basic_filebuf_wchar__Initcvt_cvt(basic_filebuf_wchar
*this, codecvt_wchar
*cvt
)
3388 TRACE("(%p %p)\n", this, cvt
);
3390 if(codecvt_base_always_noconv(&cvt
->base
)) {
3393 basic_streambuf_wchar__Init_empty(&this->base
);
3398 /* ?_Initcvt@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAEXXZ */
3399 /* ?_Initcvt@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAAXXZ */
3400 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar__Initcvt
, 4)
3401 void __thiscall
basic_filebuf_wchar__Initcvt(basic_filebuf_wchar
*this)
3403 codecvt_wchar
*cvt
= codecvt_wchar_use_facet(IOS_LOCALE(&this->base
));
3404 basic_filebuf_wchar__Initcvt_cvt( this, cvt
);
3407 /* ?_Endwrite@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IAE_NXZ */
3408 /* ?_Endwrite@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IEAA_NXZ */
3409 /* ?_Endwrite@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAE_NXZ */
3410 /* ?_Endwrite@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAA_NXZ */
3411 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar__Endwrite
, 4)
3412 MSVCP_bool __thiscall
basic_filebuf_wchar__Endwrite(basic_filebuf_wchar
*this)
3414 TRACE("(%p)\n", this);
3416 if(!this->wrotesome
|| !this->cvt
)
3419 if(call_basic_streambuf_wchar_overflow(&this->base
, WEOF
) == WEOF
)
3423 /* TODO: check if we need a dynamic buffer here */
3428 ret
= codecvt_wchar_unshift(this->cvt
, &this->state
, buf
, buf
+sizeof(buf
), &next
);
3431 this->wrotesome
= FALSE
;
3433 case CODECVT_partial
:
3434 if(!fwrite(buf
, next
-buf
, 1, this->file
))
3439 case CODECVT_noconv
:
3440 if(call_basic_streambuf_wchar_overflow(&this->base
, WEOF
) == WEOF
)
3449 /* ?close@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@XZ */
3450 /* ?close@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@XZ */
3451 /* ?close@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@XZ */
3452 /* ?close@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@XZ */
3453 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_close
, 4)
3454 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_close(basic_filebuf_wchar
*this)
3456 basic_filebuf_wchar
*ret
= this;
3458 TRACE("(%p)\n", this);
3463 /* TODO: handle exceptions */
3464 if(!basic_filebuf_wchar__Endwrite(this))
3466 if(fclose(this->file
))
3469 basic_filebuf_wchar__Init(this, NULL
, INITFL_close
);
3473 /* ??0?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
3474 /* ??0?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
3475 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_ctor_file
, 8)
3476 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_ctor_file(basic_filebuf_wchar
*this, FILE *file
)
3478 TRACE("(%p %p)\n", this, file
);
3480 basic_streambuf_wchar_ctor(&this->base
);
3481 this->base
.vtable
= &MSVCP_basic_filebuf_wchar_vtable
;
3483 basic_filebuf_wchar__Init(this, file
, INITFL_new
);
3487 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
3488 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
3489 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_ctor_file
, 8)
3490 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_ctor_file(basic_filebuf_wchar
*this, FILE *file
)
3492 TRACE("(%p %p)\n", this, file
);
3494 basic_streambuf_short_ctor(&this->base
);
3495 this->base
.vtable
= &MSVCP_basic_filebuf_short_vtable
;
3497 basic_filebuf_short__Init(this, file
, INITFL_new
);
3501 /* ??_F?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
3502 /* ??_F?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
3503 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_ctor
, 4)
3504 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_ctor(basic_filebuf_wchar
*this)
3506 return basic_filebuf_wchar_ctor_file(this, NULL
);
3509 /* ??_F?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
3510 /* ??_F?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
3511 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_ctor
, 4)
3512 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_ctor(basic_filebuf_wchar
*this)
3514 return basic_filebuf_short_ctor_file(this, NULL
);
3517 /* ??0?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAE@W4_Uninitialized@1@@Z */
3518 /* ??0?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
3519 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_ctor_uninitialized
, 8)
3520 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_ctor_uninitialized(basic_filebuf_wchar
*this, int uninitialized
)
3522 TRACE("(%p %d)\n", this, uninitialized
);
3524 basic_streambuf_wchar_ctor(&this->base
);
3525 this->base
.vtable
= &MSVCP_basic_filebuf_wchar_vtable
;
3529 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAE@W4_Uninitialized@1@@Z */
3530 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
3531 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_ctor_uninitialized
, 8)
3532 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_ctor_uninitialized(basic_filebuf_wchar
*this, int uninitialized
)
3534 TRACE("(%p %d)\n", this, uninitialized
);
3536 basic_streambuf_short_ctor(&this->base
);
3537 this->base
.vtable
= &MSVCP_basic_filebuf_short_vtable
;
3541 /* ??1?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
3542 /* ??1?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
3543 /* ??1?$basic_filebuf@GU?$char_traits@G@std@@@std@@UAE@XZ */
3544 /* ??1?$basic_filebuf@GU?$char_traits@G@std@@@std@@UEAA@XZ */
3545 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_dtor
, 4)
3546 void __thiscall
basic_filebuf_wchar_dtor(basic_filebuf_wchar
*this)
3548 TRACE("(%p)\n", this);
3551 basic_filebuf_wchar_close(this);
3552 basic_streambuf_wchar_dtor(&this->base
);
3555 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_vector_dtor
, 8)
3556 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_vector_dtor(basic_filebuf_wchar
*this, unsigned int flags
)
3558 TRACE("(%p %x)\n", this, flags
);
3560 /* we have an array, with the number of elements stored before the first object */
3561 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
3563 for(i
=*ptr
-1; i
>=0; i
--)
3564 basic_filebuf_wchar_dtor(this+i
);
3565 MSVCRT_operator_delete(ptr
);
3567 basic_filebuf_wchar_dtor(this);
3569 MSVCRT_operator_delete(this);
3575 /* ?is_open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
3576 /* ?is_open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
3577 /* ?is_open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QBE_NXZ */
3578 /* ?is_open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
3579 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_is_open
, 4)
3580 MSVCP_bool __thiscall
basic_filebuf_wchar_is_open(const basic_filebuf_wchar
*this)
3582 TRACE("(%p)\n", this);
3583 return this->file
!= NULL
;
3586 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PB_WHH@Z */
3587 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEB_WHH@Z */
3588 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBGHH@Z */
3589 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBGHH@Z */
3590 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open_wchar
, 16)
3591 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_open_wchar(basic_filebuf_wchar
*this, const wchar_t *name
, int mode
, int prot
)
3595 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
3597 if(basic_filebuf_wchar_is_open(this))
3600 if(!(f
= _Fiopen_wchar(name
, mode
, prot
)))
3603 basic_filebuf_wchar__Init(this, f
, INITFL_open
);
3604 basic_filebuf_wchar__Initcvt_cvt(this, codecvt_wchar_use_facet(IOS_LOCALE(&this->base
)));
3608 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PB_WHH@Z */
3609 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEB_WHH@Z */
3610 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBGHH@Z */
3611 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBGHH@Z */
3612 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_open_wchar
, 16)
3613 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_open_wchar(basic_filebuf_wchar
*this, const wchar_t *name
, int mode
, int prot
)
3617 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
3619 if(basic_filebuf_wchar_is_open(this))
3622 if(!(f
= _Fiopen_wchar(name
, mode
, prot
)))
3625 basic_filebuf_short__Init(this, f
, INITFL_open
);
3626 basic_filebuf_wchar__Initcvt_cvt(this, codecvt_short_use_facet(IOS_LOCALE(&this->base
)));
3630 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PB_WI@Z */
3631 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEB_WI@Z */
3632 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBGI@Z */
3633 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBGI@Z */
3634 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open_wchar_mode
, 12)
3635 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_open_wchar_mode(basic_filebuf_wchar
*this, const wchar_t *name
, unsigned int mode
)
3637 return basic_filebuf_wchar_open_wchar(this, name
, mode
, SH_DENYNO
);
3640 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PB_WI@Z */
3641 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEB_WI@Z */
3642 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBGI@Z */
3643 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBGI@Z */
3644 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_open_wchar_mode
, 12)
3645 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_open_wchar_mode(basic_filebuf_wchar
*this, const wchar_t *name
, unsigned int mode
)
3647 return basic_filebuf_short_open_wchar(this, name
, mode
, SH_DENYNO
);
3650 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBDHH@Z */
3651 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBDHH@Z */
3652 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open
, 16)
3653 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_open(basic_filebuf_wchar
*this, const char *name
, int mode
, int prot
)
3655 wchar_t nameW
[FILENAME_MAX
];
3657 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
3659 if(mbstowcs_s(NULL
, nameW
, FILENAME_MAX
, name
, FILENAME_MAX
-1) != 0)
3661 return basic_filebuf_wchar_open_wchar(this, nameW
, mode
, prot
);
3664 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDHH@Z */
3665 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDHH@Z */
3666 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_open
, 16)
3667 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_open(basic_filebuf_wchar
*this, const char *name
, int mode
, int prot
)
3669 wchar_t nameW
[FILENAME_MAX
];
3671 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
3673 if(mbstowcs_s(NULL
, nameW
, FILENAME_MAX
, name
, FILENAME_MAX
-1) != 0)
3675 return basic_filebuf_short_open_wchar(this, nameW
, mode
, prot
);
3678 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDF@Z */
3679 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDF@Z */
3680 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open_mode_old
, 12)
3681 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_open_mode_old(basic_filebuf_wchar
*this, const char *name
, short mode
)
3683 TRACE("(%p %p %d)\n", this, name
, mode
);
3684 return basic_filebuf_wchar_open(this, name
, mode
, SH_DENYNO
);
3687 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDH@Z */
3688 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDH@Z */
3689 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBDI@Z */
3690 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBDI@Z */
3691 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open_mode
, 12)
3692 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_open_mode(basic_filebuf_wchar
*this, const char *name
, unsigned int mode
)
3694 return basic_filebuf_wchar_open(this, name
, mode
, SH_DENYNO
);
3697 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDI@Z */
3698 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDI@Z */
3699 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_open_mode
, 12)
3700 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_open_mode(basic_filebuf_wchar
*this, const char *name
, unsigned int mode
)
3702 return basic_filebuf_short_open(this, name
, mode
, SH_DENYNO
);
3705 /* ?overflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
3706 /* ?overflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
3707 /* ?overflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
3708 /* ?overflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
3709 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_overflow
, 8)
3710 unsigned short __thiscall
basic_filebuf_wchar_overflow(basic_filebuf_wchar
*this, unsigned short c
)
3712 char buf
[8], *dyn_buf
, *to_next
;
3714 const wchar_t *from_next
;
3719 TRACE("(%p %d)\n", this, c
);
3721 if(!basic_filebuf_wchar_is_open(this))
3727 return fwrite(&ch
, sizeof(wchar_t), 1, this->file
) ? c
: WEOF
;
3731 ret
= codecvt_wchar_out(this->cvt
, &this->state
, from_next
, &ch
+1,
3732 &from_next
, buf
, buf
+sizeof(buf
), &to_next
);
3735 case CODECVT_partial
:
3740 if(!fwrite(buf
, to_next
-buf
, 1, this->file
))
3742 if(ret
== CODECVT_partial
)
3745 case CODECVT_noconv
:
3746 return fwrite(&ch
, sizeof(wchar_t), 1, this->file
) ? c
: WEOF
;
3754 max_size
= codecvt_base_max_length(&this->cvt
->base
);
3755 dyn_buf
= malloc(max_size
);
3759 ret
= codecvt_wchar_out(this->cvt
, &this->state
, from_next
, &ch
+1,
3760 &from_next
, dyn_buf
, dyn_buf
+max_size
, &to_next
);
3764 ret
= fwrite(dyn_buf
, to_next
-dyn_buf
, 1, this->file
);
3766 return ret
? c
: WEOF
;
3767 case CODECVT_partial
:
3768 ERR("buffer should be big enough to store all output\n");
3776 /* ?pbackfail@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
3777 /* ?pbackfail@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
3778 /* ?pbackfail@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
3779 /* ?pbackfail@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
3780 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_pbackfail
, 8)
3781 unsigned short __thiscall
basic_filebuf_wchar_pbackfail(basic_filebuf_wchar
*this, unsigned short c
)
3783 TRACE("(%p %d)\n", this, c
);
3785 if(!basic_filebuf_wchar_is_open(this))
3788 if(basic_streambuf_wchar_gptr(&this->base
)>basic_streambuf_wchar_eback(&this->base
)
3789 && (c
==WEOF
|| basic_streambuf_wchar_gptr(&this->base
)[-1]==c
)) {
3790 basic_streambuf_wchar__Gndec(&this->base
);
3791 return c
==WEOF
? !c
: c
;
3792 }else if(c
!=WEOF
&& !this->cvt
) {
3793 return ungetwc(c
, this->file
);
3794 }else if(c
!=WEOF
&& basic_streambuf_wchar_gptr(&this->base
)!=&this->putback
) {
3796 basic_streambuf_wchar_setg(&this->base
, &this->putback
, &this->putback
, &this->putback
+1);
3803 /* ?uflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
3804 /* ?uflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
3805 /* ?uflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
3806 /* ?uflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
3807 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_uflow
, 4)
3808 unsigned short __thiscall
basic_filebuf_wchar_uflow(basic_filebuf_wchar
*this)
3810 wchar_t ch
, *to_next
;
3812 const char *buf_next
;
3816 TRACE("(%p)\n", this);
3818 if(!basic_filebuf_wchar_is_open(this))
3821 if(basic_streambuf_wchar_gptr(&this->base
) < basic_streambuf_wchar_egptr(&this->base
))
3822 return *basic_streambuf_wchar__Gninc(&this->base
);
3825 return fgetwc(this->file
);
3828 for(i
=0; i
< sizeof(buf
)/sizeof(buf
[0]); i
++) {
3829 if((c
= fgetc(this->file
)) == EOF
)
3833 switch(codecvt_wchar_in(this->cvt
, &this->state
, buf_next
,
3834 buf
+i
+1, &buf_next
, &ch
, &ch
+1, &to_next
)) {
3835 case CODECVT_partial
:
3840 for(j
= --i
; j
>= buf_next
-buf
; j
--)
3841 ungetc(buf
[j
], this->file
);
3843 case CODECVT_noconv
:
3844 if(i
+1 < sizeof(wchar_t))
3847 memcpy(&ch
, buf
, sizeof(wchar_t));
3854 FIXME("buffer is too small\n");
3858 /* ?underflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
3859 /* ?underflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
3860 /* ?underflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
3861 /* ?underflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
3862 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_underflow
, 4)
3863 unsigned short __thiscall
basic_filebuf_wchar_underflow(basic_filebuf_wchar
*this)
3867 TRACE("(%p)\n", this);
3869 if(basic_streambuf_wchar_gptr(&this->base
) < basic_streambuf_wchar_egptr(&this->base
))
3870 return *basic_streambuf_wchar_gptr(&this->base
);
3872 ret
= call_basic_streambuf_wchar_uflow(&this->base
);
3874 ret
= call_basic_streambuf_wchar_pbackfail(&this->base
, ret
);
3878 /* ?seekoff@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
3879 /* ?seekoff@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
3880 /* ?seekoff@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
3881 /* ?seekoff@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
3882 /* ?seekoff@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
3883 /* ?seekoff@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
3884 #if STREAMOFF_BITS == 64
3885 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_seekoff
, 24)
3887 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_seekoff
, 20)
3889 fpos_int
* __thiscall
basic_filebuf_wchar_seekoff(basic_filebuf_wchar
*this,
3890 fpos_int
*ret
, streamoff off
, int way
, int mode
)
3894 TRACE("(%p %p %s %d %d)\n", this, ret
, wine_dbgstr_longlong(off
), way
, mode
);
3896 if(basic_streambuf_wchar_gptr(&this->base
) == &this->putback
) {
3897 if(way
== SEEKDIR_cur
)
3898 off
-= sizeof(wchar_t);
3900 basic_streambuf_wchar_setg(&this->base
, &this->putback
, &this->putback
+1, &this->putback
+1);
3903 if(!basic_filebuf_wchar_is_open(this) || !basic_filebuf_wchar__Endwrite(this)
3904 || fseek(this->file
, off
, way
)) {
3911 fgetpos(this->file
, &pos
);
3914 ret
->state
= this->state
;
3918 /* ?seekpos@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
3919 /* ?seekpos@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
3920 /* ?seekpos@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
3921 /* ?seekpos@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
3922 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_seekpos
, 36)
3923 fpos_int
* __thiscall
basic_filebuf_wchar_seekpos(basic_filebuf_wchar
*this,
3924 fpos_int
*ret
, fpos_int pos
, int mode
)
3928 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_int(&pos
), mode
);
3930 if(!basic_filebuf_wchar_is_open(this) || !basic_filebuf_wchar__Endwrite(this)
3931 || fseek(this->file
, (LONG
)pos
.pos
, SEEK_SET
)
3932 || (pos
.off
&& fseek(this->file
, pos
.off
, SEEK_CUR
))) {
3939 if(basic_streambuf_wchar_gptr(&this->base
) == &this->putback
)
3940 basic_streambuf_wchar_setg(&this->base
, &this->putback
, &this->putback
+1, &this->putback
+1);
3942 fgetpos(this->file
, &fpos
);
3945 ret
->state
= this->state
;
3949 /* ?setbuf@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PA_WH@Z */
3950 /* ?setbuf@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PEA_W_J@Z */
3951 #if STREAMSIZE_BITS == 64
3952 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_setbuf
, 16)
3954 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_setbuf
, 12)
3956 basic_streambuf_wchar
* __thiscall
basic_filebuf_wchar_setbuf(basic_filebuf_wchar
*this, wchar_t *buf
, streamsize count
)
3958 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
3960 if(!basic_filebuf_wchar_is_open(this))
3963 if(setvbuf(this->file
, (char*)buf
, (buf
==NULL
&& count
==0) ? _IONBF
: _IOFBF
, count
*sizeof(wchar_t)))
3966 basic_filebuf_wchar__Init(this, this->file
, INITFL_open
);
3970 /* ?setbuf@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PAGH@Z */
3971 /* ?setbuf@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PEAG_J@Z */
3972 #if STREAMSIZE_BITS == 64
3973 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_setbuf
, 16)
3975 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_setbuf
, 12)
3977 basic_streambuf_wchar
* __thiscall
basic_filebuf_short_setbuf(basic_filebuf_wchar
*this, wchar_t *buf
, streamsize count
)
3979 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
3981 if(!basic_filebuf_wchar_is_open(this))
3984 if(setvbuf(this->file
, (char*)buf
, (buf
==NULL
&& count
==0) ? _IONBF
: _IOFBF
, count
*sizeof(wchar_t)))
3987 basic_filebuf_short__Init(this, this->file
, INITFL_open
);
3991 /* ?sync@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEHXZ */
3992 /* ?sync@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAHXZ */
3993 /* ?sync@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEHXZ */
3994 /* ?sync@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAHXZ */
3995 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_sync
, 4)
3996 int __thiscall
basic_filebuf_wchar_sync(basic_filebuf_wchar
*this)
3998 TRACE("(%p)\n", this);
4000 if(!basic_filebuf_wchar_is_open(this))
4003 if(call_basic_streambuf_wchar_overflow(&this->base
, WEOF
) == WEOF
)
4005 return fflush(this->file
);
4008 /* ?imbue@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEXABVlocale@2@@Z */
4009 /* ?imbue@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAXAEBVlocale@2@@Z */
4010 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_imbue
, 8)
4011 void __thiscall
basic_filebuf_wchar_imbue(basic_filebuf_wchar
*this, const locale
*loc
)
4013 TRACE("(%p %p)\n", this, loc
);
4014 basic_filebuf_wchar__Initcvt_cvt(this, codecvt_wchar_use_facet(loc
));
4017 /* ?imbue@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEXABVlocale@2@@Z */
4018 /* ?imbue@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAXAEBVlocale@2@@Z */
4019 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_imbue
, 8)
4020 void __thiscall
basic_filebuf_short_imbue(basic_filebuf_wchar
*this, const locale
*loc
)
4022 TRACE("(%p %p)\n", this, loc
);
4023 basic_filebuf_wchar__Initcvt_cvt(this, codecvt_short_use_facet(loc
));
4026 /* ?_Getstate@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEHH@Z */
4027 /* ?_Getstate@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAHH@Z */
4028 /* ?_Mode@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEHH@Z */
4029 /* ?_Mode@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAHH@Z */
4030 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char__Getstate
, 8)
4031 int __thiscall
basic_stringbuf_char__Getstate(basic_stringbuf_char
*this, IOSB_openmode mode
)
4035 if(!(mode
& OPENMODE_in
))
4036 state
|= STRINGBUF_no_read
;
4038 if(!(mode
& OPENMODE_out
))
4039 state
|= STRINGBUF_no_write
;
4041 if(mode
& OPENMODE_ate
)
4042 state
|= STRINGBUF_at_end
;
4044 if(mode
& OPENMODE_app
)
4045 state
|= STRINGBUF_append
;
4050 /* ?_Init@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXPBDIH@Z */
4051 /* ?_Init@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAXPEBD_KH@Z */
4052 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char__Init
, 16)
4053 void __thiscall
basic_stringbuf_char__Init(basic_stringbuf_char
*this, const char *str
, MSVCP_size_t count
, int state
)
4055 TRACE("(%p, %p, %ld, %d)\n", this, str
, count
, state
);
4057 basic_streambuf_char__Init_empty(&this->base
);
4059 this->state
= state
;
4060 this->seekhigh
= NULL
;
4063 char *buf
= MSVCRT_operator_new(count
);
4065 ERR("Out of memory\n");
4066 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
4069 memcpy(buf
, str
, count
);
4070 this->seekhigh
= buf
+ count
;
4072 this->state
|= STRINGBUF_allocated
;
4074 if(!(state
& STRINGBUF_no_read
))
4075 basic_streambuf_char_setg(&this->base
, buf
, buf
, buf
+ count
);
4077 if(!(state
& STRINGBUF_no_write
)) {
4078 basic_streambuf_char_setp_next(&this->base
, buf
, (state
& STRINGBUF_at_end
) ? buf
+ count
: buf
, buf
+ count
);
4080 if(!basic_streambuf_char_gptr(&this->base
))
4081 basic_streambuf_char_setg(&this->base
, buf
, 0, buf
);
4086 /* ??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 */
4087 /* ??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 */
4088 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_ctor_str
, 12)
4089 basic_stringbuf_char
* __thiscall
basic_stringbuf_char_ctor_str(basic_stringbuf_char
*this,
4090 const basic_string_char
*str
, IOSB_openmode mode
)
4092 TRACE("(%p %p %d)\n", this, str
, mode
);
4094 basic_streambuf_char_ctor(&this->base
);
4095 this->base
.vtable
= &MSVCP_basic_stringbuf_char_vtable
;
4097 basic_stringbuf_char__Init(this, MSVCP_basic_string_char_c_str(str
),
4098 str
->size
, basic_stringbuf_char__Getstate(this, mode
));
4102 /* ??0?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
4103 /* ??0?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
4104 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_ctor_mode
, 8)
4105 basic_stringbuf_char
* __thiscall
basic_stringbuf_char_ctor_mode(
4106 basic_stringbuf_char
*this, IOSB_openmode mode
)
4108 TRACE("(%p %d)\n", this, mode
);
4110 basic_streambuf_char_ctor(&this->base
);
4111 this->base
.vtable
= &MSVCP_basic_stringbuf_char_vtable
;
4113 basic_stringbuf_char__Init(this, NULL
, 0, basic_stringbuf_char__Getstate(this, mode
));
4117 /* ??_F?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
4118 /* ??_F?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
4119 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_ctor
, 4)
4120 basic_stringbuf_char
* __thiscall
basic_stringbuf_char_ctor(basic_stringbuf_char
*this)
4122 return basic_stringbuf_char_ctor_mode(this, OPENMODE_in
|OPENMODE_out
);
4125 /* ?_Tidy@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXXZ */
4126 /* ?_Tidy@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAXXZ */
4127 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char__Tidy
, 4)
4128 void __thiscall
basic_stringbuf_char__Tidy(basic_stringbuf_char
*this)
4130 TRACE("(%p)\n", this);
4132 if(this->state
& STRINGBUF_allocated
) {
4133 MSVCRT_operator_delete(basic_streambuf_char_eback(&this->base
));
4134 this->seekhigh
= NULL
;
4135 this->state
&= ~STRINGBUF_allocated
;
4138 basic_streambuf_char__Init_empty(&this->base
);
4141 /* ??1?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
4142 /* ??1?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
4143 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_dtor
, 4)
4144 void __thiscall
basic_stringbuf_char_dtor(basic_stringbuf_char
*this)
4146 TRACE("(%p)\n", this);
4148 basic_stringbuf_char__Tidy(this);
4149 basic_streambuf_char_dtor(&this->base
);
4152 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_vector_dtor
, 8)
4153 basic_stringbuf_char
* __thiscall
basic_stringbuf_char_vector_dtor(basic_stringbuf_char
*this, unsigned int flags
)
4155 TRACE("(%p %x)\n", this, flags
);
4158 /* we have an array, with the number of elements stored before the first object */
4159 INT_PTR i
, *ptr
= (INT_PTR
*) this - 1;
4161 for (i
= *ptr
- 1; i
>= 0; i
--)
4162 basic_stringbuf_char_dtor(this+i
);
4164 MSVCRT_operator_delete(ptr
);
4166 basic_stringbuf_char_dtor(this);
4169 MSVCRT_operator_delete(this);
4175 /* ?overflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHH@Z */
4176 /* ?overflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAAHH@Z */
4177 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_overflow
, 8)
4178 int __thiscall
basic_stringbuf_char_overflow(basic_stringbuf_char
*this, int meta
)
4180 MSVCP_size_t oldsize
, size
;
4183 TRACE("(%p %x)\n", this, meta
);
4187 if(this->state
& STRINGBUF_no_write
)
4190 ptr
= basic_streambuf_char_pptr(&this->base
);
4191 if((this->state
&STRINGBUF_append
) && ptr
<this->seekhigh
)
4192 basic_streambuf_char_setp_next(&this->base
, basic_streambuf_char_pbase(&this->base
),
4193 this->seekhigh
, basic_streambuf_char_epptr(&this->base
));
4195 if(ptr
&& ptr
<basic_streambuf_char_epptr(&this->base
))
4196 return (unsigned char)(*basic_streambuf_char__Pninc(&this->base
) = meta
);
4198 oldsize
= (ptr
? basic_streambuf_char_epptr(&this->base
)-basic_streambuf_char_eback(&this->base
): 0);
4201 buf
= MSVCRT_operator_new(size
);
4203 ERR("Out of memory\n");
4204 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
4208 this->seekhigh
= buf
;
4209 basic_streambuf_char_setp(&this->base
, buf
, buf
+size
);
4210 if(this->state
& STRINGBUF_no_read
)
4211 basic_streambuf_char_setg(&this->base
, buf
, NULL
, buf
);
4213 basic_streambuf_char_setg(&this->base
, buf
, buf
, buf
+1);
4215 this->state
|= STRINGBUF_allocated
;
4217 ptr
= basic_streambuf_char_eback(&this->base
);
4218 memcpy(buf
, ptr
, oldsize
);
4220 this->seekhigh
= buf
+(this->seekhigh
-ptr
);
4221 basic_streambuf_char_setp_next(&this->base
, buf
,
4222 buf
+(basic_streambuf_char_pptr(&this->base
)-ptr
), buf
+size
);
4223 if(this->state
& STRINGBUF_no_read
)
4224 basic_streambuf_char_setg(&this->base
, buf
, NULL
, buf
);
4226 basic_streambuf_char_setg(&this->base
, buf
,
4227 buf
+(basic_streambuf_char_gptr(&this->base
)-ptr
),
4228 basic_streambuf_char_pptr(&this->base
)+1);
4230 MSVCRT_operator_delete(ptr
);
4233 return (unsigned char)(*basic_streambuf_char__Pninc(&this->base
) = meta
);
4236 /* ?pbackfail@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHH@Z */
4237 /* ?pbackfail@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAAHH@Z */
4238 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_pbackfail
, 8)
4239 int __thiscall
basic_stringbuf_char_pbackfail(basic_stringbuf_char
*this, int c
)
4243 TRACE("(%p %x)\n", this, c
);
4245 cur
= basic_streambuf_char_gptr(&this->base
);
4246 if(!cur
|| cur
==basic_streambuf_char_eback(&this->base
)
4247 || (c
!=EOF
&& c
!=cur
[-1] && this->state
&STRINGBUF_no_write
))
4252 basic_streambuf_char_gbump(&this->base
, -1);
4253 return c
==EOF
? !EOF
: c
;
4256 /* ?underflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHXZ */
4257 /* ?underflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAAHXZ */
4258 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_underflow
, 4)
4259 int __thiscall
basic_stringbuf_char_underflow(basic_stringbuf_char
*this)
4263 TRACE("(%p)\n", this);
4265 cur
= basic_streambuf_char_gptr(&this->base
);
4266 if(!cur
|| this->state
&STRINGBUF_no_read
)
4269 ptr
= basic_streambuf_char_pptr(&this->base
);
4270 if(this->seekhigh
< ptr
)
4271 this->seekhigh
= ptr
;
4273 ptr
= basic_streambuf_char_egptr(&this->base
);
4274 if(this->seekhigh
> ptr
)
4275 basic_streambuf_char_setg(&this->base
, basic_streambuf_char_eback(&this->base
), cur
, this->seekhigh
);
4277 if(cur
< this->seekhigh
)
4278 return (unsigned char)*cur
;
4282 /* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
4283 /* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
4284 /* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAE?AV?$fpos@H@2@JHH@Z */
4285 /* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
4286 #if STREAMOFF_BITS == 64
4287 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_seekoff
, 24)
4289 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_seekoff
, 20)
4291 fpos_int
* __thiscall
basic_stringbuf_char_seekoff(basic_stringbuf_char
*this,
4292 fpos_int
*ret
, streamoff off
, int way
, int mode
)
4294 char *beg
, *cur_r
, *cur_w
;
4296 TRACE("(%p %p %s %d %d)\n", this, ret
, wine_dbgstr_longlong(off
), way
, mode
);
4298 cur_w
= basic_streambuf_char_pptr(&this->base
);
4299 if(cur_w
> this->seekhigh
)
4300 this->seekhigh
= cur_w
;
4306 beg
= basic_streambuf_char_eback(&this->base
);
4307 cur_r
= basic_streambuf_char_gptr(&this->base
);
4308 if((mode
& OPENMODE_in
) && cur_r
) {
4309 if(way
==SEEKDIR_cur
&& !(mode
& OPENMODE_out
))
4311 else if(way
== SEEKDIR_end
)
4312 off
+= this->seekhigh
-beg
;
4313 else if(way
!= SEEKDIR_beg
)
4316 if(off
<0 || off
>this->seekhigh
-beg
) {
4319 basic_streambuf_char_gbump(&this->base
, beg
-cur_r
+off
);
4320 if((mode
& OPENMODE_out
) && cur_w
) {
4321 basic_streambuf_char_setp_next(&this->base
, beg
,
4322 basic_streambuf_char_gptr(&this->base
),
4323 basic_streambuf_char_epptr(&this->base
));
4326 }else if((mode
& OPENMODE_out
) && cur_w
) {
4327 if(way
== SEEKDIR_cur
)
4329 else if(way
== SEEKDIR_end
)
4330 off
+= this->seekhigh
-beg
;
4331 else if(way
!= SEEKDIR_beg
)
4334 if(off
<0 || off
>this->seekhigh
-beg
)
4337 basic_streambuf_char_pbump(&this->base
, beg
-cur_w
+off
);
4346 /* ?seekpos@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
4347 /* ?seekpos@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
4348 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_seekpos
, 36)
4349 fpos_int
* __thiscall
basic_stringbuf_char_seekpos(basic_stringbuf_char
*this,
4350 fpos_int
*ret
, fpos_int pos
, int mode
)
4352 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_int(&pos
), mode
);
4354 if(pos
.off
==-1 && pos
.pos
==0 && pos
.state
==0) {
4359 return basic_stringbuf_char_seekoff(this, ret
, pos
.pos
+pos
.off
, SEEKDIR_beg
, mode
);
4362 /* ?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 */
4363 /* ?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 */
4364 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_str_set
, 8)
4365 void __thiscall
basic_stringbuf_char_str_set(basic_stringbuf_char
*this, const basic_string_char
*str
)
4367 TRACE("(%p %p)\n", this, str
);
4369 basic_stringbuf_char__Tidy(this);
4370 basic_stringbuf_char__Init(this, MSVCP_basic_string_char_c_str(str
), str
->size
, this->state
);
4373 /* ?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 */
4374 /* ?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 */
4375 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_str_get
, 8)
4376 basic_string_char
* __thiscall
basic_stringbuf_char_str_get(const basic_stringbuf_char
*this, basic_string_char
*ret
)
4380 TRACE("(%p)\n", this);
4382 if(!(this->state
& STRINGBUF_no_write
) && basic_streambuf_char_pptr(&this->base
)) {
4385 ptr
= basic_streambuf_char_pbase(&this->base
);
4386 pptr
= basic_streambuf_char_pptr(&this->base
);
4388 return MSVCP_basic_string_char_ctor_cstr_len(ret
, ptr
, (this->seekhigh
< pptr
? pptr
: this->seekhigh
) - ptr
);
4391 if(!(this->state
& STRINGBUF_no_read
) && basic_streambuf_char_gptr(&this->base
)) {
4392 ptr
= basic_streambuf_char_eback(&this->base
);
4393 return MSVCP_basic_string_char_ctor_cstr_len(ret
, ptr
, basic_streambuf_char_egptr(&this->base
) - ptr
);
4396 return MSVCP_basic_string_char_ctor(ret
);
4399 /* ?_Getstate@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AAEHH@Z */
4400 /* ?_Getstate@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AEAAHH@Z */
4401 /* ?_Getstate@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AAEHH@Z */
4402 /* ?_Getstate@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AEAAHH@Z */
4403 /* ?_Mode@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AAEHH@Z */
4404 /* ?_Mode@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AEAAHH@Z */
4405 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar__Getstate
, 8)
4406 int __thiscall
basic_stringbuf_wchar__Getstate(basic_stringbuf_wchar
*this, IOSB_openmode mode
)
4410 if(!(mode
& OPENMODE_in
))
4411 state
|= STRINGBUF_no_read
;
4413 if(!(mode
& OPENMODE_out
))
4414 state
|= STRINGBUF_no_write
;
4416 if(mode
& OPENMODE_ate
)
4417 state
|= STRINGBUF_at_end
;
4419 if(mode
& OPENMODE_app
)
4420 state
|= STRINGBUF_append
;
4425 /* ?_Init@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXPB_WIH@Z */
4426 /* ?_Init@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAXPEB_W_KH@Z */
4427 /* ?_Init@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEXPBGIH@Z */
4428 /* ?_Init@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAXPEBG_KH@Z */
4429 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar__Init
, 16)
4430 void __thiscall
basic_stringbuf_wchar__Init(basic_stringbuf_wchar
*this, const wchar_t *str
, MSVCP_size_t count
, int state
)
4432 TRACE("(%p, %p, %lu, %d)\n", this, str
, count
, state
);
4434 basic_streambuf_wchar__Init_empty(&this->base
);
4436 this->state
= state
;
4437 this->seekhigh
= NULL
;
4440 wchar_t *buf
= MSVCRT_operator_new(count
*sizeof(wchar_t));
4442 ERR("Out of memory\n");
4443 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
4446 memcpy(buf
, str
, count
*sizeof(wchar_t));
4447 this->seekhigh
= buf
+ count
;
4449 this->state
|= STRINGBUF_allocated
;
4451 if(!(state
& STRINGBUF_no_read
))
4452 basic_streambuf_wchar_setg(&this->base
, buf
, buf
, buf
+ count
);
4454 if(!(state
& STRINGBUF_no_write
)) {
4455 basic_streambuf_wchar_setp_next(&this->base
, buf
, (state
& STRINGBUF_at_end
) ? buf
+ count
: buf
, buf
+ count
);
4457 if(!basic_streambuf_wchar_gptr(&this->base
))
4458 basic_streambuf_wchar_setg(&this->base
, buf
, 0, buf
);
4463 /* ??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 */
4464 /* ??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 */
4465 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_ctor_str
, 12)
4466 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_wchar_ctor_str(basic_stringbuf_wchar
*this,
4467 const basic_string_wchar
*str
, IOSB_openmode mode
)
4469 TRACE("(%p %p %d)\n", this, str
, mode
);
4471 basic_streambuf_wchar_ctor(&this->base
);
4472 this->base
.vtable
= &MSVCP_basic_stringbuf_wchar_vtable
;
4474 basic_stringbuf_wchar__Init(this, MSVCP_basic_string_wchar_c_str(str
),
4475 str
->size
, basic_stringbuf_wchar__Getstate(this, mode
));
4479 /* ??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 */
4480 /* ??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 */
4481 DEFINE_THISCALL_WRAPPER(basic_stringbuf_short_ctor_str
, 12)
4482 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_short_ctor_str(basic_stringbuf_wchar
*this,
4483 const basic_string_wchar
*str
, IOSB_openmode mode
)
4485 basic_stringbuf_wchar_ctor_str(this, str
, mode
);
4486 this->base
.vtable
= &MSVCP_basic_stringbuf_short_vtable
;
4490 /* ??0?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
4491 /* ??0?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
4492 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_ctor_mode
, 8)
4493 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_wchar_ctor_mode(
4494 basic_stringbuf_wchar
*this, IOSB_openmode mode
)
4496 TRACE("(%p %d)\n", this, mode
);
4498 basic_streambuf_wchar_ctor(&this->base
);
4499 this->base
.vtable
= &MSVCP_basic_stringbuf_wchar_vtable
;
4501 basic_stringbuf_wchar__Init(this, NULL
, 0, basic_stringbuf_wchar__Getstate(this, mode
));
4505 /* ??0?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
4506 /* ??0?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
4507 DEFINE_THISCALL_WRAPPER(basic_stringbuf_short_ctor_mode
, 8)
4508 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_short_ctor_mode(
4509 basic_stringbuf_wchar
*this, IOSB_openmode mode
)
4511 basic_stringbuf_wchar_ctor_mode(this, mode
);
4512 this->base
.vtable
= &MSVCP_basic_stringbuf_short_vtable
;
4516 /* ??_F?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
4517 /* ??_F?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
4518 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_ctor
, 4)
4519 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_wchar_ctor(basic_stringbuf_wchar
*this)
4521 return basic_stringbuf_wchar_ctor_mode(this, OPENMODE_in
|OPENMODE_out
);
4524 /* ??_F?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
4525 /* ??_F?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
4526 DEFINE_THISCALL_WRAPPER(basic_stringbuf_short_ctor
, 4)
4527 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_short_ctor(basic_stringbuf_wchar
*this)
4529 return basic_stringbuf_short_ctor_mode(this, OPENMODE_in
|OPENMODE_out
);
4532 /* ?_Tidy@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXXZ */
4533 /* ?_Tidy@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAXXZ */
4534 /* ?_Tidy@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEXXZ */
4535 /* ?_Tidy@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAXXZ */
4536 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar__Tidy
, 4)
4537 void __thiscall
basic_stringbuf_wchar__Tidy(basic_stringbuf_wchar
*this)
4539 TRACE("(%p)\n", this);
4541 if(this->state
& STRINGBUF_allocated
) {
4542 MSVCRT_operator_delete(basic_streambuf_wchar_eback(&this->base
));
4543 this->seekhigh
= NULL
;
4544 this->state
&= ~STRINGBUF_allocated
;
4547 basic_streambuf_wchar__Init_empty(&this->base
);
4550 /* ??1?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
4551 /* ??1?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
4552 /* ??1?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
4553 /* ??1?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
4554 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_dtor
, 4)
4555 void __thiscall
basic_stringbuf_wchar_dtor(basic_stringbuf_wchar
*this)
4557 TRACE("(%p)\n", this);
4559 basic_stringbuf_wchar__Tidy(this);
4560 basic_streambuf_wchar_dtor(&this->base
);
4563 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_vector_dtor
, 8)
4564 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_wchar_vector_dtor(basic_stringbuf_wchar
*this, unsigned int flags
)
4566 TRACE("(%p %x)\n", this, flags
);
4569 /* we have an array, with the number of elements stored before the first object */
4570 INT_PTR i
, *ptr
= (INT_PTR
*) this - 1;
4572 for (i
= *ptr
- 1; i
>= 0; i
--)
4573 basic_stringbuf_wchar_dtor(this+i
);
4575 MSVCRT_operator_delete(ptr
);
4577 basic_stringbuf_wchar_dtor(this);
4580 MSVCRT_operator_delete(this);
4586 /* ?overflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAEGG@Z */
4587 /* ?overflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAAGG@Z */
4588 /* ?overflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAEGG@Z */
4589 /* ?overflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAAGG@Z */
4590 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_overflow
, 8)
4591 unsigned short __thiscall
basic_stringbuf_wchar_overflow(basic_stringbuf_wchar
*this, unsigned short meta
)
4593 MSVCP_size_t oldsize
, size
;
4596 TRACE("(%p %x)\n", this, meta
);
4600 if(this->state
& STRINGBUF_no_write
)
4603 ptr
= basic_streambuf_wchar_pptr(&this->base
);
4604 if((this->state
&STRINGBUF_append
) && ptr
<this->seekhigh
)
4605 basic_streambuf_wchar_setp_next(&this->base
, basic_streambuf_wchar_pbase(&this->base
),
4606 this->seekhigh
, basic_streambuf_wchar_epptr(&this->base
));
4608 if(ptr
&& ptr
<basic_streambuf_wchar_epptr(&this->base
))
4609 return (*basic_streambuf_wchar__Pninc(&this->base
) = meta
);
4611 oldsize
= (ptr
? basic_streambuf_wchar_epptr(&this->base
)-basic_streambuf_wchar_eback(&this->base
): 0);
4614 buf
= MSVCRT_operator_new(size
*sizeof(wchar_t));
4616 ERR("Out of memory\n");
4617 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
4621 this->seekhigh
= buf
;
4622 basic_streambuf_wchar_setp(&this->base
, buf
, buf
+size
);
4623 if(this->state
& STRINGBUF_no_read
)
4624 basic_streambuf_wchar_setg(&this->base
, buf
, NULL
, buf
);
4626 basic_streambuf_wchar_setg(&this->base
, buf
, buf
, buf
+1);
4628 this->state
|= STRINGBUF_allocated
;
4630 ptr
= basic_streambuf_wchar_eback(&this->base
);
4631 memcpy(buf
, ptr
, oldsize
*sizeof(wchar_t));
4633 this->seekhigh
= buf
+(this->seekhigh
-ptr
);
4634 basic_streambuf_wchar_setp_next(&this->base
, buf
,
4635 buf
+(basic_streambuf_wchar_pptr(&this->base
)-ptr
), buf
+size
);
4636 if(this->state
& STRINGBUF_no_read
)
4637 basic_streambuf_wchar_setg(&this->base
, buf
, NULL
, buf
);
4639 basic_streambuf_wchar_setg(&this->base
, buf
,
4640 buf
+(basic_streambuf_wchar_gptr(&this->base
)-ptr
),
4641 basic_streambuf_wchar_pptr(&this->base
)+1);
4643 MSVCRT_operator_delete(ptr
);
4646 return (*basic_streambuf_wchar__Pninc(&this->base
) = meta
);
4649 /* ?pbackfail@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAEGG@Z */
4650 /* ?pbackfail@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAAGG@Z */
4651 /* ?pbackfail@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAEGG@Z */
4652 /* ?pbackfail@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAAGG@Z */
4653 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_pbackfail
, 8)
4654 unsigned short __thiscall
basic_stringbuf_wchar_pbackfail(basic_stringbuf_wchar
*this, unsigned short c
)
4658 TRACE("(%p %x)\n", this, c
);
4660 cur
= basic_streambuf_wchar_gptr(&this->base
);
4661 if(!cur
|| cur
==basic_streambuf_wchar_eback(&this->base
)
4662 || (c
!=WEOF
&& c
!=cur
[-1] && this->state
&STRINGBUF_no_write
))
4667 basic_streambuf_wchar_gbump(&this->base
, -1);
4668 return c
==WEOF
? !WEOF
: c
;
4671 /* ?underflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAEGXZ */
4672 /* ?underflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAAGXZ */
4673 /* ?underflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAEGXZ */
4674 /* ?underflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAAGXZ */
4675 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_underflow
, 4)
4676 unsigned short __thiscall
basic_stringbuf_wchar_underflow(basic_stringbuf_wchar
*this)
4680 TRACE("(%p)\n", this);
4682 cur
= basic_streambuf_wchar_gptr(&this->base
);
4683 if(!cur
|| this->state
&STRINGBUF_no_read
)
4686 ptr
= basic_streambuf_wchar_pptr(&this->base
);
4687 if(this->seekhigh
< ptr
)
4688 this->seekhigh
= ptr
;
4690 ptr
= basic_streambuf_wchar_egptr(&this->base
);
4691 if(this->seekhigh
> ptr
)
4692 basic_streambuf_wchar_setg(&this->base
, basic_streambuf_wchar_eback(&this->base
), cur
, this->seekhigh
);
4694 if(cur
< this->seekhigh
)
4699 /* ?seekoff@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
4700 /* ?seekoff@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
4701 /* ?seekoff@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAE?AV?$fpos@H@2@JHH@Z */
4702 /* ?seekoff@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
4703 /* ?seekoff@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAE?AV?$fpos@H@2@JHH@Z */
4704 /* ?seekoff@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
4705 #if STREAMOFF_BITS == 64
4706 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_seekoff
, 24)
4708 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_seekoff
, 20)
4710 fpos_int
* __thiscall
basic_stringbuf_wchar_seekoff(basic_stringbuf_wchar
*this,
4711 fpos_int
*ret
, streamoff off
, int way
, int mode
)
4713 wchar_t *beg
, *cur_r
, *cur_w
;
4715 TRACE("(%p %p %s %d %d)\n", this, ret
, wine_dbgstr_longlong(off
), way
, mode
);
4717 cur_w
= basic_streambuf_wchar_pptr(&this->base
);
4718 if(cur_w
> this->seekhigh
)
4719 this->seekhigh
= cur_w
;
4725 beg
= basic_streambuf_wchar_eback(&this->base
);
4726 cur_r
= basic_streambuf_wchar_gptr(&this->base
);
4727 if((mode
& OPENMODE_in
) && cur_r
) {
4728 if(way
==SEEKDIR_cur
&& !(mode
& OPENMODE_out
))
4730 else if(way
== SEEKDIR_end
)
4731 off
+= this->seekhigh
-beg
;
4732 else if(way
!= SEEKDIR_beg
)
4735 if(off
<0 || off
>this->seekhigh
-beg
) {
4738 basic_streambuf_wchar_gbump(&this->base
, beg
-cur_r
+off
);
4739 if((mode
& OPENMODE_out
) && cur_w
) {
4740 basic_streambuf_wchar_setp_next(&this->base
, beg
,
4741 basic_streambuf_wchar_gptr(&this->base
),
4742 basic_streambuf_wchar_epptr(&this->base
));
4745 }else if((mode
& OPENMODE_out
) && cur_w
) {
4746 if(way
== SEEKDIR_cur
)
4748 else if(way
== SEEKDIR_end
)
4749 off
+= this->seekhigh
-beg
;
4750 else if(way
!= SEEKDIR_beg
)
4753 if(off
<0 || off
>this->seekhigh
-beg
)
4756 basic_streambuf_wchar_pbump(&this->base
, beg
-cur_w
+off
);
4765 /* ?seekpos@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
4766 /* ?seekpos@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
4767 /* ?seekpos@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
4768 /* ?seekpos@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
4769 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_seekpos
, 36)
4770 fpos_int
* __thiscall
basic_stringbuf_wchar_seekpos(basic_stringbuf_wchar
*this,
4771 fpos_int
*ret
, fpos_int pos
, int mode
)
4773 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_int(&pos
), mode
);
4775 if(pos
.off
==-1 && pos
.pos
==0 && pos
.state
==0) {
4780 return basic_stringbuf_wchar_seekoff(this, ret
, pos
.pos
+pos
.off
, SEEKDIR_beg
, mode
);
4783 /* ?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 */
4784 /* ?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 */
4785 /* ?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 */
4786 /* ?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 */
4787 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_str_set
, 8)
4788 void __thiscall
basic_stringbuf_wchar_str_set(basic_stringbuf_wchar
*this, const basic_string_wchar
*str
)
4790 TRACE("(%p %p)\n", this, str
);
4792 basic_stringbuf_wchar__Tidy(this);
4793 basic_stringbuf_wchar__Init(this, MSVCP_basic_string_wchar_c_str(str
), str
->size
, this->state
);
4796 /* ?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 */
4797 /* ?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 */
4798 /* ?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 */
4799 /* ?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 */
4800 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_str_get
, 8)
4801 basic_string_wchar
* __thiscall
basic_stringbuf_wchar_str_get(const basic_stringbuf_wchar
*this, basic_string_wchar
*ret
)
4805 TRACE("(%p)\n", this);
4807 if(!(this->state
& STRINGBUF_no_write
) && basic_streambuf_wchar_pptr(&this->base
)) {
4810 ptr
= basic_streambuf_wchar_pbase(&this->base
);
4811 pptr
= basic_streambuf_wchar_pptr(&this->base
);
4813 return MSVCP_basic_string_wchar_ctor_cstr_len(ret
, ptr
, (this->seekhigh
< pptr
? pptr
: this->seekhigh
) - ptr
);
4816 if(!(this->state
& STRINGBUF_no_read
) && basic_streambuf_wchar_gptr(&this->base
)) {
4817 ptr
= basic_streambuf_wchar_eback(&this->base
);
4818 return MSVCP_basic_string_wchar_ctor_cstr_len(ret
, ptr
, basic_streambuf_wchar_egptr(&this->base
) - ptr
);
4821 return MSVCP_basic_string_wchar_ctor(ret
);
4824 /* ??0ios_base@std@@IAE@XZ */
4825 /* ??0ios_base@std@@IEAA@XZ */
4826 DEFINE_THISCALL_WRAPPER(ios_base_ctor
, 4)
4827 ios_base
* __thiscall
ios_base_ctor(ios_base
*this)
4829 TRACE("(%p)\n", this);
4830 this->vtable
= &MSVCP_ios_base_vtable
;
4834 /* ??0ios_base@std@@QAE@ABV01@@Z */
4835 /* ??0ios_base@std@@QEAA@AEBV01@@Z */
4836 DEFINE_THISCALL_WRAPPER(ios_base_copy_ctor
, 8)
4837 ios_base
* __thiscall
ios_base_copy_ctor(ios_base
*this, const ios_base
*copy
)
4839 TRACE("(%p %p)\n", this, copy
);
4841 this->vtable
= &MSVCP_ios_base_vtable
;
4845 /* ?_Callfns@ios_base@std@@AAEXW4event@12@@Z */
4846 /* ?_Callfns@ios_base@std@@AEAAXW4event@12@@Z */
4847 DEFINE_THISCALL_WRAPPER(ios_base_Callfns
, 8)
4848 void __thiscall
ios_base_Callfns(ios_base
*this, IOS_BASE_event event
)
4850 IOS_BASE_fnarray
*cur
;
4852 TRACE("(%p %x)\n", this, event
);
4854 for(cur
=this->calls
; cur
; cur
=cur
->next
)
4855 cur
->event_handler(event
, this, cur
->index
);
4858 /* ?_Tidy@ios_base@std@@AAAXXZ */
4859 /* ?_Tidy@ios_base@std@@AEAAXXZ */
4860 void __cdecl
ios_base_Tidy(ios_base
*this)
4862 IOS_BASE_iosarray
*arr_cur
, *arr_next
;
4863 IOS_BASE_fnarray
*event_cur
, *event_next
;
4865 TRACE("(%p)\n", this);
4867 ios_base_Callfns(this, EVENT_erase_event
);
4869 for(arr_cur
=this->arr
; arr_cur
; arr_cur
=arr_next
) {
4870 arr_next
= arr_cur
->next
;
4871 MSVCRT_operator_delete(arr_cur
);
4875 for(event_cur
=this->calls
; event_cur
; event_cur
=event_next
) {
4876 event_next
= event_cur
->next
;
4877 MSVCRT_operator_delete(event_cur
);
4882 /* ?_Ios_base_dtor@ios_base@std@@CAXPAV12@@Z */
4883 /* ?_Ios_base_dtor@ios_base@std@@CAXPEAV12@@Z */
4884 void __cdecl
ios_base_Ios_base_dtor(ios_base
*obj
)
4886 TRACE("(%p)\n", obj
);
4887 locale_dtor(IOS_LOCALE(obj
));
4888 #if _MSVCP_VER >= 70
4889 MSVCRT_operator_delete(obj
->loc
);
4894 /* ??1ios_base@std@@UAE@XZ */
4895 /* ??1ios_base@std@@UEAA@XZ */
4896 DEFINE_THISCALL_WRAPPER(ios_base_dtor
, 4)
4897 void __thiscall
ios_base_dtor(ios_base
*this)
4899 ios_base_Ios_base_dtor(this);
4902 DEFINE_THISCALL_WRAPPER(ios_base_vector_dtor
, 8)
4903 ios_base
* __thiscall
ios_base_vector_dtor(ios_base
*this, unsigned int flags
)
4905 TRACE("(%p %x)\n", this, flags
);
4907 /* we have an array, with the number of elements stored before the first object */
4908 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
4910 for(i
=*ptr
-1; i
>=0; i
--)
4911 ios_base_dtor(this+i
);
4912 MSVCRT_operator_delete(ptr
);
4914 ios_base_dtor(this);
4916 MSVCRT_operator_delete(this);
4922 DEFINE_THISCALL_WRAPPER(iosb_vector_dtor
, 8)
4923 void* __thiscall
iosb_vector_dtor(void *this, unsigned int flags
)
4925 TRACE("(%p %x)\n", this, flags
);
4927 INT_PTR
*ptr
= (INT_PTR
*)this-1;
4928 MSVCRT_operator_delete(ptr
);
4931 MSVCRT_operator_delete(this);
4937 /* ?_Findarr@ios_base@std@@AAEAAU_Iosarray@12@H@Z */
4938 /* ?_Findarr@ios_base@std@@AEAAAEAU_Iosarray@12@H@Z */
4939 DEFINE_THISCALL_WRAPPER(ios_base_Findarr
, 8)
4940 IOS_BASE_iosarray
* __thiscall
ios_base_Findarr(ios_base
*this, int index
)
4942 IOS_BASE_iosarray
*p
;
4944 TRACE("(%p %d)\n", this, index
);
4946 for(p
=this->arr
; p
; p
=p
->next
) {
4947 if(p
->index
== index
)
4951 for(p
=this->arr
; p
; p
=p
->next
) {
4952 if(!p
->long_val
&& !p
->ptr_val
) {
4958 p
= MSVCRT_operator_new(sizeof(IOS_BASE_iosarray
));
4959 p
->next
= this->arr
;
4967 /* ?iword@ios_base@std@@QAEAAJH@Z */
4968 /* ?iword@ios_base@std@@QEAAAEAJH@Z */
4969 DEFINE_THISCALL_WRAPPER(ios_base_iword
, 8)
4970 LONG
* __thiscall
ios_base_iword(ios_base
*this, int index
)
4972 TRACE("(%p %d)\n", this, index
);
4973 return &ios_base_Findarr(this, index
)->long_val
;
4976 /* ?pword@ios_base@std@@QAEAAPAXH@Z */
4977 /* ?pword@ios_base@std@@QEAAAEAPEAXH@Z */
4978 DEFINE_THISCALL_WRAPPER(ios_base_pword
, 8)
4979 void** __thiscall
ios_base_pword(ios_base
*this, int index
)
4981 TRACE("(%p %d)\n", this, index
);
4982 return &ios_base_Findarr(this, index
)->ptr_val
;
4985 /* ?register_callback@ios_base@std@@QAEXP6AXW4event@12@AAV12@H@ZH@Z */
4986 /* ?register_callback@ios_base@std@@QEAAXP6AXW4event@12@AEAV12@H@ZH@Z */
4987 DEFINE_THISCALL_WRAPPER(ios_base_register_callback
, 12)
4988 void __thiscall
ios_base_register_callback(ios_base
*this, IOS_BASE_event_callback callback
, int index
)
4990 IOS_BASE_fnarray
*event
;
4992 TRACE("(%p %p %d)\n", this, callback
, index
);
4994 event
= MSVCRT_operator_new(sizeof(IOS_BASE_fnarray
));
4995 event
->next
= this->calls
;
4996 event
->index
= index
;
4997 event
->event_handler
= callback
;
4998 this->calls
= event
;
5001 /* ?clear@ios_base@std@@QAEXH_N@Z */
5002 /* ?clear@ios_base@std@@QEAAXH_N@Z */
5003 DEFINE_THISCALL_WRAPPER(ios_base_clear_reraise
, 12)
5004 void __thiscall
ios_base_clear_reraise(ios_base
*this, IOSB_iostate state
, MSVCP_bool reraise
)
5006 TRACE("(%p %x %x)\n", this, state
, reraise
);
5008 this->state
= state
& IOSTATE_mask
;
5009 if(!(this->state
& this->except
))
5013 throw_exception(EXCEPTION_RERAISE
, NULL
);
5014 else if(this->state
& this->except
& IOSTATE_eofbit
)
5015 throw_exception(EXCEPTION_FAILURE
, "eofbit is set");
5016 else if(this->state
& this->except
& IOSTATE_failbit
)
5017 throw_exception(EXCEPTION_FAILURE
, "failbit is set");
5018 else if(this->state
& this->except
& IOSTATE_badbit
)
5019 throw_exception(EXCEPTION_FAILURE
, "badbit is set");
5020 else if(this->state
& this->except
& IOSTATE__Hardfail
)
5021 throw_exception(EXCEPTION_FAILURE
, "_Hardfail is set");
5024 /* ?clear@ios_base@std@@QAEXH@Z */
5025 /* ?clear@ios_base@std@@QEAAXH@Z */
5026 DEFINE_THISCALL_WRAPPER(ios_base_clear
, 8)
5027 void __thiscall
ios_base_clear(ios_base
*this, IOSB_iostate state
)
5029 ios_base_clear_reraise(this, state
, FALSE
);
5032 /* ?clear@ios_base@std@@QAEXI@Z */
5033 /* ?clear@ios_base@std@@QEAAXI@Z */
5034 DEFINE_THISCALL_WRAPPER(ios_base_clear_unsigned
, 8)
5035 void __thiscall
ios_base_clear_unsigned(ios_base
*this, unsigned int state
)
5037 ios_base_clear_reraise(this, (IOSB_iostate
)state
, FALSE
);
5040 /* ?exceptions@ios_base@std@@QAEXH@Z */
5041 /* ?exceptions@ios_base@std@@QEAAXH@Z */
5042 DEFINE_THISCALL_WRAPPER(ios_base_exceptions_set
, 8)
5043 void __thiscall
ios_base_exceptions_set(ios_base
*this, IOSB_iostate state
)
5045 TRACE("(%p %x)\n", this, state
);
5046 this->except
= state
& IOSTATE_mask
;
5047 ios_base_clear(this, this->state
);
5050 /* ?exceptions@ios_base@std@@QAEXI@Z */
5051 /* ?exceptions@ios_base@std@@QEAAXI@Z */
5052 DEFINE_THISCALL_WRAPPER(ios_base_exceptions_set_unsigned
, 8)
5053 void __thiscall
ios_base_exceptions_set_unsigned(ios_base
*this, unsigned int state
)
5055 TRACE("(%p %x)\n", this, state
);
5056 ios_base_exceptions_set(this, state
);
5059 /* ?exceptions@ios_base@std@@QBEHXZ */
5060 /* ?exceptions@ios_base@std@@QEBAHXZ */
5061 DEFINE_THISCALL_WRAPPER(ios_base_exceptions_get
, 4)
5062 IOSB_iostate __thiscall
ios_base_exceptions_get(ios_base
*this)
5064 TRACE("(%p)\n", this);
5065 return this->except
;
5068 /* ?copyfmt@ios_base@std@@QAEAAV12@ABV12@@Z */
5069 /* ?copyfmt@ios_base@std@@QEAAAEAV12@AEBV12@@Z */
5070 DEFINE_THISCALL_WRAPPER(ios_base_copyfmt
, 8)
5071 ios_base
* __thiscall
ios_base_copyfmt(ios_base
*this, const ios_base
*rhs
)
5073 TRACE("(%p %p)\n", this, rhs
);
5076 IOS_BASE_iosarray
*arr_cur
;
5077 IOS_BASE_fnarray
*event_cur
;
5079 ios_base_Tidy(this);
5081 for(arr_cur
=rhs
->arr
; arr_cur
; arr_cur
=arr_cur
->next
) {
5082 if(arr_cur
->long_val
)
5083 *ios_base_iword(this, arr_cur
->index
) = arr_cur
->long_val
;
5084 if(arr_cur
->ptr_val
)
5085 *ios_base_pword(this, arr_cur
->index
) = arr_cur
->ptr_val
;
5087 this->stdstr
= rhs
->stdstr
;
5088 this->fmtfl
= rhs
->fmtfl
;
5089 this->prec
= rhs
->prec
;
5090 this->wide
= rhs
->wide
;
5091 locale_operator_assign(IOS_LOCALE(this), IOS_LOCALE(rhs
));
5093 for(event_cur
=rhs
->calls
; event_cur
; event_cur
=event_cur
->next
)
5094 ios_base_register_callback(this, event_cur
->event_handler
, event_cur
->index
);
5096 ios_base_Callfns(this, EVENT_copyfmt_event
);
5097 ios_base_exceptions_set(this, rhs
->except
);
5103 /* ??4ios_base@std@@QAEAAV01@ABV01@@Z */
5104 /* ??4ios_base@std@@QEAAAEAV01@AEBV01@@Z */
5105 DEFINE_THISCALL_WRAPPER(ios_base_assign
, 8)
5106 ios_base
* __thiscall
ios_base_assign(ios_base
*this, const ios_base
*right
)
5108 TRACE("(%p %p)\n", this, right
);
5111 this->state
= right
->state
;
5112 ios_base_copyfmt(this, right
);
5118 /* ?fail@ios_base@std@@QBE_NXZ */
5119 /* ?fail@ios_base@std@@QEBA_NXZ */
5120 DEFINE_THISCALL_WRAPPER(ios_base_fail
, 4)
5121 MSVCP_bool __thiscall
ios_base_fail(const ios_base
*this)
5123 TRACE("(%p)\n", this);
5124 return (this->state
& (IOSTATE_failbit
|IOSTATE_badbit
)) != 0;
5127 /* ??7ios_base@std@@QBE_NXZ */
5128 /* ??7ios_base@std@@QEBA_NXZ */
5129 DEFINE_THISCALL_WRAPPER(ios_base_op_succ
, 4)
5130 MSVCP_bool __thiscall
ios_base_op_succ(const ios_base
*this)
5132 TRACE("(%p)\n", this);
5133 return ios_base_fail(this);
5136 /* ??Bios_base@std@@QBEPAXXZ */
5137 /* ??Bios_base@std@@QEBAPEAXXZ */
5138 DEFINE_THISCALL_WRAPPER(ios_base_op_fail
, 4)
5139 void* __thiscall
ios_base_op_fail(const ios_base
*this)
5141 TRACE("(%p)\n", this);
5142 return ios_base_fail(this) ? NULL
: (void*)this;
5145 /* ??Bios_base@std@@QBA_NXZ */
5146 /* ??Bios_base@std@@QBE_NXZ */
5147 /* ??Bios_base@std@@QEBA_NXZ */
5148 DEFINE_THISCALL_WRAPPER(ios_base_operator_bool
, 4)
5149 MSVCP_bool __thiscall
ios_base_operator_bool(const ios_base
*this)
5151 TRACE("(%p)\n", this);
5152 return (this->state
& (IOSTATE_failbit
|IOSTATE_badbit
)) == 0;
5155 /* ?_Addstd@ios_base@std@@SAXPAV12@@Z */
5156 /* ?_Addstd@ios_base@std@@SAXPEAV12@@Z */
5157 void __cdecl
ios_base_Addstd(ios_base
*add
)
5159 FIXME("(%p) stub\n", add
);
5162 /* ?_Index_func@ios_base@std@@CAAAHXZ */
5163 /* ?_Index_func@ios_base@std@@CAAEAHXZ */
5164 int* __cdecl
ios_base_Index_func(void)
5167 return &ios_base_Index
;
5170 /* ?_Init@ios_base@std@@IAEXXZ */
5171 /* ?_Init@ios_base@std@@IEAAXXZ */
5172 DEFINE_THISCALL_WRAPPER(ios_base__Init
, 4)
5173 void __thiscall
ios_base__Init(ios_base
*this)
5175 TRACE("(%p)\n", this);
5178 this->state
= this->except
= IOSTATE_goodbit
;
5179 this->fmtfl
= FMTFLAG_skipws
| FMTFLAG_dec
;
5184 #if _MSVCP_VER >= 70
5185 this->loc
= MSVCRT_operator_new(sizeof(locale
));
5187 locale_ctor(IOS_LOCALE(this));
5190 /* ?_Sync_func@ios_base@std@@CAAA_NXZ */
5191 /* ?_Sync_func@ios_base@std@@CAAEA_NXZ */
5192 MSVCP_bool
* __cdecl
ios_base_Sync_func(void)
5195 return &ios_base_Sync
;
5198 /* ?bad@ios_base@std@@QBE_NXZ */
5199 /* ?bad@ios_base@std@@QEBA_NXZ */
5200 DEFINE_THISCALL_WRAPPER(ios_base_bad
, 4)
5201 MSVCP_bool __thiscall
ios_base_bad(const ios_base
*this)
5203 TRACE("(%p)\n", this);
5204 return (this->state
& IOSTATE_badbit
) != 0;
5207 /* ?eof@ios_base@std@@QBE_NXZ */
5208 /* ?eof@ios_base@std@@QEBA_NXZ */
5209 DEFINE_THISCALL_WRAPPER(ios_base_eof
, 4)
5210 MSVCP_bool __thiscall
ios_base_eof(const ios_base
*this)
5212 TRACE("(%p)\n", this);
5213 return (this->state
& IOSTATE_eofbit
) != 0;
5216 /* ?flags@ios_base@std@@QAEHH@Z */
5217 /* ?flags@ios_base@std@@QEAAHH@Z */
5218 DEFINE_THISCALL_WRAPPER(ios_base_flags_set
, 8)
5219 IOSB_fmtflags __thiscall
ios_base_flags_set(ios_base
*this, IOSB_fmtflags flags
)
5221 IOSB_fmtflags ret
= this->fmtfl
;
5223 TRACE("(%p %x)\n", this, flags
);
5225 this->fmtfl
= flags
& FMTFLAG_mask
;
5229 /* ?flags@ios_base@std@@QBEHXZ */
5230 /* ?flags@ios_base@std@@QEBAHXZ */
5231 DEFINE_THISCALL_WRAPPER(ios_base_flags_get
, 4)
5232 IOSB_fmtflags __thiscall
ios_base_flags_get(const ios_base
*this)
5234 TRACE("(%p)\n", this);
5238 /* ?getloc@ios_base@std@@QBE?AVlocale@2@XZ */
5239 /* ?getloc@ios_base@std@@QEBA?AVlocale@2@XZ */
5240 DEFINE_THISCALL_WRAPPER(ios_base_getloc
, 8)
5241 locale
* __thiscall
ios_base_getloc(const ios_base
*this, locale
*ret
)
5243 TRACE("(%p)\n", this);
5244 return locale_copy_ctor(ret
, IOS_LOCALE(this));
5247 /* ?good@ios_base@std@@QBE_NXZ */
5248 /* ?good@ios_base@std@@QEBA_NXZ */
5249 DEFINE_THISCALL_WRAPPER(ios_base_good
, 4)
5250 MSVCP_bool __thiscall
ios_base_good(const ios_base
*this)
5252 TRACE("(%p)\n", this);
5253 return this->state
== IOSTATE_goodbit
;
5256 /* ?imbue@ios_base@std@@QAE?AVlocale@2@ABV32@@Z */
5257 /* ?imbue@ios_base@std@@QEAA?AVlocale@2@AEBV32@@Z */
5258 DEFINE_THISCALL_WRAPPER(ios_base_imbue
, 12)
5259 locale
* __thiscall
ios_base_imbue(ios_base
*this, locale
*ret
, const locale
*loc
)
5261 TRACE("(%p %p)\n", this, loc
);
5262 *ret
= *IOS_LOCALE(this);
5263 locale_copy_ctor(IOS_LOCALE(this), loc
);
5267 /* ?precision@ios_base@std@@QAEHH@Z */
5268 /* ?precision@ios_base@std@@QEAA_J_J@Z */
5269 #if STREAMSIZE_BITS == 64
5270 DEFINE_THISCALL_WRAPPER(ios_base_precision_set
, 12)
5272 DEFINE_THISCALL_WRAPPER(ios_base_precision_set
, 8)
5274 streamsize __thiscall
ios_base_precision_set(ios_base
*this, streamsize precision
)
5276 streamsize ret
= this->prec
;
5278 TRACE("(%p %s)\n", this, wine_dbgstr_longlong(precision
));
5280 this->prec
= precision
;
5284 /* ?precision@ios_base@std@@QBEHXZ */
5285 /* ?precision@ios_base@std@@QEBA_JXZ */
5286 DEFINE_THISCALL_WRAPPER(ios_base_precision_get
, 4)
5287 streamsize __thiscall
ios_base_precision_get(const ios_base
*this)
5289 TRACE("(%p)\n", this);
5293 /* ?rdstate@ios_base@std@@QBEHXZ */
5294 /* ?rdstate@ios_base@std@@QEBAHXZ */
5295 DEFINE_THISCALL_WRAPPER(ios_base_rdstate
, 4)
5296 IOSB_iostate __thiscall
ios_base_rdstate(const ios_base
*this)
5298 TRACE("(%p)\n", this);
5302 /* ?setf@ios_base@std@@QAEHHH@Z */
5303 /* ?setf@ios_base@std@@QEAAHHH@Z */
5304 DEFINE_THISCALL_WRAPPER(ios_base_setf_mask
, 12)
5305 IOSB_fmtflags __thiscall
ios_base_setf_mask(ios_base
*this, IOSB_fmtflags flags
, IOSB_fmtflags mask
)
5307 IOSB_fmtflags ret
= this->fmtfl
;
5309 TRACE("(%p %x %x)\n", this, flags
, mask
);
5311 this->fmtfl
= (this->fmtfl
& (~mask
)) | (flags
& mask
& FMTFLAG_mask
);
5315 /* ?setf@ios_base@std@@QAEHH@Z */
5316 /* ?setf@ios_base@std@@QEAAHH@Z */
5317 DEFINE_THISCALL_WRAPPER(ios_base_setf
, 8)
5318 IOSB_fmtflags __thiscall
ios_base_setf(ios_base
*this, IOSB_fmtflags flags
)
5320 IOSB_fmtflags ret
= this->fmtfl
;
5322 TRACE("(%p %x)\n", this, flags
);
5324 this->fmtfl
|= flags
& FMTFLAG_mask
;
5328 /* ?setstate@ios_base@std@@QAEXH_N@Z */
5329 /* ?setstate@ios_base@std@@QEAAXH_N@Z */
5330 DEFINE_THISCALL_WRAPPER(ios_base_setstate_reraise
, 12)
5331 void __thiscall
ios_base_setstate_reraise(ios_base
*this, IOSB_iostate state
, MSVCP_bool reraise
)
5333 TRACE("(%p %x %x)\n", this, state
, reraise
);
5335 if(state
!= IOSTATE_goodbit
)
5336 ios_base_clear_reraise(this, this->state
| state
, reraise
);
5339 /* ?setstate@ios_base@std@@QAEXH@Z */
5340 /* ?setstate@ios_base@std@@QEAAXH@Z */
5341 DEFINE_THISCALL_WRAPPER(ios_base_setstate
, 8)
5342 void __thiscall
ios_base_setstate(ios_base
*this, IOSB_iostate state
)
5344 ios_base_setstate_reraise(this, state
, FALSE
);
5347 /* ?setstate@ios_base@std@@QAEXI@Z */
5348 /* ?setstate@ios_base@std@@QEAAXI@Z */
5349 DEFINE_THISCALL_WRAPPER(ios_base_setstate_unsigned
, 8)
5350 void __thiscall
ios_base_setstate_unsigned(ios_base
*this, unsigned int state
)
5352 ios_base_setstate_reraise(this, (IOSB_iostate
)state
, FALSE
);
5355 /* ?sync_with_stdio@ios_base@std@@SA_N_N@Z */
5356 MSVCP_bool __cdecl
ios_base_sync_with_stdio(MSVCP_bool sync
)
5361 TRACE("(%x)\n", sync
);
5363 _Lockit_ctor_locktype(&lock
, _LOCK_STREAM
);
5364 ret
= ios_base_Sync
;
5365 ios_base_Sync
= sync
;
5366 _Lockit_dtor(&lock
);
5370 /* ?unsetf@ios_base@std@@QAEXH@Z */
5371 /* ?unsetf@ios_base@std@@QEAAXH@Z */
5372 DEFINE_THISCALL_WRAPPER(ios_base_unsetf
, 8)
5373 void __thiscall
ios_base_unsetf(ios_base
*this, IOSB_fmtflags flags
)
5375 TRACE("(%p %x)\n", this, flags
);
5376 this->fmtfl
&= ~flags
;
5379 /* ?width@ios_base@std@@QAEHH@Z */
5380 /* ?width@ios_base@std@@QEAA_J_J@Z */
5381 #if STREAMSIZE_BITS == 64
5382 DEFINE_THISCALL_WRAPPER(ios_base_width_set
, 12)
5384 DEFINE_THISCALL_WRAPPER(ios_base_width_set
, 8)
5386 streamsize __thiscall
ios_base_width_set(ios_base
*this, streamsize width
)
5388 streamsize ret
= this->wide
;
5390 TRACE("(%p %s)\n", this, wine_dbgstr_longlong(width
));
5396 /* ?width@ios_base@std@@QBEHXZ */
5397 /* ?width@ios_base@std@@QEBA_JXZ */
5398 DEFINE_THISCALL_WRAPPER(ios_base_width_get
, 4)
5399 streamsize __thiscall
ios_base_width_get(ios_base
*this)
5401 TRACE("(%p)\n", this);
5405 /* ?xalloc@ios_base@std@@SAHXZ */
5406 int __cdecl
ios_base_xalloc(void)
5413 _Lockit_ctor_locktype(&lock
, _LOCK_STREAM
);
5414 ret
= ios_base_Index
++;
5415 _Lockit_dtor(&lock
);
5419 /* ?swap@ios_base@std@@QAEXAAV12@@Z */
5420 /* ?swap@ios_base@std@@QEAAXAEAV12@@Z */
5421 DEFINE_THISCALL_WRAPPER(ios_base_swap
, 8)
5422 void __thiscall
ios_base_swap(ios_base
*this, ios_base
*r
)
5426 TRACE("(%p %p)\n", this, r
);
5433 this->vtable
= tmp
.vtable
;
5434 tmp
.vtable
= r
->vtable
;
5438 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@IAE@XZ */
5439 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@IEAA@XZ */
5440 DEFINE_THISCALL_WRAPPER(basic_ios_char_ctor
, 4)
5441 basic_ios_char
* __thiscall
basic_ios_char_ctor(basic_ios_char
*this)
5443 TRACE("(%p)\n", this);
5445 ios_base_ctor(&this->base
);
5446 this->base
.vtable
= &MSVCP_basic_ios_char_vtable
;
5450 /* ?init@?$basic_ios@DU?$char_traits@D@std@@@std@@IAEXPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@_N@Z */
5451 /* ?init@?$basic_ios@DU?$char_traits@D@std@@@std@@IEAAXPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@_N@Z */
5452 DEFINE_THISCALL_WRAPPER(basic_ios_char_init
, 12)
5453 void __thiscall
basic_ios_char_init(basic_ios_char
*this, basic_streambuf_char
*streambuf
, MSVCP_bool isstd
)
5455 TRACE("(%p %p %x)\n", this, streambuf
, isstd
);
5456 ios_base__Init(&this->base
);
5457 this->strbuf
= streambuf
;
5458 this->stream
= NULL
;
5462 ios_base_setstate(&this->base
, IOSTATE_badbit
);
5465 FIXME("standard streams not handled yet\n");
5468 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
5469 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
5470 DEFINE_THISCALL_WRAPPER(basic_ios_char_ctor_streambuf
, 8)
5471 basic_ios_char
* __thiscall
basic_ios_char_ctor_streambuf(basic_ios_char
*this, basic_streambuf_char
*strbuf
)
5473 TRACE("(%p %p)\n", this, strbuf
);
5475 basic_ios_char_ctor(this);
5476 basic_ios_char_init(this, strbuf
, FALSE
);
5480 /* ??1?$basic_ios@DU?$char_traits@D@std@@@std@@UAE@XZ */
5481 /* ??1?$basic_ios@DU?$char_traits@D@std@@@std@@UEAA@XZ */
5482 DEFINE_THISCALL_WRAPPER(basic_ios_char_dtor
, 4)
5483 void __thiscall
basic_ios_char_dtor(basic_ios_char
*this)
5485 TRACE("(%p)\n", this);
5486 ios_base_dtor(&this->base
);
5489 DEFINE_THISCALL_WRAPPER(basic_ios_char_vector_dtor
, 8)
5490 basic_ios_char
* __thiscall
basic_ios_char_vector_dtor(basic_ios_char
*this, unsigned int flags
)
5492 TRACE("(%p %x)\n", this, flags
);
5494 /* we have an array, with the number of elements stored before the first object */
5495 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
5497 for(i
=*ptr
-1; i
>=0; i
--)
5498 basic_ios_char_dtor(this+i
);
5499 MSVCRT_operator_delete(ptr
);
5501 basic_ios_char_dtor(this);
5503 MSVCRT_operator_delete(this);
5509 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z */
5510 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXH_N@Z */
5511 DEFINE_THISCALL_WRAPPER(basic_ios_char_clear_reraise
, 12)
5512 void __thiscall
basic_ios_char_clear_reraise(basic_ios_char
*this, IOSB_iostate state
, MSVCP_bool reraise
)
5514 TRACE("(%p %x %x)\n", this, state
, reraise
);
5515 ios_base_clear_reraise(&this->base
, state
| (this->strbuf
? IOSTATE_goodbit
: IOSTATE_badbit
), reraise
);
5518 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXI@Z */
5519 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXI@Z */
5520 DEFINE_THISCALL_WRAPPER(basic_ios_char_clear
, 8)
5521 void __thiscall
basic_ios_char_clear(basic_ios_char
*this, unsigned int state
)
5523 basic_ios_char_clear_reraise(this, (IOSB_iostate
)state
, FALSE
);
5526 /* ?copyfmt@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEAAV12@ABV12@@Z */
5527 /* ?copyfmt@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEBV12@@Z */
5528 DEFINE_THISCALL_WRAPPER(basic_ios_char_copyfmt
, 8)
5529 basic_ios_char
* __thiscall
basic_ios_char_copyfmt(basic_ios_char
*this, basic_ios_char
*copy
)
5531 TRACE("(%p %p)\n", this, copy
);
5535 this->stream
= copy
->stream
;
5536 this->fillch
= copy
->fillch
;
5537 ios_base_copyfmt(&this->base
, ©
->base
);
5541 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEDD@Z */
5542 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAADD@Z */
5543 DEFINE_THISCALL_WRAPPER(basic_ios_char_fill_set
, 8)
5544 char __thiscall
basic_ios_char_fill_set(basic_ios_char
*this, char fill
)
5546 char ret
= this->fillch
;
5548 TRACE("(%p %c)\n", this, fill
);
5550 this->fillch
= fill
;
5554 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDXZ */
5555 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBADXZ */
5556 DEFINE_THISCALL_WRAPPER(basic_ios_char_fill_get
, 4)
5557 char __thiscall
basic_ios_char_fill_get(basic_ios_char
*this)
5559 TRACE("(%p)\n", this);
5560 return this->fillch
;
5563 /* ?imbue@?$basic_ios@DU?$char_traits@D@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
5564 /* ?imbue@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
5565 DEFINE_THISCALL_WRAPPER(basic_ios_char_imbue
, 12)
5566 locale
*__thiscall
basic_ios_char_imbue(basic_ios_char
*this, locale
*ret
, const locale
*loc
)
5568 TRACE("(%p %p %p)\n", this, ret
, loc
);
5571 basic_streambuf_char_pubimbue(this->strbuf
, ret
, loc
);
5575 return ios_base_imbue(&this->base
, ret
, loc
);
5578 /* ?narrow@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDDD@Z */
5579 /* ?narrow@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBADDD@Z */
5580 DEFINE_THISCALL_WRAPPER(basic_ios_char_narrow
, 12)
5581 char __thiscall
basic_ios_char_narrow(basic_ios_char
*this, char ch
, char def
)
5583 TRACE("(%p %c %c)\n", this, ch
, def
);
5584 return ctype_char_narrow_ch(ctype_char_use_facet(IOS_LOCALE(this->strbuf
)), ch
, def
);
5587 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PAV32@@Z */
5588 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PEAV32@@Z */
5589 DEFINE_THISCALL_WRAPPER(basic_ios_char_rdbuf_set
, 8)
5590 basic_streambuf_char
* __thiscall
basic_ios_char_rdbuf_set(basic_ios_char
*this, basic_streambuf_char
*streambuf
)
5592 basic_streambuf_char
*ret
= this->strbuf
;
5594 TRACE("(%p %p)\n", this, streambuf
);
5596 this->strbuf
= streambuf
;
5597 basic_ios_char_clear(this, IOSTATE_goodbit
);
5601 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ */
5602 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ */
5603 DEFINE_THISCALL_WRAPPER(basic_ios_char_rdbuf_get
, 4)
5604 basic_streambuf_char
* __thiscall
basic_ios_char_rdbuf_get(const basic_ios_char
*this)
5606 TRACE("(%p)\n", this);
5607 return this->strbuf
;
5610 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z */
5611 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXH_N@Z */
5612 DEFINE_THISCALL_WRAPPER(basic_ios_char_setstate_reraise
, 12)
5613 void __thiscall
basic_ios_char_setstate_reraise(basic_ios_char
*this, IOSB_iostate state
, MSVCP_bool reraise
)
5615 TRACE("(%p %x %x)\n", this, state
, reraise
);
5617 if(state
!= IOSTATE_goodbit
)
5618 basic_ios_char_clear_reraise(this, this->base
.state
| state
, reraise
);
5621 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXI@Z */
5622 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXI@Z */
5623 DEFINE_THISCALL_WRAPPER(basic_ios_char_setstate
, 8)
5624 void __thiscall
basic_ios_char_setstate(basic_ios_char
*this, unsigned int state
)
5626 basic_ios_char_setstate_reraise(this, (IOSB_iostate
)state
, FALSE
);
5629 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEPAV?$basic_ostream@DU?$char_traits@D@std@@@2@PAV32@@Z */
5630 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAPEAV?$basic_ostream@DU?$char_traits@D@std@@@2@PEAV32@@Z */
5631 DEFINE_THISCALL_WRAPPER(basic_ios_char_tie_set
, 8)
5632 basic_ostream_char
* __thiscall
basic_ios_char_tie_set(basic_ios_char
*this, basic_ostream_char
*ostream
)
5634 basic_ostream_char
*ret
= this->stream
;
5636 TRACE("(%p %p)\n", this, ostream
);
5638 this->stream
= ostream
;
5642 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ */
5643 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ */
5644 DEFINE_THISCALL_WRAPPER(basic_ios_char_tie_get
, 4)
5645 basic_ostream_char
* __thiscall
basic_ios_char_tie_get(const basic_ios_char
*this)
5647 TRACE("(%p)\n", this);
5648 return this->stream
;
5651 /* ?widen@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDD@Z */
5652 /* ?widen@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBADD@Z */
5653 DEFINE_THISCALL_WRAPPER(basic_ios_char_widen
, 8)
5654 char __thiscall
basic_ios_char_widen(basic_ios_char
*this, char ch
)
5656 TRACE("(%p %c)\n", this, ch
);
5657 return ctype_char_widen_ch(ctype_char_use_facet(IOS_LOCALE(this->strbuf
)), ch
);
5660 /* ?swap@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXAAV12@@Z */
5661 /* ?swap@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXAEAV12@@Z */
5662 DEFINE_THISCALL_WRAPPER(basic_ios_char_swap
, 8)
5663 void __thiscall
basic_ios_char_swap(basic_ios_char
*this, basic_ios_char
*r
)
5667 TRACE("(%p %p)\n", this, r
);
5672 ios_base_swap(&this->base
, &r
->base
);
5673 swap_ptr
= this->stream
;
5674 this->stream
= r
->stream
;
5675 r
->stream
= swap_ptr
;
5676 this->fillch
^= r
->fillch
;
5677 r
->fillch
^= this->fillch
;
5678 this->fillch
^= r
->fillch
;
5681 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@IAE@XZ */
5682 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@IEAA@XZ */
5683 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_ctor
, 4)
5684 basic_ios_wchar
* __thiscall
basic_ios_wchar_ctor(basic_ios_wchar
*this)
5686 TRACE("(%p)\n", this);
5688 ios_base_ctor(&this->base
);
5689 this->base
.vtable
= &MSVCP_basic_ios_wchar_vtable
;
5693 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@IAE@XZ */
5694 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@IEAA@XZ */
5695 DEFINE_THISCALL_WRAPPER(basic_ios_short_ctor
, 4)
5696 basic_ios_wchar
* __thiscall
basic_ios_short_ctor(basic_ios_wchar
*this)
5698 basic_ios_wchar_ctor(this);
5699 this->base
.vtable
= &MSVCP_basic_ios_short_vtable
;
5703 /* ?init@?$basic_ios@_WU?$char_traits@_W@std@@@std@@IAEXPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_N@Z */
5704 /* ?init@?$basic_ios@_WU?$char_traits@_W@std@@@std@@IEAAXPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_N@Z */
5705 /* ?init@?$basic_ios@GU?$char_traits@G@std@@@std@@IAEXPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@_N@Z */
5706 /* ?init@?$basic_ios@GU?$char_traits@G@std@@@std@@IEAAXPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@_N@Z */
5707 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_init
, 12)
5708 void __thiscall
basic_ios_wchar_init(basic_ios_wchar
*this, basic_streambuf_wchar
*streambuf
, MSVCP_bool isstd
)
5710 TRACE("(%p %p %x)\n", this, streambuf
, isstd
);
5711 ios_base__Init(&this->base
);
5712 this->strbuf
= streambuf
;
5713 this->stream
= NULL
;
5717 ios_base_setstate(&this->base
, IOSTATE_badbit
);
5720 FIXME("standard streams not handled yet\n");
5723 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
5724 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
5725 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_ctor_streambuf
, 8)
5726 basic_ios_wchar
* __thiscall
basic_ios_wchar_ctor_streambuf(basic_ios_wchar
*this, basic_streambuf_wchar
*strbuf
)
5728 TRACE("(%p %p)\n", this, strbuf
);
5730 basic_ios_wchar_ctor(this);
5731 basic_ios_wchar_init(this, strbuf
, FALSE
);
5735 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
5736 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
5737 DEFINE_THISCALL_WRAPPER(basic_ios_short_ctor_streambuf
, 8)
5738 basic_ios_wchar
* __thiscall
basic_ios_short_ctor_streambuf(basic_ios_wchar
*this, basic_streambuf_wchar
*strbuf
)
5740 basic_ios_wchar_ctor_streambuf(this, strbuf
);
5741 this->base
.vtable
= &MSVCP_basic_ios_short_vtable
;
5745 /* ??1?$basic_ios@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
5746 /* ??1?$basic_ios@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
5747 /* ??1?$basic_ios@GU?$char_traits@G@std@@@std@@UAE@XZ */
5748 /* ??1?$basic_ios@GU?$char_traits@G@std@@@std@@UEAA@XZ */
5749 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_dtor
, 4)
5750 void __thiscall
basic_ios_wchar_dtor(basic_ios_wchar
*this)
5752 TRACE("(%p)\n", this);
5753 ios_base_dtor(&this->base
);
5756 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_vector_dtor
, 8)
5757 basic_ios_wchar
* __thiscall
basic_ios_wchar_vector_dtor(basic_ios_wchar
*this, unsigned int flags
)
5759 TRACE("(%p %x)\n", this, flags
);
5761 /* we have an array, with the number of elements stored before the first object */
5762 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
5764 for(i
=*ptr
-1; i
>=0; i
--)
5765 basic_ios_wchar_dtor(this+i
);
5766 MSVCRT_operator_delete(ptr
);
5768 basic_ios_wchar_dtor(this);
5770 MSVCRT_operator_delete(this);
5776 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXH_N@Z */
5777 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXH_N@Z */
5778 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXH_N@Z */
5779 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXH_N@Z */
5780 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_clear_reraise
, 12)
5781 void __thiscall
basic_ios_wchar_clear_reraise(basic_ios_wchar
*this, IOSB_iostate state
, MSVCP_bool reraise
)
5783 TRACE("(%p %x %x)\n", this, state
, reraise
);
5784 ios_base_clear_reraise(&this->base
, state
| (this->strbuf
? IOSTATE_goodbit
: IOSTATE_badbit
), reraise
);
5787 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXI@Z */
5788 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXI@Z */
5789 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXI@Z */
5790 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXI@Z */
5791 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_clear
, 8)
5792 void __thiscall
basic_ios_wchar_clear(basic_ios_wchar
*this, unsigned int state
)
5794 basic_ios_wchar_clear_reraise(this, (IOSB_iostate
)state
, FALSE
);
5797 /* ?copyfmt@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEAAV12@ABV12@@Z */
5798 /* ?copyfmt@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEBV12@@Z */
5799 /* ?copyfmt@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEAAV12@ABV12@@Z */
5800 /* ?copyfmt@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEBV12@@Z */
5801 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_copyfmt
, 8)
5802 basic_ios_wchar
* __thiscall
basic_ios_wchar_copyfmt(basic_ios_wchar
*this, basic_ios_wchar
*copy
)
5804 TRACE("(%p %p)\n", this, copy
);
5808 this->stream
= copy
->stream
;
5809 this->fillch
= copy
->fillch
;
5810 ios_base_copyfmt(&this->base
, ©
->base
);
5814 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAE_W_W@Z */
5815 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAA_W_W@Z */
5816 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEGG@Z */
5817 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAGG@Z */
5818 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_fill_set
, 8)
5819 wchar_t __thiscall
basic_ios_wchar_fill_set(basic_ios_wchar
*this, wchar_t fill
)
5821 wchar_t ret
= this->fillch
;
5823 TRACE("(%p %c)\n", this, fill
);
5825 this->fillch
= fill
;
5829 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBE_WXZ */
5830 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBA_WXZ */
5831 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEGXZ */
5832 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAGXZ */
5833 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_fill_get
, 4)
5834 wchar_t __thiscall
basic_ios_wchar_fill_get(basic_ios_wchar
*this)
5836 TRACE("(%p)\n", this);
5837 return this->fillch
;
5840 /* ?imbue@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
5841 /* ?imbue@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
5842 /* ?imbue@?$basic_ios@GU?$char_traits@G@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
5843 /* ?imbue@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
5844 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_imbue
, 12)
5845 locale
*__thiscall
basic_ios_wchar_imbue(basic_ios_wchar
*this, locale
*ret
, const locale
*loc
)
5847 TRACE("(%p %p %p)\n", this, ret
, loc
);
5850 basic_streambuf_wchar_pubimbue(this->strbuf
, ret
, loc
);
5854 return ios_base_imbue(&this->base
, ret
, loc
);
5857 /* ?narrow@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBED_WD@Z */
5858 /* ?narrow@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBAD_WD@Z */
5859 /* ?narrow@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEDGD@Z */
5860 /* ?narrow@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBADGD@Z */
5861 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_narrow
, 12)
5862 char __thiscall
basic_ios_wchar_narrow(basic_ios_wchar
*this, wchar_t ch
, char def
)
5864 TRACE("(%p %c %c)\n", this, ch
, def
);
5865 return ctype_wchar_narrow_ch(ctype_wchar_use_facet(IOS_LOCALE(this->strbuf
)), ch
, def
);
5868 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PAV32@@Z */
5869 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PEAV32@@Z */
5870 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PAV32@@Z */
5871 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PEAV32@@Z */
5872 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_rdbuf_set
, 8)
5873 basic_streambuf_wchar
* __thiscall
basic_ios_wchar_rdbuf_set(basic_ios_wchar
*this, basic_streambuf_wchar
*streambuf
)
5875 basic_streambuf_wchar
*ret
= this->strbuf
;
5877 TRACE("(%p %p)\n", this, streambuf
);
5879 this->strbuf
= streambuf
;
5880 basic_ios_wchar_clear(this, IOSTATE_goodbit
);
5884 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@XZ */
5885 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@XZ */
5886 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@XZ */
5887 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@XZ */
5888 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_rdbuf_get
, 4)
5889 basic_streambuf_wchar
* __thiscall
basic_ios_wchar_rdbuf_get(const basic_ios_wchar
*this)
5891 TRACE("(%p)\n", this);
5892 return this->strbuf
;
5895 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXH_N@Z */
5896 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXH_N@Z */
5897 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXH_N@Z */
5898 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXH_N@Z */
5899 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_setstate_reraise
, 12)
5900 void __thiscall
basic_ios_wchar_setstate_reraise(basic_ios_wchar
*this, IOSB_iostate state
, MSVCP_bool reraise
)
5902 TRACE("(%p %x %x)\n", this, state
, reraise
);
5904 if(state
!= IOSTATE_goodbit
)
5905 basic_ios_wchar_clear_reraise(this, this->base
.state
| state
, reraise
);
5908 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXI@Z */
5909 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXI@Z */
5910 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXI@Z */
5911 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXI@Z */
5912 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_setstate
, 8)
5913 void __thiscall
basic_ios_wchar_setstate(basic_ios_wchar
*this, IOSB_iostate state
)
5915 basic_ios_wchar_setstate_reraise(this, state
, FALSE
);
5918 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEPAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@PAV32@@Z */
5919 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAPEAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@PEAV32@@Z */
5920 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEPAV?$basic_ostream@GU?$char_traits@G@std@@@2@PAV32@@Z */
5921 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAPEAV?$basic_ostream@GU?$char_traits@G@std@@@2@PEAV32@@Z */
5922 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_tie_set
, 8)
5923 basic_ostream_wchar
* __thiscall
basic_ios_wchar_tie_set(basic_ios_wchar
*this, basic_ostream_wchar
*ostream
)
5925 basic_ostream_wchar
*ret
= this->stream
;
5927 TRACE("(%p %p)\n", this, ostream
);
5929 this->stream
= ostream
;
5933 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@XZ */
5934 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@XZ */
5935 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_ostream@GU?$char_traits@G@std@@@2@XZ */
5936 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_ostream@GU?$char_traits@G@std@@@2@XZ */
5937 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_tie_get
, 4)
5938 basic_ostream_wchar
* __thiscall
basic_ios_wchar_tie_get(const basic_ios_wchar
*this)
5940 TRACE("(%p)\n", this);
5941 return this->stream
;
5944 /* ?widen@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBE_WD@Z */
5945 /* ?widen@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBA_WD@Z */
5946 /* ?widen@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEGD@Z */
5947 /* ?widen@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAGD@Z */
5948 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_widen
, 8)
5949 wchar_t __thiscall
basic_ios_wchar_widen(basic_ios_wchar
*this, char ch
)
5951 TRACE("(%p %c)\n", this, ch
);
5952 return ctype_wchar_widen_ch(ctype_wchar_use_facet(IOS_LOCALE(this->strbuf
)), ch
);
5955 /* ?swap@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXAAV12@@Z */
5956 /* ?swap@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXAEAV12@@Z */
5957 /* ?swap@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXAAV12@@Z */
5958 /* ?swap@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXAEAV12@@Z */
5959 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_swap
, 8)
5960 void __thiscall
basic_ios_wchar_swap(basic_ios_wchar
*this, basic_ios_wchar
*r
)
5964 TRACE("(%p %p)\n", this, r
);
5969 ios_base_swap(&this->base
, &r
->base
);
5970 swap_ptr
= this->stream
;
5971 this->stream
= r
->stream
;
5972 r
->stream
= swap_ptr
;
5973 this->fillch
^= r
->fillch
;
5974 r
->fillch
^= this->fillch
;
5975 this->fillch
^= r
->fillch
;
5978 /* Caution: basic_ostream uses virtual inheritance.
5979 * All constructors have additional parameter that says if base class should be initialized.
5980 * Base class needs to be accessed using vbtable.
5982 static inline basic_ios_char
* basic_ostream_char_get_basic_ios(basic_ostream_char
*this)
5984 return (basic_ios_char
*)((char*)this+this->vbtable
[1]);
5987 static inline basic_ios_char
* basic_ostream_char_to_basic_ios(basic_ostream_char
*ptr
)
5989 return (basic_ios_char
*)((char*)ptr
+basic_ostream_char_vbtable
[1]);
5992 static inline basic_ostream_char
* basic_ostream_char_from_basic_ios(basic_ios_char
*ptr
)
5994 return (basic_ostream_char
*)((char*)ptr
-basic_ostream_char_vbtable
[1]);
5997 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z */
5998 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z */
5999 DEFINE_THISCALL_WRAPPER(basic_ostream_char_ctor
, 16)
6000 basic_ostream_char
* __thiscall
basic_ostream_char_ctor(basic_ostream_char
*this,
6001 basic_streambuf_char
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
6003 basic_ios_char
*base
;
6005 TRACE("(%p %p %d %d)\n", this, strbuf
, isstd
, virt_init
);
6008 this->vbtable
= basic_ostream_char_vbtable
;
6009 base
= basic_ostream_char_get_basic_ios(this);
6010 basic_ios_char_ctor(base
);
6012 base
= basic_ostream_char_get_basic_ios(this);
6015 base
->base
.vtable
= &MSVCP_basic_ostream_char_vtable
;
6016 basic_ios_char_init(base
, strbuf
, isstd
);
6020 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@W4_Uninitialized@1@_N@Z */
6021 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA@W4_Uninitialized@1@_N@Z */
6022 DEFINE_THISCALL_WRAPPER(basic_ostream_char_ctor_uninitialized
, 16)
6023 basic_ostream_char
* __thiscall
basic_ostream_char_ctor_uninitialized(basic_ostream_char
*this,
6024 int uninitialized
, MSVCP_bool addstd
, MSVCP_bool virt_init
)
6026 basic_ios_char
*base
;
6028 TRACE("(%p %d %x)\n", this, uninitialized
, addstd
);
6031 this->vbtable
= basic_ostream_char_vbtable
;
6032 base
= basic_ostream_char_get_basic_ios(this);
6033 basic_ios_char_ctor(base
);
6035 base
= basic_ostream_char_get_basic_ios(this);
6038 base
->base
.vtable
= &MSVCP_basic_ostream_char_vtable
;
6040 ios_base_Addstd(&base
->base
);
6044 /* ??1?$basic_ostream@DU?$char_traits@D@std@@@std@@UAE@XZ */
6045 /* ??1?$basic_ostream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
6046 DEFINE_THISCALL_WRAPPER(basic_ostream_char_dtor
, 4)
6047 void __thiscall
basic_ostream_char_dtor(basic_ios_char
*base
)
6049 basic_ostream_char
*this = basic_ostream_char_from_basic_ios(base
);
6051 /* don't destroy virtual base here */
6052 TRACE("(%p)\n", this);
6055 /* ??_D?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
6056 /* ??_D?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
6057 DEFINE_THISCALL_WRAPPER(basic_ostream_char_vbase_dtor
, 4)
6058 void __thiscall
basic_ostream_char_vbase_dtor(basic_ostream_char
*this)
6060 TRACE("(%p)\n", this);
6061 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(this));
6062 basic_ios_char_dtor(basic_ostream_char_get_basic_ios(this));
6065 DEFINE_THISCALL_WRAPPER(basic_ostream_char_vector_dtor
, 8)
6066 basic_ostream_char
* __thiscall
basic_ostream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
6068 basic_ostream_char
*this = basic_ostream_char_from_basic_ios(base
);
6070 TRACE("(%p %x)\n", this, flags
);
6073 /* we have an array, with the number of elements stored before the first object */
6074 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
6076 for(i
=*ptr
-1; i
>=0; i
--)
6077 basic_ostream_char_vbase_dtor(this+i
);
6078 MSVCRT_operator_delete(ptr
);
6080 basic_ostream_char_vbase_dtor(this);
6082 MSVCRT_operator_delete(this);
6088 /* ?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ */
6089 /* ?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@XZ */
6090 DEFINE_THISCALL_WRAPPER(basic_ostream_char_flush
, 4)
6091 basic_ostream_char
* __thiscall
basic_ostream_char_flush(basic_ostream_char
*this)
6093 /* this function is not matching C++ specification */
6094 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6096 TRACE("(%p)\n", this);
6098 if(basic_ios_char_rdbuf_get(base
) && ios_base_good(&base
->base
)
6099 && basic_streambuf_char_pubsync(basic_ios_char_rdbuf_get(base
))==-1)
6100 basic_ios_char_setstate(base
, IOSTATE_badbit
);
6104 /* ?flush@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z */
6105 /* ?flush@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@1@AEAV21@@Z */
6106 basic_ostream_char
* __cdecl
flush_ostream_char(basic_ostream_char
*ostream
)
6108 return basic_ostream_char_flush(ostream
);
6111 /* ?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
6112 /* ?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
6113 DEFINE_THISCALL_WRAPPER(basic_ostream_char__Osfx
, 4)
6114 void __thiscall
basic_ostream_char__Osfx(basic_ostream_char
*this)
6116 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6118 TRACE("(%p)\n", this);
6120 if(base
->base
.fmtfl
& FMTFLAG_unitbuf
)
6121 basic_ostream_char_flush(this);
6124 /* ?osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
6125 /* ?osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
6126 DEFINE_THISCALL_WRAPPER(basic_ostream_char_osfx
, 4)
6127 void __thiscall
basic_ostream_char_osfx(basic_ostream_char
*this)
6129 TRACE("(%p)\n", this);
6130 basic_ostream_char__Osfx(this);
6133 static BOOL
basic_ostream_char_sentry_create(basic_ostream_char
*ostr
)
6135 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
6137 if(basic_ios_char_rdbuf_get(base
))
6138 call_basic_streambuf_char__Lock(base
->strbuf
);
6140 if(ios_base_good(&base
->base
) && base
->stream
)
6141 basic_ostream_char_flush(base
->stream
);
6143 return ios_base_good(&base
->base
);
6146 static void basic_ostream_char_sentry_destroy(basic_ostream_char
*ostr
)
6148 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
6150 if(ios_base_good(&base
->base
) && !__uncaught_exception())
6151 basic_ostream_char_osfx(ostr
);
6153 if(basic_ios_char_rdbuf_get(base
))
6154 call_basic_streambuf_char__Unlock(base
->strbuf
);
6157 /* ?opfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE_NXZ */
6158 /* ?opfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA_NXZ */
6159 DEFINE_THISCALL_WRAPPER(basic_ostream_char_opfx
, 4)
6160 MSVCP_bool __thiscall
basic_ostream_char_opfx(basic_ostream_char
*this)
6162 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6164 TRACE("(%p)\n", this);
6166 if(ios_base_good(&base
->base
) && base
->stream
)
6167 basic_ostream_char_flush(base
->stream
);
6168 return ios_base_good(&base
->base
);
6171 /* ?put@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@D@Z */
6172 /* ?put@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@D@Z */
6173 DEFINE_THISCALL_WRAPPER(basic_ostream_char_put
, 8)
6174 basic_ostream_char
* __thiscall
basic_ostream_char_put(basic_ostream_char
*this, char ch
)
6176 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6178 TRACE("(%p %c)\n", this, ch
);
6180 if(!basic_ostream_char_sentry_create(this)
6181 || basic_streambuf_char_sputc(base
->strbuf
, ch
)==EOF
) {
6182 basic_ostream_char_sentry_destroy(this);
6183 basic_ios_char_setstate(base
, IOSTATE_badbit
);
6187 basic_ostream_char_sentry_destroy(this);
6191 /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@JH@Z */
6192 /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JH@Z */
6193 #if STREAMOFF_BITS == 64
6194 DEFINE_THISCALL_WRAPPER(basic_ostream_char_seekp
, 16)
6196 DEFINE_THISCALL_WRAPPER(basic_ostream_char_seekp
, 12)
6198 basic_ostream_char
* __thiscall
basic_ostream_char_seekp(basic_ostream_char
*this, streamoff off
, int way
)
6200 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6202 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(off
), way
);
6204 if(!ios_base_fail(&base
->base
)) {
6207 basic_streambuf_char_pubseekoff(basic_ios_char_rdbuf_get(base
),
6208 &seek
, off
, way
, OPENMODE_out
);
6209 if(seek
.off
==-1 && seek
.pos
==0 && seek
.state
==0)
6210 basic_ios_char_setstate(base
, IOSTATE_failbit
);
6215 /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
6216 /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
6217 DEFINE_THISCALL_WRAPPER(basic_ostream_char_seekp_fpos
, 28)
6218 basic_ostream_char
* __thiscall
basic_ostream_char_seekp_fpos(basic_ostream_char
*this, fpos_int pos
)
6220 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6222 TRACE("(%p %s)\n", this, debugstr_fpos_int(&pos
));
6224 if(!ios_base_fail(&base
->base
)) {
6227 basic_streambuf_char_pubseekpos(basic_ios_char_rdbuf_get(base
),
6228 &seek
, pos
, OPENMODE_out
);
6229 if(seek
.off
==-1 && seek
.pos
==0 && seek
.state
==0)
6230 basic_ios_char_setstate(base
, IOSTATE_failbit
);
6235 /* ?tellp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@XZ */
6236 /* ?tellp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
6237 DEFINE_THISCALL_WRAPPER(basic_ostream_char_tellp
, 8)
6238 fpos_int
* __thiscall
basic_ostream_char_tellp(basic_ostream_char
*this, fpos_int
*ret
)
6240 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6242 TRACE("(%p)\n", this);
6244 if(!ios_base_fail(&base
->base
)) {
6245 basic_streambuf_char_pubseekoff(basic_ios_char_rdbuf_get(base
),
6246 ret
, 0, SEEKDIR_cur
, OPENMODE_out
);
6255 /* ?write@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@PBDH@Z */
6256 /* ?write@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEBD_J@Z */
6257 #if STREAMSIZE_BITS == 64
6258 DEFINE_THISCALL_WRAPPER(basic_ostream_char_write
, 16)
6260 DEFINE_THISCALL_WRAPPER(basic_ostream_char_write
, 12)
6262 basic_ostream_char
* __thiscall
basic_ostream_char_write(basic_ostream_char
*this, const char *str
, streamsize count
)
6264 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6266 TRACE("(%p %s %s)\n", this, debugstr_a(str
), wine_dbgstr_longlong(count
));
6268 if(!basic_ostream_char_sentry_create(this)
6269 || basic_streambuf_char_sputn(base
->strbuf
, str
, count
)!=count
) {
6270 basic_ostream_char_sentry_destroy(this);
6271 basic_ios_char_setstate(base
, IOSTATE_badbit
);
6275 basic_ostream_char_sentry_destroy(this);
6279 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@F@Z */
6280 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@F@Z */
6281 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_short
, 8)
6282 basic_ostream_char
* __thiscall
basic_ostream_char_print_short(basic_ostream_char
*this, short val
)
6284 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6285 int state
= IOSTATE_goodbit
;
6287 TRACE("(%p %d)\n", this, val
);
6289 if(basic_ostream_char_sentry_create(this)) {
6290 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6291 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6292 ostreambuf_iterator_char dest
;
6294 memset(&dest
, 0, sizeof(dest
));
6295 dest
.strbuf
= strbuf
;
6296 num_put_char_put_long(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
),
6297 (ios_base_flags_get(&base
->base
) & FMTFLAG_basefield
& (FMTFLAG_oct
| FMTFLAG_hex
))
6298 ? (LONG
)((unsigned short)val
) : (LONG
)val
);
6300 basic_ostream_char_sentry_destroy(this);
6302 basic_ios_char_setstate(base
, state
);
6306 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@G@Z */
6307 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@G@Z */
6308 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_ushort
, 8)
6309 basic_ostream_char
* __thiscall
basic_ostream_char_print_ushort(basic_ostream_char
*this, unsigned short val
)
6311 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6312 int state
= IOSTATE_goodbit
;
6314 TRACE("(%p %u)\n", this, val
);
6316 if(basic_ostream_char_sentry_create(this)) {
6317 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6318 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6319 ostreambuf_iterator_char dest
;
6321 memset(&dest
, 0, sizeof(dest
));
6322 dest
.strbuf
= strbuf
;
6323 num_put_char_put_ulong(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6325 basic_ostream_char_sentry_destroy(this);
6327 basic_ios_char_setstate(base
, state
);
6331 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@H@Z */
6332 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@H@Z */
6333 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@J@Z */
6334 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@J@Z */
6335 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_int
, 8)
6336 basic_ostream_char
* __thiscall
basic_ostream_char_print_int(basic_ostream_char
*this, int val
)
6338 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6339 int state
= IOSTATE_goodbit
;
6341 TRACE("(%p %d)\n", this, val
);
6343 if(basic_ostream_char_sentry_create(this)) {
6344 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6345 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6346 ostreambuf_iterator_char dest
;
6348 memset(&dest
, 0, sizeof(dest
));
6349 dest
.strbuf
= strbuf
;
6350 num_put_char_put_long(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6352 basic_ostream_char_sentry_destroy(this);
6354 basic_ios_char_setstate(base
, state
);
6358 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@I@Z */
6359 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@I@Z */
6360 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@K@Z */
6361 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@K@Z */
6362 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_uint
, 8)
6363 basic_ostream_char
* __thiscall
basic_ostream_char_print_uint(basic_ostream_char
*this, unsigned int val
)
6365 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6366 int state
= IOSTATE_goodbit
;
6368 TRACE("(%p %u)\n", this, val
);
6370 if(basic_ostream_char_sentry_create(this)) {
6371 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6372 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6373 ostreambuf_iterator_char dest
;
6375 memset(&dest
, 0, sizeof(dest
));
6376 dest
.strbuf
= strbuf
;
6377 num_put_char_put_ulong(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6379 basic_ostream_char_sentry_destroy(this);
6381 basic_ios_char_setstate(base
, state
);
6385 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@M@Z */
6386 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@M@Z */
6387 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_float
, 8)
6388 basic_ostream_char
* __thiscall
basic_ostream_char_print_float(basic_ostream_char
*this, float val
)
6390 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6391 int state
= IOSTATE_goodbit
;
6393 TRACE("(%p %f)\n", this, val
);
6395 if(basic_ostream_char_sentry_create(this)) {
6396 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6397 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6398 ostreambuf_iterator_char dest
;
6400 memset(&dest
, 0, sizeof(dest
));
6401 dest
.strbuf
= strbuf
;
6402 num_put_char_put_double(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6404 basic_ostream_char_sentry_destroy(this);
6406 basic_ios_char_setstate(base
, state
);
6410 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@N@Z */
6411 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@N@Z */
6412 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_double
, 12)
6413 basic_ostream_char
* __thiscall
basic_ostream_char_print_double(basic_ostream_char
*this, double val
)
6415 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6416 int state
= IOSTATE_goodbit
;
6418 TRACE("(%p %lf)\n", this, val
);
6420 if(basic_ostream_char_sentry_create(this)) {
6421 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6422 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6423 ostreambuf_iterator_char dest
;
6425 memset(&dest
, 0, sizeof(dest
));
6426 dest
.strbuf
= strbuf
;
6427 num_put_char_put_double(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6429 basic_ostream_char_sentry_destroy(this);
6431 basic_ios_char_setstate(base
, state
);
6435 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@O@Z */
6436 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@O@Z */
6437 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_ldouble
, 12)
6438 basic_ostream_char
* __thiscall
basic_ostream_char_print_ldouble(basic_ostream_char
*this, double val
)
6440 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6441 int state
= IOSTATE_goodbit
;
6443 TRACE("(%p %lf)\n", this, val
);
6445 if(basic_ostream_char_sentry_create(this)) {
6446 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6447 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6448 ostreambuf_iterator_char dest
;
6450 memset(&dest
, 0, sizeof(dest
));
6451 dest
.strbuf
= strbuf
;
6452 num_put_char_put_ldouble(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6454 basic_ostream_char_sentry_destroy(this);
6456 basic_ios_char_setstate(base
, state
);
6460 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
6461 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
6462 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_streambuf
, 8)
6463 basic_ostream_char
* __thiscall
basic_ostream_char_print_streambuf(basic_ostream_char
*this, basic_streambuf_char
*val
)
6465 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6466 IOSB_iostate state
= IOSTATE_badbit
;
6469 TRACE("(%p %p)\n", this, val
);
6471 if(basic_ostream_char_sentry_create(this)) {
6472 for(c
= basic_streambuf_char_sgetc(val
); c
!=EOF
;
6473 c
= basic_streambuf_char_snextc(val
)) {
6474 state
= IOSTATE_goodbit
;
6476 if(basic_streambuf_char_sputc(base
->strbuf
, c
) == EOF
) {
6477 state
= IOSTATE_badbit
;
6482 state
= IOSTATE_badbit
;
6484 basic_ostream_char_sentry_destroy(this);
6486 ios_base_width_set(&base
->base
, 0);
6487 basic_ios_char_setstate(base
, state
);
6491 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@PBX@Z */
6492 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@PEBX@Z */
6493 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_ptr
, 8)
6494 basic_ostream_char
* __thiscall
basic_ostream_char_print_ptr(basic_ostream_char
*this, const void *val
)
6496 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6497 int state
= IOSTATE_goodbit
;
6499 TRACE("(%p %p)\n", this, val
);
6501 if(basic_ostream_char_sentry_create(this)) {
6502 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6503 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6504 ostreambuf_iterator_char dest
;
6506 memset(&dest
, 0, sizeof(dest
));
6507 dest
.strbuf
= strbuf
;
6508 num_put_char_put_ptr(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6510 basic_ostream_char_sentry_destroy(this);
6512 basic_ios_char_setstate(base
, state
);
6516 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@_J@Z */
6517 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@_J@Z */
6518 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_int64
, 12)
6519 basic_ostream_char
* __thiscall
basic_ostream_char_print_int64(basic_ostream_char
*this, __int64 val
)
6521 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6522 int state
= IOSTATE_goodbit
;
6524 TRACE("(%p)\n", this);
6526 if(basic_ostream_char_sentry_create(this)) {
6527 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6528 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6529 ostreambuf_iterator_char dest
;
6531 memset(&dest
, 0, sizeof(dest
));
6532 dest
.strbuf
= strbuf
;
6533 num_put_char_put_int64(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6535 basic_ostream_char_sentry_destroy(this);
6537 basic_ios_char_setstate(base
, state
);
6541 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@_K@Z */
6542 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@_K@Z */
6543 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_uint64
, 12)
6544 basic_ostream_char
* __thiscall
basic_ostream_char_print_uint64(basic_ostream_char
*this, unsigned __int64 val
)
6546 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6547 int state
= IOSTATE_goodbit
;
6549 TRACE("(%p)\n", this);
6551 if(basic_ostream_char_sentry_create(this)) {
6552 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6553 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6554 ostreambuf_iterator_char dest
;
6556 memset(&dest
, 0, sizeof(dest
));
6557 dest
.strbuf
= strbuf
;
6558 num_put_char_put_uint64(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6560 basic_ostream_char_sentry_destroy(this);
6562 basic_ios_char_setstate(base
, state
);
6566 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@_N@Z */
6567 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@_N@Z */
6568 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_bool
, 8)
6569 basic_ostream_char
* __thiscall
basic_ostream_char_print_bool(basic_ostream_char
*this, MSVCP_bool val
)
6571 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6572 int state
= IOSTATE_goodbit
;
6574 TRACE("(%p %x)\n", this, val
);
6576 if(basic_ostream_char_sentry_create(this)) {
6577 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6578 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6579 ostreambuf_iterator_char dest
;
6581 memset(&dest
, 0, sizeof(dest
));
6582 dest
.strbuf
= strbuf
;
6583 num_put_char_put_bool(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6585 basic_ostream_char_sentry_destroy(this);
6587 basic_ios_char_setstate(base
, state
);
6591 /* ?ends@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z */
6592 /* ?ends@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@1@AEAV21@@Z */
6593 basic_ostream_char
* __cdecl
basic_ostream_char_ends(basic_ostream_char
*ostr
)
6595 TRACE("(%p)\n", ostr
);
6597 basic_ostream_char_put(ostr
, 0);
6601 /* ?endl@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z */
6602 /* ?endl@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@1@AEAV21@@Z */
6603 basic_ostream_char
* __cdecl
basic_ostream_char_endl(basic_ostream_char
*ostr
)
6605 TRACE("(%p)\n", ostr
);
6607 basic_ostream_char_put(ostr
, '\n');
6608 basic_ostream_char_flush(ostr
);
6612 /* ??$?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 */
6613 /* ??$?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 */
6614 basic_ostream_char
* __cdecl
basic_ostream_char_print_bstr(basic_ostream_char
*ostr
, const basic_string_char
*str
)
6616 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
6617 IOSB_iostate state
= IOSTATE_goodbit
;
6619 TRACE("(%p %p)\n", ostr
, str
);
6621 if(basic_ostream_char_sentry_create(ostr
)) {
6622 MSVCP_size_t len
= MSVCP_basic_string_char_length(str
);
6623 streamsize pad
= (base
->base
.wide
>len
? base
->base
.wide
-len
: 0);
6625 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
6626 for(; pad
!=0; pad
--) {
6627 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
6628 state
= IOSTATE_badbit
;
6634 if(state
== IOSTATE_goodbit
) {
6635 if(basic_streambuf_char_sputn(base
->strbuf
, MSVCP_basic_string_char_c_str(str
), len
) != len
)
6636 state
= IOSTATE_badbit
;
6639 if(state
== IOSTATE_goodbit
) {
6640 for(; pad
!=0; pad
--) {
6641 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
6642 state
= IOSTATE_badbit
;
6648 base
->base
.wide
= 0;
6650 state
= IOSTATE_badbit
;
6652 basic_ostream_char_sentry_destroy(ostr
);
6654 basic_ios_char_setstate(base
, state
);
6658 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@C@Z */
6659 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@C@Z */
6660 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@D@Z */
6661 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@D@Z */
6662 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@E@Z */
6663 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@E@Z */
6664 basic_ostream_char
* __cdecl
basic_ostream_char_print_ch(basic_ostream_char
*ostr
, char ch
)
6666 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
6667 IOSB_iostate state
= IOSTATE_goodbit
;
6669 TRACE("(%p %d)\n", ostr
, ch
);
6671 if(basic_ostream_char_sentry_create(ostr
)) {
6672 streamsize pad
= (base
->base
.wide
>1 ? base
->base
.wide
-1 : 0);
6674 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
6675 for(; pad
!=0; pad
--) {
6676 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
6677 state
= IOSTATE_badbit
;
6683 if(state
== IOSTATE_goodbit
) {
6684 if(basic_streambuf_char_sputc(base
->strbuf
, ch
) == EOF
)
6685 state
= IOSTATE_badbit
;
6688 if(state
== IOSTATE_goodbit
) {
6689 for(; pad
!=0; pad
--) {
6690 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
6691 state
= IOSTATE_badbit
;
6697 base
->base
.wide
= 0;
6699 state
= IOSTATE_badbit
;
6701 basic_ostream_char_sentry_destroy(ostr
);
6703 basic_ios_char_setstate(base
, state
);
6707 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBC@Z */
6708 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBC@Z */
6709 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z */
6710 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBD@Z */
6711 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBE@Z */
6712 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBE@Z */
6713 basic_ostream_char
* __cdecl
basic_ostream_char_print_str(basic_ostream_char
*ostr
, const char *str
)
6715 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
6716 IOSB_iostate state
= IOSTATE_goodbit
;
6718 TRACE("(%p %s)\n", ostr
, str
);
6720 if(basic_ostream_char_sentry_create(ostr
)) {
6721 MSVCP_size_t len
= strlen(str
);
6722 streamsize pad
= (base
->base
.wide
>len
? base
->base
.wide
-len
: 0);
6724 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
6725 for(; pad
!=0; pad
--) {
6726 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
6727 state
= IOSTATE_badbit
;
6733 if(state
== IOSTATE_goodbit
) {
6734 if(basic_streambuf_char_sputn(base
->strbuf
, str
, len
) != len
)
6735 state
= IOSTATE_badbit
;
6738 if(state
== IOSTATE_goodbit
) {
6739 for(; pad
!=0; pad
--) {
6740 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
6741 state
= IOSTATE_badbit
;
6747 base
->base
.wide
= 0;
6749 state
= IOSTATE_badbit
;
6751 basic_ostream_char_sentry_destroy(ostr
);
6753 basic_ios_char_setstate(base
, state
);
6757 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
6758 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
6759 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_func
, 8)
6760 basic_ostream_char
* __thiscall
basic_ostream_char_print_func(basic_ostream_char
*this,
6761 basic_ostream_char
* (__cdecl
*pfunc
)(basic_ostream_char
*))
6763 TRACE("(%p %p)\n", this, pfunc
);
6768 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@DU?$char_traits@D@std@@@1@AAV21@@Z@Z */
6769 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@DU?$char_traits@D@std@@@1@AEAV21@@Z@Z */
6770 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_func_basic_ios
, 8)
6771 basic_ostream_char
* __thiscall
basic_ostream_char_print_func_basic_ios(basic_ostream_char
*this,
6772 basic_ios_char
* (__cdecl
*pfunc
)(basic_ios_char
*))
6774 TRACE("(%p %p)\n", this, pfunc
);
6775 pfunc(basic_ostream_char_get_basic_ios(this));
6779 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
6780 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
6781 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_func_ios_base
, 8)
6782 basic_ostream_char
* __thiscall
basic_ostream_char_print_func_ios_base(
6783 basic_ostream_char
*this, ios_base
* (__cdecl
*pfunc
)(ios_base
*))
6785 TRACE("(%p %p)\n", this, pfunc
);
6786 pfunc(&basic_ostream_char_get_basic_ios(this)->base
);
6790 /* ?swap@?$basic_ostream@DU?$char_traits@D@std@@@std@@IAEXAAV12@@Z */
6791 /* ?swap@?$basic_ostream@DU?$char_traits@D@std@@@std@@IEAAXAEAV12@@Z */
6792 DEFINE_THISCALL_WRAPPER(basic_ostream_char_swap
, 8)
6793 void __thiscall
basic_ostream_char_swap(basic_ostream_char
*this, basic_ostream_char
*r
)
6795 TRACE("(%p %p)\n", this, r
);
6800 basic_ios_char_swap(basic_ostream_char_get_basic_ios(this),
6801 basic_ostream_char_get_basic_ios(r
));
6804 /* Caution: basic_ostream uses virtual inheritance. */
6805 static inline basic_ios_wchar
* basic_ostream_wchar_get_basic_ios(basic_ostream_wchar
*this)
6807 return (basic_ios_wchar
*)((char*)this+this->vbtable
[1]);
6810 static inline basic_ios_wchar
* basic_ostream_wchar_to_basic_ios(basic_ostream_wchar
*ptr
)
6812 return (basic_ios_wchar
*)((char*)ptr
+basic_ostream_wchar_vbtable
[1]);
6815 static inline basic_ostream_wchar
* basic_ostream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
6817 return (basic_ostream_wchar
*)((char*)ptr
-basic_ostream_wchar_vbtable
[1]);
6820 /* ??0?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N@Z */
6821 /* ??0?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N@Z */
6822 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_ctor
, 16)
6823 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_ctor(basic_ostream_wchar
*this,
6824 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
6826 basic_ios_wchar
*base
;
6828 TRACE("(%p %p %d %d)\n", this, strbuf
, isstd
, virt_init
);
6831 this->vbtable
= basic_ostream_wchar_vbtable
;
6832 base
= basic_ostream_wchar_get_basic_ios(this);
6833 basic_ios_wchar_ctor(base
);
6835 base
= basic_ostream_wchar_get_basic_ios(this);
6838 base
->base
.vtable
= &MSVCP_basic_ostream_wchar_vtable
;
6839 basic_ios_wchar_init(base
, strbuf
, isstd
);
6843 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N@Z */
6844 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N@Z */
6845 DEFINE_THISCALL_WRAPPER(basic_ostream_short_ctor
, 16)
6846 basic_ostream_wchar
* __thiscall
basic_ostream_short_ctor(basic_ostream_wchar
*this,
6847 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
6849 basic_ostream_wchar_ctor(this, strbuf
, isstd
, virt_init
);
6850 basic_ostream_wchar_get_basic_ios(this)->base
.vtable
= &MSVCP_basic_ostream_short_vtable
;
6854 /* ??0?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAE@W4_Uninitialized@1@_N@Z */
6855 /* ??0?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA@W4_Uninitialized@1@_N@Z */
6856 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_ctor_uninitialized
, 16)
6857 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_ctor_uninitialized(basic_ostream_wchar
*this,
6858 int uninitialized
, MSVCP_bool addstd
, MSVCP_bool virt_init
)
6860 basic_ios_wchar
*base
;
6862 TRACE("(%p %d %x)\n", this, uninitialized
, addstd
);
6865 this->vbtable
= basic_ostream_wchar_vbtable
;
6866 base
= basic_ostream_wchar_get_basic_ios(this);
6867 basic_ios_wchar_ctor(base
);
6869 base
= basic_ostream_wchar_get_basic_ios(this);
6872 base
->base
.vtable
= &MSVCP_basic_ostream_wchar_vtable
;
6874 ios_base_Addstd(&base
->base
);
6878 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE@W4_Uninitialized@1@_N@Z */
6879 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA@W4_Uninitialized@1@_N@Z */
6880 DEFINE_THISCALL_WRAPPER(basic_ostream_short_ctor_uninitialized
, 16)
6881 basic_ostream_wchar
* __thiscall
basic_ostream_short_ctor_uninitialized(basic_ostream_wchar
*this,
6882 int uninitialized
, MSVCP_bool addstd
, MSVCP_bool virt_init
)
6884 basic_ostream_wchar_ctor_uninitialized(this, uninitialized
, addstd
, virt_init
);
6885 basic_ostream_wchar_get_basic_ios(this)->base
.vtable
= &MSVCP_basic_ostream_short_vtable
;
6889 /* ??1?$basic_ostream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
6890 /* ??1?$basic_ostream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
6891 /* ??1?$basic_ostream@GU?$char_traits@G@std@@@std@@UAE@XZ */
6892 /* ??1?$basic_ostream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
6893 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_dtor
, 4)
6894 void __thiscall
basic_ostream_wchar_dtor(basic_ios_wchar
*base
)
6896 basic_ostream_wchar
*this = basic_ostream_wchar_from_basic_ios(base
);
6898 /* don't destroy virtual base here */
6899 TRACE("(%p)\n", this);
6902 /* ??_D?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
6903 /* ??_D?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
6904 /* ??_D?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
6905 /* ??_D?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
6906 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_vbase_dtor
, 4)
6907 void __thiscall
basic_ostream_wchar_vbase_dtor(basic_ostream_wchar
*this)
6909 TRACE("(%p)\n", this);
6910 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(this));
6911 basic_ios_wchar_dtor(basic_ostream_wchar_get_basic_ios(this));
6914 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_vector_dtor
, 8)
6915 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
6917 basic_ostream_wchar
*this = basic_ostream_wchar_from_basic_ios(base
);
6919 TRACE("(%p %x)\n", this, flags
);
6922 /* we have an array, with the number of elements stored before the first object */
6923 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
6925 for(i
=*ptr
-1; i
>=0; i
--)
6926 basic_ostream_wchar_vbase_dtor(this+i
);
6927 MSVCRT_operator_delete(ptr
);
6929 basic_ostream_wchar_vbase_dtor(this);
6931 MSVCRT_operator_delete(this);
6937 /* ?flush@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@XZ */
6938 /* ?flush@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@XZ */
6939 /* ?flush@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@XZ */
6940 /* ?flush@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@XZ */
6941 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_flush
, 4)
6942 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_flush(basic_ostream_wchar
*this)
6944 /* this function is not matching C++ specification */
6945 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6947 TRACE("(%p)\n", this);
6949 if(basic_ios_wchar_rdbuf_get(base
) && ios_base_good(&base
->base
)
6950 && basic_streambuf_wchar_pubsync(basic_ios_wchar_rdbuf_get(base
))==-1)
6951 basic_ios_wchar_setstate(base
, IOSTATE_badbit
);
6955 /* ?flush@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AAV21@@Z */
6956 /* ?flush@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AEAV21@@Z */
6957 /* ?flush@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@1@AAV21@@Z */
6958 /* ?flush@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@1@AEAV21@@Z */
6959 basic_ostream_wchar
* __cdecl
flush_ostream_wchar(basic_ostream_wchar
*ostream
)
6961 return basic_ostream_wchar_flush(ostream
);
6964 /* ?_Osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
6965 /* ?_Osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
6966 /* ?_Osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
6967 /* ?_Osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
6968 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar__Osfx
, 4)
6969 void __thiscall
basic_ostream_wchar__Osfx(basic_ostream_wchar
*this)
6971 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6973 TRACE("(%p)\n", this);
6975 if(base
->base
.fmtfl
& FMTFLAG_unitbuf
)
6976 basic_ostream_wchar_flush(this);
6979 /* ?osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
6980 /* ?osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
6981 /* ?osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
6982 /* ?osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
6983 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_osfx
, 4)
6984 void __thiscall
basic_ostream_wchar_osfx(basic_ostream_wchar
*this)
6986 TRACE("(%p)\n", this);
6987 basic_ostream_wchar__Osfx(this);
6990 static BOOL
basic_ostream_wchar_sentry_create(basic_ostream_wchar
*ostr
)
6992 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
6994 if(basic_ios_wchar_rdbuf_get(base
))
6995 basic_streambuf_wchar__Lock(base
->strbuf
);
6997 if(ios_base_good(&base
->base
) && base
->stream
)
6998 basic_ostream_wchar_flush(base
->stream
);
7000 return ios_base_good(&base
->base
);
7003 static void basic_ostream_wchar_sentry_destroy(basic_ostream_wchar
*ostr
)
7005 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
7007 if(ios_base_good(&base
->base
) && !__uncaught_exception())
7008 basic_ostream_wchar_osfx(ostr
);
7010 if(basic_ios_wchar_rdbuf_get(base
))
7011 basic_streambuf_wchar__Unlock(base
->strbuf
);
7014 /* ?opfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAE_NXZ */
7015 /* ?opfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA_NXZ */
7016 /* ?opfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE_NXZ */
7017 /* ?opfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA_NXZ */
7018 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_opfx
, 4)
7019 MSVCP_bool __thiscall
basic_ostream_wchar_opfx(basic_ostream_wchar
*this)
7021 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7023 TRACE("(%p)\n", this);
7025 if(ios_base_good(&base
->base
) && base
->stream
)
7026 basic_ostream_wchar_flush(base
->stream
);
7027 return ios_base_good(&base
->base
);
7030 /* ?put@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@_W@Z */
7031 /* ?put@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_W@Z */
7032 /* ?put@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@G@Z */
7033 /* ?put@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@G@Z */
7034 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_put
, 8)
7035 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_put(basic_ostream_wchar
*this, wchar_t ch
)
7037 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7039 TRACE("(%p %c)\n", this, ch
);
7041 if(!basic_ostream_wchar_sentry_create(this)
7042 || basic_streambuf_wchar_sputc(base
->strbuf
, ch
)==WEOF
) {
7043 basic_ostream_wchar_sentry_destroy(this);
7044 basic_ios_wchar_setstate(base
, IOSTATE_badbit
);
7048 basic_ostream_wchar_sentry_destroy(this);
7052 /* ?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@JH@Z */
7053 /* ?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_JH@Z */
7054 /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@JH@Z */
7055 /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JH@Z */
7056 #if STREAMOFF_BITS == 64
7057 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_seekp
, 16)
7059 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_seekp
, 12)
7061 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_seekp(basic_ostream_wchar
*this, streamoff off
, int way
)
7063 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7065 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(off
), way
);
7067 if(!ios_base_fail(&base
->base
)) {
7070 basic_streambuf_wchar_pubseekoff(basic_ios_wchar_rdbuf_get(base
),
7071 &seek
, off
, way
, OPENMODE_out
);
7072 if(seek
.off
==-1 && seek
.pos
==0 && seek
.state
==0)
7073 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
7078 /* ?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
7079 /* ?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
7080 /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
7081 /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
7082 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_seekp_fpos
, 28)
7083 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_seekp_fpos(basic_ostream_wchar
*this, fpos_int pos
)
7085 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7087 TRACE("(%p %s)\n", this, debugstr_fpos_int(&pos
));
7089 if(!ios_base_fail(&base
->base
)) {
7092 basic_streambuf_wchar_pubseekpos(basic_ios_wchar_rdbuf_get(base
),
7093 &seek
, pos
, OPENMODE_out
);
7094 if(seek
.off
==-1 && seek
.pos
==0 && seek
.state
==0)
7095 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
7100 /* ?tellp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@XZ */
7101 /* ?tellp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
7102 /* ?tellp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@XZ */
7103 /* ?tellp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
7104 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_tellp
, 8)
7105 fpos_int
* __thiscall
basic_ostream_wchar_tellp(basic_ostream_wchar
*this, fpos_int
*ret
)
7107 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7109 TRACE("(%p)\n", this);
7111 if(!ios_base_fail(&base
->base
)) {
7112 basic_streambuf_wchar_pubseekoff(basic_ios_wchar_rdbuf_get(base
),
7113 ret
, 0, SEEKDIR_cur
, OPENMODE_out
);
7122 /* ?write@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PB_WH@Z */
7123 /* ?write@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEB_W_J@Z */
7124 /* ?write@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@PBGH@Z */
7125 /* ?write@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEBG_J@Z */
7126 #if STREAMSIZE_BITS == 64
7127 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_write
, 16)
7129 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_write
, 12)
7131 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_write(basic_ostream_wchar
*this, const wchar_t *str
, streamsize count
)
7133 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7135 TRACE("(%p %s %s)\n", this, debugstr_w(str
), wine_dbgstr_longlong(count
));
7137 if(!basic_ostream_wchar_sentry_create(this)
7138 || basic_streambuf_wchar_sputn(base
->strbuf
, str
, count
)!=count
) {
7139 basic_ostream_wchar_sentry_destroy(this);
7140 basic_ios_wchar_setstate(base
, IOSTATE_badbit
);
7144 basic_ostream_wchar_sentry_destroy(this);
7148 static basic_ostream_wchar
* basic_ostream_print_short(basic_ostream_wchar
*this, short val
, const num_put
*numput
)
7150 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7151 int state
= IOSTATE_goodbit
;
7153 TRACE("(%p %d)\n", this, val
);
7155 if(basic_ostream_wchar_sentry_create(this)) {
7156 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7157 ostreambuf_iterator_wchar dest
;
7159 memset(&dest
, 0, sizeof(dest
));
7160 dest
.strbuf
= strbuf
;
7161 num_put_wchar_put_long(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
),
7162 (ios_base_flags_get(&base
->base
) & FMTFLAG_basefield
& (FMTFLAG_oct
| FMTFLAG_hex
))
7163 ? (LONG
)((unsigned short)val
) : (LONG
)val
);
7165 basic_ostream_wchar_sentry_destroy(this);
7167 basic_ios_wchar_setstate(base
, state
);
7171 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@F@Z */
7172 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@F@Z */
7173 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_short
, 8)
7174 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_short(basic_ostream_wchar
*this, short val
)
7176 return basic_ostream_print_short(this, val
, num_put_wchar_use_facet(
7177 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7180 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@F@Z */
7181 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@F@Z */
7182 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_short
, 8)
7183 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_short(basic_ostream_wchar
*this, short val
)
7185 return basic_ostream_print_short(this, val
, num_put_short_use_facet(
7186 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7189 static basic_ostream_wchar
* basic_ostream_print_ushort(basic_ostream_wchar
*this, unsigned short val
, const num_put
*numput
)
7191 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7192 int state
= IOSTATE_goodbit
;
7194 TRACE("(%p %d)\n", this, val
);
7196 if(basic_ostream_wchar_sentry_create(this)) {
7197 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7198 ostreambuf_iterator_wchar dest
;
7200 memset(&dest
, 0, sizeof(dest
));
7201 dest
.strbuf
= strbuf
;
7202 num_put_wchar_put_ulong(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7204 basic_ostream_wchar_sentry_destroy(this);
7206 basic_ios_wchar_setstate(base
, state
);
7210 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@G@Z */
7211 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@G@Z */
7212 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_ushort
, 8)
7213 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_ushort(basic_ostream_wchar
*this, unsigned short val
)
7215 return basic_ostream_print_ushort(this, val
, num_put_wchar_use_facet(
7216 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7219 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@G@Z */
7220 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@G@Z */
7221 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_ushort
, 8)
7222 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_ushort(basic_ostream_wchar
*this, unsigned short val
)
7224 return basic_ostream_print_ushort(this, val
, num_put_short_use_facet(
7225 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7228 /* ??6std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@0@AAV10@G@Z */
7229 /* ??6std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@0@AEAV10@G@Z */
7230 basic_ostream_wchar
* __cdecl
basic_ostream_short_print_ushort_global(basic_ostream_wchar
*ostr
, unsigned short val
)
7232 return basic_ostream_print_ushort(ostr
, val
, num_put_short_use_facet(
7233 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(ostr
)))));
7236 static basic_ostream_wchar
* basic_ostream_print_int(basic_ostream_wchar
*this, int val
, const num_put
*numput
)
7238 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7239 int state
= IOSTATE_goodbit
;
7241 TRACE("(%p %d)\n", this, val
);
7243 if(basic_ostream_wchar_sentry_create(this)) {
7244 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7245 ostreambuf_iterator_wchar dest
;
7247 memset(&dest
, 0, sizeof(dest
));
7248 dest
.strbuf
= strbuf
;
7249 num_put_wchar_put_long(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7251 basic_ostream_wchar_sentry_destroy(this);
7253 basic_ios_wchar_setstate(base
, state
);
7257 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@H@Z */
7258 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@H@Z */
7259 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@J@Z */
7260 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@J@Z */
7261 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_int
, 8)
7262 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_int(basic_ostream_wchar
*this, int val
)
7264 return basic_ostream_print_int(this, val
, num_put_wchar_use_facet(
7265 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7268 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@H@Z */
7269 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@H@Z */
7270 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@J@Z */
7271 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@J@Z */
7272 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_int
, 8)
7273 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_int(basic_ostream_wchar
*this, int val
)
7275 return basic_ostream_print_int(this, val
, num_put_short_use_facet(
7276 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7279 static basic_ostream_wchar
* basic_ostream_print_uint(basic_ostream_wchar
*this, unsigned int val
, const num_put
*numput
)
7281 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7282 int state
= IOSTATE_goodbit
;
7284 TRACE("(%p %u)\n", this, val
);
7286 if(basic_ostream_wchar_sentry_create(this)) {
7287 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7288 ostreambuf_iterator_wchar dest
;
7290 memset(&dest
, 0, sizeof(dest
));
7291 dest
.strbuf
= strbuf
;
7292 num_put_wchar_put_ulong(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7294 basic_ostream_wchar_sentry_destroy(this);
7296 basic_ios_wchar_setstate(base
, state
);
7300 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@I@Z */
7301 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@I@Z */
7302 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@K@Z */
7303 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@K@Z */
7304 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_uint
, 8)
7305 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_uint(basic_ostream_wchar
*this, unsigned int val
)
7307 return basic_ostream_print_uint(this, val
, num_put_wchar_use_facet(
7308 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7311 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@I@Z */
7312 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@I@Z */
7313 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@K@Z */
7314 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@K@Z */
7315 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_uint
, 8)
7316 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_uint(basic_ostream_wchar
*this, unsigned int val
)
7318 return basic_ostream_print_uint(this, val
, num_put_short_use_facet(
7319 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7322 static basic_ostream_wchar
* basic_ostream_print_float(basic_ostream_wchar
*this, float val
, const num_put
*numput
)
7324 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7325 int state
= IOSTATE_goodbit
;
7327 TRACE("(%p %f)\n", this, val
);
7329 if(basic_ostream_wchar_sentry_create(this)) {
7330 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7331 ostreambuf_iterator_wchar dest
;
7333 memset(&dest
, 0, sizeof(dest
));
7334 dest
.strbuf
= strbuf
;
7335 num_put_wchar_put_double(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7337 basic_ostream_wchar_sentry_destroy(this);
7339 basic_ios_wchar_setstate(base
, state
);
7343 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@M@Z */
7344 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@M@Z */
7345 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_float
, 8)
7346 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_float(basic_ostream_wchar
*this, float val
)
7348 return basic_ostream_print_float(this, val
, num_put_wchar_use_facet(
7349 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7352 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@M@Z */
7353 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@M@Z */
7354 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_float
, 8)
7355 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_float(basic_ostream_wchar
*this, float val
)
7357 return basic_ostream_print_float(this, val
, num_put_short_use_facet(
7358 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7361 static basic_ostream_wchar
* basic_ostream_print_double(basic_ostream_wchar
*this, double val
, const num_put
*numput
)
7363 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7364 int state
= IOSTATE_goodbit
;
7366 TRACE("(%p %lf)\n", this, val
);
7368 if(basic_ostream_wchar_sentry_create(this)) {
7369 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7370 ostreambuf_iterator_wchar dest
;
7372 memset(&dest
, 0, sizeof(dest
));
7373 dest
.strbuf
= strbuf
;
7374 num_put_wchar_put_double(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7376 basic_ostream_wchar_sentry_destroy(this);
7378 basic_ios_wchar_setstate(base
, state
);
7382 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@N@Z */
7383 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@N@Z */
7384 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_double
, 12)
7385 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_double(basic_ostream_wchar
*this, double val
)
7387 return basic_ostream_print_double(this, val
, num_put_wchar_use_facet(
7388 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7391 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@N@Z */
7392 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@N@Z */
7393 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_double
, 12)
7394 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_double(basic_ostream_wchar
*this, double val
)
7396 return basic_ostream_print_double(this, val
, num_put_short_use_facet(
7397 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7400 static basic_ostream_wchar
* basic_ostream_print_ldouble(basic_ostream_wchar
*this, double val
, const num_put
*numput
)
7402 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7403 int state
= IOSTATE_goodbit
;
7405 TRACE("(%p %lf)\n", this, val
);
7407 if(basic_ostream_wchar_sentry_create(this)) {
7408 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7409 ostreambuf_iterator_wchar dest
;
7411 memset(&dest
, 0, sizeof(dest
));
7412 dest
.strbuf
= strbuf
;
7413 num_put_wchar_put_ldouble(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7415 basic_ostream_wchar_sentry_destroy(this);
7417 basic_ios_wchar_setstate(base
, state
);
7421 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@O@Z */
7422 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@O@Z */
7423 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_ldouble
, 12)
7424 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_ldouble(basic_ostream_wchar
*this, double val
)
7426 return basic_ostream_print_ldouble(this, val
, num_put_wchar_use_facet(
7427 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7430 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@O@Z */
7431 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@O@Z */
7432 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_ldouble
, 12)
7433 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_ldouble(basic_ostream_wchar
*this, double val
)
7435 return basic_ostream_print_ldouble(this, val
, num_put_short_use_facet(
7436 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7439 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
7440 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
7441 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
7442 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
7443 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_streambuf
, 8)
7444 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_streambuf(basic_ostream_wchar
*this, basic_streambuf_wchar
*val
)
7446 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7447 IOSB_iostate state
= IOSTATE_badbit
;
7448 unsigned short c
= '\n';
7450 TRACE("(%p %p)\n", this, val
);
7452 if(basic_ostream_wchar_sentry_create(this)) {
7453 for(c
= basic_streambuf_wchar_sgetc(val
); c
!=WEOF
;
7454 c
= basic_streambuf_wchar_snextc(val
)) {
7455 state
= IOSTATE_goodbit
;
7457 if(basic_streambuf_wchar_sputc(base
->strbuf
, c
) == WEOF
) {
7458 state
= IOSTATE_badbit
;
7463 state
= IOSTATE_badbit
;
7465 basic_ostream_wchar_sentry_destroy(this);
7467 ios_base_width_set(&base
->base
, 0);
7468 basic_ios_wchar_setstate(base
, state
);
7472 static basic_ostream_wchar
* basic_ostream_print_ptr(basic_ostream_wchar
*this, const void *val
, const num_put
*numput
)
7474 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7475 int state
= IOSTATE_goodbit
;
7477 TRACE("(%p %p)\n", this, val
);
7479 if(basic_ostream_wchar_sentry_create(this)) {
7480 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7481 ostreambuf_iterator_wchar dest
;
7483 memset(&dest
, 0, sizeof(dest
));
7484 dest
.strbuf
= strbuf
;
7485 num_put_wchar_put_ptr(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7487 basic_ostream_wchar_sentry_destroy(this);
7489 basic_ios_wchar_setstate(base
, state
);
7493 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@PBX@Z */
7494 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@PEBX@Z */
7495 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_ptr
, 8)
7496 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_ptr(basic_ostream_wchar
*this, const void *val
)
7498 return basic_ostream_print_ptr(this, val
, num_put_wchar_use_facet(
7499 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7502 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@PBX@Z */
7503 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@PEBX@Z */
7504 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_ptr
, 8)
7505 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_ptr(basic_ostream_wchar
*this, const void *val
)
7507 return basic_ostream_print_ptr(this, val
, num_put_short_use_facet(
7508 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7511 static basic_ostream_wchar
* basic_ostream_print_int64(basic_ostream_wchar
*this, __int64 val
, const num_put
*numput
)
7513 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7514 int state
= IOSTATE_goodbit
;
7516 TRACE("(%p)\n", this);
7518 if(basic_ostream_wchar_sentry_create(this)) {
7519 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7520 ostreambuf_iterator_wchar dest
;
7522 memset(&dest
, 0, sizeof(dest
));
7523 dest
.strbuf
= strbuf
;
7524 num_put_wchar_put_int64(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7526 basic_ostream_wchar_sentry_destroy(this);
7528 basic_ios_wchar_setstate(base
, state
);
7532 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@_J@Z */
7533 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@_J@Z */
7534 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_int64
, 12)
7535 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_int64(basic_ostream_wchar
*this, __int64 val
)
7537 return basic_ostream_print_int64(this, val
, num_put_wchar_use_facet(
7538 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7541 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@_J@Z */
7542 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@_J@Z */
7543 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_int64
, 12)
7544 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_int64(basic_ostream_wchar
*this, __int64 val
)
7546 return basic_ostream_print_int64(this, val
, num_put_short_use_facet(
7547 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7550 static basic_ostream_wchar
* basic_ostream_print_uint64(basic_ostream_wchar
*this, unsigned __int64 val
, const num_put
*numput
)
7552 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7553 int state
= IOSTATE_goodbit
;
7555 TRACE("(%p)\n", this);
7557 if(basic_ostream_wchar_sentry_create(this)) {
7558 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7559 ostreambuf_iterator_wchar dest
;
7561 memset(&dest
, 0, sizeof(dest
));
7562 dest
.strbuf
= strbuf
;
7563 num_put_wchar_put_uint64(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7565 basic_ostream_wchar_sentry_destroy(this);
7567 basic_ios_wchar_setstate(base
, state
);
7571 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@_K@Z */
7572 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@_K@Z */
7573 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_uint64
, 12)
7574 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_uint64(basic_ostream_wchar
*this, unsigned __int64 val
)
7576 return basic_ostream_print_uint64(this, val
, num_put_wchar_use_facet(
7577 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7580 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@_K@Z */
7581 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@_K@Z */
7582 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_uint64
, 12)
7583 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_uint64(basic_ostream_wchar
*this, unsigned __int64 val
)
7585 return basic_ostream_print_uint64(this, val
, num_put_short_use_facet(
7586 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7589 static basic_ostream_wchar
* basic_ostream_print_bool(basic_ostream_wchar
*this, MSVCP_bool val
, const num_put
*numput
)
7591 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7592 int state
= IOSTATE_goodbit
;
7594 TRACE("(%p %x)\n", this, val
);
7596 if(basic_ostream_wchar_sentry_create(this)) {
7597 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7598 ostreambuf_iterator_wchar dest
;
7600 memset(&dest
, 0, sizeof(dest
));
7601 dest
.strbuf
= strbuf
;
7602 num_put_wchar_put_bool(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7604 basic_ostream_wchar_sentry_destroy(this);
7606 basic_ios_wchar_setstate(base
, state
);
7610 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@_N@Z */
7611 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@_N@Z */
7612 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_bool
, 8)
7613 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_bool(basic_ostream_wchar
*this, MSVCP_bool val
)
7615 return basic_ostream_print_bool(this, val
, num_put_wchar_use_facet(
7616 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7619 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@_N@Z */
7620 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@_N@Z */
7621 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_bool
, 8)
7622 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_bool(basic_ostream_wchar
*this, MSVCP_bool val
)
7624 return basic_ostream_print_bool(this, val
, num_put_short_use_facet(
7625 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7628 /* ?ends@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AAV21@@Z */
7629 /* ?ends@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AEAV21@@Z */
7630 /* ?ends@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@1@AAV21@@Z */
7631 /* ?ends@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@1@AEAV21@@Z */
7632 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_ends(basic_ostream_wchar
*ostr
)
7634 TRACE("(%p)\n", ostr
);
7636 basic_ostream_wchar_put(ostr
, 0);
7640 /* ?endl@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AAV21@@Z */
7641 /* ?endl@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AEAV21@@Z */
7642 /* ?endl@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@1@AAV21@@Z */
7643 /* ?endl@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@1@AEAV21@@Z */
7644 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_endl(basic_ostream_wchar
*ostr
)
7646 TRACE("(%p)\n", ostr
);
7648 basic_ostream_wchar_put(ostr
, '\n');
7649 basic_ostream_wchar_flush(ostr
);
7653 /* ??$?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 */
7654 /* ??$?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 */
7655 /* ??$?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 */
7656 /* ??$?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 */
7657 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_print_bstr(basic_ostream_wchar
*ostr
, const basic_string_wchar
*str
)
7659 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
7660 IOSB_iostate state
= IOSTATE_goodbit
;
7662 TRACE("(%p %p)\n", ostr
, str
);
7664 if(basic_ostream_wchar_sentry_create(ostr
)) {
7665 MSVCP_size_t len
= MSVCP_basic_string_wchar_length(str
);
7666 streamsize pad
= (base
->base
.wide
>len
? base
->base
.wide
-len
: 0);
7668 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
7669 for(; pad
!=0; pad
--) {
7670 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
7671 state
= IOSTATE_badbit
;
7677 if(state
== IOSTATE_goodbit
) {
7678 if(basic_streambuf_wchar_sputn(base
->strbuf
, MSVCP_basic_string_wchar_c_str(str
), len
) != len
)
7679 state
= IOSTATE_badbit
;
7682 if(state
== IOSTATE_goodbit
) {
7683 for(; pad
!=0; pad
--) {
7684 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
7685 state
= IOSTATE_badbit
;
7691 base
->base
.wide
= 0;
7693 state
= IOSTATE_badbit
;
7695 basic_ostream_wchar_sentry_destroy(ostr
);
7697 basic_ios_wchar_setstate(base
, state
);
7701 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AAV10@_W@Z */
7702 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AEAV10@_W@Z */
7703 /* ??$?6GU?$char_traits@G@std@@@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@0@AAV10@G@Z */
7704 /* ??$?6GU?$char_traits@G@std@@@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@0@AEAV10@G@Z */
7705 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_print_ch(basic_ostream_wchar
*ostr
, wchar_t ch
)
7707 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
7708 IOSB_iostate state
= IOSTATE_goodbit
;
7710 TRACE("(%p %d)\n", ostr
, ch
);
7712 if(basic_ostream_wchar_sentry_create(ostr
)) {
7713 streamsize pad
= (base
->base
.wide
>1 ? base
->base
.wide
-1 : 0);
7715 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
7716 for(; pad
!=0; pad
--) {
7717 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
7718 state
= IOSTATE_badbit
;
7724 if(state
== IOSTATE_goodbit
) {
7725 if(basic_streambuf_wchar_sputc(base
->strbuf
, ch
) == WEOF
)
7726 state
= IOSTATE_badbit
;
7729 if(state
== IOSTATE_goodbit
) {
7730 for(; pad
!=0; pad
--) {
7731 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
7732 state
= IOSTATE_badbit
;
7738 base
->base
.wide
= 0;
7740 state
= IOSTATE_badbit
;
7742 basic_ostream_wchar_sentry_destroy(ostr
);
7744 basic_ios_wchar_setstate(base
, state
);
7748 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AAV10@PB_W@Z */
7749 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AEAV10@PEB_W@Z */
7750 /* ??$?6GU?$char_traits@G@std@@@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@0@AAV10@PBG@Z */
7751 /* ??$?6GU?$char_traits@G@std@@@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@0@AEAV10@PEBG@Z */
7752 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_print_str(basic_ostream_wchar
*ostr
, const wchar_t *str
)
7754 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
7755 IOSB_iostate state
= IOSTATE_goodbit
;
7757 TRACE("(%p %s)\n", ostr
, debugstr_w(str
));
7759 if(basic_ostream_wchar_sentry_create(ostr
)) {
7760 MSVCP_size_t len
= wcslen(str
);
7761 streamsize pad
= (base
->base
.wide
>len
? base
->base
.wide
-len
: 0);
7763 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
7764 for(; pad
!=0; pad
--) {
7765 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
7766 state
= IOSTATE_badbit
;
7772 if(state
== IOSTATE_goodbit
) {
7773 if(basic_streambuf_wchar_sputn(base
->strbuf
, str
, len
) != len
)
7774 state
= IOSTATE_badbit
;
7777 if(state
== IOSTATE_goodbit
) {
7778 for(; pad
!=0; pad
--) {
7779 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
7780 state
= IOSTATE_badbit
;
7786 base
->base
.wide
= 0;
7788 state
= IOSTATE_badbit
;
7790 basic_ostream_wchar_sentry_destroy(ostr
);
7792 basic_ios_wchar_setstate(base
, state
);
7796 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
7797 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
7798 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
7799 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
7800 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_func
, 8)
7801 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_func(basic_ostream_wchar
*this,
7802 basic_ostream_wchar
* (__cdecl
*pfunc
)(basic_ostream_wchar
*))
7804 TRACE("(%p %p)\n", this, pfunc
);
7809 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AAV21@@Z@Z */
7810 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AEAV21@@Z@Z */
7811 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@GU?$char_traits@G@std@@@1@AAV21@@Z@Z */
7812 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@GU?$char_traits@G@std@@@1@AEAV21@@Z@Z */
7813 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_func_basic_ios
, 8)
7814 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_func_basic_ios(basic_ostream_wchar
*this,
7815 basic_ios_wchar
* (__cdecl
*pfunc
)(basic_ios_wchar
*))
7817 TRACE("(%p %p)\n", this, pfunc
);
7818 pfunc(basic_ostream_wchar_get_basic_ios(this));
7822 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
7823 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
7824 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
7825 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
7826 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_func_ios_base
, 8)
7827 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_func_ios_base(
7828 basic_ostream_wchar
*this, ios_base
* (__cdecl
*pfunc
)(ios_base
*))
7830 TRACE("(%p %p)\n", this, pfunc
);
7831 pfunc(&basic_ostream_wchar_get_basic_ios(this)->base
);
7835 /* ?swap@?$basic_ostream@GU?$char_traits@G@std@@@std@@IAEXAAV12@@Z */
7836 /* ?swap@?$basic_ostream@GU?$char_traits@G@std@@@std@@IEAAXAEAV12@@Z */
7837 /* ?swap@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@IAEXAAV12@@Z */
7838 /* ?swap@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@IEAAXAEAV12@@Z */
7839 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_swap
, 8)
7840 void __thiscall
basic_ostream_wchar_swap(basic_ostream_wchar
*this, basic_ostream_wchar
*r
)
7842 TRACE("(%p %p)\n", this, r
);
7847 basic_ios_wchar_swap(basic_ostream_wchar_get_basic_ios(this),
7848 basic_ostream_wchar_get_basic_ios(r
));
7851 /* Caution: basic_istream uses virtual inheritance. */
7852 static inline basic_ios_char
* basic_istream_char_get_basic_ios(basic_istream_char
*this)
7854 return (basic_ios_char
*)((char*)this+this->vbtable
[1]);
7857 static inline basic_ios_char
* basic_istream_char_to_basic_ios(basic_istream_char
*ptr
)
7859 return (basic_ios_char
*)((char*)ptr
+basic_istream_char_vbtable
[1]);
7862 static inline basic_istream_char
* basic_istream_char_from_basic_ios(basic_ios_char
*ptr
)
7864 return (basic_istream_char
*)((char*)ptr
-basic_istream_char_vbtable
[1]);
7867 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N1@Z */
7868 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N1@Z */
7869 DEFINE_THISCALL_WRAPPER(basic_istream_char_ctor_init
, 20)
7870 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
)
7872 basic_ios_char
*base
;
7874 TRACE("(%p %p %d %d %d)\n", this, strbuf
, isstd
, noinit
, virt_init
);
7877 this->vbtable
= basic_istream_char_vbtable
;
7878 base
= basic_istream_char_get_basic_ios(this);
7879 basic_ios_char_ctor(base
);
7881 base
= basic_istream_char_get_basic_ios(this);
7884 base
->base
.vtable
= &MSVCP_basic_istream_char_vtable
;
7887 basic_ios_char_init(base
, strbuf
, isstd
);
7891 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z */
7892 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z */
7893 DEFINE_THISCALL_WRAPPER(basic_istream_char_ctor
, 16)
7894 basic_istream_char
* __thiscall
basic_istream_char_ctor(basic_istream_char
*this, basic_streambuf_char
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
7896 return basic_istream_char_ctor_init(this, strbuf
, isstd
, FALSE
, virt_init
);
7899 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QAE@W4_Uninitialized@1@@Z */
7900 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
7901 DEFINE_THISCALL_WRAPPER(basic_istream_char_ctor_uninitialized
, 12)
7902 basic_istream_char
* __thiscall
basic_istream_char_ctor_uninitialized(basic_istream_char
*this, int uninitialized
, MSVCP_bool virt_init
)
7904 basic_ios_char
*base
;
7906 TRACE("(%p %d %d)\n", this, uninitialized
, virt_init
);
7909 this->vbtable
= basic_istream_char_vbtable
;
7910 base
= basic_istream_char_get_basic_ios(this);
7911 basic_ios_char_ctor(base
);
7913 base
= basic_istream_char_get_basic_ios(this);
7916 base
->base
.vtable
= &MSVCP_basic_istream_char_vtable
;
7917 ios_base_Addstd(&base
->base
);
7921 /* ??1?$basic_istream@DU?$char_traits@D@std@@@std@@UAE@XZ */
7922 /* ??1?$basic_istream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
7923 DEFINE_THISCALL_WRAPPER(basic_istream_char_dtor
, 4)
7924 void __thiscall
basic_istream_char_dtor(basic_ios_char
*base
)
7926 basic_istream_char
*this = basic_istream_char_from_basic_ios(base
);
7928 /* don't destroy virtual base here */
7929 TRACE("(%p)\n", this);
7932 /* ??_D?$basic_istream@DU?$char_traits@D@std@@@std@@QAEXXZ */
7933 /* ??_D?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
7934 DEFINE_THISCALL_WRAPPER(basic_istream_char_vbase_dtor
, 4)
7935 void __thiscall
basic_istream_char_vbase_dtor(basic_istream_char
*this)
7937 TRACE("(%p)\n", this);
7938 basic_istream_char_dtor(basic_istream_char_to_basic_ios(this));
7939 basic_ios_char_dtor(basic_istream_char_get_basic_ios(this));
7942 DEFINE_THISCALL_WRAPPER(basic_istream_char_vector_dtor
, 8)
7943 basic_istream_char
* __thiscall
basic_istream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
7945 basic_istream_char
*this = basic_istream_char_from_basic_ios(base
);
7947 TRACE("(%p %x)\n", this, flags
);
7950 /* we have an array, with the number of elements stored before the first object */
7951 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
7953 for(i
=*ptr
-1; i
>=0; i
--)
7954 basic_istream_char_vbase_dtor(this+i
);
7955 MSVCRT_operator_delete(ptr
);
7957 basic_istream_char_vbase_dtor(this);
7959 MSVCRT_operator_delete(this);
7965 /* ?_Ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QAE_N_N@Z */
7966 /* ?_Ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_N_N@Z */
7967 DEFINE_THISCALL_WRAPPER(basic_istream_char__Ipfx
, 8)
7968 MSVCP_bool __thiscall
basic_istream_char__Ipfx(basic_istream_char
*this, MSVCP_bool noskip
)
7970 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7972 TRACE("(%p %d)\n", this, noskip
);
7974 if(ios_base_good(&base
->base
)) {
7975 if(basic_ios_char_tie_get(base
))
7976 basic_ostream_char_flush(basic_ios_char_tie_get(base
));
7978 if(!noskip
&& (ios_base_flags_get(&base
->base
) & FMTFLAG_skipws
)) {
7979 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7980 const ctype_char
*ctype
= ctype_char_use_facet(IOS_LOCALE(base
->strbuf
));
7983 for(ch
= basic_streambuf_char_sgetc(strbuf
); ;
7984 ch
= basic_streambuf_char_snextc(strbuf
)) {
7986 basic_ios_char_setstate(base
, IOSTATE_eofbit
);
7990 if(!ctype_char_is_ch(ctype
, _SPACE
|_BLANK
, ch
))
7996 if(!ios_base_good(&base
->base
)) {
7997 basic_ios_char_setstate(base
, IOSTATE_failbit
);
8004 /* ?ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QAE_N_N@Z */
8005 /* ?ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_N_N@Z */
8006 DEFINE_THISCALL_WRAPPER(basic_istream_char_ipfx
, 8)
8007 MSVCP_bool __thiscall
basic_istream_char_ipfx(basic_istream_char
*this, MSVCP_bool noskip
)
8009 return basic_istream_char__Ipfx(this, noskip
);
8012 /* ?isfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEXXZ */
8013 /* ?isfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
8014 DEFINE_THISCALL_WRAPPER(basic_istream_char_isfx
, 4)
8015 void __thiscall
basic_istream_char_isfx(basic_istream_char
*this)
8017 TRACE("(%p)\n", this);
8020 static BOOL
basic_istream_char_sentry_create(basic_istream_char
*istr
, MSVCP_bool noskip
)
8022 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istr
);
8024 if(basic_ios_char_rdbuf_get(base
))
8025 call_basic_streambuf_char__Lock(base
->strbuf
);
8027 return basic_istream_char_ipfx(istr
, noskip
);
8030 static void basic_istream_char_sentry_destroy(basic_istream_char
*istr
)
8032 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istr
);
8034 if(basic_ios_char_rdbuf_get(base
))
8035 call_basic_streambuf_char__Unlock(base
->strbuf
);
8038 /* ?gcount@?$basic_istream@DU?$char_traits@D@std@@@std@@QBEHXZ */
8039 /* ?gcount@?$basic_istream@DU?$char_traits@D@std@@@std@@QEBA_JXZ */
8040 /* ?gcount@?$basic_istream@DU?$char_traits@D@std@@@std@@QBA_JXZ */
8041 /* ?gcount@?$basic_istream@DU?$char_traits@D@std@@@std@@QBE_JXZ */
8042 DEFINE_THISCALL_WRAPPER(basic_istream_char_gcount
, 4)
8043 streamsize __thiscall
basic_istream_char_gcount(const basic_istream_char
*this)
8045 TRACE("(%p)\n", this);
8049 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHXZ */
8050 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAHXZ */
8051 DEFINE_THISCALL_WRAPPER(basic_istream_char_get
, 4)
8052 int __thiscall
basic_istream_char_get(basic_istream_char
*this)
8054 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8057 TRACE("(%p)\n", this);
8061 if(!basic_istream_char_sentry_create(this, TRUE
)) {
8062 basic_istream_char_sentry_destroy(this);
8066 ret
= basic_streambuf_char_sbumpc(basic_ios_char_rdbuf_get(base
));
8067 basic_istream_char_sentry_destroy(this);
8069 basic_ios_char_setstate(base
, IOSTATE_eofbit
|IOSTATE_failbit
);
8076 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@AAD@Z */
8077 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEAD@Z */
8078 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_ch
, 8)
8079 basic_istream_char
* __thiscall
basic_istream_char_get_ch(basic_istream_char
*this, char *ch
)
8083 TRACE("(%p %p)\n", this, ch
);
8085 ret
= basic_istream_char_get(this);
8091 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADHD@Z */
8092 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_JD@Z */
8093 #if STREAMSIZE_BITS == 64
8094 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str_delim
, 20)
8096 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str_delim
, 16)
8098 basic_istream_char
* __thiscall
basic_istream_char_get_str_delim(basic_istream_char
*this, char *str
, streamsize count
, char delim
)
8100 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8103 TRACE("(%p %p %s %c)\n", this, str
, wine_dbgstr_longlong(count
), delim
);
8107 if(basic_istream_char_sentry_create(this, TRUE
)) {
8108 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8110 for(ch
= basic_streambuf_char_sgetc(strbuf
); count
>1;
8111 ch
= basic_streambuf_char_snextc(strbuf
)) {
8112 if(ch
==EOF
|| ch
==delim
)
8120 basic_istream_char_sentry_destroy(this);
8122 basic_ios_char_setstate(base
, (!this->count
? IOSTATE_failbit
: IOSTATE_goodbit
) |
8123 (ch
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
8129 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADH@Z */
8130 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z */
8131 #if STREAMSIZE_BITS == 64
8132 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str
, 16)
8134 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str
, 12)
8136 basic_istream_char
* __thiscall
basic_istream_char_get_str(basic_istream_char
*this, char *str
, streamsize count
)
8138 return basic_istream_char_get_str_delim(this, str
, count
, '\n');
8141 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@AAV?$basic_streambuf@DU?$char_traits@D@std@@@2@D@Z */
8142 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@D@Z */
8143 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_streambuf_delim
, 12)
8144 basic_istream_char
* __thiscall
basic_istream_char_get_streambuf_delim(basic_istream_char
*this, basic_streambuf_char
*strbuf
, char delim
)
8146 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8149 TRACE("(%p %p %c)\n", this, strbuf
, delim
);
8153 if(basic_istream_char_sentry_create(this, TRUE
)) {
8154 basic_streambuf_char
*strbuf_read
= basic_ios_char_rdbuf_get(base
);
8156 for(ch
= basic_streambuf_char_sgetc(strbuf_read
); ;
8157 ch
= basic_streambuf_char_snextc(strbuf_read
)) {
8158 if(ch
==EOF
|| ch
==delim
)
8161 if(basic_streambuf_char_sputc(strbuf
, ch
) == EOF
)
8166 basic_istream_char_sentry_destroy(this);
8168 basic_ios_char_setstate(base
, (!this->count
? IOSTATE_failbit
: IOSTATE_goodbit
) |
8169 (ch
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
8173 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@AAV?$basic_streambuf@DU?$char_traits@D@std@@@2@@Z */
8174 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@@Z */
8175 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_streambuf
, 8)
8176 basic_istream_char
* __thiscall
basic_istream_char_get_streambuf(basic_istream_char
*this, basic_streambuf_char
*strbuf
)
8178 return basic_istream_char_get_streambuf_delim(this, strbuf
, '\n');
8181 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADHD@Z */
8182 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_JD@Z */
8183 #if STREAMSIZE_BITS == 64
8184 DEFINE_THISCALL_WRAPPER(basic_istream_char_getline_delim
, 20)
8186 DEFINE_THISCALL_WRAPPER(basic_istream_char_getline_delim
, 16)
8188 basic_istream_char
* __thiscall
basic_istream_char_getline_delim(basic_istream_char
*this, char *str
, streamsize count
, char delim
)
8190 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8191 int ch
= (unsigned char)delim
;
8193 TRACE("(%p %p %s %c)\n", this, str
, wine_dbgstr_longlong(count
), delim
);
8197 if(basic_istream_char_sentry_create(this, TRUE
) && count
>0) {
8198 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8201 ch
= basic_streambuf_char_sbumpc(strbuf
);
8203 if(ch
==EOF
|| ch
==(unsigned char)delim
)
8211 if(ch
== (unsigned char)delim
)
8213 else if(ch
!= EOF
) {
8214 ch
= basic_streambuf_char_sgetc(strbuf
);
8216 if(ch
== (unsigned char)delim
) {
8217 basic_streambuf_char__Gninc(strbuf
);
8222 basic_istream_char_sentry_destroy(this);
8224 basic_ios_char_setstate(base
, (ch
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
) |
8225 (!this->count
|| (ch
!=(unsigned char)delim
&& ch
!=EOF
) ? IOSTATE_failbit
: IOSTATE_goodbit
));
8231 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADH@Z */
8232 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z */
8233 #if STREAMSIZE_BITS == 64
8234 DEFINE_THISCALL_WRAPPER(basic_istream_char_getline
, 16)
8236 DEFINE_THISCALL_WRAPPER(basic_istream_char_getline
, 12)
8238 basic_istream_char
* __thiscall
basic_istream_char_getline(basic_istream_char
*this, char *str
, streamsize count
)
8240 return basic_istream_char_getline_delim(this, str
, count
, '\n');
8243 /* ?ignore@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@HH@Z */
8244 /* ?ignore@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JH@Z */
8245 #if STREAMSIZE_BITS == 64
8246 DEFINE_THISCALL_WRAPPER(basic_istream_char_ignore
, 16)
8248 DEFINE_THISCALL_WRAPPER(basic_istream_char_ignore
, 12)
8250 basic_istream_char
* __thiscall
basic_istream_char_ignore(basic_istream_char
*this, streamsize count
, int delim
)
8252 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8253 int ch
= (unsigned char)delim
;
8256 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(count
), delim
);
8260 if(basic_istream_char_sentry_create(this, TRUE
)) {
8261 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8262 state
= IOSTATE_goodbit
;
8265 ch
= basic_streambuf_char_sbumpc(strbuf
);
8268 state
= IOSTATE_eofbit
;
8272 if(ch
==(unsigned char)delim
)
8276 if(count
!= INT_MAX
)
8280 state
= IOSTATE_failbit
;
8281 basic_istream_char_sentry_destroy(this);
8283 basic_ios_char_setstate(base
, state
);
8287 /* ?ws@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@1@AAV21@@Z */
8288 /* ?ws@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@1@AEAV21@@Z */
8289 basic_istream_char
* __cdecl
ws_basic_istream_char(basic_istream_char
*istream
)
8291 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istream
);
8294 TRACE("(%p)\n", istream
);
8296 if(basic_istream_char_sentry_create(istream
, TRUE
)) {
8297 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8298 const ctype_char
*ctype
= ctype_char_use_facet(IOS_LOCALE(strbuf
));
8300 for(ch
= basic_streambuf_char_sgetc(strbuf
); ctype_char_is_ch(ctype
, _SPACE
, ch
);
8301 ch
= basic_streambuf_char_snextc(strbuf
)) {
8306 basic_istream_char_sentry_destroy(istream
);
8309 basic_ios_char_setstate(base
, IOSTATE_eofbit
);
8313 /* ?peek@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHXZ */
8314 /* ?peek@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAHXZ */
8315 DEFINE_THISCALL_WRAPPER(basic_istream_char_peek
, 4)
8316 int __thiscall
basic_istream_char_peek(basic_istream_char
*this)
8318 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8321 TRACE("(%p)\n", this);
8325 if(basic_istream_char_sentry_create(this, TRUE
))
8326 ret
= basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base
));
8327 basic_istream_char_sentry_destroy(this);
8330 basic_ios_char_setstate(base
, IOSTATE_eofbit
);
8335 /* ?_Read_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADIH@Z */
8336 /* ?_Read_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_K_J@Z */
8337 #if STREAMSIZE_BITS == 64
8338 DEFINE_THISCALL_WRAPPER(basic_istream_char__Read_s
, 20)
8340 DEFINE_THISCALL_WRAPPER(basic_istream_char__Read_s
, 16)
8342 basic_istream_char
* __thiscall
basic_istream_char__Read_s(basic_istream_char
*this, char *str
, MSVCP_size_t size
, streamsize count
)
8344 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8345 IOSB_iostate state
= IOSTATE_goodbit
;
8347 TRACE("(%p %p %lu %s)\n", this, str
, size
, wine_dbgstr_longlong(count
));
8349 if(basic_istream_char_sentry_create(this, TRUE
)) {
8350 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8352 this->count
= basic_streambuf_char__Sgetn_s(strbuf
, str
, size
, count
);
8353 if(this->count
!= count
)
8354 state
|= IOSTATE_failbit
| IOSTATE_eofbit
;
8358 basic_istream_char_sentry_destroy(this);
8360 basic_ios_char_setstate(base
, state
);
8364 /* ?read@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADH@Z */
8365 /* ?read@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z */
8366 #if STREAMSIZE_BITS == 64
8367 DEFINE_THISCALL_WRAPPER(basic_istream_char_read
, 16)
8369 DEFINE_THISCALL_WRAPPER(basic_istream_char_read
, 12)
8371 basic_istream_char
* __thiscall
basic_istream_char_read(basic_istream_char
*this, char *str
, streamsize count
)
8373 return basic_istream_char__Read_s(this, str
, -1, count
);
8376 /* ?_Readsome_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHPADIH@Z */
8377 /* ?_Readsome_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_K_J@Z */
8378 #if STREAMSIZE_BITS == 64
8379 DEFINE_THISCALL_WRAPPER(basic_istream_char__Readsome_s
, 20)
8381 DEFINE_THISCALL_WRAPPER(basic_istream_char__Readsome_s
, 16)
8383 streamsize __thiscall
basic_istream_char__Readsome_s(basic_istream_char
*this, char *str
, MSVCP_size_t size
, streamsize count
)
8385 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8386 IOSB_iostate state
= IOSTATE_goodbit
;
8388 TRACE("(%p %p %lu %s)\n", this, str
, size
, wine_dbgstr_longlong(count
));
8392 if(basic_istream_char_sentry_create(this, TRUE
)) {
8393 streamsize avail
= basic_streambuf_char_in_avail(basic_ios_char_rdbuf_get(base
));
8398 state
|= IOSTATE_eofbit
;
8400 basic_istream_char__Read_s(this, str
, size
, avail
);
8402 state
|= IOSTATE_failbit
;
8404 basic_istream_char_sentry_destroy(this);
8406 basic_ios_char_setstate(base
, state
);
8410 /* ?readsome@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHPADH@Z */
8411 /* ?readsome@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_J@Z */
8412 #if STREAMSIZE_BITS == 64
8413 DEFINE_THISCALL_WRAPPER(basic_istream_char_readsome
, 16)
8415 DEFINE_THISCALL_WRAPPER(basic_istream_char_readsome
, 12)
8417 streamsize __thiscall
basic_istream_char_readsome(basic_istream_char
*this, char *str
, streamsize count
)
8419 return basic_istream_char__Readsome_s(this, str
, count
, count
);
8422 /* ?putback@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@D@Z */
8423 /* ?putback@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@D@Z */
8424 DEFINE_THISCALL_WRAPPER(basic_istream_char_putback
, 8)
8425 basic_istream_char
* __thiscall
basic_istream_char_putback(basic_istream_char
*this, char ch
)
8427 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8428 IOSB_iostate state
= IOSTATE_goodbit
;
8430 TRACE("(%p %c)\n", this, ch
);
8434 if(basic_istream_char_sentry_create(this, TRUE
)) {
8435 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8437 if(!ios_base_good(&base
->base
))
8438 state
|= IOSTATE_failbit
;
8439 else if(!strbuf
|| basic_streambuf_char_sputbackc(strbuf
, ch
)==EOF
)
8440 state
|= IOSTATE_badbit
;
8442 basic_istream_char_sentry_destroy(this);
8444 basic_ios_char_setstate(base
, state
);
8448 /* ?unget@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ */
8449 /* ?unget@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@XZ */
8450 DEFINE_THISCALL_WRAPPER(basic_istream_char_unget
, 4)
8451 basic_istream_char
* __thiscall
basic_istream_char_unget(basic_istream_char
*this)
8453 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8454 IOSB_iostate state
= IOSTATE_goodbit
;
8456 TRACE("(%p)\n", this);
8460 if(basic_istream_char_sentry_create(this, TRUE
)) {
8461 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8463 if(!ios_base_good(&base
->base
))
8464 state
|= IOSTATE_failbit
;
8465 else if(!strbuf
|| basic_streambuf_char_sungetc(strbuf
)==EOF
)
8466 state
|= IOSTATE_badbit
;
8468 basic_istream_char_sentry_destroy(this);
8470 basic_ios_char_setstate(base
, state
);
8474 /* ?sync@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHXZ */
8475 /* ?sync@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAHXZ */
8476 DEFINE_THISCALL_WRAPPER(basic_istream_char_sync
, 4)
8477 int __thiscall
basic_istream_char_sync(basic_istream_char
*this)
8479 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8480 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8482 TRACE("(%p)\n", this);
8487 if(basic_istream_char_sentry_create(this, TRUE
)) {
8488 if(basic_streambuf_char_pubsync(strbuf
) != -1) {
8489 basic_istream_char_sentry_destroy(this);
8493 basic_istream_char_sentry_destroy(this);
8495 basic_ios_char_setstate(base
, IOSTATE_badbit
);
8499 /* ?tellg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@XZ */
8500 /* ?tellg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
8501 DEFINE_THISCALL_WRAPPER(basic_istream_char_tellg
, 8)
8502 fpos_int
* __thiscall
basic_istream_char_tellg(basic_istream_char
*this, fpos_int
*ret
)
8504 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8506 TRACE("(%p %p)\n", this, ret
);
8508 if(ios_base_fail(&base
->base
)) {
8515 basic_streambuf_char_pubseekoff(basic_ios_char_rdbuf_get(base
),
8516 ret
, 0, SEEKDIR_cur
, OPENMODE_in
);
8518 if(ret
->off
==-1 && ret
->pos
==0 && ret
->state
==0)
8519 basic_ios_char_setstate(base
, IOSTATE_failbit
);
8524 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@JW4seekdir@ios_base@2@@Z */
8525 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JW4seekdir@ios_base@2@@Z */
8526 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@JH@Z */
8527 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JH@Z */
8528 #if STREAMOFF_BITS == 64
8529 DEFINE_THISCALL_WRAPPER(basic_istream_char_seekg
, 16)
8531 DEFINE_THISCALL_WRAPPER(basic_istream_char_seekg
, 12)
8533 basic_istream_char
* __thiscall
basic_istream_char_seekg(basic_istream_char
*this, streamoff off
, int dir
)
8535 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8537 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(off
), dir
);
8539 if(!ios_base_fail(&base
->base
)) {
8540 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8543 basic_streambuf_char_pubseekoff(strbuf
, &ret
, off
, dir
, OPENMODE_in
);
8545 if(ret
.off
==-1 && ret
.pos
==0 && ret
.state
==0)
8546 basic_ios_char_setstate(base
, IOSTATE_failbit
);
8548 basic_ios_char_clear(base
, IOSTATE_goodbit
);
8551 basic_ios_char_clear(base
, IOSTATE_goodbit
);
8556 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
8557 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
8558 DEFINE_THISCALL_WRAPPER(basic_istream_char_seekg_fpos
, 28)
8559 basic_istream_char
* __thiscall
basic_istream_char_seekg_fpos(basic_istream_char
*this, fpos_int pos
)
8561 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8563 TRACE("(%p %s)\n", this, debugstr_fpos_int(&pos
));
8565 if(!ios_base_fail(&base
->base
)) {
8566 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8569 basic_streambuf_char_pubseekpos(strbuf
, &ret
, pos
, OPENMODE_in
);
8571 if(ret
.off
==-1 && ret
.pos
==0 && ret
.state
==0)
8572 basic_ios_char_setstate(base
, IOSTATE_failbit
);
8574 basic_ios_char_clear(base
, IOSTATE_goodbit
);
8577 basic_ios_char_clear(base
, IOSTATE_goodbit
);
8582 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAF@Z */
8583 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAF@Z */
8584 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_short
, 8)
8585 basic_istream_char
* __thiscall
basic_istream_char_read_short(basic_istream_char
*this, short *v
)
8587 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8588 int state
= IOSTATE_goodbit
;
8590 TRACE("(%p %p)\n", this, v
);
8592 if(basic_istream_char_sentry_create(this, FALSE
)) {
8593 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8594 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8595 istreambuf_iterator_char first
={0}, last
={0};
8598 first
.strbuf
= strbuf
;
8599 num_get_char_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, &tmp
);
8601 if(!(state
&IOSTATE_failbit
) && tmp
==(LONG
)((short)tmp
))
8604 state
|= IOSTATE_failbit
;
8606 basic_istream_char_sentry_destroy(this);
8608 basic_ios_char_setstate(base
, state
);
8612 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAG@Z */
8613 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAG@Z */
8614 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ushort
, 8)
8615 basic_istream_char
* __thiscall
basic_istream_char_read_ushort(basic_istream_char
*this, unsigned short *v
)
8617 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8618 int state
= IOSTATE_goodbit
;
8620 TRACE("(%p %p)\n", this, v
);
8622 if(basic_istream_char_sentry_create(this, FALSE
)) {
8623 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8624 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8625 istreambuf_iterator_char first
={0}, last
={0};
8627 first
.strbuf
= strbuf
;
8628 num_get_char_get_ushort(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8630 basic_istream_char_sentry_destroy(this);
8632 basic_ios_char_setstate(base
, state
);
8636 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAH@Z */
8637 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAH@Z */
8638 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_int
, 8)
8639 basic_istream_char
* __thiscall
basic_istream_char_read_int(basic_istream_char
*this, int *v
)
8641 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8642 int state
= IOSTATE_goodbit
;
8644 TRACE("(%p %p)\n", this, v
);
8646 if(basic_istream_char_sentry_create(this, FALSE
)) {
8647 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8648 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8649 istreambuf_iterator_char first
={0}, last
={0};
8651 first
.strbuf
= strbuf
;
8652 num_get_char_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8654 basic_istream_char_sentry_destroy(this);
8656 basic_ios_char_setstate(base
, state
);
8660 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAI@Z */
8661 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAI@Z */
8662 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_uint
, 8)
8663 basic_istream_char
* __thiscall
basic_istream_char_read_uint(basic_istream_char
*this, unsigned int *v
)
8665 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8666 int state
= IOSTATE_goodbit
;
8668 TRACE("(%p %p)\n", this, v
);
8670 if(basic_istream_char_sentry_create(this, FALSE
)) {
8671 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8672 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8673 istreambuf_iterator_char first
={0}, last
={0};
8675 first
.strbuf
= strbuf
;
8676 num_get_char_get_uint(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8678 basic_istream_char_sentry_destroy(this);
8680 basic_ios_char_setstate(base
, state
);
8684 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAJ@Z */
8685 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAJ@Z */
8686 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_long
, 8)
8687 basic_istream_char
* __thiscall
basic_istream_char_read_long(basic_istream_char
*this, LONG
*v
)
8689 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8690 int state
= IOSTATE_goodbit
;
8692 TRACE("(%p %p)\n", this, v
);
8694 if(basic_istream_char_sentry_create(this, FALSE
)) {
8695 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8696 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8697 istreambuf_iterator_char first
={0}, last
={0};
8699 first
.strbuf
= strbuf
;
8700 num_get_char_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8702 basic_istream_char_sentry_destroy(this);
8704 basic_ios_char_setstate(base
, state
);
8708 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAK@Z */
8709 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAK@Z */
8710 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ulong
, 8)
8711 basic_istream_char
* __thiscall
basic_istream_char_read_ulong(basic_istream_char
*this, ULONG
*v
)
8713 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8714 int state
= IOSTATE_goodbit
;
8716 TRACE("(%p %p)\n", this, v
);
8718 if(basic_istream_char_sentry_create(this, FALSE
)) {
8719 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8720 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8721 istreambuf_iterator_char first
={0}, last
={0};
8723 first
.strbuf
= strbuf
;
8724 num_get_char_get_ulong(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8726 basic_istream_char_sentry_destroy(this);
8728 basic_ios_char_setstate(base
, state
);
8732 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAM@Z */
8733 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAM@Z */
8734 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_float
, 8)
8735 basic_istream_char
* __thiscall
basic_istream_char_read_float(basic_istream_char
*this, float *v
)
8737 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8738 int state
= IOSTATE_goodbit
;
8740 TRACE("(%p %p)\n", this, v
);
8742 if(basic_istream_char_sentry_create(this, FALSE
)) {
8743 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8744 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8745 istreambuf_iterator_char first
={0}, last
={0};
8747 first
.strbuf
= strbuf
;
8748 num_get_char_get_float(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8750 basic_istream_char_sentry_destroy(this);
8752 basic_ios_char_setstate(base
, state
);
8756 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAN@Z */
8757 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAN@Z */
8758 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_double
, 8)
8759 basic_istream_char
* __thiscall
basic_istream_char_read_double(basic_istream_char
*this, double *v
)
8761 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8762 int state
= IOSTATE_goodbit
;
8764 TRACE("(%p %p)\n", this, v
);
8766 if(basic_istream_char_sentry_create(this, FALSE
)) {
8767 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8768 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8769 istreambuf_iterator_char first
={0}, last
={0};
8771 first
.strbuf
= strbuf
;
8772 num_get_char_get_double(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8774 basic_istream_char_sentry_destroy(this);
8776 basic_ios_char_setstate(base
, state
);
8780 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAO@Z */
8781 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAO@Z */
8782 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ldouble
, 8)
8783 basic_istream_char
* __thiscall
basic_istream_char_read_ldouble(basic_istream_char
*this, double *v
)
8785 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8786 int state
= IOSTATE_goodbit
;
8788 TRACE("(%p %p)\n", this, v
);
8790 if(basic_istream_char_sentry_create(this, FALSE
)) {
8791 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8792 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8793 istreambuf_iterator_char first
={0}, last
={0};
8795 first
.strbuf
= strbuf
;
8796 num_get_char_get_ldouble(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8798 basic_istream_char_sentry_destroy(this);
8800 basic_ios_char_setstate(base
, state
);
8804 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAPAX@Z */
8805 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAPEAX@Z */
8806 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ptr
, 8)
8807 basic_istream_char
* __thiscall
basic_istream_char_read_ptr(basic_istream_char
*this, void **v
)
8809 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8810 int state
= IOSTATE_goodbit
;
8812 TRACE("(%p %p)\n", this, v
);
8814 if(basic_istream_char_sentry_create(this, FALSE
)) {
8815 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8816 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8817 istreambuf_iterator_char first
={0}, last
={0};
8819 first
.strbuf
= strbuf
;
8820 num_get_char_get_void(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8822 basic_istream_char_sentry_destroy(this);
8824 basic_ios_char_setstate(base
, state
);
8828 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AA_J@Z */
8829 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEA_J@Z */
8830 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_int64
, 8)
8831 basic_istream_char
* __thiscall
basic_istream_char_read_int64(basic_istream_char
*this, __int64
*v
)
8833 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8834 int state
= IOSTATE_goodbit
;
8836 TRACE("(%p %p)\n", this, v
);
8838 if(basic_istream_char_sentry_create(this, FALSE
)) {
8839 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8840 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8841 istreambuf_iterator_char first
={0}, last
={0};
8843 first
.strbuf
= strbuf
;
8844 num_get_char_get_int64(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8846 basic_istream_char_sentry_destroy(this);
8848 basic_ios_char_setstate(base
, state
);
8852 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AA_K@Z */
8853 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEA_K@Z */
8854 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_uint64
, 8)
8855 basic_istream_char
* __thiscall
basic_istream_char_read_uint64(basic_istream_char
*this, unsigned __int64
*v
)
8857 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8858 int state
= IOSTATE_goodbit
;
8860 TRACE("(%p %p)\n", this, v
);
8862 if(basic_istream_char_sentry_create(this, FALSE
)) {
8863 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8864 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8865 istreambuf_iterator_char first
={0}, last
={0};
8867 first
.strbuf
= strbuf
;
8868 num_get_char_get_uint64(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8870 basic_istream_char_sentry_destroy(this);
8872 basic_ios_char_setstate(base
, state
);
8876 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AA_N@Z */
8877 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEA_N@Z */
8878 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_bool
, 8)
8879 basic_istream_char
* __thiscall
basic_istream_char_read_bool(basic_istream_char
*this, MSVCP_bool
*v
)
8881 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8882 int state
= IOSTATE_goodbit
;
8884 TRACE("(%p %p)\n", this, v
);
8886 if(basic_istream_char_sentry_create(this, FALSE
)) {
8887 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8888 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8889 istreambuf_iterator_char first
={0}, last
={0};
8891 first
.strbuf
= strbuf
;
8892 num_get_char_get_bool(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8894 basic_istream_char_sentry_destroy(this);
8896 basic_ios_char_setstate(base
, state
);
8900 /* ??$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 */
8901 /* ??$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 */
8902 basic_istream_char
* __cdecl
basic_istream_char_getline_bstr_delim(
8903 basic_istream_char
*istream
, basic_string_char
*str
, char delim
)
8905 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istream
);
8906 IOSB_iostate state
= IOSTATE_goodbit
;
8907 int c
= (unsigned char)delim
;
8909 TRACE("(%p %p %c)\n", istream
, str
, delim
);
8911 if(basic_istream_char_sentry_create(istream
, TRUE
)) {
8912 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8913 MSVCP_basic_string_char_clear(str
);
8915 c
= basic_streambuf_char_sgetc(strbuf
);
8916 for(; c
!=(unsigned char)delim
&& c
!=EOF
; c
= basic_streambuf_char_snextc(strbuf
))
8917 MSVCP_basic_string_char_append_ch(str
, c
);
8918 if(c
==EOF
) state
|= IOSTATE_eofbit
;
8919 else if(c
==(unsigned char)delim
) basic_streambuf_char_sbumpc(strbuf
);
8921 if(!MSVCP_basic_string_char_length(str
) && c
!=(unsigned char)delim
) state
|= IOSTATE_failbit
;
8923 basic_istream_char_sentry_destroy(istream
);
8925 basic_ios_char_setstate(basic_istream_char_get_basic_ios(istream
), state
);
8929 /* ??$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 */
8930 /* ??$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 */
8931 basic_istream_char
* __cdecl
basic_istream_char_getline_bstr(
8932 basic_istream_char
*istream
, basic_string_char
*str
)
8934 return basic_istream_char_getline_bstr_delim(istream
, str
, '\n');
8937 /* ??$?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 */
8938 /* ??$?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 */
8939 basic_istream_char
* __cdecl
basic_istream_char_read_bstr(
8940 basic_istream_char
*istream
, basic_string_char
*str
)
8942 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istream
);
8943 IOSB_iostate state
= IOSTATE_failbit
;
8946 TRACE("(%p %p)\n", istream
, str
);
8948 if(basic_istream_char_sentry_create(istream
, FALSE
)) {
8949 const ctype_char
*ctype
= ctype_char_use_facet(IOS_LOCALE(base
->strbuf
));
8950 MSVCP_size_t count
= ios_base_width_get(&base
->base
);
8955 MSVCP_basic_string_char_clear(str
);
8957 for(c
= basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base
));
8958 c
!=EOF
&& !ctype_char_is_ch(ctype
, _SPACE
|_BLANK
, c
) && count
>0;
8959 c
= basic_streambuf_char_snextc(basic_ios_char_rdbuf_get(base
)), count
--) {
8960 state
= IOSTATE_goodbit
;
8961 MSVCP_basic_string_char_append_ch(str
, c
);
8964 basic_istream_char_sentry_destroy(istream
);
8966 ios_base_width_set(&base
->base
, 0);
8967 basic_ios_char_setstate(base
, state
| (c
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
8971 /* ??$?5DU?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@PAD@Z */
8972 /* ??$?5DU?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@PEAD@Z */
8973 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@PAC@Z */
8974 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@PEAC@Z */
8975 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@PAE@Z */
8976 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@PEAE@Z */
8977 basic_istream_char
* __cdecl
basic_istream_char_read_str(basic_istream_char
*istream
, char *str
)
8979 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istream
);
8980 IOSB_iostate state
= IOSTATE_failbit
;
8983 TRACE("(%p %p)\n", istream
, str
);
8985 if(basic_istream_char_sentry_create(istream
, FALSE
)) {
8986 const ctype_char
*ctype
= ctype_char_use_facet(IOS_LOCALE(base
->strbuf
));
8987 MSVCP_size_t count
= ios_base_width_get(&base
->base
)-1;
8989 for(c
= basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base
));
8990 c
!=EOF
&& !ctype_char_is_ch(ctype
, _SPACE
|_BLANK
, c
) && count
>0;
8991 c
= basic_streambuf_char_snextc(basic_ios_char_rdbuf_get(base
)), count
--) {
8992 state
= IOSTATE_goodbit
;
8996 basic_istream_char_sentry_destroy(istream
);
8999 ios_base_width_set(&base
->base
, 0);
9000 basic_ios_char_setstate(base
, state
| (c
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
9004 /* ??$?5DU?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAD@Z */
9005 /* ??$?5DU?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAD@Z */
9006 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAC@Z */
9007 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAC@Z */
9008 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAE@Z */
9009 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAE@Z */
9010 basic_istream_char
* __cdecl
basic_istream_char_read_ch(basic_istream_char
*istream
, char *ch
)
9012 IOSB_iostate state
= IOSTATE_failbit
;
9015 TRACE("(%p %p)\n", istream
, ch
);
9017 if(basic_istream_char_sentry_create(istream
, FALSE
)) {
9018 c
= basic_streambuf_char_sbumpc(basic_ios_char_rdbuf_get(
9019 basic_istream_char_get_basic_ios(istream
)));
9021 state
= IOSTATE_goodbit
;
9025 basic_istream_char_sentry_destroy(istream
);
9027 basic_ios_char_setstate(basic_istream_char_get_basic_ios(istream
),
9028 state
| (c
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
9032 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
9033 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
9034 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_streambuf
, 8)
9035 basic_istream_char
* __thiscall
basic_istream_char_read_streambuf(
9036 basic_istream_char
*this, basic_streambuf_char
*streambuf
)
9038 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
9039 IOSB_iostate state
= IOSTATE_failbit
;
9042 TRACE("(%p %p)\n", this, streambuf
);
9044 if(basic_istream_char_sentry_create(this, FALSE
)) {
9045 for(c
= basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base
)); c
!=EOF
;
9046 c
= basic_streambuf_char_snextc(basic_ios_char_rdbuf_get(base
))) {
9047 state
= IOSTATE_goodbit
;
9048 if(basic_streambuf_char_sputc(streambuf
, c
) == EOF
)
9052 basic_istream_char_sentry_destroy(this);
9054 basic_ios_char_setstate(base
, state
| (c
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
9058 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
9059 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
9060 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_func
, 8)
9061 basic_istream_char
* __thiscall
basic_istream_char_read_func(basic_istream_char
*this,
9062 basic_istream_char
* (__cdecl
*pfunc
)(basic_istream_char
*))
9064 TRACE("(%p %p)\n", this, pfunc
);
9069 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@DU?$char_traits@D@std@@@1@AAV21@@Z@Z */
9070 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@DU?$char_traits@D@std@@@1@AEAV21@@Z@Z */
9071 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_func_basic_ios
, 8)
9072 basic_istream_char
* __thiscall
basic_istream_char_read_func_basic_ios(basic_istream_char
*this,
9073 basic_ios_char
* (__cdecl
*pfunc
)(basic_ios_char
*))
9075 TRACE("(%p %p)\n", this, pfunc
);
9076 pfunc(basic_istream_char_get_basic_ios(this));
9080 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
9081 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
9082 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_func_ios_base
, 8)
9083 basic_istream_char
* __thiscall
basic_istream_char_read_func_ios_base(basic_istream_char
*this,
9084 ios_base
* (__cdecl
*pfunc
)(ios_base
*))
9086 TRACE("(%p %p)\n", this, pfunc
);
9087 pfunc(&basic_istream_char_get_basic_ios(this)->base
);
9091 /* ??$?5MDU?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAV?$complex@M@0@@Z */
9092 /* ??$?5MDU?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAV?$complex@M@0@@Z */
9093 basic_istream_char
* __cdecl
basic_istream_char_read_complex_float(basic_istream_char
*this, complex_float
*v
)
9096 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
9098 TRACE("(%p %p)\n", this, v
);
9100 ws_basic_istream_char(this);
9101 if(basic_istream_char_peek(this) == '(') {
9103 basic_istream_char_get(this);
9104 basic_istream_char_read_float(this, &r
);
9106 if(ios_base_fail(&base
->base
))
9109 ws_basic_istream_char(this);
9110 c
= basic_istream_char_peek(this);
9113 basic_istream_char_get(this);
9114 basic_istream_char_read_float(this, &i
);
9116 if(ios_base_fail(&base
->base
))
9119 ws_basic_istream_char(this);
9120 c
= basic_istream_char_peek(this);
9121 if(c
== ')') { /* supported format: (real, imag) */
9122 basic_istream_char_get(this);
9126 basic_ios_char_setstate(base
, IOSTATE_failbit
);
9129 }else if(c
== ')') { /* supported format: (real) */
9130 basic_istream_char_get(this);
9134 basic_ios_char_setstate(base
, IOSTATE_failbit
);
9137 }else { /* supported format: real */
9138 basic_istream_char_read_float(this, &r
);
9140 if(ios_base_fail(&base
->base
))
9150 /* ??$?5NDU?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAV?$complex@N@0@@Z */
9151 /* ??$?5DU?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAV?$complex@N@0@@Z */
9152 basic_istream_char
* __cdecl
basic_istream_char_read_complex_double(basic_istream_char
*this, complex_double
*v
)
9155 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
9157 TRACE("(%p %p)\n", this, v
);
9159 ws_basic_istream_char(this);
9160 if(basic_istream_char_peek(this) == '(') {
9162 basic_istream_char_get(this);
9163 basic_istream_char_read_double(this, &r
);
9165 if(ios_base_fail(&base
->base
))
9168 ws_basic_istream_char(this);
9169 c
= basic_istream_char_peek(this);
9172 basic_istream_char_get(this);
9173 basic_istream_char_read_double(this, &i
);
9175 if(ios_base_fail(&base
->base
))
9178 ws_basic_istream_char(this);
9179 c
= basic_istream_char_peek(this);
9180 if(c
== ')') { /* supported format: (real, imag) */
9181 basic_istream_char_get(this);
9185 basic_ios_char_setstate(base
, IOSTATE_failbit
);
9188 }else if(c
== ')') { /* supported format: (real) */
9189 basic_istream_char_get(this);
9193 basic_ios_char_setstate(base
, IOSTATE_failbit
);
9196 }else { /* supported format: real */
9197 basic_istream_char_read_double(this, &r
);
9199 if(ios_base_fail(&base
->base
))
9209 /* ??$?5ODU?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAV?$complex@O@0@@Z */
9210 /* ??$?5ODU?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAV?$complex@O@0@@Z */
9211 basic_istream_char
* __cdecl
basic_istream_char_read_complex_ldouble(basic_istream_char
*this, complex_double
*v
)
9214 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
9216 TRACE("(%p %p)\n", this, v
);
9218 ws_basic_istream_char(this);
9219 if(basic_istream_char_peek(this) == '(') {
9221 basic_istream_char_get(this);
9222 basic_istream_char_read_ldouble(this, &r
);
9224 if(ios_base_fail(&base
->base
))
9227 ws_basic_istream_char(this);
9228 c
= basic_istream_char_peek(this);
9231 basic_istream_char_get(this);
9232 basic_istream_char_read_ldouble(this, &i
);
9234 if(ios_base_fail(&base
->base
))
9237 ws_basic_istream_char(this);
9238 c
= basic_istream_char_peek(this);
9239 if(c
== ')') { /* supported format: (real, imag) */
9240 basic_istream_char_get(this);
9244 basic_ios_char_setstate(base
, IOSTATE_failbit
);
9247 }else if(c
== ')') { /* supported format: (real) */
9248 basic_istream_char_get(this);
9252 basic_ios_char_setstate(base
, IOSTATE_failbit
);
9255 }else { /* supported format: real */
9256 basic_istream_char_read_ldouble(this, &r
);
9258 if(ios_base_fail(&base
->base
))
9268 /* ?swap@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEXAAV12@@Z */
9269 /* ?swap@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAXAEAV12@@Z */
9270 DEFINE_THISCALL_WRAPPER(basic_istream_char_swap
, 8)
9271 void __thiscall
basic_istream_char_swap(basic_istream_char
*this, basic_istream_char
*r
)
9273 TRACE("(%p %p)\n", this, r
);
9278 basic_ios_char_swap(basic_istream_char_get_basic_ios(this),
9279 basic_istream_char_get_basic_ios(r
));
9280 this->count
^= r
->count
;
9281 r
->count
^= this->count
;
9282 this->count
^= r
->count
;
9285 /* Caution: basic_istream uses virtual inheritance. */
9286 static inline basic_ios_wchar
* basic_istream_wchar_get_basic_ios(basic_istream_wchar
*this)
9288 return (basic_ios_wchar
*)((char*)this+this->vbtable
[1]);
9291 static inline basic_ios_wchar
* basic_istream_wchar_to_basic_ios(basic_istream_wchar
*ptr
)
9293 return (basic_ios_wchar
*)((char*)ptr
+basic_istream_wchar_vbtable
[1]);
9296 static inline basic_istream_wchar
* basic_istream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
9298 return (basic_istream_wchar
*)((char*)ptr
-basic_istream_wchar_vbtable
[1]);
9301 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N1@Z */
9302 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N1@Z */
9303 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ctor_init
, 20)
9304 basic_istream_wchar
* __thiscall
basic_istream_wchar_ctor_init(basic_istream_wchar
*this,
9305 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool noinit
, MSVCP_bool virt_init
)
9307 basic_ios_wchar
*base
;
9309 TRACE("(%p %p %d %d %d)\n", this, strbuf
, isstd
, noinit
, virt_init
);
9312 this->vbtable
= basic_istream_wchar_vbtable
;
9313 base
= basic_istream_wchar_get_basic_ios(this);
9314 basic_ios_wchar_ctor(base
);
9316 base
= basic_istream_wchar_get_basic_ios(this);
9319 base
->base
.vtable
= &MSVCP_basic_istream_wchar_vtable
;
9322 basic_ios_wchar_init(base
, strbuf
, isstd
);
9326 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N1@Z */
9327 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N1@Z */
9328 DEFINE_THISCALL_WRAPPER(basic_istream_short_ctor_init
, 20)
9329 basic_istream_wchar
* __thiscall
basic_istream_short_ctor_init(basic_istream_wchar
*this,
9330 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool noinit
, MSVCP_bool virt_init
)
9332 basic_istream_wchar_ctor_init(this, strbuf
, isstd
, noinit
, virt_init
);
9333 basic_istream_wchar_get_basic_ios(this)->base
.vtable
= &MSVCP_basic_istream_short_vtable
;
9337 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N@Z */
9338 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N@Z */
9339 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ctor
, 16)
9340 basic_istream_wchar
* __thiscall
basic_istream_wchar_ctor(basic_istream_wchar
*this,
9341 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
9343 return basic_istream_wchar_ctor_init(this, strbuf
, isstd
, FALSE
, virt_init
);
9346 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N@Z */
9347 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N@Z */
9348 DEFINE_THISCALL_WRAPPER(basic_istream_short_ctor
, 16)
9349 basic_istream_wchar
* __thiscall
basic_istream_short_ctor(basic_istream_wchar
*this,
9350 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
9352 return basic_istream_short_ctor_init(this, strbuf
, isstd
, FALSE
, virt_init
);
9355 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE@W4_Uninitialized@1@@Z */
9356 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
9357 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ctor_uninitialized
, 12)
9358 basic_istream_wchar
* __thiscall
basic_istream_wchar_ctor_uninitialized(
9359 basic_istream_wchar
*this, int uninitialized
, MSVCP_bool virt_init
)
9361 basic_ios_wchar
*base
;
9363 TRACE("(%p %d %d)\n", this, uninitialized
, virt_init
);
9366 this->vbtable
= basic_istream_wchar_vbtable
;
9367 base
= basic_istream_wchar_get_basic_ios(this);
9368 basic_ios_wchar_ctor(base
);
9370 base
= basic_istream_wchar_get_basic_ios(this);
9373 base
->base
.vtable
= &MSVCP_basic_istream_wchar_vtable
;
9374 ios_base_Addstd(&base
->base
);
9378 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QAE@W4_Uninitialized@1@@Z */
9379 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
9380 DEFINE_THISCALL_WRAPPER(basic_istream_short_ctor_uninitialized
, 12)
9381 basic_istream_wchar
* __thiscall
basic_istream_short_ctor_uninitialized(
9382 basic_istream_wchar
*this, int uninitialized
, MSVCP_bool virt_init
)
9384 basic_istream_wchar_ctor_uninitialized(this, uninitialized
, virt_init
);
9385 basic_istream_wchar_get_basic_ios(this)->base
.vtable
= &MSVCP_basic_istream_short_vtable
;
9389 /* ??1?$basic_istream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
9390 /* ??1?$basic_istream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
9391 /* ??1?$basic_istream@GU?$char_traits@G@std@@@std@@UAE@XZ */
9392 /* ??1?$basic_istream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
9393 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_dtor
, 4)
9394 void __thiscall
basic_istream_wchar_dtor(basic_ios_wchar
*base
)
9396 basic_istream_wchar
*this = basic_istream_wchar_from_basic_ios(base
);
9398 /* don't destroy virtual base here */
9399 TRACE("(%p)\n", this);
9402 /* ??_D?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
9403 /* ??_D?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
9404 /* ??_D?$basic_istream@GU?$char_traits@G@std@@@std@@QAEXXZ */
9405 /* ??_D?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
9406 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_vbase_dtor
, 4)
9407 void __thiscall
basic_istream_wchar_vbase_dtor(basic_istream_wchar
*this)
9409 TRACE("(%p)\n", this);
9410 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(this));
9411 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(this));
9414 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_vector_dtor
, 8)
9415 basic_istream_wchar
* __thiscall
basic_istream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
9417 basic_istream_wchar
*this = basic_istream_wchar_from_basic_ios(base
);
9419 TRACE("(%p %x)\n", this, flags
);
9422 /* we have an array, with the number of elements stored before the first object */
9423 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
9425 for(i
=*ptr
-1; i
>=0; i
--)
9426 basic_istream_wchar_vbase_dtor(this+i
);
9427 MSVCRT_operator_delete(ptr
);
9429 basic_istream_wchar_vbase_dtor(this);
9431 MSVCRT_operator_delete(this);
9437 /* ?_Ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE_N_N@Z */
9438 /* ?_Ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_N_N@Z */
9439 /* ?_Ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QAE_N_N@Z */
9440 /* ?_Ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_N_N@Z */
9441 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Ipfx
, 8)
9442 MSVCP_bool __thiscall
basic_istream_wchar__Ipfx(basic_istream_wchar
*this, MSVCP_bool noskip
)
9444 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9446 TRACE("(%p %d)\n", this, noskip
);
9448 if(ios_base_good(&base
->base
)) {
9449 if(basic_ios_wchar_tie_get(base
))
9450 basic_ostream_wchar_flush(basic_ios_wchar_tie_get(base
));
9452 if(!noskip
&& (ios_base_flags_get(&base
->base
) & FMTFLAG_skipws
)) {
9453 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9454 const ctype_wchar
*ctype
= ctype_wchar_use_facet(IOS_LOCALE(base
->strbuf
));
9457 for(ch
= basic_streambuf_wchar_sgetc(strbuf
); ;
9458 ch
= basic_streambuf_wchar_snextc(strbuf
)) {
9460 basic_ios_wchar_setstate(base
, IOSTATE_eofbit
);
9464 if(!ctype_wchar_is_ch(ctype
, _SPACE
|_BLANK
, ch
))
9470 if(!ios_base_good(&base
->base
)) {
9471 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
9477 /* ?ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE_N_N@Z */
9478 /* ?ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_N_N@Z */
9479 /* ?ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QAE_N_N@Z */
9480 /* ?ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_N_N@Z */
9481 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ipfx
, 8)
9482 MSVCP_bool __thiscall
basic_istream_wchar_ipfx(basic_istream_wchar
*this, MSVCP_bool noskip
)
9484 return basic_istream_wchar__Ipfx(this, noskip
);
9487 /* ?isfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
9488 /* ?isfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
9489 /* ?isfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEXXZ */
9490 /* ?isfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
9491 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_isfx
, 4)
9492 void __thiscall
basic_istream_wchar_isfx(basic_istream_wchar
*this)
9494 TRACE("(%p)\n", this);
9497 static BOOL
basic_istream_wchar_sentry_create(basic_istream_wchar
*istr
, MSVCP_bool noskip
)
9499 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istr
);
9501 if(basic_ios_wchar_rdbuf_get(base
))
9502 basic_streambuf_wchar__Lock(base
->strbuf
);
9504 return basic_istream_wchar_ipfx(istr
, noskip
);
9507 static void basic_istream_wchar_sentry_destroy(basic_istream_wchar
*istr
)
9509 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istr
);
9511 if(basic_ios_wchar_rdbuf_get(base
))
9512 basic_streambuf_wchar__Unlock(base
->strbuf
);
9515 /* ?gcount@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QBEHXZ */
9516 /* ?gcount@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEBA_JXZ */
9517 /* ?gcount@?$basic_istream@GU?$char_traits@G@std@@@std@@QBEHXZ */
9518 /* ?gcount@?$basic_istream@GU?$char_traits@G@std@@@std@@QEBA_JXZ */
9519 /* ?gcount@?$basic_istream@GU?$char_traits@G@std@@@std@@QBA_JXZ */
9520 /* ?gcount@?$basic_istream@GU?$char_traits@G@std@@@std@@QBE_JXZ */
9521 /* ?gcount@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QBA_JXZ */
9522 /* ?gcount@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QBE_JXZ */
9523 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_gcount
, 4)
9524 streamsize __thiscall
basic_istream_wchar_gcount(const basic_istream_wchar
*this)
9526 TRACE("(%p)\n", this);
9530 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
9531 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
9532 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEGXZ */
9533 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAGXZ */
9534 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get
, 4)
9535 unsigned short __thiscall
basic_istream_wchar_get(basic_istream_wchar
*this)
9537 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9540 TRACE("(%p)\n", this);
9544 if(!basic_istream_wchar_sentry_create(this, TRUE
)) {
9545 basic_istream_wchar_sentry_destroy(this);
9549 ret
= basic_streambuf_wchar_sbumpc(basic_ios_wchar_rdbuf_get(base
));
9550 basic_istream_wchar_sentry_destroy(this);
9552 basic_ios_wchar_setstate(base
, IOSTATE_eofbit
|IOSTATE_failbit
);
9559 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@AA_W@Z */
9560 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEA_W@Z */
9561 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@AAG@Z */
9562 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEAG@Z */
9563 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_ch
, 8)
9564 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_ch(basic_istream_wchar
*this, wchar_t *ch
)
9568 TRACE("(%p %p)\n", this, ch
);
9570 ret
= basic_istream_wchar_get(this);
9576 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH_W@Z */
9577 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J_W@Z */
9578 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGHG@Z */
9579 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_JG@Z */
9580 #if STREAMSIZE_BITS == 64
9581 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str_delim
, 20)
9583 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str_delim
, 16)
9585 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_str_delim(basic_istream_wchar
*this, wchar_t *str
, streamsize count
, wchar_t delim
)
9587 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9588 unsigned short ch
= delim
;
9590 TRACE("(%p %p %s %c)\n", this, str
, wine_dbgstr_longlong(count
), delim
);
9594 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9595 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9597 for(ch
= basic_streambuf_wchar_sgetc(strbuf
); count
>1;
9598 ch
= basic_streambuf_wchar_snextc(strbuf
)) {
9599 if(ch
==WEOF
|| ch
==delim
)
9607 basic_istream_wchar_sentry_destroy(this);
9609 basic_ios_wchar_setstate(base
, (!this->count
? IOSTATE_failbit
: IOSTATE_goodbit
) |
9610 (ch
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
9616 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH@Z */
9617 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J@Z */
9618 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGH@Z */
9619 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_J@Z */
9620 #if STREAMSIZE_BITS == 64
9621 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str
, 16)
9623 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str
, 12)
9625 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_str(basic_istream_wchar
*this, wchar_t *str
, streamsize count
)
9627 return basic_istream_wchar_get_str_delim(this, str
, count
, '\n');
9630 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@AAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_W@Z */
9631 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_W@Z */
9632 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@AAV?$basic_streambuf@GU?$char_traits@G@std@@@2@G@Z */
9633 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@G@Z */
9634 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_streambuf_delim
, 12)
9635 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_streambuf_delim(basic_istream_wchar
*this, basic_streambuf_wchar
*strbuf
, wchar_t delim
)
9637 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9638 unsigned short ch
= delim
;
9640 TRACE("(%p %p %c)\n", this, strbuf
, delim
);
9644 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9645 basic_streambuf_wchar
*strbuf_read
= basic_ios_wchar_rdbuf_get(base
);
9647 for(ch
= basic_streambuf_wchar_sgetc(strbuf_read
); ;
9648 ch
= basic_streambuf_wchar_snextc(strbuf_read
)) {
9649 if(ch
==WEOF
|| ch
==delim
)
9652 if(basic_streambuf_wchar_sputc(strbuf
, ch
) == WEOF
)
9657 basic_istream_wchar_sentry_destroy(this);
9659 basic_ios_wchar_setstate(base
, (!this->count
? IOSTATE_failbit
: IOSTATE_goodbit
) |
9660 (ch
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
9664 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@AAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@@Z */
9665 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@@Z */
9666 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@AAV?$basic_streambuf@GU?$char_traits@G@std@@@2@@Z */
9667 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@@Z */
9668 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_streambuf
, 8)
9669 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_streambuf(basic_istream_wchar
*this, basic_streambuf_wchar
*strbuf
)
9671 return basic_istream_wchar_get_streambuf_delim(this, strbuf
, '\n');
9674 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH_W@Z */
9675 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J_W@Z */
9676 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGHG@Z */
9677 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_JG@Z */
9678 #if STREAMSIZE_BITS == 64
9679 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline_delim
, 20)
9681 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline_delim
, 16)
9683 basic_istream_wchar
* __thiscall
basic_istream_wchar_getline_delim(basic_istream_wchar
*this, wchar_t *str
, streamsize count
, wchar_t delim
)
9685 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9686 unsigned short ch
= delim
;
9688 TRACE("(%p %p %s %c)\n", this, str
, wine_dbgstr_longlong(count
), delim
);
9692 if(basic_istream_wchar_sentry_create(this, TRUE
) && count
>0) {
9693 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9696 ch
= basic_streambuf_wchar_sbumpc(strbuf
);
9698 if(ch
==WEOF
|| ch
==delim
)
9708 else if(ch
!= WEOF
) {
9709 ch
= basic_streambuf_wchar_sgetc(strbuf
);
9712 basic_streambuf_wchar__Gninc(strbuf
);
9717 basic_istream_wchar_sentry_destroy(this);
9719 basic_ios_wchar_setstate(base
, (ch
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
) |
9720 (!this->count
|| (ch
!=delim
&& ch
!=WEOF
) ? IOSTATE_failbit
: IOSTATE_goodbit
));
9726 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH@Z */
9727 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J@Z */
9728 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGH@Z */
9729 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_J@Z */
9730 #if STREAMSIZE_BITS == 64
9731 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline
, 16)
9733 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline
, 12)
9735 basic_istream_wchar
* __thiscall
basic_istream_wchar_getline(basic_istream_wchar
*this, wchar_t *str
, streamsize count
)
9737 return basic_istream_wchar_getline_delim(this, str
, count
, '\n');
9740 /* ?ignore@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@HG@Z */
9741 /* ?ignore@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_JG@Z */
9742 /* ?ignore@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@HG@Z */
9743 /* ?ignore@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JG@Z */
9744 #if STREAMSIZE_BITS == 64
9745 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ignore
, 16)
9747 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ignore
, 12)
9749 basic_istream_wchar
* __thiscall
basic_istream_wchar_ignore(basic_istream_wchar
*this, streamsize count
, unsigned short delim
)
9751 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9752 unsigned short ch
= delim
;
9755 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(count
), delim
);
9759 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9760 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9761 state
= IOSTATE_goodbit
;
9764 ch
= basic_streambuf_wchar_sbumpc(strbuf
);
9767 state
= IOSTATE_eofbit
;
9775 if(count
!= INT_MAX
)
9779 state
= IOSTATE_failbit
;
9780 basic_istream_wchar_sentry_destroy(this);
9782 basic_ios_wchar_setstate(base
, state
);
9786 /* ?ws@std@@YAAAV?$basic_istream@_WU?$char_traits@_W@std@@@1@AAV21@@Z */
9787 /* ?ws@std@@YAAEAV?$basic_istream@_WU?$char_traits@_W@std@@@1@AEAV21@@Z */
9788 /* ?ws@std@@YAAAV?$basic_istream@GU?$char_traits@G@std@@@1@AAV21@@Z */
9789 /* ?ws@std@@YAAEAV?$basic_istream@GU?$char_traits@G@std@@@1@AEAV21@@Z */
9790 basic_istream_wchar
* __cdecl
ws_basic_istream_wchar(basic_istream_wchar
*istream
)
9792 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istream
);
9793 unsigned short ch
= '\n';
9795 TRACE("(%p)\n", istream
);
9797 if(basic_istream_wchar_sentry_create(istream
, TRUE
)) {
9798 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9799 const ctype_wchar
*ctype
= ctype_wchar_use_facet(IOS_LOCALE(strbuf
));
9801 for(ch
= basic_streambuf_wchar_sgetc(strbuf
); ctype_wchar_is_ch(ctype
, _SPACE
, ch
);
9802 ch
= basic_streambuf_wchar_snextc(strbuf
)) {
9807 basic_istream_wchar_sentry_destroy(istream
);
9810 basic_ios_wchar_setstate(base
, IOSTATE_eofbit
);
9814 /* ?peek@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
9815 /* ?peek@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
9816 /* ?peek@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEGXZ */
9817 /* ?peek@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAGXZ */
9818 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_peek
, 4)
9819 unsigned short __thiscall
basic_istream_wchar_peek(basic_istream_wchar
*this)
9821 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9822 unsigned short ret
= WEOF
;
9824 TRACE("(%p)\n", this);
9828 if(basic_istream_wchar_sentry_create(this, TRUE
))
9829 ret
= basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base
));
9830 basic_istream_wchar_sentry_destroy(this);
9833 basic_ios_wchar_setstate(base
, IOSTATE_eofbit
);
9838 /* ?_Read_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WIH@Z */
9839 /* ?_Read_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_K_J@Z */
9840 /* ?_Read_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGIH@Z */
9841 /* ?_Read_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_K_J@Z */
9842 #if STREAMSIZE_BITS == 64
9843 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Read_s
, 20)
9845 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Read_s
, 16)
9847 basic_istream_wchar
* __thiscall
basic_istream_wchar__Read_s(basic_istream_wchar
*this, wchar_t *str
, MSVCP_size_t size
, streamsize count
)
9849 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9850 IOSB_iostate state
= IOSTATE_goodbit
;
9852 TRACE("(%p %p %lu %s)\n", this, str
, size
, wine_dbgstr_longlong(count
));
9854 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9855 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9857 this->count
= basic_streambuf_wchar__Sgetn_s(strbuf
, str
, size
, count
);
9858 if(this->count
!= count
)
9859 state
|= IOSTATE_failbit
| IOSTATE_eofbit
;
9863 basic_istream_wchar_sentry_destroy(this);
9865 basic_ios_wchar_setstate(base
, state
);
9869 /* ?read@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH@Z */
9870 /* ?read@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J@Z */
9871 /* ?read@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGH@Z */
9872 /* ?read@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_J@Z */
9873 #if STREAMSIZE_BITS == 64
9874 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read
, 16)
9876 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read
, 12)
9878 basic_istream_wchar
* __thiscall
basic_istream_wchar_read(basic_istream_wchar
*this, wchar_t *str
, streamsize count
)
9880 return basic_istream_wchar__Read_s(this, str
, -1, count
);
9883 /* ?_Readsome_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEHPA_WIH@Z */
9884 /* ?_Readsome_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_K_J@Z */
9885 /* ?_Readsome_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEHPAGIH@Z */
9886 /* ?_Readsome_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_K_J@Z */
9887 #if STREAMSIZE_BITS == 64
9888 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Readsome_s
, 20)
9890 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Readsome_s
, 16)
9892 streamsize __thiscall
basic_istream_wchar__Readsome_s(basic_istream_wchar
*this, wchar_t *str
, MSVCP_size_t size
, streamsize count
)
9894 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9895 IOSB_iostate state
= IOSTATE_goodbit
;
9897 TRACE("(%p %p %lu %s)\n", this, str
, size
, wine_dbgstr_longlong(count
));
9901 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9902 streamsize avail
= basic_streambuf_wchar_in_avail(basic_ios_wchar_rdbuf_get(base
));
9907 state
|= IOSTATE_eofbit
;
9909 basic_istream_wchar__Read_s(this, str
, size
, avail
);
9911 state
|= IOSTATE_failbit
;
9913 basic_istream_wchar_sentry_destroy(this);
9915 basic_ios_wchar_setstate(base
, state
);
9919 /* ?readsome@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEHPA_WH@Z */
9920 /* ?readsome@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_J@Z */
9921 /* ?readsome@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEHPAGH@Z */
9922 /* ?readsome@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_J@Z */
9923 #if STREAMSIZE_BITS == 64
9924 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_readsome
, 16)
9926 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_readsome
, 12)
9928 streamsize __thiscall
basic_istream_wchar_readsome(basic_istream_wchar
*this, wchar_t *str
, streamsize count
)
9930 return basic_istream_wchar__Readsome_s(this, str
, count
, count
);
9933 /* ?putback@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@_W@Z */
9934 /* ?putback@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_W@Z */
9935 /* ?putback@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@G@Z */
9936 /* ?putback@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@G@Z */
9937 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_putback
, 8)
9938 basic_istream_wchar
* __thiscall
basic_istream_wchar_putback(basic_istream_wchar
*this, wchar_t ch
)
9940 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9941 IOSB_iostate state
= IOSTATE_goodbit
;
9943 TRACE("(%p %c)\n", this, ch
);
9947 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9948 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9950 if(!ios_base_good(&base
->base
))
9951 state
|= IOSTATE_failbit
;
9952 else if(!strbuf
|| basic_streambuf_wchar_sputbackc(strbuf
, ch
)==WEOF
)
9953 state
|= IOSTATE_badbit
;
9955 basic_istream_wchar_sentry_destroy(this);
9957 basic_ios_wchar_setstate(base
, state
);
9961 /* ?unget@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@XZ */
9962 /* ?unget@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@XZ */
9963 /* ?unget@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@XZ */
9964 /* ?unget@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@XZ */
9965 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_unget
, 4)
9966 basic_istream_wchar
* __thiscall
basic_istream_wchar_unget(basic_istream_wchar
*this)
9968 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9969 IOSB_iostate state
= IOSTATE_goodbit
;
9971 TRACE("(%p)\n", this);
9975 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9976 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9978 if(!ios_base_good(&base
->base
))
9979 state
|= IOSTATE_failbit
;
9980 else if(!strbuf
|| basic_streambuf_wchar_sungetc(strbuf
)==WEOF
)
9981 state
|= IOSTATE_badbit
;
9983 basic_istream_wchar_sentry_destroy(this);
9985 basic_ios_wchar_setstate(base
, state
);
9989 /* ?sync@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEHXZ */
9990 /* ?sync@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAHXZ */
9991 /* ?sync@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEHXZ */
9992 /* ?sync@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAHXZ */
9993 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_sync
, 4)
9994 int __thiscall
basic_istream_wchar_sync(basic_istream_wchar
*this)
9996 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9997 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9999 TRACE("(%p)\n", this);
10004 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
10005 if(basic_streambuf_wchar_pubsync(strbuf
) != -1) {
10006 basic_istream_wchar_sentry_destroy(this);
10010 basic_istream_wchar_sentry_destroy(this);
10012 basic_ios_wchar_setstate(base
, IOSTATE_badbit
);
10016 /* ?tellg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@XZ */
10017 /* ?tellg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
10018 /* ?tellg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@XZ */
10019 /* ?tellg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
10020 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_tellg
, 8)
10021 fpos_int
* __thiscall
basic_istream_wchar_tellg(basic_istream_wchar
*this, fpos_int
*ret
)
10023 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10025 TRACE("(%p %p)\n", this, ret
);
10027 if(ios_base_fail(&base
->base
)) {
10034 basic_streambuf_wchar_pubseekoff(basic_ios_wchar_rdbuf_get(base
),
10035 ret
, 0, SEEKDIR_cur
, OPENMODE_in
);
10036 if(ret
->off
==-1 && ret
->pos
==0 && ret
->state
==0)
10037 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
10042 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@JW4seekdir@ios_base@2@@Z */
10043 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JW4seekdir@ios_base@2@@Z */
10044 /* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@JH@Z */
10045 /* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_JH@Z */
10046 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@JH@Z */
10047 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JH@Z */
10048 #if STREAMOFF_BITS == 64
10049 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_seekg
, 16)
10051 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_seekg
, 12)
10053 basic_istream_wchar
* __thiscall
basic_istream_wchar_seekg(basic_istream_wchar
*this, streamoff off
, int dir
)
10055 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10057 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(off
), dir
);
10059 if(!ios_base_fail(&base
->base
)) {
10060 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10063 basic_streambuf_wchar_pubseekoff(strbuf
, &ret
, off
, dir
, OPENMODE_in
);
10065 if(ret
.off
==-1 && ret
.pos
==0 && ret
.state
==0)
10066 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
10068 basic_ios_wchar_clear(base
, IOSTATE_goodbit
);
10071 basic_ios_wchar_clear(base
, IOSTATE_goodbit
);
10076 /* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
10077 /* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
10078 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
10079 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
10080 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_seekg_fpos
, 28)
10081 basic_istream_wchar
* __thiscall
basic_istream_wchar_seekg_fpos(basic_istream_wchar
*this, fpos_int pos
)
10083 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10085 TRACE("(%p %s)\n", this, debugstr_fpos_int(&pos
));
10087 if(!ios_base_fail(&base
->base
)) {
10088 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10091 basic_streambuf_wchar_pubseekpos(strbuf
, &ret
, pos
, OPENMODE_in
);
10093 if(ret
.off
==-1 && ret
.pos
==0 && ret
.state
==0)
10094 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
10096 basic_ios_wchar_clear(base
, IOSTATE_goodbit
);
10099 basic_ios_wchar_clear(base
, IOSTATE_goodbit
);
10104 static basic_istream_wchar
* basic_istream_read_short(basic_istream_wchar
*this, short *v
, const num_get
*numget
)
10106 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10107 int state
= IOSTATE_goodbit
;
10109 TRACE("(%p %p)\n", this, v
);
10111 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10112 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10113 istreambuf_iterator_wchar first
={0}, last
={0};
10116 first
.strbuf
= strbuf
;
10117 num_get_wchar_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, &tmp
);
10119 if(!(state
&IOSTATE_failbit
) && tmp
==(LONG
)((short)tmp
))
10122 state
|= IOSTATE_failbit
;
10124 basic_istream_wchar_sentry_destroy(this);
10126 basic_ios_wchar_setstate(base
, state
);
10130 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAF@Z */
10131 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAF@Z */
10132 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_short
, 8)
10133 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_short(basic_istream_wchar
*this, short *v
)
10135 return basic_istream_read_short(this, v
, num_get_wchar_use_facet(
10136 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10139 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAF@Z */
10140 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAF@Z */
10141 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_short
, 8)
10142 basic_istream_wchar
* __thiscall
basic_istream_short_read_short(basic_istream_wchar
*this, short *v
)
10144 return basic_istream_read_short(this, v
, num_get_short_use_facet(
10145 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10148 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAG@Z */
10149 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAG@Z */
10150 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_ushort
, 8)
10151 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_ushort(basic_istream_wchar
*this, unsigned short *v
)
10153 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10154 int state
= IOSTATE_goodbit
;
10156 TRACE("(%p %p)\n", this, v
);
10158 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10159 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10160 const num_get
*numget
= num_get_wchar_use_facet(IOS_LOCALE(strbuf
));
10161 istreambuf_iterator_wchar first
={0}, last
={0};
10163 first
.strbuf
= strbuf
;
10164 num_get_wchar_get_ushort(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10166 basic_istream_wchar_sentry_destroy(this);
10168 basic_ios_wchar_setstate(base
, state
);
10172 static basic_istream_wchar
* basic_istream_read_int(basic_istream_wchar
*this, int *v
, const num_get
*numget
)
10174 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10175 int state
= IOSTATE_goodbit
;
10177 TRACE("(%p %p)\n", this, v
);
10179 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10180 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10181 istreambuf_iterator_wchar first
={0}, last
={0};
10183 first
.strbuf
= strbuf
;
10184 num_get_wchar_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10186 basic_istream_wchar_sentry_destroy(this);
10188 basic_ios_wchar_setstate(base
, state
);
10192 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAH@Z */
10193 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAH@Z */
10194 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_int
, 8)
10195 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_int(basic_istream_wchar
*this, int *v
)
10197 return basic_istream_read_int(this, v
, num_get_wchar_use_facet(
10198 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10201 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAH@Z */
10202 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAH@Z */
10203 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_int
, 8)
10204 basic_istream_wchar
* __thiscall
basic_istream_short_read_int(basic_istream_wchar
*this, int *v
)
10206 return basic_istream_read_int(this, v
, num_get_short_use_facet(
10207 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10210 static basic_istream_wchar
* basic_istream_read_uint(basic_istream_wchar
*this, unsigned int *v
, const num_get
*numget
)
10212 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10213 int state
= IOSTATE_goodbit
;
10215 TRACE("(%p %p)\n", this, v
);
10217 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10218 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10219 istreambuf_iterator_wchar first
={0}, last
={0};
10221 first
.strbuf
= strbuf
;
10222 num_get_wchar_get_uint(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10224 basic_istream_wchar_sentry_destroy(this);
10226 basic_ios_wchar_setstate(base
, state
);
10230 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAI@Z */
10231 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAI@Z */
10232 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_uint
, 8)
10233 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_uint(basic_istream_wchar
*this, unsigned int *v
)
10235 return basic_istream_read_uint(this, v
, num_get_wchar_use_facet(
10236 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10239 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAI@Z */
10240 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAI@Z */
10241 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_uint
, 8)
10242 basic_istream_wchar
* __thiscall
basic_istream_short_read_uint(basic_istream_wchar
*this, unsigned int *v
)
10244 return basic_istream_read_uint(this, v
, num_get_short_use_facet(
10245 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10248 static basic_istream_wchar
* basic_istream_read_long(basic_istream_wchar
*this, LONG
*v
, const num_get
*numget
)
10250 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10251 int state
= IOSTATE_goodbit
;
10253 TRACE("(%p %p)\n", this, v
);
10255 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10256 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10257 istreambuf_iterator_wchar first
={0}, last
={0};
10259 first
.strbuf
= strbuf
;
10260 num_get_wchar_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10262 basic_istream_wchar_sentry_destroy(this);
10264 basic_ios_wchar_setstate(base
, state
);
10268 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAJ@Z */
10269 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAJ@Z */
10270 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_long
, 8)
10271 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_long(basic_istream_wchar
*this, LONG
*v
)
10273 return basic_istream_read_long(this, v
, num_get_wchar_use_facet(
10274 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10277 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAJ@Z */
10278 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAJ@Z */
10279 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_long
, 8)
10280 basic_istream_wchar
* __thiscall
basic_istream_short_read_long(basic_istream_wchar
*this, LONG
*v
)
10282 return basic_istream_read_long(this, v
, num_get_short_use_facet(
10283 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10286 static basic_istream_wchar
* basic_istream_read_ulong(basic_istream_wchar
*this, ULONG
*v
, const num_get
*numget
)
10288 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10289 int state
= IOSTATE_goodbit
;
10291 TRACE("(%p %p)\n", this, v
);
10293 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10294 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10295 istreambuf_iterator_wchar first
={0}, last
={0};
10297 first
.strbuf
= strbuf
;
10298 num_get_wchar_get_ulong(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10300 basic_istream_wchar_sentry_destroy(this);
10302 basic_ios_wchar_setstate(base
, state
);
10306 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAK@Z */
10307 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAK@Z */
10308 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_ulong
, 8)
10309 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_ulong(basic_istream_wchar
*this, ULONG
*v
)
10311 return basic_istream_read_ulong(this, v
, num_get_wchar_use_facet(
10312 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10315 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAK@Z */
10316 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAK@Z */
10317 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_ulong
, 8)
10318 basic_istream_wchar
* __thiscall
basic_istream_short_read_ulong(basic_istream_wchar
*this, ULONG
*v
)
10320 return basic_istream_read_ulong(this, v
, num_get_short_use_facet(
10321 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10324 static basic_istream_wchar
* basic_istream_read_float(basic_istream_wchar
*this, float *v
, const num_get
*numget
)
10326 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10327 int state
= IOSTATE_goodbit
;
10329 TRACE("(%p %p)\n", this, v
);
10331 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10332 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10333 istreambuf_iterator_wchar first
={0}, last
={0};
10335 first
.strbuf
= strbuf
;
10336 num_get_wchar_get_float(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10338 basic_istream_wchar_sentry_destroy(this);
10340 basic_ios_wchar_setstate(base
, state
);
10344 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAM@Z */
10345 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAM@Z */
10346 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_float
, 8)
10347 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_float(basic_istream_wchar
*this, float *v
)
10349 return basic_istream_read_float(this, v
, num_get_wchar_use_facet(
10350 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10353 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAM@Z */
10354 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAM@Z */
10355 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_float
, 8)
10356 basic_istream_wchar
* __thiscall
basic_istream_short_read_float(basic_istream_wchar
*this, float *v
)
10358 return basic_istream_read_float(this, v
, num_get_short_use_facet(
10359 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10362 static basic_istream_wchar
* basic_istream_read_double(basic_istream_wchar
*this, double *v
, const num_get
*numget
)
10364 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10365 int state
= IOSTATE_goodbit
;
10367 TRACE("(%p %p)\n", this, v
);
10369 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10370 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10371 istreambuf_iterator_wchar first
={0}, last
={0};
10373 first
.strbuf
= strbuf
;
10374 num_get_wchar_get_double(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10376 basic_istream_wchar_sentry_destroy(this);
10378 basic_ios_wchar_setstate(base
, state
);
10382 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAN@Z */
10383 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAN@Z */
10384 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_double
, 8)
10385 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_double(basic_istream_wchar
*this, double *v
)
10387 return basic_istream_read_double(this, v
, num_get_wchar_use_facet(
10388 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10391 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAN@Z */
10392 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAN@Z */
10393 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_double
, 8)
10394 basic_istream_wchar
* __thiscall
basic_istream_short_read_double(basic_istream_wchar
*this, double *v
)
10396 return basic_istream_read_double(this, v
, num_get_short_use_facet(
10397 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10400 static basic_istream_wchar
* basic_istream_read_ldouble(basic_istream_wchar
*this, double *v
, const num_get
*numget
)
10402 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10403 int state
= IOSTATE_goodbit
;
10405 TRACE("(%p %p)\n", this, v
);
10407 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10408 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10409 istreambuf_iterator_wchar first
={0}, last
={0};
10411 first
.strbuf
= strbuf
;
10412 num_get_wchar_get_ldouble(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10414 basic_istream_wchar_sentry_destroy(this);
10416 basic_ios_wchar_setstate(base
, state
);
10420 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAO@Z */
10421 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAO@Z */
10422 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_ldouble
, 8)
10423 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_ldouble(basic_istream_wchar
*this, double *v
)
10425 return basic_istream_read_ldouble(this, v
, num_get_wchar_use_facet(
10426 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10429 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAO@Z */
10430 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAO@Z */
10431 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_ldouble
, 8)
10432 basic_istream_wchar
* __thiscall
basic_istream_short_read_ldouble(basic_istream_wchar
*this, double *v
)
10434 return basic_istream_read_ldouble(this, v
, num_get_short_use_facet(
10435 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10438 static basic_istream_wchar
* basic_istream_read_ptr(basic_istream_wchar
*this, void **v
, const num_get
*numget
)
10440 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10441 int state
= IOSTATE_goodbit
;
10443 TRACE("(%p %p)\n", this, v
);
10445 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10446 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10447 istreambuf_iterator_wchar first
={0}, last
={0};
10449 first
.strbuf
= strbuf
;
10450 num_get_wchar_get_void(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10452 basic_istream_wchar_sentry_destroy(this);
10454 basic_ios_wchar_setstate(base
, state
);
10458 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAPAX@Z */
10459 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAPEAX@Z */
10460 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_ptr
, 8)
10461 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_ptr(basic_istream_wchar
*this, void **v
)
10463 return basic_istream_read_ptr(this, v
, num_get_wchar_use_facet(
10464 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10467 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAPAX@Z */
10468 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAPEAX@Z */
10469 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_ptr
, 8)
10470 basic_istream_wchar
* __thiscall
basic_istream_short_read_ptr(basic_istream_wchar
*this, void **v
)
10472 return basic_istream_read_ptr(this, v
, num_get_short_use_facet(
10473 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10476 static basic_istream_wchar
* basic_istream_read_int64(basic_istream_wchar
*this, __int64
*v
, const num_get
*numget
)
10478 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10479 int state
= IOSTATE_goodbit
;
10481 TRACE("(%p %p)\n", this, v
);
10483 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10484 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10485 istreambuf_iterator_wchar first
={0}, last
={0};
10487 first
.strbuf
= strbuf
;
10488 num_get_wchar_get_int64(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10490 basic_istream_wchar_sentry_destroy(this);
10492 basic_ios_wchar_setstate(base
, state
);
10496 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AA_J@Z */
10497 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEA_J@Z */
10498 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_int64
, 8)
10499 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_int64(basic_istream_wchar
*this, __int64
*v
)
10501 return basic_istream_read_int64(this, v
, num_get_wchar_use_facet(
10502 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10505 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AA_J@Z */
10506 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEA_J@Z */
10507 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_int64
, 8)
10508 basic_istream_wchar
* __thiscall
basic_istream_short_read_int64(basic_istream_wchar
*this, __int64
*v
)
10510 return basic_istream_read_int64(this, v
, num_get_short_use_facet(
10511 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10514 static basic_istream_wchar
* basic_istream_read_uint64(basic_istream_wchar
*this, unsigned __int64
*v
, const num_get
*numget
)
10516 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10517 int state
= IOSTATE_goodbit
;
10519 TRACE("(%p %p)\n", this, v
);
10521 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10522 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10523 istreambuf_iterator_wchar first
={0}, last
={0};
10525 first
.strbuf
= strbuf
;
10526 num_get_wchar_get_uint64(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10528 basic_istream_wchar_sentry_destroy(this);
10530 basic_ios_wchar_setstate(base
, state
);
10534 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AA_K@Z */
10535 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEA_K@Z */
10536 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_uint64
, 8)
10537 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_uint64(basic_istream_wchar
*this, unsigned __int64
*v
)
10539 return basic_istream_read_uint64(this, v
, num_get_wchar_use_facet(
10540 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10543 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AA_K@Z */
10544 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEA_K@Z */
10545 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_uint64
, 8)
10546 basic_istream_wchar
* __thiscall
basic_istream_short_read_uint64(basic_istream_wchar
*this, unsigned __int64
*v
)
10548 return basic_istream_read_uint64(this, v
, num_get_short_use_facet(
10549 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10552 static basic_istream_wchar
* basic_istream_read_bool(basic_istream_wchar
*this, MSVCP_bool
*v
, const num_get
*numget
)
10554 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10555 int state
= IOSTATE_goodbit
;
10557 TRACE("(%p %p)\n", this, v
);
10559 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10560 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10561 istreambuf_iterator_wchar first
={0}, last
={0};
10563 first
.strbuf
= strbuf
;
10564 num_get_wchar_get_bool(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10566 basic_istream_wchar_sentry_destroy(this);
10568 basic_ios_wchar_setstate(base
, state
);
10572 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AA_N@Z */
10573 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEA_N@Z */
10574 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_bool
, 8)
10575 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_bool(basic_istream_wchar
*this, MSVCP_bool
*v
)
10577 return basic_istream_read_bool(this, v
, num_get_wchar_use_facet(
10578 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10581 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AA_N@Z */
10582 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEA_N@Z */
10583 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_bool
, 8)
10584 basic_istream_wchar
* __thiscall
basic_istream_short_read_bool(basic_istream_wchar
*this, MSVCP_bool
*v
)
10586 return basic_istream_read_bool(this, v
, num_get_short_use_facet(
10587 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10590 /* ??$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 */
10591 /* ??$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 */
10592 /* ??$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 */
10593 /* ??$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 */
10594 basic_istream_wchar
* __cdecl
basic_istream_wchar_getline_bstr_delim(
10595 basic_istream_wchar
*istream
, basic_string_wchar
*str
, wchar_t delim
)
10597 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istream
);
10598 IOSB_iostate state
= IOSTATE_goodbit
;
10601 TRACE("(%p %p %c)\n", istream
, str
, delim
);
10603 if(basic_istream_wchar_sentry_create(istream
, TRUE
)) {
10604 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10605 MSVCP_basic_string_wchar_clear(str
);
10607 c
= basic_streambuf_wchar_sgetc(strbuf
);
10608 for(; c
!=delim
&& c
!=WEOF
; c
= basic_streambuf_wchar_snextc(strbuf
))
10609 MSVCP_basic_string_wchar_append_ch(str
, c
);
10610 if(c
==delim
) basic_streambuf_wchar_sbumpc(strbuf
);
10611 else if(c
==WEOF
) state
|= IOSTATE_eofbit
;
10613 if(!MSVCP_basic_string_wchar_length(str
) && c
!=delim
) state
|= IOSTATE_failbit
;
10615 basic_istream_wchar_sentry_destroy(istream
);
10617 basic_ios_wchar_setstate(basic_istream_wchar_get_basic_ios(istream
), state
);
10621 /* ??$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 */
10622 /* ??$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 */
10623 /* ??$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 */
10624 /* ??$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 */
10625 basic_istream_wchar
* __cdecl
basic_istream_wchar_getline_bstr(
10626 basic_istream_wchar
*istream
, basic_string_wchar
*str
)
10628 return basic_istream_wchar_getline_bstr_delim(istream
, str
, '\n');
10631 static basic_istream_wchar
* basic_istream_read_bstr(basic_istream_wchar
*istream
,
10632 basic_string_wchar
*str
, const ctype_wchar
*ctype
)
10634 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istream
);
10635 IOSB_iostate state
= IOSTATE_failbit
;
10638 TRACE("(%p %p)\n", istream
, str
);
10640 if(basic_istream_wchar_sentry_create(istream
, FALSE
)) {
10641 MSVCP_size_t count
= ios_base_width_get(&base
->base
);
10646 MSVCP_basic_string_wchar_clear(str
);
10648 for(c
= basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base
));
10649 c
!=WEOF
&& !ctype_wchar_is_ch(ctype
, _SPACE
|_BLANK
, c
) && count
>0;
10650 c
= basic_streambuf_wchar_snextc(basic_ios_wchar_rdbuf_get(base
)), count
--) {
10651 state
= IOSTATE_goodbit
;
10652 MSVCP_basic_string_wchar_append_ch(str
, c
);
10655 basic_istream_wchar_sentry_destroy(istream
);
10657 ios_base_width_set(&base
->base
, 0);
10658 basic_ios_wchar_setstate(base
, state
| (c
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
10662 /* ??$?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 */
10663 /* ??$?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 */
10664 basic_istream_wchar
* __cdecl
basic_istream_wchar_read_bstr(
10665 basic_istream_wchar
*istream
, basic_string_wchar
*str
)
10667 return basic_istream_read_bstr(istream
, str
, ctype_wchar_use_facet(
10668 IOS_LOCALE(basic_istream_wchar_get_basic_ios(istream
)->strbuf
)));
10671 /* ??$?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 */
10672 /* ??$?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 */
10673 basic_istream_wchar
* __cdecl
basic_istream_short_read_bstr(
10674 basic_istream_wchar
*istream
, basic_string_wchar
*str
)
10676 return basic_istream_read_bstr(istream
, str
, ctype_short_use_facet(
10677 IOS_LOCALE(basic_istream_wchar_get_basic_ios(istream
)->strbuf
)));
10680 static basic_istream_wchar
* basic_istream_read_str(basic_istream_wchar
*istream
, wchar_t *str
, const ctype_wchar
*ctype
)
10682 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istream
);
10683 IOSB_iostate state
= IOSTATE_failbit
;
10684 unsigned short c
= '\n';
10686 TRACE("(%p %p)\n", istream
, str
);
10688 if(basic_istream_wchar_sentry_create(istream
, FALSE
)) {
10689 MSVCP_size_t count
= ios_base_width_get(&base
->base
)-1;
10691 for(c
= basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base
));
10692 c
!=WEOF
&& !ctype_wchar_is_ch(ctype
, _SPACE
|_BLANK
, c
) && count
>0;
10693 c
= basic_streambuf_wchar_snextc(basic_ios_wchar_rdbuf_get(base
)), count
--) {
10694 state
= IOSTATE_goodbit
;
10698 basic_istream_wchar_sentry_destroy(istream
);
10701 ios_base_width_set(&base
->base
, 0);
10702 basic_ios_wchar_setstate(base
, state
| (c
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
10706 /* ??$?5_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AAV10@PA_W@Z */
10707 /* ??$?5_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AEAV10@PEA_W@Z */
10708 basic_istream_wchar
* __cdecl
basic_istream_wchar_read_str(basic_istream_wchar
*istream
, wchar_t *str
)
10710 return basic_istream_read_str(istream
, str
, ctype_wchar_use_facet(
10711 IOS_LOCALE(basic_istream_wchar_get_basic_ios(istream
)->strbuf
)));
10714 /* ??$?5GU?$char_traits@G@std@@@std@@YAAAV?$basic_istream@GU?$char_traits@G@std@@@0@AAV10@PAG@Z */
10715 /* ??$?5GU?$char_traits@G@std@@@std@@YAAEAV?$basic_istream@GU?$char_traits@G@std@@@0@AEAV10@PEAG@Z */
10716 basic_istream_wchar
* __cdecl
basic_istream_short_read_str(basic_istream_wchar
*istream
, wchar_t *str
)
10718 return basic_istream_read_str(istream
, str
, ctype_short_use_facet(
10719 IOS_LOCALE(basic_istream_wchar_get_basic_ios(istream
)->strbuf
)));
10722 /* ??$?5_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AAV10@AA_W@Z */
10723 /* ??$?5_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AEAV10@AEA_W@Z */
10724 /* ??$?5GU?$char_traits@G@std@@@std@@YAAAV?$basic_istream@GU?$char_traits@G@std@@@0@AAV10@AAG@Z */
10725 /* ??$?5GU?$char_traits@G@std@@@std@@YAAEAV?$basic_istream@GU?$char_traits@G@std@@@0@AEAV10@AEAG@Z */
10726 basic_istream_wchar
* __cdecl
basic_istream_wchar_read_ch(basic_istream_wchar
*istream
, wchar_t *ch
)
10728 IOSB_iostate state
= IOSTATE_failbit
;
10729 unsigned short c
= 0;
10731 TRACE("(%p %p)\n", istream
, ch
);
10733 if(basic_istream_wchar_sentry_create(istream
, FALSE
)) {
10734 c
= basic_streambuf_wchar_sbumpc(basic_ios_wchar_rdbuf_get(
10735 basic_istream_wchar_get_basic_ios(istream
)));
10737 state
= IOSTATE_goodbit
;
10741 basic_istream_wchar_sentry_destroy(istream
);
10743 basic_ios_wchar_setstate(basic_istream_wchar_get_basic_ios(istream
),
10744 state
| (c
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
10748 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
10749 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
10750 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
10751 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
10752 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_streambuf
, 8)
10753 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_streambuf(
10754 basic_istream_wchar
*this, basic_streambuf_wchar
*streambuf
)
10756 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10757 IOSB_iostate state
= IOSTATE_failbit
;
10758 unsigned short c
= '\n';
10760 TRACE("(%p %p)\n", this, streambuf
);
10762 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10763 for(c
= basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base
)); c
!=WEOF
;
10764 c
= basic_streambuf_wchar_snextc(basic_ios_wchar_rdbuf_get(base
))) {
10765 state
= IOSTATE_goodbit
;
10766 if(basic_streambuf_wchar_sputc(streambuf
, c
) == WEOF
)
10770 basic_istream_wchar_sentry_destroy(this);
10772 basic_ios_wchar_setstate(base
, state
| (c
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
10776 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
10777 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
10778 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
10779 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
10780 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_func
, 8)
10781 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_func(basic_istream_wchar
*this,
10782 basic_istream_wchar
* (__cdecl
*pfunc
)(basic_istream_wchar
*))
10784 TRACE("(%p %p)\n", this, pfunc
);
10789 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AAV21@@Z@Z */
10790 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AEAV21@@Z@Z */
10791 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@GU?$char_traits@G@std@@@1@AAV21@@Z@Z */
10792 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@GU?$char_traits@G@std@@@1@AEAV21@@Z@Z */
10793 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_func_basic_ios
, 8)
10794 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_func_basic_ios(basic_istream_wchar
*this,
10795 basic_ios_wchar
* (__cdecl
*pfunc
)(basic_ios_wchar
*))
10797 TRACE("(%p %p)\n", this, pfunc
);
10798 pfunc(basic_istream_wchar_get_basic_ios(this));
10802 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
10803 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
10804 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
10805 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
10806 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_func_ios_base
, 8)
10807 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_func_ios_base(
10808 basic_istream_wchar
*this, ios_base
* (__cdecl
*pfunc
)(ios_base
*))
10810 TRACE("(%p %p)\n", this, pfunc
);
10811 pfunc(&basic_istream_wchar_get_basic_ios(this)->base
);
10815 /* ?swap@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEXAAV12@@Z */
10816 /* ?swap@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAXAEAV12@@Z */
10817 /* ?swap@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEXAAV12@@Z */
10818 /* ?swap@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAXAEAV12@@Z */
10819 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_swap
, 8)
10820 void __thiscall
basic_istream_wchar_swap(basic_istream_wchar
*this, basic_istream_wchar
*r
)
10822 TRACE("(%p %p)\n", this, r
);
10827 basic_ios_wchar_swap(basic_istream_wchar_get_basic_ios(this),
10828 basic_istream_wchar_get_basic_ios(r
));
10829 this->count
^= r
->count
;
10830 r
->count
^= this->count
;
10831 this->count
^= r
->count
;
10834 static inline basic_ios_char
* basic_iostream_char_to_basic_ios(basic_iostream_char
*ptr
)
10836 return (basic_ios_char
*)((char*)ptr
+basic_iostream_char_vbtable1
[1]);
10839 static inline basic_iostream_char
* basic_iostream_char_from_basic_ios(basic_ios_char
*ptr
)
10841 return (basic_iostream_char
*)((char*)ptr
-basic_iostream_char_vbtable1
[1]);
10844 /* ??0?$basic_iostream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
10845 /* ??0?$basic_iostream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
10846 DEFINE_THISCALL_WRAPPER(basic_iostream_char_ctor
, 12)
10847 basic_iostream_char
* __thiscall
basic_iostream_char_ctor(basic_iostream_char
*this, basic_streambuf_char
*strbuf
, MSVCP_bool virt_init
)
10849 basic_ios_char
*basic_ios
;
10851 TRACE("(%p %p %d)\n", this, strbuf
, virt_init
);
10854 this->base1
.vbtable
= basic_iostream_char_vbtable1
;
10855 this->base2
.vbtable
= basic_iostream_char_vbtable2
;
10856 basic_ios
= basic_istream_char_get_basic_ios(&this->base1
);
10857 basic_ios_char_ctor(basic_ios
);
10859 basic_ios
= basic_istream_char_get_basic_ios(&this->base1
);
10862 basic_ios
->base
.vtable
= &MSVCP_basic_iostream_char_vtable
;
10864 basic_istream_char_ctor(&this->base1
, strbuf
, FALSE
, FALSE
);
10865 basic_ostream_char_ctor_uninitialized(&this->base2
, 0, FALSE
, FALSE
);
10869 /* ??1?$basic_iostream@DU?$char_traits@D@std@@@std@@UAE@XZ */
10870 /* ??1?$basic_iostream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
10871 DEFINE_THISCALL_WRAPPER(basic_iostream_char_dtor
, 4)
10872 void __thiscall
basic_iostream_char_dtor(basic_ios_char
*base
)
10874 basic_iostream_char
*this = basic_iostream_char_from_basic_ios(base
);
10876 TRACE("(%p)\n", this);
10877 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&this->base2
));
10878 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&this->base1
));
10881 /* ??_D?$basic_iostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
10882 /* ??_D?$basic_iostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
10883 DEFINE_THISCALL_WRAPPER(basic_iostream_char_vbase_dtor
, 4)
10884 void __thiscall
basic_iostream_char_vbase_dtor(basic_iostream_char
*this)
10886 TRACE("(%p)\n", this);
10887 basic_iostream_char_dtor(basic_iostream_char_to_basic_ios(this));
10888 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base1
));
10891 DEFINE_THISCALL_WRAPPER(basic_iostream_char_vector_dtor
, 8)
10892 basic_iostream_char
* __thiscall
basic_iostream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
10894 basic_iostream_char
*this = basic_iostream_char_from_basic_ios(base
);
10896 TRACE("(%p %x)\n", this, flags
);
10899 /* we have an array, with the number of elements stored before the first object */
10900 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
10902 for(i
=*ptr
-1; i
>=0; i
--)
10903 basic_iostream_char_vbase_dtor(this+i
);
10904 MSVCRT_operator_delete(ptr
);
10906 basic_iostream_char_vbase_dtor(this);
10908 MSVCRT_operator_delete(this);
10914 /* ?swap@?$basic_iostream@DU?$char_traits@D@std@@@std@@QAEXAAV12@@Z */
10915 /* ?swap@?$basic_iostream@DU?$char_traits@D@std@@@std@@QEAAXAEAV12@@Z */
10916 DEFINE_THISCALL_WRAPPER(basic_iostream_char_swap
, 8)
10917 void __thiscall
basic_iostream_char_swap(basic_iostream_char
*this, basic_iostream_char
*r
)
10919 TRACE("(%p %p)\n", this, r
);
10924 basic_ios_char_swap(basic_istream_char_get_basic_ios(&this->base1
),
10925 basic_istream_char_get_basic_ios(&r
->base1
));
10928 static inline basic_ios_wchar
* basic_iostream_wchar_to_basic_ios(basic_iostream_wchar
*ptr
)
10930 return (basic_ios_wchar
*)((char*)ptr
+basic_iostream_wchar_vbtable1
[1]);
10933 static inline basic_iostream_wchar
* basic_iostream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
10935 return (basic_iostream_wchar
*)((char*)ptr
-basic_iostream_wchar_vbtable1
[1]);
10938 /* ??0?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
10939 /* ??0?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
10940 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_ctor
, 12)
10941 basic_iostream_wchar
* __thiscall
basic_iostream_wchar_ctor(basic_iostream_wchar
*this,
10942 basic_streambuf_wchar
*strbuf
, MSVCP_bool virt_init
)
10944 basic_ios_wchar
*basic_ios
;
10946 TRACE("(%p %p %d)\n", this, strbuf
, virt_init
);
10949 this->base1
.vbtable
= basic_iostream_wchar_vbtable1
;
10950 this->base2
.vbtable
= basic_iostream_wchar_vbtable2
;
10951 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base1
);
10952 basic_ios_wchar_ctor(basic_ios
);
10954 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base1
);
10957 basic_istream_wchar_ctor(&this->base1
, strbuf
, FALSE
, FALSE
);
10958 basic_ostream_wchar_ctor_uninitialized(&this->base2
, 0, FALSE
, FALSE
);
10960 basic_ios
->base
.vtable
= &MSVCP_basic_iostream_wchar_vtable
;
10964 /* ??0?$basic_iostream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
10965 /* ??0?$basic_iostream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
10966 DEFINE_THISCALL_WRAPPER(basic_iostream_short_ctor
, 12)
10967 basic_iostream_wchar
* __thiscall
basic_iostream_short_ctor(basic_iostream_wchar
*this,
10968 basic_streambuf_wchar
*strbuf
, MSVCP_bool virt_init
)
10970 basic_iostream_wchar_ctor(this, strbuf
, virt_init
);
10971 basic_istream_wchar_get_basic_ios(&this->base1
)->base
.vtable
= &MSVCP_basic_iostream_short_vtable
;
10975 /* ??1?$basic_iostream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
10976 /* ??1?$basic_iostream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
10977 /* ??1?$basic_iostream@GU?$char_traits@G@std@@@std@@UAE@XZ */
10978 /* ??1?$basic_iostream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
10979 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_dtor
, 4)
10980 void __thiscall
basic_iostream_wchar_dtor(basic_ios_wchar
*base
)
10982 basic_iostream_wchar
*this = basic_iostream_wchar_from_basic_ios(base
);
10984 TRACE("(%p)\n", this);
10985 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(&this->base2
));
10986 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(&this->base1
));
10989 /* ??_D?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
10990 /* ??_D?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
10991 /* ??_D?$basic_iostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
10992 /* ??_D?$basic_iostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
10993 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_vbase_dtor
, 4)
10994 void __thiscall
basic_iostream_wchar_vbase_dtor(basic_iostream_wchar
*this)
10996 TRACE("(%p)\n", this);
10997 basic_iostream_wchar_dtor(basic_iostream_wchar_to_basic_ios(this));
10998 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(&this->base1
));
11001 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_vector_dtor
, 8)
11002 basic_iostream_wchar
* __thiscall
basic_iostream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
11004 basic_iostream_wchar
*this = basic_iostream_wchar_from_basic_ios(base
);
11006 TRACE("(%p %x)\n", this, flags
);
11009 /* we have an array, with the number of elements stored before the first object */
11010 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11012 for(i
=*ptr
-1; i
>=0; i
--)
11013 basic_iostream_wchar_vbase_dtor(this+i
);
11014 MSVCRT_operator_delete(ptr
);
11016 basic_iostream_wchar_vbase_dtor(this);
11018 MSVCRT_operator_delete(this);
11024 /* ?swap@?$basic_iostream@GU?$char_traits@G@std@@@std@@QAEXAAV12@@Z */
11025 /* ?swap@?$basic_iostream@GU?$char_traits@G@std@@@std@@QEAAXAEAV12@@Z */
11026 /* ?swap@?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QAEXAAV12@@Z */
11027 /* ?swap@?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QEAAXAEAV12@@Z */
11028 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_swap
, 8)
11029 void __thiscall
basic_iostream_wchar_swap(basic_iostream_wchar
*this, basic_iostream_wchar
*r
)
11031 TRACE("(%p %p)\n", this, r
);
11036 basic_ios_wchar_swap(basic_istream_wchar_get_basic_ios(&this->base1
),
11037 basic_istream_wchar_get_basic_ios(&r
->base1
));
11040 static inline basic_ios_char
* basic_ofstream_char_to_basic_ios(basic_ofstream_char
*ptr
)
11042 return (basic_ios_char
*)((char*)ptr
+basic_ofstream_char_vbtable
[1]);
11045 static inline basic_ofstream_char
* basic_ofstream_char_from_basic_ios(basic_ios_char
*ptr
)
11047 return (basic_ofstream_char
*)((char*)ptr
-basic_ofstream_char_vbtable
[1]);
11050 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@XZ */
11051 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@XZ */
11052 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_ctor
, 8)
11053 basic_ofstream_char
* __thiscall
basic_ofstream_char_ctor(basic_ofstream_char
*this, MSVCP_bool virt_init
)
11055 basic_ios_char
*basic_ios
;
11057 TRACE("(%p %d)\n", this, virt_init
);
11060 this->base
.vbtable
= basic_ofstream_char_vbtable
;
11061 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11062 basic_ios_char_ctor(basic_ios
);
11064 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11067 basic_filebuf_char_ctor(&this->filebuf
);
11068 basic_ostream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
11069 basic_ios
->base
.vtable
= &MSVCP_basic_ofstream_char_vtable
;
11073 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
11074 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11075 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_ctor_file
, 12)
11076 basic_ofstream_char
* __thiscall
basic_ofstream_char_ctor_file(
11077 basic_ofstream_char
*this, FILE *file
, MSVCP_bool virt_init
)
11079 basic_ios_char
*basic_ios
;
11081 TRACE("(%p %p %d)\n", this, file
, virt_init
);
11084 this->base
.vbtable
= basic_ofstream_char_vbtable
;
11085 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11086 basic_ios_char_ctor(basic_ios
);
11088 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11091 basic_filebuf_char_ctor_file(&this->filebuf
, file
);
11092 basic_ostream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
11093 basic_ios
->base
.vtable
= &MSVCP_basic_ofstream_char_vtable
;
11097 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@PBDHH@Z */
11098 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDHH@Z */
11099 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_ctor_name
, 20)
11100 basic_ofstream_char
* __thiscall
basic_ofstream_char_ctor_name(basic_ofstream_char
*this,
11101 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11103 TRACE("(%p %s %d %d %d)\n", this, name
, mode
, prot
, virt_init
);
11105 basic_ofstream_char_ctor(this, virt_init
);
11107 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
11108 basic_ios_char
*basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11109 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11114 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@PBGHH@Z */
11115 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@PEBGHH@Z */
11116 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@PB_WHH@Z */
11117 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@PEB_WHH@Z */
11118 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_ctor_name_wchar
, 20)
11119 basic_ofstream_char
* __thiscall
basic_ofstream_char_ctor_name_wchar(basic_ofstream_char
*this,
11120 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11122 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name
), mode
, prot
, virt_init
);
11124 basic_ofstream_char_ctor(this, virt_init
);
11126 if(!basic_filebuf_char_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
11127 basic_ios_char
*basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11128 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11133 /* ??1?$basic_ofstream@DU?$char_traits@D@std@@@std@@UAE@XZ */
11134 /* ??1?$basic_ofstream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
11135 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_dtor
, 4)
11136 void __thiscall
basic_ofstream_char_dtor(basic_ios_char
*base
)
11138 basic_ofstream_char
*this = basic_ofstream_char_from_basic_ios(base
);
11140 TRACE("(%p)\n", this);
11142 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&this->base
));
11143 basic_filebuf_char_dtor(&this->filebuf
);
11146 /* ??_D?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
11147 /* ??_D?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
11148 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_vbase_dtor
, 4)
11149 void __thiscall
basic_ofstream_char_vbase_dtor(basic_ofstream_char
*this)
11151 TRACE("(%p)\n", this);
11153 basic_ofstream_char_dtor(basic_ofstream_char_to_basic_ios(this));
11154 basic_ios_char_dtor(basic_ostream_char_get_basic_ios(&this->base
));
11157 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_vector_dtor
, 8)
11158 basic_ofstream_char
* __thiscall
basic_ofstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
11160 basic_ofstream_char
*this = basic_ofstream_char_from_basic_ios(base
);
11162 TRACE("(%p %x)\n", this, flags
);
11165 /* we have an array, with the number of elements stored before the first object */
11166 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11168 for(i
=*ptr
-1; i
>=0; i
--)
11169 basic_ofstream_char_vbase_dtor(this+i
);
11170 MSVCRT_operator_delete(ptr
);
11172 basic_ofstream_char_vbase_dtor(this);
11174 MSVCRT_operator_delete(this);
11180 /* ?close@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
11181 /* ?close@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
11182 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_close
, 4)
11183 void __thiscall
basic_ofstream_char_close(basic_ofstream_char
*this)
11185 TRACE("(%p)\n", this);
11187 if(!basic_filebuf_char_close(&this->filebuf
)) {
11188 basic_ios_char
*basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11189 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11193 /* ?is_open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QBE_NXZ */
11194 /* ?is_open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
11195 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_is_open
, 4)
11196 MSVCP_bool __thiscall
basic_ofstream_char_is_open(const basic_ofstream_char
*this)
11198 TRACE("(%p)\n", this);
11199 return basic_filebuf_char_is_open(&this->filebuf
);
11202 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPBDHH@Z */
11203 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDHH@Z */
11204 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_open
, 16)
11205 void __thiscall
basic_ofstream_char_open(basic_ofstream_char
*this,
11206 const char *name
, int mode
, int prot
)
11208 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
11210 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
11211 basic_ios_char
*basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11212 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11216 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPBDI@Z */
11217 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDI@Z */
11218 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_open_old
, 12)
11219 void __thiscall
basic_ofstream_char_open_old(basic_ofstream_char
*this,
11220 const char *name
, unsigned int mode
)
11222 basic_ofstream_char_open(this, name
, mode
, _SH_DENYNO
);
11225 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPBGHH@Z */
11226 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGHH@Z */
11227 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPB_WHH@Z */
11228 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WHH@Z */
11229 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_open_wchar
, 16)
11230 void __thiscall
basic_ofstream_char_open_wchar(basic_ofstream_char
*this,
11231 const wchar_t *name
, int mode
, int prot
)
11233 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
11235 if(!basic_filebuf_char_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
11236 basic_ios_char
*basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11237 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11241 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPBGI@Z */
11242 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGI@Z */
11243 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPB_WI@Z */
11244 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WI@Z */
11245 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_open_wchar_old
, 12)
11246 void __thiscall
basic_ofstream_char_open_wchar_old(basic_ofstream_char
*this,
11247 const wchar_t *name
, unsigned int mode
)
11249 basic_ofstream_char_open_wchar(this, name
, mode
, _SH_DENYNO
);
11252 /* ?rdbuf@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
11253 /* ?rdbuf@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
11254 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_rdbuf
, 4)
11255 basic_filebuf_char
* __thiscall
basic_ofstream_char_rdbuf(const basic_ofstream_char
*this)
11257 TRACE("(%p)\n", this);
11258 return (basic_filebuf_char
*)&this->filebuf
;
11261 static inline basic_ios_wchar
* basic_ofstream_wchar_to_basic_ios(basic_ofstream_wchar
*ptr
)
11263 return (basic_ios_wchar
*)((char*)ptr
+basic_ofstream_wchar_vbtable
[1]);
11266 static inline basic_ofstream_wchar
* basic_ofstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
11268 return (basic_ofstream_wchar
*)((char*)ptr
-basic_ofstream_wchar_vbtable
[1]);
11271 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@XZ */
11272 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@XZ */
11273 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_ctor
, 8)
11274 basic_ofstream_wchar
* __thiscall
basic_ofstream_wchar_ctor(basic_ofstream_wchar
*this, MSVCP_bool virt_init
)
11276 basic_ios_wchar
*basic_ios
;
11278 TRACE("(%p %d)\n", this, virt_init
);
11281 this->base
.vbtable
= basic_ofstream_wchar_vbtable
;
11282 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11283 basic_ios_wchar_ctor(basic_ios
);
11285 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11288 basic_filebuf_wchar_ctor(&this->filebuf
);
11289 basic_ostream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
11290 basic_ios
->base
.vtable
= &MSVCP_basic_ofstream_wchar_vtable
;
11294 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@XZ */
11295 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@XZ */
11296 DEFINE_THISCALL_WRAPPER(basic_ofstream_short_ctor
, 8)
11297 basic_ofstream_wchar
* __thiscall
basic_ofstream_short_ctor(basic_ofstream_wchar
*this, MSVCP_bool virt_init
)
11299 basic_ofstream_wchar_ctor(this, virt_init
);
11300 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ofstream_short_vtable
;
11304 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
11305 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11306 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_ctor_file
, 12)
11307 basic_ofstream_wchar
* __thiscall
basic_ofstream_wchar_ctor_file(
11308 basic_ofstream_wchar
*this, FILE *file
, MSVCP_bool virt_init
)
11310 basic_ios_wchar
*basic_ios
;
11312 TRACE("(%p %p %d)\n", this, file
, virt_init
);
11315 this->base
.vbtable
= basic_ofstream_wchar_vbtable
;
11316 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11317 basic_ios_wchar_ctor(basic_ios
);
11319 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11322 basic_filebuf_wchar_ctor_file(&this->filebuf
, file
);
11323 basic_ostream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
11324 basic_ios
->base
.vtable
= &MSVCP_basic_ofstream_wchar_vtable
;
11328 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
11329 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11330 DEFINE_THISCALL_WRAPPER(basic_ofstream_short_ctor_file
, 12)
11331 basic_ofstream_wchar
* __thiscall
basic_ofstream_short_ctor_file(
11332 basic_ofstream_wchar
*this, FILE *file
, MSVCP_bool virt_init
)
11334 basic_ofstream_wchar_ctor_file(this, file
, virt_init
);
11335 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ofstream_short_vtable
;
11339 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@PBDHH@Z */
11340 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBDHH@Z */
11341 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_ctor_name
, 20)
11342 basic_ofstream_wchar
* __thiscall
basic_ofstream_wchar_ctor_name(basic_ofstream_wchar
*this,
11343 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11345 TRACE("(%p %s %d %d %d)\n", this, name
, mode
, prot
, virt_init
);
11347 basic_ofstream_wchar_ctor(this, virt_init
);
11349 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
11350 basic_ios_wchar
*basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11351 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11356 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@PBDHH@Z */
11357 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@PEBDHH@Z */
11358 DEFINE_THISCALL_WRAPPER(basic_ofstream_short_ctor_name
, 20)
11359 basic_ofstream_wchar
* __thiscall
basic_ofstream_short_ctor_name(basic_ofstream_wchar
*this,
11360 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11362 basic_ofstream_wchar_ctor_name(this, name
, mode
, prot
, virt_init
);
11363 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ofstream_short_vtable
;
11367 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@PBGHH@Z */
11368 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBGHH@Z */
11369 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@PB_WHH@Z */
11370 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEB_WHH@Z */
11371 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_ctor_name_wchar
, 20)
11372 basic_ofstream_wchar
* __thiscall
basic_ofstream_wchar_ctor_name_wchar(basic_ofstream_wchar
*this,
11373 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11375 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name
), mode
, prot
, virt_init
);
11377 basic_ofstream_wchar_ctor(this, virt_init
);
11379 if(!basic_filebuf_wchar_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
11380 basic_ios_wchar
*basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11381 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11386 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@PBGHH@Z */
11387 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@PEBGHH@Z */
11388 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@PB_WHH@Z */
11389 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@PEB_WHH@Z */
11390 DEFINE_THISCALL_WRAPPER(basic_ofstream_short_ctor_name_wchar
, 20)
11391 basic_ofstream_wchar
* __thiscall
basic_ofstream_short_ctor_name_wchar(basic_ofstream_wchar
*this,
11392 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11394 basic_ofstream_wchar_ctor_name_wchar(this, name
, mode
, prot
, virt_init
);
11395 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ofstream_short_vtable
;
11399 /* ??1?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
11400 /* ??1?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
11401 /* ??1?$basic_ofstream@GU?$char_traits@G@std@@@std@@UAE@XZ */
11402 /* ??1?$basic_ofstream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
11403 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_dtor
, 4)
11404 void __thiscall
basic_ofstream_wchar_dtor(basic_ios_wchar
*base
)
11406 basic_ofstream_wchar
*this = basic_ofstream_wchar_from_basic_ios(base
);
11408 TRACE("(%p)\n", this);
11410 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(&this->base
));
11411 basic_filebuf_wchar_dtor(&this->filebuf
);
11414 /* ??_D?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
11415 /* ??_D?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
11416 /* ??_D?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
11417 /* ??_D?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
11418 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_vbase_dtor
, 4)
11419 void __thiscall
basic_ofstream_wchar_vbase_dtor(basic_ofstream_wchar
*this)
11421 TRACE("(%p)\n", this);
11423 basic_ofstream_wchar_dtor(basic_ofstream_wchar_to_basic_ios(this));
11424 basic_ios_wchar_dtor(basic_ostream_wchar_get_basic_ios(&this->base
));
11427 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_vector_dtor
, 8)
11428 basic_ofstream_wchar
* __thiscall
basic_ofstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
11430 basic_ofstream_wchar
*this = basic_ofstream_wchar_from_basic_ios(base
);
11432 TRACE("(%p %x)\n", this, flags
);
11435 /* we have an array, with the number of elements stored before the first object */
11436 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11438 for(i
=*ptr
-1; i
>=0; i
--)
11439 basic_ofstream_wchar_vbase_dtor(this+i
);
11440 MSVCRT_operator_delete(ptr
);
11442 basic_ofstream_wchar_vbase_dtor(this);
11444 MSVCRT_operator_delete(this);
11450 /* ?close@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
11451 /* ?close@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
11452 /* ?close@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
11453 /* ?close@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
11454 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_close
, 4)
11455 void __thiscall
basic_ofstream_wchar_close(basic_ofstream_wchar
*this)
11457 TRACE("(%p)\n", this);
11459 if(!basic_filebuf_wchar_close(&this->filebuf
)) {
11460 basic_ios_wchar
*basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11461 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11465 /* ?is_open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
11466 /* ?is_open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
11467 /* ?is_open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QBE_NXZ */
11468 /* ?is_open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
11469 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_is_open
, 4)
11470 MSVCP_bool __thiscall
basic_ofstream_wchar_is_open(const basic_ofstream_wchar
*this)
11472 TRACE("(%p)\n", this);
11473 return basic_filebuf_wchar_is_open(&this->filebuf
);
11476 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDHH@Z */
11477 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDHH@Z */
11478 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPBDHH@Z */
11479 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDHH@Z */
11480 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_open
, 16)
11481 void __thiscall
basic_ofstream_wchar_open(basic_ofstream_wchar
*this,
11482 const char *name
, int mode
, int prot
)
11484 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
11486 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
11487 basic_ios_wchar
*basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11488 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11492 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDI@Z */
11493 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDI@Z */
11494 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPBDI@Z */
11495 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDI@Z */
11496 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_open_old
, 12)
11497 void __thiscall
basic_ofstream_wchar_open_old(basic_ofstream_wchar
*this,
11498 const char *name
, unsigned int mode
)
11500 basic_ofstream_wchar_open(this, name
, mode
, _SH_DENYNO
);
11503 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGHH@Z */
11504 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGHH@Z */
11505 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WHH@Z */
11506 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WHH@Z */
11507 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPBGHH@Z */
11508 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGHH@Z */
11509 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPB_WHH@Z */
11510 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WHH@Z */
11511 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_open_wchar
, 16)
11512 void __thiscall
basic_ofstream_wchar_open_wchar(basic_ofstream_wchar
*this,
11513 const wchar_t *name
, int mode
, int prot
)
11515 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
11517 if(!basic_filebuf_wchar_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
11518 basic_ios_wchar
*basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11519 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11523 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGI@Z */
11524 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGI@Z */
11525 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WI@Z */
11526 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WI@Z */
11527 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPBGI@Z */
11528 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGI@Z */
11529 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPB_WI@Z */
11530 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WI@Z */
11531 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_open_wchar_old
, 12)
11532 void __thiscall
basic_ofstream_wchar_open_wchar_old(basic_ofstream_wchar
*this,
11533 const wchar_t *name
, unsigned int mode
)
11535 basic_ofstream_wchar_open_wchar(this, name
, mode
, _SH_DENYNO
);
11538 /* ?rdbuf@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
11539 /* ?rdbuf@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
11540 /* ?rdbuf@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
11541 /* ?rdbuf@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
11542 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_rdbuf
, 4)
11543 basic_filebuf_wchar
* __thiscall
basic_ofstream_wchar_rdbuf(const basic_ofstream_wchar
*this)
11545 TRACE("(%p)\n", this);
11546 return (basic_filebuf_wchar
*)&this->filebuf
;
11549 static inline basic_ios_char
* basic_ifstream_char_to_basic_ios(basic_ifstream_char
*ptr
)
11551 return (basic_ios_char
*)((char*)ptr
+basic_ifstream_char_vbtable
[1]);
11554 static inline basic_ifstream_char
* basic_ifstream_char_from_basic_ios(basic_ios_char
*ptr
)
11556 return (basic_ifstream_char
*)((char*)ptr
-basic_ifstream_char_vbtable
[1]);
11559 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@XZ */
11560 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@XZ */
11561 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor
, 8)
11562 basic_ifstream_char
* __thiscall
basic_ifstream_char_ctor(basic_ifstream_char
*this, MSVCP_bool virt_init
)
11564 basic_ios_char
*basic_ios
;
11566 TRACE("(%p %d)\n", this, virt_init
);
11569 this->base
.vbtable
= basic_ifstream_char_vbtable
;
11570 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11571 basic_ios_char_ctor(basic_ios
);
11573 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11576 basic_filebuf_char_ctor(&this->filebuf
);
11577 basic_istream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
11578 basic_ios
->base
.vtable
= &MSVCP_basic_ifstream_char_vtable
;
11582 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
11583 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11584 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor_file
, 12)
11585 basic_ifstream_char
* __thiscall
basic_ifstream_char_ctor_file(
11586 basic_ifstream_char
*this, FILE *file
, MSVCP_bool virt_init
)
11588 basic_ios_char
*basic_ios
;
11590 TRACE("(%p %p %d)\n", this, file
, virt_init
);
11593 this->base
.vbtable
= basic_ifstream_char_vbtable
;
11594 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11595 basic_ios_char_ctor(basic_ios
);
11597 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11600 basic_filebuf_char_ctor_file(&this->filebuf
, file
);
11601 basic_istream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
11602 basic_ios
->base
.vtable
= &MSVCP_basic_ifstream_char_vtable
;
11606 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PBDHH@Z */
11607 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDHH@Z */
11608 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor_name
, 20)
11609 basic_ifstream_char
* __thiscall
basic_ifstream_char_ctor_name(basic_ifstream_char
*this,
11610 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11612 TRACE("(%p %s %d %d %d)\n", this, name
, mode
, prot
, virt_init
);
11614 basic_ifstream_char_ctor(this, virt_init
);
11616 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
11617 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11618 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11623 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PBDH@Z */
11624 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDH@Z */
11625 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor_name_old
, 16)
11626 basic_ifstream_char
* __thiscall
basic_ifstream_char_ctor_name_old(basic_ifstream_char
*this,
11627 const char *name
, int mode
, MSVCP_bool virt_init
)
11629 return basic_ifstream_char_ctor_name(this, name
, mode
, _SH_DENYNO
, virt_init
);
11632 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PBGHH@Z */
11633 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEBGHH@Z */
11634 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PB_WHH@Z */
11635 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEB_WHH@Z */
11636 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor_name_wchar
, 20)
11637 basic_ifstream_char
* __thiscall
basic_ifstream_char_ctor_name_wchar(basic_ifstream_char
*this,
11638 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11640 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name
), mode
, prot
, virt_init
);
11642 basic_ifstream_char_ctor(this, virt_init
);
11644 if(!basic_filebuf_char_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
11645 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11646 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11651 /* ??1?$basic_ifstream@DU?$char_traits@D@std@@@std@@UAE@XZ */
11652 /* ??1?$basic_ifstream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
11653 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_dtor
, 4)
11654 void __thiscall
basic_ifstream_char_dtor(basic_ios_char
*base
)
11656 basic_ifstream_char
*this = basic_ifstream_char_from_basic_ios(base
);
11658 TRACE("(%p)\n", this);
11660 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&this->base
));
11661 basic_filebuf_char_dtor(&this->filebuf
);
11664 /* ??_D?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
11665 /* ??_D?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
11666 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_vbase_dtor
, 4)
11667 void __thiscall
basic_ifstream_char_vbase_dtor(basic_ifstream_char
*this)
11669 TRACE("(%p)\n", this);
11671 basic_ifstream_char_dtor(basic_ifstream_char_to_basic_ios(this));
11672 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base
));
11675 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_vector_dtor
, 8)
11676 basic_ifstream_char
* __thiscall
basic_ifstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
11678 basic_ifstream_char
*this = basic_ifstream_char_from_basic_ios(base
);
11680 TRACE("(%p %x)\n", this, flags
);
11683 /* we have an array, with the number of elements stored before the first object */
11684 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11686 for(i
=*ptr
-1; i
>=0; i
--)
11687 basic_ifstream_char_vbase_dtor(this+i
);
11688 MSVCRT_operator_delete(ptr
);
11690 basic_ifstream_char_vbase_dtor(this);
11692 MSVCRT_operator_delete(this);
11698 /* ?close@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
11699 /* ?close@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
11700 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_close
, 4)
11701 void __thiscall
basic_ifstream_char_close(basic_ifstream_char
*this)
11703 TRACE("(%p)\n", this);
11705 if(!basic_filebuf_char_close(&this->filebuf
)) {
11706 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11707 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11711 /* ?is_open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QBE_NXZ */
11712 /* ?is_open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
11713 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_is_open
, 4)
11714 MSVCP_bool __thiscall
basic_ifstream_char_is_open(const basic_ifstream_char
*this)
11716 TRACE("(%p)\n", this);
11717 return basic_filebuf_char_is_open(&this->filebuf
);
11720 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBDHH@Z */
11721 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDHH@Z */
11722 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_open
, 16)
11723 void __thiscall
basic_ifstream_char_open(basic_ifstream_char
*this,
11724 const char *name
, int mode
, int prot
)
11726 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
11728 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
11729 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11730 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11734 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBDI@Z */
11735 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDI@Z */
11736 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_open_old
, 12)
11737 void __thiscall
basic_ifstream_char_open_old(basic_ifstream_char
*this,
11738 const char *name
, unsigned int mode
)
11740 basic_ifstream_char_open(this, name
, mode
, _SH_DENYNO
);
11743 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBGHH@Z */
11744 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGHH@Z */
11745 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPB_WHH@Z */
11746 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WHH@Z */
11747 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_open_wchar
, 16)
11748 void __thiscall
basic_ifstream_char_open_wchar(basic_ifstream_char
*this,
11749 const wchar_t *name
, int mode
, int prot
)
11751 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
11753 if(!basic_filebuf_char_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
11754 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11755 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11759 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBGI@Z */
11760 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGI@Z */
11761 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPB_WI@Z */
11762 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WI@Z */
11763 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_open_wchar_old
, 12)
11764 void __thiscall
basic_ifstream_char_open_wchar_old(basic_ifstream_char
*this,
11765 const wchar_t *name
, unsigned int mode
)
11767 basic_ifstream_char_open_wchar(this, name
, mode
, _SH_DENYNO
);
11770 /* ?rdbuf@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
11771 /* ?rdbuf@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
11772 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_rdbuf
, 4)
11773 basic_filebuf_char
* __thiscall
basic_ifstream_char_rdbuf(const basic_ifstream_char
*this)
11775 TRACE("(%p)\n", this);
11776 return (basic_filebuf_char
*)&this->filebuf
;
11779 static inline basic_ios_wchar
* basic_ifstream_wchar_to_basic_ios(basic_ifstream_wchar
*ptr
)
11781 return (basic_ios_wchar
*)((char*)ptr
+basic_ifstream_wchar_vbtable
[1]);
11784 static inline basic_ifstream_wchar
* basic_ifstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
11786 return (basic_ifstream_wchar
*)((char*)ptr
-basic_ifstream_wchar_vbtable
[1]);
11789 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@XZ */
11790 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@XZ */
11791 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_ctor
, 8)
11792 basic_ifstream_wchar
* __thiscall
basic_ifstream_wchar_ctor(basic_ifstream_wchar
*this, MSVCP_bool virt_init
)
11794 basic_ios_wchar
*basic_ios
;
11796 TRACE("(%p %d)\n", this, virt_init
);
11799 this->base
.vbtable
= basic_ifstream_wchar_vbtable
;
11800 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
11801 basic_ios_wchar_ctor(basic_ios
);
11803 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
11806 basic_filebuf_wchar_ctor(&this->filebuf
);
11807 basic_istream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
11808 basic_ios
->base
.vtable
= &MSVCP_basic_ifstream_wchar_vtable
;
11812 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@XZ */
11813 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@XZ */
11814 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor
, 8)
11815 basic_ifstream_wchar
* __thiscall
basic_ifstream_short_ctor(basic_ifstream_wchar
*this, MSVCP_bool virt_init
)
11817 basic_ifstream_wchar_ctor(this, virt_init
);
11818 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ifstream_short_vtable
;
11822 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
11823 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11824 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_ctor_file
, 12)
11825 basic_ifstream_wchar
* __thiscall
basic_ifstream_wchar_ctor_file(
11826 basic_ifstream_wchar
*this, FILE *file
, MSVCP_bool virt_init
)
11828 basic_ios_wchar
*basic_ios
;
11830 TRACE("(%p %p %d)\n", this, file
, virt_init
);
11833 this->base
.vbtable
= basic_ifstream_wchar_vbtable
;
11834 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
11835 basic_ios_wchar_ctor(basic_ios
);
11837 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
11840 basic_filebuf_wchar_ctor_file(&this->filebuf
, file
);
11841 basic_istream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
11842 basic_ios
->base
.vtable
= &MSVCP_basic_ifstream_wchar_vtable
;
11846 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
11847 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11848 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor_file
, 12)
11849 basic_ifstream_wchar
* __thiscall
basic_ifstream_short_ctor_file(
11850 basic_ifstream_wchar
*this, FILE *file
, MSVCP_bool virt_init
)
11852 basic_ifstream_wchar_ctor_file(this, file
, virt_init
);
11853 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ifstream_short_vtable
;
11857 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@PBDHH@Z */
11858 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBDHH@Z */
11859 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_ctor_name
, 20)
11860 basic_ifstream_wchar
* __thiscall
basic_ifstream_wchar_ctor_name(basic_ifstream_wchar
*this,
11861 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11863 TRACE("(%p %s %d %d %d)\n", this, name
, mode
, prot
, virt_init
);
11865 basic_ifstream_wchar_ctor(this, virt_init
);
11867 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
11868 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
11869 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11874 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@PBDHH@Z */
11875 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@PEBDHH@Z */
11876 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor_name
, 20)
11877 basic_ifstream_wchar
* __thiscall
basic_ifstream_short_ctor_name(basic_ifstream_wchar
*this,
11878 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11880 basic_ifstream_wchar_ctor_name(this, name
, mode
, prot
, virt_init
);
11881 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ifstream_short_vtable
;
11885 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@PBDH@Z */
11886 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBDH@Z */
11887 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_ctor_name_old
, 16)
11888 basic_ifstream_wchar
* __thiscall
basic_ifstream_wchar_ctor_name_old(basic_ifstream_wchar
*this,
11889 const char *name
, int mode
, MSVCP_bool virt_init
)
11891 return basic_ifstream_wchar_ctor_name(this, name
, mode
, _SH_DENYNO
, virt_init
);
11894 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@PBDH@Z */
11895 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@PEBDH@Z */
11896 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor_name_old
, 16)
11897 basic_ifstream_wchar
* __thiscall
basic_ifstream_short_ctor_name_old(basic_ifstream_wchar
*this,
11898 const char *name
, int mode
, MSVCP_bool virt_init
)
11900 return basic_ifstream_short_ctor_name(this, name
, mode
, _SH_DENYNO
, virt_init
);
11903 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@PBGHH@Z */
11904 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBGHH@Z */
11905 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@PB_WHH@Z */
11906 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEB_WHH@Z */
11907 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_ctor_name_wchar
, 20)
11908 basic_ifstream_wchar
* __thiscall
basic_ifstream_wchar_ctor_name_wchar(basic_ifstream_wchar
*this,
11909 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11911 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name
), mode
, prot
, virt_init
);
11913 basic_ifstream_wchar_ctor(this, virt_init
);
11915 if(!basic_filebuf_wchar_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
11916 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
11917 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11922 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@PBGHH@Z */
11923 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@PEBGHH@Z */
11924 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@PB_WHH@Z */
11925 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@PEB_WHH@Z */
11926 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor_name_wchar
, 20)
11927 basic_ifstream_wchar
* __thiscall
basic_ifstream_short_ctor_name_wchar(basic_ifstream_wchar
*this,
11928 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11930 basic_ifstream_wchar_ctor_name_wchar(this, name
, mode
, prot
, virt_init
);
11931 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ifstream_short_vtable
;
11935 /* ??1?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
11936 /* ??1?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
11937 /* ??1?$basic_ifstream@GU?$char_traits@G@std@@@std@@UAE@XZ */
11938 /* ??1?$basic_ifstream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
11939 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_dtor
, 4)
11940 void __thiscall
basic_ifstream_wchar_dtor(basic_ios_wchar
*base
)
11942 basic_ifstream_wchar
*this = basic_ifstream_wchar_from_basic_ios(base
);
11944 TRACE("(%p)\n", this);
11946 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(&this->base
));
11947 basic_filebuf_wchar_dtor(&this->filebuf
);
11950 /* ??_D?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
11951 /* ??_D?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
11952 /* ??_D?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
11953 /* ??_D?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
11954 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_vbase_dtor
, 4)
11955 void __thiscall
basic_ifstream_wchar_vbase_dtor(basic_ifstream_wchar
*this)
11957 TRACE("(%p)\n", this);
11959 basic_ifstream_wchar_dtor(basic_ifstream_wchar_to_basic_ios(this));
11960 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(&this->base
));
11963 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_vector_dtor
, 8)
11964 basic_ifstream_wchar
* __thiscall
basic_ifstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
11966 basic_ifstream_wchar
*this = basic_ifstream_wchar_from_basic_ios(base
);
11968 TRACE("(%p %x)\n", this, flags
);
11971 /* we have an array, with the number of elements stored before the first object */
11972 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11974 for(i
=*ptr
-1; i
>=0; i
--)
11975 basic_ifstream_wchar_vbase_dtor(this+i
);
11976 MSVCRT_operator_delete(ptr
);
11978 basic_ifstream_wchar_vbase_dtor(this);
11980 MSVCRT_operator_delete(this);
11986 /* ?close@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
11987 /* ?close@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
11988 /* ?close@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
11989 /* ?close@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
11990 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_close
, 4)
11991 void __thiscall
basic_ifstream_wchar_close(basic_ifstream_wchar
*this)
11993 TRACE("(%p)\n", this);
11995 if(!basic_filebuf_wchar_close(&this->filebuf
)) {
11996 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
11997 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12001 /* ?is_open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
12002 /* ?is_open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
12003 /* ?is_open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QBE_NXZ */
12004 /* ?is_open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
12005 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_is_open
, 4)
12006 MSVCP_bool __thiscall
basic_ifstream_wchar_is_open(const basic_ifstream_wchar
*this)
12008 TRACE("(%p)\n", this);
12009 return basic_filebuf_wchar_is_open(&this->filebuf
);
12012 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDHH@Z */
12013 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDHH@Z */
12014 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPBDHH@Z */
12015 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDHH@Z */
12016 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_open
, 16)
12017 void __thiscall
basic_ifstream_wchar_open(basic_ifstream_wchar
*this,
12018 const char *name
, int mode
, int prot
)
12020 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
12022 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
12023 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12024 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12028 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDI@Z */
12029 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDI@Z */
12030 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPBDI@Z */
12031 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDI@Z */
12032 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_open_old
, 12)
12033 void __thiscall
basic_ifstream_wchar_open_old(basic_ifstream_wchar
*this,
12034 const char *name
, unsigned int mode
)
12036 basic_ifstream_wchar_open(this, name
, mode
, _SH_DENYNO
);
12039 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGHH@Z */
12040 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGHH@Z */
12041 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WHH@Z */
12042 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WHH@Z */
12043 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPBGHH@Z */
12044 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGHH@Z */
12045 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPB_WHH@Z */
12046 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WHH@Z */
12047 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_open_wchar
, 16)
12048 void __thiscall
basic_ifstream_wchar_open_wchar(basic_ifstream_wchar
*this,
12049 const wchar_t *name
, int mode
, int prot
)
12051 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
12053 if(!basic_filebuf_wchar_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
12054 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12055 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12059 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGI@Z */
12060 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGI@Z */
12061 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WI@Z */
12062 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WI@Z */
12063 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPBGI@Z */
12064 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGI@Z */
12065 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPB_WI@Z */
12066 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WI@Z */
12067 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_open_wchar_old
, 12)
12068 void __thiscall
basic_ifstream_wchar_open_wchar_old(basic_ifstream_wchar
*this,
12069 const wchar_t *name
, unsigned int mode
)
12071 basic_ifstream_wchar_open_wchar(this, name
, mode
, _SH_DENYNO
);
12074 /* ?rdbuf@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
12075 /* ?rdbuf@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
12076 /* ?rdbuf@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
12077 /* ?rdbuf@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
12078 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_rdbuf
, 4)
12079 basic_filebuf_wchar
* __thiscall
basic_ifstream_wchar_rdbuf(const basic_ifstream_wchar
*this)
12081 TRACE("(%p)\n", this);
12082 return (basic_filebuf_wchar
*)&this->filebuf
;
12085 static inline basic_ios_char
* basic_fstream_char_to_basic_ios(basic_fstream_char
*ptr
)
12087 return (basic_ios_char
*)((char*)ptr
+basic_fstream_char_vbtable1
[1]);
12090 static inline basic_fstream_char
* basic_fstream_char_from_basic_ios(basic_ios_char
*ptr
)
12092 return (basic_fstream_char
*)((char*)ptr
-basic_fstream_char_vbtable1
[1]);
12095 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@XZ */
12096 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@XZ */
12097 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor
, 8)
12098 basic_fstream_char
* __thiscall
basic_fstream_char_ctor(basic_fstream_char
*this, MSVCP_bool virt_init
)
12100 basic_ios_char
*basic_ios
;
12102 TRACE("(%p %d)\n", this, virt_init
);
12105 this->base
.base1
.vbtable
= basic_fstream_char_vbtable1
;
12106 this->base
.base2
.vbtable
= basic_fstream_char_vbtable2
;
12107 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12108 basic_ios_char_ctor(basic_ios
);
12110 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12113 basic_filebuf_char_ctor(&this->filebuf
);
12114 basic_iostream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
);
12115 basic_ios
->base
.vtable
= &MSVCP_basic_fstream_char_vtable
;
12119 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
12120 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
12121 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor_file
, 12)
12122 basic_fstream_char
* __thiscall
basic_fstream_char_ctor_file(basic_fstream_char
*this,
12123 FILE *file
, MSVCP_bool virt_init
)
12125 basic_ios_char
*basic_ios
;
12127 TRACE("(%p %p %d)\n", this, file
, virt_init
);
12130 this->base
.base1
.vbtable
= basic_fstream_char_vbtable1
;
12131 this->base
.base2
.vbtable
= basic_fstream_char_vbtable2
;
12132 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12133 basic_ios_char_ctor(basic_ios
);
12135 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12138 basic_filebuf_char_ctor_file(&this->filebuf
, file
);
12139 basic_iostream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
);
12140 basic_ios
->base
.vtable
= &MSVCP_basic_fstream_char_vtable
;
12144 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PBDHH@Z */
12145 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDHH@Z */
12146 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor_name
, 20)
12147 basic_fstream_char
* __thiscall
basic_fstream_char_ctor_name(basic_fstream_char
*this,
12148 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12150 TRACE("(%p %s %d %d %d)\n", this, name
, mode
, prot
, virt_init
);
12152 basic_fstream_char_ctor(this, virt_init
);
12154 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
, prot
)) {
12155 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12156 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
12161 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PBDH@Z */
12162 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDH@Z */
12163 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor_name_noprot
, 16)
12164 basic_fstream_char
* __thiscall
basic_fstream_char_ctor_name_noprot(basic_fstream_char
*this,
12165 const char *name
, int mode
, MSVCP_bool virt_init
)
12167 return basic_fstream_char_ctor_name(this, name
, mode
, _SH_DENYNO
, virt_init
);
12170 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PBGHH@Z */
12171 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEBGHH@Z */
12172 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PB_WHH@Z */
12173 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEB_WHH@Z */
12174 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor_name_wchar
, 20)
12175 basic_fstream_char
* __thiscall
basic_fstream_char_ctor_name_wchar(basic_fstream_char
*this,
12176 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12178 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name
), mode
, prot
, virt_init
);
12180 basic_fstream_char_ctor(this, virt_init
);
12182 if(!basic_filebuf_char_open_wchar(&this->filebuf
, name
, mode
, prot
)) {
12183 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12184 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
12189 /* ??1?$basic_fstream@DU?$char_traits@D@std@@@std@@UAE@XZ */
12190 /* ??1?$basic_fstream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
12191 DEFINE_THISCALL_WRAPPER(basic_fstream_char_dtor
, 4)
12192 void __thiscall
basic_fstream_char_dtor(basic_ios_char
*base
)
12194 basic_fstream_char
*this = basic_fstream_char_from_basic_ios(base
);
12196 TRACE("(%p)\n", this);
12198 basic_iostream_char_dtor(basic_iostream_char_to_basic_ios(&this->base
));
12199 basic_filebuf_char_dtor(&this->filebuf
);
12202 /* ??_D?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
12203 /* ??_D?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
12204 DEFINE_THISCALL_WRAPPER(basic_fstream_char_vbase_dtor
, 4)
12205 void __thiscall
basic_fstream_char_vbase_dtor(basic_fstream_char
*this)
12207 TRACE("(%p)\n", this);
12209 basic_fstream_char_dtor(basic_fstream_char_to_basic_ios(this));
12210 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base
.base1
));
12213 DEFINE_THISCALL_WRAPPER(basic_fstream_char_vector_dtor
, 8)
12214 basic_fstream_char
* __thiscall
basic_fstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
12216 basic_fstream_char
*this = basic_fstream_char_from_basic_ios(base
);
12218 TRACE("(%p %x)\n", this, flags
);
12221 /* we have an array, with the number of elements stored before the first object */
12222 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
12224 for(i
=*ptr
-1; i
>=0; i
--)
12225 basic_fstream_char_vbase_dtor(this+i
);
12226 MSVCRT_operator_delete(ptr
);
12228 basic_fstream_char_vbase_dtor(this);
12230 MSVCRT_operator_delete(this);
12236 /* ?close@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
12237 /* ?close@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
12238 DEFINE_THISCALL_WRAPPER(basic_fstream_char_close
, 4)
12239 void __thiscall
basic_fstream_char_close(basic_fstream_char
*this)
12241 TRACE("(%p)\n", this);
12243 if(!basic_filebuf_char_close(&this->filebuf
)) {
12244 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12245 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
12249 /* ?is_open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QBE_NXZ */
12250 /* ?is_open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
12251 DEFINE_THISCALL_WRAPPER(basic_fstream_char_is_open
, 4)
12252 MSVCP_bool __thiscall
basic_fstream_char_is_open(const basic_fstream_char
*this)
12254 TRACE("(%p)\n", this);
12255 return basic_filebuf_char_is_open(&this->filebuf
);
12258 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPBDHH@Z */
12259 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDHH@Z */
12260 DEFINE_THISCALL_WRAPPER(basic_fstream_char_open
, 16)
12261 void __thiscall
basic_fstream_char_open(basic_fstream_char
*this,
12262 const char *name
, int mode
, int prot
)
12264 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
12266 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
, prot
)) {
12267 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12268 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
12272 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPBDI@Z */
12273 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDI@Z */
12274 DEFINE_THISCALL_WRAPPER(basic_fstream_char_open_old
, 12)
12275 void __thiscall
basic_fstream_char_open_old(basic_fstream_char
*this,
12276 const char *name
, unsigned int mode
)
12278 basic_fstream_char_open(this, name
, mode
, _SH_DENYNO
);
12281 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPBGHH@Z */
12282 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGHH@Z */
12283 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPB_WHH@Z */
12284 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WHH@Z */
12285 DEFINE_THISCALL_WRAPPER(basic_fstream_char_open_wchar
, 16)
12286 void __thiscall
basic_fstream_char_open_wchar(basic_fstream_char
*this,
12287 const wchar_t *name
, int mode
, int prot
)
12289 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
12291 if(!basic_filebuf_char_open_wchar(&this->filebuf
, name
, mode
, prot
)) {
12292 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12293 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
12297 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPBGI@Z */
12298 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGI@Z */
12299 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPB_WI@Z */
12300 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WI@Z */
12301 DEFINE_THISCALL_WRAPPER(basic_fstream_char_open_wchar_old
, 12)
12302 void __thiscall
basic_fstream_char_open_wchar_old(basic_fstream_char
*this,
12303 const wchar_t *name
, unsigned int mode
)
12305 basic_fstream_char_open_wchar(this, name
, mode
, _SH_DENYNO
);
12308 /* ?rdbuf@?$basic_fstream@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
12309 /* ?rdbuf@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
12310 DEFINE_THISCALL_WRAPPER(basic_fstream_char_rdbuf
, 4)
12311 basic_filebuf_char
* __thiscall
basic_fstream_char_rdbuf(const basic_fstream_char
*this)
12313 TRACE("(%p)\n", this);
12314 return (basic_filebuf_char
*)&this->filebuf
;
12317 static inline basic_ios_wchar
* basic_fstream_wchar_to_basic_ios(basic_fstream_wchar
*ptr
)
12319 return (basic_ios_wchar
*)((char*)ptr
+basic_fstream_wchar_vbtable1
[1]);
12322 static inline basic_fstream_wchar
* basic_fstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
12324 return (basic_fstream_wchar
*)((char*)ptr
-basic_fstream_wchar_vbtable1
[1]);
12327 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@XZ */
12328 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@XZ */
12329 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_ctor
, 8)
12330 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_ctor(basic_fstream_wchar
*this, MSVCP_bool virt_init
)
12332 basic_ios_wchar
*basic_ios
;
12334 TRACE("(%p %d)\n", this, virt_init
);
12337 this->base
.base1
.vbtable
= basic_fstream_wchar_vbtable1
;
12338 this->base
.base2
.vbtable
= basic_fstream_wchar_vbtable2
;
12339 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12340 basic_ios_wchar_ctor(basic_ios
);
12342 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12345 basic_filebuf_wchar_ctor(&this->filebuf
);
12346 basic_iostream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
);
12347 basic_ios
->base
.vtable
= &MSVCP_basic_fstream_wchar_vtable
;
12351 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@XZ */
12352 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@XZ */
12353 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor
, 8)
12354 basic_fstream_wchar
* __thiscall
basic_fstream_short_ctor(basic_fstream_wchar
*this, MSVCP_bool virt_init
)
12356 basic_fstream_wchar_ctor(this, virt_init
);
12357 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_fstream_short_vtable
;
12361 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
12362 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
12363 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_ctor_file
, 12)
12364 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_ctor_file(basic_fstream_wchar
*this,
12365 FILE *file
, MSVCP_bool virt_init
)
12367 basic_ios_wchar
*basic_ios
;
12369 TRACE("(%p %p %d)\n", this, file
, virt_init
);
12372 this->base
.base1
.vbtable
= basic_fstream_wchar_vbtable1
;
12373 this->base
.base2
.vbtable
= basic_fstream_wchar_vbtable2
;
12374 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12375 basic_ios_wchar_ctor(basic_ios
);
12377 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12380 basic_filebuf_wchar_ctor_file(&this->filebuf
, file
);
12381 basic_iostream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
);
12382 basic_ios
->base
.vtable
= &MSVCP_basic_fstream_wchar_vtable
;
12386 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
12387 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
12388 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor_file
, 12)
12389 basic_fstream_wchar
* __thiscall
basic_fstream_short_ctor_file(basic_fstream_wchar
*this,
12390 FILE *file
, MSVCP_bool virt_init
)
12392 basic_fstream_wchar_ctor_file(this, file
, virt_init
);
12393 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_fstream_short_vtable
;
12397 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PB_WHH@Z */
12398 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEB_WHH@Z */
12399 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_ctor_name
, 20)
12400 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_ctor_name(basic_fstream_wchar
*this,
12401 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12403 TRACE("(%p %s %d %d %d)\n", this, name
, mode
, prot
, virt_init
);
12405 basic_fstream_wchar_ctor(this, virt_init
);
12407 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
, prot
)) {
12408 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12409 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12414 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@PBGHH@Z */
12415 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@PEBGHH@Z */
12416 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor_name
, 20)
12417 basic_fstream_wchar
* __thiscall
basic_fstream_short_ctor_name(basic_fstream_wchar
*this,
12418 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12420 basic_fstream_wchar_ctor_name(this, name
, mode
, prot
, virt_init
);
12421 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_fstream_short_vtable
;
12425 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PBDH@Z */
12426 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_ctor_name_noprot
, 16)
12427 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_ctor_name_noprot(basic_fstream_wchar
*this,
12428 const char *name
, int mode
, MSVCP_bool virt_init
)
12430 return basic_fstream_wchar_ctor_name(this, name
, mode
, _SH_DENYNO
, virt_init
);
12433 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@PBDH@Z */
12434 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@PEBDH@Z */
12435 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor_name_noprot
, 16)
12436 basic_fstream_wchar
* __thiscall
basic_fstream_short_ctor_name_noprot(basic_fstream_wchar
*this,
12437 const char *name
, int mode
, MSVCP_bool virt_init
)
12439 return basic_fstream_short_ctor_name(this, name
, mode
, _SH_DENYNO
, virt_init
);
12442 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PBGHH@Z */
12443 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBGHH@Z */
12444 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PB_WHH@Z */
12445 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEB_WHH@Z */
12446 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_ctor_name_wchar
, 20)
12447 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_ctor_name_wchar(basic_fstream_wchar
*this,
12448 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12450 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name
), mode
, prot
, virt_init
);
12452 basic_fstream_wchar_ctor(this, virt_init
);
12454 if(!basic_filebuf_wchar_open_wchar(&this->filebuf
, name
, mode
, prot
)) {
12455 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12456 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12461 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@PBGHH@Z */
12462 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@PEBGHH@Z */
12463 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@PB_WHH@Z */
12464 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@PEB_WHH@Z */
12465 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor_name_wchar
, 20)
12466 basic_fstream_wchar
* __thiscall
basic_fstream_short_ctor_name_wchar(basic_fstream_wchar
*this,
12467 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
12469 basic_fstream_wchar_ctor_name_wchar(this, name
, mode
, prot
, virt_init
);
12470 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_fstream_short_vtable
;
12474 /* ??1?$basic_fstream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
12475 /* ??1?$basic_fstream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
12476 /* ??1?$basic_fstream@GU?$char_traits@G@std@@@std@@UAE@XZ */
12477 /* ??1?$basic_fstream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
12478 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_dtor
, 4)
12479 void __thiscall
basic_fstream_wchar_dtor(basic_ios_wchar
*base
)
12481 basic_fstream_wchar
*this = basic_fstream_wchar_from_basic_ios(base
);
12483 TRACE("(%p)\n", this);
12485 basic_iostream_wchar_dtor(basic_iostream_wchar_to_basic_ios(&this->base
));
12486 basic_filebuf_wchar_dtor(&this->filebuf
);
12489 /* ??_D?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
12490 /* ??_D?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
12491 /* ??_D?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
12492 /* ??_D?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
12493 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_vbase_dtor
, 4)
12494 void __thiscall
basic_fstream_wchar_vbase_dtor(basic_fstream_wchar
*this)
12496 TRACE("(%p)\n", this);
12498 basic_fstream_wchar_dtor(basic_fstream_wchar_to_basic_ios(this));
12499 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(&this->base
.base1
));
12502 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_vector_dtor
, 8)
12503 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
12505 basic_fstream_wchar
*this = basic_fstream_wchar_from_basic_ios(base
);
12507 TRACE("(%p %x)\n", this, flags
);
12510 /* we have an array, with the number of elements stored before the first object */
12511 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
12513 for(i
=*ptr
-1; i
>=0; i
--)
12514 basic_fstream_wchar_vbase_dtor(this+i
);
12515 MSVCRT_operator_delete(ptr
);
12517 basic_fstream_wchar_vbase_dtor(this);
12519 MSVCRT_operator_delete(this);
12525 /* ?close@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
12526 /* ?close@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
12527 /* ?close@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
12528 /* ?close@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
12529 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_close
, 4)
12530 void __thiscall
basic_fstream_wchar_close(basic_fstream_wchar
*this)
12532 TRACE("(%p)\n", this);
12534 if(!basic_filebuf_wchar_close(&this->filebuf
)) {
12535 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12536 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12540 /* ?is_open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
12541 /* ?is_open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
12542 /* ?is_open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QBE_NXZ */
12543 /* ?is_open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
12544 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_is_open
, 4)
12545 MSVCP_bool __thiscall
basic_fstream_wchar_is_open(const basic_fstream_wchar
*this)
12547 TRACE("(%p)\n", this);
12548 return basic_filebuf_wchar_is_open(&this->filebuf
);
12551 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDHH@Z */
12552 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDHH@Z */
12553 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPBDHH@Z */
12554 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDHH@Z */
12555 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_open
, 16)
12556 void __thiscall
basic_fstream_wchar_open(basic_fstream_wchar
*this,
12557 const char *name
, int mode
, int prot
)
12559 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
12561 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
, prot
)) {
12562 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12563 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12567 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDI@Z */
12568 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDI@Z */
12569 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPBDI@Z */
12570 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDI@Z */
12571 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_open_old
, 12)
12572 void __thiscall
basic_fstream_wchar_open_old(basic_fstream_wchar
*this,
12573 const char *name
, unsigned int mode
)
12575 basic_fstream_wchar_open(this, name
, mode
, _SH_DENYNO
);
12578 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGHH@Z */
12579 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGHH@Z */
12580 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WHH@Z */
12581 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WHH@Z */
12582 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPBGHH@Z */
12583 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGHH@Z */
12584 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPB_WHH@Z */
12585 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WHH@Z */
12586 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_open_wchar
, 16)
12587 void __thiscall
basic_fstream_wchar_open_wchar(basic_fstream_wchar
*this,
12588 const wchar_t *name
, int mode
, int prot
)
12590 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
12592 if(!basic_filebuf_wchar_open_wchar(&this->filebuf
, name
, mode
, prot
)) {
12593 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12594 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12598 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGI@Z */
12599 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGI@Z */
12600 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WI@Z */
12601 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WI@Z */
12602 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPBGI@Z */
12603 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGI@Z */
12604 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPB_WI@Z */
12605 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WI@Z */
12606 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_open_wchar_old
, 12)
12607 void __thiscall
basic_fstream_wchar_open_wchar_old(basic_fstream_wchar
*this,
12608 const wchar_t *name
, unsigned int mode
)
12610 basic_fstream_wchar_open_wchar(this, name
, mode
, _SH_DENYNO
);
12613 /* ?rdbuf@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
12614 /* ?rdbuf@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
12615 /* ?rdbuf@?$basic_fstream@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
12616 /* ?rdbuf@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
12617 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_rdbuf
, 4)
12618 basic_filebuf_wchar
* __thiscall
basic_fstream_wchar_rdbuf(const basic_fstream_wchar
*this)
12620 TRACE("(%p)\n", this);
12621 return (basic_filebuf_wchar
*)&this->filebuf
;
12624 static inline basic_ios_char
* basic_ostringstream_char_to_basic_ios(basic_ostringstream_char
*ptr
)
12626 return (basic_ios_char
*)((char*)ptr
+basic_ostringstream_char_vbtable
[1]);
12629 static inline basic_ostringstream_char
* basic_ostringstream_char_from_basic_ios(basic_ios_char
*ptr
)
12631 return (basic_ostringstream_char
*)((char*)ptr
-basic_ostringstream_char_vbtable
[1]);
12634 /* ??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 */
12635 /* ??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 */
12636 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_ctor_str
, 16)
12637 basic_ostringstream_char
* __thiscall
basic_ostringstream_char_ctor_str(basic_ostringstream_char
*this,
12638 const basic_string_char
*str
, int mode
, MSVCP_bool virt_init
)
12640 basic_ios_char
*basic_ios
;
12642 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
12645 this->base
.vbtable
= basic_ostringstream_char_vbtable
;
12646 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
12647 basic_ios_char_ctor(basic_ios
);
12649 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
12652 basic_stringbuf_char_ctor_str(&this->strbuf
, str
, mode
|OPENMODE_out
);
12653 basic_ostream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
12654 basic_ios
->base
.vtable
= &MSVCP_basic_ostringstream_char_vtable
;
12658 /* ??0?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
12659 /* ??0?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
12660 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_ctor_mode
, 12)
12661 basic_ostringstream_char
* __thiscall
basic_ostringstream_char_ctor_mode(
12662 basic_ostringstream_char
*this, int mode
, MSVCP_bool virt_init
)
12664 basic_ios_char
*basic_ios
;
12666 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
12669 this->base
.vbtable
= basic_ostringstream_char_vbtable
;
12670 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
12671 basic_ios_char_ctor(basic_ios
);
12673 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
12676 basic_stringbuf_char_ctor_mode(&this->strbuf
, mode
|OPENMODE_out
);
12677 basic_ostream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
12678 basic_ios
->base
.vtable
= &MSVCP_basic_ostringstream_char_vtable
;
12682 /* ??_F?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
12683 /* ??_F?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
12684 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_ctor
, 4)
12685 basic_ostringstream_char
* __thiscall
basic_ostringstream_char_ctor(
12686 basic_ostringstream_char
*this)
12688 return basic_ostringstream_char_ctor_mode(this, 0, TRUE
);
12691 /* ??1?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
12692 /* ??1?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
12693 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_dtor
, 4)
12694 void __thiscall
basic_ostringstream_char_dtor(basic_ios_char
*base
)
12696 basic_ostringstream_char
*this = basic_ostringstream_char_from_basic_ios(base
);
12698 TRACE("(%p)\n", this);
12700 basic_stringbuf_char_dtor(&this->strbuf
);
12701 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&this->base
));
12704 /* ??_D?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
12705 /* ??_D?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
12706 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_vbase_dtor
, 4)
12707 void __thiscall
basic_ostringstream_char_vbase_dtor(basic_ostringstream_char
*this)
12709 TRACE("(%p)\n", this);
12711 basic_ostringstream_char_dtor(basic_ostringstream_char_to_basic_ios(this));
12712 basic_ios_char_dtor(basic_ostream_char_get_basic_ios(&this->base
));
12715 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_vector_dtor
, 8)
12716 basic_ostringstream_char
* __thiscall
basic_ostringstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
12718 basic_ostringstream_char
*this = basic_ostringstream_char_from_basic_ios(base
);
12720 TRACE("(%p %x)\n", this, flags
);
12723 /* we have an array, with the number of elements stored before the first object */
12724 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
12726 for(i
=*ptr
-1; i
>=0; i
--)
12727 basic_ostringstream_char_vbase_dtor(this+i
);
12728 MSVCRT_operator_delete(ptr
);
12730 basic_ostringstream_char_vbase_dtor(this);
12732 MSVCRT_operator_delete(this);
12738 /* ?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 */
12739 /* ?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 */
12740 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_rdbuf
, 4)
12741 basic_stringbuf_char
* __thiscall
basic_ostringstream_char_rdbuf(const basic_ostringstream_char
*this)
12743 TRACE("(%p)\n", this);
12744 return (basic_stringbuf_char
*)&this->strbuf
;
12747 /* ?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 */
12748 /* ?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 */
12749 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_str_set
, 8)
12750 void __thiscall
basic_ostringstream_char_str_set(basic_ostringstream_char
*this, const basic_string_char
*str
)
12752 TRACE("(%p %p)\n", this, str
);
12753 basic_stringbuf_char_str_set(&this->strbuf
, str
);
12756 /* ?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 */
12757 /* ?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 */
12758 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_str_get
, 8)
12759 basic_string_char
* __thiscall
basic_ostringstream_char_str_get(const basic_ostringstream_char
*this, basic_string_char
*ret
)
12761 TRACE("(%p %p)\n", this, ret
);
12762 return basic_stringbuf_char_str_get(&this->strbuf
, ret
);
12765 static inline basic_ios_wchar
* basic_ostringstream_wchar_to_basic_ios(basic_ostringstream_wchar
*ptr
)
12767 return (basic_ios_wchar
*)((char*)ptr
+basic_ostringstream_wchar_vbtable
[1]);
12770 static inline basic_ostringstream_wchar
* basic_ostringstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
12772 return (basic_ostringstream_wchar
*)((char*)ptr
-basic_ostringstream_wchar_vbtable
[1]);
12775 /* ??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 */
12776 /* ??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 */
12777 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_ctor_str
, 16)
12778 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_wchar_ctor_str(basic_ostringstream_wchar
*this,
12779 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
12781 basic_ios_wchar
*basic_ios
;
12783 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
12786 this->base
.vbtable
= basic_ostringstream_wchar_vbtable
;
12787 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
12788 basic_ios_wchar_ctor(basic_ios
);
12790 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
12793 basic_stringbuf_wchar_ctor_str(&this->strbuf
, str
, mode
|OPENMODE_out
);
12794 basic_ostream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
12795 basic_ios
->base
.vtable
= &MSVCP_basic_ostringstream_wchar_vtable
;
12799 /* ??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 */
12800 /* ??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 */
12801 DEFINE_THISCALL_WRAPPER(basic_ostringstream_short_ctor_str
, 16)
12802 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_short_ctor_str(basic_ostringstream_wchar
*this,
12803 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
12805 basic_ostringstream_wchar_ctor_str(this, str
, mode
, virt_init
);
12806 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ostringstream_short_vtable
;
12810 /* ??0?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
12811 /* ??0?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
12812 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_ctor_mode
, 12)
12813 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_wchar_ctor_mode(
12814 basic_ostringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
12816 basic_ios_wchar
*basic_ios
;
12818 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
12821 this->base
.vbtable
= basic_ostringstream_wchar_vbtable
;
12822 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
12823 basic_ios_wchar_ctor(basic_ios
);
12825 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
12828 basic_stringbuf_wchar_ctor_mode(&this->strbuf
, mode
|OPENMODE_out
);
12829 basic_ostream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
12830 basic_ios
->base
.vtable
= &MSVCP_basic_ostringstream_wchar_vtable
;
12834 /* ??0?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
12835 /* ??0?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
12836 DEFINE_THISCALL_WRAPPER(basic_ostringstream_short_ctor_mode
, 12)
12837 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_short_ctor_mode(
12838 basic_ostringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
12840 basic_ostringstream_wchar_ctor_mode(this, mode
, virt_init
);
12841 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ostringstream_short_vtable
;
12845 /* ??_F?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
12846 /* ??_F?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
12847 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_ctor
, 4)
12848 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_wchar_ctor(
12849 basic_ostringstream_wchar
*this)
12851 return basic_ostringstream_wchar_ctor_mode(this, 0, TRUE
);
12854 /* ??_F?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
12855 /* ??_F?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
12856 DEFINE_THISCALL_WRAPPER(basic_ostringstream_short_ctor
, 4)
12857 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_short_ctor(
12858 basic_ostringstream_wchar
*this)
12860 return basic_ostringstream_short_ctor_mode(this, 0, TRUE
);
12863 /* ??1?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
12864 /* ??1?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
12865 /* ??1?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
12866 /* ??1?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
12867 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_dtor
, 4)
12868 void __thiscall
basic_ostringstream_wchar_dtor(basic_ios_wchar
*base
)
12870 basic_ostringstream_wchar
*this = basic_ostringstream_wchar_from_basic_ios(base
);
12872 TRACE("(%p)\n", this);
12874 basic_stringbuf_wchar_dtor(&this->strbuf
);
12875 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(&this->base
));
12878 /* ??_D?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
12879 /* ??_D?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
12880 /* ??_D?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
12881 /* ??_D?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
12882 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_vbase_dtor
, 4)
12883 void __thiscall
basic_ostringstream_wchar_vbase_dtor(basic_ostringstream_wchar
*this)
12885 TRACE("(%p)\n", this);
12887 basic_ostringstream_wchar_dtor(basic_ostringstream_wchar_to_basic_ios(this));
12888 basic_ios_wchar_dtor(basic_ostream_wchar_get_basic_ios(&this->base
));
12891 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_vector_dtor
, 8)
12892 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
12894 basic_ostringstream_wchar
*this = basic_ostringstream_wchar_from_basic_ios(base
);
12896 TRACE("(%p %x)\n", this, flags
);
12899 /* we have an array, with the number of elements stored before the first object */
12900 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
12902 for(i
=*ptr
-1; i
>=0; i
--)
12903 basic_ostringstream_wchar_vbase_dtor(this+i
);
12904 MSVCRT_operator_delete(ptr
);
12906 basic_ostringstream_wchar_vbase_dtor(this);
12908 MSVCRT_operator_delete(this);
12914 /* ?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 */
12915 /* ?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 */
12916 /* ?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 */
12917 /* ?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 */
12918 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_rdbuf
, 4)
12919 basic_stringbuf_wchar
* __thiscall
basic_ostringstream_wchar_rdbuf(const basic_ostringstream_wchar
*this)
12921 TRACE("(%p)\n", this);
12922 return (basic_stringbuf_wchar
*)&this->strbuf
;
12925 /* ?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 */
12926 /* ?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 */
12927 /* ?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 */
12928 /* ?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 */
12929 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_str_set
, 8)
12930 void __thiscall
basic_ostringstream_wchar_str_set(basic_ostringstream_wchar
*this, const basic_string_wchar
*str
)
12932 TRACE("(%p %p)\n", this, str
);
12933 basic_stringbuf_wchar_str_set(&this->strbuf
, str
);
12936 /* ?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 */
12937 /* ?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 */
12938 /* ?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 */
12939 /* ?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 */
12940 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_str_get
, 8)
12941 basic_string_wchar
* __thiscall
basic_ostringstream_wchar_str_get(const basic_ostringstream_wchar
*this, basic_string_wchar
*ret
)
12943 TRACE("(%p %p)\n", this, ret
);
12944 return basic_stringbuf_wchar_str_get(&this->strbuf
, ret
);
12947 static inline basic_ios_char
* basic_istringstream_char_to_basic_ios(basic_istringstream_char
*ptr
)
12949 return (basic_ios_char
*)((char*)ptr
+basic_istringstream_char_vbtable
[1]);
12952 static inline basic_istringstream_char
* basic_istringstream_char_from_basic_ios(basic_ios_char
*ptr
)
12954 return (basic_istringstream_char
*)((char*)ptr
-basic_istringstream_char_vbtable
[1]);
12957 /* ??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 */
12958 /* ??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 */
12959 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_ctor_str
, 16)
12960 basic_istringstream_char
* __thiscall
basic_istringstream_char_ctor_str(basic_istringstream_char
*this,
12961 const basic_string_char
*str
, int mode
, MSVCP_bool virt_init
)
12963 basic_ios_char
*basic_ios
;
12965 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
12968 this->base
.vbtable
= basic_istringstream_char_vbtable
;
12969 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
12970 basic_ios_char_ctor(basic_ios
);
12972 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
12975 basic_stringbuf_char_ctor_str(&this->strbuf
, str
, mode
|OPENMODE_in
);
12976 basic_istream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
12977 basic_ios
->base
.vtable
= &MSVCP_basic_istringstream_char_vtable
;
12981 /* ??0?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
12982 /* ??0?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
12983 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_ctor_mode
, 12)
12984 basic_istringstream_char
* __thiscall
basic_istringstream_char_ctor_mode(
12985 basic_istringstream_char
*this, int mode
, MSVCP_bool virt_init
)
12987 basic_ios_char
*basic_ios
;
12989 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
12992 this->base
.vbtable
= basic_istringstream_char_vbtable
;
12993 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
12994 basic_ios_char_ctor(basic_ios
);
12996 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
12999 basic_stringbuf_char_ctor_mode(&this->strbuf
, mode
|OPENMODE_in
);
13000 basic_istream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
13001 basic_ios
->base
.vtable
= &MSVCP_basic_istringstream_char_vtable
;
13005 /* ??_F?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
13006 /* ??_F?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
13007 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_ctor
, 4)
13008 basic_istringstream_char
* __thiscall
basic_istringstream_char_ctor(
13009 basic_istringstream_char
*this)
13011 return basic_istringstream_char_ctor_mode(this, 0, TRUE
);
13014 /* ??1?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
13015 /* ??1?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
13016 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_dtor
, 4)
13017 void __thiscall
basic_istringstream_char_dtor(basic_ios_char
*base
)
13019 basic_istringstream_char
*this = basic_istringstream_char_from_basic_ios(base
);
13021 TRACE("(%p)\n", this);
13023 basic_stringbuf_char_dtor(&this->strbuf
);
13024 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&this->base
));
13027 /* ??_D?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
13028 /* ??_D?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
13029 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_vbase_dtor
, 4)
13030 void __thiscall
basic_istringstream_char_vbase_dtor(basic_istringstream_char
*this)
13032 TRACE("(%p)\n", this);
13034 basic_istringstream_char_dtor(basic_istringstream_char_to_basic_ios(this));
13035 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base
));
13038 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_vector_dtor
, 8)
13039 basic_istringstream_char
* __thiscall
basic_istringstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
13041 basic_istringstream_char
*this = basic_istringstream_char_from_basic_ios(base
);
13043 TRACE("(%p %x)\n", this, flags
);
13046 /* we have an array, with the number of elements stored before the first object */
13047 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
13049 for(i
=*ptr
-1; i
>=0; i
--)
13050 basic_istringstream_char_vbase_dtor(this+i
);
13051 MSVCRT_operator_delete(ptr
);
13053 basic_istringstream_char_vbase_dtor(this);
13055 MSVCRT_operator_delete(this);
13061 /* ?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 */
13062 /* ?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 */
13063 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_rdbuf
, 4)
13064 basic_stringbuf_char
* __thiscall
basic_istringstream_char_rdbuf(const basic_istringstream_char
*this)
13066 TRACE("(%p)\n", this);
13067 return (basic_stringbuf_char
*)&this->strbuf
;
13070 /* ?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 */
13071 /* ?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 */
13072 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_str_set
, 8)
13073 void __thiscall
basic_istringstream_char_str_set(basic_istringstream_char
*this, const basic_string_char
*str
)
13075 TRACE("(%p %p)\n", this, str
);
13076 basic_stringbuf_char_str_set(&this->strbuf
, str
);
13079 /* ?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 */
13080 /* ?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 */
13081 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_str_get
, 8)
13082 basic_string_char
* __thiscall
basic_istringstream_char_str_get(const basic_istringstream_char
*this, basic_string_char
*ret
)
13084 TRACE("(%p %p)\n", this, ret
);
13085 return basic_stringbuf_char_str_get(&this->strbuf
, ret
);
13088 static inline basic_ios_wchar
* basic_istringstream_wchar_to_basic_ios(basic_istringstream_wchar
*ptr
)
13090 return (basic_ios_wchar
*)((char*)ptr
+basic_istringstream_wchar_vbtable
[1]);
13093 static inline basic_istringstream_wchar
* basic_istringstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
13095 return (basic_istringstream_wchar
*)((char*)ptr
-basic_istringstream_wchar_vbtable
[1]);
13098 /* ??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 */
13099 /* ??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 */
13100 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_ctor_str
, 16)
13101 basic_istringstream_wchar
* __thiscall
basic_istringstream_wchar_ctor_str(basic_istringstream_wchar
*this,
13102 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
13104 basic_ios_wchar
*basic_ios
;
13106 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
13109 this->base
.vbtable
= basic_istringstream_wchar_vbtable
;
13110 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
13111 basic_ios_wchar_ctor(basic_ios
);
13113 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
13116 basic_stringbuf_wchar_ctor_str(&this->strbuf
, str
, mode
|OPENMODE_in
);
13117 basic_istream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
13118 basic_ios
->base
.vtable
= &MSVCP_basic_istringstream_wchar_vtable
;
13122 /* ??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 */
13123 /* ??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 */
13124 DEFINE_THISCALL_WRAPPER(basic_istringstream_short_ctor_str
, 16)
13125 basic_istringstream_wchar
* __thiscall
basic_istringstream_short_ctor_str(basic_istringstream_wchar
*this,
13126 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
13128 basic_istringstream_wchar_ctor_str(this, str
, mode
, virt_init
);
13129 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_istringstream_short_vtable
;
13133 /* ??0?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
13134 /* ??0?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
13135 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_ctor_mode
, 12)
13136 basic_istringstream_wchar
* __thiscall
basic_istringstream_wchar_ctor_mode(
13137 basic_istringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
13139 basic_ios_wchar
*basic_ios
;
13141 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
13144 this->base
.vbtable
= basic_istringstream_wchar_vbtable
;
13145 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
13146 basic_ios_wchar_ctor(basic_ios
);
13148 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
13151 basic_stringbuf_wchar_ctor_mode(&this->strbuf
, mode
|OPENMODE_in
);
13152 basic_istream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
13153 basic_ios
->base
.vtable
= &MSVCP_basic_istringstream_wchar_vtable
;
13157 /* ??0?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
13158 /* ??0?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
13159 DEFINE_THISCALL_WRAPPER(basic_istringstream_short_ctor_mode
, 12)
13160 basic_istringstream_wchar
* __thiscall
basic_istringstream_short_ctor_mode(
13161 basic_istringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
13163 basic_istringstream_wchar_ctor_mode(this, mode
, virt_init
);
13164 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_istringstream_short_vtable
;
13168 /* ??_F?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
13169 /* ??_F?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
13170 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_ctor
, 4)
13171 basic_istringstream_wchar
* __thiscall
basic_istringstream_wchar_ctor(
13172 basic_istringstream_wchar
*this)
13174 return basic_istringstream_wchar_ctor_mode(this, 0, TRUE
);
13177 /* ??_F?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
13178 /* ??_F?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
13179 DEFINE_THISCALL_WRAPPER(basic_istringstream_short_ctor
, 4)
13180 basic_istringstream_wchar
* __thiscall
basic_istringstream_short_ctor(
13181 basic_istringstream_wchar
*this)
13183 return basic_istringstream_short_ctor_mode(this, 0, TRUE
);
13186 /* ??1?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
13187 /* ??1?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
13188 /* ??1?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
13189 /* ??1?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
13190 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_dtor
, 4)
13191 void __thiscall
basic_istringstream_wchar_dtor(basic_ios_wchar
*base
)
13193 basic_istringstream_wchar
*this = basic_istringstream_wchar_from_basic_ios(base
);
13195 TRACE("(%p)\n", this);
13197 basic_stringbuf_wchar_dtor(&this->strbuf
);
13198 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(&this->base
));
13201 /* ??_D?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
13202 /* ??_D?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
13203 /* ??_D?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
13204 /* ??_D?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
13205 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_vbase_dtor
, 4)
13206 void __thiscall
basic_istringstream_wchar_vbase_dtor(basic_istringstream_wchar
*this)
13208 TRACE("(%p)\n", this);
13210 basic_istringstream_wchar_dtor(basic_istringstream_wchar_to_basic_ios(this));
13211 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(&this->base
));
13214 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_vector_dtor
, 8)
13215 basic_istringstream_wchar
* __thiscall
basic_istringstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
13217 basic_istringstream_wchar
*this = basic_istringstream_wchar_from_basic_ios(base
);
13219 TRACE("(%p %x)\n", this, flags
);
13222 /* we have an array, with the number of elements stored before the first object */
13223 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
13225 for(i
=*ptr
-1; i
>=0; i
--)
13226 basic_istringstream_wchar_vbase_dtor(this+i
);
13227 MSVCRT_operator_delete(ptr
);
13229 basic_istringstream_wchar_vbase_dtor(this);
13231 MSVCRT_operator_delete(this);
13237 /* ?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 */
13238 /* ?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 */
13239 /* ?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 */
13240 /* ?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 */
13241 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_rdbuf
, 4)
13242 basic_stringbuf_wchar
* __thiscall
basic_istringstream_wchar_rdbuf(const basic_istringstream_wchar
*this)
13244 TRACE("(%p)\n", this);
13245 return (basic_stringbuf_wchar
*)&this->strbuf
;
13248 /* ?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 */
13249 /* ?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 */
13250 /* ?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 */
13251 /* ?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 */
13252 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_str_set
, 8)
13253 void __thiscall
basic_istringstream_wchar_str_set(basic_istringstream_wchar
*this, const basic_string_wchar
*str
)
13255 TRACE("(%p %p)\n", this, str
);
13256 basic_stringbuf_wchar_str_set(&this->strbuf
, str
);
13259 /* ?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 */
13260 /* ?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 */
13261 /* ?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 */
13262 /* ?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 */
13263 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_str_get
, 8)
13264 basic_string_wchar
* __thiscall
basic_istringstream_wchar_str_get(const basic_istringstream_wchar
*this, basic_string_wchar
*ret
)
13266 TRACE("(%p %p)\n", this, ret
);
13267 return basic_stringbuf_wchar_str_get(&this->strbuf
, ret
);
13270 static inline basic_ios_char
* basic_stringstream_char_to_basic_ios(basic_stringstream_char
*ptr
)
13272 return (basic_ios_char
*)((char*)ptr
+basic_stringstream_char_vbtable1
[1]);
13275 static inline basic_stringstream_char
* basic_stringstream_char_from_basic_ios(basic_ios_char
*ptr
)
13277 return (basic_stringstream_char
*)((char*)ptr
-basic_stringstream_char_vbtable1
[1]);
13280 /* ??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 */
13281 /* ??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 */
13282 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_ctor_str
, 16)
13283 basic_stringstream_char
* __thiscall
basic_stringstream_char_ctor_str(basic_stringstream_char
*this,
13284 const basic_string_char
*str
, int mode
, MSVCP_bool virt_init
)
13286 basic_ios_char
*basic_ios
;
13288 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
13291 this->base
.base1
.vbtable
= basic_stringstream_char_vbtable1
;
13292 this->base
.base2
.vbtable
= basic_stringstream_char_vbtable2
;
13293 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
13294 basic_ios_char_ctor(basic_ios
);
13296 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
13299 basic_stringbuf_char_ctor_str(&this->strbuf
, str
, mode
);
13300 basic_iostream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
);
13301 basic_ios
->base
.vtable
= &MSVCP_basic_stringstream_char_vtable
;
13305 /* ??0?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
13306 /* ??0?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
13307 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_ctor_mode
, 12)
13308 basic_stringstream_char
* __thiscall
basic_stringstream_char_ctor_mode(
13309 basic_stringstream_char
*this, int mode
, MSVCP_bool virt_init
)
13311 basic_ios_char
*basic_ios
;
13313 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
13316 this->base
.base1
.vbtable
= basic_stringstream_char_vbtable1
;
13317 this->base
.base2
.vbtable
= basic_stringstream_char_vbtable2
;
13318 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
13319 basic_ios_char_ctor(basic_ios
);
13321 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
13324 basic_stringbuf_char_ctor_mode(&this->strbuf
, mode
);
13325 basic_iostream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
);
13326 basic_ios
->base
.vtable
= &MSVCP_basic_stringstream_char_vtable
;
13330 /* ??_F?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
13331 /* ??_F?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
13332 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_ctor
, 4)
13333 basic_stringstream_char
* __thiscall
basic_stringstream_char_ctor(
13334 basic_stringstream_char
*this)
13336 return basic_stringstream_char_ctor_mode(
13337 this, OPENMODE_out
|OPENMODE_in
, TRUE
);
13340 /* ??1?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
13341 /* ??1?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
13342 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_dtor
, 4)
13343 void __thiscall
basic_stringstream_char_dtor(basic_ios_char
*base
)
13345 basic_stringstream_char
*this = basic_stringstream_char_from_basic_ios(base
);
13347 TRACE("(%p)\n", this);
13349 basic_iostream_char_dtor(basic_iostream_char_to_basic_ios(&this->base
));
13350 basic_stringbuf_char_dtor(&this->strbuf
);
13353 /* ??_D?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
13354 /* ??_D?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
13355 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_vbase_dtor
, 4)
13356 void __thiscall
basic_stringstream_char_vbase_dtor(basic_stringstream_char
*this)
13358 TRACE("(%p)\n", this);
13360 basic_stringstream_char_dtor(basic_stringstream_char_to_basic_ios(this));
13361 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base
.base1
));
13364 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_vector_dtor
, 8)
13365 basic_stringstream_char
* __thiscall
basic_stringstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
13367 basic_stringstream_char
*this = basic_stringstream_char_from_basic_ios(base
);
13369 TRACE("(%p %x)\n", this, flags
);
13372 /* we have an array, with the number of elements stored before the first object */
13373 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
13375 for(i
=*ptr
-1; i
>=0; i
--)
13376 basic_stringstream_char_vbase_dtor(this+i
);
13377 MSVCRT_operator_delete(ptr
);
13379 basic_stringstream_char_vbase_dtor(this);
13381 MSVCRT_operator_delete(this);
13387 /* ?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 */
13388 /* ?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 */
13389 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_rdbuf
, 4)
13390 basic_stringbuf_char
* __thiscall
basic_stringstream_char_rdbuf(const basic_stringstream_char
*this)
13392 TRACE("(%p)\n", this);
13393 return (basic_stringbuf_char
*)&this->strbuf
;
13396 /* ?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 */
13397 /* ?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 */
13398 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_str_set
, 8)
13399 void __thiscall
basic_stringstream_char_str_set(basic_stringstream_char
*this, const basic_string_char
*str
)
13401 TRACE("(%p %p)\n", this, str
);
13402 basic_stringbuf_char_str_set(&this->strbuf
, str
);
13405 /* ?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 */
13406 /* ?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 */
13407 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_str_get
, 8)
13408 basic_string_char
* __thiscall
basic_stringstream_char_str_get(const basic_stringstream_char
*this, basic_string_char
*ret
)
13410 TRACE("(%p %p)\n", this, ret
);
13411 return basic_stringbuf_char_str_get(&this->strbuf
, ret
);
13414 static inline basic_ios_wchar
* basic_stringstream_wchar_to_basic_ios(basic_stringstream_wchar
*ptr
)
13416 return (basic_ios_wchar
*)((char*)ptr
+basic_stringstream_wchar_vbtable1
[1]);
13419 static inline basic_stringstream_wchar
* basic_stringstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
13421 return (basic_stringstream_wchar
*)((char*)ptr
-basic_stringstream_wchar_vbtable1
[1]);
13424 /* ??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 */
13425 /* ??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 */
13426 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_ctor_str
, 16)
13427 basic_stringstream_wchar
* __thiscall
basic_stringstream_wchar_ctor_str(basic_stringstream_wchar
*this,
13428 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
13430 basic_ios_wchar
*basic_ios
;
13432 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
13435 this->base
.base1
.vbtable
= basic_stringstream_wchar_vbtable1
;
13436 this->base
.base2
.vbtable
= basic_stringstream_wchar_vbtable2
;
13437 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
13438 basic_ios_wchar_ctor(basic_ios
);
13440 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
13443 basic_stringbuf_wchar_ctor_str(&this->strbuf
, str
, mode
);
13444 basic_iostream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
);
13445 basic_ios
->base
.vtable
= &MSVCP_basic_stringstream_wchar_vtable
;
13449 /* ??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 */
13450 /* ??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 */
13451 DEFINE_THISCALL_WRAPPER(basic_stringstream_short_ctor_str
, 16)
13452 basic_stringstream_wchar
* __thiscall
basic_stringstream_short_ctor_str(basic_stringstream_wchar
*this,
13453 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
13455 basic_stringstream_wchar_ctor_str(this, str
, mode
, virt_init
);
13456 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_stringstream_short_vtable
;
13460 /* ??0?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
13461 /* ??0?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
13462 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_ctor_mode
, 12)
13463 basic_stringstream_wchar
* __thiscall
basic_stringstream_wchar_ctor_mode(
13464 basic_stringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
13466 basic_ios_wchar
*basic_ios
;
13468 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
13471 this->base
.base1
.vbtable
= basic_stringstream_wchar_vbtable1
;
13472 this->base
.base2
.vbtable
= basic_stringstream_wchar_vbtable2
;
13473 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
13474 basic_ios_wchar_ctor(basic_ios
);
13476 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
13479 basic_stringbuf_wchar_ctor_mode(&this->strbuf
, mode
);
13480 basic_iostream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
);
13481 basic_ios
->base
.vtable
= &MSVCP_basic_stringstream_wchar_vtable
;
13485 /* ??0?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
13486 /* ??0?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
13487 DEFINE_THISCALL_WRAPPER(basic_stringstream_short_ctor_mode
, 12)
13488 basic_stringstream_wchar
* __thiscall
basic_stringstream_short_ctor_mode(
13489 basic_stringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
13491 basic_stringstream_wchar_ctor_mode(this, mode
, virt_init
);
13492 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_stringstream_short_vtable
;
13496 /* ??_F?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
13497 /* ??_F?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
13498 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_ctor
, 4)
13499 basic_stringstream_wchar
* __thiscall
basic_stringstream_wchar_ctor(
13500 basic_stringstream_wchar
*this)
13502 return basic_stringstream_wchar_ctor_mode(
13503 this, OPENMODE_out
|OPENMODE_in
, TRUE
);
13506 /* ??_F?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
13507 /* ??_F?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
13508 DEFINE_THISCALL_WRAPPER(basic_stringstream_short_ctor
, 4)
13509 basic_stringstream_wchar
* __thiscall
basic_stringstream_short_ctor(
13510 basic_stringstream_wchar
*this)
13512 return basic_stringstream_short_ctor_mode(
13513 this, OPENMODE_out
|OPENMODE_in
, TRUE
);
13516 /* ??1?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
13517 /* ??1?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
13518 /* ??1?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
13519 /* ??1?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
13520 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_dtor
, 4)
13521 void __thiscall
basic_stringstream_wchar_dtor(basic_ios_wchar
*base
)
13523 basic_stringstream_wchar
*this = basic_stringstream_wchar_from_basic_ios(base
);
13525 TRACE("(%p)\n", this);
13527 basic_iostream_wchar_dtor(basic_iostream_wchar_to_basic_ios(&this->base
));
13528 basic_stringbuf_wchar_dtor(&this->strbuf
);
13531 /* ??_D?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
13532 /* ??_D?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
13533 /* ??_D?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
13534 /* ??_D?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
13535 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_vbase_dtor
, 4)
13536 void __thiscall
basic_stringstream_wchar_vbase_dtor(basic_stringstream_wchar
*this)
13538 TRACE("(%p)\n", this);
13540 basic_stringstream_wchar_dtor(basic_stringstream_wchar_to_basic_ios(this));
13541 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(&this->base
.base1
));
13544 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_vector_dtor
, 8)
13545 basic_stringstream_wchar
* __thiscall
basic_stringstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
13547 basic_stringstream_wchar
*this = basic_stringstream_wchar_from_basic_ios(base
);
13549 TRACE("(%p %x)\n", this, flags
);
13552 /* we have an array, with the number of elements stored before the first object */
13553 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
13555 for(i
=*ptr
-1; i
>=0; i
--)
13556 basic_stringstream_wchar_vbase_dtor(this+i
);
13557 MSVCRT_operator_delete(ptr
);
13559 basic_stringstream_wchar_vbase_dtor(this);
13561 MSVCRT_operator_delete(this);
13567 /* ?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 */
13568 /* ?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 */
13569 /* ?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 */
13570 /* ?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 */
13571 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_rdbuf
, 4)
13572 basic_stringbuf_wchar
* __thiscall
basic_stringstream_wchar_rdbuf(const basic_stringstream_wchar
*this)
13574 TRACE("(%p)\n", this);
13575 return (basic_stringbuf_wchar
*)&this->strbuf
;
13578 /* ?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 */
13579 /* ?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 */
13580 /* ?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 */
13581 /* ?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 */
13582 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_str_set
, 8)
13583 void __thiscall
basic_stringstream_wchar_str_set(basic_stringstream_wchar
*this, const basic_string_wchar
*str
)
13585 TRACE("(%p %p)\n", this, str
);
13586 basic_stringbuf_wchar_str_set(&this->strbuf
, str
);
13589 /* ?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 */
13590 /* ?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 */
13591 /* ?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 */
13592 /* ?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 */
13593 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_str_get
, 8)
13594 basic_string_wchar
* __thiscall
basic_stringstream_wchar_str_get(const basic_stringstream_wchar
*this, basic_string_wchar
*ret
)
13596 TRACE("(%p %p)\n", this, ret
);
13597 return basic_stringbuf_wchar_str_get(&this->strbuf
, ret
);
13600 /* ?_Init@strstreambuf@std@@IAEXHPAD0H@Z */
13601 /* ?_Init@strstreambuf@std@@IEAAX_JPEAD1H@Z */
13602 #if STREAMSIZE_BITS == 64
13603 DEFINE_THISCALL_WRAPPER(strstreambuf__Init
, 24)
13605 DEFINE_THISCALL_WRAPPER(strstreambuf__Init
, 20)
13607 void __thiscall
strstreambuf__Init(strstreambuf
*this, streamsize len
, char *g
, char *p
, int mode
)
13609 TRACE("(%p %s %p %p %d)\n", this, wine_dbgstr_longlong(len
), g
, p
, mode
);
13611 this->minsize
= 32;
13612 this->endsave
= NULL
;
13613 this->strmode
= mode
;
13614 this->palloc
= NULL
;
13615 this->pfree
= NULL
;
13618 this->strmode
|= STRSTATE_Dynamic
;
13619 if(len
> this->minsize
)
13620 this->minsize
= len
;
13621 this->seekhigh
= NULL
;
13630 this->seekhigh
= g
+len
;
13631 basic_streambuf_char_setg(&this->base
, g
, g
, p
? p
: this->seekhigh
);
13633 basic_streambuf_char_setp(&this->base
, p
, this->seekhigh
);
13636 /* ??0strstreambuf@std@@QAE@PACH0@Z */
13637 /* ??0strstreambuf@std@@QEAA@PEAC_J0@Z */
13638 /* ??0strstreambuf@std@@QAE@PADH0@Z */
13639 /* ??0strstreambuf@std@@QEAA@PEAD_J0@Z */
13640 /* ??0strstreambuf@std@@QAE@PAEH0@Z */
13641 /* ??0strstreambuf@std@@QEAA@PEAE_J0@Z */
13642 #if STREAMSIZE_BITS == 64
13643 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_get_put
, 20)
13645 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_get_put
, 16)
13647 strstreambuf
* __thiscall
strstreambuf_ctor_get_put(strstreambuf
*this, char *g
, streamsize len
, char *p
)
13649 TRACE("(%p %p %s %p)\n", this, g
, wine_dbgstr_longlong(len
), p
);
13651 basic_streambuf_char_ctor(&this->base
);
13652 this->base
.vtable
= &MSVCP_strstreambuf_vtable
;
13654 strstreambuf__Init(this, len
, g
, p
, 0);
13658 /* ??0strstreambuf@std@@QAE@H@Z */
13659 /* ??0strstreambuf@std@@QEAA@_J@Z */
13660 #if STREAMSIZE_BITS == 64
13661 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_len
, 12)
13663 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_len
, 8)
13665 strstreambuf
* __thiscall
strstreambuf_ctor_len(strstreambuf
*this, streamsize len
)
13667 return strstreambuf_ctor_get_put(this, NULL
, len
, NULL
);
13670 /* ??0strstreambuf@std@@QAE@P6APAXI@ZP6AXPAX@Z@Z */
13671 /* ??0strstreambuf@std@@QEAA@P6APEAX_K@ZP6AXPEAX@Z@Z */
13672 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_alloc
, 12)
13673 strstreambuf
* __thiscall
strstreambuf_ctor_alloc(strstreambuf
*this, void* (__cdecl
*palloc
)(MSVCP_size_t
), void (__cdecl
*pfree
)(void*))
13675 TRACE("(%p %p %p)\n", this, palloc
, pfree
);
13677 strstreambuf_ctor_get_put(this, NULL
, 0, NULL
);
13678 this->palloc
= palloc
;
13679 this->pfree
= pfree
;
13683 /* ??0strstreambuf@std@@QAE@PBCH@Z */
13684 /* ??0strstreambuf@std@@QEAA@PEBC_J@Z */
13685 /* ??0strstreambuf@std@@QAE@PBDH@Z */
13686 /* ??0strstreambuf@std@@QEAA@PEBD_J@Z */
13687 /* ??0strstreambuf@std@@QAE@PBEH@Z */
13688 /* ??0strstreambuf@std@@QEAA@PEBE_J@Z */
13689 #if STREAMSIZE_BITS == 64
13690 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_get
, 16)
13692 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_get
, 12)
13694 strstreambuf
* __thiscall
strstreambuf_ctor_get(strstreambuf
*this, const char *g
, streamsize len
)
13696 TRACE("(%p %p %s)\n", this, g
, wine_dbgstr_longlong(len
));
13698 strstreambuf_ctor_get_put(this, (char*)g
, len
, NULL
);
13699 this->strmode
|= STRSTATE_Constant
;
13703 /* ??_Fstrstreambuf@std@@QAEXXZ */
13704 /* ??_Fstrstreambuf@std@@QEAAXXZ */
13705 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor
, 4)
13706 strstreambuf
* __thiscall
strstreambuf_ctor(strstreambuf
*this)
13708 return strstreambuf_ctor_get_put(this, NULL
, 0, NULL
);
13711 /* ?_Tidy@strstreambuf@std@@IAEXXZ */
13712 /* ?_Tidy@strstreambuf@std@@IEAAXXZ */
13713 DEFINE_THISCALL_WRAPPER(strstreambuf__Tidy
, 4)
13714 void __thiscall
strstreambuf__Tidy(strstreambuf
*this)
13716 TRACE("(%p)\n", this);
13718 if((this->strmode
& STRSTATE_Allocated
) && !(this->strmode
& STRSTATE_Frozen
)) {
13720 this->pfree(basic_streambuf_char_eback(&this->base
));
13722 MSVCRT_operator_delete(basic_streambuf_char_eback(&this->base
));
13725 this->endsave
= NULL
;
13726 this->seekhigh
= NULL
;
13727 this->strmode
&= ~(STRSTATE_Allocated
| STRSTATE_Frozen
);
13728 basic_streambuf_char_setg(&this->base
, NULL
, NULL
, NULL
);
13729 basic_streambuf_char_setp(&this->base
, NULL
, NULL
);
13732 /* ??1strstreambuf@std@@UAE@XZ */
13733 /* ??1strstreambuf@std@@UEAA@XZ */
13734 DEFINE_THISCALL_WRAPPER(strstreambuf_dtor
, 4)
13735 void __thiscall
strstreambuf_dtor(strstreambuf
*this)
13737 TRACE("(%p)\n", this);
13739 strstreambuf__Tidy(this);
13740 basic_streambuf_char_dtor(&this->base
);
13743 DEFINE_THISCALL_WRAPPER(strstreambuf_vector_dtor
, 8)
13744 strstreambuf
* __thiscall
strstreambuf_vector_dtor(strstreambuf
*this, unsigned int flags
)
13746 TRACE("(%p %x)\n", this, flags
);
13748 /* we have an array, with the number of elements stored before the first object */
13749 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
13751 for(i
=*ptr
-1; i
>=0; i
--)
13752 strstreambuf_dtor(this+i
);
13753 MSVCRT_operator_delete(ptr
);
13755 strstreambuf_dtor(this);
13757 MSVCRT_operator_delete(this);
13763 /* ?freeze@strstreambuf@std@@QAEX_N@Z */
13764 /* ?freeze@strstreambuf@std@@QEAAX_N@Z */
13765 DEFINE_THISCALL_WRAPPER(strstreambuf_freeze
, 8)
13766 void __thiscall
strstreambuf_freeze(strstreambuf
*this, MSVCP_bool freeze
)
13768 TRACE("(%p %d)\n", this, freeze
);
13770 if(!freeze
== !(this->strmode
& STRSTATE_Frozen
))
13774 this->strmode
|= STRSTATE_Frozen
;
13775 this->endsave
= basic_streambuf_char_epptr(&this->base
);
13776 basic_streambuf_char_setp_next(&this->base
, basic_streambuf_char_pbase(&this->base
),
13777 basic_streambuf_char_pptr(&this->base
), basic_streambuf_char_eback(&this->base
));
13779 this->strmode
&= ~STRSTATE_Frozen
;
13780 basic_streambuf_char_setp_next(&this->base
, basic_streambuf_char_pbase(&this->base
),
13781 basic_streambuf_char_pptr(&this->base
), this->endsave
);
13785 /* ?str@strstreambuf@std@@QAEPADXZ */
13786 /* ?str@strstreambuf@std@@QEAAPEADXZ */
13787 DEFINE_THISCALL_WRAPPER(strstreambuf_str
, 4)
13788 char* __thiscall
strstreambuf_str(strstreambuf
*this)
13790 TRACE("(%p)\n", this);
13792 strstreambuf_freeze(this, TRUE
);
13793 return basic_streambuf_char_gptr(&this->base
);
13796 /* ?pcount@strstreambuf@std@@QBEHXZ */
13797 /* ?pcount@strstreambuf@std@@QEBA_JXZ */
13798 DEFINE_THISCALL_WRAPPER(strstreambuf_pcount
, 4)
13799 streamsize __thiscall
strstreambuf_pcount(const strstreambuf
*this)
13801 char *ppos
= basic_streambuf_char_pptr(&this->base
);
13803 TRACE("(%p)\n", this);
13805 return ppos
? ppos
-basic_streambuf_char_pbase(&this->base
) : 0;
13808 /* ?overflow@strstreambuf@std@@MAEHH@Z */
13809 /* ?overflow@strstreambuf@std@@MEAAHH@Z */
13810 DEFINE_THISCALL_WRAPPER(strstreambuf_overflow
, 8)
13811 int __thiscall
strstreambuf_overflow(strstreambuf
*this, int c
)
13813 MSVCP_size_t old_size
, size
;
13816 TRACE("(%p %d)\n", this, c
);
13821 if(this->strmode
& STRSTATE_Frozen
)
13824 ptr
= basic_streambuf_char_pptr(&this->base
);
13825 if(ptr
&& ptr
<basic_streambuf_char_epptr(&this->base
))
13826 return (unsigned char)(*basic_streambuf_char__Pninc(&this->base
) = c
);
13828 if(!(this->strmode
& STRSTATE_Dynamic
) || (this->strmode
& STRSTATE_Constant
))
13831 ptr
= basic_streambuf_char_eback(&this->base
);
13832 old_size
= ptr
? basic_streambuf_char_epptr(&this->base
) - ptr
: 0;
13834 size
= old_size
+ old_size
/2;
13835 if(size
< this->minsize
)
13836 size
= this->minsize
;
13839 buf
= this->palloc(size
);
13841 buf
= MSVCRT_operator_new(size
);
13845 memcpy(buf
, ptr
, old_size
);
13846 if(this->strmode
& STRSTATE_Allocated
) {
13850 MSVCRT_operator_delete(ptr
);
13853 this->strmode
|= STRSTATE_Allocated
;
13855 this->seekhigh
= buf
;
13856 basic_streambuf_char_setp(&this->base
, buf
, buf
+size
);
13857 basic_streambuf_char_setg(&this->base
, buf
, buf
, buf
);
13859 this->seekhigh
= this->seekhigh
-ptr
+buf
;
13860 basic_streambuf_char_setp_next(&this->base
, basic_streambuf_char_pbase(&this->base
)-ptr
+buf
,
13861 basic_streambuf_char_pptr(&this->base
)-ptr
+buf
, buf
+size
);
13862 basic_streambuf_char_setg(&this->base
, buf
, basic_streambuf_char_gptr(&this->base
)-ptr
+buf
,
13863 basic_streambuf_char_pptr(&this->base
));
13866 return (unsigned char)(*basic_streambuf_char__Pninc(&this->base
) = c
);
13869 /* ?pbackfail@strstreambuf@std@@MAEHH@Z */
13870 /* ?pbackfail@strstreambuf@std@@MEAAHH@Z */
13871 DEFINE_THISCALL_WRAPPER(strstreambuf_pbackfail
, 8)
13872 int __thiscall
strstreambuf_pbackfail(strstreambuf
*this, int c
)
13874 char *ptr
= basic_streambuf_char_gptr(&this->base
);
13876 TRACE("(%p %d)\n", this, c
);
13878 if(ptr
<=basic_streambuf_char_eback(&this->base
)
13879 || ((this->strmode
& STRSTATE_Constant
) && c
!=ptr
[-1]))
13882 basic_streambuf_char_gbump(&this->base
, -1);
13885 if(this->strmode
& STRSTATE_Constant
)
13886 return (unsigned char)c
;
13888 return (unsigned char)(ptr
[0] = c
);
13891 /* ?seekoff@strstreambuf@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
13892 /* ?seekoff@strstreambuf@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
13893 /* ?seekoff@strstreambuf@std@@MAE?AV?$fpos@H@2@JHH@Z */
13894 /* ?seekoff@strstreambuf@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
13895 #if STREAMOFF_BITS == 64
13896 DEFINE_THISCALL_WRAPPER(strstreambuf_seekoff
, 24)
13898 DEFINE_THISCALL_WRAPPER(strstreambuf_seekoff
, 20)
13900 fpos_int
* __thiscall
strstreambuf_seekoff(strstreambuf
*this, fpos_int
*ret
, streamoff off
, int way
, int mode
)
13902 char *eback
= basic_streambuf_char_eback(&this->base
);
13903 char *pptr
= basic_streambuf_char_pptr(&this->base
);
13904 char *gptr
= basic_streambuf_char_gptr(&this->base
);
13906 TRACE("(%p %p %s %d %d)\n", this, ret
, wine_dbgstr_longlong(off
), way
, mode
);
13911 if(pptr
> this->seekhigh
)
13912 this->seekhigh
= pptr
;
13914 if((mode
& OPENMODE_in
) && gptr
) {
13915 if(way
==SEEKDIR_cur
&& !(mode
& OPENMODE_out
))
13917 else if(way
== SEEKDIR_end
)
13918 off
+= this->seekhigh
-eback
;
13919 else if(way
!= SEEKDIR_beg
)
13922 if(off
<0 || off
>this->seekhigh
-eback
) {
13925 basic_streambuf_char_gbump(&this->base
, eback
-gptr
+off
);
13926 if((mode
& OPENMODE_out
) && pptr
) {
13927 basic_streambuf_char_setp_next(&this->base
, eback
,
13928 gptr
, basic_streambuf_char_epptr(&this->base
));
13931 }else if((mode
& OPENMODE_out
) && pptr
) {
13932 if(way
== SEEKDIR_cur
)
13934 else if(way
== SEEKDIR_end
)
13935 off
+= this->seekhigh
-eback
;
13936 else if(way
!= SEEKDIR_beg
)
13939 if(off
<0 || off
>this->seekhigh
-eback
)
13942 basic_streambuf_char_pbump(&this->base
, eback
-pptr
+off
);
13951 /* ?seekpos@strstreambuf@std@@MAE?AV?$fpos@H@2@V32@H@Z */
13952 /* ?seekpos@strstreambuf@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
13953 DEFINE_THISCALL_WRAPPER(strstreambuf_seekpos
, 36)
13954 fpos_int
* __thiscall
strstreambuf_seekpos(strstreambuf
*this, fpos_int
*ret
, fpos_int pos
, int mode
)
13956 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_int(&pos
), mode
);
13958 if(pos
.off
==-1 && pos
.pos
==0 && pos
.state
==0) {
13963 return strstreambuf_seekoff(this, ret
, pos
.pos
+pos
.off
, SEEKDIR_beg
, mode
);
13966 /* ?underflow@strstreambuf@std@@MAEHXZ */
13967 /* ?underflow@strstreambuf@std@@MEAAHXZ */
13968 DEFINE_THISCALL_WRAPPER(strstreambuf_underflow
, 4)
13969 int __thiscall
strstreambuf_underflow(strstreambuf
*this)
13971 char *gptr
= basic_streambuf_char_gptr(&this->base
);
13974 TRACE("(%p)\n", this);
13979 if(gptr
< basic_streambuf_char_egptr(&this->base
))
13980 return (unsigned char)(*gptr
);
13982 pptr
= basic_streambuf_char_gptr(&this->base
);
13983 if(pptr
> this->seekhigh
)
13984 this->seekhigh
= pptr
;
13986 if(this->seekhigh
<= gptr
)
13989 basic_streambuf_char_setg(&this->base
, basic_streambuf_char_eback(&this->base
),
13990 gptr
, this->seekhigh
);
13991 return (unsigned char)(*gptr
);
13994 static inline basic_ios_char
* ostrstream_to_basic_ios(ostrstream
*ptr
)
13996 return (basic_ios_char
*)((char*)ptr
+ostrstream_vbtable
[1]);
13999 static inline ostrstream
* ostrstream_from_basic_ios(basic_ios_char
*ptr
)
14001 return (ostrstream
*)((char*)ptr
-ostrstream_vbtable
[1]);
14004 /* ??0ostrstream@std@@QAE@PADHH@Z */
14005 #if STREAMSIZE_BITS == 64
14006 DEFINE_THISCALL_WRAPPER(ostrstream_ctor
, 24)
14008 DEFINE_THISCALL_WRAPPER(ostrstream_ctor
, 20)
14010 ostrstream
* __thiscall
ostrstream_ctor(ostrstream
*this, char *buf
, streamsize size
, int mode
, MSVCP_bool virt_init
)
14012 basic_ios_char
*basic_ios
;
14014 TRACE("(%p %p %s %d %d)\n", this, buf
, wine_dbgstr_longlong(size
), mode
, virt_init
);
14017 this->base
.vbtable
= ostrstream_vbtable
;
14018 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
14019 basic_ios_char_ctor(basic_ios
);
14021 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
14024 strstreambuf_ctor_get_put(&this->buf
, buf
, size
,
14025 buf
&& (mode
& OPENMODE_app
) ? buf
+strlen(buf
) : buf
);
14026 basic_ostream_char_ctor(&this->base
, &this->buf
.base
, FALSE
, FALSE
);
14027 basic_ios
->base
.vtable
= &MSVCP_ostrstream_vtable
;
14031 /* ??1ostrstream@std@@UAE@XZ */
14032 /* ??1ostrstream@std@@UEAA@XZ */
14033 DEFINE_THISCALL_WRAPPER(ostrstream_dtor
, 4)
14034 void __thiscall
ostrstream_dtor(basic_ios_char
*base
)
14036 ostrstream
*this = ostrstream_from_basic_ios(base
);
14038 TRACE("(%p)\n", this);
14040 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&this->base
));
14041 strstreambuf_dtor(&this->buf
);
14044 static void ostrstream_vbase_dtor(ostrstream
*this)
14046 TRACE("(%p)\n", this);
14048 ostrstream_dtor(ostrstream_to_basic_ios(this));
14049 basic_ios_char_dtor(basic_ostream_char_get_basic_ios(&this->base
));
14052 DEFINE_THISCALL_WRAPPER(ostrstream_vector_dtor
, 8)
14053 ostrstream
* __thiscall
ostrstream_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
14055 ostrstream
*this = ostrstream_from_basic_ios(base
);
14057 TRACE("(%p %x)\n", this, flags
);
14060 /* we have an array, with the number of elements stored before the first object */
14061 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
14063 for(i
=*ptr
-1; i
>=0; i
--)
14064 ostrstream_vbase_dtor(this+i
);
14065 MSVCRT_operator_delete(ptr
);
14067 ostrstream_vbase_dtor(this);
14069 MSVCRT_operator_delete(this);
14075 static inline istrstream
* istrstream_from_basic_ios(basic_ios_char
*ptr
)
14077 return (istrstream
*)((char*)ptr
-istrstream_vbtable
[1]);
14080 /* ??1istrstream@std@@UAE@XZ */
14081 /* ??1istrstream@std@@UEAA@XZ */
14082 DEFINE_THISCALL_WRAPPER(istrstream_dtor
, 4)
14083 void __thiscall
istrstream_dtor(basic_ios_char
*base
)
14085 istrstream
*this = istrstream_from_basic_ios(base
);
14087 TRACE("(%p)\n", this);
14089 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&this->base
));
14090 strstreambuf_dtor(&this->buf
);
14093 static inline basic_ios_char
* strstream_to_basic_ios(strstream
*ptr
)
14095 return (basic_ios_char
*)((char*)ptr
+strstream_vbtable1
[1]);
14098 static inline strstream
* strstream_from_basic_ios(basic_ios_char
*ptr
)
14100 return (strstream
*)((char*)ptr
-strstream_vbtable1
[1]);
14103 /* ??$?6MDU?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@ABV?$complex@M@0@@Z */
14104 /* ??$?6MDU?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@AEBV?$complex@M@0@@Z */
14105 basic_ostream_char
* __cdecl
basic_ostream_char_print_complex_float(basic_ostream_char
*ostr
, const complex_float
*val
)
14108 basic_ostringstream_char obj
;
14109 basic_ios_char vbase
;
14111 ios_base
*ostringstream_ios_base
, *ostream_ios_base
;
14113 basic_string_char str
;
14114 basic_ostringstream_char_ctor(&oss
.obj
);
14115 ostringstream_ios_base
= &oss
.vbase
.base
;
14116 ostream_ios_base
= &basic_ostream_char_get_basic_ios(ostr
)->base
;
14117 TRACE("(%p %p)\n", ostr
, val
);
14119 ios_base_imbue(ostringstream_ios_base
, &loc
, IOS_LOCALE(ostream_ios_base
));
14121 ios_base_precision_set(ostringstream_ios_base
, ios_base_precision_get(ostream_ios_base
));
14122 ios_base_flags_set(ostringstream_ios_base
, ios_base_flags_get(ostream_ios_base
));
14124 basic_ostream_char_print_ch(&oss
.obj
.base
, '(');
14125 basic_ostream_char_print_float(&oss
.obj
.base
, val
->real
);
14126 basic_ostream_char_print_ch(&oss
.obj
.base
, ',');
14127 basic_ostream_char_print_float(&oss
.obj
.base
, val
->imag
);
14128 basic_ostream_char_print_ch(&oss
.obj
.base
, ')');
14130 basic_ostringstream_char_str_get(&oss
.obj
, &str
);
14131 basic_ostringstream_char_dtor(&oss
.vbase
);
14132 basic_ostream_char_print_bstr(ostr
, &str
);
14133 MSVCP_basic_string_char_dtor(&str
);
14137 /* ??$?6NDU?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@ABV?$complex@N@0@@Z */
14138 /* ??$?6NDU?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@AEBV?$complex@N@0@@Z */
14139 basic_ostream_char
* __cdecl
basic_ostream_char_print_complex_double(basic_ostream_char
*ostr
, const complex_double
*val
)
14142 basic_ostringstream_char obj
;
14143 basic_ios_char vbase
;
14145 ios_base
*ostringstream_ios_base
, *ostream_ios_base
;
14147 basic_string_char str
;
14148 basic_ostringstream_char_ctor(&oss
.obj
);
14149 ostringstream_ios_base
= &oss
.vbase
.base
;
14150 ostream_ios_base
= &basic_ostream_char_get_basic_ios(ostr
)->base
;
14151 TRACE("(%p %p)\n", ostr
, val
);
14153 ios_base_imbue(ostringstream_ios_base
, &loc
, IOS_LOCALE(ostream_ios_base
));
14155 ios_base_precision_set(ostringstream_ios_base
, ios_base_precision_get(ostream_ios_base
));
14156 ios_base_flags_set(ostringstream_ios_base
, ios_base_flags_get(ostream_ios_base
));
14158 basic_ostream_char_print_ch(&oss
.obj
.base
, '(');
14159 basic_ostream_char_print_double(&oss
.obj
.base
, val
->real
);
14160 basic_ostream_char_print_ch(&oss
.obj
.base
, ',');
14161 basic_ostream_char_print_double(&oss
.obj
.base
, val
->imag
);
14162 basic_ostream_char_print_ch(&oss
.obj
.base
, ')');
14164 basic_ostringstream_char_str_get(&oss
.obj
, &str
);
14165 basic_ostringstream_char_dtor(&oss
.vbase
);
14166 basic_ostream_char_print_bstr(ostr
, &str
);
14167 MSVCP_basic_string_char_dtor(&str
);
14171 /* ??$?6odu?$char_traits@d@std@@@std@@yaaav?$basic_ostream@du?$char_traits@d@std@@@0@aav10@abv?$complex@o@0@@Z */
14172 /* ??$?6ODU?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@AEBV?$complex@O@0@@Z */
14173 basic_ostream_char
* __cdecl
basic_ostream_char_print_complex_ldouble(basic_ostream_char
*ostr
, const complex_double
*val
)
14176 basic_ostringstream_char obj
;
14177 basic_ios_char vbase
;
14179 ios_base
*ostringstream_ios_base
, *ostream_ios_base
;
14181 basic_string_char str
;
14182 basic_ostringstream_char_ctor(&oss
.obj
);
14183 ostringstream_ios_base
= &oss
.vbase
.base
;
14184 ostream_ios_base
= &basic_ostream_char_get_basic_ios(ostr
)->base
;
14185 TRACE("(%p %p)\n", ostr
, val
);
14187 ios_base_imbue(ostringstream_ios_base
, &loc
, IOS_LOCALE(ostream_ios_base
));
14189 ios_base_precision_set(ostringstream_ios_base
, ios_base_precision_get(ostream_ios_base
));
14190 ios_base_flags_set(ostringstream_ios_base
, ios_base_flags_get(ostream_ios_base
));
14192 basic_ostream_char_print_ch(&oss
.obj
.base
, '(');
14193 basic_ostream_char_print_ldouble(&oss
.obj
.base
, val
->real
);
14194 basic_ostream_char_print_ch(&oss
.obj
.base
, ',');
14195 basic_ostream_char_print_ldouble(&oss
.obj
.base
, val
->imag
);
14196 basic_ostream_char_print_ch(&oss
.obj
.base
, ')');
14198 basic_ostringstream_char_str_get(&oss
.obj
, &str
);
14199 basic_ostringstream_char_dtor(&oss
.vbase
);
14200 basic_ostream_char_print_bstr(ostr
, &str
);
14201 MSVCP_basic_string_char_dtor(&str
);
14205 /* ?_File_size@sys@tr2@std@@YA_KPBD@Z */
14206 /* ?_File_size@sys@tr2@std@@YA_KPEBD@Z */
14207 ULONGLONG __cdecl
tr2_sys__File_size(char const* path
)
14209 WIN32_FILE_ATTRIBUTE_DATA fad
;
14211 TRACE("(%s)\n", debugstr_a(path
));
14212 if(!GetFileAttributesExA(path
, GetFileExInfoStandard
, &fad
))
14214 if(fad
.dwFileAttributes
& FILE_ATTRIBUTE_DIRECTORY
)
14217 return ((ULONGLONG
)(fad
.nFileSizeHigh
) << 32) + fad
.nFileSizeLow
;
14220 /* ?_Equivalent@sys@tr2@std@@YAHPBD0@Z */
14221 /* ?_Equivalent@sys@tr2@std@@YAHPEBD0@Z */
14222 int __cdecl
tr2_sys__Equivalent(char const* path1
, char const* path2
)
14226 BY_HANDLE_FILE_INFORMATION info1
, info2
;
14227 TRACE("(%s %s)\n", debugstr_a(path1
), debugstr_a(path2
));
14229 h1
= CreateFileA(path1
, 0, FILE_SHARE_DELETE
| FILE_SHARE_READ
| FILE_SHARE_WRITE
,
14230 NULL
, OPEN_EXISTING
, 0, 0);
14231 h2
= CreateFileA(path2
, 0, FILE_SHARE_DELETE
| FILE_SHARE_READ
| FILE_SHARE_WRITE
,
14232 NULL
, OPEN_EXISTING
, 0, 0);
14233 if(h1
== INVALID_HANDLE_VALUE
) {
14234 if(h2
== INVALID_HANDLE_VALUE
) {
14240 }else if(h2
== INVALID_HANDLE_VALUE
) {
14245 ret
= GetFileInformationByHandle(h1
, &info1
) && GetFileInformationByHandle(h2
, &info2
);
14250 return (info1
.dwVolumeSerialNumber
== info2
.dwVolumeSerialNumber
14251 && info1
.nFileIndexHigh
== info2
.nFileIndexHigh
14252 && info1
.nFileIndexLow
== info2
.nFileIndexLow
14256 /* ?_Current_get@sys@tr2@std@@YAPADAAY0BAE@D@Z */
14257 /* ?_Current_get@sys@tr2@std@@YAPEADAEAY0BAE@D@Z */
14258 char* __cdecl
tr2_sys__Current_get(char *current_path
)
14260 TRACE("(%s)\n", debugstr_a(current_path
));
14262 if(!GetCurrentDirectoryA(MAX_PATH
, current_path
))
14264 return current_path
;
14267 /* ?_Current_set@sys@tr2@std@@YA_NPBD@Z */
14268 /* ?_Current_set@sys@tr2@std@@YA_NPEBD@Z */
14269 MSVCP_bool __cdecl
tr2_sys__Current_set(char const* path
)
14271 TRACE("(%s)\n", debugstr_a(path
));
14272 return SetCurrentDirectoryA(path
) != 0;
14275 /* ?_Make_dir@sys@tr2@std@@YAHPBD@Z */
14276 /* ?_Make_dir@sys@tr2@std@@YAHPEBD@Z */
14277 int __cdecl
tr2_sys__Make_dir(char const* path
)
14279 TRACE("(%s)\n", debugstr_a(path
));
14281 if(!CreateDirectoryA(path
, NULL
)) {
14282 if(GetLastError() == ERROR_ALREADY_EXISTS
)
14291 /* ?_Remove_dir@sys@tr2@std@@YA_NPBD@Z */
14292 /* ?_Remove_dir@sys@tr2@std@@YA_NPEBD@Z */
14293 MSVCP_bool __cdecl
tr2_sys__Remove_dir(char const* path
)
14295 TRACE("(%s)\n", debugstr_a(path
));
14296 return RemoveDirectoryA(path
) != 0;
14299 /* ?_Copy_file@sys@tr2@std@@YAHPBD0_N@Z */
14300 /* ?_Copy_file@sys@tr2@std@@YAHPEBD0_N@Z */
14301 int __cdecl
tr2_sys__Copy_file(char const* source
, char const* dest
, MSVCP_bool fail_if_exists
)
14303 TRACE("(%s %s %x)\n", debugstr_a(source
), debugstr_a(dest
), fail_if_exists
);
14305 if(CopyFileA(source
, dest
, fail_if_exists
))
14306 return ERROR_SUCCESS
;
14307 return GetLastError();
14310 /* ?_Rename@sys@tr2@std@@YAHPBD0@Z */
14311 /* ?_Rename@sys@tr2@std@@YAHPEBD0@Z */
14312 int __cdecl
tr2_sys__Rename(char const* old_path
, char const* new_path
)
14314 TRACE("(%s %s)\n", debugstr_a(old_path
), debugstr_a(new_path
));
14316 if(!old_path
|| !new_path
)
14317 return ERROR_INVALID_PARAMETER
;
14319 if(MoveFileExA(old_path
, new_path
, MOVEFILE_COPY_ALLOWED
))
14320 return ERROR_SUCCESS
;
14321 return GetLastError();
14324 /* ?_Statvfs@sys@tr2@std@@YA?AUspace_info@123@PBD@Z */
14325 /* ?_Statvfs@sys@tr2@std@@YA?AUspace_info@123@PEBD@Z */
14326 struct space_info __cdecl
tr2_sys__Statvfs(const char* path
)
14328 ULARGE_INTEGER available
, total
, free
;
14329 struct space_info info
;
14330 TRACE("(%s)\n", debugstr_a(path
));
14332 if(!path
|| !GetDiskFreeSpaceExA(path
, &available
, &total
, &free
)) {
14333 info
.capacity
= info
.free
= info
.available
= 0;
14335 info
.capacity
= total
.QuadPart
;
14336 info
.free
= free
.QuadPart
;
14337 info
.available
= available
.QuadPart
;
14342 /* ?_Stat@sys@tr2@std@@YA?AW4file_type@123@PBDAAH@Z */
14343 /* ?_Stat@sys@tr2@std@@YA?AW4file_type@123@PEBDAEAH@Z */
14344 enum file_type __cdecl
tr2_sys__Stat(char const* path
, int* err_code
)
14347 TRACE("(%s %p)\n", debugstr_a(path
), err_code
);
14349 *err_code
= ERROR_INVALID_PARAMETER
;
14350 return status_unknown
;
14353 attr
=GetFileAttributesA(path
);
14354 if(attr
== INVALID_FILE_ATTRIBUTES
) {
14355 enum file_type ret
;
14356 switch(GetLastError()) {
14357 case ERROR_FILE_NOT_FOUND
:
14358 case ERROR_BAD_NETPATH
:
14359 case ERROR_INVALID_NAME
:
14360 case ERROR_BAD_PATHNAME
:
14361 case ERROR_PATH_NOT_FOUND
:
14362 ret
= file_not_found
;
14363 *err_code
= ERROR_SUCCESS
;
14366 ret
= status_unknown
;
14367 *err_code
= GetLastError();
14372 *err_code
= ERROR_SUCCESS
;
14373 return (attr
& FILE_ATTRIBUTE_DIRECTORY
)?directory_file
:regular_file
;
14376 /* ?_Lstat@sys@tr2@std@@YA?AW4file_type@123@PBDAAH@Z */
14377 /* ?_Lstat@sys@tr2@std@@YA?AW4file_type@123@PEBDAEAH@Z */
14378 enum file_type __cdecl
tr2_sys__Lstat(char const* path
, int* err_code
)
14380 return tr2_sys__Stat(path
, err_code
);
14383 /* ??0strstream@std@@QAE@PADHH@Z */
14384 /* ??0strstream@std@@QEAA@PEAD_JH@Z */
14385 #if STREAMSIZE_BITS == 64
14386 DEFINE_THISCALL_WRAPPER(strstream_ctor
, 24)
14388 DEFINE_THISCALL_WRAPPER(strstream_ctor
, 20)
14390 strstream
* __thiscall
strstream_ctor(strstream
*this, char *buf
, streamsize size
, int mode
, MSVCP_bool virt_init
)
14392 basic_ios_char
*basic_ios
;
14394 TRACE("(%p %p %s %d %d)\n", this, buf
, wine_dbgstr_longlong(size
), mode
, virt_init
);
14397 this->base
.base1
.vbtable
= strstream_vbtable1
;
14398 this->base
.base2
.vbtable
= strstream_vbtable2
;
14399 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
14400 basic_ios_char_ctor(basic_ios
);
14402 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
14405 strstreambuf_ctor_get_put(&this->buf
, buf
, size
,
14406 buf
&& (mode
& OPENMODE_app
) ? buf
+strlen(buf
) : buf
);
14407 basic_iostream_char_ctor(&this->base
, &this->buf
.base
, FALSE
);
14408 basic_ios
->base
.vtable
= &MSVCP_strstream_vtable
;
14412 /* ??1strstream@std@@UAE@XZ */
14413 /* ??1strstream@std@@UEAA@XZ */
14414 DEFINE_THISCALL_WRAPPER(strstream_dtor
, 4)
14415 void __thiscall
strstream_dtor(basic_ios_char
*base
)
14417 strstream
*this = strstream_from_basic_ios(base
);
14419 TRACE("(%p)\n", this);
14421 basic_iostream_char_dtor(basic_iostream_char_to_basic_ios(&this->base
));
14422 strstreambuf_dtor(&this->buf
);
14425 static void strstream_vbase_dtor(strstream
*this)
14427 TRACE("(%p)\n", this);
14429 strstream_dtor(strstream_to_basic_ios(this));
14430 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base
.base1
));
14433 DEFINE_THISCALL_WRAPPER(strstream_vector_dtor
, 8)
14434 strstream
* __thiscall
strstream_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
14436 strstream
*this = strstream_from_basic_ios(base
);
14438 TRACE("(%p %x)\n", this, flags
);
14441 /* we have an array, with the number of elements stored before the first object */
14442 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
14444 for(i
=*ptr
-1; i
>=0; i
--)
14445 strstream_vbase_dtor(this+i
);
14446 MSVCRT_operator_delete(ptr
);
14448 strstream_vbase_dtor(this);
14450 MSVCRT_operator_delete(this);
14456 static void __cdecl
setprecision_func(ios_base
*base
, streamsize prec
)
14458 ios_base_precision_set(base
, prec
);
14461 /* ?setprecision@std@@YA?AU?$_Smanip@H@1@H@Z */
14462 /* ?setprecision@std@@YA?AU?$_Smanip@_J@1@_J@Z */
14463 manip_streamsize
* __cdecl
setprecision(manip_streamsize
*ret
, streamsize prec
)
14465 TRACE("(%p %s)\n", ret
, wine_dbgstr_longlong(prec
));
14467 ret
->pfunc
= setprecision_func
;
14472 static void __cdecl
setw_func(ios_base
*base
, streamsize width
)
14474 ios_base_width_set(base
, width
);
14477 /* ?setw@std@@YA?AU?$_Smanip@H@1@H@Z */
14478 /* ?setw@std@@YA?AU?$_Smanip@_J@1@_J@Z */
14479 manip_streamsize
* __cdecl
setw(manip_streamsize
*ret
, streamsize width
)
14481 TRACE("(%p %s)\n", ret
, wine_dbgstr_longlong(width
));
14483 ret
->pfunc
= setw_func
;
14488 static void __cdecl
resetioflags_func(ios_base
*base
, int mask
)
14490 ios_base_setf_mask(base
, 0, mask
);
14493 /* ?resetiosflags@std@@YA?AU?$_Smanip@H@1@H@Z */
14494 manip_int
* __cdecl
resetiosflags(manip_int
*ret
, int mask
)
14496 TRACE("(%p %d)\n", ret
, mask
);
14498 ret
->pfunc
= resetioflags_func
;
14503 static void __cdecl
setiosflags_func(ios_base
*base
, int mask
)
14505 ios_base_setf_mask(base
, FMTFLAG_mask
, mask
);
14508 /* ?setiosflags@std@@YA?AU?$_Smanip@H@1@H@Z */
14509 manip_int
* __cdecl
setiosflags(manip_int
*ret
, int mask
)
14511 TRACE("(%p %d)\n", ret
, mask
);
14513 ret
->pfunc
= setiosflags_func
;
14518 static void __cdecl
setbase_func(ios_base
*base
, int set_base
)
14521 set_base
= FMTFLAG_dec
;
14522 else if(set_base
== 8)
14523 set_base
= FMTFLAG_oct
;
14524 else if(set_base
== 16)
14525 set_base
= FMTFLAG_hex
;
14529 ios_base_setf_mask(base
, set_base
, FMTFLAG_basefield
);
14532 /* ?setbase@std@@YA?AU?$_Smanip@H@1@H@Z */
14533 manip_int
* __cdecl
setbase(manip_int
*ret
, int base
)
14535 TRACE("(%p %d)\n", ret
, base
);
14537 ret
->pfunc
= setbase_func
;
14542 static basic_filebuf_char filebuf_char_stdin
;
14543 /* ?cin@std@@3V?$basic_istream@DU?$char_traits@D@std@@@1@A */
14545 basic_istream_char obj
;
14546 basic_ios_char vbase
;
14548 /* ?_Ptr_cin@std@@3PAV?$basic_istream@DU?$char_traits@D@std@@@1@A */
14549 /* ?_Ptr_cin@std@@3PEAV?$basic_istream@DU?$char_traits@D@std@@@1@EA */
14550 basic_istream_char
*_Ptr_cin
= &cin
.obj
;
14552 static basic_filebuf_wchar filebuf_short_stdin
;
14553 /* ?wcin@std@@3V?$basic_istream@GU?$char_traits@G@std@@@1@A */
14555 basic_istream_wchar obj
;
14556 basic_ios_wchar vbase
;
14557 } ucin
= { { 0 } };
14558 /* ?_Ptr_wcin@std@@3PAV?$basic_istream@GU?$char_traits@G@std@@@1@A */
14559 /* ?_Ptr_wcin@std@@3PEAV?$basic_istream@GU?$char_traits@G@std@@@1@EA */
14560 basic_istream_wchar
*_Ptr_ucin
= &ucin
.obj
;
14562 static basic_filebuf_wchar filebuf_wchar_stdin
;
14563 /* ?wcin@std@@3V?$basic_istream@_WU?$char_traits@_W@std@@@1@A */
14565 basic_istream_wchar obj
;
14566 basic_ios_wchar vbase
;
14567 } wcin
= { { 0 } };
14568 /* ?_Ptr_wcin@std@@3PAV?$basic_istream@_WU?$char_traits@_W@std@@@1@A */
14569 /* ?_Ptr_wcin@std@@3PEAV?$basic_istream@_WU?$char_traits@_W@std@@@1@EA */
14570 basic_istream_wchar
*_Ptr_wcin
= &wcin
.obj
;
14572 static basic_filebuf_char filebuf_char_stdout
;
14573 /* ?cout@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A */
14575 basic_ostream_char obj
;
14576 basic_ios_char vbase
;
14577 } cout
= { { 0 } };
14578 /* ?_Ptr_cout@std@@3PAV?$basic_ostream@DU?$char_traits@D@std@@@1@A */
14579 /* ?_Ptr_cout@std@@3PEAV?$basic_ostream@DU?$char_traits@D@std@@@1@EA */
14580 basic_ostream_char
*_Ptr_cout
= &cout
.obj
;
14582 static basic_filebuf_wchar filebuf_short_stdout
;
14583 /* ?wcout@std@@3V?$basic_ostream@GU?$char_traits@G@std@@@1@A */
14585 basic_ostream_wchar obj
;
14586 basic_ios_wchar vbase
;
14587 } ucout
= { { 0 } };
14588 /* ?_Ptr_wcout@std@@3PAV?$basic_ostream@GU?$char_traits@G@std@@@1@A */
14589 /* ?_Ptr_wcout@std@@3PEAV?$basic_ostream@GU?$char_traits@G@std@@@1@EA */
14590 basic_ostream_wchar
*_Ptr_ucout
= &ucout
.obj
;
14592 static basic_filebuf_wchar filebuf_wchar_stdout
;
14593 /* ?wcout@std@@3V?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
14595 basic_ostream_wchar obj
;
14596 basic_ios_wchar vbase
;
14597 } wcout
= { { 0 } };
14598 /* ?_Ptr_wcout@std@@3PAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
14599 /* ?_Ptr_wcout@std@@3PEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@EA */
14600 basic_ostream_wchar
*_Ptr_wcout
= &wcout
.obj
;
14602 static basic_filebuf_char filebuf_char_stderr
;
14603 /* ?cerr@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A */
14605 basic_ostream_char obj
;
14606 basic_ios_char vbase
;
14607 } cerr
= { { 0 } };
14608 /* ?_Ptr_cerr@std@@3PAV?$basic_ostream@DU?$char_traits@D@std@@@1@A */
14609 /* ?_Ptr_cerr@std@@3PEAV?$basic_ostream@DU?$char_traits@D@std@@@1@EA */
14610 basic_ostream_char
*_Ptr_cerr
= &cerr
.obj
;
14612 static basic_filebuf_wchar filebuf_short_stderr
;
14613 /* ?wcerr@std@@3V?$basic_ostream@GU?$char_traits@G@std@@@1@A */
14615 basic_ostream_wchar obj
;
14616 basic_ios_wchar vbase
;
14617 } ucerr
= { { 0 } };
14618 /* ?_Ptr_wcerr@std@@3PAV?$basic_ostream@GU?$char_traits@G@std@@@1@A */
14619 /* ?_Ptr_wcerr@std@@3PEAV?$basic_ostream@GU?$char_traits@G@std@@@1@EA */
14620 basic_ostream_wchar
*_Ptr_ucerr
= &ucerr
.obj
;
14622 static basic_filebuf_wchar filebuf_wchar_stderr
;
14623 /* ?wcerr@std@@3V?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
14625 basic_ostream_wchar obj
;
14626 basic_ios_wchar vbase
;
14627 } wcerr
= { { 0 } };
14628 /* ?_Ptr_wcerr@std@@3PAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
14629 /* ?_Ptr_wcerr@std@@3PEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@EA */
14630 basic_ostream_wchar
*_Ptr_wcerr
= &wcerr
.obj
;
14632 static basic_filebuf_char filebuf_char_log
;
14633 /* ?clog@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A */
14635 basic_ostream_char obj
;
14636 basic_ios_char vbase
;
14637 } clog
= { { 0 } };
14638 /* ?_Ptr_clog@std@@3PAV?$basic_ostream@DU?$char_traits@D@std@@@1@A */
14639 /* ?_Ptr_clog@std@@3PEAV?$basic_ostream@DU?$char_traits@D@std@@@1@EA */
14640 basic_ostream_char
*_Ptr_clog
= &clog
.obj
;
14642 static basic_filebuf_wchar filebuf_short_log
;
14643 /* ?wclog@std@@3V?$basic_ostream@GU?$char_traits@G@std@@@1@A */
14645 basic_ostream_wchar obj
;
14646 basic_ios_wchar vbase
;
14647 } uclog
= { { 0 } };
14648 /* ?_Ptr_wclog@std@@3PAV?$basic_ostream@GU?$char_traits@G@std@@@1@A */
14649 /* ?_Ptr_wclog@std@@3PEAV?$basic_ostream@GU?$char_traits@G@std@@@1@EA */
14650 basic_ostream_wchar
*_Ptr_uclog
= &uclog
.obj
;
14652 static basic_filebuf_wchar filebuf_wchar_log
;
14653 /* ?wclog@std@@3V?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
14655 basic_ostream_wchar obj
;
14656 basic_ios_wchar vbase
;
14657 } wclog
= { { 0 } };
14658 /* ?_Ptr_wclog@std@@3PAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
14659 /* ?_Ptr_wclog@std@@3PEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@EA */
14660 basic_ostream_wchar
*_Ptr_wclog
= &wclog
.obj
;
14662 /* ?_Init_cnt@Init@ios_base@std@@0HA */
14663 int ios_base_Init__Init_cnt
= -1;
14665 /* ?_Init_cnt_func@Init@ios_base@std@@CAAAHXZ */
14666 /* ?_Init_cnt_func@Init@ios_base@std@@CAAEAHXZ */
14667 int* __cdecl
ios_base_Init__Init_cnt_func(void)
14669 return &ios_base_Init__Init_cnt
;
14672 /* ?_Init_ctor@Init@ios_base@std@@CAXPAV123@@Z */
14673 /* ?_Init_ctor@Init@ios_base@std@@CAXPEAV123@@Z */
14674 void __cdecl
ios_base_Init__Init_ctor(void *this)
14676 TRACE("(%p)\n", this);
14678 if(ios_base_Init__Init_cnt
< 0)
14679 ios_base_Init__Init_cnt
= 1;
14681 ios_base_Init__Init_cnt
++;
14684 /* ??0Init@ios_base@std@@QAE@XZ */
14685 /* ??0Init@ios_base@std@@QEAA@XZ */
14686 DEFINE_THISCALL_WRAPPER(ios_base_Init_ctor
, 4)
14687 void* __thiscall
ios_base_Init_ctor(void *this)
14689 ios_base_Init__Init_ctor(this);
14693 /* ?_Init_dtor@Init@ios_base@std@@CAXPAV123@@Z */
14694 /* ?_Init_dtor@Init@ios_base@std@@CAXPEAV123@@Z */
14695 void __cdecl
ios_base_Init__Init_dtor(void *this)
14697 TRACE("(%p)\n", this);
14699 ios_base_Init__Init_cnt
--;
14700 if(!ios_base_Init__Init_cnt
) {
14701 basic_ostream_char_flush(&cout
.obj
);
14702 basic_ostream_char_flush(&cerr
.obj
);
14703 basic_ostream_char_flush(&clog
.obj
);
14707 /* ??1Init@ios_base@std@@QAE@XZ */
14708 /* ??1Init@ios_base@std@@QEAA@XZ */
14709 DEFINE_THISCALL_WRAPPER(ios_base_Init_dtor
, 4)
14710 void __thiscall
ios_base_Init_dtor(void *this)
14712 ios_base_Init__Init_dtor(this);
14715 /* ??4Init@ios_base@std@@QAEAAV012@ABV012@@Z */
14716 /* ??4Init@ios_base@std@@QEAAAEAV012@AEBV012@@Z */
14717 DEFINE_THISCALL_WRAPPER(ios_base_Init_op_assign
, 8)
14718 void* __thiscall
ios_base_Init_op_assign(void *this, void *rhs
)
14720 TRACE("(%p %p)\n", this, rhs
);
14724 /* ?_Init_cnt@_Winit@std@@0HA */
14725 int _Winit__Init_cnt
= -1;
14727 /* ??0_Winit@std@@QAE@XZ */
14728 /* ??0_Winit@std@@QEAA@XZ */
14729 DEFINE_THISCALL_WRAPPER(_Winit_ctor
, 4)
14730 void* __thiscall
_Winit_ctor(void *this)
14732 TRACE("(%p)\n", this);
14734 if(_Winit__Init_cnt
< 0)
14735 _Winit__Init_cnt
= 1;
14737 _Winit__Init_cnt
++;
14742 /* ?_File_size@sys@tr2@std@@YA_KPB_W@Z */
14743 /* ?_File_size@sys@tr2@std@@YA_KPEB_W@Z */
14744 ULONGLONG __cdecl
tr2_sys__File_size_wchar(WCHAR
const* path
)
14746 WIN32_FILE_ATTRIBUTE_DATA fad
;
14748 TRACE("(%s)\n", debugstr_w(path
));
14749 if(!GetFileAttributesExW(path
, GetFileExInfoStandard
, &fad
))
14751 if(fad
.dwFileAttributes
& FILE_ATTRIBUTE_DIRECTORY
)
14754 return ((ULONGLONG
)(fad
.nFileSizeHigh
) << 32) + fad
.nFileSizeLow
;
14757 /* ?_Equivalent@sys@tr2@std@@YAHPB_W0@Z */
14758 /* ?_Equivalent@sys@tr2@std@@YAHPEB_W0@Z */
14759 int __cdecl
tr2_sys__Equivalent_wchar(WCHAR
const* path1
, WCHAR
const* path2
)
14763 BY_HANDLE_FILE_INFORMATION info1
, info2
;
14764 TRACE("(%s %s)\n", debugstr_w(path1
), debugstr_w(path2
));
14766 h1
= CreateFileW(path1
, 0, FILE_SHARE_DELETE
| FILE_SHARE_READ
| FILE_SHARE_WRITE
,
14767 NULL
, OPEN_EXISTING
, 0, 0);
14768 h2
= CreateFileW(path2
, 0, FILE_SHARE_DELETE
| FILE_SHARE_READ
| FILE_SHARE_WRITE
,
14769 NULL
, OPEN_EXISTING
, 0, 0);
14770 if(h1
== INVALID_HANDLE_VALUE
) {
14771 if(h2
== INVALID_HANDLE_VALUE
) {
14777 }else if(h2
== INVALID_HANDLE_VALUE
) {
14782 ret
= GetFileInformationByHandle(h1
, &info1
) && GetFileInformationByHandle(h2
, &info2
);
14787 return (info1
.dwVolumeSerialNumber
== info2
.dwVolumeSerialNumber
14788 && info1
.nFileIndexHigh
== info2
.nFileIndexHigh
14789 && info1
.nFileIndexLow
== info2
.nFileIndexLow
14793 /* ?_Current_get@sys@tr2@std@@YAPA_WAAY0BAE@_W@Z */
14794 /* ?_Current_get@sys@tr2@std@@YAPEA_WAEAY0BAE@_W@Z */
14795 WCHAR
* __cdecl
tr2_sys__Current_get_wchar(WCHAR
*current_path
)
14797 TRACE("(%s)\n", debugstr_w(current_path
));
14799 if(!GetCurrentDirectoryW(MAX_PATH
, current_path
))
14801 return current_path
;
14804 /* ?_Current_set@sys@tr2@std@@YA_NPB_W@Z */
14805 /* ?_Current_set@sys@tr2@std@@YA_NPEB_W@Z */
14806 MSVCP_bool __cdecl
tr2_sys__Current_set_wchar(WCHAR
const* path
)
14808 TRACE("(%s)\n", debugstr_w(path
));
14809 return SetCurrentDirectoryW(path
) != 0;
14812 /* ?_Make_dir@sys@tr2@std@@YAHPB_W@Z */
14813 /* ?_Make_dir@sys@tr2@std@@YAHPEB_W@Z */
14814 int __cdecl
tr2_sys__Make_dir_wchar(WCHAR
const* path
)
14816 TRACE("(%s)\n", debugstr_w(path
));
14818 if(!CreateDirectoryW(path
, NULL
)) {
14819 if(GetLastError() == ERROR_ALREADY_EXISTS
)
14828 /* ?_Remove_dir@sys@tr2@std@@YA_NPB_W@Z */
14829 /* ?_Remove_dir@sys@tr2@std@@YA_NPEB_W@Z */
14830 MSVCP_bool __cdecl
tr2_sys__Remove_dir_wchar(WCHAR
const* path
)
14832 TRACE("(%s)\n", debugstr_w(path
));
14833 return RemoveDirectoryW(path
) != 0;
14836 /* ?_Copy_file@sys@tr2@std@@YAHPB_W0_N@Z */
14837 /* ?_Copy_file@sys@tr2@std@@YAHPEB_W0_N@Z */
14838 int __cdecl
tr2_sys__Copy_file_wchar(WCHAR
const* source
, WCHAR
const* dest
, MSVCP_bool fail_if_exists
)
14840 TRACE("(%s %s %x)\n", debugstr_w(source
), debugstr_w(dest
), fail_if_exists
);
14842 if(CopyFileW(source
, dest
, fail_if_exists
))
14843 return ERROR_SUCCESS
;
14844 return GetLastError();
14847 /* ?_Rename@sys@tr2@std@@YAHPB_W0@Z */
14848 /* ?_Rename@sys@tr2@std@@YAHPEB_W0@Z */
14849 int __cdecl
tr2_sys__Rename_wchar(WCHAR
const* old_path
, WCHAR
const* new_path
)
14851 TRACE("(%s %s)\n", debugstr_w(old_path
), debugstr_w(new_path
));
14853 if(!old_path
|| !new_path
)
14854 return ERROR_INVALID_PARAMETER
;
14856 if(MoveFileExW(old_path
, new_path
, MOVEFILE_COPY_ALLOWED
))
14857 return ERROR_SUCCESS
;
14858 return GetLastError();
14861 /* ??1_Winit@std@@QAE@XZ */
14862 /* ??1_Winit@std@@QAE@XZ */
14863 DEFINE_THISCALL_WRAPPER(_Winit_dtor
, 4)
14864 void __thiscall
_Winit_dtor(void *this)
14866 TRACE("(%p)\n", this);
14868 _Winit__Init_cnt
--;
14869 if(!_Winit__Init_cnt
) {
14870 basic_ostream_wchar_flush(&wcout
.obj
);
14871 basic_ostream_wchar_flush(&wcerr
.obj
);
14872 basic_ostream_wchar_flush(&wclog
.obj
);
14876 /* ??4_Winit@std@@QAEAAV01@ABV01@@Z */
14877 /* ??4_Winit@std@@QEAAAEAV01@AEBV01@@Z */
14878 DEFINE_THISCALL_WRAPPER(_Winit_op_assign
, 8)
14879 void* __thiscall
_Winit_op_assign(void *this, void *rhs
)
14881 TRACE("(%p %p)\n", this, rhs
);
14885 void init_io(void *base
)
14888 init_iosb_rtti(base
);
14889 init_ios_base_rtti(base
);
14890 init_basic_ios_char_rtti(base
);
14891 init_basic_ios_wchar_rtti(base
);
14892 init_basic_ios_short_rtti(base
);
14893 init_basic_streambuf_char_rtti(base
);
14894 init_basic_streambuf_wchar_rtti(base
);
14895 init_basic_streambuf_short_rtti(base
);
14896 init_basic_filebuf_char_rtti(base
);
14897 init_basic_filebuf_wchar_rtti(base
);
14898 init_basic_filebuf_short_rtti(base
);
14899 init_basic_stringbuf_char_rtti(base
);
14900 init_basic_stringbuf_wchar_rtti(base
);
14901 init_basic_stringbuf_short_rtti(base
);
14902 init_basic_ostream_char_rtti(base
);
14903 init_basic_ostream_wchar_rtti(base
);
14904 init_basic_ostream_short_rtti(base
);
14905 init_basic_istream_char_rtti(base
);
14906 init_basic_istream_wchar_rtti(base
);
14907 init_basic_istream_short_rtti(base
);
14908 init_basic_iostream_char_rtti(base
);
14909 init_basic_iostream_wchar_rtti(base
);
14910 init_basic_iostream_short_rtti(base
);
14911 init_basic_ofstream_char_rtti(base
);
14912 init_basic_ofstream_wchar_rtti(base
);
14913 init_basic_ofstream_short_rtti(base
);
14914 init_basic_ifstream_char_rtti(base
);
14915 init_basic_ifstream_wchar_rtti(base
);
14916 init_basic_ifstream_short_rtti(base
);
14917 init_basic_fstream_char_rtti(base
);
14918 init_basic_fstream_wchar_rtti(base
);
14919 init_basic_fstream_short_rtti(base
);
14920 init_basic_ostringstream_char_rtti(base
);
14921 init_basic_ostringstream_wchar_rtti(base
);
14922 init_basic_ostringstream_short_rtti(base
);
14923 init_basic_istringstream_char_rtti(base
);
14924 init_basic_istringstream_wchar_rtti(base
);
14925 init_basic_istringstream_short_rtti(base
);
14926 init_basic_stringstream_char_rtti(base
);
14927 init_basic_stringstream_wchar_rtti(base
);
14928 init_basic_stringstream_short_rtti(base
);
14929 init_strstreambuf_rtti(base
);
14930 init_strstream_rtti(base
);
14931 init_ostrstream_rtti(base
);
14934 basic_filebuf_char_ctor_file(&filebuf_char_stdin
, stdin
);
14935 basic_istream_char_ctor(&cin
.obj
, &filebuf_char_stdin
.base
, FALSE
/*FIXME*/, TRUE
);
14937 basic_filebuf_short_ctor_file(&filebuf_short_stdin
, stdin
);
14938 basic_istream_short_ctor(&ucin
.obj
, &filebuf_short_stdin
.base
, FALSE
/*FIXME*/, TRUE
);
14940 basic_filebuf_wchar_ctor_file(&filebuf_wchar_stdin
, stdin
);
14941 basic_istream_wchar_ctor(&wcin
.obj
, &filebuf_wchar_stdin
.base
, FALSE
/*FIXME*/, TRUE
);
14943 basic_filebuf_char_ctor_file(&filebuf_char_stdout
, stdout
);
14944 basic_ostream_char_ctor(&cout
.obj
, &filebuf_char_stdout
.base
, FALSE
/*FIXME*/, TRUE
);
14946 basic_filebuf_short_ctor_file(&filebuf_short_stdout
, stdout
);
14947 basic_ostream_short_ctor(&ucout
.obj
, &filebuf_short_stdout
.base
, FALSE
/*FIXME*/, TRUE
);
14949 basic_filebuf_wchar_ctor_file(&filebuf_wchar_stdout
, stdout
);
14950 basic_ostream_wchar_ctor(&wcout
.obj
, &filebuf_wchar_stdout
.base
, FALSE
/*FIXME*/, TRUE
);
14952 basic_filebuf_char_ctor_file(&filebuf_char_stderr
, stderr
);
14953 basic_ostream_char_ctor(&cerr
.obj
, &filebuf_char_stderr
.base
, FALSE
/*FIXME*/, TRUE
);
14955 basic_filebuf_short_ctor_file(&filebuf_short_stderr
, stderr
);
14956 basic_ostream_short_ctor(&ucerr
.obj
, &filebuf_short_stderr
.base
, FALSE
/*FIXME*/, TRUE
);
14958 basic_filebuf_wchar_ctor_file(&filebuf_wchar_stderr
, stderr
);
14959 basic_ostream_wchar_ctor(&wcerr
.obj
, &filebuf_wchar_stderr
.base
, FALSE
/*FIXME*/, TRUE
);
14961 basic_filebuf_char_ctor_file(&filebuf_char_log
, stderr
);
14962 basic_ostream_char_ctor(&clog
.obj
, &filebuf_char_log
.base
, FALSE
/*FIXME*/, TRUE
);
14964 basic_filebuf_short_ctor_file(&filebuf_short_log
, stderr
);
14965 basic_ostream_short_ctor(&uclog
.obj
, &filebuf_short_log
.base
, FALSE
/*FIXME*/, TRUE
);
14967 basic_filebuf_wchar_ctor_file(&filebuf_wchar_log
, stderr
);
14968 basic_ostream_wchar_ctor(&wclog
.obj
, &filebuf_wchar_log
.base
, FALSE
/*FIXME*/, TRUE
);
14973 basic_istream_char_vbase_dtor(&cin
.obj
);
14974 basic_filebuf_char_dtor(&filebuf_char_stdin
);
14976 basic_istream_wchar_vbase_dtor(&ucin
.obj
);
14977 basic_filebuf_wchar_dtor(&filebuf_short_stdin
);
14979 basic_istream_wchar_vbase_dtor(&wcin
.obj
);
14980 basic_filebuf_wchar_dtor(&filebuf_wchar_stdin
);
14982 basic_ostream_char_vbase_dtor(&cout
.obj
);
14983 basic_filebuf_char_dtor(&filebuf_char_stdout
);
14985 basic_ostream_wchar_vbase_dtor(&ucout
.obj
);
14986 basic_filebuf_wchar_dtor(&filebuf_short_stdout
);
14988 basic_ostream_wchar_vbase_dtor(&wcout
.obj
);
14989 basic_filebuf_wchar_dtor(&filebuf_wchar_stdout
);
14991 basic_ostream_char_vbase_dtor(&cerr
.obj
);
14992 basic_filebuf_char_dtor(&filebuf_char_stderr
);
14994 basic_ostream_wchar_vbase_dtor(&ucerr
.obj
);
14995 basic_filebuf_wchar_dtor(&filebuf_short_stderr
);
14997 basic_ostream_wchar_vbase_dtor(&wcerr
.obj
);
14998 basic_filebuf_wchar_dtor(&filebuf_wchar_stderr
);
15000 basic_ostream_char_vbase_dtor(&clog
.obj
);
15001 basic_filebuf_char_dtor(&filebuf_char_log
);
15003 basic_ostream_wchar_vbase_dtor(&uclog
.obj
);
15004 basic_filebuf_wchar_dtor(&filebuf_short_log
);
15006 basic_ostream_wchar_vbase_dtor(&wclog
.obj
);
15007 basic_filebuf_wchar_dtor(&filebuf_wchar_log
);