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
;
81 basic_streambuf_wchar base
;
86 basic_string_char
*conv
;
94 } basic_filebuf_wchar
;
97 STRINGBUF_allocated
= 1,
98 STRINGBUF_no_write
= 2,
99 STRINGBUF_no_read
= 4,
100 STRINGBUF_append
= 8,
101 STRINGBUF_at_end
= 16
102 } basic_stringbuf_state
;
105 basic_streambuf_char base
;
108 char allocator
; /* empty struct */
109 } basic_stringbuf_char
;
112 basic_streambuf_wchar base
;
115 char allocator
; /* empty struct */
116 } basic_stringbuf_wchar
;
120 basic_streambuf_char
*strbuf
;
121 struct _basic_ostream_char
*stream
;
127 basic_streambuf_wchar
*strbuf
;
128 struct _basic_ostream_wchar
*stream
;
132 typedef struct _basic_ostream_char
{
134 /* virtual inheritance
135 * basic_ios_char basic_ios;
137 } basic_ostream_char
;
139 typedef struct _basic_ostream_wchar
{
141 /* virtual inheritance
142 * basic_ios_wchar basic_ios;
144 } basic_ostream_wchar
;
149 /* virtual inheritance
150 * basic_ios_char basic_ios;
152 } basic_istream_char
;
157 /* virtual inheritance
158 * basic_ios_wchar basic_ios;
160 } basic_istream_wchar
;
163 basic_istream_char base1
;
164 basic_ostream_char base2
;
165 /* virtual inheritance
166 * basic_ios_char basic_ios;
168 } basic_iostream_char
;
171 basic_istream_wchar base1
;
172 basic_ostream_wchar base2
;
173 /* virtual inheritance
174 * basic_ios_wchar basic_ios;
176 } basic_iostream_wchar
;
179 basic_ostream_char base
;
180 basic_filebuf_char filebuf
;
181 /* virtual inheritance
182 * basic_ios_char basic_ios;
184 } basic_ofstream_char
;
187 basic_ostream_wchar base
;
188 basic_filebuf_wchar filebuf
;
189 /* virtual inheritance
190 * basic_ios_wchar basic_ios;
192 } basic_ofstream_wchar
;
195 basic_istream_char base
;
196 basic_filebuf_char filebuf
;
197 /* virtual inheritance
198 * basic_ios_char basic_ios;
200 } basic_ifstream_char
;
203 basic_istream_wchar base
;
204 basic_filebuf_wchar filebuf
;
205 /* virtual inheritance
206 * basic_ios_wchar basic_ios;
208 } basic_ifstream_wchar
;
211 basic_iostream_char base
;
212 basic_filebuf_char filebuf
;
213 /* virtual inheritance
214 * basic_ios_char basic_ios;
216 } basic_fstream_char
;
219 basic_iostream_wchar base
;
220 basic_filebuf_wchar filebuf
;
221 /* virtual inheritance
222 * basic_ios_char basic_ios;
224 } basic_fstream_wchar
;
227 basic_ostream_char base
;
228 basic_stringbuf_char strbuf
;
229 /* virtual inheritance
230 * basic_ios_char basic_ios;
232 } basic_ostringstream_char
;
235 basic_ostream_wchar base
;
236 basic_stringbuf_wchar strbuf
;
237 /* virtual inheritance
238 * basic_ios_wchar basic_ios;
240 } basic_ostringstream_wchar
;
243 basic_istream_char base
;
244 basic_stringbuf_char strbuf
;
245 /* virtual inheritance
246 * basic_ios_char basic_ios;
248 } basic_istringstream_char
;
251 basic_istream_wchar base
;
252 basic_stringbuf_wchar strbuf
;
253 /* virtual inheritance
254 * basic_ios_wchar basic_ios;
256 } basic_istringstream_wchar
;
259 basic_iostream_char base
;
260 basic_stringbuf_char strbuf
;
261 /* virtual inheritance
262 * basic_ios_char basic_ios;
264 } basic_stringstream_char
;
267 basic_iostream_wchar base
;
268 basic_stringbuf_wchar strbuf
;
269 /* virtual inheritance
270 * basic_ios_wchar basic_ios;
272 } basic_stringstream_wchar
;
275 STRSTATE_Allocated
= 1,
276 STRSTATE_Constant
= 2,
277 STRSTATE_Dynamic
= 4,
279 } strstreambuf__Strstate
;
282 basic_streambuf_char base
;
287 void* (__cdecl
*palloc
)(MSVCP_size_t
);
288 void (__cdecl
*pfree
)(void*);
292 basic_ostream_char base
;
294 /* virtual inheritance
295 * basic_ios_char basic_ios;
300 basic_istream_char base
;
302 /* virtual inheritance
303 * basic_ios_char basic_ios;
308 basic_iostream_char base
;
310 /* virtual inheritance
311 * basic_ios_char basic_ios;
315 #if _MSVCP_VER >= 100
316 #define VBTABLE_ALIGN 8
318 #define VBTABLE_ALIGN 4
321 extern const vtable_ptr MSVCP_iosb_vtable
;
323 /* ??_7ios_base@std@@6B@ */
324 extern const vtable_ptr MSVCP_ios_base_vtable
;
326 /* ??_7?$basic_ios@DU?$char_traits@D@std@@@std@@6B@ */
327 extern const vtable_ptr MSVCP_basic_ios_char_vtable
;
329 /* ??_7?$basic_ios@_WU?$char_traits@_W@std@@@std@@6B@ */
330 extern const vtable_ptr MSVCP_basic_ios_wchar_vtable
;
332 /* ??_7?$basic_ios@GU?$char_traits@G@std@@@std@@6B@ */
333 extern const vtable_ptr MSVCP_basic_ios_short_vtable
;
335 /* ??_7?$basic_streambuf@DU?$char_traits@D@std@@@std@@6B@ */
336 extern const vtable_ptr MSVCP_basic_streambuf_char_vtable
;
338 /* ??_7?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@6B@ */
339 extern const vtable_ptr MSVCP_basic_streambuf_wchar_vtable
;
341 /* ??_7?$basic_streambuf@GU?$char_traits@G@std@@@std@@6B@ */
342 extern const vtable_ptr MSVCP_basic_streambuf_short_vtable
;
344 /* ??_7?$basic_filebuf@DU?$char_traits@D@std@@@std@@6B@ */
345 extern const vtable_ptr MSVCP_basic_filebuf_char_vtable
;
347 /* ??_7?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@6B@ */
348 extern const vtable_ptr MSVCP_basic_filebuf_wchar_vtable
;
350 /* ??_7?$basic_filebuf@GU?$char_traits@G@std@@@std@@6B@ */
351 extern const vtable_ptr MSVCP_basic_filebuf_short_vtable
;
353 /* ??_7?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
354 extern const vtable_ptr MSVCP_basic_stringbuf_char_vtable
;
356 /* ??_7?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
357 extern const vtable_ptr MSVCP_basic_stringbuf_wchar_vtable
;
359 /* ??_7?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
360 extern const vtable_ptr MSVCP_basic_stringbuf_short_vtable
;
362 /* ??_8?$basic_ostream@DU?$char_traits@D@std@@@std@@7B@ */
363 const int basic_ostream_char_vbtable
[] = {0, ALIGNED_SIZE(sizeof(basic_ostream_char
), VBTABLE_ALIGN
)};
364 /* ??_7?$basic_ostream@DU?$char_traits@D@std@@@std@@6B@ */
365 extern const vtable_ptr MSVCP_basic_ostream_char_vtable
;
367 /* ??_8?$basic_ostream@_WU?$char_traits@_W@std@@@std@@7B@ */
368 const int basic_ostream_wchar_vbtable
[] = {0, ALIGNED_SIZE(sizeof(basic_ostream_wchar
), VBTABLE_ALIGN
)};
369 /* ??_7?$basic_ostream@_WU?$char_traits@_W@std@@@std@@6B@ */
370 extern const vtable_ptr MSVCP_basic_ostream_wchar_vtable
;
372 /* ??_8?$basic_ostream@GU?$char_traits@G@std@@@std@@7B@ */
373 const int basic_ostream_short_vbtable
[] = {0, ALIGNED_SIZE(sizeof(basic_ostream_wchar
), VBTABLE_ALIGN
)};
374 /* ??_7?$basic_ostream@GU?$char_traits@G@std@@@std@@6B@ */
375 extern const vtable_ptr MSVCP_basic_ostream_short_vtable
;
377 /* ??_8?$basic_istream@DU?$char_traits@D@std@@@std@@7B@ */
378 const int basic_istream_char_vbtable
[] = {0, ALIGNED_SIZE(sizeof(basic_istream_char
), VBTABLE_ALIGN
)};
379 /* ??_7?$basic_istream@DU?$char_traits@D@std@@@std@@6B@ */
380 extern const vtable_ptr MSVCP_basic_istream_char_vtable
;
382 /* ??_8?$basic_istream@_WU?$char_traits@_W@std@@@std@@7B@ */
383 const int basic_istream_wchar_vbtable
[] = {0, ALIGNED_SIZE(sizeof(basic_istream_wchar
), VBTABLE_ALIGN
)};
384 /* ??_7?$basic_istream@_WU?$char_traits@_W@std@@@std@@6B@ */
385 extern const vtable_ptr MSVCP_basic_istream_wchar_vtable
;
387 /* ??_8?$basic_istream@GU?$char_traits@G@std@@@std@@7B@ */
388 const int basic_istream_short_vbtable
[] = {0, ALIGNED_SIZE(sizeof(basic_istream_wchar
), VBTABLE_ALIGN
)};
389 /* ??_7?$basic_istream@GU?$char_traits@G@std@@@std@@6B@ */
390 extern const vtable_ptr MSVCP_basic_istream_short_vtable
;
392 /* ??_8?$basic_iostream@DU?$char_traits@D@std@@@std@@7B?$basic_istream@DU?$char_traits@D@std@@@1@@ */
393 const int basic_iostream_char_vbtable1
[] = {0, ALIGNED_SIZE(sizeof(basic_iostream_char
), VBTABLE_ALIGN
)};
394 /* ??_8?$basic_iostream@DU?$char_traits@D@std@@@std@@7B?$basic_ostream@DU?$char_traits@D@std@@@1@@ */
395 const int basic_iostream_char_vbtable2
[] = {0, ALIGNED_SIZE(sizeof(basic_iostream_char
), VBTABLE_ALIGN
)-FIELD_OFFSET(basic_iostream_char
, base2
)};
396 /* ??_7?$basic_iostream@DU?$char_traits@D@std@@@std@@6B@ */
397 extern const vtable_ptr MSVCP_basic_iostream_char_vtable
;
399 /* ??_8?$basic_iostream@_WU?$char_traits@_W@std@@@std@@7B?$basic_istream@_WU?$char_traits@_W@std@@@1@@ */
400 /* ??_8?$basic_iostream@GU?$char_traits@G@std@@@std@@7B?$basic_istream@GU?$char_traits@G@std@@@1@@ */
401 const int basic_iostream_wchar_vbtable1
[] = {0, ALIGNED_SIZE(sizeof(basic_iostream_wchar
), VBTABLE_ALIGN
)};
402 /* ??_8?$basic_iostream@_WU?$char_traits@_W@std@@@std@@7B?$basic_ostream@_WU?$char_traits@_W@std@@@1@@ */
403 /* ??_8?$basic_iostream@GU?$char_traits@G@std@@@std@@7B?$basic_ostream@GU?$char_traits@G@std@@@1@@ */
404 const int basic_iostream_wchar_vbtable2
[] = {0, ALIGNED_SIZE(sizeof(basic_iostream_wchar
), VBTABLE_ALIGN
)-FIELD_OFFSET(basic_iostream_wchar
, base2
)};
405 /* ??_7?$basic_iostream@_WU?$char_traits@_W@std@@@std@@6B@ */
406 extern const vtable_ptr MSVCP_basic_iostream_wchar_vtable
;
407 /* ??_7?$basic_iostream@GU?$char_traits@G@std@@@std@@6B@ */
408 extern const vtable_ptr MSVCP_basic_iostream_short_vtable
;
410 /* ??_8?$basic_ofstream@DU?$char_traits@D@std@@@std@@7B@ */
411 const int basic_ofstream_char_vbtable
[] = {0, sizeof(basic_ofstream_char
)};
412 /* ??_7?$basic_ofstream@DU?$char_traits@D@std@@@std@@6B@ */
413 extern const vtable_ptr MSVCP_basic_ofstream_char_vtable
;
415 /* ??_8?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@7B@ */
416 const int basic_ofstream_wchar_vbtable
[] = {0, sizeof(basic_ofstream_wchar
)};
417 /* ??_7?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@6B@ */
418 extern const vtable_ptr MSVCP_basic_ofstream_wchar_vtable
;
420 /* ??_8?$basic_ofstream@GU?$char_traits@G@std@@@std@@7B@ */
421 const int basic_ofstream_short_vbtable
[] = {0, sizeof(basic_ofstream_wchar
)};
422 /* ??_7?$basic_ofstream@GU?$char_traits@G@std@@@std@@6B@ */
423 extern const vtable_ptr MSVCP_basic_ofstream_short_vtable
;
425 /* ??_8?$basic_ifstream@DU?$char_traits@D@std@@@std@@7B@ */
426 const int basic_ifstream_char_vbtable
[] = {0, sizeof(basic_ifstream_char
)};
427 /* ??_7?$basic_ifstream@DU?$char_traits@D@std@@@std@@6B@ */
428 extern const vtable_ptr MSVCP_basic_ifstream_char_vtable
;
430 /* ??_8?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@7B@ */
431 const int basic_ifstream_wchar_vbtable
[] = {0, sizeof(basic_ifstream_wchar
)};
432 /* ??_7?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@6B@ */
433 extern const vtable_ptr MSVCP_basic_ifstream_wchar_vtable
;
435 /* ??_8?$basic_ifstream@GU?$char_traits@G@std@@@std@@7B@ */
436 const int basic_ifstream_short_vbtable
[] = {0, sizeof(basic_ifstream_wchar
)};
437 /* ??_7?$basic_ifstream@GU?$char_traits@G@std@@@std@@6B@ */
438 extern const vtable_ptr MSVCP_basic_ifstream_short_vtable
;
440 /* ??_8?$basic_fstream@DU?$char_traits@D@std@@@std@@7B?$basic_istream@DU?$char_traits@D@std@@@1@@ */
441 const int basic_fstream_char_vbtable1
[] = {0, sizeof(basic_fstream_char
)};
442 /* ??_8?$basic_fstream@DU?$char_traits@D@std@@@std@@7B?$basic_ostream@DU?$char_traits@D@std@@@1@@ */
443 const int basic_fstream_char_vbtable2
[] = {0, sizeof(basic_fstream_char
)-FIELD_OFFSET(basic_fstream_char
, base
.base2
)};
444 /* ??_7?$basic_fstream@DU?$char_traits@D@std@@@std@@6B@ */
445 extern const vtable_ptr MSVCP_basic_fstream_char_vtable
;
447 /* ??_8?$basic_fstream@_WU?$char_traits@_W@std@@@std@@7B?$basic_istream@_WU?$char_traits@_W@std@@@1@@ */
448 /* ??_8?$basic_fstream@GU?$char_traits@G@std@@@std@@7B?$basic_istream@GU?$char_traits@G@std@@@1@@ */
449 const int basic_fstream_wchar_vbtable1
[] = {0, sizeof(basic_fstream_wchar
)};
450 /* ??_8?$basic_fstream@_WU?$char_traits@_W@std@@@std@@7B?$basic_ostream@_WU?$char_traits@_W@std@@@1@@ */
451 /* ??_8?$basic_fstream@GU?$char_traits@G@std@@@std@@7B?$basic_ostream@GU?$char_traits@G@std@@@1@@ */
452 const int basic_fstream_wchar_vbtable2
[] = {0, sizeof(basic_fstream_wchar
)-FIELD_OFFSET(basic_fstream_wchar
, base
.base2
)};
453 /* ??_7?$basic_fstream@_WU?$char_traits@_W@std@@@std@@6B@ */
454 extern const vtable_ptr MSVCP_basic_fstream_wchar_vtable
;
455 /* ??_7?$basic_fstream@GU?$char_traits@G@std@@@std@@6B@ */
456 extern const vtable_ptr MSVCP_basic_fstream_short_vtable
;
458 /* ??_8?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B@ */
459 const int basic_ostringstream_char_vbtable
[] = {0, sizeof(basic_ostringstream_char
)};
460 /* ??_7?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
461 extern const vtable_ptr MSVCP_basic_ostringstream_char_vtable
;
463 /* ??_8?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B@ */
464 const int basic_ostringstream_wchar_vbtable
[] = {0, sizeof(basic_ostringstream_wchar
)};
465 /* ??_7?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
466 extern const vtable_ptr MSVCP_basic_ostringstream_wchar_vtable
;
468 /* ??_8?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B@ */
469 const int basic_ostringstream_short_vbtable
[] = {0, sizeof(basic_ostringstream_wchar
)};
470 /* ??_7?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
471 extern const vtable_ptr MSVCP_basic_ostringstream_short_vtable
;
473 /* ??_8?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B@ */
474 const int basic_istringstream_char_vbtable
[] = {0, sizeof(basic_istringstream_char
)};
475 /* ??_7?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
476 extern const vtable_ptr MSVCP_basic_istringstream_char_vtable
;
478 /* ??_8?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B@ */
479 const int basic_istringstream_wchar_vbtable
[] = {0, sizeof(basic_istringstream_wchar
)};
480 /* ??_7?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
481 extern const vtable_ptr MSVCP_basic_istringstream_wchar_vtable
;
483 /* ??_8?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B@ */
484 const int basic_istringstream_short_vbtable
[] = {0, sizeof(basic_istringstream_wchar
)};
485 /* ??_7?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
486 extern const vtable_ptr MSVCP_basic_istringstream_short_vtable
;
488 /* ??_8?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B?$basic_istream@DU?$char_traits@D@std@@@1@@ */
489 const int basic_stringstream_char_vbtable1
[] = {0, sizeof(basic_stringstream_char
)};
490 /* ??_8?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B?$basic_ostream@DU?$char_traits@D@std@@@1@@ */
491 const int basic_stringstream_char_vbtable2
[] = {0, sizeof(basic_stringstream_char
)-FIELD_OFFSET(basic_stringstream_char
, base
.base2
)};
492 /* ??_7?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
493 extern const vtable_ptr MSVCP_basic_stringstream_char_vtable
;
495 /* ??_8?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B?$basic_istream@_WU?$char_traits@_W@std@@@1@@ */
496 const int basic_stringstream_wchar_vbtable1
[] = {0, sizeof(basic_stringstream_wchar
)};
497 /* ??_8?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B?$basic_ostream@_WU?$char_traits@_W@std@@@1@@ */
498 const int basic_stringstream_wchar_vbtable2
[] = {0, sizeof(basic_stringstream_wchar
)-FIELD_OFFSET(basic_stringstream_wchar
, base
.base2
)};
499 /* ??_7?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
500 extern const vtable_ptr MSVCP_basic_stringstream_wchar_vtable
;
502 /* ??_8?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B?$basic_istream@GU?$char_traits@G@std@@@1@@ */
503 const int basic_stringstream_short_vbtable1
[] = {0, sizeof(basic_stringstream_wchar
)};
504 /* ??_8?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B?$basic_ostream@GU?$char_traits@G@std@@@1@@ */
505 const int basic_stringstream_short_vbtable2
[] = {0, sizeof(basic_stringstream_wchar
)-FIELD_OFFSET(basic_stringstream_wchar
, base
.base2
)};
506 /* ??_7?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
507 extern const vtable_ptr MSVCP_basic_stringstream_short_vtable
;
509 /* ??_7strstreambuf@std@@6B */
510 extern const vtable_ptr MSVCP_strstreambuf_vtable
;
512 static const int ostrstream_vbtable
[] = {0, sizeof(ostrstream
)};
513 extern const vtable_ptr MSVCP_ostrstream_vtable
;
515 static const int istrstream_vbtable
[] = {0, sizeof(istrstream
)};
517 static const int strstream_vbtable1
[] = {0, sizeof(strstream
)};
518 static const int strstream_vbtable2
[] = {0, sizeof(strstream
)-FIELD_OFFSET(strstream
, base
.base2
)};
519 extern const vtable_ptr MSVCP_strstream_vtable
;
521 DEFINE_RTTI_DATA0(iosb
, 0, ".?AV?$_Iosb@H@std@@")
522 DEFINE_RTTI_DATA1(ios_base
, 0, &iosb_rtti_base_descriptor
, ".?AV?$_Iosb@H@std@@")
523 DEFINE_RTTI_DATA2(basic_ios_char
, 0, &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
524 ".?AV?$basic_ios@DU?$char_traits@D@std@@@std@@")
525 DEFINE_RTTI_DATA2(basic_ios_wchar
, 0, &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
526 ".?AV?$basic_ios@_WU?$char_traits@_W@std@@@std@@")
527 DEFINE_RTTI_DATA2(basic_ios_short
, 0, &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
528 ".?AV?$basic_ios@GU?$char_traits@G@std@@@std@@")
529 DEFINE_RTTI_DATA0(basic_streambuf_char
, 0,
530 ".?AV?$basic_streambuf@DU?$char_traits@D@std@@@std@@")
531 DEFINE_RTTI_DATA0(basic_streambuf_wchar
, 0,
532 ".?AV?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@")
533 DEFINE_RTTI_DATA0(basic_streambuf_short
, 0,
534 ".?AV?$basic_streambuf@GU?$char_traits@G@std@@@std@@")
535 DEFINE_RTTI_DATA1(basic_filebuf_char
, 0, &basic_streambuf_char_rtti_base_descriptor
,
536 ".?AV?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@")
537 DEFINE_RTTI_DATA1(basic_filebuf_wchar
, 0, &basic_streambuf_wchar_rtti_base_descriptor
,
538 ".?AV?$basic_filebuf@GU?$char_traits@G@std@@@std@@")
539 DEFINE_RTTI_DATA1(basic_filebuf_short
, 0, &basic_streambuf_short_rtti_base_descriptor
,
540 ".?AV?$basic_filebuf@DU?$char_traits@D@std@@@std@@")
541 DEFINE_RTTI_DATA1(basic_stringbuf_char
, 0, &basic_streambuf_char_rtti_base_descriptor
,
542 ".?AV?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@")
543 DEFINE_RTTI_DATA1(basic_stringbuf_wchar
, 0, &basic_streambuf_wchar_rtti_base_descriptor
,
544 ".?AV?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@")
545 DEFINE_RTTI_DATA1(basic_stringbuf_short
, 0, &basic_streambuf_short_rtti_base_descriptor
,
546 ".?AV?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@")
547 DEFINE_RTTI_DATA3(basic_ostream_char
, sizeof(basic_ostream_char
), &basic_ios_char_rtti_base_descriptor
,
548 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
549 ".?AV?$basic_ostream@DU?$char_traits@D@std@@@std@@")
550 DEFINE_RTTI_DATA3(basic_ostream_wchar
, sizeof(basic_ostream_wchar
), &basic_ios_wchar_rtti_base_descriptor
,
551 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
552 ".?AV?$basic_ostream@_WU?$char_traits@_W@std@@@std@@")
553 DEFINE_RTTI_DATA3(basic_ostream_short
, sizeof(basic_ostream_wchar
), &basic_ios_short_rtti_base_descriptor
,
554 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
555 ".?AV?$basic_ostream@GU?$char_traits@G@std@@@std@@")
556 DEFINE_RTTI_DATA3(basic_istream_char
, sizeof(basic_istream_char
), &basic_ios_char_rtti_base_descriptor
,
557 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
558 ".?AV?$basic_istream@DU?$char_traits@D@std@@@std@@")
559 DEFINE_RTTI_DATA3(basic_istream_wchar
, sizeof(basic_istream_wchar
), &basic_ios_wchar_rtti_base_descriptor
,
560 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
561 ".?AV?$basic_istream@_WU?$char_traits@_W@std@@@std@@")
562 DEFINE_RTTI_DATA3(basic_istream_short
, sizeof(basic_istream_wchar
), &basic_ios_short_rtti_base_descriptor
,
563 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
564 ".?AV?$basic_istream@GU?$char_traits@G@std@@@std@@")
565 DEFINE_RTTI_DATA8(basic_iostream_char
, sizeof(basic_iostream_char
),
566 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
567 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
568 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
569 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
570 ".?AV?$basic_iostream@DU?$char_traits@D@std@@@std@@")
571 DEFINE_RTTI_DATA8(basic_iostream_wchar
, sizeof(basic_iostream_wchar
),
572 &basic_istream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
573 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
574 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
575 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
576 ".?AV?$basic_iostream@_WU?$char_traits@_W@std@@@std@@")
577 DEFINE_RTTI_DATA8(basic_iostream_short
, sizeof(basic_iostream_wchar
),
578 &basic_istream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
579 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
580 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
581 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
582 ".?AV?$basic_iostream@GU?$char_traits@G@std@@@std@@")
583 DEFINE_RTTI_DATA4(basic_ofstream_char
, sizeof(basic_ofstream_char
),
584 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
585 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
586 ".?AV?$basic_ofstream@DU?$char_traits@D@std@@@std@@")
587 DEFINE_RTTI_DATA4(basic_ofstream_wchar
, sizeof(basic_ofstream_wchar
),
588 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
589 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
590 ".?AV?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@")
591 DEFINE_RTTI_DATA4(basic_ofstream_short
, sizeof(basic_ofstream_wchar
),
592 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
593 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
594 ".?AV?$basic_ofstream@GU?$char_traits@G@std@@@std@@")
595 DEFINE_RTTI_DATA4(basic_ifstream_char
, sizeof(basic_ifstream_char
),
596 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
597 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
598 ".?AV?$basic_ifstream@DU?$char_traits@D@std@@@std@@")
599 DEFINE_RTTI_DATA4(basic_ifstream_wchar
, sizeof(basic_ifstream_wchar
),
600 &basic_istream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
601 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
602 ".?AV?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@")
603 DEFINE_RTTI_DATA4(basic_ifstream_short
, sizeof(basic_ifstream_wchar
),
604 &basic_istream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
605 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
606 ".?AV?$basic_ifstream@GU?$char_traits@G@std@@@std@@")
607 DEFINE_RTTI_DATA8(basic_fstream_char
, sizeof(basic_fstream_char
),
608 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
609 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
610 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
611 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
612 ".?AV?$basic_fstream@DU?$char_traits@D@std@@@std@@")
613 DEFINE_RTTI_DATA8(basic_fstream_wchar
, sizeof(basic_fstream_wchar
),
614 &basic_istream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
615 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
616 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
617 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
618 ".?AV?$basic_fstream@_WU?$char_traits@_W@std@@@std@@")
619 DEFINE_RTTI_DATA8(basic_fstream_short
, sizeof(basic_fstream_wchar
),
620 &basic_istream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
621 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
622 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
623 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
624 ".?AV?$basic_fstream@GU?$char_traits@G@std@@@std@@")
625 DEFINE_RTTI_DATA4(basic_ostringstream_char
, sizeof(basic_ostringstream_char
),
626 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
627 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
628 ".?AV?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@")
629 DEFINE_RTTI_DATA4(basic_ostringstream_wchar
, sizeof(basic_ostringstream_wchar
),
630 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
631 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
632 ".?AV?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@")
633 DEFINE_RTTI_DATA4(basic_ostringstream_short
, sizeof(basic_ostringstream_wchar
),
634 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
635 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
636 ".?AV?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@")
637 DEFINE_RTTI_DATA4(basic_istringstream_char
, sizeof(basic_istringstream_char
),
638 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
639 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
640 ".?AV?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@")
641 DEFINE_RTTI_DATA4(basic_istringstream_wchar
, sizeof(basic_istringstream_wchar
),
642 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
643 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
644 ".?AV?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@")
645 DEFINE_RTTI_DATA4(basic_istringstream_short
, sizeof(basic_istringstream_wchar
),
646 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
647 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
648 ".?AV?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@")
649 DEFINE_RTTI_DATA8(basic_stringstream_char
, sizeof(basic_stringstream_char
),
650 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
651 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
652 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
653 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
654 ".?AV?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@")
655 DEFINE_RTTI_DATA8(basic_stringstream_wchar
, sizeof(basic_stringstream_wchar
),
656 &basic_istream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
657 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
658 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
659 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
660 ".?AV?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@")
661 DEFINE_RTTI_DATA8(basic_stringstream_short
, sizeof(basic_stringstream_wchar
),
662 &basic_istream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
663 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
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_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@")
667 DEFINE_RTTI_DATA1(strstreambuf
, sizeof(strstreambuf
),
668 &basic_streambuf_char_rtti_base_descriptor
, ".?AVstrstreambuf@std@@")
669 DEFINE_RTTI_DATA4(ostrstream
, sizeof(ostrstream
),
670 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
671 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
672 "?AVostrstream@std@@")
673 DEFINE_RTTI_DATA8(strstream
, sizeof(strstream
),
674 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
675 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
676 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
677 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
678 "?AVstrstream@std@@")
681 void __asm_dummy_vtables(void) {
684 VTABLE_ADD_FUNC(iosb_vector_dtor
));
685 __ASM_VTABLE(ios_base
,
686 VTABLE_ADD_FUNC(ios_base_vector_dtor
));
687 __ASM_VTABLE(basic_ios_char
,
688 VTABLE_ADD_FUNC(basic_ios_char_vector_dtor
));
689 __ASM_VTABLE(basic_ios_wchar
,
690 VTABLE_ADD_FUNC(basic_ios_wchar_vector_dtor
));
691 __ASM_VTABLE(basic_ios_short
,
692 VTABLE_ADD_FUNC(basic_ios_wchar_vector_dtor
));
693 __ASM_VTABLE(basic_streambuf_char
,
694 VTABLE_ADD_FUNC(basic_streambuf_char_vector_dtor
)
695 #if _MSVCP_VER >= 100
696 VTABLE_ADD_FUNC(basic_streambuf_char__Lock
)
697 VTABLE_ADD_FUNC(basic_streambuf_char__Unlock
)
699 VTABLE_ADD_FUNC(basic_streambuf_char_overflow
)
700 VTABLE_ADD_FUNC(basic_streambuf_char_pbackfail
)
701 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc
)
702 VTABLE_ADD_FUNC(basic_streambuf_char_underflow
)
703 VTABLE_ADD_FUNC(basic_streambuf_char_uflow
)
704 VTABLE_ADD_FUNC(basic_streambuf_char_xsgetn
)
705 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
706 VTABLE_ADD_FUNC(basic_streambuf_char__Xsgetn_s
)
708 VTABLE_ADD_FUNC(basic_streambuf_char_xsputn
)
709 VTABLE_ADD_FUNC(basic_streambuf_char_seekoff
)
710 VTABLE_ADD_FUNC(basic_streambuf_char_seekpos
)
711 VTABLE_ADD_FUNC(basic_streambuf_char_setbuf
)
712 VTABLE_ADD_FUNC(basic_streambuf_char_sync
)
713 VTABLE_ADD_FUNC(basic_streambuf_char_imbue
));
714 __ASM_VTABLE(basic_streambuf_wchar
,
715 VTABLE_ADD_FUNC(basic_streambuf_wchar_vector_dtor
)
716 #if _MSVCP_VER >= 100
717 VTABLE_ADD_FUNC(basic_streambuf_wchar__Lock
)
718 VTABLE_ADD_FUNC(basic_streambuf_wchar__Unlock
)
720 VTABLE_ADD_FUNC(basic_streambuf_wchar_overflow
)
721 VTABLE_ADD_FUNC(basic_streambuf_wchar_pbackfail
)
722 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
723 VTABLE_ADD_FUNC(basic_streambuf_wchar_underflow
)
724 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow
)
725 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
726 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
727 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
729 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
730 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekoff
)
731 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekpos
)
732 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf
)
733 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync
)
734 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
735 __ASM_VTABLE(basic_streambuf_short
,
736 VTABLE_ADD_FUNC(basic_streambuf_wchar_vector_dtor
)
737 #if _MSVCP_VER >= 100
738 VTABLE_ADD_FUNC(basic_streambuf_wchar__Lock
)
739 VTABLE_ADD_FUNC(basic_streambuf_wchar__Unlock
)
741 VTABLE_ADD_FUNC(basic_streambuf_wchar_overflow
)
742 VTABLE_ADD_FUNC(basic_streambuf_wchar_pbackfail
)
743 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
744 VTABLE_ADD_FUNC(basic_streambuf_wchar_underflow
)
745 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow
)
746 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
747 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
748 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
750 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
751 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekoff
)
752 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekpos
)
753 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf
)
754 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync
)
755 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
756 __ASM_VTABLE(basic_filebuf_char
,
757 VTABLE_ADD_FUNC(basic_filebuf_char_vector_dtor
)
758 #if _MSVCP_VER >= 100
759 VTABLE_ADD_FUNC(basic_streambuf_char__Lock
)
760 VTABLE_ADD_FUNC(basic_streambuf_char__Unlock
)
762 VTABLE_ADD_FUNC(basic_filebuf_char_overflow
)
763 VTABLE_ADD_FUNC(basic_filebuf_char_pbackfail
)
764 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc
)
765 VTABLE_ADD_FUNC(basic_filebuf_char_underflow
)
766 VTABLE_ADD_FUNC(basic_filebuf_char_uflow
)
767 VTABLE_ADD_FUNC(basic_streambuf_char_xsgetn
)
768 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
769 VTABLE_ADD_FUNC(basic_streambuf_char__Xsgetn_s
)
771 VTABLE_ADD_FUNC(basic_streambuf_char_xsputn
)
772 VTABLE_ADD_FUNC(basic_filebuf_char_seekoff
)
773 VTABLE_ADD_FUNC(basic_filebuf_char_seekpos
)
774 VTABLE_ADD_FUNC(basic_filebuf_char_setbuf
)
775 VTABLE_ADD_FUNC(basic_filebuf_char_sync
)
776 VTABLE_ADD_FUNC(basic_filebuf_char_imbue
));
777 __ASM_VTABLE(basic_filebuf_wchar
,
778 VTABLE_ADD_FUNC(basic_filebuf_wchar_vector_dtor
)
779 #if _MSVCP_VER >= 100
780 VTABLE_ADD_FUNC(basic_streambuf_wchar__Lock
)
781 VTABLE_ADD_FUNC(basic_streambuf_wchar__Unlock
)
783 VTABLE_ADD_FUNC(basic_filebuf_wchar_overflow
)
784 VTABLE_ADD_FUNC(basic_filebuf_wchar_pbackfail
)
785 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
786 VTABLE_ADD_FUNC(basic_filebuf_wchar_underflow
)
787 VTABLE_ADD_FUNC(basic_filebuf_wchar_uflow
)
788 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
789 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
790 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
792 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
793 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekoff
)
794 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekpos
)
795 VTABLE_ADD_FUNC(basic_filebuf_wchar_setbuf
)
796 VTABLE_ADD_FUNC(basic_filebuf_wchar_sync
)
797 VTABLE_ADD_FUNC(basic_filebuf_wchar_imbue
));
798 __ASM_VTABLE(basic_filebuf_short
,
799 VTABLE_ADD_FUNC(basic_filebuf_wchar_vector_dtor
)
800 #if _MSVCP_VER >= 100
801 VTABLE_ADD_FUNC(basic_streambuf_wchar__Lock
)
802 VTABLE_ADD_FUNC(basic_streambuf_wchar__Unlock
)
804 VTABLE_ADD_FUNC(basic_filebuf_wchar_overflow
)
805 VTABLE_ADD_FUNC(basic_filebuf_wchar_pbackfail
)
806 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
807 VTABLE_ADD_FUNC(basic_filebuf_wchar_underflow
)
808 VTABLE_ADD_FUNC(basic_filebuf_wchar_uflow
)
809 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
810 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
811 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
813 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
814 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekoff
)
815 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekpos
)
816 VTABLE_ADD_FUNC(basic_filebuf_short_setbuf
)
817 VTABLE_ADD_FUNC(basic_filebuf_wchar_sync
)
818 VTABLE_ADD_FUNC(basic_filebuf_short_imbue
));
819 __ASM_VTABLE(basic_stringbuf_char
,
820 VTABLE_ADD_FUNC(basic_stringbuf_char_vector_dtor
)
821 VTABLE_ADD_FUNC(basic_stringbuf_char_overflow
)
822 VTABLE_ADD_FUNC(basic_stringbuf_char_pbackfail
)
823 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc
)
824 VTABLE_ADD_FUNC(basic_stringbuf_char_underflow
)
825 VTABLE_ADD_FUNC(basic_streambuf_char_uflow
)
826 VTABLE_ADD_FUNC(basic_streambuf_char_xsgetn
)
827 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
828 VTABLE_ADD_FUNC(basic_streambuf_char__Xsgetn_s
)
830 VTABLE_ADD_FUNC(basic_streambuf_char_xsputn
)
831 VTABLE_ADD_FUNC(basic_stringbuf_char_seekoff
)
832 VTABLE_ADD_FUNC(basic_stringbuf_char_seekpos
)
833 VTABLE_ADD_FUNC(basic_streambuf_char_setbuf
)
834 VTABLE_ADD_FUNC(basic_streambuf_char_sync
)
835 VTABLE_ADD_FUNC(basic_streambuf_char_imbue
));
836 __ASM_VTABLE(basic_stringbuf_wchar
,
837 VTABLE_ADD_FUNC(basic_stringbuf_wchar_vector_dtor
)
838 VTABLE_ADD_FUNC(basic_stringbuf_wchar_overflow
)
839 VTABLE_ADD_FUNC(basic_stringbuf_wchar_pbackfail
)
840 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
841 VTABLE_ADD_FUNC(basic_stringbuf_wchar_underflow
)
842 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow
)
843 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
844 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
845 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
847 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
848 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekoff
)
849 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekpos
)
850 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf
)
851 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync
)
852 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
853 __ASM_VTABLE(basic_stringbuf_short
,
854 VTABLE_ADD_FUNC(basic_stringbuf_wchar_vector_dtor
)
855 VTABLE_ADD_FUNC(basic_stringbuf_wchar_overflow
)
856 VTABLE_ADD_FUNC(basic_stringbuf_wchar_pbackfail
)
857 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
858 VTABLE_ADD_FUNC(basic_stringbuf_wchar_underflow
)
859 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow
)
860 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
861 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
862 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
864 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
865 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekoff
)
866 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekpos
)
867 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf
)
868 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync
)
869 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
870 __ASM_VTABLE(basic_ostream_char
,
871 VTABLE_ADD_FUNC(basic_ostream_char_vector_dtor
));
872 __ASM_VTABLE(basic_ostream_wchar
,
873 VTABLE_ADD_FUNC(basic_ostream_wchar_vector_dtor
));
874 __ASM_VTABLE(basic_ostream_short
,
875 VTABLE_ADD_FUNC(basic_ostream_wchar_vector_dtor
));
876 __ASM_VTABLE(basic_istream_char
,
877 VTABLE_ADD_FUNC(basic_istream_char_vector_dtor
));
878 __ASM_VTABLE(basic_istream_wchar
,
879 VTABLE_ADD_FUNC(basic_istream_wchar_vector_dtor
));
880 __ASM_VTABLE(basic_istream_short
,
881 VTABLE_ADD_FUNC(basic_istream_wchar_vector_dtor
));
882 __ASM_VTABLE(basic_iostream_char
,
883 VTABLE_ADD_FUNC(basic_iostream_char_vector_dtor
));
884 __ASM_VTABLE(basic_iostream_wchar
,
885 VTABLE_ADD_FUNC(basic_iostream_wchar_vector_dtor
));
886 __ASM_VTABLE(basic_iostream_short
,
887 VTABLE_ADD_FUNC(basic_iostream_wchar_vector_dtor
));
888 __ASM_VTABLE(basic_ofstream_char
,
889 VTABLE_ADD_FUNC(basic_ofstream_char_vector_dtor
));
890 __ASM_VTABLE(basic_ofstream_wchar
,
891 VTABLE_ADD_FUNC(basic_ofstream_wchar_vector_dtor
));
892 __ASM_VTABLE(basic_ofstream_short
,
893 VTABLE_ADD_FUNC(basic_ofstream_wchar_vector_dtor
));
894 __ASM_VTABLE(basic_ifstream_char
,
895 VTABLE_ADD_FUNC(basic_ifstream_char_vector_dtor
));
896 __ASM_VTABLE(basic_ifstream_wchar
,
897 VTABLE_ADD_FUNC(basic_ifstream_wchar_vector_dtor
));
898 __ASM_VTABLE(basic_ifstream_short
,
899 VTABLE_ADD_FUNC(basic_ifstream_wchar_vector_dtor
));
900 __ASM_VTABLE(basic_fstream_char
,
901 VTABLE_ADD_FUNC(basic_fstream_char_vector_dtor
));
902 __ASM_VTABLE(basic_fstream_wchar
,
903 VTABLE_ADD_FUNC(basic_fstream_wchar_vector_dtor
));
904 __ASM_VTABLE(basic_fstream_short
,
905 VTABLE_ADD_FUNC(basic_fstream_wchar_vector_dtor
));
906 __ASM_VTABLE(basic_ostringstream_char
,
907 VTABLE_ADD_FUNC(basic_ostringstream_char_vector_dtor
));
908 __ASM_VTABLE(basic_ostringstream_wchar
,
909 VTABLE_ADD_FUNC(basic_ostringstream_wchar_vector_dtor
));
910 __ASM_VTABLE(basic_ostringstream_short
,
911 VTABLE_ADD_FUNC(basic_ostringstream_wchar_vector_dtor
));
912 __ASM_VTABLE(basic_istringstream_char
,
913 VTABLE_ADD_FUNC(basic_istringstream_char_vector_dtor
));
914 __ASM_VTABLE(basic_istringstream_wchar
,
915 VTABLE_ADD_FUNC(basic_istringstream_wchar_vector_dtor
));
916 __ASM_VTABLE(basic_istringstream_short
,
917 VTABLE_ADD_FUNC(basic_istringstream_wchar_vector_dtor
));
918 __ASM_VTABLE(basic_stringstream_char
,
919 VTABLE_ADD_FUNC(basic_stringstream_char_vector_dtor
));
920 __ASM_VTABLE(basic_stringstream_wchar
,
921 VTABLE_ADD_FUNC(basic_stringstream_wchar_vector_dtor
));
922 __ASM_VTABLE(basic_stringstream_short
,
923 VTABLE_ADD_FUNC(basic_stringstream_wchar_vector_dtor
));
924 __ASM_VTABLE(strstreambuf
,
925 VTABLE_ADD_FUNC(strstreambuf_vector_dtor
)
926 VTABLE_ADD_FUNC(strstreambuf_overflow
)
927 VTABLE_ADD_FUNC(strstreambuf_pbackfail
)
928 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc
)
929 VTABLE_ADD_FUNC(strstreambuf_underflow
)
930 VTABLE_ADD_FUNC(basic_streambuf_char_uflow
)
931 VTABLE_ADD_FUNC(basic_streambuf_char_xsgetn
)
932 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
933 VTABLE_ADD_FUNC(basic_streambuf_char__Xsgetn_s
)
935 VTABLE_ADD_FUNC(basic_streambuf_char_xsputn
)
936 VTABLE_ADD_FUNC(strstreambuf_seekoff
)
937 VTABLE_ADD_FUNC(strstreambuf_seekpos
)
938 VTABLE_ADD_FUNC(basic_streambuf_char_setbuf
)
939 VTABLE_ADD_FUNC(basic_streambuf_char_sync
)
940 VTABLE_ADD_FUNC(basic_streambuf_char_imbue
));
941 __ASM_VTABLE(ostrstream
,
942 VTABLE_ADD_FUNC(ostrstream_vector_dtor
));
943 __ASM_VTABLE(strstream
,
944 VTABLE_ADD_FUNC(strstream_vector_dtor
));
949 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD00@Z */
950 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD00@Z */
951 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setp_next
, 16)
952 void __thiscall
basic_streambuf_char_setp_next(basic_streambuf_char
*this, char *first
, char *next
, char *last
)
954 TRACE("(%p %p %p %p)\n", this, first
, next
, last
);
958 this->wsize
= last
-next
;
961 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD0@Z */
962 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD0@Z */
963 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setp
, 12)
964 void __thiscall
basic_streambuf_char_setp(basic_streambuf_char
*this, char *first
, char *last
)
966 basic_streambuf_char_setp_next(this, first
, first
, last
);
969 /* ?setg@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD00@Z */
970 /* ?setg@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD00@Z */
971 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setg
, 16)
972 void __thiscall
basic_streambuf_char_setg(basic_streambuf_char
*this, char *first
, char *next
, char *last
)
974 TRACE("(%p %p %p %p)\n", this, first
, next
, last
);
978 this->rsize
= last
-next
;
981 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXXZ */
982 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXXZ */
983 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Init_empty
, 4)
984 void __thiscall
basic_streambuf_char__Init_empty(basic_streambuf_char
*this)
986 TRACE("(%p)\n", this);
988 this->prbuf
= &this->rbuf
;
989 this->pwbuf
= &this->wbuf
;
990 this->prpos
= &this->rpos
;
991 this->pwpos
= &this->wpos
;
992 this->prsize
= &this->rsize
;
993 this->pwsize
= &this->wsize
;
995 basic_streambuf_char_setp(this, NULL
, NULL
);
996 basic_streambuf_char_setg(this, NULL
, NULL
, NULL
);
999 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAE@W4_Uninitialized@1@@Z */
1000 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAA@W4_Uninitialized@1@@Z */
1001 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_ctor_uninitialized
, 8)
1002 basic_streambuf_char
* __thiscall
basic_streambuf_char_ctor_uninitialized(basic_streambuf_char
*this, int uninitialized
)
1004 TRACE("(%p %d)\n", this, uninitialized
);
1005 this->vtable
= &MSVCP_basic_streambuf_char_vtable
;
1006 #if _MSVCP_VER <= 100
1007 mutex_ctor(&this->lock
);
1012 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAE@XZ */
1013 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAA@XZ */
1014 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_ctor
, 4)
1015 basic_streambuf_char
* __thiscall
basic_streambuf_char_ctor(basic_streambuf_char
*this)
1017 TRACE("(%p)\n", this);
1019 this->vtable
= &MSVCP_basic_streambuf_char_vtable
;
1020 #if _MSVCP_VER <= 100
1021 mutex_ctor(&this->lock
);
1023 this->loc
= MSVCRT_operator_new(sizeof(locale
));
1024 locale_ctor(this->loc
);
1025 basic_streambuf_char__Init_empty(this);
1030 /* ??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UAE@XZ */
1031 /* ??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UEAA@XZ */
1032 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_dtor
, 4)
1033 void __thiscall
basic_streambuf_char_dtor(basic_streambuf_char
*this)
1035 TRACE("(%p)\n", this);
1037 #if _MSVCP_VER <= 100
1038 mutex_dtor(&this->lock
);
1040 locale_dtor(this->loc
);
1041 MSVCRT_operator_delete(this->loc
);
1044 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_vector_dtor
, 8)
1045 basic_streambuf_char
* __thiscall
basic_streambuf_char_vector_dtor(basic_streambuf_char
*this, unsigned int flags
)
1047 TRACE("(%p %x)\n", this, flags
);
1049 /* we have an array, with the number of elements stored before the first object */
1050 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
1052 for(i
=*ptr
-1; i
>=0; i
--)
1053 basic_streambuf_char_dtor(this+i
);
1054 MSVCRT_operator_delete(ptr
);
1056 basic_streambuf_char_dtor(this);
1058 MSVCRT_operator_delete(this);
1064 /* ?_Gnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEHXZ */
1065 /* ?_Gnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBA_JXZ */
1066 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Gnavail
, 4)
1067 streamsize __thiscall
basic_streambuf_char__Gnavail(const basic_streambuf_char
*this)
1069 TRACE("(%p)\n", this);
1070 return *this->prpos
? *this->prsize
: 0;
1073 /* ?_Gndec@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
1074 /* ?_Gndec@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
1075 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Gndec
, 4)
1076 char* __thiscall
basic_streambuf_char__Gndec(basic_streambuf_char
*this)
1078 TRACE("(%p)\n", this);
1081 return *this->prpos
;
1084 /* ?_Gninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
1085 /* ?_Gninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
1086 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Gninc
, 4)
1087 char* __thiscall
basic_streambuf_char__Gninc(basic_streambuf_char
*this)
1089 TRACE("(%p)\n", this);
1091 return (*this->prpos
)++;
1094 /* ?_Gnpreinc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
1095 /* ?_Gnpreinc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
1096 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Gnpreinc
, 4)
1097 char* __thiscall
basic_streambuf_char__Gnpreinc(basic_streambuf_char
*this)
1099 TRACE("(%p)\n", this);
1102 return *this->prpos
;
1105 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAPAD0PAH001@Z */
1106 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAPEAD0PEAH001@Z */
1107 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Init
, 28)
1108 void __thiscall
basic_streambuf_char__Init(basic_streambuf_char
*this, char **gf
, char **gn
, int *gc
, char **pf
, char **pn
, int *pc
)
1110 TRACE("(%p %p %p %p %p %p %p)\n", this, gf
, gn
, gc
, pf
, pn
, pc
);
1120 /* ?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
1121 /* ?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
1122 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Lock
, 4)
1123 #if _MSVCP_VER >= 100
1124 #define call_basic_streambuf_char__Lock(this) CALL_VTBL_FUNC(this, 4, void, (basic_streambuf_char*), (this))
1126 #define call_basic_streambuf_char__Lock(this) basic_streambuf_char__Lock(this)
1128 void __thiscall
basic_streambuf_char__Lock(basic_streambuf_char
*this)
1130 TRACE("(%p)\n", this);
1131 #if _MSVCP_VER <= 100
1132 mutex_lock(&this->lock
);
1136 /* ?_Pnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEHXZ */
1137 /* ?_Pnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBA_JXZ */
1138 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Pnavail
, 4)
1139 streamsize __thiscall
basic_streambuf_char__Pnavail(const basic_streambuf_char
*this)
1141 TRACE("(%p)\n", this);
1142 return *this->pwpos
? *this->pwsize
: 0;
1145 /* ?_Pninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
1146 /* ?_Pninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
1147 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Pninc
, 4)
1148 char* __thiscall
basic_streambuf_char__Pninc(basic_streambuf_char
*this)
1150 TRACE("(%p)\n", this);
1152 return (*this->pwpos
)++;
1155 /* ?underflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1156 /* ?underflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
1157 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_underflow
, 4)
1158 #if _MSVCP_VER >= 100
1159 #define call_basic_streambuf_char_underflow(this) CALL_VTBL_FUNC(this, 24, int, (basic_streambuf_char*), (this))
1161 #define call_basic_streambuf_char_underflow(this) CALL_VTBL_FUNC(this, 16, int, (basic_streambuf_char*), (this))
1163 int __thiscall
basic_streambuf_char_underflow(basic_streambuf_char
*this)
1165 TRACE("(%p)\n", this);
1169 /* ?uflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1170 /* ?uflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
1171 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_uflow
, 4)
1172 #if _MSVCP_VER >= 100
1173 #define call_basic_streambuf_char_uflow(this) CALL_VTBL_FUNC(this, 28, int, (basic_streambuf_char*), (this))
1175 #define call_basic_streambuf_char_uflow(this) CALL_VTBL_FUNC(this, 20, int, (basic_streambuf_char*), (this))
1177 int __thiscall
basic_streambuf_char_uflow(basic_streambuf_char
*this)
1181 TRACE("(%p)\n", this);
1183 if(call_basic_streambuf_char_underflow(this)==EOF
)
1186 ret
= (unsigned char)**this->prpos
;
1192 /* ?_Xsgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHPADIH@Z */
1193 /* ?_Xsgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEAD_K_J@Z */
1194 #if STREAMSIZE_BITS == 64
1195 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Xsgetn_s
, 20)
1197 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Xsgetn_s
, 16)
1199 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
1200 #define call_basic_streambuf_char__Xsgetn_s(this, ptr, size, count) CALL_VTBL_FUNC(this, 28, \
1201 streamsize, (basic_streambuf_char*, char*, MSVCP_size_t, streamsize), (this, ptr, size, count))
1203 #define call_basic_streambuf_char__Xsgetn_s(this, ptr, size, count) basic_streambuf_char__Xsgetn_s(this, ptr, size, count)
1205 streamsize __thiscall
basic_streambuf_char__Xsgetn_s(basic_streambuf_char
*this, char *ptr
, MSVCP_size_t size
, streamsize count
)
1207 streamsize copied
, chunk
;
1210 TRACE("(%p %p %lu %s)\n", this, ptr
, size
, wine_dbgstr_longlong(count
));
1212 for(copied
=0; copied
<count
&& size
;) {
1213 chunk
= basic_streambuf_char__Gnavail(this);
1214 if(chunk
> count
-copied
)
1215 chunk
= count
-copied
;
1218 memcpy_s(ptr
+copied
, size
, *this->prpos
, chunk
);
1219 *this->prpos
+= chunk
;
1220 *this->prsize
-= chunk
;
1223 }else if((c
= call_basic_streambuf_char_uflow(this)) != EOF
) {
1235 /* ?_Sgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPADIH@Z */
1236 /* ?_Sgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_K_J@Z */
1237 #if STREAMSIZE_BITS == 64
1238 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Sgetn_s
, 20)
1240 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Sgetn_s
, 16)
1242 streamsize __thiscall
basic_streambuf_char__Sgetn_s(basic_streambuf_char
*this, char *ptr
, MSVCP_size_t size
, streamsize count
)
1244 TRACE("(%p %p %lu %s)\n", this, ptr
, size
, wine_dbgstr_longlong(count
));
1245 return call_basic_streambuf_char__Xsgetn_s(this, ptr
, size
, count
);
1248 /* ?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
1249 /* ?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
1250 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Unlock
, 4)
1251 #if _MSVCP_VER >= 100
1252 #define call_basic_streambuf_char__Unlock(this) CALL_VTBL_FUNC(this, 8, void, (basic_streambuf_char*), (this))
1254 #define call_basic_streambuf_char__Unlock(this) basic_streambuf_char__Unlock(this)
1256 void __thiscall
basic_streambuf_char__Unlock(basic_streambuf_char
*this)
1258 TRACE("(%p)\n", this);
1259 #if _MSVCP_VER <= 100
1260 mutex_unlock(&this->lock
);
1264 /* ?eback@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1265 /* ?eback@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1266 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_eback
, 4)
1267 char* __thiscall
basic_streambuf_char_eback(const basic_streambuf_char
*this)
1269 TRACE("(%p)\n", this);
1270 return *this->prbuf
;
1273 /* ?gptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1274 /* ?gptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1275 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_gptr
, 4)
1276 char* __thiscall
basic_streambuf_char_gptr(const basic_streambuf_char
*this)
1278 TRACE("(%p)\n", this);
1279 return *this->prpos
;
1282 /* ?egptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1283 /* ?egptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1284 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_egptr
, 4)
1285 char* __thiscall
basic_streambuf_char_egptr(const basic_streambuf_char
*this)
1287 TRACE("(%p)\n", this);
1288 return *this->prpos
+*this->prsize
;
1291 /* ?epptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1292 /* ?epptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1293 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_epptr
, 4)
1294 char* __thiscall
basic_streambuf_char_epptr(const basic_streambuf_char
*this)
1296 TRACE("(%p)\n", this);
1297 return *this->pwpos
+*this->pwsize
;
1300 /* ?gbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXH@Z */
1301 /* ?gbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXH@Z */
1302 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_gbump
, 8)
1303 void __thiscall
basic_streambuf_char_gbump(basic_streambuf_char
*this, int off
)
1305 TRACE("(%p %d)\n", this, off
);
1306 *this->prpos
+= off
;
1307 *this->prsize
-= off
;
1310 /* ?getloc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QBE?AVlocale@2@XZ */
1311 /* ?getloc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEBA?AVlocale@2@XZ */
1312 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_getloc
, 8)
1313 locale
* __thiscall
basic_streambuf_char_getloc(const basic_streambuf_char
*this, locale
*ret
)
1315 TRACE("(%p)\n", this);
1316 return locale_copy_ctor(ret
, this->loc
);
1319 /* ?imbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEXABVlocale@2@@Z */
1320 /* ?imbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAXAEBVlocale@2@@Z */
1321 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_imbue
, 8)
1322 #if _MSVCP_VER >= 100
1323 #define call_basic_streambuf_char_imbue(this, loc) CALL_VTBL_FUNC(this, 56, void, (basic_streambuf_char*, const locale*), (this, loc))
1324 #elif _MSVCP_VER >= 80
1325 #define call_basic_streambuf_char_imbue(this, loc) CALL_VTBL_FUNC(this, 52, void, (basic_streambuf_char*, const locale*), (this, loc))
1327 #define call_basic_streambuf_char_imbue(this, loc) CALL_VTBL_FUNC(this, 48, void, (basic_streambuf_char*, const locale*), (this, loc))
1329 void __thiscall
basic_streambuf_char_imbue(basic_streambuf_char
*this, const locale
*loc
)
1331 TRACE("(%p %p)\n", this, loc
);
1334 /* ?overflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHH@Z */
1335 /* ?overflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z */
1336 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_overflow
, 8)
1337 #if _MSVCP_VER >= 100
1338 #define call_basic_streambuf_char_overflow(this, ch) CALL_VTBL_FUNC(this, 12, int, (basic_streambuf_char*, int), (this, ch))
1340 #define call_basic_streambuf_char_overflow(this, ch) CALL_VTBL_FUNC(this, 4, int, (basic_streambuf_char*, int), (this, ch))
1342 int __thiscall
basic_streambuf_char_overflow(basic_streambuf_char
*this, int ch
)
1344 TRACE("(%p %d)\n", this, ch
);
1348 /* ?pbackfail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHH@Z */
1349 /* ?pbackfail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z */
1350 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pbackfail
, 8)
1351 #if _MSVCP_VER >= 100
1352 #define call_basic_streambuf_char_pbackfail(this, ch) CALL_VTBL_FUNC(this, 16, int, (basic_streambuf_char*, int), (this, ch))
1354 #define call_basic_streambuf_char_pbackfail(this, ch) CALL_VTBL_FUNC(this, 8, int, (basic_streambuf_char*, int), (this, ch))
1356 int __thiscall
basic_streambuf_char_pbackfail(basic_streambuf_char
*this, int ch
)
1358 TRACE("(%p %d)\n", this, ch
);
1362 /* ?pbase@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1363 /* ?pbase@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1364 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pbase
, 4)
1365 char* __thiscall
basic_streambuf_char_pbase(const basic_streambuf_char
*this)
1367 TRACE("(%p)\n", this);
1368 return *this->pwbuf
;
1371 /* ?pbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXH@Z */
1372 /* ?pbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXH@Z */
1373 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pbump
, 8)
1374 void __thiscall
basic_streambuf_char_pbump(basic_streambuf_char
*this, int off
)
1376 TRACE("(%p %d)\n", this, off
);
1377 *this->pwpos
+= off
;
1378 *this->pwsize
-= off
;
1381 /* ?pptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1382 /* ?pptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1383 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pptr
, 4)
1384 char* __thiscall
basic_streambuf_char_pptr(const basic_streambuf_char
*this)
1386 TRACE("(%p)\n", this);
1387 return *this->pwpos
;
1390 /* ?pubimbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
1391 /* ?pubimbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
1392 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubimbue
, 12)
1393 locale
* __thiscall
basic_streambuf_char_pubimbue(basic_streambuf_char
*this, locale
*ret
, const locale
*loc
)
1395 TRACE("(%p %p)\n", this, loc
);
1396 memcpy(ret
, this->loc
, sizeof(locale
));
1397 call_basic_streambuf_char_imbue(this, loc
);
1398 locale_copy_ctor(this->loc
, loc
);
1402 /* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
1403 /* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
1404 #if STREAMOFF_BITS == 64
1405 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_seekoff
, 24)
1407 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_seekoff
, 20)
1409 #if _MSVCP_VER >= 100
1410 #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))
1411 #elif _MSVCP_VER >= 80
1412 #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))
1414 #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))
1416 fpos_int
* __thiscall
basic_streambuf_char_seekoff(basic_streambuf_char
*this,
1417 fpos_int
*ret
, streamoff off
, int way
, int mode
)
1419 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
1426 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JHH@Z */
1427 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JHH@Z */
1428 #if STREAMOFF_BITS == 64
1429 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff
, 24)
1431 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff
, 20)
1433 fpos_int
* __thiscall
basic_streambuf_char_pubseekoff(basic_streambuf_char
*this,
1434 fpos_int
*ret
, streamoff off
, int way
, int mode
)
1436 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
1437 return call_basic_streambuf_char_seekoff(this, ret
, off
, way
, mode
);
1440 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JII@Z */
1441 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JII@Z */
1442 #if STREAMOFF_BITS == 64
1443 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff_old
, 24)
1445 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff_old
, 20)
1447 fpos_int
* __thiscall
basic_streambuf_char_pubseekoff_old(basic_streambuf_char
*this,
1448 fpos_int
*ret
, streamoff off
, unsigned int way
, unsigned int mode
)
1450 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
1451 return basic_streambuf_char_pubseekoff(this, ret
, off
, way
, mode
);
1454 /* ?seekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
1455 /* ?seekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
1456 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_seekpos
, 36)
1457 #if _MSVCP_VER >= 100
1458 #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))
1459 #elif _MSVCP_VER >= 80
1460 #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))
1462 #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))
1464 fpos_int
* __thiscall
basic_streambuf_char_seekpos(basic_streambuf_char
*this,
1465 fpos_int
*ret
, fpos_int pos
, int mode
)
1467 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
1474 /* ?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@V32@H@Z */
1475 /* ?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@V32@H@Z */
1476 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekpos
, 36)
1477 fpos_int
* __thiscall
basic_streambuf_char_pubseekpos(basic_streambuf_char
*this,
1478 fpos_int
*ret
, fpos_int pos
, int mode
)
1480 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
1481 return call_basic_streambuf_char_seekpos(this, ret
, pos
, mode
);
1484 /* ?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@V32@I@Z */
1485 /* ?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@V32@I@Z */
1486 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekpos_old
, 36)
1487 fpos_int
* __thiscall
basic_streambuf_char_pubseekpos_old(basic_streambuf_char
*this,
1488 fpos_int
*ret
, fpos_int pos
, unsigned int mode
)
1490 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
1491 return basic_streambuf_char_pubseekpos(this, ret
, pos
, mode
);
1494 /* ?setbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEPAV12@PADH@Z */
1495 /* ?setbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAPEAV12@PEAD_J@Z */
1496 #if STREAMSIZE_BITS == 64
1497 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setbuf
, 16)
1499 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setbuf
, 12)
1501 #if _MSVCP_VER >= 100
1502 #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))
1503 #elif _MSVCP_VER >= 80
1504 #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))
1506 #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))
1508 basic_streambuf_char
* __thiscall
basic_streambuf_char_setbuf(basic_streambuf_char
*this, char *buf
, streamsize count
)
1510 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
1514 /* ?pubsetbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PADH@Z */
1515 /* ?pubsetbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEAD_J@Z */
1516 #if STREAMSIZE_BITS == 64
1517 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubsetbuf
, 16)
1519 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubsetbuf
, 12)
1521 basic_streambuf_char
* __thiscall
basic_streambuf_char_pubsetbuf(basic_streambuf_char
*this, char *buf
, streamsize count
)
1523 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
1524 return call_basic_streambuf_char_setbuf(this, buf
, count
);
1527 /* ?sync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1528 /* ?sync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
1529 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sync
, 4)
1530 #if _MSVCP_VER >= 100
1531 #define call_basic_streambuf_char_sync(this) CALL_VTBL_FUNC(this, 52, int, (basic_streambuf_char*), (this))
1532 #elif _MSVCP_VER >= 80
1533 #define call_basic_streambuf_char_sync(this) CALL_VTBL_FUNC(this, 48, int, (basic_streambuf_char*), (this))
1535 #define call_basic_streambuf_char_sync(this) CALL_VTBL_FUNC(this, 44, int, (basic_streambuf_char*), (this))
1537 int __thiscall
basic_streambuf_char_sync(basic_streambuf_char
*this)
1539 TRACE("(%p)\n", this);
1543 /* ?pubsync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1544 /* ?pubsync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1545 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubsync
, 4)
1546 int __thiscall
basic_streambuf_char_pubsync(basic_streambuf_char
*this)
1548 TRACE("(%p)\n", this);
1549 return call_basic_streambuf_char_sync(this);
1552 /* ?sgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPADH@Z */
1553 /* ?sgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_J@Z */
1554 #if STREAMSIZE_BITS == 64
1555 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sgetn
, 16)
1557 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sgetn
, 12)
1559 streamsize __thiscall
basic_streambuf_char_sgetn(basic_streambuf_char
*this, char *ptr
, streamsize count
)
1561 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
1562 return call_basic_streambuf_char__Xsgetn_s(this, ptr
, -1, count
);
1565 /* ?showmanyc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1566 /* ?showmanyc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JXZ */
1567 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_showmanyc
, 4)
1568 #if _MSVCP_VER >= 100
1569 #define call_basic_streambuf_char_showmanyc(this) CALL_VTBL_FUNC(this, 20, streamsize, (basic_streambuf_char*), (this))
1571 #define call_basic_streambuf_char_showmanyc(this) CALL_VTBL_FUNC(this, 12, streamsize, (basic_streambuf_char*), (this))
1573 streamsize __thiscall
basic_streambuf_char_showmanyc(basic_streambuf_char
*this)
1575 TRACE("(%p)\n", this);
1579 /* ?in_avail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1580 /* ?in_avail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JXZ */
1581 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_in_avail
, 4)
1582 streamsize __thiscall
basic_streambuf_char_in_avail(basic_streambuf_char
*this)
1586 TRACE("(%p)\n", this);
1588 ret
= basic_streambuf_char__Gnavail(this);
1589 return ret
? ret
: call_basic_streambuf_char_showmanyc(this);
1592 /* ?sputbackc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z */
1593 /* ?sputbackc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHD@Z */
1594 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputbackc
, 8)
1595 int __thiscall
basic_streambuf_char_sputbackc(basic_streambuf_char
*this, char ch
)
1597 TRACE("(%p %d)\n", this, ch
);
1598 if(*this->prpos
&& *this->prpos
>*this->prbuf
&& (*this->prpos
)[-1]==ch
) {
1601 return (unsigned char)ch
;
1604 return call_basic_streambuf_char_pbackfail(this, (unsigned char)ch
);
1607 /* ?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z */
1608 /* ?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHD@Z */
1609 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputc
, 8)
1610 int __thiscall
basic_streambuf_char_sputc(basic_streambuf_char
*this, char ch
)
1612 TRACE("(%p %d)\n", this, ch
);
1613 return basic_streambuf_char__Pnavail(this) ?
1614 (unsigned char)(*basic_streambuf_char__Pninc(this) = ch
) :
1615 call_basic_streambuf_char_overflow(this, (unsigned char)ch
);
1618 /* ?sungetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1619 /* ?sungetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1620 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sungetc
, 4)
1621 int __thiscall
basic_streambuf_char_sungetc(basic_streambuf_char
*this)
1623 TRACE("(%p)\n", this);
1624 if(*this->prpos
&& *this->prpos
>*this->prbuf
) {
1627 return (unsigned char)**this->prpos
;
1630 return call_basic_streambuf_char_pbackfail(this, EOF
);
1633 /* ?stossc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
1634 /* ?stossc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
1635 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_stossc
, 4)
1636 void __thiscall
basic_streambuf_char_stossc(basic_streambuf_char
*this)
1638 TRACE("(%p)\n", this);
1639 if(basic_streambuf_char__Gnavail(this))
1640 basic_streambuf_char__Gninc(this);
1642 call_basic_streambuf_char_uflow(this);
1645 /* ?sbumpc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1646 /* ?sbumpc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1647 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sbumpc
, 4)
1648 int __thiscall
basic_streambuf_char_sbumpc(basic_streambuf_char
*this)
1650 TRACE("(%p)\n", this);
1651 return basic_streambuf_char__Gnavail(this) ?
1652 (int)(unsigned char)*basic_streambuf_char__Gninc(this) : call_basic_streambuf_char_uflow(this);
1655 /* ?sgetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1656 /* ?sgetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1657 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sgetc
, 4)
1658 int __thiscall
basic_streambuf_char_sgetc(basic_streambuf_char
*this)
1660 TRACE("(%p)\n", this);
1661 return basic_streambuf_char__Gnavail(this) ?
1662 (int)(unsigned char)*basic_streambuf_char_gptr(this) : call_basic_streambuf_char_underflow(this);
1665 /* ?snextc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1666 /* ?snextc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1667 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_snextc
, 4)
1668 int __thiscall
basic_streambuf_char_snextc(basic_streambuf_char
*this)
1670 TRACE("(%p)\n", this);
1672 if(basic_streambuf_char__Gnavail(this) > 1)
1673 return (unsigned char)*basic_streambuf_char__Gnpreinc(this);
1674 return basic_streambuf_char_sbumpc(this)==EOF
?
1675 EOF
: basic_streambuf_char_sgetc(this);
1678 /* ?xsgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHPADH@Z */
1679 /* ?xsgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEAD_J@Z */
1680 #if STREAMSIZE_BITS == 64
1681 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsgetn
, 16)
1683 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsgetn
, 12)
1685 #if _MSVCP_VER >= 100
1686 #define call_basic_streambuf_char_xsgetn(this, ptr, count) CALL_VTBL_FUNC(this, 32, streamsize, (basic_streambuf_char*, char*, streamsize), (this, ptr, count))
1688 #define call_basic_streambuf_char_xsgetn(this, ptr, count) CALL_VTBL_FUNC(this, 24, streamsize, (basic_streambuf_char*, char*, streamsize), (this, ptr, count))
1690 streamsize __thiscall
basic_streambuf_char_xsgetn(basic_streambuf_char
*this, char *ptr
, streamsize count
)
1692 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
1693 return call_basic_streambuf_char__Xsgetn_s(this, ptr
, -1, count
);
1696 /* ?xsputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHPBDH@Z */
1697 /* ?xsputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEBD_J@Z */
1698 #if STREAMSIZE_BITS == 64
1699 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsputn
, 16)
1701 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsputn
, 12)
1703 #if _MSVCP_VER >= 100
1704 #define call_basic_streambuf_char_xsputn(this, ptr, count) CALL_VTBL_FUNC(this, 36, streamsize, (basic_streambuf_char*, const char*, streamsize), (this, ptr, count))
1705 #elif _MSVCP_VER >= 80
1706 #define call_basic_streambuf_char_xsputn(this, ptr, count) CALL_VTBL_FUNC(this, 32, streamsize, (basic_streambuf_char*, const char*, streamsize), (this, ptr, count))
1708 #define call_basic_streambuf_char_xsputn(this, ptr, count) CALL_VTBL_FUNC(this, 28, streamsize, (basic_streambuf_char*, const char*, streamsize), (this, ptr, count))
1710 streamsize __thiscall
basic_streambuf_char_xsputn(basic_streambuf_char
*this, const char *ptr
, streamsize count
)
1712 streamsize copied
, chunk
;
1714 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
1716 for(copied
=0; copied
<count
;) {
1717 chunk
= basic_streambuf_char__Pnavail(this);
1718 if(chunk
> count
-copied
)
1719 chunk
= count
-copied
;
1722 memcpy(*this->pwpos
, ptr
+copied
, chunk
);
1723 *this->pwpos
+= chunk
;
1724 *this->pwsize
-= chunk
;
1726 }else if(call_basic_streambuf_char_overflow(this, (unsigned char)ptr
[copied
]) != EOF
) {
1736 /* ?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPBDH@Z */
1737 /* ?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEBD_J@Z */
1738 #if STREAMSIZE_BITS == 64
1739 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputn
, 16)
1741 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputn
, 12)
1743 streamsize __thiscall
basic_streambuf_char_sputn(basic_streambuf_char
*this, const char *ptr
, streamsize count
)
1745 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
1746 return call_basic_streambuf_char_xsputn(this, ptr
, count
);
1749 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPA_W00@Z */
1750 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEA_W00@Z */
1751 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAG00@Z */
1752 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAG00@Z */
1753 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setp_next
, 16)
1754 void __thiscall
basic_streambuf_wchar_setp_next(basic_streambuf_wchar
*this, wchar_t *first
, wchar_t *next
, wchar_t *last
)
1756 TRACE("(%p %p %p %p)\n", this, first
, next
, last
);
1760 this->wsize
= last
-next
;
1763 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPA_W0@Z */
1764 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEA_W0@Z */
1765 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAG0@Z */
1766 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAG0@Z */
1767 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setp
, 12)
1768 void __thiscall
basic_streambuf_wchar_setp(basic_streambuf_wchar
*this, wchar_t *first
, wchar_t *last
)
1770 basic_streambuf_wchar_setp_next(this, first
, first
, last
);
1773 /* ?setg@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPA_W00@Z */
1774 /* ?setg@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEA_W00@Z */
1775 /* ?setg@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAG00@Z */
1776 /* ?setg@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAG00@Z */
1777 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setg
, 16)
1778 void __thiscall
basic_streambuf_wchar_setg(basic_streambuf_wchar
*this, wchar_t *first
, wchar_t *next
, wchar_t *last
)
1780 TRACE("(%p %p %p %p)\n", this, first
, next
, last
);
1784 this->rsize
= last
-next
;
1787 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXXZ */
1788 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXXZ */
1789 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXXZ */
1790 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXXZ */
1791 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Init_empty
, 4)
1792 void __thiscall
basic_streambuf_wchar__Init_empty(basic_streambuf_wchar
*this)
1794 TRACE("(%p)\n", this);
1796 this->prbuf
= &this->rbuf
;
1797 this->pwbuf
= &this->wbuf
;
1798 this->prpos
= &this->rpos
;
1799 this->pwpos
= &this->wpos
;
1800 this->prsize
= &this->rsize
;
1801 this->pwsize
= &this->wsize
;
1803 basic_streambuf_wchar_setp(this, NULL
, NULL
);
1804 basic_streambuf_wchar_setg(this, NULL
, NULL
, NULL
);
1807 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAE@W4_Uninitialized@1@@Z */
1808 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAA@W4_Uninitialized@1@@Z */
1809 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_ctor_uninitialized
, 8)
1810 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_ctor_uninitialized(basic_streambuf_wchar
*this, int uninitialized
)
1812 TRACE("(%p %d)\n", this, uninitialized
);
1813 this->vtable
= &MSVCP_basic_streambuf_wchar_vtable
;
1814 #if _MSVCP_VER <= 100
1815 mutex_ctor(&this->lock
);
1820 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAE@W4_Uninitialized@1@@Z */
1821 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAA@W4_Uninitialized@1@@Z */
1822 DEFINE_THISCALL_WRAPPER(basic_streambuf_short_ctor_uninitialized
, 8)
1823 basic_streambuf_wchar
* __thiscall
basic_streambuf_short_ctor_uninitialized(basic_streambuf_wchar
*this, int uninitialized
)
1825 TRACE("(%p %d)\n", this, uninitialized
);
1826 basic_streambuf_wchar_ctor_uninitialized(this, uninitialized
);
1827 this->vtable
= &MSVCP_basic_streambuf_short_vtable
;
1831 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAE@XZ */
1832 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAA@XZ */
1833 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_ctor
, 4)
1834 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_ctor(basic_streambuf_wchar
*this)
1836 TRACE("(%p)\n", this);
1838 this->vtable
= &MSVCP_basic_streambuf_wchar_vtable
;
1839 #if _MSVCP_VER <= 100
1840 mutex_ctor(&this->lock
);
1842 this->loc
= MSVCRT_operator_new(sizeof(locale
));
1843 locale_ctor(this->loc
);
1844 basic_streambuf_wchar__Init_empty(this);
1849 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAE@XZ */
1850 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAA@XZ */
1851 DEFINE_THISCALL_WRAPPER(basic_streambuf_short_ctor
, 4)
1852 basic_streambuf_wchar
* __thiscall
basic_streambuf_short_ctor(basic_streambuf_wchar
*this)
1854 TRACE("(%p)\n", this);
1855 basic_streambuf_wchar_ctor(this);
1856 this->vtable
= &MSVCP_basic_streambuf_short_vtable
;
1860 /* ??1?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
1861 /* ??1?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
1862 /* ??1?$basic_streambuf@GU?$char_traits@G@std@@@std@@UAE@XZ */
1863 /* ??1?$basic_streambuf@GU?$char_traits@G@std@@@std@@UEAA@XZ */
1864 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_dtor
, 4)
1865 void __thiscall
basic_streambuf_wchar_dtor(basic_streambuf_wchar
*this)
1867 TRACE("(%p)\n", this);
1869 #if _MSVCP_VER <= 100
1870 mutex_dtor(&this->lock
);
1872 locale_dtor(this->loc
);
1873 MSVCRT_operator_delete(this->loc
);
1876 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_vector_dtor
, 8)
1877 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_vector_dtor(basic_streambuf_wchar
*this, unsigned int flags
)
1879 TRACE("(%p %x)\n", this, flags
);
1881 /* we have an array, with the number of elements stored before the first object */
1882 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
1884 for(i
=*ptr
-1; i
>=0; i
--)
1885 basic_streambuf_wchar_dtor(this+i
);
1886 MSVCRT_operator_delete(ptr
);
1888 basic_streambuf_wchar_dtor(this);
1890 MSVCRT_operator_delete(this);
1896 /* ?_Gnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEHXZ */
1897 /* ?_Gnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBA_JXZ */
1898 /* ?_Gnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEHXZ */
1899 /* ?_Gnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBA_JXZ */
1900 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Gnavail
, 4)
1901 streamsize __thiscall
basic_streambuf_wchar__Gnavail(const basic_streambuf_wchar
*this)
1903 TRACE("(%p)\n", this);
1904 return *this->prpos
? *this->prsize
: 0;
1907 /* ?_Gndec@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
1908 /* ?_Gndec@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
1909 /* ?_Gndec@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
1910 /* ?_Gndec@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
1911 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Gndec
, 4)
1912 wchar_t* __thiscall
basic_streambuf_wchar__Gndec(basic_streambuf_wchar
*this)
1914 TRACE("(%p)\n", this);
1917 return *this->prpos
;
1920 /* ?_Gninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
1921 /* ?_Gninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
1922 /* ?_Gninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
1923 /* ?_Gninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
1924 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Gninc
, 4)
1925 wchar_t* __thiscall
basic_streambuf_wchar__Gninc(basic_streambuf_wchar
*this)
1927 TRACE("(%p)\n", this);
1929 return (*this->prpos
)++;
1932 /* ?_Gnpreinc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
1933 /* ?_Gnpreinc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
1934 /* ?_Gnpreinc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
1935 /* ?_Gnpreinc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
1936 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Gnpreinc
, 4)
1937 wchar_t* __thiscall
basic_streambuf_wchar__Gnpreinc(basic_streambuf_wchar
*this)
1939 TRACE("(%p)\n", this);
1942 return *this->prpos
;
1945 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPAPA_W0PAH001@Z */
1946 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEAPEA_W0PEAH001@Z */
1947 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAPAG0PAH001@Z */
1948 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAPEAG0PEAH001@Z */
1949 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Init
, 28)
1950 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
)
1952 TRACE("(%p %p %p %p %p %p %p)\n", this, gf
, gn
, gc
, pf
, pn
, pc
);
1962 /* ?_Lock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
1963 /* ?_Lock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
1964 /* ?_Lock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
1965 /* ?_Lock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
1966 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Lock
, 4)
1967 void __thiscall
basic_streambuf_wchar__Lock(basic_streambuf_wchar
*this)
1969 TRACE("(%p)\n", this);
1970 #if _MSVCP_VER <= 100
1971 mutex_lock(&this->lock
);
1975 /* ?_Pnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEHXZ */
1976 /* ?_Pnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBA_JXZ */
1977 /* ?_Pnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEHXZ */
1978 /* ?_Pnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBA_JXZ */
1979 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Pnavail
, 4)
1980 streamsize __thiscall
basic_streambuf_wchar__Pnavail(const basic_streambuf_wchar
*this)
1982 TRACE("(%p)\n", this);
1983 return *this->pwpos
? *this->pwsize
: 0;
1986 /* ?_Pninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
1987 /* ?_Pninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
1988 /* ?_Pninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
1989 /* ?_Pninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
1990 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Pninc
, 4)
1991 wchar_t* __thiscall
basic_streambuf_wchar__Pninc(basic_streambuf_wchar
*this)
1993 TRACE("(%p)\n", this);
1995 return (*this->pwpos
)++;
1998 /* ?underflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
1999 /* ?underflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
2000 /* ?underflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
2001 /* ?underflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
2002 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_underflow
, 4)
2003 #if _MSVCP_VER >= 100
2004 #define call_basic_streambuf_wchar_underflow(this) CALL_VTBL_FUNC(this, 24, unsigned short, (basic_streambuf_wchar*), (this))
2006 #define call_basic_streambuf_wchar_underflow(this) CALL_VTBL_FUNC(this, 16, unsigned short, (basic_streambuf_wchar*), (this))
2008 unsigned short __thiscall
basic_streambuf_wchar_underflow(basic_streambuf_wchar
*this)
2010 TRACE("(%p)\n", this);
2014 /* ?uflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
2015 /* ?uflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
2016 /* ?uflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
2017 /* ?uflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
2018 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_uflow
, 4)
2019 #if _MSVCP_VER >= 100
2020 #define call_basic_streambuf_wchar_uflow(this) CALL_VTBL_FUNC(this, 28, unsigned short, (basic_streambuf_wchar*), (this))
2022 #define call_basic_streambuf_wchar_uflow(this) CALL_VTBL_FUNC(this, 20, unsigned short, (basic_streambuf_wchar*), (this))
2024 unsigned short __thiscall
basic_streambuf_wchar_uflow(basic_streambuf_wchar
*this)
2028 TRACE("(%p)\n", this);
2030 if(call_basic_streambuf_wchar_underflow(this)==WEOF
)
2033 ret
= **this->prpos
;
2039 /* ?_Xsgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHPA_WIH@Z */
2040 /* ?_Xsgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEA_W_K_J@Z */
2041 /* ?_Xsgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHPAGIH@Z */
2042 /* ?_Xsgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JPEAG_K_J@Z */
2043 #if STREAMSIZE_BITS == 64
2044 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Xsgetn_s
, 20)
2046 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Xsgetn_s
, 16)
2048 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
2049 #define call_basic_streambuf_wchar__Xsgetn_s(this, ptr, size, count) CALL_VTBL_FUNC(this, 28, \
2050 streamsize, (basic_streambuf_wchar*, wchar_t*, MSVCP_size_t, streamsize), (this, ptr, size, count))
2052 #define call_basic_streambuf_wchar__Xsgetn_s(this, ptr, size, count) basic_streambuf_wchar__Xsgetn_s(this, ptr, size, count)
2054 streamsize __thiscall
basic_streambuf_wchar__Xsgetn_s(basic_streambuf_wchar
*this, wchar_t *ptr
, MSVCP_size_t size
, streamsize count
)
2056 streamsize copied
, chunk
;
2059 TRACE("(%p %p %lu %s)\n", this, ptr
, size
, wine_dbgstr_longlong(count
));
2061 for(copied
=0; copied
<count
&& size
;) {
2062 chunk
= basic_streambuf_wchar__Gnavail(this);
2063 if(chunk
> count
-copied
)
2064 chunk
= count
-copied
;
2067 memcpy_s(ptr
+copied
, size
, *this->prpos
, chunk
*sizeof(wchar_t));
2068 *this->prpos
+= chunk
;
2069 *this->prsize
-= chunk
;
2071 size
-= chunk
*sizeof(wchar_t);
2072 }else if((c
= call_basic_streambuf_wchar_uflow(this)) != WEOF
) {
2084 /* ?_Sgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHPA_WIH@Z */
2085 /* ?_Sgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_K_J@Z */
2086 /* ?_Sgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHPAGIH@Z */
2087 /* ?_Sgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_K_J@Z */
2088 #if STREAMSIZE_BITS == 64
2089 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Sgetn_s
, 20)
2091 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Sgetn_s
, 16)
2093 streamsize __thiscall
basic_streambuf_wchar__Sgetn_s(basic_streambuf_wchar
*this, wchar_t *ptr
, MSVCP_size_t size
, streamsize count
)
2095 TRACE("(%p %p %lu %s)\n", this, ptr
, size
, wine_dbgstr_longlong(count
));
2096 return call_basic_streambuf_wchar__Xsgetn_s(this, ptr
, size
, count
);
2099 /* ?_Unlock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
2100 /* ?_Unlock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
2101 /* ?_Unlock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
2102 /* ?_Unlock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
2103 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Unlock
, 4)
2104 void __thiscall
basic_streambuf_wchar__Unlock(basic_streambuf_wchar
*this)
2106 TRACE("(%p)\n", this);
2107 #if _MSVCP_VER <= 100
2108 mutex_unlock(&this->lock
);
2112 /* ?eback@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2113 /* ?eback@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2114 /* ?eback@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2115 /* ?eback@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2116 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_eback
, 4)
2117 wchar_t* __thiscall
basic_streambuf_wchar_eback(const basic_streambuf_wchar
*this)
2119 TRACE("(%p)\n", this);
2120 return *this->prbuf
;
2123 /* ?gptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2124 /* ?gptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2125 /* ?gptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2126 /* ?gptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2127 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_gptr
, 4)
2128 wchar_t* __thiscall
basic_streambuf_wchar_gptr(const basic_streambuf_wchar
*this)
2130 TRACE("(%p)\n", this);
2131 return *this->prpos
;
2134 /* ?egptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2135 /* ?egptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2136 /* ?egptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2137 /* ?egptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2138 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_egptr
, 4)
2139 wchar_t* __thiscall
basic_streambuf_wchar_egptr(const basic_streambuf_wchar
*this)
2141 TRACE("(%p)\n", this);
2142 return *this->prpos
+*this->prsize
;
2145 /* ?epptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2146 /* ?epptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2147 /* ?epptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2148 /* ?epptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2149 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_epptr
, 4)
2150 wchar_t* __thiscall
basic_streambuf_wchar_epptr(const basic_streambuf_wchar
*this)
2152 TRACE("(%p)\n", this);
2153 return *this->pwpos
+*this->pwsize
;
2156 /* ?gbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXH@Z */
2157 /* ?gbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXH@Z */
2158 /* ?gbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXH@Z */
2159 /* ?gbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXH@Z */
2160 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_gbump
, 8)
2161 void __thiscall
basic_streambuf_wchar_gbump(basic_streambuf_wchar
*this, int off
)
2163 TRACE("(%p %d)\n", this, off
);
2164 *this->prpos
+= off
;
2165 *this->prsize
-= off
;
2168 /* ?getloc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QBE?AVlocale@2@XZ */
2169 /* ?getloc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEBA?AVlocale@2@XZ */
2170 /* ?getloc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QBE?AVlocale@2@XZ */
2171 /* ?getloc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEBA?AVlocale@2@XZ */
2172 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_getloc
, 8)
2173 locale
* __thiscall
basic_streambuf_wchar_getloc(const basic_streambuf_wchar
*this, locale
*ret
)
2175 TRACE("(%p)\n", this);
2176 return locale_copy_ctor(ret
, this->loc
);
2179 /* ?imbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEXABVlocale@2@@Z */
2180 /* ?imbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAXAEBVlocale@2@@Z */
2181 /* ?imbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEXABVlocale@2@@Z */
2182 /* ?imbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAXAEBVlocale@2@@Z */
2183 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_imbue
, 8)
2184 #if _MSVCP_VER >= 100
2185 #define call_basic_streambuf_wchar_imbue(this, loc) CALL_VTBL_FUNC(this, 56, void, (basic_streambuf_wchar*, const locale*), (this, loc))
2186 #elif _MSVCP_VER >= 80
2187 #define call_basic_streambuf_wchar_imbue(this, loc) CALL_VTBL_FUNC(this, 52, void, (basic_streambuf_wchar*, const locale*), (this, loc))
2189 #define call_basic_streambuf_wchar_imbue(this, loc) CALL_VTBL_FUNC(this, 48, void, (basic_streambuf_wchar*, const locale*), (this, loc))
2191 void __thiscall
basic_streambuf_wchar_imbue(basic_streambuf_wchar
*this, const locale
*loc
)
2193 TRACE("(%p %p)\n", this, loc
);
2196 /* ?overflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
2197 /* ?overflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
2198 /* ?overflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
2199 /* ?overflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
2200 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_overflow
, 8)
2201 #if _MSVCP_VER >= 100
2202 #define call_basic_streambuf_wchar_overflow(this, ch) CALL_VTBL_FUNC(this, 12, unsigned short, (basic_streambuf_wchar*, unsigned short), (this, ch))
2204 #define call_basic_streambuf_wchar_overflow(this, ch) CALL_VTBL_FUNC(this, 4, unsigned short, (basic_streambuf_wchar*, unsigned short), (this, ch))
2206 unsigned short __thiscall
basic_streambuf_wchar_overflow(basic_streambuf_wchar
*this, unsigned short ch
)
2208 TRACE("(%p %d)\n", this, ch
);
2212 /* ?pbackfail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
2213 /* ?pbackfail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
2214 /* ?pbackfail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
2215 /* ?pbackfail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
2216 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pbackfail
, 8)
2217 #if _MSVCP_VER >= 100
2218 #define call_basic_streambuf_wchar_pbackfail(this, ch) CALL_VTBL_FUNC(this, 16, unsigned short, (basic_streambuf_wchar*, unsigned short), (this, ch))
2220 #define call_basic_streambuf_wchar_pbackfail(this, ch) CALL_VTBL_FUNC(this, 8, unsigned short, (basic_streambuf_wchar*, unsigned short), (this, ch))
2222 unsigned short __thiscall
basic_streambuf_wchar_pbackfail(basic_streambuf_wchar
*this, unsigned short ch
)
2224 TRACE("(%p %d)\n", this, ch
);
2228 /* ?pbase@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2229 /* ?pbase@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2230 /* ?pbase@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2231 /* ?pbase@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2232 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pbase
, 4)
2233 wchar_t* __thiscall
basic_streambuf_wchar_pbase(const basic_streambuf_wchar
*this)
2235 TRACE("(%p)\n", this);
2236 return *this->pwbuf
;
2239 /* ?pbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXH@Z */
2240 /* ?pbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXH@Z */
2241 /* ?pbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXH@Z */
2242 /* ?pbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXH@Z */
2243 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pbump
, 8)
2244 void __thiscall
basic_streambuf_wchar_pbump(basic_streambuf_wchar
*this, int off
)
2246 TRACE("(%p %d)\n", this, off
);
2247 *this->pwpos
+= off
;
2248 *this->pwsize
-= off
;
2251 /* ?pptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2252 /* ?pptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2253 /* ?pptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2254 /* ?pptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2255 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pptr
, 4)
2256 wchar_t* __thiscall
basic_streambuf_wchar_pptr(const basic_streambuf_wchar
*this)
2258 TRACE("(%p)\n", this);
2259 return *this->pwpos
;
2262 /* ?pubimbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
2263 /* ?pubimbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
2264 /* ?pubimbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
2265 /* ?pubimbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
2266 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubimbue
, 12)
2267 locale
* __thiscall
basic_streambuf_wchar_pubimbue(basic_streambuf_wchar
*this, locale
*ret
, const locale
*loc
)
2269 TRACE("(%p %p)\n", this, loc
);
2270 memcpy(ret
, this->loc
, sizeof(locale
));
2271 call_basic_streambuf_wchar_imbue(this, loc
);
2272 locale_copy_ctor(this->loc
, loc
);
2276 /* ?seekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
2277 /* ?seekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
2278 /* ?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
2279 /* ?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
2280 #if STREAMOFF_BITS == 64
2281 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_seekoff
, 24)
2283 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_seekoff
, 20)
2285 #if _MSVCP_VER >= 100
2286 #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))
2287 #elif _MSVCP_VER >= 80
2288 #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))
2290 #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))
2292 fpos_int
* __thiscall
basic_streambuf_wchar_seekoff(basic_streambuf_wchar
*this,
2293 fpos_int
*ret
, streamoff off
, int way
, int mode
)
2295 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
2302 /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@JHH@Z */
2303 /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@_JHH@Z */
2304 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JHH@Z */
2305 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JHH@Z */
2306 #if STREAMOFF_BITS == 64
2307 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff
, 24)
2309 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff
, 20)
2311 fpos_int
* __thiscall
basic_streambuf_wchar_pubseekoff(basic_streambuf_wchar
*this,
2312 fpos_int
*ret
, streamoff off
, int way
, int mode
)
2314 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
2315 return call_basic_streambuf_wchar_seekoff(this, ret
, off
, way
, mode
);
2318 /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@JII@Z */
2319 /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@_JII@Z */
2320 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JII@Z */
2321 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JII@Z */
2322 #if STREAMOFF_BITS == 64
2323 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff_old
, 24)
2325 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff_old
, 20)
2327 fpos_int
* __thiscall
basic_streambuf_wchar_pubseekoff_old(basic_streambuf_wchar
*this,
2328 fpos_int
*ret
, streamoff off
, unsigned int way
, unsigned int mode
)
2330 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
2331 return basic_streambuf_wchar_pubseekoff(this, ret
, off
, way
, mode
);
2334 /* ?seekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
2335 /* ?seekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
2336 /* ?seekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
2337 /* ?seekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
2338 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_seekpos
, 36)
2339 #if _MSVCP_VER >= 100
2340 #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))
2341 #elif _MSVCP_VER >= 80
2342 #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))
2344 #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))
2346 fpos_int
* __thiscall
basic_streambuf_wchar_seekpos(basic_streambuf_wchar
*this,
2347 fpos_int
*ret
, fpos_int pos
, int mode
)
2349 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
2356 /* ?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@V32@H@Z */
2357 /* ?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@V32@H@Z */
2358 /* ?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@V32@H@Z */
2359 /* ?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@V32@H@Z */
2360 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekpos
, 36)
2361 fpos_int
* __thiscall
basic_streambuf_wchar_pubseekpos(basic_streambuf_wchar
*this,
2362 fpos_int
*ret
, fpos_int pos
, int mode
)
2364 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
2365 return call_basic_streambuf_wchar_seekpos(this, ret
, pos
, mode
);
2368 /* ?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@V32@I@Z */
2369 /* ?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@V32@I@Z */
2370 /* ?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@V32@I@Z */
2371 /* ?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@V32@I@Z */
2372 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekpos_old
, 36)
2373 fpos_int
* __thiscall
basic_streambuf_wchar_pubseekpos_old(basic_streambuf_wchar
*this,
2374 fpos_int
*ret
, fpos_int pos
, unsigned int mode
)
2376 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
2377 return basic_streambuf_wchar_pubseekpos(this, ret
, pos
, mode
);
2380 /* ?setbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEPAV12@PA_WH@Z */
2381 /* ?setbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAPEAV12@PEA_W_J@Z */
2382 /* ?setbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEPAV12@PAGH@Z */
2383 /* ?setbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAPEAV12@PEAG_J@Z */
2384 #if STREAMSIZE_BITS == 64
2385 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setbuf
, 16)
2387 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setbuf
, 12)
2389 #if _MSVCP_VER >= 100
2390 #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))
2391 #elif _MSVCP_VER >= 80
2392 #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))
2394 #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))
2396 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_setbuf(basic_streambuf_wchar
*this, wchar_t *buf
, streamsize count
)
2398 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
2402 /* ?pubsetbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PA_WH@Z */
2403 /* ?pubsetbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEA_W_J@Z */
2404 /* ?pubsetbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PAGH@Z */
2405 /* ?pubsetbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEAG_J@Z */
2406 #if STREAMSIZE_BITS == 64
2407 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubsetbuf
, 16)
2409 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubsetbuf
, 12)
2411 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_pubsetbuf(basic_streambuf_wchar
*this, wchar_t *buf
, streamsize count
)
2413 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
2414 return call_basic_streambuf_wchar_setbuf(this, buf
, count
);
2417 /* ?sync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHXZ */
2418 /* ?sync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAHXZ */
2419 /* ?sync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHXZ */
2420 /* ?sync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAHXZ */
2421 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sync
, 4)
2422 #if _MSVCP_VER >= 100
2423 #define call_basic_streambuf_wchar_sync(this) CALL_VTBL_FUNC(this, 52, int, (basic_streambuf_wchar*), (this))
2424 #elif _MSVCP_VER >= 80
2425 #define call_basic_streambuf_wchar_sync(this) CALL_VTBL_FUNC(this, 48, int, (basic_streambuf_wchar*), (this))
2427 #define call_basic_streambuf_wchar_sync(this) CALL_VTBL_FUNC(this, 44, int, (basic_streambuf_wchar*), (this))
2429 int __thiscall
basic_streambuf_wchar_sync(basic_streambuf_wchar
*this)
2431 TRACE("(%p)\n", this);
2435 /* ?pubsync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHXZ */
2436 /* ?pubsync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAHXZ */
2437 /* ?pubsync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHXZ */
2438 /* ?pubsync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAHXZ */
2439 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubsync
, 4)
2440 int __thiscall
basic_streambuf_wchar_pubsync(basic_streambuf_wchar
*this)
2442 TRACE("(%p)\n", this);
2443 return call_basic_streambuf_wchar_sync(this);
2446 /* ?xsgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHPA_WH@Z */
2447 /* ?xsgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEA_W_J@Z */
2448 /* ?xsgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHPAGH@Z */
2449 /* ?xsgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JPEAG_J@Z */
2450 #if STREAMSIZE_BITS == 64
2451 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsgetn
, 16)
2453 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsgetn
, 12)
2455 #if _MSVCP_VER >= 100
2456 #define call_basic_streambuf_wchar_xsgetn(this, ptr, count) CALL_VTBL_FUNC(this, 32, streamsize, (basic_streambuf_wchar*, wchar_t*, streamsize), (this, ptr, count))
2458 #define call_basic_streambuf_wchar_xsgetn(this, ptr, count) CALL_VTBL_FUNC(this, 24, streamsize, (basic_streambuf_wchar*, wchar_t*, streamsize), (this, ptr, count))
2460 streamsize __thiscall
basic_streambuf_wchar_xsgetn(basic_streambuf_wchar
*this, wchar_t *ptr
, streamsize count
)
2462 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
2463 return call_basic_streambuf_wchar__Xsgetn_s(this, ptr
, -1, count
);
2466 /* ?sgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHPA_WH@Z */
2467 /* ?sgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_J@Z */
2468 /* ?sgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHPAGH@Z */
2469 /* ?sgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_J@Z */
2470 #if STREAMSIZE_BITS == 64
2471 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sgetn
, 16)
2473 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sgetn
, 12)
2475 streamsize __thiscall
basic_streambuf_wchar_sgetn(basic_streambuf_wchar
*this, wchar_t *ptr
, streamsize count
)
2477 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
2478 return call_basic_streambuf_wchar_xsgetn(this, ptr
, count
);
2481 /* ?showmanyc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHXZ */
2482 /* ?showmanyc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JXZ */
2483 /* ?showmanyc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHXZ */
2484 /* ?showmanyc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JXZ */
2485 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_showmanyc
, 4)
2486 #if _MSVCP_VER >= 100
2487 #define call_basic_streambuf_wchar_showmanyc(this) CALL_VTBL_FUNC(this, 20, streamsize, (basic_streambuf_wchar*), (this))
2489 #define call_basic_streambuf_wchar_showmanyc(this) CALL_VTBL_FUNC(this, 12, streamsize, (basic_streambuf_wchar*), (this))
2491 streamsize __thiscall
basic_streambuf_wchar_showmanyc(basic_streambuf_wchar
*this)
2493 TRACE("(%p)\n", this);
2497 /* ?in_avail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHXZ */
2498 /* ?in_avail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JXZ */
2499 /* ?in_avail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHXZ */
2500 /* ?in_avail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JXZ */
2501 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_in_avail
, 4)
2502 streamsize __thiscall
basic_streambuf_wchar_in_avail(basic_streambuf_wchar
*this)
2506 TRACE("(%p)\n", this);
2508 ret
= basic_streambuf_wchar__Gnavail(this);
2509 return ret
? ret
: call_basic_streambuf_wchar_showmanyc(this);
2512 /* ?sputbackc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEG_W@Z */
2513 /* ?sputbackc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAG_W@Z */
2514 /* ?sputbackc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGG@Z */
2515 /* ?sputbackc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGG@Z */
2516 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputbackc
, 8)
2517 unsigned short __thiscall
basic_streambuf_wchar_sputbackc(basic_streambuf_wchar
*this, wchar_t ch
)
2519 TRACE("(%p %d)\n", this, ch
);
2520 if(*this->prpos
&& *this->prpos
>*this->prbuf
&& (*this->prpos
)[-1]==ch
) {
2526 return call_basic_streambuf_wchar_pbackfail(this, ch
);
2529 /* ?sputc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEG_W@Z */
2530 /* ?sputc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAG_W@Z */
2531 /* ?sputc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGG@Z */
2532 /* ?sputc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAHG@Z */
2533 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputc
, 8)
2534 unsigned short __thiscall
basic_streambuf_wchar_sputc(basic_streambuf_wchar
*this, wchar_t ch
)
2536 TRACE("(%p %d)\n", this, ch
);
2537 return basic_streambuf_wchar__Pnavail(this) ?
2538 (*basic_streambuf_wchar__Pninc(this) = ch
) :
2539 call_basic_streambuf_wchar_overflow(this, ch
);
2542 /* ?sungetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2543 /* ?sungetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2544 /* ?sungetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2545 /* ?sungetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2546 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sungetc
, 4)
2547 unsigned short __thiscall
basic_streambuf_wchar_sungetc(basic_streambuf_wchar
*this)
2549 TRACE("(%p)\n", this);
2550 if(*this->prpos
&& *this->prpos
>*this->prbuf
) {
2553 return **this->prpos
;
2556 return call_basic_streambuf_wchar_pbackfail(this, WEOF
);
2559 /* ?stossc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
2560 /* ?stossc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
2561 /* ?stossc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
2562 /* ?stossc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
2563 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_stossc
, 4)
2564 void __thiscall
basic_streambuf_wchar_stossc(basic_streambuf_wchar
*this)
2566 TRACE("(%p)\n", this);
2567 if(basic_streambuf_wchar__Gnavail(this))
2568 basic_streambuf_wchar__Gninc(this);
2570 call_basic_streambuf_wchar_uflow(this);
2573 /* ?sbumpc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2574 /* ?sbumpc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2575 /* ?sbumpc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2576 /* ?sbumpc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2577 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sbumpc
, 4)
2578 unsigned short __thiscall
basic_streambuf_wchar_sbumpc(basic_streambuf_wchar
*this)
2580 TRACE("(%p)\n", this);
2581 return basic_streambuf_wchar__Gnavail(this) ?
2582 *basic_streambuf_wchar__Gninc(this) : call_basic_streambuf_wchar_uflow(this);
2585 /* ?sgetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2586 /* ?sgetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2587 /* ?sgetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2588 /* ?sgetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2589 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sgetc
, 4)
2590 unsigned short __thiscall
basic_streambuf_wchar_sgetc(basic_streambuf_wchar
*this)
2592 TRACE("(%p)\n", this);
2593 return basic_streambuf_wchar__Gnavail(this) ?
2594 *basic_streambuf_wchar_gptr(this) : call_basic_streambuf_wchar_underflow(this);
2597 /* ?snextc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2598 /* ?snextc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2599 /* ?snextc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2600 /* ?snextc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2601 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_snextc
, 4)
2602 unsigned short __thiscall
basic_streambuf_wchar_snextc(basic_streambuf_wchar
*this)
2604 TRACE("(%p)\n", this);
2606 if(basic_streambuf_wchar__Gnavail(this) > 1)
2607 return *basic_streambuf_wchar__Gnpreinc(this);
2608 return basic_streambuf_wchar_sbumpc(this)==WEOF
?
2609 WEOF
: basic_streambuf_wchar_sgetc(this);
2612 /* ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHPB_WH@Z */
2613 /* ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEB_W_J@Z */
2614 /* ?xsputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHPBGH@Z */
2615 /* ?xsputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JPEBG_J@Z */
2616 #if STREAMSIZE_BITS == 64
2617 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsputn
, 16)
2619 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsputn
, 12)
2621 #if _MSVCP_VER >= 100
2622 #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))
2623 #elif _MSVCP_VER >= 80
2624 #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))
2626 #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))
2628 streamsize __thiscall
basic_streambuf_wchar_xsputn(basic_streambuf_wchar
*this, const wchar_t *ptr
, streamsize count
)
2630 streamsize copied
, chunk
;
2632 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
2634 for(copied
=0; copied
<count
;) {
2635 chunk
= basic_streambuf_wchar__Pnavail(this);
2636 if(chunk
> count
-copied
)
2637 chunk
= count
-copied
;
2640 memcpy(*this->pwpos
, ptr
+copied
, chunk
*sizeof(wchar_t));
2641 *this->pwpos
+= chunk
;
2642 *this->pwsize
-= chunk
;
2644 }else if(call_basic_streambuf_wchar_overflow(this, ptr
[copied
]) != WEOF
) {
2654 /* ?sputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHPB_WH@Z */
2655 /* ?sputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JPEB_W_J@Z */
2656 /* ?sputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHPBGH@Z */
2657 /* ?sputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JPEBG_J@Z */
2658 #if STREAMSIZE_BITS == 64
2659 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputn
, 16)
2661 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputn
, 12)
2663 streamsize __thiscall
basic_streambuf_wchar_sputn(basic_streambuf_wchar
*this, const wchar_t *ptr
, streamsize count
)
2665 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
2666 return call_basic_streambuf_wchar_xsputn(this, ptr
, count
);
2669 /* ?_Stinit@?1??_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@23@@Z@4HA */
2670 /* ?_Stinit@?1??_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@23@@Z@4HA */
2671 int basic_filebuf_char__Init__Stinit
= 0;
2673 /* ?_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@12@@Z */
2674 /* ?_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@12@@Z */
2675 DEFINE_THISCALL_WRAPPER(basic_filebuf_char__Init
, 12)
2676 void __thiscall
basic_filebuf_char__Init(basic_filebuf_char
*this, FILE *file
, basic_filebuf__Initfl which
)
2678 TRACE("(%p %p %d)\n", this, file
, which
);
2681 this->wrotesome
= FALSE
;
2682 this->state
= basic_filebuf_char__Init__Stinit
;
2683 this->close
= (which
== INITFL_open
);
2686 basic_streambuf_char__Init_empty(&this->base
);
2688 basic_streambuf_char__Init(&this->base
, &file
->_base
, &file
->_ptr
,
2689 &file
->_cnt
, &file
->_base
, &file
->_ptr
, &file
->_cnt
);
2692 /* ?_Initcvt@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAEXPAV?$codecvt@DDH@2@@Z */
2693 /* ?_Initcvt@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXPEAV?$codecvt@DDH@2@@Z */
2694 DEFINE_THISCALL_WRAPPER(basic_filebuf_char__Initcvt
, 8)
2695 void __thiscall
basic_filebuf_char__Initcvt(basic_filebuf_char
*this, codecvt_char
*cvt
)
2697 TRACE("(%p %p)\n", this, cvt
);
2699 if(codecvt_base_always_noconv(&cvt
->base
)) {
2702 basic_streambuf_char__Init_empty(&this->base
);
2707 /* ?_Endwrite@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAE_NXZ */
2708 /* ?_Endwrite@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAA_NXZ */
2709 DEFINE_THISCALL_WRAPPER(basic_filebuf_char__Endwrite
, 4)
2710 MSVCP_bool __thiscall
basic_filebuf_char__Endwrite(basic_filebuf_char
*this)
2712 TRACE("(%p)\n", this);
2714 if(!this->wrotesome
|| !this->cvt
)
2718 if(call_basic_streambuf_char_overflow(&this->base
, EOF
) == EOF
)
2722 /* TODO: check if we need a dynamic buffer here */
2727 ret
= codecvt_char_unshift(this->cvt
, &this->state
, buf
, buf
+sizeof(buf
), &next
);
2730 this->wrotesome
= FALSE
;
2732 case CODECVT_partial
:
2733 if(!fwrite(buf
, next
-buf
, 1, this->file
))
2738 case CODECVT_noconv
:
2739 if(call_basic_streambuf_char_overflow(&this->base
, EOF
) == EOF
)
2748 /* ?close@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@XZ */
2749 /* ?close@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@XZ */
2750 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_close
, 4)
2751 basic_filebuf_char
* __thiscall
basic_filebuf_char_close(basic_filebuf_char
*this)
2753 basic_filebuf_char
*ret
= this;
2755 TRACE("(%p)\n", this);
2760 /* TODO: handle exceptions */
2761 if(!basic_filebuf_char__Endwrite(this))
2763 if(fclose(this->file
))
2766 basic_filebuf_char__Init(this, NULL
, INITFL_close
);
2770 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
2771 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
2772 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_ctor_file
, 8)
2773 basic_filebuf_char
* __thiscall
basic_filebuf_char_ctor_file(basic_filebuf_char
*this, FILE *file
)
2775 TRACE("(%p %p)\n", this, file
);
2777 basic_streambuf_char_ctor(&this->base
);
2778 this->base
.vtable
= &MSVCP_basic_filebuf_char_vtable
;
2780 basic_filebuf_char__Init(this, file
, INITFL_new
);
2784 /* ??_F?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
2785 /* ??_F?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
2786 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_ctor
, 4)
2787 basic_filebuf_char
* __thiscall
basic_filebuf_char_ctor(basic_filebuf_char
*this)
2789 return basic_filebuf_char_ctor_file(this, NULL
);
2792 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAE@W4_Uninitialized@1@@Z */
2793 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
2794 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_ctor_uninitialized
, 8)
2795 basic_filebuf_char
* __thiscall
basic_filebuf_char_ctor_uninitialized(basic_filebuf_char
*this, int uninitialized
)
2797 TRACE("(%p %d)\n", this, uninitialized
);
2799 basic_streambuf_char_ctor(&this->base
);
2800 this->base
.vtable
= &MSVCP_basic_filebuf_char_vtable
;
2804 /* ??1?$basic_filebuf@DU?$char_traits@D@std@@@std@@UAE@XZ */
2805 /* ??1?$basic_filebuf@DU?$char_traits@D@std@@@std@@UEAA@XZ */
2806 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_dtor
, 4)
2807 void __thiscall
basic_filebuf_char_dtor(basic_filebuf_char
*this)
2809 TRACE("(%p)\n", this);
2812 basic_filebuf_char_close(this);
2813 basic_streambuf_char_dtor(&this->base
);
2816 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_vector_dtor
, 8)
2817 basic_filebuf_char
* __thiscall
basic_filebuf_char_vector_dtor(basic_filebuf_char
*this, unsigned int flags
)
2819 TRACE("(%p %x)\n", this, flags
);
2821 /* we have an array, with the number of elements stored before the first object */
2822 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
2824 for(i
=*ptr
-1; i
>=0; i
--)
2825 basic_filebuf_char_dtor(this+i
);
2826 MSVCRT_operator_delete(ptr
);
2828 basic_filebuf_char_dtor(this);
2830 MSVCRT_operator_delete(this);
2836 /* ?is_open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QBE_NXZ */
2837 /* ?is_open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
2838 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_is_open
, 4)
2839 MSVCP_bool __thiscall
basic_filebuf_char_is_open(const basic_filebuf_char
*this)
2841 TRACE("(%p)\n", this);
2842 return this->file
!= NULL
;
2845 /* ?_Fiopen@std@@YAPAU_iobuf@@PB_WHH@Z */
2846 /* ?_Fiopen@std@@YAPEAU_iobuf@@PEB_WHH@Z */
2847 FILE* __cdecl
_Fiopen_wchar(const wchar_t *name
, int mode
, int prot
)
2849 static const wchar_t rW
[] = {'r',0};
2850 static const struct {
2852 const wchar_t str
[4];
2853 const wchar_t str_bin
[4];
2855 {OPENMODE_out
, {'w',0}, {'w','b',0}},
2856 {OPENMODE_out
|OPENMODE_app
, {'a',0}, {'a','b',0}},
2857 {OPENMODE_app
, {'a',0}, {'a','b',0}},
2858 {OPENMODE_out
|OPENMODE_trunc
, {'w',0}, {'w','b',0}},
2859 {OPENMODE_in
, {'r',0}, {'r','b',0}},
2860 {OPENMODE_in
|OPENMODE_out
, {'r','+',0}, {'r','+','b',0}},
2861 {OPENMODE_in
|OPENMODE_out
|OPENMODE_trunc
, {'w','+',0}, {'w','+','b',0}},
2862 {OPENMODE_in
|OPENMODE_out
|OPENMODE_app
, {'a','+',0}, {'a','+','b',0}},
2863 {OPENMODE_in
|OPENMODE_app
, {'a','+',0}, {'a','+','b',0}}
2866 int real_mode
= mode
& ~(OPENMODE_ate
|OPENMODE__Nocreate
|OPENMODE__Noreplace
|OPENMODE_binary
);
2870 TRACE("(%s %d %d)\n", debugstr_w(name
), mode
, prot
);
2872 for(mode_idx
=0; mode_idx
<sizeof(str_mode
)/sizeof(str_mode
[0]); mode_idx
++)
2873 if(str_mode
[mode_idx
].mode
== real_mode
)
2875 if(mode_idx
== sizeof(str_mode
)/sizeof(str_mode
[0]))
2878 if((mode
& OPENMODE__Nocreate
) && !(f
= _wfopen(name
, rW
)))
2883 if((mode
& OPENMODE__Noreplace
) && (mode
& (OPENMODE_out
|OPENMODE_app
))
2884 && (f
= _wfopen(name
, rW
))) {
2889 #if _MSVCP_VER < 80 /* msvcp60 - msvcp71 are ignoring prot argument */
2893 f
= _wfsopen(name
, (mode
& OPENMODE_binary
) ? str_mode
[mode_idx
].str_bin
2894 : str_mode
[mode_idx
].str
, prot
);
2898 if((mode
& OPENMODE_ate
) && fseek(f
, 0, SEEK_END
)) {
2906 /* ?_Fiopen@std@@YAPAU_iobuf@@PBDHH@Z */
2907 /* ?_Fiopen@std@@YAPEAU_iobuf@@PEBDHH@Z */
2908 FILE* __cdecl
_Fiopen(const char *name
, int mode
, int prot
)
2910 wchar_t nameW
[FILENAME_MAX
];
2912 TRACE("(%s %d %d)\n", name
, mode
, prot
);
2914 if(mbstowcs_s(NULL
, nameW
, FILENAME_MAX
, name
, FILENAME_MAX
-1) != 0)
2916 return _Fiopen_wchar(nameW
, mode
, prot
);
2919 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PB_WHH@Z */
2920 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEB_WHH@Z */
2921 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBGHH@Z */
2922 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBGHH@Z */
2923 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open_wchar
, 16)
2924 basic_filebuf_char
* __thiscall
basic_filebuf_char_open_wchar(basic_filebuf_char
*this, const wchar_t *name
, int mode
, int prot
)
2928 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
2930 if(basic_filebuf_char_is_open(this))
2933 if(!(f
= _Fiopen_wchar(name
, mode
, prot
)))
2936 basic_filebuf_char__Init(this, f
, INITFL_open
);
2937 basic_filebuf_char__Initcvt(this, codecvt_char_use_facet(this->base
.loc
));
2941 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PB_WI@Z */
2942 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEB_WI@Z */
2943 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBGI@Z */
2944 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBGI@Z */
2945 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open_wchar_mode
, 12)
2946 basic_filebuf_char
* __thiscall
basic_filebuf_char_open_wchar_mode(basic_filebuf_char
*this, const wchar_t *name
, unsigned int mode
)
2948 return basic_filebuf_char_open_wchar(this, name
, mode
, SH_DENYNO
);
2951 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDHH@Z */
2952 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDHH@Z */
2953 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open
, 16)
2954 basic_filebuf_char
* __thiscall
basic_filebuf_char_open(basic_filebuf_char
*this, const char *name
, int mode
, int prot
)
2956 wchar_t nameW
[FILENAME_MAX
];
2958 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
2960 if(mbstowcs_s(NULL
, nameW
, FILENAME_MAX
, name
, FILENAME_MAX
-1) != 0)
2962 return basic_filebuf_char_open_wchar(this, nameW
, mode
, prot
);
2965 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDI@Z */
2966 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDI@Z */
2967 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open_mode
, 12)
2968 basic_filebuf_char
* __thiscall
basic_filebuf_char_open_mode(basic_filebuf_char
*this, const char *name
, unsigned int mode
)
2970 return basic_filebuf_char_open(this, name
, mode
, SH_DENYNO
);
2973 /* ?overflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHH@Z */
2974 /* ?overflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z */
2975 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_overflow
, 8)
2976 int __thiscall
basic_filebuf_char_overflow(basic_filebuf_char
*this, int c
)
2978 char buf
[8], *dyn_buf
;
2979 char ch
= c
, *to_next
;
2980 const char *from_next
;
2984 TRACE("(%p %d)\n", this, c
);
2986 if(!basic_filebuf_char_is_open(this))
2992 return fwrite(&ch
, sizeof(char), 1, this->file
) ? c
: EOF
;
2996 ret
= codecvt_char_out(this->cvt
, &this->state
, from_next
, &ch
+1,
2997 &from_next
, buf
, buf
+sizeof(buf
), &to_next
);
3000 case CODECVT_partial
:
3005 if(!fwrite(buf
, to_next
-buf
, 1, this->file
))
3007 if(ret
== CODECVT_partial
)
3010 case CODECVT_noconv
:
3011 return fwrite(&ch
, sizeof(char), 1, this->file
) ? c
: EOF
;
3019 max_size
= codecvt_base_max_length(&this->cvt
->base
);
3020 dyn_buf
= malloc(max_size
);
3024 ret
= codecvt_char_out(this->cvt
, &this->state
, from_next
, &ch
+1,
3025 &from_next
, dyn_buf
, dyn_buf
+max_size
, &to_next
);
3029 ret
= fwrite(dyn_buf
, to_next
-dyn_buf
, 1, this->file
);
3031 return ret
? c
: EOF
;
3032 case CODECVT_partial
:
3033 ERR("buffer should be big enough to store all output\n");
3041 /* ?pbackfail@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHH@Z */
3042 /* ?pbackfail@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z */
3043 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_pbackfail
, 8)
3044 int __thiscall
basic_filebuf_char_pbackfail(basic_filebuf_char
*this, int c
)
3046 TRACE("(%p %d)\n", this, c
);
3048 if(!basic_filebuf_char_is_open(this))
3051 if(basic_streambuf_char_gptr(&this->base
)>basic_streambuf_char_eback(&this->base
)
3052 && (c
==EOF
|| (int)(unsigned char)basic_streambuf_char_gptr(&this->base
)[-1]==c
)) {
3053 basic_streambuf_char__Gndec(&this->base
);
3054 return c
==EOF
? !c
: c
;
3055 }else if(c
!=EOF
&& !this->cvt
) {
3056 return ungetc(c
, this->file
);
3062 /* ?uflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
3063 /* ?uflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
3064 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_uflow
, 4)
3065 int __thiscall
basic_filebuf_char_uflow(basic_filebuf_char
*this)
3067 char ch
, buf
[128], *to_next
;
3068 const char *buf_next
;
3072 TRACE("(%p)\n", this);
3074 if(!basic_filebuf_char_is_open(this))
3077 if(basic_streambuf_char_gptr(&this->base
) < basic_streambuf_char_egptr(&this->base
))
3078 return (unsigned char)*basic_streambuf_char__Gninc(&this->base
);
3080 c
= fgetc(this->file
);
3081 if(!this->cvt
|| c
==EOF
)
3085 for(i
=0; i
< sizeof(buf
)/sizeof(buf
[0]); i
++) {
3088 switch(codecvt_char_in(this->cvt
, &this->state
, buf_next
,
3089 buf
+i
+1, &buf_next
, &ch
, &ch
+1, &to_next
)) {
3090 case CODECVT_partial
:
3092 if(to_next
== &ch
) {
3093 c
= fgetc(this->file
);
3099 for(j
= --i
; j
>= buf_next
-buf
; j
--)
3100 ungetc(buf
[j
], this->file
);
3102 case CODECVT_noconv
:
3103 return (unsigned char)buf
[0];
3109 FIXME("buffer is too small\n");
3113 /* ?underflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
3114 /* ?underflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
3115 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_underflow
, 4)
3116 int __thiscall
basic_filebuf_char_underflow(basic_filebuf_char
*this)
3120 TRACE("(%p)\n", this);
3122 if(basic_streambuf_char_gptr(&this->base
) < basic_streambuf_char_egptr(&this->base
))
3123 return (unsigned char)*basic_streambuf_char_gptr(&this->base
);
3125 ret
= call_basic_streambuf_char_uflow(&this->base
);
3127 ret
= call_basic_streambuf_char_pbackfail(&this->base
, ret
);
3131 /* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
3132 /* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
3133 #if STREAMOFF_BITS == 64
3134 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_seekoff
, 24)
3136 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_seekoff
, 20)
3138 fpos_int
* __thiscall
basic_filebuf_char_seekoff(basic_filebuf_char
*this,
3139 fpos_int
*ret
, streamoff off
, int way
, int mode
)
3143 TRACE("(%p %p %s %d %d)\n", this, ret
, wine_dbgstr_longlong(off
), way
, mode
);
3145 if(!basic_filebuf_char_is_open(this) || !basic_filebuf_char__Endwrite(this)
3146 || fseek(this->file
, off
, way
)) {
3153 fgetpos(this->file
, &pos
);
3156 ret
->state
= this->state
;
3160 /* ?seekpos@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
3161 /* ?seekpos@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
3162 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_seekpos
, 36)
3163 fpos_int
* __thiscall
basic_filebuf_char_seekpos(basic_filebuf_char
*this,
3164 fpos_int
*ret
, fpos_int pos
, int mode
)
3168 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_int(&pos
), mode
);
3170 if(!basic_filebuf_char_is_open(this) || !basic_filebuf_char__Endwrite(this)
3171 || fseek(this->file
, (LONG
)pos
.pos
, SEEK_SET
)
3172 || (pos
.off
&& fseek(this->file
, pos
.off
, SEEK_CUR
))) {
3179 fgetpos(this->file
, &fpos
);
3182 ret
->state
= this->state
;
3186 /* ?setbuf@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PADH@Z */
3187 /* ?setbuf@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PEAD_J@Z */
3188 #if STREAMSIZE_BITS == 64
3189 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_setbuf
, 16)
3191 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_setbuf
, 12)
3193 basic_streambuf_char
* __thiscall
basic_filebuf_char_setbuf(basic_filebuf_char
*this, char *buf
, streamsize count
)
3195 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
3197 if(!basic_filebuf_char_is_open(this))
3200 if(setvbuf(this->file
, buf
, (buf
==NULL
&& count
==0) ? _IONBF
: _IOFBF
, count
))
3203 basic_filebuf_char__Init(this, this->file
, INITFL_open
);
3207 /* ?sync@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
3208 /* ?sync@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
3209 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_sync
, 4)
3210 int __thiscall
basic_filebuf_char_sync(basic_filebuf_char
*this)
3212 TRACE("(%p)\n", this);
3214 if(!basic_filebuf_char_is_open(this))
3217 if(call_basic_streambuf_char_overflow(&this->base
, EOF
) == EOF
)
3219 return fflush(this->file
);
3222 /* ?imbue@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEXABVlocale@2@@Z */
3223 /* ?imbue@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAXAEBVlocale@2@@Z */
3224 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_imbue
, 8)
3225 void __thiscall
basic_filebuf_char_imbue(basic_filebuf_char
*this, const locale
*loc
)
3227 TRACE("(%p %p)\n", this, loc
);
3228 basic_filebuf_char__Initcvt(this, codecvt_char_use_facet(loc
));
3231 /* ?_Stinit@?1??_Init@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@23@@Z@4HA */
3232 /* ?_Stinit@?1??_Init@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@23@@Z@4HA */
3233 int basic_filebuf_wchar__Init__Stinit
= 0;
3235 /* ?_Stinit@?1??_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@23@@Z@4HA */
3236 /* ?_Stinit@?1??_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@23@@Z@4HA */
3237 int basic_filebuf_short__Init__Stinit
= 0;
3239 /* ?_Init@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@12@@Z */
3240 /* ?_Init@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@12@@Z */
3241 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar__Init
, 12)
3242 void __thiscall
basic_filebuf_wchar__Init(basic_filebuf_wchar
*this, FILE *file
, basic_filebuf__Initfl which
)
3244 TRACE("(%p %p %d)\n", this, file
, which
);
3247 this->wrotesome
= FALSE
;
3248 this->state
= basic_filebuf_wchar__Init__Stinit
;
3249 this->close
= (which
== INITFL_open
);
3252 basic_streambuf_wchar__Init_empty(&this->base
);
3255 /* ?_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@12@@Z */
3256 /* ?_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@12@@Z */
3257 DEFINE_THISCALL_WRAPPER(basic_filebuf_short__Init
, 12)
3258 void __thiscall
basic_filebuf_short__Init(basic_filebuf_wchar
*this, FILE *file
, basic_filebuf__Initfl which
)
3260 TRACE("(%p %p %d)\n", this, file
, which
);
3263 this->wrotesome
= FALSE
;
3264 this->state
= basic_filebuf_short__Init__Stinit
;
3265 this->close
= (which
== INITFL_open
);
3268 basic_streambuf_wchar__Init_empty(&this->base
);
3271 /* ?_Initcvt@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IAEXPAV?$codecvt@_WDH@2@@Z */
3272 /* ?_Initcvt@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEAV?$codecvt@_WDH@2@@Z */
3273 /* ?_Initcvt@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAEXPAV?$codecvt@GDH@2@@Z */
3274 /* ?_Initcvt@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAAXPEAV?$codecvt@GDH@2@@Z */
3275 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar__Initcvt
, 8)
3276 void __thiscall
basic_filebuf_wchar__Initcvt(basic_filebuf_wchar
*this, codecvt_wchar
*cvt
)
3278 TRACE("(%p %p)\n", this, cvt
);
3280 if(codecvt_base_always_noconv(&cvt
->base
)) {
3283 basic_streambuf_wchar__Init_empty(&this->base
);
3288 /* ?_Endwrite@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IAE_NXZ */
3289 /* ?_Endwrite@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IEAA_NXZ */
3290 /* ?_Endwrite@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAE_NXZ */
3291 /* ?_Endwrite@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAA_NXZ */
3292 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar__Endwrite
, 4)
3293 MSVCP_bool __thiscall
basic_filebuf_wchar__Endwrite(basic_filebuf_wchar
*this)
3295 TRACE("(%p)\n", this);
3297 if(!this->wrotesome
|| !this->cvt
)
3300 if(call_basic_streambuf_wchar_overflow(&this->base
, WEOF
) == WEOF
)
3304 /* TODO: check if we need a dynamic buffer here */
3309 ret
= codecvt_wchar_unshift(this->cvt
, &this->state
, buf
, buf
+sizeof(buf
), &next
);
3312 this->wrotesome
= FALSE
;
3314 case CODECVT_partial
:
3315 if(!fwrite(buf
, next
-buf
, 1, this->file
))
3320 case CODECVT_noconv
:
3321 if(call_basic_streambuf_wchar_overflow(&this->base
, WEOF
) == WEOF
)
3330 /* ?close@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@XZ */
3331 /* ?close@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@XZ */
3332 /* ?close@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@XZ */
3333 /* ?close@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@XZ */
3334 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_close
, 4)
3335 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_close(basic_filebuf_wchar
*this)
3337 basic_filebuf_wchar
*ret
= this;
3339 TRACE("(%p)\n", this);
3344 /* TODO: handle exceptions */
3345 if(!basic_filebuf_wchar__Endwrite(this))
3347 if(fclose(this->file
))
3350 basic_filebuf_wchar__Init(this, NULL
, INITFL_close
);
3354 /* ??0?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
3355 /* ??0?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
3356 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_ctor_file
, 8)
3357 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_ctor_file(basic_filebuf_wchar
*this, FILE *file
)
3359 TRACE("(%p %p)\n", this, file
);
3361 basic_streambuf_wchar_ctor(&this->base
);
3362 this->base
.vtable
= &MSVCP_basic_filebuf_wchar_vtable
;
3364 basic_filebuf_wchar__Init(this, file
, INITFL_new
);
3368 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
3369 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
3370 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_ctor_file
, 8)
3371 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_ctor_file(basic_filebuf_wchar
*this, FILE *file
)
3373 TRACE("(%p %p)\n", this, file
);
3375 basic_streambuf_short_ctor(&this->base
);
3376 this->base
.vtable
= &MSVCP_basic_filebuf_short_vtable
;
3378 basic_filebuf_short__Init(this, file
, INITFL_new
);
3382 /* ??_F?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
3383 /* ??_F?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
3384 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_ctor
, 4)
3385 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_ctor(basic_filebuf_wchar
*this)
3387 return basic_filebuf_wchar_ctor_file(this, NULL
);
3390 /* ??_F?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
3391 /* ??_F?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
3392 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_ctor
, 4)
3393 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_ctor(basic_filebuf_wchar
*this)
3395 return basic_filebuf_short_ctor_file(this, NULL
);
3398 /* ??0?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAE@W4_Uninitialized@1@@Z */
3399 /* ??0?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
3400 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_ctor_uninitialized
, 8)
3401 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_ctor_uninitialized(basic_filebuf_wchar
*this, int uninitialized
)
3403 TRACE("(%p %d)\n", this, uninitialized
);
3405 basic_streambuf_wchar_ctor(&this->base
);
3406 this->base
.vtable
= &MSVCP_basic_filebuf_wchar_vtable
;
3410 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAE@W4_Uninitialized@1@@Z */
3411 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
3412 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_ctor_uninitialized
, 8)
3413 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_ctor_uninitialized(basic_filebuf_wchar
*this, int uninitialized
)
3415 TRACE("(%p %d)\n", this, uninitialized
);
3417 basic_streambuf_short_ctor(&this->base
);
3418 this->base
.vtable
= &MSVCP_basic_filebuf_short_vtable
;
3422 /* ??1?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
3423 /* ??1?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
3424 /* ??1?$basic_filebuf@GU?$char_traits@G@std@@@std@@UAE@XZ */
3425 /* ??1?$basic_filebuf@GU?$char_traits@G@std@@@std@@UEAA@XZ */
3426 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_dtor
, 4)
3427 void __thiscall
basic_filebuf_wchar_dtor(basic_filebuf_wchar
*this)
3429 TRACE("(%p)\n", this);
3432 basic_filebuf_wchar_close(this);
3433 basic_streambuf_wchar_dtor(&this->base
);
3436 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_vector_dtor
, 8)
3437 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_vector_dtor(basic_filebuf_wchar
*this, unsigned int flags
)
3439 TRACE("(%p %x)\n", this, flags
);
3441 /* we have an array, with the number of elements stored before the first object */
3442 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
3444 for(i
=*ptr
-1; i
>=0; i
--)
3445 basic_filebuf_wchar_dtor(this+i
);
3446 MSVCRT_operator_delete(ptr
);
3448 basic_filebuf_wchar_dtor(this);
3450 MSVCRT_operator_delete(this);
3456 /* ?is_open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
3457 /* ?is_open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
3458 /* ?is_open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QBE_NXZ */
3459 /* ?is_open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
3460 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_is_open
, 4)
3461 MSVCP_bool __thiscall
basic_filebuf_wchar_is_open(const basic_filebuf_wchar
*this)
3463 TRACE("(%p)\n", this);
3464 return this->file
!= NULL
;
3467 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PB_WHH@Z */
3468 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEB_WHH@Z */
3469 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBGHH@Z */
3470 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBGHH@Z */
3471 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open_wchar
, 16)
3472 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_open_wchar(basic_filebuf_wchar
*this, const wchar_t *name
, int mode
, int prot
)
3476 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
3478 if(basic_filebuf_wchar_is_open(this))
3481 if(!(f
= _Fiopen_wchar(name
, mode
, prot
)))
3484 basic_filebuf_wchar__Init(this, f
, INITFL_open
);
3485 basic_filebuf_wchar__Initcvt(this, codecvt_wchar_use_facet(this->base
.loc
));
3489 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PB_WHH@Z */
3490 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEB_WHH@Z */
3491 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBGHH@Z */
3492 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBGHH@Z */
3493 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_open_wchar
, 16)
3494 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_open_wchar(basic_filebuf_wchar
*this, const wchar_t *name
, int mode
, int prot
)
3498 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
3500 if(basic_filebuf_wchar_is_open(this))
3503 if(!(f
= _Fiopen_wchar(name
, mode
, prot
)))
3506 basic_filebuf_short__Init(this, f
, INITFL_open
);
3507 basic_filebuf_wchar__Initcvt(this, codecvt_short_use_facet(this->base
.loc
));
3511 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PB_WI@Z */
3512 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEB_WI@Z */
3513 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBGI@Z */
3514 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBGI@Z */
3515 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open_wchar_mode
, 12)
3516 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_open_wchar_mode(basic_filebuf_wchar
*this, const wchar_t *name
, unsigned int mode
)
3518 return basic_filebuf_wchar_open_wchar(this, name
, mode
, SH_DENYNO
);
3521 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PB_WI@Z */
3522 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEB_WI@Z */
3523 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBGI@Z */
3524 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBGI@Z */
3525 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_open_wchar_mode
, 12)
3526 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_open_wchar_mode(basic_filebuf_wchar
*this, const wchar_t *name
, unsigned int mode
)
3528 return basic_filebuf_short_open_wchar(this, name
, mode
, SH_DENYNO
);
3531 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBDHH@Z */
3532 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBDHH@Z */
3533 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open
, 16)
3534 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_open(basic_filebuf_wchar
*this, const char *name
, int mode
, int prot
)
3536 wchar_t nameW
[FILENAME_MAX
];
3538 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
3540 if(mbstowcs_s(NULL
, nameW
, FILENAME_MAX
, name
, FILENAME_MAX
-1) != 0)
3542 return basic_filebuf_wchar_open_wchar(this, nameW
, mode
, prot
);
3545 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDHH@Z */
3546 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDHH@Z */
3547 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_open
, 16)
3548 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_open(basic_filebuf_wchar
*this, const char *name
, int mode
, int prot
)
3550 wchar_t nameW
[FILENAME_MAX
];
3552 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
3554 if(mbstowcs_s(NULL
, nameW
, FILENAME_MAX
, name
, FILENAME_MAX
-1) != 0)
3556 return basic_filebuf_short_open_wchar(this, nameW
, mode
, prot
);
3559 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBDI@Z */
3560 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBDI@Z */
3561 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open_mode
, 12)
3562 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_open_mode(basic_filebuf_wchar
*this, const char *name
, unsigned int mode
)
3564 return basic_filebuf_wchar_open(this, name
, mode
, SH_DENYNO
);
3567 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDI@Z */
3568 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDI@Z */
3569 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_open_mode
, 12)
3570 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_open_mode(basic_filebuf_wchar
*this, const char *name
, unsigned int mode
)
3572 return basic_filebuf_short_open(this, name
, mode
, SH_DENYNO
);
3575 /* ?overflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
3576 /* ?overflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
3577 /* ?overflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
3578 /* ?overflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
3579 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_overflow
, 8)
3580 unsigned short __thiscall
basic_filebuf_wchar_overflow(basic_filebuf_wchar
*this, unsigned short c
)
3582 char buf
[8], *dyn_buf
, *to_next
;
3584 const wchar_t *from_next
;
3589 TRACE("(%p %d)\n", this, c
);
3591 if(!basic_filebuf_wchar_is_open(this))
3597 return fwrite(&ch
, sizeof(wchar_t), 1, this->file
) ? c
: WEOF
;
3601 ret
= codecvt_wchar_out(this->cvt
, &this->state
, from_next
, &ch
+1,
3602 &from_next
, buf
, buf
+sizeof(buf
), &to_next
);
3605 case CODECVT_partial
:
3610 if(!fwrite(buf
, to_next
-buf
, 1, this->file
))
3612 if(ret
== CODECVT_partial
)
3615 case CODECVT_noconv
:
3616 return fwrite(&ch
, sizeof(wchar_t), 1, this->file
) ? c
: WEOF
;
3624 max_size
= codecvt_base_max_length(&this->cvt
->base
);
3625 dyn_buf
= malloc(max_size
);
3629 ret
= codecvt_wchar_out(this->cvt
, &this->state
, from_next
, &ch
+1,
3630 &from_next
, dyn_buf
, dyn_buf
+max_size
, &to_next
);
3634 ret
= fwrite(dyn_buf
, to_next
-dyn_buf
, 1, this->file
);
3636 return ret
? c
: WEOF
;
3637 case CODECVT_partial
:
3638 ERR("buffer should be big enough to store all output\n");
3646 /* ?pbackfail@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
3647 /* ?pbackfail@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
3648 /* ?pbackfail@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
3649 /* ?pbackfail@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
3650 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_pbackfail
, 8)
3651 unsigned short __thiscall
basic_filebuf_wchar_pbackfail(basic_filebuf_wchar
*this, unsigned short c
)
3653 TRACE("(%p %d)\n", this, c
);
3655 if(!basic_filebuf_wchar_is_open(this))
3658 if(basic_streambuf_wchar_gptr(&this->base
)>basic_streambuf_wchar_eback(&this->base
)
3659 && (c
==WEOF
|| basic_streambuf_wchar_gptr(&this->base
)[-1]==c
)) {
3660 basic_streambuf_wchar__Gndec(&this->base
);
3661 return c
==WEOF
? !c
: c
;
3662 }else if(c
!=WEOF
&& !this->cvt
) {
3663 return ungetwc(c
, this->file
);
3664 }else if(c
!=WEOF
&& basic_streambuf_wchar_gptr(&this->base
)!=&this->putback
) {
3666 basic_streambuf_wchar_setg(&this->base
, &this->putback
, &this->putback
, &this->putback
+1);
3673 /* ?uflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
3674 /* ?uflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
3675 /* ?uflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
3676 /* ?uflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
3677 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_uflow
, 4)
3678 unsigned short __thiscall
basic_filebuf_wchar_uflow(basic_filebuf_wchar
*this)
3680 wchar_t ch
, *to_next
;
3682 const char *buf_next
;
3686 TRACE("(%p)\n", this);
3688 if(!basic_filebuf_wchar_is_open(this))
3691 if(basic_streambuf_wchar_gptr(&this->base
) < basic_streambuf_wchar_egptr(&this->base
))
3692 return *basic_streambuf_wchar__Gninc(&this->base
);
3695 return fgetwc(this->file
);
3698 for(i
=0; i
< sizeof(buf
)/sizeof(buf
[0]); i
++) {
3699 if((c
= fgetc(this->file
)) == EOF
)
3703 switch(codecvt_wchar_in(this->cvt
, &this->state
, buf_next
,
3704 buf
+i
+1, &buf_next
, &ch
, &ch
+1, &to_next
)) {
3705 case CODECVT_partial
:
3710 for(j
= --i
; j
>= buf_next
-buf
; j
--)
3711 ungetc(buf
[j
], this->file
);
3713 case CODECVT_noconv
:
3714 if(i
+1 < sizeof(wchar_t))
3717 memcpy(&ch
, buf
, sizeof(wchar_t));
3724 FIXME("buffer is too small\n");
3728 /* ?underflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
3729 /* ?underflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
3730 /* ?underflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
3731 /* ?underflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
3732 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_underflow
, 4)
3733 unsigned short __thiscall
basic_filebuf_wchar_underflow(basic_filebuf_wchar
*this)
3737 TRACE("(%p)\n", this);
3739 if(basic_streambuf_wchar_gptr(&this->base
) < basic_streambuf_wchar_egptr(&this->base
))
3740 return *basic_streambuf_wchar_gptr(&this->base
);
3742 ret
= call_basic_streambuf_wchar_uflow(&this->base
);
3744 ret
= call_basic_streambuf_wchar_pbackfail(&this->base
, ret
);
3748 /* ?seekoff@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
3749 /* ?seekoff@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
3750 /* ?seekoff@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
3751 /* ?seekoff@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
3752 #if STREAMOFF_BITS == 64
3753 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_seekoff
, 24)
3755 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_seekoff
, 20)
3757 fpos_int
* __thiscall
basic_filebuf_wchar_seekoff(basic_filebuf_wchar
*this,
3758 fpos_int
*ret
, streamoff off
, int way
, int mode
)
3762 TRACE("(%p %p %s %d %d)\n", this, ret
, wine_dbgstr_longlong(off
), way
, mode
);
3764 if(basic_streambuf_wchar_gptr(&this->base
) == &this->putback
) {
3765 if(way
== SEEKDIR_cur
)
3766 off
-= sizeof(wchar_t);
3768 basic_streambuf_wchar_setg(&this->base
, &this->putback
, &this->putback
+1, &this->putback
+1);
3771 if(!basic_filebuf_wchar_is_open(this) || !basic_filebuf_wchar__Endwrite(this)
3772 || fseek(this->file
, off
, way
)) {
3779 fgetpos(this->file
, &pos
);
3782 ret
->state
= this->state
;
3786 /* ?seekpos@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
3787 /* ?seekpos@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
3788 /* ?seekpos@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
3789 /* ?seekpos@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
3790 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_seekpos
, 36)
3791 fpos_int
* __thiscall
basic_filebuf_wchar_seekpos(basic_filebuf_wchar
*this,
3792 fpos_int
*ret
, fpos_int pos
, int mode
)
3796 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_int(&pos
), mode
);
3798 if(!basic_filebuf_wchar_is_open(this) || !basic_filebuf_wchar__Endwrite(this)
3799 || fseek(this->file
, (LONG
)pos
.pos
, SEEK_SET
)
3800 || (pos
.off
&& fseek(this->file
, pos
.off
, SEEK_CUR
))) {
3807 if(basic_streambuf_wchar_gptr(&this->base
) == &this->putback
)
3808 basic_streambuf_wchar_setg(&this->base
, &this->putback
, &this->putback
+1, &this->putback
+1);
3810 fgetpos(this->file
, &fpos
);
3813 ret
->state
= this->state
;
3817 /* ?setbuf@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PA_WH@Z */
3818 /* ?setbuf@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PEA_W_J@Z */
3819 #if STREAMSIZE_BITS == 64
3820 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_setbuf
, 16)
3822 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_setbuf
, 12)
3824 basic_streambuf_wchar
* __thiscall
basic_filebuf_wchar_setbuf(basic_filebuf_wchar
*this, wchar_t *buf
, streamsize count
)
3826 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
3828 if(!basic_filebuf_wchar_is_open(this))
3831 if(setvbuf(this->file
, (char*)buf
, (buf
==NULL
&& count
==0) ? _IONBF
: _IOFBF
, count
*sizeof(wchar_t)))
3834 basic_filebuf_wchar__Init(this, this->file
, INITFL_open
);
3838 /* ?setbuf@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PAGH@Z */
3839 /* ?setbuf@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PEAG_J@Z */
3840 #if STREAMSIZE_BITS == 64
3841 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_setbuf
, 16)
3843 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_setbuf
, 12)
3845 basic_streambuf_wchar
* __thiscall
basic_filebuf_short_setbuf(basic_filebuf_wchar
*this, wchar_t *buf
, streamsize count
)
3847 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
3849 if(!basic_filebuf_wchar_is_open(this))
3852 if(setvbuf(this->file
, (char*)buf
, (buf
==NULL
&& count
==0) ? _IONBF
: _IOFBF
, count
*sizeof(wchar_t)))
3855 basic_filebuf_short__Init(this, this->file
, INITFL_open
);
3859 /* ?sync@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEHXZ */
3860 /* ?sync@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAHXZ */
3861 /* ?sync@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEHXZ */
3862 /* ?sync@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAHXZ */
3863 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_sync
, 4)
3864 int __thiscall
basic_filebuf_wchar_sync(basic_filebuf_wchar
*this)
3866 TRACE("(%p)\n", this);
3868 if(!basic_filebuf_wchar_is_open(this))
3871 if(call_basic_streambuf_wchar_overflow(&this->base
, WEOF
) == WEOF
)
3873 return fflush(this->file
);
3876 /* ?imbue@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEXABVlocale@2@@Z */
3877 /* ?imbue@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAXAEBVlocale@2@@Z */
3878 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_imbue
, 8)
3879 void __thiscall
basic_filebuf_wchar_imbue(basic_filebuf_wchar
*this, const locale
*loc
)
3881 TRACE("(%p %p)\n", this, loc
);
3882 basic_filebuf_wchar__Initcvt(this, codecvt_wchar_use_facet(loc
));
3885 /* ?imbue@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEXABVlocale@2@@Z */
3886 /* ?imbue@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAXAEBVlocale@2@@Z */
3887 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_imbue
, 8)
3888 void __thiscall
basic_filebuf_short_imbue(basic_filebuf_wchar
*this, const locale
*loc
)
3890 TRACE("(%p %p)\n", this, loc
);
3891 basic_filebuf_wchar__Initcvt(this, codecvt_short_use_facet(loc
));
3894 /* ?_Getstate@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEHH@Z */
3895 /* ?_Getstate@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAHH@Z */
3896 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char__Getstate
, 8)
3897 int __thiscall
basic_stringbuf_char__Getstate(basic_stringbuf_char
*this, IOSB_openmode mode
)
3901 if(!(mode
& OPENMODE_in
))
3902 state
|= STRINGBUF_no_read
;
3904 if(!(mode
& OPENMODE_out
))
3905 state
|= STRINGBUF_no_write
;
3907 if(mode
& OPENMODE_ate
)
3908 state
|= STRINGBUF_at_end
;
3910 if(mode
& OPENMODE_app
)
3911 state
|= STRINGBUF_append
;
3916 /* ?_Init@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXPBDIH@Z */
3917 /* ?_Init@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAXPEBD_KH@Z */
3918 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char__Init
, 16)
3919 void __thiscall
basic_stringbuf_char__Init(basic_stringbuf_char
*this, const char *str
, MSVCP_size_t count
, int state
)
3921 TRACE("(%p, %p, %ld, %d)\n", this, str
, count
, state
);
3923 basic_streambuf_char__Init_empty(&this->base
);
3925 this->state
= state
;
3926 this->seekhigh
= NULL
;
3929 char *buf
= MSVCRT_operator_new(count
);
3931 ERR("Out of memory\n");
3932 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
3935 memcpy(buf
, str
, count
);
3936 this->seekhigh
= buf
+ count
;
3938 this->state
|= STRINGBUF_allocated
;
3940 if(!(state
& STRINGBUF_no_read
))
3941 basic_streambuf_char_setg(&this->base
, buf
, buf
, buf
+ count
);
3943 if(!(state
& STRINGBUF_no_write
)) {
3944 basic_streambuf_char_setp_next(&this->base
, buf
, (state
& STRINGBUF_at_end
) ? buf
+ count
: buf
, buf
+ count
);
3946 if(!basic_streambuf_char_gptr(&this->base
))
3947 basic_streambuf_char_setg(&this->base
, buf
, 0, buf
);
3952 /* ??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 */
3953 /* ??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 */
3954 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_ctor_str
, 12)
3955 basic_stringbuf_char
* __thiscall
basic_stringbuf_char_ctor_str(basic_stringbuf_char
*this,
3956 const basic_string_char
*str
, IOSB_openmode mode
)
3958 TRACE("(%p %p %d)\n", this, str
, mode
);
3960 basic_streambuf_char_ctor(&this->base
);
3961 this->base
.vtable
= &MSVCP_basic_stringbuf_char_vtable
;
3963 basic_stringbuf_char__Init(this, MSVCP_basic_string_char_c_str(str
),
3964 str
->size
, basic_stringbuf_char__Getstate(this, mode
));
3968 /* ??0?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
3969 /* ??0?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
3970 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_ctor_mode
, 8)
3971 basic_stringbuf_char
* __thiscall
basic_stringbuf_char_ctor_mode(
3972 basic_stringbuf_char
*this, IOSB_openmode mode
)
3974 TRACE("(%p %d)\n", this, mode
);
3976 basic_streambuf_char_ctor(&this->base
);
3977 this->base
.vtable
= &MSVCP_basic_stringbuf_char_vtable
;
3979 basic_stringbuf_char__Init(this, NULL
, 0, basic_stringbuf_char__Getstate(this, mode
));
3983 /* ??_F?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
3984 /* ??_F?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
3985 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_ctor
, 4)
3986 basic_stringbuf_char
* __thiscall
basic_stringbuf_char_ctor(basic_stringbuf_char
*this)
3988 return basic_stringbuf_char_ctor_mode(this, OPENMODE_in
|OPENMODE_out
);
3991 /* ?_Tidy@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXXZ */
3992 /* ?_Tidy@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAXXZ */
3993 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char__Tidy
, 4)
3994 void __thiscall
basic_stringbuf_char__Tidy(basic_stringbuf_char
*this)
3996 TRACE("(%p)\n", this);
3998 if(this->state
& STRINGBUF_allocated
) {
3999 MSVCRT_operator_delete(basic_streambuf_char_eback(&this->base
));
4000 this->seekhigh
= NULL
;
4001 this->state
&= ~STRINGBUF_allocated
;
4004 basic_streambuf_char__Init_empty(&this->base
);
4007 /* ??1?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
4008 /* ??1?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
4009 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_dtor
, 4)
4010 void __thiscall
basic_stringbuf_char_dtor(basic_stringbuf_char
*this)
4012 TRACE("(%p)\n", this);
4014 basic_stringbuf_char__Tidy(this);
4015 basic_streambuf_char_dtor(&this->base
);
4018 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_vector_dtor
, 8)
4019 basic_stringbuf_char
* __thiscall
basic_stringbuf_char_vector_dtor(basic_stringbuf_char
*this, unsigned int flags
)
4021 TRACE("(%p %x)\n", this, flags
);
4024 /* we have an array, with the number of elements stored before the first object */
4025 INT_PTR i
, *ptr
= (INT_PTR
*) this - 1;
4027 for (i
= *ptr
- 1; i
>= 0; i
--)
4028 basic_stringbuf_char_dtor(this+i
);
4030 MSVCRT_operator_delete(ptr
);
4032 basic_stringbuf_char_dtor(this);
4035 MSVCRT_operator_delete(this);
4041 /* ?overflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHH@Z */
4042 /* ?overflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAAHH@Z */
4043 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_overflow
, 8)
4044 int __thiscall
basic_stringbuf_char_overflow(basic_stringbuf_char
*this, int meta
)
4046 MSVCP_size_t oldsize
, size
;
4049 TRACE("(%p %x)\n", this, meta
);
4053 if(this->state
& STRINGBUF_no_write
)
4056 ptr
= basic_streambuf_char_pptr(&this->base
);
4057 if((this->state
&STRINGBUF_append
) && ptr
<this->seekhigh
)
4058 basic_streambuf_char_setp_next(&this->base
, basic_streambuf_char_pbase(&this->base
),
4059 this->seekhigh
, basic_streambuf_char_epptr(&this->base
));
4061 if(ptr
&& ptr
<basic_streambuf_char_epptr(&this->base
))
4062 return (unsigned char)(*basic_streambuf_char__Pninc(&this->base
) = meta
);
4064 oldsize
= (ptr
? basic_streambuf_char_epptr(&this->base
)-basic_streambuf_char_eback(&this->base
): 0);
4067 buf
= MSVCRT_operator_new(size
);
4069 ERR("Out of memory\n");
4070 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
4074 this->seekhigh
= buf
;
4075 basic_streambuf_char_setp(&this->base
, buf
, buf
+size
);
4076 if(this->state
& STRINGBUF_no_read
)
4077 basic_streambuf_char_setg(&this->base
, buf
, NULL
, buf
);
4079 basic_streambuf_char_setg(&this->base
, buf
, buf
, buf
+1);
4081 this->state
|= STRINGBUF_allocated
;
4083 ptr
= basic_streambuf_char_eback(&this->base
);
4084 memcpy(buf
, ptr
, oldsize
);
4086 this->seekhigh
= buf
+(this->seekhigh
-ptr
);
4087 basic_streambuf_char_setp_next(&this->base
, buf
,
4088 buf
+(basic_streambuf_char_pptr(&this->base
)-ptr
), buf
+size
);
4089 if(this->state
& STRINGBUF_no_read
)
4090 basic_streambuf_char_setg(&this->base
, buf
, NULL
, buf
);
4092 basic_streambuf_char_setg(&this->base
, buf
,
4093 buf
+(basic_streambuf_char_gptr(&this->base
)-ptr
),
4094 basic_streambuf_char_pptr(&this->base
)+1);
4096 MSVCRT_operator_delete(ptr
);
4099 return (unsigned char)(*basic_streambuf_char__Pninc(&this->base
) = meta
);
4102 /* ?pbackfail@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHH@Z */
4103 /* ?pbackfail@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAAHH@Z */
4104 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_pbackfail
, 8)
4105 int __thiscall
basic_stringbuf_char_pbackfail(basic_stringbuf_char
*this, int c
)
4109 TRACE("(%p %x)\n", this, c
);
4111 cur
= basic_streambuf_char_gptr(&this->base
);
4112 if(!cur
|| cur
==basic_streambuf_char_eback(&this->base
)
4113 || (c
!=EOF
&& c
!=cur
[-1] && this->state
&STRINGBUF_no_write
))
4118 basic_streambuf_char_gbump(&this->base
, -1);
4119 return c
==EOF
? !EOF
: c
;
4122 /* ?underflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHXZ */
4123 /* ?underflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAAHXZ */
4124 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_underflow
, 4)
4125 int __thiscall
basic_stringbuf_char_underflow(basic_stringbuf_char
*this)
4129 TRACE("(%p)\n", this);
4131 cur
= basic_streambuf_char_gptr(&this->base
);
4132 if(!cur
|| this->state
&STRINGBUF_no_read
)
4135 ptr
= basic_streambuf_char_pptr(&this->base
);
4136 if(this->seekhigh
< ptr
)
4137 this->seekhigh
= ptr
;
4139 ptr
= basic_streambuf_char_egptr(&this->base
);
4140 if(this->seekhigh
> ptr
)
4141 basic_streambuf_char_setg(&this->base
, basic_streambuf_char_eback(&this->base
), cur
, this->seekhigh
);
4143 if(cur
< this->seekhigh
)
4144 return (unsigned char)*cur
;
4148 /* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAE?AV?$fpos@H@2@JHH@Z */
4149 /* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
4150 #if STREAMOFF_BITS == 64
4151 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_seekoff
, 24)
4153 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_seekoff
, 20)
4155 fpos_int
* __thiscall
basic_stringbuf_char_seekoff(basic_stringbuf_char
*this,
4156 fpos_int
*ret
, streamoff off
, int way
, int mode
)
4158 char *beg
, *cur_r
, *cur_w
;
4160 TRACE("(%p %p %s %d %d)\n", this, ret
, wine_dbgstr_longlong(off
), way
, mode
);
4162 cur_w
= basic_streambuf_char_pptr(&this->base
);
4163 if(cur_w
> this->seekhigh
)
4164 this->seekhigh
= cur_w
;
4170 beg
= basic_streambuf_char_eback(&this->base
);
4171 cur_r
= basic_streambuf_char_gptr(&this->base
);
4172 if((mode
& OPENMODE_in
) && cur_r
) {
4173 if(way
==SEEKDIR_cur
&& !(mode
& OPENMODE_out
))
4175 else if(way
== SEEKDIR_end
)
4176 off
+= this->seekhigh
-beg
;
4177 else if(way
!= SEEKDIR_beg
)
4180 if(off
<0 || off
>this->seekhigh
-beg
) {
4183 basic_streambuf_char_gbump(&this->base
, beg
-cur_r
+off
);
4184 if((mode
& OPENMODE_out
) && cur_w
) {
4185 basic_streambuf_char_setp_next(&this->base
, beg
,
4186 basic_streambuf_char_gptr(&this->base
),
4187 basic_streambuf_char_epptr(&this->base
));
4190 }else if((mode
& OPENMODE_out
) && cur_w
) {
4191 if(way
== SEEKDIR_cur
)
4193 else if(way
== SEEKDIR_end
)
4194 off
+= this->seekhigh
-beg
;
4195 else if(way
!= SEEKDIR_beg
)
4198 if(off
<0 || off
>this->seekhigh
-beg
)
4201 basic_streambuf_char_pbump(&this->base
, beg
-cur_w
+off
);
4210 /* ?seekpos@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
4211 /* ?seekpos@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
4212 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_seekpos
, 36)
4213 fpos_int
* __thiscall
basic_stringbuf_char_seekpos(basic_stringbuf_char
*this,
4214 fpos_int
*ret
, fpos_int pos
, int mode
)
4216 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_int(&pos
), mode
);
4218 if(pos
.off
==-1 && pos
.pos
==0 && pos
.state
==0) {
4223 return basic_stringbuf_char_seekoff(this, ret
, pos
.off
, SEEKDIR_beg
, mode
);
4226 /* ?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 */
4227 /* ?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 */
4228 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_str_set
, 8)
4229 void __thiscall
basic_stringbuf_char_str_set(basic_stringbuf_char
*this, const basic_string_char
*str
)
4231 TRACE("(%p %p)\n", this, str
);
4233 basic_stringbuf_char__Tidy(this);
4234 basic_stringbuf_char__Init(this, MSVCP_basic_string_char_c_str(str
), str
->size
, this->state
);
4237 /* ?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 */
4238 /* ?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 */
4239 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_str_get
, 8)
4240 basic_string_char
* __thiscall
basic_stringbuf_char_str_get(const basic_stringbuf_char
*this, basic_string_char
*ret
)
4244 TRACE("(%p)\n", this);
4246 if(!(this->state
& STRINGBUF_no_write
) && basic_streambuf_char_pptr(&this->base
)) {
4249 ptr
= basic_streambuf_char_pbase(&this->base
);
4250 pptr
= basic_streambuf_char_pptr(&this->base
);
4252 return MSVCP_basic_string_char_ctor_cstr_len(ret
, ptr
, (this->seekhigh
< pptr
? pptr
: this->seekhigh
) - ptr
);
4255 if(!(this->state
& STRINGBUF_no_read
) && basic_streambuf_char_gptr(&this->base
)) {
4256 ptr
= basic_streambuf_char_eback(&this->base
);
4257 return MSVCP_basic_string_char_ctor_cstr_len(ret
, ptr
, basic_streambuf_char_egptr(&this->base
) - ptr
);
4260 return MSVCP_basic_string_char_ctor(ret
);
4263 /* ?_Getstate@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AAEHH@Z */
4264 /* ?_Getstate@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AEAAHH@Z */
4265 /* ?_Getstate@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AAEHH@Z */
4266 /* ?_Getstate@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AEAAHH@Z */
4267 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar__Getstate
, 8)
4268 int __thiscall
basic_stringbuf_wchar__Getstate(basic_stringbuf_wchar
*this, IOSB_openmode mode
)
4272 if(!(mode
& OPENMODE_in
))
4273 state
|= STRINGBUF_no_read
;
4275 if(!(mode
& OPENMODE_out
))
4276 state
|= STRINGBUF_no_write
;
4278 if(mode
& OPENMODE_ate
)
4279 state
|= STRINGBUF_at_end
;
4281 if(mode
& OPENMODE_app
)
4282 state
|= STRINGBUF_append
;
4287 /* ?_Init@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXPB_WIH@Z */
4288 /* ?_Init@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAXPEB_W_KH@Z */
4289 /* ?_Init@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEXPBGIH@Z */
4290 /* ?_Init@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAXPEBG_KH@Z */
4291 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar__Init
, 16)
4292 void __thiscall
basic_stringbuf_wchar__Init(basic_stringbuf_wchar
*this, const wchar_t *str
, MSVCP_size_t count
, int state
)
4294 TRACE("(%p, %p, %lu, %d)\n", this, str
, count
, state
);
4296 basic_streambuf_wchar__Init_empty(&this->base
);
4298 this->state
= state
;
4299 this->seekhigh
= NULL
;
4302 wchar_t *buf
= MSVCRT_operator_new(count
*sizeof(wchar_t));
4304 ERR("Out of memory\n");
4305 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
4308 memcpy(buf
, str
, count
*sizeof(wchar_t));
4309 this->seekhigh
= buf
+ count
;
4311 this->state
|= STRINGBUF_allocated
;
4313 if(!(state
& STRINGBUF_no_read
))
4314 basic_streambuf_wchar_setg(&this->base
, buf
, buf
, buf
+ count
);
4316 if(!(state
& STRINGBUF_no_write
)) {
4317 basic_streambuf_wchar_setp_next(&this->base
, buf
, (state
& STRINGBUF_at_end
) ? buf
+ count
: buf
, buf
+ count
);
4319 if(!basic_streambuf_wchar_gptr(&this->base
))
4320 basic_streambuf_wchar_setg(&this->base
, buf
, 0, buf
);
4325 /* ??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 */
4326 /* ??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 */
4327 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_ctor_str
, 12)
4328 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_wchar_ctor_str(basic_stringbuf_wchar
*this,
4329 const basic_string_wchar
*str
, IOSB_openmode mode
)
4331 TRACE("(%p %p %d)\n", this, str
, mode
);
4333 basic_streambuf_wchar_ctor(&this->base
);
4334 this->base
.vtable
= &MSVCP_basic_stringbuf_wchar_vtable
;
4336 basic_stringbuf_wchar__Init(this, MSVCP_basic_string_wchar_c_str(str
),
4337 str
->size
, basic_stringbuf_wchar__Getstate(this, mode
));
4341 /* ??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 */
4342 /* ??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 */
4343 DEFINE_THISCALL_WRAPPER(basic_stringbuf_short_ctor_str
, 12)
4344 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_short_ctor_str(basic_stringbuf_wchar
*this,
4345 const basic_string_wchar
*str
, IOSB_openmode mode
)
4347 basic_stringbuf_wchar_ctor_str(this, str
, mode
);
4348 this->base
.vtable
= &MSVCP_basic_stringbuf_short_vtable
;
4352 /* ??0?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
4353 /* ??0?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
4354 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_ctor_mode
, 8)
4355 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_wchar_ctor_mode(
4356 basic_stringbuf_wchar
*this, IOSB_openmode mode
)
4358 TRACE("(%p %d)\n", this, mode
);
4360 basic_streambuf_wchar_ctor(&this->base
);
4361 this->base
.vtable
= &MSVCP_basic_stringbuf_wchar_vtable
;
4363 basic_stringbuf_wchar__Init(this, NULL
, 0, basic_stringbuf_wchar__Getstate(this, mode
));
4367 /* ??0?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
4368 /* ??0?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
4369 DEFINE_THISCALL_WRAPPER(basic_stringbuf_short_ctor_mode
, 8)
4370 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_short_ctor_mode(
4371 basic_stringbuf_wchar
*this, IOSB_openmode mode
)
4373 basic_stringbuf_wchar_ctor_mode(this, mode
);
4374 this->base
.vtable
= &MSVCP_basic_stringbuf_short_vtable
;
4378 /* ??_F?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
4379 /* ??_F?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
4380 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_ctor
, 4)
4381 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_wchar_ctor(basic_stringbuf_wchar
*this)
4383 return basic_stringbuf_wchar_ctor_mode(this, OPENMODE_in
|OPENMODE_out
);
4386 /* ??_F?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
4387 /* ??_F?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
4388 DEFINE_THISCALL_WRAPPER(basic_stringbuf_short_ctor
, 4)
4389 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_short_ctor(basic_stringbuf_wchar
*this)
4391 return basic_stringbuf_short_ctor_mode(this, OPENMODE_in
|OPENMODE_out
);
4394 /* ?_Tidy@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXXZ */
4395 /* ?_Tidy@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAXXZ */
4396 /* ?_Tidy@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEXXZ */
4397 /* ?_Tidy@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAXXZ */
4398 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar__Tidy
, 4)
4399 void __thiscall
basic_stringbuf_wchar__Tidy(basic_stringbuf_wchar
*this)
4401 TRACE("(%p)\n", this);
4403 if(this->state
& STRINGBUF_allocated
) {
4404 MSVCRT_operator_delete(basic_streambuf_wchar_eback(&this->base
));
4405 this->seekhigh
= NULL
;
4406 this->state
&= ~STRINGBUF_allocated
;
4409 basic_streambuf_wchar__Init_empty(&this->base
);
4412 /* ??1?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
4413 /* ??1?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
4414 /* ??1?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
4415 /* ??1?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
4416 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_dtor
, 4)
4417 void __thiscall
basic_stringbuf_wchar_dtor(basic_stringbuf_wchar
*this)
4419 TRACE("(%p)\n", this);
4421 basic_stringbuf_wchar__Tidy(this);
4422 basic_streambuf_wchar_dtor(&this->base
);
4425 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_vector_dtor
, 8)
4426 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_wchar_vector_dtor(basic_stringbuf_wchar
*this, unsigned int flags
)
4428 TRACE("(%p %x)\n", this, flags
);
4431 /* we have an array, with the number of elements stored before the first object */
4432 INT_PTR i
, *ptr
= (INT_PTR
*) this - 1;
4434 for (i
= *ptr
- 1; i
>= 0; i
--)
4435 basic_stringbuf_wchar_dtor(this+i
);
4437 MSVCRT_operator_delete(ptr
);
4439 basic_stringbuf_wchar_dtor(this);
4442 MSVCRT_operator_delete(this);
4448 /* ?overflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAEGG@Z */
4449 /* ?overflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAAGG@Z */
4450 /* ?overflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAEGG@Z */
4451 /* ?overflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAAGG@Z */
4452 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_overflow
, 8)
4453 unsigned short __thiscall
basic_stringbuf_wchar_overflow(basic_stringbuf_wchar
*this, unsigned short meta
)
4455 MSVCP_size_t oldsize
, size
;
4458 TRACE("(%p %x)\n", this, meta
);
4462 if(this->state
& STRINGBUF_no_write
)
4465 ptr
= basic_streambuf_wchar_pptr(&this->base
);
4466 if((this->state
&STRINGBUF_append
) && ptr
<this->seekhigh
)
4467 basic_streambuf_wchar_setp_next(&this->base
, basic_streambuf_wchar_pbase(&this->base
),
4468 this->seekhigh
, basic_streambuf_wchar_epptr(&this->base
));
4470 if(ptr
&& ptr
<basic_streambuf_wchar_epptr(&this->base
))
4471 return (*basic_streambuf_wchar__Pninc(&this->base
) = meta
);
4473 oldsize
= (ptr
? basic_streambuf_wchar_epptr(&this->base
)-basic_streambuf_wchar_eback(&this->base
): 0);
4476 buf
= MSVCRT_operator_new(size
*sizeof(wchar_t));
4478 ERR("Out of memory\n");
4479 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
4483 this->seekhigh
= buf
;
4484 basic_streambuf_wchar_setp(&this->base
, buf
, buf
+size
);
4485 if(this->state
& STRINGBUF_no_read
)
4486 basic_streambuf_wchar_setg(&this->base
, buf
, NULL
, buf
);
4488 basic_streambuf_wchar_setg(&this->base
, buf
, buf
, buf
+1);
4490 this->state
|= STRINGBUF_allocated
;
4492 ptr
= basic_streambuf_wchar_eback(&this->base
);
4493 memcpy(buf
, ptr
, oldsize
*sizeof(wchar_t));
4495 this->seekhigh
= buf
+(this->seekhigh
-ptr
);
4496 basic_streambuf_wchar_setp_next(&this->base
, buf
,
4497 buf
+(basic_streambuf_wchar_pptr(&this->base
)-ptr
), buf
+size
);
4498 if(this->state
& STRINGBUF_no_read
)
4499 basic_streambuf_wchar_setg(&this->base
, buf
, NULL
, buf
);
4501 basic_streambuf_wchar_setg(&this->base
, buf
,
4502 buf
+(basic_streambuf_wchar_gptr(&this->base
)-ptr
),
4503 basic_streambuf_wchar_pptr(&this->base
)+1);
4505 MSVCRT_operator_delete(ptr
);
4508 return (*basic_streambuf_wchar__Pninc(&this->base
) = meta
);
4511 /* ?pbackfail@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAEGG@Z */
4512 /* ?pbackfail@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAAGG@Z */
4513 /* ?pbackfail@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAEGG@Z */
4514 /* ?pbackfail@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAAGG@Z */
4515 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_pbackfail
, 8)
4516 unsigned short __thiscall
basic_stringbuf_wchar_pbackfail(basic_stringbuf_wchar
*this, unsigned short c
)
4520 TRACE("(%p %x)\n", this, c
);
4522 cur
= basic_streambuf_wchar_gptr(&this->base
);
4523 if(!cur
|| cur
==basic_streambuf_wchar_eback(&this->base
)
4524 || (c
!=WEOF
&& c
!=cur
[-1] && this->state
&STRINGBUF_no_write
))
4529 basic_streambuf_wchar_gbump(&this->base
, -1);
4530 return c
==WEOF
? !WEOF
: c
;
4533 /* ?underflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAEGXZ */
4534 /* ?underflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAAGXZ */
4535 /* ?underflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAEGXZ */
4536 /* ?underflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAAGXZ */
4537 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_underflow
, 4)
4538 unsigned short __thiscall
basic_stringbuf_wchar_underflow(basic_stringbuf_wchar
*this)
4542 TRACE("(%p)\n", this);
4544 cur
= basic_streambuf_wchar_gptr(&this->base
);
4545 if(!cur
|| this->state
&STRINGBUF_no_read
)
4548 ptr
= basic_streambuf_wchar_pptr(&this->base
);
4549 if(this->seekhigh
< ptr
)
4550 this->seekhigh
= ptr
;
4552 ptr
= basic_streambuf_wchar_egptr(&this->base
);
4553 if(this->seekhigh
> ptr
)
4554 basic_streambuf_wchar_setg(&this->base
, basic_streambuf_wchar_eback(&this->base
), cur
, this->seekhigh
);
4556 if(cur
< this->seekhigh
)
4561 /* ?seekoff@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAE?AV?$fpos@H@2@JHH@Z */
4562 /* ?seekoff@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
4563 /* ?seekoff@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAE?AV?$fpos@H@2@JHH@Z */
4564 /* ?seekoff@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
4565 #if STREAMOFF_BITS == 64
4566 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_seekoff
, 24)
4568 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_seekoff
, 20)
4570 fpos_int
* __thiscall
basic_stringbuf_wchar_seekoff(basic_stringbuf_wchar
*this,
4571 fpos_int
*ret
, streamoff off
, int way
, int mode
)
4573 wchar_t *beg
, *cur_r
, *cur_w
;
4575 TRACE("(%p %p %s %d %d)\n", this, ret
, wine_dbgstr_longlong(off
), way
, mode
);
4577 cur_w
= basic_streambuf_wchar_pptr(&this->base
);
4578 if(cur_w
> this->seekhigh
)
4579 this->seekhigh
= cur_w
;
4585 beg
= basic_streambuf_wchar_eback(&this->base
);
4586 cur_r
= basic_streambuf_wchar_gptr(&this->base
);
4587 if((mode
& OPENMODE_in
) && cur_r
) {
4588 if(way
==SEEKDIR_cur
&& !(mode
& OPENMODE_out
))
4590 else if(way
== SEEKDIR_end
)
4591 off
+= this->seekhigh
-beg
;
4592 else if(way
!= SEEKDIR_beg
)
4595 if(off
<0 || off
>this->seekhigh
-beg
) {
4598 basic_streambuf_wchar_gbump(&this->base
, beg
-cur_r
+off
);
4599 if((mode
& OPENMODE_out
) && cur_w
) {
4600 basic_streambuf_wchar_setp_next(&this->base
, beg
,
4601 basic_streambuf_wchar_gptr(&this->base
),
4602 basic_streambuf_wchar_epptr(&this->base
));
4605 }else if((mode
& OPENMODE_out
) && cur_w
) {
4606 if(way
== SEEKDIR_cur
)
4608 else if(way
== SEEKDIR_end
)
4609 off
+= this->seekhigh
-beg
;
4610 else if(way
!= SEEKDIR_beg
)
4613 if(off
<0 || off
>this->seekhigh
-beg
)
4616 basic_streambuf_wchar_pbump(&this->base
, beg
-cur_w
+off
);
4625 /* ?seekpos@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
4626 /* ?seekpos@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
4627 /* ?seekpos@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
4628 /* ?seekpos@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
4629 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_seekpos
, 36)
4630 fpos_int
* __thiscall
basic_stringbuf_wchar_seekpos(basic_stringbuf_wchar
*this,
4631 fpos_int
*ret
, fpos_int pos
, int mode
)
4633 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_int(&pos
), mode
);
4635 if(pos
.off
==-1 && pos
.pos
==0 && pos
.state
==0) {
4640 return basic_stringbuf_wchar_seekoff(this, ret
, pos
.off
, SEEKDIR_beg
, mode
);
4643 /* ?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 */
4644 /* ?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 */
4645 /* ?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 */
4646 /* ?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 */
4647 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_str_set
, 8)
4648 void __thiscall
basic_stringbuf_wchar_str_set(basic_stringbuf_wchar
*this, const basic_string_wchar
*str
)
4650 TRACE("(%p %p)\n", this, str
);
4652 basic_stringbuf_wchar__Tidy(this);
4653 basic_stringbuf_wchar__Init(this, MSVCP_basic_string_wchar_c_str(str
), str
->size
, this->state
);
4656 /* ?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 */
4657 /* ?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 */
4658 /* ?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 */
4659 /* ?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 */
4660 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_str_get
, 8)
4661 basic_string_wchar
* __thiscall
basic_stringbuf_wchar_str_get(const basic_stringbuf_wchar
*this, basic_string_wchar
*ret
)
4665 TRACE("(%p)\n", this);
4667 if(!(this->state
& STRINGBUF_no_write
) && basic_streambuf_wchar_pptr(&this->base
)) {
4670 ptr
= basic_streambuf_wchar_pbase(&this->base
);
4671 pptr
= basic_streambuf_wchar_pptr(&this->base
);
4673 return MSVCP_basic_string_wchar_ctor_cstr_len(ret
, ptr
, (this->seekhigh
< pptr
? pptr
: this->seekhigh
) - ptr
);
4676 if(!(this->state
& STRINGBUF_no_read
) && basic_streambuf_wchar_gptr(&this->base
)) {
4677 ptr
= basic_streambuf_wchar_eback(&this->base
);
4678 return MSVCP_basic_string_wchar_ctor_cstr_len(ret
, ptr
, basic_streambuf_wchar_egptr(&this->base
) - ptr
);
4681 return MSVCP_basic_string_wchar_ctor(ret
);
4684 /* ??0ios_base@std@@IAE@XZ */
4685 /* ??0ios_base@std@@IEAA@XZ */
4686 DEFINE_THISCALL_WRAPPER(ios_base_ctor
, 4)
4687 ios_base
* __thiscall
ios_base_ctor(ios_base
*this)
4689 TRACE("(%p)\n", this);
4690 this->vtable
= &MSVCP_ios_base_vtable
;
4694 /* ??0ios_base@std@@QAE@ABV01@@Z */
4695 /* ??0ios_base@std@@QEAA@AEBV01@@Z */
4696 DEFINE_THISCALL_WRAPPER(ios_base_copy_ctor
, 8)
4697 ios_base
* __thiscall
ios_base_copy_ctor(ios_base
*this, const ios_base
*copy
)
4699 TRACE("(%p %p)\n", this, copy
);
4701 this->vtable
= &MSVCP_ios_base_vtable
;
4705 /* ?_Callfns@ios_base@std@@AAEXW4event@12@@Z */
4706 /* ?_Callfns@ios_base@std@@AEAAXW4event@12@@Z */
4707 DEFINE_THISCALL_WRAPPER(ios_base_Callfns
, 8)
4708 void __thiscall
ios_base_Callfns(ios_base
*this, IOS_BASE_event event
)
4710 IOS_BASE_fnarray
*cur
;
4712 TRACE("(%p %x)\n", this, event
);
4714 for(cur
=this->calls
; cur
; cur
=cur
->next
)
4715 cur
->event_handler(event
, this, cur
->index
);
4718 /* ?_Tidy@ios_base@std@@AAAXXZ */
4719 /* ?_Tidy@ios_base@std@@AEAAXXZ */
4720 void CDECL
ios_base_Tidy(ios_base
*this)
4722 IOS_BASE_iosarray
*arr_cur
, *arr_next
;
4723 IOS_BASE_fnarray
*event_cur
, *event_next
;
4725 TRACE("(%p)\n", this);
4727 ios_base_Callfns(this, EVENT_erase_event
);
4729 for(arr_cur
=this->arr
; arr_cur
; arr_cur
=arr_next
) {
4730 arr_next
= arr_cur
->next
;
4731 MSVCRT_operator_delete(arr_cur
);
4735 for(event_cur
=this->calls
; event_cur
; event_cur
=event_next
) {
4736 event_next
= event_cur
->next
;
4737 MSVCRT_operator_delete(event_cur
);
4742 /* ?_Ios_base_dtor@ios_base@std@@CAXPAV12@@Z */
4743 /* ?_Ios_base_dtor@ios_base@std@@CAXPEAV12@@Z */
4744 void CDECL
ios_base_Ios_base_dtor(ios_base
*obj
)
4746 TRACE("(%p)\n", obj
);
4748 locale_dtor(obj
->loc
);
4749 MSVCRT_operator_delete(obj
->loc
);
4754 /* ??1ios_base@std@@UAE@XZ */
4755 /* ??1ios_base@std@@UEAA@XZ */
4756 DEFINE_THISCALL_WRAPPER(ios_base_dtor
, 4)
4757 void __thiscall
ios_base_dtor(ios_base
*this)
4759 ios_base_Ios_base_dtor(this);
4762 DEFINE_THISCALL_WRAPPER(ios_base_vector_dtor
, 8)
4763 ios_base
* __thiscall
ios_base_vector_dtor(ios_base
*this, unsigned int flags
)
4765 TRACE("(%p %x)\n", this, flags
);
4767 /* we have an array, with the number of elements stored before the first object */
4768 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
4770 for(i
=*ptr
-1; i
>=0; i
--)
4771 ios_base_dtor(this+i
);
4772 MSVCRT_operator_delete(ptr
);
4774 ios_base_dtor(this);
4776 MSVCRT_operator_delete(this);
4782 DEFINE_THISCALL_WRAPPER(iosb_vector_dtor
, 8)
4783 void* __thiscall
iosb_vector_dtor(void *this, unsigned int flags
)
4785 TRACE("(%p %x)\n", this, flags
);
4787 INT_PTR
*ptr
= (INT_PTR
*)this-1;
4788 MSVCRT_operator_delete(ptr
);
4791 MSVCRT_operator_delete(this);
4797 /* ?_Findarr@ios_base@std@@AAEAAU_Iosarray@12@H@Z */
4798 /* ?_Findarr@ios_base@std@@AEAAAEAU_Iosarray@12@H@Z */
4799 DEFINE_THISCALL_WRAPPER(ios_base_Findarr
, 8)
4800 IOS_BASE_iosarray
* __thiscall
ios_base_Findarr(ios_base
*this, int index
)
4802 IOS_BASE_iosarray
*p
;
4804 TRACE("(%p %d)\n", this, index
);
4806 for(p
=this->arr
; p
; p
=p
->next
) {
4807 if(p
->index
== index
)
4811 for(p
=this->arr
; p
; p
=p
->next
) {
4812 if(!p
->long_val
&& !p
->ptr_val
) {
4818 p
= MSVCRT_operator_new(sizeof(IOS_BASE_iosarray
));
4819 p
->next
= this->arr
;
4827 /* ?iword@ios_base@std@@QAEAAJH@Z */
4828 /* ?iword@ios_base@std@@QEAAAEAJH@Z */
4829 DEFINE_THISCALL_WRAPPER(ios_base_iword
, 8)
4830 LONG
* __thiscall
ios_base_iword(ios_base
*this, int index
)
4832 TRACE("(%p %d)\n", this, index
);
4833 return &ios_base_Findarr(this, index
)->long_val
;
4836 /* ?pword@ios_base@std@@QAEAAPAXH@Z */
4837 /* ?pword@ios_base@std@@QEAAAEAPEAXH@Z */
4838 DEFINE_THISCALL_WRAPPER(ios_base_pword
, 8)
4839 void** __thiscall
ios_base_pword(ios_base
*this, int index
)
4841 TRACE("(%p %d)\n", this, index
);
4842 return &ios_base_Findarr(this, index
)->ptr_val
;
4845 /* ?register_callback@ios_base@std@@QAEXP6AXW4event@12@AAV12@H@ZH@Z */
4846 /* ?register_callback@ios_base@std@@QEAAXP6AXW4event@12@AEAV12@H@ZH@Z */
4847 DEFINE_THISCALL_WRAPPER(ios_base_register_callback
, 12)
4848 void __thiscall
ios_base_register_callback(ios_base
*this, IOS_BASE_event_callback callback
, int index
)
4850 IOS_BASE_fnarray
*event
;
4852 TRACE("(%p %p %d)\n", this, callback
, index
);
4854 event
= MSVCRT_operator_new(sizeof(IOS_BASE_fnarray
));
4855 event
->next
= this->calls
;
4856 event
->index
= index
;
4857 event
->event_handler
= callback
;
4858 this->calls
= event
;
4861 /* ?clear@ios_base@std@@QAEXH_N@Z */
4862 /* ?clear@ios_base@std@@QEAAXH_N@Z */
4863 DEFINE_THISCALL_WRAPPER(ios_base_clear_reraise
, 12)
4864 void __thiscall
ios_base_clear_reraise(ios_base
*this, IOSB_iostate state
, MSVCP_bool reraise
)
4866 TRACE("(%p %x %x)\n", this, state
, reraise
);
4868 this->state
= state
& IOSTATE_mask
;
4869 if(!(this->state
& this->except
))
4873 throw_exception(EXCEPTION_RERAISE
, NULL
);
4874 else if(this->state
& this->except
& IOSTATE_eofbit
)
4875 throw_exception(EXCEPTION_FAILURE
, "eofbit is set");
4876 else if(this->state
& this->except
& IOSTATE_failbit
)
4877 throw_exception(EXCEPTION_FAILURE
, "failbit is set");
4878 else if(this->state
& this->except
& IOSTATE_badbit
)
4879 throw_exception(EXCEPTION_FAILURE
, "badbit is set");
4880 else if(this->state
& this->except
& IOSTATE__Hardfail
)
4881 throw_exception(EXCEPTION_FAILURE
, "_Hardfail is set");
4884 /* ?clear@ios_base@std@@QAEXH@Z */
4885 /* ?clear@ios_base@std@@QEAAXH@Z */
4886 DEFINE_THISCALL_WRAPPER(ios_base_clear
, 8)
4887 void __thiscall
ios_base_clear(ios_base
*this, IOSB_iostate state
)
4889 ios_base_clear_reraise(this, state
, FALSE
);
4892 /* ?clear@ios_base@std@@QAEXI@Z */
4893 /* ?clear@ios_base@std@@QEAAXI@Z */
4894 DEFINE_THISCALL_WRAPPER(ios_base_clear_unsigned
, 8)
4895 void __thiscall
ios_base_clear_unsigned(ios_base
*this, unsigned int state
)
4897 ios_base_clear_reraise(this, (IOSB_iostate
)state
, FALSE
);
4900 /* ?exceptions@ios_base@std@@QAEXH@Z */
4901 /* ?exceptions@ios_base@std@@QEAAXH@Z */
4902 DEFINE_THISCALL_WRAPPER(ios_base_exceptions_set
, 8)
4903 void __thiscall
ios_base_exceptions_set(ios_base
*this, IOSB_iostate state
)
4905 TRACE("(%p %x)\n", this, state
);
4906 this->except
= state
& IOSTATE_mask
;
4907 ios_base_clear(this, this->state
);
4910 /* ?exceptions@ios_base@std@@QAEXI@Z */
4911 /* ?exceptions@ios_base@std@@QEAAXI@Z */
4912 DEFINE_THISCALL_WRAPPER(ios_base_exceptions_set_unsigned
, 8)
4913 void __thiscall
ios_base_exceptions_set_unsigned(ios_base
*this, unsigned int state
)
4915 TRACE("(%p %x)\n", this, state
);
4916 ios_base_exceptions_set(this, state
);
4919 /* ?exceptions@ios_base@std@@QBEHXZ */
4920 /* ?exceptions@ios_base@std@@QEBAHXZ */
4921 DEFINE_THISCALL_WRAPPER(ios_base_exceptions_get
, 4)
4922 IOSB_iostate __thiscall
ios_base_exceptions_get(ios_base
*this)
4924 TRACE("(%p)\n", this);
4925 return this->except
;
4928 /* ?copyfmt@ios_base@std@@QAEAAV12@ABV12@@Z */
4929 /* ?copyfmt@ios_base@std@@QEAAAEAV12@AEBV12@@Z */
4930 DEFINE_THISCALL_WRAPPER(ios_base_copyfmt
, 8)
4931 ios_base
* __thiscall
ios_base_copyfmt(ios_base
*this, const ios_base
*rhs
)
4933 TRACE("(%p %p)\n", this, rhs
);
4936 IOS_BASE_iosarray
*arr_cur
;
4937 IOS_BASE_fnarray
*event_cur
;
4939 ios_base_Tidy(this);
4941 for(arr_cur
=rhs
->arr
; arr_cur
; arr_cur
=arr_cur
->next
) {
4942 if(arr_cur
->long_val
)
4943 *ios_base_iword(this, arr_cur
->index
) = arr_cur
->long_val
;
4944 if(arr_cur
->ptr_val
)
4945 *ios_base_pword(this, arr_cur
->index
) = arr_cur
->ptr_val
;
4947 this->stdstr
= rhs
->stdstr
;
4948 this->fmtfl
= rhs
->fmtfl
;
4949 this->prec
= rhs
->prec
;
4950 this->wide
= rhs
->wide
;
4951 locale_operator_assign(this->loc
, rhs
->loc
);
4953 for(event_cur
=rhs
->calls
; event_cur
; event_cur
=event_cur
->next
)
4954 ios_base_register_callback(this, event_cur
->event_handler
, event_cur
->index
);
4956 ios_base_Callfns(this, EVENT_copyfmt_event
);
4957 ios_base_exceptions_set(this, rhs
->except
);
4963 /* ??4ios_base@std@@QAEAAV01@ABV01@@Z */
4964 /* ??4ios_base@std@@QEAAAEAV01@AEBV01@@Z */
4965 DEFINE_THISCALL_WRAPPER(ios_base_assign
, 8)
4966 ios_base
* __thiscall
ios_base_assign(ios_base
*this, const ios_base
*right
)
4968 TRACE("(%p %p)\n", this, right
);
4971 this->state
= right
->state
;
4972 ios_base_copyfmt(this, right
);
4978 /* ?fail@ios_base@std@@QBE_NXZ */
4979 /* ?fail@ios_base@std@@QEBA_NXZ */
4980 DEFINE_THISCALL_WRAPPER(ios_base_fail
, 4)
4981 MSVCP_bool __thiscall
ios_base_fail(const ios_base
*this)
4983 TRACE("(%p)\n", this);
4984 return (this->state
& (IOSTATE_failbit
|IOSTATE_badbit
)) != 0;
4987 /* ??7ios_base@std@@QBE_NXZ */
4988 /* ??7ios_base@std@@QEBA_NXZ */
4989 DEFINE_THISCALL_WRAPPER(ios_base_op_succ
, 4)
4990 MSVCP_bool __thiscall
ios_base_op_succ(const ios_base
*this)
4992 TRACE("(%p)\n", this);
4993 return ios_base_fail(this);
4996 /* ??Bios_base@std@@QBEPAXXZ */
4997 /* ??Bios_base@std@@QEBAPEAXXZ */
4998 DEFINE_THISCALL_WRAPPER(ios_base_op_fail
, 4)
4999 void* __thiscall
ios_base_op_fail(const ios_base
*this)
5001 TRACE("(%p)\n", this);
5002 return ios_base_fail(this) ? NULL
: (void*)this;
5005 /* ?_Addstd@ios_base@std@@SAXPAV12@@Z */
5006 /* ?_Addstd@ios_base@std@@SAXPEAV12@@Z */
5007 void CDECL
ios_base_Addstd(ios_base
*add
)
5009 FIXME("(%p) stub\n", add
);
5012 /* ?_Index_func@ios_base@std@@CAAAHXZ */
5013 /* ?_Index_func@ios_base@std@@CAAEAHXZ */
5014 int* CDECL
ios_base_Index_func(void)
5017 return &ios_base_Index
;
5020 /* ?_Init@ios_base@std@@IAEXXZ */
5021 /* ?_Init@ios_base@std@@IEAAXXZ */
5022 DEFINE_THISCALL_WRAPPER(ios_base__Init
, 4)
5023 void __thiscall
ios_base__Init(ios_base
*this)
5025 TRACE("(%p)\n", this);
5028 this->state
= this->except
= IOSTATE_goodbit
;
5029 this->fmtfl
= FMTFLAG_skipws
| FMTFLAG_dec
;
5034 this->loc
= MSVCRT_operator_new(sizeof(locale
));
5035 locale_ctor(this->loc
);
5038 /* ?_Sync_func@ios_base@std@@CAAA_NXZ */
5039 /* ?_Sync_func@ios_base@std@@CAAEA_NXZ */
5040 MSVCP_bool
* CDECL
ios_base_Sync_func(void)
5043 return &ios_base_Sync
;
5046 /* ?bad@ios_base@std@@QBE_NXZ */
5047 /* ?bad@ios_base@std@@QEBA_NXZ */
5048 DEFINE_THISCALL_WRAPPER(ios_base_bad
, 4)
5049 MSVCP_bool __thiscall
ios_base_bad(const ios_base
*this)
5051 TRACE("(%p)\n", this);
5052 return (this->state
& IOSTATE_badbit
) != 0;
5055 /* ?eof@ios_base@std@@QBE_NXZ */
5056 /* ?eof@ios_base@std@@QEBA_NXZ */
5057 DEFINE_THISCALL_WRAPPER(ios_base_eof
, 4)
5058 MSVCP_bool __thiscall
ios_base_eof(const ios_base
*this)
5060 TRACE("(%p)\n", this);
5061 return (this->state
& IOSTATE_eofbit
) != 0;
5064 /* ?flags@ios_base@std@@QAEHH@Z */
5065 /* ?flags@ios_base@std@@QEAAHH@Z */
5066 DEFINE_THISCALL_WRAPPER(ios_base_flags_set
, 8)
5067 IOSB_fmtflags __thiscall
ios_base_flags_set(ios_base
*this, IOSB_fmtflags flags
)
5069 IOSB_fmtflags ret
= this->fmtfl
;
5071 TRACE("(%p %x)\n", this, flags
);
5073 this->fmtfl
= flags
& FMTFLAG_mask
;
5077 /* ?flags@ios_base@std@@QBEHXZ */
5078 /* ?flags@ios_base@std@@QEBAHXZ */
5079 DEFINE_THISCALL_WRAPPER(ios_base_flags_get
, 4)
5080 IOSB_fmtflags __thiscall
ios_base_flags_get(const ios_base
*this)
5082 TRACE("(%p)\n", this);
5086 /* ?getloc@ios_base@std@@QBE?AVlocale@2@XZ */
5087 /* ?getloc@ios_base@std@@QEBA?AVlocale@2@XZ */
5088 DEFINE_THISCALL_WRAPPER(ios_base_getloc
, 8)
5089 locale
* __thiscall
ios_base_getloc(const ios_base
*this, locale
*ret
)
5091 TRACE("(%p)\n", this);
5092 return locale_copy_ctor(ret
, this->loc
);
5095 /* ?good@ios_base@std@@QBE_NXZ */
5096 /* ?good@ios_base@std@@QEBA_NXZ */
5097 DEFINE_THISCALL_WRAPPER(ios_base_good
, 4)
5098 MSVCP_bool __thiscall
ios_base_good(const ios_base
*this)
5100 TRACE("(%p)\n", this);
5101 return this->state
== IOSTATE_goodbit
;
5104 /* ?imbue@ios_base@std@@QAE?AVlocale@2@ABV32@@Z */
5105 /* ?imbue@ios_base@std@@QEAA?AVlocale@2@AEBV32@@Z */
5106 DEFINE_THISCALL_WRAPPER(ios_base_imbue
, 12)
5107 locale
* __thiscall
ios_base_imbue(ios_base
*this, locale
*ret
, const locale
*loc
)
5109 TRACE("(%p %p)\n", this, loc
);
5111 locale_copy_ctor(this->loc
, loc
);
5115 /* ?precision@ios_base@std@@QAEHH@Z */
5116 /* ?precision@ios_base@std@@QEAA_J_J@Z */
5117 #if STREAMSIZE_BITS == 64
5118 DEFINE_THISCALL_WRAPPER(ios_base_precision_set
, 12)
5120 DEFINE_THISCALL_WRAPPER(ios_base_precision_set
, 8)
5122 streamsize __thiscall
ios_base_precision_set(ios_base
*this, streamsize precision
)
5124 streamsize ret
= this->prec
;
5126 TRACE("(%p %s)\n", this, wine_dbgstr_longlong(precision
));
5128 this->prec
= precision
;
5132 /* ?precision@ios_base@std@@QBEHXZ */
5133 /* ?precision@ios_base@std@@QEBA_JXZ */
5134 DEFINE_THISCALL_WRAPPER(ios_base_precision_get
, 4)
5135 streamsize __thiscall
ios_base_precision_get(const ios_base
*this)
5137 TRACE("(%p)\n", this);
5141 /* ?rdstate@ios_base@std@@QBEHXZ */
5142 /* ?rdstate@ios_base@std@@QEBAHXZ */
5143 DEFINE_THISCALL_WRAPPER(ios_base_rdstate
, 4)
5144 IOSB_iostate __thiscall
ios_base_rdstate(const ios_base
*this)
5146 TRACE("(%p)\n", this);
5150 /* ?setf@ios_base@std@@QAEHHH@Z */
5151 /* ?setf@ios_base@std@@QEAAHHH@Z */
5152 DEFINE_THISCALL_WRAPPER(ios_base_setf_mask
, 12)
5153 IOSB_fmtflags __thiscall
ios_base_setf_mask(ios_base
*this, IOSB_fmtflags flags
, IOSB_fmtflags mask
)
5155 IOSB_fmtflags ret
= this->fmtfl
;
5157 TRACE("(%p %x %x)\n", this, flags
, mask
);
5159 this->fmtfl
= (this->fmtfl
& (~mask
)) | (flags
& mask
& FMTFLAG_mask
);
5163 /* ?setf@ios_base@std@@QAEHH@Z */
5164 /* ?setf@ios_base@std@@QEAAHH@Z */
5165 DEFINE_THISCALL_WRAPPER(ios_base_setf
, 8)
5166 IOSB_fmtflags __thiscall
ios_base_setf(ios_base
*this, IOSB_fmtflags flags
)
5168 IOSB_fmtflags ret
= this->fmtfl
;
5170 TRACE("(%p %x)\n", this, flags
);
5172 this->fmtfl
|= flags
& FMTFLAG_mask
;
5176 /* ?setstate@ios_base@std@@QAEXH_N@Z */
5177 /* ?setstate@ios_base@std@@QEAAXH_N@Z */
5178 DEFINE_THISCALL_WRAPPER(ios_base_setstate_reraise
, 12)
5179 void __thiscall
ios_base_setstate_reraise(ios_base
*this, IOSB_iostate state
, MSVCP_bool reraise
)
5181 TRACE("(%p %x %x)\n", this, state
, reraise
);
5183 if(state
!= IOSTATE_goodbit
)
5184 ios_base_clear_reraise(this, this->state
| state
, reraise
);
5187 /* ?setstate@ios_base@std@@QAEXH@Z */
5188 /* ?setstate@ios_base@std@@QEAAXH@Z */
5189 DEFINE_THISCALL_WRAPPER(ios_base_setstate
, 8)
5190 void __thiscall
ios_base_setstate(ios_base
*this, IOSB_iostate state
)
5192 ios_base_setstate_reraise(this, state
, FALSE
);
5195 /* ?setstate@ios_base@std@@QAEXI@Z */
5196 /* ?setstate@ios_base@std@@QEAAXI@Z */
5197 DEFINE_THISCALL_WRAPPER(ios_base_setstate_unsigned
, 8)
5198 void __thiscall
ios_base_setstate_unsigned(ios_base
*this, unsigned int state
)
5200 ios_base_setstate_reraise(this, (IOSB_iostate
)state
, FALSE
);
5203 /* ?sync_with_stdio@ios_base@std@@SA_N_N@Z */
5204 MSVCP_bool CDECL
ios_base_sync_with_stdio(MSVCP_bool sync
)
5209 TRACE("(%x)\n", sync
);
5211 _Lockit_ctor_locktype(&lock
, _LOCK_STREAM
);
5212 ret
= ios_base_Sync
;
5213 ios_base_Sync
= sync
;
5214 _Lockit_dtor(&lock
);
5218 /* ?unsetf@ios_base@std@@QAEXH@Z */
5219 /* ?unsetf@ios_base@std@@QEAAXH@Z */
5220 DEFINE_THISCALL_WRAPPER(ios_base_unsetf
, 8)
5221 void __thiscall
ios_base_unsetf(ios_base
*this, IOSB_fmtflags flags
)
5223 TRACE("(%p %x)\n", this, flags
);
5224 this->fmtfl
&= ~flags
;
5227 /* ?width@ios_base@std@@QAEHH@Z */
5228 /* ?width@ios_base@std@@QEAA_J_J@Z */
5229 #if STREAMSIZE_BITS == 64
5230 DEFINE_THISCALL_WRAPPER(ios_base_width_set
, 12)
5232 DEFINE_THISCALL_WRAPPER(ios_base_width_set
, 8)
5234 streamsize __thiscall
ios_base_width_set(ios_base
*this, streamsize width
)
5236 streamsize ret
= this->wide
;
5238 TRACE("(%p %s)\n", this, wine_dbgstr_longlong(width
));
5244 /* ?width@ios_base@std@@QBEHXZ */
5245 /* ?width@ios_base@std@@QEBA_JXZ */
5246 DEFINE_THISCALL_WRAPPER(ios_base_width_get
, 4)
5247 streamsize __thiscall
ios_base_width_get(ios_base
*this)
5249 TRACE("(%p)\n", this);
5253 /* ?xalloc@ios_base@std@@SAHXZ */
5254 int CDECL
ios_base_xalloc(void)
5261 _Lockit_ctor_locktype(&lock
, _LOCK_STREAM
);
5262 ret
= ios_base_Index
++;
5263 _Lockit_dtor(&lock
);
5267 /* ?swap@ios_base@std@@QAEXAAV12@@Z */
5268 /* ?swap@ios_base@std@@QEAAXAEAV12@@Z */
5269 DEFINE_THISCALL_WRAPPER(ios_base_swap
, 8)
5270 void __thiscall
ios_base_swap(ios_base
*this, ios_base
*r
)
5274 TRACE("(%p %p)\n", this, r
);
5281 this->vtable
= tmp
.vtable
;
5282 tmp
.vtable
= r
->vtable
;
5286 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@IAE@XZ */
5287 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@IEAA@XZ */
5288 DEFINE_THISCALL_WRAPPER(basic_ios_char_ctor
, 4)
5289 basic_ios_char
* __thiscall
basic_ios_char_ctor(basic_ios_char
*this)
5291 TRACE("(%p)\n", this);
5293 ios_base_ctor(&this->base
);
5294 this->base
.vtable
= &MSVCP_basic_ios_char_vtable
;
5298 /* ?init@?$basic_ios@DU?$char_traits@D@std@@@std@@IAEXPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@_N@Z */
5299 /* ?init@?$basic_ios@DU?$char_traits@D@std@@@std@@IEAAXPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@_N@Z */
5300 DEFINE_THISCALL_WRAPPER(basic_ios_char_init
, 12)
5301 void __thiscall
basic_ios_char_init(basic_ios_char
*this, basic_streambuf_char
*streambuf
, MSVCP_bool isstd
)
5303 TRACE("(%p %p %x)\n", this, streambuf
, isstd
);
5304 ios_base__Init(&this->base
);
5305 this->strbuf
= streambuf
;
5306 this->stream
= NULL
;
5310 ios_base_setstate(&this->base
, IOSTATE_badbit
);
5313 FIXME("standard streams not handled yet\n");
5316 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
5317 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
5318 DEFINE_THISCALL_WRAPPER(basic_ios_char_ctor_streambuf
, 8)
5319 basic_ios_char
* __thiscall
basic_ios_char_ctor_streambuf(basic_ios_char
*this, basic_streambuf_char
*strbuf
)
5321 TRACE("(%p %p)\n", this, strbuf
);
5323 basic_ios_char_ctor(this);
5324 basic_ios_char_init(this, strbuf
, FALSE
);
5328 /* ??1?$basic_ios@DU?$char_traits@D@std@@@std@@UAE@XZ */
5329 /* ??1?$basic_ios@DU?$char_traits@D@std@@@std@@UEAA@XZ */
5330 DEFINE_THISCALL_WRAPPER(basic_ios_char_dtor
, 4)
5331 void __thiscall
basic_ios_char_dtor(basic_ios_char
*this)
5333 TRACE("(%p)\n", this);
5334 ios_base_dtor(&this->base
);
5337 DEFINE_THISCALL_WRAPPER(basic_ios_char_vector_dtor
, 8)
5338 basic_ios_char
* __thiscall
basic_ios_char_vector_dtor(basic_ios_char
*this, unsigned int flags
)
5340 TRACE("(%p %x)\n", this, flags
);
5342 /* we have an array, with the number of elements stored before the first object */
5343 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
5345 for(i
=*ptr
-1; i
>=0; i
--)
5346 basic_ios_char_dtor(this+i
);
5347 MSVCRT_operator_delete(ptr
);
5349 basic_ios_char_dtor(this);
5351 MSVCRT_operator_delete(this);
5357 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z */
5358 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXH_N@Z */
5359 DEFINE_THISCALL_WRAPPER(basic_ios_char_clear_reraise
, 12)
5360 void __thiscall
basic_ios_char_clear_reraise(basic_ios_char
*this, IOSB_iostate state
, MSVCP_bool reraise
)
5362 TRACE("(%p %x %x)\n", this, state
, reraise
);
5363 ios_base_clear_reraise(&this->base
, state
| (this->strbuf
? IOSTATE_goodbit
: IOSTATE_badbit
), reraise
);
5366 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXI@Z */
5367 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXI@Z */
5368 DEFINE_THISCALL_WRAPPER(basic_ios_char_clear
, 8)
5369 void __thiscall
basic_ios_char_clear(basic_ios_char
*this, unsigned int state
)
5371 basic_ios_char_clear_reraise(this, (IOSB_iostate
)state
, FALSE
);
5374 /* ?copyfmt@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEAAV12@ABV12@@Z */
5375 /* ?copyfmt@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEBV12@@Z */
5376 DEFINE_THISCALL_WRAPPER(basic_ios_char_copyfmt
, 8)
5377 basic_ios_char
* __thiscall
basic_ios_char_copyfmt(basic_ios_char
*this, basic_ios_char
*copy
)
5379 TRACE("(%p %p)\n", this, copy
);
5383 this->stream
= copy
->stream
;
5384 this->fillch
= copy
->fillch
;
5385 ios_base_copyfmt(&this->base
, ©
->base
);
5389 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEDD@Z */
5390 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAADD@Z */
5391 DEFINE_THISCALL_WRAPPER(basic_ios_char_fill_set
, 8)
5392 char __thiscall
basic_ios_char_fill_set(basic_ios_char
*this, char fill
)
5394 char ret
= this->fillch
;
5396 TRACE("(%p %c)\n", this, fill
);
5398 this->fillch
= fill
;
5402 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDXZ */
5403 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBADXZ */
5404 DEFINE_THISCALL_WRAPPER(basic_ios_char_fill_get
, 4)
5405 char __thiscall
basic_ios_char_fill_get(basic_ios_char
*this)
5407 TRACE("(%p)\n", this);
5408 return this->fillch
;
5411 /* ?imbue@?$basic_ios@DU?$char_traits@D@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
5412 /* ?imbue@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
5413 DEFINE_THISCALL_WRAPPER(basic_ios_char_imbue
, 12)
5414 locale
*__thiscall
basic_ios_char_imbue(basic_ios_char
*this, locale
*ret
, const locale
*loc
)
5416 TRACE("(%p %p %p)\n", this, ret
, loc
);
5419 basic_streambuf_char_pubimbue(this->strbuf
, ret
, loc
);
5423 return ios_base_imbue(&this->base
, ret
, loc
);
5426 /* ?narrow@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDDD@Z */
5427 /* ?narrow@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBADDD@Z */
5428 DEFINE_THISCALL_WRAPPER(basic_ios_char_narrow
, 12)
5429 char __thiscall
basic_ios_char_narrow(basic_ios_char
*this, char ch
, char def
)
5431 TRACE("(%p %c %c)\n", this, ch
, def
);
5432 return ctype_char_narrow_ch(ctype_char_use_facet(this->strbuf
->loc
), ch
, def
);
5435 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PAV32@@Z */
5436 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PEAV32@@Z */
5437 DEFINE_THISCALL_WRAPPER(basic_ios_char_rdbuf_set
, 8)
5438 basic_streambuf_char
* __thiscall
basic_ios_char_rdbuf_set(basic_ios_char
*this, basic_streambuf_char
*streambuf
)
5440 basic_streambuf_char
*ret
= this->strbuf
;
5442 TRACE("(%p %p)\n", this, streambuf
);
5444 this->strbuf
= streambuf
;
5445 basic_ios_char_clear(this, IOSTATE_goodbit
);
5449 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ */
5450 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ */
5451 DEFINE_THISCALL_WRAPPER(basic_ios_char_rdbuf_get
, 4)
5452 basic_streambuf_char
* __thiscall
basic_ios_char_rdbuf_get(const basic_ios_char
*this)
5454 TRACE("(%p)\n", this);
5455 return this->strbuf
;
5458 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z */
5459 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXH_N@Z */
5460 DEFINE_THISCALL_WRAPPER(basic_ios_char_setstate_reraise
, 12)
5461 void __thiscall
basic_ios_char_setstate_reraise(basic_ios_char
*this, IOSB_iostate state
, MSVCP_bool reraise
)
5463 TRACE("(%p %x %x)\n", this, state
, reraise
);
5465 if(state
!= IOSTATE_goodbit
)
5466 basic_ios_char_clear_reraise(this, this->base
.state
| state
, reraise
);
5469 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXI@Z */
5470 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXI@Z */
5471 DEFINE_THISCALL_WRAPPER(basic_ios_char_setstate
, 8)
5472 void __thiscall
basic_ios_char_setstate(basic_ios_char
*this, unsigned int state
)
5474 basic_ios_char_setstate_reraise(this, (IOSB_iostate
)state
, FALSE
);
5477 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEPAV?$basic_ostream@DU?$char_traits@D@std@@@2@PAV32@@Z */
5478 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAPEAV?$basic_ostream@DU?$char_traits@D@std@@@2@PEAV32@@Z */
5479 DEFINE_THISCALL_WRAPPER(basic_ios_char_tie_set
, 8)
5480 basic_ostream_char
* __thiscall
basic_ios_char_tie_set(basic_ios_char
*this, basic_ostream_char
*ostream
)
5482 basic_ostream_char
*ret
= this->stream
;
5484 TRACE("(%p %p)\n", this, ostream
);
5486 this->stream
= ostream
;
5490 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ */
5491 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ */
5492 DEFINE_THISCALL_WRAPPER(basic_ios_char_tie_get
, 4)
5493 basic_ostream_char
* __thiscall
basic_ios_char_tie_get(const basic_ios_char
*this)
5495 TRACE("(%p)\n", this);
5496 return this->stream
;
5499 /* ?widen@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDD@Z */
5500 /* ?widen@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBADD@Z */
5501 DEFINE_THISCALL_WRAPPER(basic_ios_char_widen
, 8)
5502 char __thiscall
basic_ios_char_widen(basic_ios_char
*this, char ch
)
5504 TRACE("(%p %c)\n", this, ch
);
5505 return ctype_char_widen_ch(ctype_char_use_facet(this->strbuf
->loc
), ch
);
5509 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@IAE@XZ */
5510 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@IEAA@XZ */
5511 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_ctor
, 4)
5512 basic_ios_wchar
* __thiscall
basic_ios_wchar_ctor(basic_ios_wchar
*this)
5514 TRACE("(%p)\n", this);
5516 ios_base_ctor(&this->base
);
5517 this->base
.vtable
= &MSVCP_basic_ios_wchar_vtable
;
5521 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@IAE@XZ */
5522 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@IEAA@XZ */
5523 DEFINE_THISCALL_WRAPPER(basic_ios_short_ctor
, 4)
5524 basic_ios_wchar
* __thiscall
basic_ios_short_ctor(basic_ios_wchar
*this)
5526 basic_ios_wchar_ctor(this);
5527 this->base
.vtable
= &MSVCP_basic_ios_short_vtable
;
5531 /* ?init@?$basic_ios@_WU?$char_traits@_W@std@@@std@@IAEXPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_N@Z */
5532 /* ?init@?$basic_ios@_WU?$char_traits@_W@std@@@std@@IEAAXPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_N@Z */
5533 /* ?init@?$basic_ios@GU?$char_traits@G@std@@@std@@IAEXPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@_N@Z */
5534 /* ?init@?$basic_ios@GU?$char_traits@G@std@@@std@@IEAAXPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@_N@Z */
5535 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_init
, 12)
5536 void __thiscall
basic_ios_wchar_init(basic_ios_wchar
*this, basic_streambuf_wchar
*streambuf
, MSVCP_bool isstd
)
5538 TRACE("(%p %p %x)\n", this, streambuf
, isstd
);
5539 ios_base__Init(&this->base
);
5540 this->strbuf
= streambuf
;
5541 this->stream
= NULL
;
5545 ios_base_setstate(&this->base
, IOSTATE_badbit
);
5548 FIXME("standard streams not handled yet\n");
5551 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
5552 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
5553 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_ctor_streambuf
, 8)
5554 basic_ios_wchar
* __thiscall
basic_ios_wchar_ctor_streambuf(basic_ios_wchar
*this, basic_streambuf_wchar
*strbuf
)
5556 TRACE("(%p %p)\n", this, strbuf
);
5558 basic_ios_wchar_ctor(this);
5559 basic_ios_wchar_init(this, strbuf
, FALSE
);
5563 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
5564 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
5565 DEFINE_THISCALL_WRAPPER(basic_ios_short_ctor_streambuf
, 8)
5566 basic_ios_wchar
* __thiscall
basic_ios_short_ctor_streambuf(basic_ios_wchar
*this, basic_streambuf_wchar
*strbuf
)
5568 basic_ios_wchar_ctor_streambuf(this, strbuf
);
5569 this->base
.vtable
= &MSVCP_basic_ios_short_vtable
;
5573 /* ??1?$basic_ios@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
5574 /* ??1?$basic_ios@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
5575 /* ??1?$basic_ios@GU?$char_traits@G@std@@@std@@UAE@XZ */
5576 /* ??1?$basic_ios@GU?$char_traits@G@std@@@std@@UEAA@XZ */
5577 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_dtor
, 4)
5578 void __thiscall
basic_ios_wchar_dtor(basic_ios_wchar
*this)
5580 TRACE("(%p)\n", this);
5581 ios_base_dtor(&this->base
);
5584 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_vector_dtor
, 8)
5585 basic_ios_wchar
* __thiscall
basic_ios_wchar_vector_dtor(basic_ios_wchar
*this, unsigned int flags
)
5587 TRACE("(%p %x)\n", this, flags
);
5589 /* we have an array, with the number of elements stored before the first object */
5590 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
5592 for(i
=*ptr
-1; i
>=0; i
--)
5593 basic_ios_wchar_dtor(this+i
);
5594 MSVCRT_operator_delete(ptr
);
5596 basic_ios_wchar_dtor(this);
5598 MSVCRT_operator_delete(this);
5604 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXH_N@Z */
5605 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXH_N@Z */
5606 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXH_N@Z */
5607 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXH_N@Z */
5608 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_clear_reraise
, 12)
5609 void __thiscall
basic_ios_wchar_clear_reraise(basic_ios_wchar
*this, IOSB_iostate state
, MSVCP_bool reraise
)
5611 TRACE("(%p %x %x)\n", this, state
, reraise
);
5612 ios_base_clear_reraise(&this->base
, state
| (this->strbuf
? IOSTATE_goodbit
: IOSTATE_badbit
), reraise
);
5615 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXI@Z */
5616 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXI@Z */
5617 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXI@Z */
5618 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXI@Z */
5619 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_clear
, 8)
5620 void __thiscall
basic_ios_wchar_clear(basic_ios_wchar
*this, unsigned int state
)
5622 basic_ios_wchar_clear_reraise(this, (IOSB_iostate
)state
, FALSE
);
5625 /* ?copyfmt@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEAAV12@ABV12@@Z */
5626 /* ?copyfmt@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEBV12@@Z */
5627 /* ?copyfmt@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEAAV12@ABV12@@Z */
5628 /* ?copyfmt@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEBV12@@Z */
5629 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_copyfmt
, 8)
5630 basic_ios_wchar
* __thiscall
basic_ios_wchar_copyfmt(basic_ios_wchar
*this, basic_ios_wchar
*copy
)
5632 TRACE("(%p %p)\n", this, copy
);
5636 this->stream
= copy
->stream
;
5637 this->fillch
= copy
->fillch
;
5638 ios_base_copyfmt(&this->base
, ©
->base
);
5642 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAE_W_W@Z */
5643 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAA_W_W@Z */
5644 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEGG@Z */
5645 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAGG@Z */
5646 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_fill_set
, 8)
5647 wchar_t __thiscall
basic_ios_wchar_fill_set(basic_ios_wchar
*this, wchar_t fill
)
5649 wchar_t ret
= this->fillch
;
5651 TRACE("(%p %c)\n", this, fill
);
5653 this->fillch
= fill
;
5657 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBE_WXZ */
5658 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBA_WXZ */
5659 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEGXZ */
5660 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAGXZ */
5661 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_fill_get
, 4)
5662 wchar_t __thiscall
basic_ios_wchar_fill_get(basic_ios_wchar
*this)
5664 TRACE("(%p)\n", this);
5665 return this->fillch
;
5668 /* ?imbue@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
5669 /* ?imbue@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
5670 /* ?imbue@?$basic_ios@GU?$char_traits@G@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
5671 /* ?imbue@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
5672 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_imbue
, 12)
5673 locale
*__thiscall
basic_ios_wchar_imbue(basic_ios_wchar
*this, locale
*ret
, const locale
*loc
)
5675 TRACE("(%p %p %p)\n", this, ret
, loc
);
5678 basic_streambuf_wchar_pubimbue(this->strbuf
, ret
, loc
);
5682 return ios_base_imbue(&this->base
, ret
, loc
);
5685 /* ?narrow@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBED_WD@Z */
5686 /* ?narrow@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBAD_WD@Z */
5687 /* ?narrow@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEDGD@Z */
5688 /* ?narrow@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBADGD@Z */
5689 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_narrow
, 12)
5690 char __thiscall
basic_ios_wchar_narrow(basic_ios_wchar
*this, wchar_t ch
, char def
)
5692 TRACE("(%p %c %c)\n", this, ch
, def
);
5693 return ctype_wchar_narrow_ch(ctype_wchar_use_facet(this->strbuf
->loc
), ch
, def
);
5696 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PAV32@@Z */
5697 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PEAV32@@Z */
5698 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PAV32@@Z */
5699 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PEAV32@@Z */
5700 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_rdbuf_set
, 8)
5701 basic_streambuf_wchar
* __thiscall
basic_ios_wchar_rdbuf_set(basic_ios_wchar
*this, basic_streambuf_wchar
*streambuf
)
5703 basic_streambuf_wchar
*ret
= this->strbuf
;
5705 TRACE("(%p %p)\n", this, streambuf
);
5707 this->strbuf
= streambuf
;
5708 basic_ios_wchar_clear(this, IOSTATE_goodbit
);
5712 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@XZ */
5713 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@XZ */
5714 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@XZ */
5715 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@XZ */
5716 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_rdbuf_get
, 4)
5717 basic_streambuf_wchar
* __thiscall
basic_ios_wchar_rdbuf_get(const basic_ios_wchar
*this)
5719 TRACE("(%p)\n", this);
5720 return this->strbuf
;
5723 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXH_N@Z */
5724 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXH_N@Z */
5725 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXH_N@Z */
5726 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXH_N@Z */
5727 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_setstate_reraise
, 12)
5728 void __thiscall
basic_ios_wchar_setstate_reraise(basic_ios_wchar
*this, IOSB_iostate state
, MSVCP_bool reraise
)
5730 TRACE("(%p %x %x)\n", this, state
, reraise
);
5732 if(state
!= IOSTATE_goodbit
)
5733 basic_ios_wchar_clear_reraise(this, this->base
.state
| state
, reraise
);
5736 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXI@Z */
5737 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXI@Z */
5738 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXI@Z */
5739 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXI@Z */
5740 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_setstate
, 8)
5741 void __thiscall
basic_ios_wchar_setstate(basic_ios_wchar
*this, IOSB_iostate state
)
5743 basic_ios_wchar_setstate_reraise(this, state
, FALSE
);
5746 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEPAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@PAV32@@Z */
5747 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAPEAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@PEAV32@@Z */
5748 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEPAV?$basic_ostream@GU?$char_traits@G@std@@@2@PAV32@@Z */
5749 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAPEAV?$basic_ostream@GU?$char_traits@G@std@@@2@PEAV32@@Z */
5750 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_tie_set
, 8)
5751 basic_ostream_wchar
* __thiscall
basic_ios_wchar_tie_set(basic_ios_wchar
*this, basic_ostream_wchar
*ostream
)
5753 basic_ostream_wchar
*ret
= this->stream
;
5755 TRACE("(%p %p)\n", this, ostream
);
5757 this->stream
= ostream
;
5761 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@XZ */
5762 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@XZ */
5763 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_ostream@GU?$char_traits@G@std@@@2@XZ */
5764 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_ostream@GU?$char_traits@G@std@@@2@XZ */
5765 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_tie_get
, 4)
5766 basic_ostream_wchar
* __thiscall
basic_ios_wchar_tie_get(const basic_ios_wchar
*this)
5768 TRACE("(%p)\n", this);
5769 return this->stream
;
5772 /* ?widen@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBE_WD@Z */
5773 /* ?widen@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBA_WD@Z */
5774 /* ?widen@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEGD@Z */
5775 /* ?widen@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAGD@Z */
5776 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_widen
, 8)
5777 wchar_t __thiscall
basic_ios_wchar_widen(basic_ios_wchar
*this, char ch
)
5779 TRACE("(%p %c)\n", this, ch
);
5780 return ctype_wchar_widen_ch(ctype_wchar_use_facet(this->strbuf
->loc
), ch
);
5783 /* Caution: basic_ostream uses virtual inheritance.
5784 * All constructors have additional parameter that says if base class should be initialized.
5785 * Base class needs to be accessed using vbtable.
5787 static inline basic_ios_char
* basic_ostream_char_get_basic_ios(basic_ostream_char
*this)
5789 return (basic_ios_char
*)((char*)this+this->vbtable
[1]);
5792 static inline basic_ios_char
* basic_ostream_char_to_basic_ios(basic_ostream_char
*ptr
)
5794 return (basic_ios_char
*)((char*)ptr
+basic_ostream_char_vbtable
[1]);
5797 static inline basic_ostream_char
* basic_ostream_char_from_basic_ios(basic_ios_char
*ptr
)
5799 return (basic_ostream_char
*)((char*)ptr
-basic_ostream_char_vbtable
[1]);
5802 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z */
5803 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z */
5804 DEFINE_THISCALL_WRAPPER(basic_ostream_char_ctor
, 16)
5805 basic_ostream_char
* __thiscall
basic_ostream_char_ctor(basic_ostream_char
*this,
5806 basic_streambuf_char
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
5808 basic_ios_char
*base
;
5810 TRACE("(%p %p %d %d)\n", this, strbuf
, isstd
, virt_init
);
5813 this->vbtable
= basic_ostream_char_vbtable
;
5814 base
= basic_ostream_char_get_basic_ios(this);
5815 basic_ios_char_ctor(base
);
5817 base
= basic_ostream_char_get_basic_ios(this);
5820 base
->base
.vtable
= &MSVCP_basic_ostream_char_vtable
;
5821 basic_ios_char_init(base
, strbuf
, isstd
);
5825 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@W4_Uninitialized@1@_N@Z */
5826 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA@W4_Uninitialized@1@_N@Z */
5827 DEFINE_THISCALL_WRAPPER(basic_ostream_char_ctor_uninitialized
, 16)
5828 basic_ostream_char
* __thiscall
basic_ostream_char_ctor_uninitialized(basic_ostream_char
*this,
5829 int uninitialized
, MSVCP_bool addstd
, MSVCP_bool virt_init
)
5831 basic_ios_char
*base
;
5833 TRACE("(%p %d %x)\n", this, uninitialized
, addstd
);
5836 this->vbtable
= basic_ostream_char_vbtable
;
5837 base
= basic_ostream_char_get_basic_ios(this);
5838 basic_ios_char_ctor(base
);
5840 base
= basic_ostream_char_get_basic_ios(this);
5843 base
->base
.vtable
= &MSVCP_basic_ostream_char_vtable
;
5845 ios_base_Addstd(&base
->base
);
5849 /* ??1?$basic_ostream@DU?$char_traits@D@std@@@std@@UAE@XZ */
5850 /* ??1?$basic_ostream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
5851 DEFINE_THISCALL_WRAPPER(basic_ostream_char_dtor
, 4)
5852 void __thiscall
basic_ostream_char_dtor(basic_ios_char
*base
)
5854 basic_ostream_char
*this = basic_ostream_char_from_basic_ios(base
);
5856 /* don't destroy virtual base here */
5857 TRACE("(%p)\n", this);
5860 /* ??_D?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
5861 /* ??_D?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
5862 DEFINE_THISCALL_WRAPPER(basic_ostream_char_vbase_dtor
, 4)
5863 void __thiscall
basic_ostream_char_vbase_dtor(basic_ostream_char
*this)
5865 TRACE("(%p)\n", this);
5866 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(this));
5867 basic_ios_char_dtor(basic_ostream_char_get_basic_ios(this));
5870 DEFINE_THISCALL_WRAPPER(basic_ostream_char_vector_dtor
, 8)
5871 basic_ostream_char
* __thiscall
basic_ostream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
5873 basic_ostream_char
*this = basic_ostream_char_from_basic_ios(base
);
5875 TRACE("(%p %x)\n", this, flags
);
5878 /* we have an array, with the number of elements stored before the first object */
5879 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
5881 for(i
=*ptr
-1; i
>=0; i
--)
5882 basic_ostream_char_vbase_dtor(this+i
);
5883 MSVCRT_operator_delete(ptr
);
5885 basic_ostream_char_vbase_dtor(this);
5887 MSVCRT_operator_delete(this);
5893 /* ?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ */
5894 /* ?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@XZ */
5895 DEFINE_THISCALL_WRAPPER(basic_ostream_char_flush
, 4)
5896 basic_ostream_char
* __thiscall
basic_ostream_char_flush(basic_ostream_char
*this)
5898 /* this function is not matching C++ specification */
5899 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
5901 TRACE("(%p)\n", this);
5903 if(basic_ios_char_rdbuf_get(base
) && ios_base_good(&base
->base
)
5904 && basic_streambuf_char_pubsync(basic_ios_char_rdbuf_get(base
))==-1)
5905 basic_ios_char_setstate(base
, IOSTATE_badbit
);
5909 /* ?flush@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z */
5910 /* ?flush@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@1@AEAV21@@Z */
5911 basic_ostream_char
* __cdecl
flush_ostream_char(basic_ostream_char
*ostream
)
5913 return basic_ostream_char_flush(ostream
);
5916 /* ?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
5917 /* ?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
5918 DEFINE_THISCALL_WRAPPER(basic_ostream_char__Osfx
, 4)
5919 void __thiscall
basic_ostream_char__Osfx(basic_ostream_char
*this)
5921 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
5923 TRACE("(%p)\n", this);
5925 if(base
->base
.fmtfl
& FMTFLAG_unitbuf
)
5926 basic_ostream_char_flush(this);
5929 /* ?osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
5930 /* ?osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
5931 DEFINE_THISCALL_WRAPPER(basic_ostream_char_osfx
, 4)
5932 void __thiscall
basic_ostream_char_osfx(basic_ostream_char
*this)
5934 TRACE("(%p)\n", this);
5935 basic_ostream_char__Osfx(this);
5938 static BOOL
basic_ostream_char_sentry_create(basic_ostream_char
*ostr
)
5940 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
5942 if(basic_ios_char_rdbuf_get(base
))
5943 call_basic_streambuf_char__Lock(base
->strbuf
);
5945 if(ios_base_good(&base
->base
) && base
->stream
)
5946 basic_ostream_char_flush(base
->stream
);
5948 return ios_base_good(&base
->base
);
5951 static void basic_ostream_char_sentry_destroy(basic_ostream_char
*ostr
)
5953 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
5955 if(ios_base_good(&base
->base
) && !__uncaught_exception())
5956 basic_ostream_char_osfx(ostr
);
5958 if(basic_ios_char_rdbuf_get(base
))
5959 call_basic_streambuf_char__Unlock(base
->strbuf
);
5962 /* ?opfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE_NXZ */
5963 /* ?opfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA_NXZ */
5964 DEFINE_THISCALL_WRAPPER(basic_ostream_char_opfx
, 4)
5965 MSVCP_bool __thiscall
basic_ostream_char_opfx(basic_ostream_char
*this)
5967 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
5969 TRACE("(%p)\n", this);
5971 if(ios_base_good(&base
->base
) && base
->stream
)
5972 basic_ostream_char_flush(base
->stream
);
5973 return ios_base_good(&base
->base
);
5976 /* ?put@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@D@Z */
5977 /* ?put@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@D@Z */
5978 DEFINE_THISCALL_WRAPPER(basic_ostream_char_put
, 8)
5979 basic_ostream_char
* __thiscall
basic_ostream_char_put(basic_ostream_char
*this, char ch
)
5981 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
5983 TRACE("(%p %c)\n", this, ch
);
5985 if(!basic_ostream_char_sentry_create(this)
5986 || basic_streambuf_char_sputc(base
->strbuf
, ch
)==EOF
) {
5987 basic_ostream_char_sentry_destroy(this);
5988 basic_ios_char_setstate(base
, IOSTATE_badbit
);
5992 basic_ostream_char_sentry_destroy(this);
5996 /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@JH@Z */
5997 /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JH@Z */
5998 #if STREAMOFF_BITS == 64
5999 DEFINE_THISCALL_WRAPPER(basic_ostream_char_seekp
, 16)
6001 DEFINE_THISCALL_WRAPPER(basic_ostream_char_seekp
, 12)
6003 basic_ostream_char
* __thiscall
basic_ostream_char_seekp(basic_ostream_char
*this, streamoff off
, int way
)
6005 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6007 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(off
), way
);
6009 if(!ios_base_fail(&base
->base
)) {
6012 basic_streambuf_char_pubseekoff(basic_ios_char_rdbuf_get(base
),
6013 &seek
, off
, way
, OPENMODE_out
);
6014 if(seek
.off
==-1 && seek
.pos
==0 && seek
.state
==0)
6015 basic_ios_char_setstate(base
, IOSTATE_failbit
);
6020 /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
6021 /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
6022 DEFINE_THISCALL_WRAPPER(basic_ostream_char_seekp_fpos
, 28)
6023 basic_ostream_char
* __thiscall
basic_ostream_char_seekp_fpos(basic_ostream_char
*this, fpos_int pos
)
6025 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6027 TRACE("(%p %s)\n", this, debugstr_fpos_int(&pos
));
6029 if(!ios_base_fail(&base
->base
)) {
6032 basic_streambuf_char_pubseekpos(basic_ios_char_rdbuf_get(base
),
6033 &seek
, pos
, OPENMODE_out
);
6034 if(seek
.off
==-1 && seek
.pos
==0 && seek
.state
==0)
6035 basic_ios_char_setstate(base
, IOSTATE_failbit
);
6040 /* ?tellp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@XZ */
6041 /* ?tellp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
6042 DEFINE_THISCALL_WRAPPER(basic_ostream_char_tellp
, 8)
6043 fpos_int
* __thiscall
basic_ostream_char_tellp(basic_ostream_char
*this, fpos_int
*ret
)
6045 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6047 TRACE("(%p)\n", this);
6049 if(!ios_base_fail(&base
->base
)) {
6050 basic_streambuf_char_pubseekoff(basic_ios_char_rdbuf_get(base
),
6051 ret
, 0, SEEKDIR_cur
, OPENMODE_out
);
6060 /* ?write@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@PBDH@Z */
6061 /* ?write@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEBD_J@Z */
6062 #if STREAMSIZE_BITS == 64
6063 DEFINE_THISCALL_WRAPPER(basic_ostream_char_write
, 16)
6065 DEFINE_THISCALL_WRAPPER(basic_ostream_char_write
, 12)
6067 basic_ostream_char
* __thiscall
basic_ostream_char_write(basic_ostream_char
*this, const char *str
, streamsize count
)
6069 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6071 TRACE("(%p %s %s)\n", this, debugstr_a(str
), wine_dbgstr_longlong(count
));
6073 if(!basic_ostream_char_sentry_create(this)
6074 || basic_streambuf_char_sputn(base
->strbuf
, str
, count
)!=count
) {
6075 basic_ostream_char_sentry_destroy(this);
6076 basic_ios_char_setstate(base
, IOSTATE_badbit
);
6080 basic_ostream_char_sentry_destroy(this);
6084 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@F@Z */
6085 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@F@Z */
6086 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_short
, 8)
6087 basic_ostream_char
* __thiscall
basic_ostream_char_print_short(basic_ostream_char
*this, short val
)
6089 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6090 int state
= IOSTATE_goodbit
;
6092 TRACE("(%p %d)\n", this, val
);
6094 if(basic_ostream_char_sentry_create(this)) {
6095 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6096 const num_put
*numput
= num_put_char_use_facet(strbuf
->loc
);
6097 ostreambuf_iterator_char dest
;
6099 memset(&dest
, 0, sizeof(dest
));
6100 dest
.strbuf
= strbuf
;
6101 num_put_char_put_long(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
),
6102 (ios_base_flags_get(&base
->base
) & FMTFLAG_basefield
& (FMTFLAG_oct
| FMTFLAG_hex
))
6103 ? (LONG
)((unsigned short)val
) : (LONG
)val
);
6105 basic_ostream_char_sentry_destroy(this);
6107 basic_ios_char_setstate(base
, state
);
6111 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@G@Z */
6112 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@G@Z */
6113 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_ushort
, 8)
6114 basic_ostream_char
* __thiscall
basic_ostream_char_print_ushort(basic_ostream_char
*this, unsigned short val
)
6116 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6117 int state
= IOSTATE_goodbit
;
6119 TRACE("(%p %u)\n", this, val
);
6121 if(basic_ostream_char_sentry_create(this)) {
6122 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6123 const num_put
*numput
= num_put_char_use_facet(strbuf
->loc
);
6124 ostreambuf_iterator_char dest
;
6126 memset(&dest
, 0, sizeof(dest
));
6127 dest
.strbuf
= strbuf
;
6128 num_put_char_put_ulong(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6130 basic_ostream_char_sentry_destroy(this);
6132 basic_ios_char_setstate(base
, state
);
6136 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@H@Z */
6137 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@H@Z */
6138 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@J@Z */
6139 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@J@Z */
6140 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_int
, 8)
6141 basic_ostream_char
* __thiscall
basic_ostream_char_print_int(basic_ostream_char
*this, int val
)
6143 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6144 int state
= IOSTATE_goodbit
;
6146 TRACE("(%p %d)\n", this, val
);
6148 if(basic_ostream_char_sentry_create(this)) {
6149 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6150 const num_put
*numput
= num_put_char_use_facet(strbuf
->loc
);
6151 ostreambuf_iterator_char dest
;
6153 memset(&dest
, 0, sizeof(dest
));
6154 dest
.strbuf
= strbuf
;
6155 num_put_char_put_long(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6157 basic_ostream_char_sentry_destroy(this);
6159 basic_ios_char_setstate(base
, state
);
6163 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@I@Z */
6164 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@I@Z */
6165 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@K@Z */
6166 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@K@Z */
6167 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_uint
, 8)
6168 basic_ostream_char
* __thiscall
basic_ostream_char_print_uint(basic_ostream_char
*this, unsigned int val
)
6170 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6171 int state
= IOSTATE_goodbit
;
6173 TRACE("(%p %u)\n", this, val
);
6175 if(basic_ostream_char_sentry_create(this)) {
6176 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6177 const num_put
*numput
= num_put_char_use_facet(strbuf
->loc
);
6178 ostreambuf_iterator_char dest
;
6180 memset(&dest
, 0, sizeof(dest
));
6181 dest
.strbuf
= strbuf
;
6182 num_put_char_put_ulong(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6184 basic_ostream_char_sentry_destroy(this);
6186 basic_ios_char_setstate(base
, state
);
6190 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@M@Z */
6191 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@M@Z */
6192 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_float
, 8)
6193 basic_ostream_char
* __thiscall
basic_ostream_char_print_float(basic_ostream_char
*this, float val
)
6195 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6196 int state
= IOSTATE_goodbit
;
6198 TRACE("(%p %f)\n", this, val
);
6200 if(basic_ostream_char_sentry_create(this)) {
6201 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6202 const num_put
*numput
= num_put_char_use_facet(strbuf
->loc
);
6203 ostreambuf_iterator_char dest
;
6205 memset(&dest
, 0, sizeof(dest
));
6206 dest
.strbuf
= strbuf
;
6207 num_put_char_put_double(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6209 basic_ostream_char_sentry_destroy(this);
6211 basic_ios_char_setstate(base
, state
);
6215 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@N@Z */
6216 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@N@Z */
6217 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_double
, 12)
6218 basic_ostream_char
* __thiscall
basic_ostream_char_print_double(basic_ostream_char
*this, double val
)
6220 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6221 int state
= IOSTATE_goodbit
;
6223 TRACE("(%p %lf)\n", this, val
);
6225 if(basic_ostream_char_sentry_create(this)) {
6226 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6227 const num_put
*numput
= num_put_char_use_facet(strbuf
->loc
);
6228 ostreambuf_iterator_char dest
;
6230 memset(&dest
, 0, sizeof(dest
));
6231 dest
.strbuf
= strbuf
;
6232 num_put_char_put_double(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6234 basic_ostream_char_sentry_destroy(this);
6236 basic_ios_char_setstate(base
, state
);
6240 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@O@Z */
6241 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@O@Z */
6242 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_ldouble
, 12)
6243 basic_ostream_char
* __thiscall
basic_ostream_char_print_ldouble(basic_ostream_char
*this, double val
)
6245 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6246 int state
= IOSTATE_goodbit
;
6248 TRACE("(%p %lf)\n", this, val
);
6250 if(basic_ostream_char_sentry_create(this)) {
6251 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6252 const num_put
*numput
= num_put_char_use_facet(strbuf
->loc
);
6253 ostreambuf_iterator_char dest
;
6255 memset(&dest
, 0, sizeof(dest
));
6256 dest
.strbuf
= strbuf
;
6257 num_put_char_put_ldouble(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6259 basic_ostream_char_sentry_destroy(this);
6261 basic_ios_char_setstate(base
, state
);
6265 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
6266 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
6267 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_streambuf
, 8)
6268 basic_ostream_char
* __thiscall
basic_ostream_char_print_streambuf(basic_ostream_char
*this, basic_streambuf_char
*val
)
6270 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6271 IOSB_iostate state
= IOSTATE_badbit
;
6274 TRACE("(%p %p)\n", this, val
);
6276 if(basic_ostream_char_sentry_create(this)) {
6277 for(c
= basic_streambuf_char_sgetc(val
); c
!=EOF
;
6278 c
= basic_streambuf_char_snextc(val
)) {
6279 state
= IOSTATE_goodbit
;
6281 if(basic_streambuf_char_sputc(base
->strbuf
, c
) == EOF
) {
6282 state
= IOSTATE_badbit
;
6287 state
= IOSTATE_badbit
;
6289 basic_ostream_char_sentry_destroy(this);
6291 ios_base_width_set(&base
->base
, 0);
6292 basic_ios_char_setstate(base
, state
);
6296 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@PBX@Z */
6297 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@PEBX@Z */
6298 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_ptr
, 8)
6299 basic_ostream_char
* __thiscall
basic_ostream_char_print_ptr(basic_ostream_char
*this, const void *val
)
6301 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6302 int state
= IOSTATE_goodbit
;
6304 TRACE("(%p %p)\n", this, val
);
6306 if(basic_ostream_char_sentry_create(this)) {
6307 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6308 const num_put
*numput
= num_put_char_use_facet(strbuf
->loc
);
6309 ostreambuf_iterator_char dest
;
6311 memset(&dest
, 0, sizeof(dest
));
6312 dest
.strbuf
= strbuf
;
6313 num_put_char_put_ptr(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6315 basic_ostream_char_sentry_destroy(this);
6317 basic_ios_char_setstate(base
, state
);
6321 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@_J@Z */
6322 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@_J@Z */
6323 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_int64
, 12)
6324 basic_ostream_char
* __thiscall
basic_ostream_char_print_int64(basic_ostream_char
*this, __int64 val
)
6326 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6327 int state
= IOSTATE_goodbit
;
6329 TRACE("(%p)\n", this);
6331 if(basic_ostream_char_sentry_create(this)) {
6332 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6333 const num_put
*numput
= num_put_char_use_facet(strbuf
->loc
);
6334 ostreambuf_iterator_char dest
;
6336 memset(&dest
, 0, sizeof(dest
));
6337 dest
.strbuf
= strbuf
;
6338 num_put_char_put_int64(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6340 basic_ostream_char_sentry_destroy(this);
6342 basic_ios_char_setstate(base
, state
);
6346 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@_K@Z */
6347 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@_K@Z */
6348 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_uint64
, 12)
6349 basic_ostream_char
* __thiscall
basic_ostream_char_print_uint64(basic_ostream_char
*this, unsigned __int64 val
)
6351 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6352 int state
= IOSTATE_goodbit
;
6354 TRACE("(%p)\n", this);
6356 if(basic_ostream_char_sentry_create(this)) {
6357 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6358 const num_put
*numput
= num_put_char_use_facet(strbuf
->loc
);
6359 ostreambuf_iterator_char dest
;
6361 memset(&dest
, 0, sizeof(dest
));
6362 dest
.strbuf
= strbuf
;
6363 num_put_char_put_uint64(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6365 basic_ostream_char_sentry_destroy(this);
6367 basic_ios_char_setstate(base
, state
);
6371 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@_N@Z */
6372 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@_N@Z */
6373 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_bool
, 8)
6374 basic_ostream_char
* __thiscall
basic_ostream_char_print_bool(basic_ostream_char
*this, MSVCP_bool val
)
6376 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6377 int state
= IOSTATE_goodbit
;
6379 TRACE("(%p %x)\n", this, val
);
6381 if(basic_ostream_char_sentry_create(this)) {
6382 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6383 const num_put
*numput
= num_put_char_use_facet(strbuf
->loc
);
6384 ostreambuf_iterator_char dest
;
6386 memset(&dest
, 0, sizeof(dest
));
6387 dest
.strbuf
= strbuf
;
6388 num_put_char_put_bool(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6390 basic_ostream_char_sentry_destroy(this);
6392 basic_ios_char_setstate(base
, state
);
6396 /* ?ends@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z */
6397 /* ?ends@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@1@AEAV21@@Z */
6398 basic_ostream_char
* __cdecl
basic_ostream_char_ends(basic_ostream_char
*ostr
)
6400 TRACE("(%p)\n", ostr
);
6402 basic_ostream_char_put(ostr
, 0);
6406 /* ?endl@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z */
6407 /* ?endl@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@1@AEAV21@@Z */
6408 basic_ostream_char
* __cdecl
basic_ostream_char_endl(basic_ostream_char
*ostr
)
6410 TRACE("(%p)\n", ostr
);
6412 basic_ostream_char_put(ostr
, '\n');
6413 basic_ostream_char_flush(ostr
);
6417 /* $?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 */
6418 /* ??$?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 */
6419 basic_ostream_char
* __cdecl
basic_ostream_char_print_bstr(basic_ostream_char
*ostr
, const basic_string_char
*str
)
6421 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
6422 IOSB_iostate state
= IOSTATE_goodbit
;
6424 TRACE("(%p %p)\n", ostr
, str
);
6426 if(basic_ostream_char_sentry_create(ostr
)) {
6427 MSVCP_size_t len
= MSVCP_basic_string_char_length(str
);
6428 streamsize pad
= (base
->base
.wide
>len
? base
->base
.wide
-len
: 0);
6430 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
6431 for(; pad
!=0; pad
--) {
6432 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
6433 state
= IOSTATE_badbit
;
6439 if(state
== IOSTATE_goodbit
) {
6440 if(basic_streambuf_char_sputn(base
->strbuf
, MSVCP_basic_string_char_c_str(str
), len
) != len
)
6441 state
= IOSTATE_badbit
;
6444 if(state
== IOSTATE_goodbit
) {
6445 for(; pad
!=0; pad
--) {
6446 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
6447 state
= IOSTATE_badbit
;
6453 base
->base
.wide
= 0;
6455 state
= IOSTATE_badbit
;
6457 basic_ostream_char_sentry_destroy(ostr
);
6459 basic_ios_char_setstate(base
, state
);
6463 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@C@Z */
6464 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@C@Z */
6465 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@D@Z */
6466 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@D@Z */
6467 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@E@Z */
6468 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@E@Z */
6469 basic_ostream_char
* __cdecl
basic_ostream_char_print_ch(basic_ostream_char
*ostr
, char ch
)
6471 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
6472 IOSB_iostate state
= IOSTATE_goodbit
;
6474 TRACE("(%p %d)\n", ostr
, ch
);
6476 if(basic_ostream_char_sentry_create(ostr
)) {
6477 streamsize pad
= (base
->base
.wide
>1 ? base
->base
.wide
-1 : 0);
6479 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
6480 for(; pad
!=0; pad
--) {
6481 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
6482 state
= IOSTATE_badbit
;
6488 if(state
== IOSTATE_goodbit
) {
6489 if(basic_streambuf_char_sputc(base
->strbuf
, ch
) == EOF
)
6490 state
= IOSTATE_badbit
;
6493 if(state
== IOSTATE_goodbit
) {
6494 for(; pad
!=0; pad
--) {
6495 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
6496 state
= IOSTATE_badbit
;
6502 base
->base
.wide
= 0;
6504 state
= IOSTATE_badbit
;
6506 basic_ostream_char_sentry_destroy(ostr
);
6508 basic_ios_char_setstate(base
, state
);
6512 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBC@Z */
6513 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBC@Z */
6514 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z */
6515 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBD@Z */
6516 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBE@Z */
6517 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBE@Z */
6518 basic_ostream_char
* __cdecl
basic_ostream_char_print_str(basic_ostream_char
*ostr
, const char *str
)
6520 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
6521 IOSB_iostate state
= IOSTATE_goodbit
;
6523 TRACE("(%p %s)\n", ostr
, str
);
6525 if(basic_ostream_char_sentry_create(ostr
)) {
6526 MSVCP_size_t len
= strlen(str
);
6527 streamsize pad
= (base
->base
.wide
>len
? base
->base
.wide
-len
: 0);
6529 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
6530 for(; pad
!=0; pad
--) {
6531 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
6532 state
= IOSTATE_badbit
;
6538 if(state
== IOSTATE_goodbit
) {
6539 if(basic_streambuf_char_sputn(base
->strbuf
, str
, len
) != len
)
6540 state
= IOSTATE_badbit
;
6543 if(state
== IOSTATE_goodbit
) {
6544 for(; pad
!=0; pad
--) {
6545 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
6546 state
= IOSTATE_badbit
;
6552 base
->base
.wide
= 0;
6554 state
= IOSTATE_badbit
;
6556 basic_ostream_char_sentry_destroy(ostr
);
6558 basic_ios_char_setstate(base
, state
);
6562 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
6563 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
6564 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_func
, 8)
6565 basic_ostream_char
* __thiscall
basic_ostream_char_print_func(basic_ostream_char
*this,
6566 basic_ostream_char
* (__cdecl
*pfunc
)(basic_ostream_char
*))
6568 TRACE("(%p %p)\n", this, pfunc
);
6573 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@DU?$char_traits@D@std@@@1@AAV21@@Z@Z */
6574 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@DU?$char_traits@D@std@@@1@AEAV21@@Z@Z */
6575 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_func_basic_ios
, 8)
6576 basic_ostream_char
* __thiscall
basic_ostream_char_print_func_basic_ios(basic_ostream_char
*this,
6577 basic_ios_char
* (__cdecl
*pfunc
)(basic_ios_char
*))
6579 TRACE("(%p %p)\n", this, pfunc
);
6580 pfunc(basic_ostream_char_get_basic_ios(this));
6584 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
6585 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
6586 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_func_ios_base
, 8)
6587 basic_ostream_char
* __thiscall
basic_ostream_char_print_func_ios_base(
6588 basic_ostream_char
*this, ios_base
* (__cdecl
*pfunc
)(ios_base
*))
6590 TRACE("(%p %p)\n", this, pfunc
);
6591 pfunc(&basic_ostream_char_get_basic_ios(this)->base
);
6595 /* Caution: basic_ostream uses virtual inheritance. */
6596 static inline basic_ios_wchar
* basic_ostream_wchar_get_basic_ios(basic_ostream_wchar
*this)
6598 return (basic_ios_wchar
*)((char*)this+this->vbtable
[1]);
6601 static inline basic_ios_wchar
* basic_ostream_wchar_to_basic_ios(basic_ostream_wchar
*ptr
)
6603 return (basic_ios_wchar
*)((char*)ptr
+basic_ostream_wchar_vbtable
[1]);
6606 static inline basic_ostream_wchar
* basic_ostream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
6608 return (basic_ostream_wchar
*)((char*)ptr
-basic_ostream_wchar_vbtable
[1]);
6611 /* ??0?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N@Z */
6612 /* ??0?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N@Z */
6613 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_ctor
, 16)
6614 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_ctor(basic_ostream_wchar
*this,
6615 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
6617 basic_ios_wchar
*base
;
6619 TRACE("(%p %p %d %d)\n", this, strbuf
, isstd
, virt_init
);
6622 this->vbtable
= basic_ostream_wchar_vbtable
;
6623 base
= basic_ostream_wchar_get_basic_ios(this);
6624 basic_ios_wchar_ctor(base
);
6626 base
= basic_ostream_wchar_get_basic_ios(this);
6629 base
->base
.vtable
= &MSVCP_basic_ostream_wchar_vtable
;
6630 basic_ios_wchar_init(base
, strbuf
, isstd
);
6634 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N@Z */
6635 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N@Z */
6636 DEFINE_THISCALL_WRAPPER(basic_ostream_short_ctor
, 16)
6637 basic_ostream_wchar
* __thiscall
basic_ostream_short_ctor(basic_ostream_wchar
*this,
6638 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
6640 basic_ostream_wchar_ctor(this, strbuf
, isstd
, virt_init
);
6641 basic_ostream_wchar_get_basic_ios(this)->base
.vtable
= &MSVCP_basic_ostream_short_vtable
;
6645 /* ??0?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAE@W4_Uninitialized@1@_N@Z */
6646 /* ??0?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA@W4_Uninitialized@1@_N@Z */
6647 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_ctor_uninitialized
, 16)
6648 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_ctor_uninitialized(basic_ostream_wchar
*this,
6649 int uninitialized
, MSVCP_bool addstd
, MSVCP_bool virt_init
)
6651 basic_ios_wchar
*base
;
6653 TRACE("(%p %d %x)\n", this, uninitialized
, addstd
);
6656 this->vbtable
= basic_ostream_wchar_vbtable
;
6657 base
= basic_ostream_wchar_get_basic_ios(this);
6658 basic_ios_wchar_ctor(base
);
6660 base
= basic_ostream_wchar_get_basic_ios(this);
6663 base
->base
.vtable
= &MSVCP_basic_ostream_wchar_vtable
;
6665 ios_base_Addstd(&base
->base
);
6669 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE@W4_Uninitialized@1@_N@Z */
6670 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA@W4_Uninitialized@1@_N@Z */
6671 DEFINE_THISCALL_WRAPPER(basic_ostream_short_ctor_uninitialized
, 16)
6672 basic_ostream_wchar
* __thiscall
basic_ostream_short_ctor_uninitialized(basic_ostream_wchar
*this,
6673 int uninitialized
, MSVCP_bool addstd
, MSVCP_bool virt_init
)
6675 basic_ostream_wchar_ctor_uninitialized(this, uninitialized
, addstd
, virt_init
);
6676 basic_ostream_wchar_get_basic_ios(this)->base
.vtable
= &MSVCP_basic_ostream_short_vtable
;
6680 /* ??1?$basic_ostream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
6681 /* ??1?$basic_ostream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
6682 /* ??1?$basic_ostream@GU?$char_traits@G@std@@@std@@UAE@XZ */
6683 /* ??1?$basic_ostream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
6684 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_dtor
, 4)
6685 void __thiscall
basic_ostream_wchar_dtor(basic_ios_wchar
*base
)
6687 basic_ostream_wchar
*this = basic_ostream_wchar_from_basic_ios(base
);
6689 /* don't destroy virtual base here */
6690 TRACE("(%p)\n", this);
6693 /* ??_D?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
6694 /* ??_D?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
6695 /* ??_D?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
6696 /* ??_D?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
6697 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_vbase_dtor
, 4)
6698 void __thiscall
basic_ostream_wchar_vbase_dtor(basic_ostream_wchar
*this)
6700 TRACE("(%p)\n", this);
6701 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(this));
6702 basic_ios_wchar_dtor(basic_ostream_wchar_get_basic_ios(this));
6705 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_vector_dtor
, 8)
6706 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
6708 basic_ostream_wchar
*this = basic_ostream_wchar_from_basic_ios(base
);
6710 TRACE("(%p %x)\n", this, flags
);
6713 /* we have an array, with the number of elements stored before the first object */
6714 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
6716 for(i
=*ptr
-1; i
>=0; i
--)
6717 basic_ostream_wchar_vbase_dtor(this+i
);
6718 MSVCRT_operator_delete(ptr
);
6720 basic_ostream_wchar_vbase_dtor(this);
6722 MSVCRT_operator_delete(this);
6728 /* ?flush@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@XZ */
6729 /* ?flush@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@XZ */
6730 /* ?flush@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@XZ */
6731 /* ?flush@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@XZ */
6732 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_flush
, 4)
6733 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_flush(basic_ostream_wchar
*this)
6735 /* this function is not matching C++ specification */
6736 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6738 TRACE("(%p)\n", this);
6740 if(basic_ios_wchar_rdbuf_get(base
) && ios_base_good(&base
->base
)
6741 && basic_streambuf_wchar_pubsync(basic_ios_wchar_rdbuf_get(base
))==-1)
6742 basic_ios_wchar_setstate(base
, IOSTATE_badbit
);
6746 /* ?flush@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AAV21@@Z */
6747 /* ?flush@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AEAV21@@Z */
6748 /* ?flush@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@1@AAV21@@Z */
6749 /* ?flush@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@1@AEAV21@@Z */
6750 basic_ostream_wchar
* __cdecl
flush_ostream_wchar(basic_ostream_wchar
*ostream
)
6752 return basic_ostream_wchar_flush(ostream
);
6755 /* ?_Osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
6756 /* ?_Osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
6757 /* ?_Osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
6758 /* ?_Osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
6759 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar__Osfx
, 4)
6760 void __thiscall
basic_ostream_wchar__Osfx(basic_ostream_wchar
*this)
6762 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6764 TRACE("(%p)\n", this);
6766 if(base
->base
.fmtfl
& FMTFLAG_unitbuf
)
6767 basic_ostream_wchar_flush(this);
6770 /* ?osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
6771 /* ?osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
6772 /* ?osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
6773 /* ?osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
6774 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_osfx
, 4)
6775 void __thiscall
basic_ostream_wchar_osfx(basic_ostream_wchar
*this)
6777 TRACE("(%p)\n", this);
6778 basic_ostream_wchar__Osfx(this);
6781 static BOOL
basic_ostream_wchar_sentry_create(basic_ostream_wchar
*ostr
)
6783 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
6785 if(basic_ios_wchar_rdbuf_get(base
))
6786 basic_streambuf_wchar__Lock(base
->strbuf
);
6788 if(ios_base_good(&base
->base
) && base
->stream
)
6789 basic_ostream_wchar_flush(base
->stream
);
6791 return ios_base_good(&base
->base
);
6794 static void basic_ostream_wchar_sentry_destroy(basic_ostream_wchar
*ostr
)
6796 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
6798 if(ios_base_good(&base
->base
) && !__uncaught_exception())
6799 basic_ostream_wchar_osfx(ostr
);
6801 if(basic_ios_wchar_rdbuf_get(base
))
6802 basic_streambuf_wchar__Unlock(base
->strbuf
);
6805 /* ?opfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAE_NXZ */
6806 /* ?opfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA_NXZ */
6807 /* ?opfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE_NXZ */
6808 /* ?opfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA_NXZ */
6809 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_opfx
, 4)
6810 MSVCP_bool __thiscall
basic_ostream_wchar_opfx(basic_ostream_wchar
*this)
6812 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6814 TRACE("(%p)\n", this);
6816 if(ios_base_good(&base
->base
) && base
->stream
)
6817 basic_ostream_wchar_flush(base
->stream
);
6818 return ios_base_good(&base
->base
);
6821 /* ?put@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@_W@Z */
6822 /* ?put@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_W@Z */
6823 /* ?put@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@G@Z */
6824 /* ?put@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@G@Z */
6825 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_put
, 8)
6826 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_put(basic_ostream_wchar
*this, wchar_t ch
)
6828 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6830 TRACE("(%p %c)\n", this, ch
);
6832 if(!basic_ostream_wchar_sentry_create(this)
6833 || basic_streambuf_wchar_sputc(base
->strbuf
, ch
)==WEOF
) {
6834 basic_ostream_wchar_sentry_destroy(this);
6835 basic_ios_wchar_setstate(base
, IOSTATE_badbit
);
6839 basic_ostream_wchar_sentry_destroy(this);
6843 /* ?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@JH@Z */
6844 /* ?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_JH@Z */
6845 /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@JH@Z */
6846 /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JH@Z */
6847 #if STREAMOFF_BITS == 64
6848 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_seekp
, 16)
6850 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_seekp
, 12)
6852 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_seekp(basic_ostream_wchar
*this, streamoff off
, int way
)
6854 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6856 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(off
), way
);
6858 if(!ios_base_fail(&base
->base
)) {
6861 basic_streambuf_wchar_pubseekoff(basic_ios_wchar_rdbuf_get(base
),
6862 &seek
, off
, way
, OPENMODE_out
);
6863 if(seek
.off
==-1 && seek
.pos
==0 && seek
.state
==0)
6864 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
6869 /* ?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
6870 /* ?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
6871 /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
6872 /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
6873 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_seekp_fpos
, 28)
6874 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_seekp_fpos(basic_ostream_wchar
*this, fpos_int pos
)
6876 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6878 TRACE("(%p %s)\n", this, debugstr_fpos_int(&pos
));
6880 if(!ios_base_fail(&base
->base
)) {
6883 basic_streambuf_wchar_pubseekpos(basic_ios_wchar_rdbuf_get(base
),
6884 &seek
, pos
, OPENMODE_out
);
6885 if(seek
.off
==-1 && seek
.pos
==0 && seek
.state
==0)
6886 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
6891 /* ?tellp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@XZ */
6892 /* ?tellp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
6893 /* ?tellp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@XZ */
6894 /* ?tellp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
6895 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_tellp
, 8)
6896 fpos_int
* __thiscall
basic_ostream_wchar_tellp(basic_ostream_wchar
*this, fpos_int
*ret
)
6898 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6900 TRACE("(%p)\n", this);
6902 if(!ios_base_fail(&base
->base
)) {
6903 basic_streambuf_wchar_pubseekoff(basic_ios_wchar_rdbuf_get(base
),
6904 ret
, 0, SEEKDIR_cur
, OPENMODE_out
);
6913 /* ?write@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PB_WH@Z */
6914 /* ?write@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEB_W_J@Z */
6915 /* ?write@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@PBGH@Z */
6916 /* ?write@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEBG_J@Z */
6917 #if STREAMSIZE_BITS == 64
6918 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_write
, 16)
6920 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_write
, 12)
6922 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_write(basic_ostream_wchar
*this, const wchar_t *str
, streamsize count
)
6924 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6926 TRACE("(%p %s %s)\n", this, debugstr_w(str
), wine_dbgstr_longlong(count
));
6928 if(!basic_ostream_wchar_sentry_create(this)
6929 || basic_streambuf_wchar_sputn(base
->strbuf
, str
, count
)!=count
) {
6930 basic_ostream_wchar_sentry_destroy(this);
6931 basic_ios_wchar_setstate(base
, IOSTATE_badbit
);
6935 basic_ostream_wchar_sentry_destroy(this);
6939 static basic_ostream_wchar
* basic_ostream_print_short(basic_ostream_wchar
*this, short val
, const num_put
*numput
)
6941 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6942 int state
= IOSTATE_goodbit
;
6944 TRACE("(%p %d)\n", this, val
);
6946 if(basic_ostream_wchar_sentry_create(this)) {
6947 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
6948 ostreambuf_iterator_wchar dest
;
6950 memset(&dest
, 0, sizeof(dest
));
6951 dest
.strbuf
= strbuf
;
6952 num_put_wchar_put_long(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
),
6953 (ios_base_flags_get(&base
->base
) & FMTFLAG_basefield
& (FMTFLAG_oct
| FMTFLAG_hex
))
6954 ? (LONG
)((unsigned short)val
) : (LONG
)val
);
6956 basic_ostream_wchar_sentry_destroy(this);
6958 basic_ios_wchar_setstate(base
, state
);
6962 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@F@Z */
6963 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@F@Z */
6964 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_short
, 8)
6965 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_short(basic_ostream_wchar
*this, short val
)
6967 return basic_ostream_print_short(this, val
, num_put_wchar_use_facet(
6968 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
6971 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@F@Z */
6972 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@F@Z */
6973 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_short
, 8)
6974 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_short(basic_ostream_wchar
*this, short val
)
6976 return basic_ostream_print_short(this, val
, num_put_short_use_facet(
6977 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
6980 static basic_ostream_wchar
* basic_ostream_print_ushort(basic_ostream_wchar
*this, unsigned short val
, const num_put
*numput
)
6982 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6983 int state
= IOSTATE_goodbit
;
6985 TRACE("(%p %d)\n", this, val
);
6987 if(basic_ostream_wchar_sentry_create(this)) {
6988 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
6989 ostreambuf_iterator_wchar dest
;
6991 memset(&dest
, 0, sizeof(dest
));
6992 dest
.strbuf
= strbuf
;
6993 num_put_wchar_put_ulong(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
6995 basic_ostream_wchar_sentry_destroy(this);
6997 basic_ios_wchar_setstate(base
, state
);
7001 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@G@Z */
7002 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@G@Z */
7003 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_ushort
, 8)
7004 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_ushort(basic_ostream_wchar
*this, unsigned short val
)
7006 return basic_ostream_print_ushort(this, val
, num_put_wchar_use_facet(
7007 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
7010 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@G@Z */
7011 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@G@Z */
7012 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_ushort
, 8)
7013 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_ushort(basic_ostream_wchar
*this, unsigned short val
)
7015 return basic_ostream_print_ushort(this, val
, num_put_short_use_facet(
7016 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
7019 static basic_ostream_wchar
* basic_ostream_print_int(basic_ostream_wchar
*this, int val
, const num_put
*numput
)
7021 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7022 int state
= IOSTATE_goodbit
;
7024 TRACE("(%p %d)\n", this, val
);
7026 if(basic_ostream_wchar_sentry_create(this)) {
7027 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7028 ostreambuf_iterator_wchar dest
;
7030 memset(&dest
, 0, sizeof(dest
));
7031 dest
.strbuf
= strbuf
;
7032 num_put_wchar_put_long(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7034 basic_ostream_wchar_sentry_destroy(this);
7036 basic_ios_wchar_setstate(base
, state
);
7040 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@H@Z */
7041 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@H@Z */
7042 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@J@Z */
7043 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@J@Z */
7044 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_int
, 8)
7045 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_int(basic_ostream_wchar
*this, int val
)
7047 return basic_ostream_print_int(this, val
, num_put_wchar_use_facet(
7048 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
7051 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@H@Z */
7052 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@H@Z */
7053 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@J@Z */
7054 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@J@Z */
7055 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_int
, 8)
7056 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_int(basic_ostream_wchar
*this, int val
)
7058 return basic_ostream_print_int(this, val
, num_put_short_use_facet(
7059 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
7062 static basic_ostream_wchar
* basic_ostream_print_uint(basic_ostream_wchar
*this, unsigned int val
, const num_put
*numput
)
7064 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7065 int state
= IOSTATE_goodbit
;
7067 TRACE("(%p %u)\n", this, val
);
7069 if(basic_ostream_wchar_sentry_create(this)) {
7070 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7071 ostreambuf_iterator_wchar dest
;
7073 memset(&dest
, 0, sizeof(dest
));
7074 dest
.strbuf
= strbuf
;
7075 num_put_wchar_put_ulong(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7077 basic_ostream_wchar_sentry_destroy(this);
7079 basic_ios_wchar_setstate(base
, state
);
7083 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@I@Z */
7084 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@I@Z */
7085 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@K@Z */
7086 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@K@Z */
7087 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_uint
, 8)
7088 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_uint(basic_ostream_wchar
*this, unsigned int val
)
7090 return basic_ostream_print_uint(this, val
, num_put_wchar_use_facet(
7091 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
7094 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@I@Z */
7095 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@I@Z */
7096 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@K@Z */
7097 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@K@Z */
7098 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_uint
, 8)
7099 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_uint(basic_ostream_wchar
*this, unsigned int val
)
7101 return basic_ostream_print_uint(this, val
, num_put_short_use_facet(
7102 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
7105 static basic_ostream_wchar
* basic_ostream_print_float(basic_ostream_wchar
*this, float val
, const num_put
*numput
)
7107 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7108 int state
= IOSTATE_goodbit
;
7110 TRACE("(%p %f)\n", this, val
);
7112 if(basic_ostream_wchar_sentry_create(this)) {
7113 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7114 ostreambuf_iterator_wchar dest
;
7116 memset(&dest
, 0, sizeof(dest
));
7117 dest
.strbuf
= strbuf
;
7118 num_put_wchar_put_double(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7120 basic_ostream_wchar_sentry_destroy(this);
7122 basic_ios_wchar_setstate(base
, state
);
7126 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@M@Z */
7127 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@M@Z */
7128 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_float
, 8)
7129 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_float(basic_ostream_wchar
*this, float val
)
7131 return basic_ostream_print_float(this, val
, num_put_wchar_use_facet(
7132 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
7135 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@M@Z */
7136 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@M@Z */
7137 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_float
, 8)
7138 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_float(basic_ostream_wchar
*this, float val
)
7140 return basic_ostream_print_float(this, val
, num_put_short_use_facet(
7141 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
7144 static basic_ostream_wchar
* basic_ostream_print_double(basic_ostream_wchar
*this, double val
, const num_put
*numput
)
7146 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7147 int state
= IOSTATE_goodbit
;
7149 TRACE("(%p %lf)\n", this, val
);
7151 if(basic_ostream_wchar_sentry_create(this)) {
7152 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7153 ostreambuf_iterator_wchar dest
;
7155 memset(&dest
, 0, sizeof(dest
));
7156 dest
.strbuf
= strbuf
;
7157 num_put_wchar_put_double(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7159 basic_ostream_wchar_sentry_destroy(this);
7161 basic_ios_wchar_setstate(base
, state
);
7165 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@N@Z */
7166 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@N@Z */
7167 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_double
, 12)
7168 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_double(basic_ostream_wchar
*this, double val
)
7170 return basic_ostream_print_double(this, val
, num_put_wchar_use_facet(
7171 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
7174 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@N@Z */
7175 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@N@Z */
7176 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_double
, 12)
7177 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_double(basic_ostream_wchar
*this, double val
)
7179 return basic_ostream_print_double(this, val
, num_put_short_use_facet(
7180 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
7183 static basic_ostream_wchar
* basic_ostream_print_ldouble(basic_ostream_wchar
*this, double val
, const num_put
*numput
)
7185 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7186 int state
= IOSTATE_goodbit
;
7188 TRACE("(%p %lf)\n", this, val
);
7190 if(basic_ostream_wchar_sentry_create(this)) {
7191 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7192 ostreambuf_iterator_wchar dest
;
7194 memset(&dest
, 0, sizeof(dest
));
7195 dest
.strbuf
= strbuf
;
7196 num_put_wchar_put_ldouble(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7198 basic_ostream_wchar_sentry_destroy(this);
7200 basic_ios_wchar_setstate(base
, state
);
7204 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@O@Z */
7205 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@O@Z */
7206 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_ldouble
, 12)
7207 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_ldouble(basic_ostream_wchar
*this, double val
)
7209 return basic_ostream_print_ldouble(this, val
, num_put_wchar_use_facet(
7210 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
7213 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@O@Z */
7214 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@O@Z */
7215 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_ldouble
, 12)
7216 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_ldouble(basic_ostream_wchar
*this, double val
)
7218 return basic_ostream_print_ldouble(this, val
, num_put_short_use_facet(
7219 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
7222 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
7223 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
7224 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
7225 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
7226 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_streambuf
, 8)
7227 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_streambuf(basic_ostream_wchar
*this, basic_streambuf_wchar
*val
)
7229 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7230 IOSB_iostate state
= IOSTATE_badbit
;
7231 unsigned short c
= '\n';
7233 TRACE("(%p %p)\n", this, val
);
7235 if(basic_ostream_wchar_sentry_create(this)) {
7236 for(c
= basic_streambuf_wchar_sgetc(val
); c
!=WEOF
;
7237 c
= basic_streambuf_wchar_snextc(val
)) {
7238 state
= IOSTATE_goodbit
;
7240 if(basic_streambuf_wchar_sputc(base
->strbuf
, c
) == WEOF
) {
7241 state
= IOSTATE_badbit
;
7246 state
= IOSTATE_badbit
;
7248 basic_ostream_wchar_sentry_destroy(this);
7250 ios_base_width_set(&base
->base
, 0);
7251 basic_ios_wchar_setstate(base
, state
);
7255 static basic_ostream_wchar
* basic_ostream_print_ptr(basic_ostream_wchar
*this, const void *val
, const num_put
*numput
)
7257 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7258 int state
= IOSTATE_goodbit
;
7260 TRACE("(%p %p)\n", this, val
);
7262 if(basic_ostream_wchar_sentry_create(this)) {
7263 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7264 ostreambuf_iterator_wchar dest
;
7266 memset(&dest
, 0, sizeof(dest
));
7267 dest
.strbuf
= strbuf
;
7268 num_put_wchar_put_ptr(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7270 basic_ostream_wchar_sentry_destroy(this);
7272 basic_ios_wchar_setstate(base
, state
);
7276 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@PBX@Z */
7277 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@PEBX@Z */
7278 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_ptr
, 8)
7279 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_ptr(basic_ostream_wchar
*this, const void *val
)
7281 return basic_ostream_print_ptr(this, val
, num_put_wchar_use_facet(
7282 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
7285 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@PBX@Z */
7286 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@PEBX@Z */
7287 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_ptr
, 8)
7288 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_ptr(basic_ostream_wchar
*this, const void *val
)
7290 return basic_ostream_print_ptr(this, val
, num_put_short_use_facet(
7291 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
7294 static basic_ostream_wchar
* basic_ostream_print_int64(basic_ostream_wchar
*this, __int64 val
, const num_put
*numput
)
7296 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7297 int state
= IOSTATE_goodbit
;
7299 TRACE("(%p)\n", this);
7301 if(basic_ostream_wchar_sentry_create(this)) {
7302 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7303 ostreambuf_iterator_wchar dest
;
7305 memset(&dest
, 0, sizeof(dest
));
7306 dest
.strbuf
= strbuf
;
7307 num_put_wchar_put_int64(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7309 basic_ostream_wchar_sentry_destroy(this);
7311 basic_ios_wchar_setstate(base
, state
);
7315 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@_J@Z */
7316 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@_J@Z */
7317 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_int64
, 12)
7318 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_int64(basic_ostream_wchar
*this, __int64 val
)
7320 return basic_ostream_print_int64(this, val
, num_put_wchar_use_facet(
7321 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
7324 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@_J@Z */
7325 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@_J@Z */
7326 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_int64
, 12)
7327 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_int64(basic_ostream_wchar
*this, __int64 val
)
7329 return basic_ostream_print_int64(this, val
, num_put_short_use_facet(
7330 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
7333 static basic_ostream_wchar
* basic_ostream_print_uint64(basic_ostream_wchar
*this, unsigned __int64 val
, const num_put
*numput
)
7335 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7336 int state
= IOSTATE_goodbit
;
7338 TRACE("(%p)\n", this);
7340 if(basic_ostream_wchar_sentry_create(this)) {
7341 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7342 ostreambuf_iterator_wchar dest
;
7344 memset(&dest
, 0, sizeof(dest
));
7345 dest
.strbuf
= strbuf
;
7346 num_put_wchar_put_uint64(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7348 basic_ostream_wchar_sentry_destroy(this);
7350 basic_ios_wchar_setstate(base
, state
);
7354 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@_K@Z */
7355 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@_K@Z */
7356 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_uint64
, 12)
7357 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_uint64(basic_ostream_wchar
*this, unsigned __int64 val
)
7359 return basic_ostream_print_uint64(this, val
, num_put_wchar_use_facet(
7360 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
7363 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@_K@Z */
7364 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@_K@Z */
7365 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_uint64
, 12)
7366 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_uint64(basic_ostream_wchar
*this, unsigned __int64 val
)
7368 return basic_ostream_print_uint64(this, val
, num_put_short_use_facet(
7369 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
7372 static basic_ostream_wchar
* basic_ostream_print_bool(basic_ostream_wchar
*this, MSVCP_bool val
, const num_put
*numput
)
7374 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7375 int state
= IOSTATE_goodbit
;
7377 TRACE("(%p %x)\n", this, val
);
7379 if(basic_ostream_wchar_sentry_create(this)) {
7380 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7381 ostreambuf_iterator_wchar dest
;
7383 memset(&dest
, 0, sizeof(dest
));
7384 dest
.strbuf
= strbuf
;
7385 num_put_wchar_put_bool(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7387 basic_ostream_wchar_sentry_destroy(this);
7389 basic_ios_wchar_setstate(base
, state
);
7393 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@_N@Z */
7394 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@_N@Z */
7395 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_bool
, 8)
7396 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_bool(basic_ostream_wchar
*this, MSVCP_bool val
)
7398 return basic_ostream_print_bool(this, val
, num_put_wchar_use_facet(
7399 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
7402 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@_N@Z */
7403 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@_N@Z */
7404 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_bool
, 8)
7405 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_bool(basic_ostream_wchar
*this, MSVCP_bool val
)
7407 return basic_ostream_print_bool(this, val
, num_put_short_use_facet(
7408 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
7411 /* ?ends@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AAV21@@Z */
7412 /* ?ends@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AEAV21@@Z */
7413 /* ?ends@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@1@AAV21@@Z */
7414 /* ?ends@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@1@AEAV21@@Z */
7415 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_ends(basic_ostream_wchar
*ostr
)
7417 TRACE("(%p)\n", ostr
);
7419 basic_ostream_wchar_put(ostr
, 0);
7423 /* ?endl@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AAV21@@Z */
7424 /* ?endl@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AEAV21@@Z */
7425 /* ?endl@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@1@AAV21@@Z */
7426 /* ?endl@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@1@AEAV21@@Z */
7427 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_endl(basic_ostream_wchar
*ostr
)
7429 TRACE("(%p)\n", ostr
);
7431 basic_ostream_wchar_put(ostr
, '\n');
7432 basic_ostream_wchar_flush(ostr
);
7436 /* ??$?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 */
7437 /* ??$?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 */
7438 /* ??$?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 */
7439 /* ??$?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 */
7440 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_print_bstr(basic_ostream_wchar
*ostr
, const basic_string_wchar
*str
)
7442 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
7443 IOSB_iostate state
= IOSTATE_goodbit
;
7445 TRACE("(%p %p)\n", ostr
, str
);
7447 if(basic_ostream_wchar_sentry_create(ostr
)) {
7448 MSVCP_size_t len
= MSVCP_basic_string_wchar_length(str
);
7449 streamsize pad
= (base
->base
.wide
>len
? base
->base
.wide
-len
: 0);
7451 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
7452 for(; pad
!=0; pad
--) {
7453 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
7454 state
= IOSTATE_badbit
;
7460 if(state
== IOSTATE_goodbit
) {
7461 if(basic_streambuf_wchar_sputn(base
->strbuf
, MSVCP_basic_string_wchar_c_str(str
), len
) != len
)
7462 state
= IOSTATE_badbit
;
7465 if(state
== IOSTATE_goodbit
) {
7466 for(; pad
!=0; pad
--) {
7467 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
7468 state
= IOSTATE_badbit
;
7474 base
->base
.wide
= 0;
7476 state
= IOSTATE_badbit
;
7478 basic_ostream_wchar_sentry_destroy(ostr
);
7480 basic_ios_wchar_setstate(base
, state
);
7484 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AAV10@_W@Z */
7485 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AEAV10@_W@Z */
7486 /* ??$?6GU?$char_traits@G@std@@@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@0@AAV10@G@Z */
7487 /* ??$?6GU?$char_traits@G@std@@@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@0@AEAV10@G@Z */
7488 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_print_ch(basic_ostream_wchar
*ostr
, wchar_t ch
)
7490 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
7491 IOSB_iostate state
= IOSTATE_goodbit
;
7493 TRACE("(%p %d)\n", ostr
, ch
);
7495 if(basic_ostream_wchar_sentry_create(ostr
)) {
7496 streamsize pad
= (base
->base
.wide
>1 ? base
->base
.wide
-1 : 0);
7498 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
7499 for(; pad
!=0; pad
--) {
7500 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
7501 state
= IOSTATE_badbit
;
7507 if(state
== IOSTATE_goodbit
) {
7508 if(basic_streambuf_wchar_sputc(base
->strbuf
, ch
) == WEOF
)
7509 state
= IOSTATE_badbit
;
7512 if(state
== IOSTATE_goodbit
) {
7513 for(; pad
!=0; pad
--) {
7514 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
7515 state
= IOSTATE_badbit
;
7521 base
->base
.wide
= 0;
7523 state
= IOSTATE_badbit
;
7525 basic_ostream_wchar_sentry_destroy(ostr
);
7527 basic_ios_wchar_setstate(base
, state
);
7531 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AAV10@PB_W@Z */
7532 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AEAV10@PEB_W@Z */
7533 /* ??$?6GU?$char_traits@G@std@@@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@0@AAV10@PBG@Z */
7534 /* ??$?6GU?$char_traits@G@std@@@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@0@AEAV10@PEBG@Z */
7535 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_print_str(basic_ostream_wchar
*ostr
, const wchar_t *str
)
7537 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
7538 IOSB_iostate state
= IOSTATE_goodbit
;
7540 TRACE("(%p %s)\n", ostr
, debugstr_w(str
));
7542 if(basic_ostream_wchar_sentry_create(ostr
)) {
7543 MSVCP_size_t len
= wcslen(str
);
7544 streamsize pad
= (base
->base
.wide
>len
? base
->base
.wide
-len
: 0);
7546 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
7547 for(; pad
!=0; pad
--) {
7548 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
7549 state
= IOSTATE_badbit
;
7555 if(state
== IOSTATE_goodbit
) {
7556 if(basic_streambuf_wchar_sputn(base
->strbuf
, str
, len
) != len
)
7557 state
= IOSTATE_badbit
;
7560 if(state
== IOSTATE_goodbit
) {
7561 for(; pad
!=0; pad
--) {
7562 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
7563 state
= IOSTATE_badbit
;
7569 base
->base
.wide
= 0;
7571 state
= IOSTATE_badbit
;
7573 basic_ostream_wchar_sentry_destroy(ostr
);
7575 basic_ios_wchar_setstate(base
, state
);
7579 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
7580 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
7581 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
7582 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
7583 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_func
, 8)
7584 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_func(basic_ostream_wchar
*this,
7585 basic_ostream_wchar
* (__cdecl
*pfunc
)(basic_ostream_wchar
*))
7587 TRACE("(%p %p)\n", this, pfunc
);
7592 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AAV21@@Z@Z */
7593 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AEAV21@@Z@Z */
7594 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@GU?$char_traits@G@std@@@1@AAV21@@Z@Z */
7595 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@GU?$char_traits@G@std@@@1@AEAV21@@Z@Z */
7596 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_func_basic_ios
, 8)
7597 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_func_basic_ios(basic_ostream_wchar
*this,
7598 basic_ios_wchar
* (__cdecl
*pfunc
)(basic_ios_wchar
*))
7600 TRACE("(%p %p)\n", this, pfunc
);
7601 pfunc(basic_ostream_wchar_get_basic_ios(this));
7605 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
7606 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
7607 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
7608 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
7609 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_func_ios_base
, 8)
7610 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_func_ios_base(
7611 basic_ostream_wchar
*this, ios_base
* (__cdecl
*pfunc
)(ios_base
*))
7613 TRACE("(%p %p)\n", this, pfunc
);
7614 pfunc(&basic_ostream_wchar_get_basic_ios(this)->base
);
7618 /* Caution: basic_istream uses virtual inheritance. */
7619 static inline basic_ios_char
* basic_istream_char_get_basic_ios(basic_istream_char
*this)
7621 return (basic_ios_char
*)((char*)this+this->vbtable
[1]);
7624 static inline basic_ios_char
* basic_istream_char_to_basic_ios(basic_istream_char
*ptr
)
7626 return (basic_ios_char
*)((char*)ptr
+basic_istream_char_vbtable
[1]);
7629 static inline basic_istream_char
* basic_istream_char_from_basic_ios(basic_ios_char
*ptr
)
7631 return (basic_istream_char
*)((char*)ptr
-basic_istream_char_vbtable
[1]);
7634 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N1@Z */
7635 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N1@Z */
7636 DEFINE_THISCALL_WRAPPER(basic_istream_char_ctor_init
, 20)
7637 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
)
7639 basic_ios_char
*base
;
7641 TRACE("(%p %p %d %d %d)\n", this, strbuf
, isstd
, noinit
, virt_init
);
7644 this->vbtable
= basic_istream_char_vbtable
;
7645 base
= basic_istream_char_get_basic_ios(this);
7646 basic_ios_char_ctor(base
);
7648 base
= basic_istream_char_get_basic_ios(this);
7651 base
->base
.vtable
= &MSVCP_basic_istream_char_vtable
;
7654 basic_ios_char_init(base
, strbuf
, isstd
);
7658 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z */
7659 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z */
7660 DEFINE_THISCALL_WRAPPER(basic_istream_char_ctor
, 16)
7661 basic_istream_char
* __thiscall
basic_istream_char_ctor(basic_istream_char
*this, basic_streambuf_char
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
7663 return basic_istream_char_ctor_init(this, strbuf
, isstd
, FALSE
, virt_init
);
7666 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QAE@W4_Uninitialized@1@@Z */
7667 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
7668 DEFINE_THISCALL_WRAPPER(basic_istream_char_ctor_uninitialized
, 12)
7669 basic_istream_char
* __thiscall
basic_istream_char_ctor_uninitialized(basic_istream_char
*this, int uninitialized
, MSVCP_bool virt_init
)
7671 basic_ios_char
*base
;
7673 TRACE("(%p %d %d)\n", this, uninitialized
, virt_init
);
7676 this->vbtable
= basic_istream_char_vbtable
;
7677 base
= basic_istream_char_get_basic_ios(this);
7678 basic_ios_char_ctor(base
);
7680 base
= basic_istream_char_get_basic_ios(this);
7683 base
->base
.vtable
= &MSVCP_basic_istream_char_vtable
;
7684 ios_base_Addstd(&base
->base
);
7688 /* ??1?$basic_istream@DU?$char_traits@D@std@@@std@@UAE@XZ */
7689 /* ??1?$basic_istream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
7690 DEFINE_THISCALL_WRAPPER(basic_istream_char_dtor
, 4)
7691 void __thiscall
basic_istream_char_dtor(basic_ios_char
*base
)
7693 basic_istream_char
*this = basic_istream_char_from_basic_ios(base
);
7695 /* don't destroy virtual base here */
7696 TRACE("(%p)\n", this);
7699 /* ??_D?$basic_istream@DU?$char_traits@D@std@@@std@@QAEXXZ */
7700 /* ??_D?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
7701 DEFINE_THISCALL_WRAPPER(basic_istream_char_vbase_dtor
, 4)
7702 void __thiscall
basic_istream_char_vbase_dtor(basic_istream_char
*this)
7704 TRACE("(%p)\n", this);
7705 basic_istream_char_dtor(basic_istream_char_to_basic_ios(this));
7706 basic_ios_char_dtor(basic_istream_char_get_basic_ios(this));
7709 DEFINE_THISCALL_WRAPPER(basic_istream_char_vector_dtor
, 8)
7710 basic_istream_char
* __thiscall
basic_istream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
7712 basic_istream_char
*this = basic_istream_char_from_basic_ios(base
);
7714 TRACE("(%p %x)\n", this, flags
);
7717 /* we have an array, with the number of elements stored before the first object */
7718 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
7720 for(i
=*ptr
-1; i
>=0; i
--)
7721 basic_istream_char_vbase_dtor(this+i
);
7722 MSVCRT_operator_delete(ptr
);
7724 basic_istream_char_vbase_dtor(this);
7726 MSVCRT_operator_delete(this);
7732 /* ?_Ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QAE_N_N@Z */
7733 /* ?_Ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_N_N@Z */
7734 DEFINE_THISCALL_WRAPPER(basic_istream_char__Ipfx
, 8)
7735 MSVCP_bool __thiscall
basic_istream_char__Ipfx(basic_istream_char
*this, MSVCP_bool noskip
)
7737 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7739 TRACE("(%p %d)\n", this, noskip
);
7741 if(ios_base_good(&base
->base
)) {
7742 if(basic_ios_char_tie_get(base
))
7743 basic_ostream_char_flush(basic_ios_char_tie_get(base
));
7745 if(!noskip
&& (ios_base_flags_get(&base
->base
) & FMTFLAG_skipws
)) {
7746 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7747 const ctype_char
*ctype
= ctype_char_use_facet(base
->strbuf
->loc
);
7750 for(ch
= basic_streambuf_char_sgetc(strbuf
); ;
7751 ch
= basic_streambuf_char_snextc(strbuf
)) {
7753 basic_ios_char_setstate(base
, IOSTATE_eofbit
);
7757 if(!ctype_char_is_ch(ctype
, _SPACE
|_BLANK
, ch
))
7763 if(!ios_base_good(&base
->base
)) {
7764 basic_ios_char_setstate(base
, IOSTATE_failbit
);
7771 /* ?ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QAE_N_N@Z */
7772 /* ?ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_N_N@Z */
7773 DEFINE_THISCALL_WRAPPER(basic_istream_char_ipfx
, 8)
7774 MSVCP_bool __thiscall
basic_istream_char_ipfx(basic_istream_char
*this, MSVCP_bool noskip
)
7776 return basic_istream_char__Ipfx(this, noskip
);
7779 /* ?isfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEXXZ */
7780 /* ?isfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
7781 DEFINE_THISCALL_WRAPPER(basic_istream_char_isfx
, 4)
7782 void __thiscall
basic_istream_char_isfx(basic_istream_char
*this)
7784 TRACE("(%p)\n", this);
7787 static BOOL
basic_istream_char_sentry_create(basic_istream_char
*istr
, MSVCP_bool noskip
)
7789 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istr
);
7791 if(basic_ios_char_rdbuf_get(base
))
7792 call_basic_streambuf_char__Lock(base
->strbuf
);
7794 return basic_istream_char_ipfx(istr
, noskip
);
7797 static void basic_istream_char_sentry_destroy(basic_istream_char
*istr
)
7799 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istr
);
7801 if(basic_ios_char_rdbuf_get(base
))
7802 call_basic_streambuf_char__Unlock(base
->strbuf
);
7805 /* ?gcount@?$basic_istream@DU?$char_traits@D@std@@@std@@QBEHXZ */
7806 /* ?gcount@?$basic_istream@DU?$char_traits@D@std@@@std@@QEBA_JXZ */
7807 /* ?gcount@?$basic_istream@DU?$char_traits@D@std@@@std@@QBA_JXZ */
7808 /* ?gcount@?$basic_istream@DU?$char_traits@D@std@@@std@@QBE_JXZ */
7809 DEFINE_THISCALL_WRAPPER(basic_istream_char_gcount
, 4)
7810 streamsize __thiscall
basic_istream_char_gcount(const basic_istream_char
*this)
7812 TRACE("(%p)\n", this);
7816 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHXZ */
7817 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAHXZ */
7818 DEFINE_THISCALL_WRAPPER(basic_istream_char_get
, 4)
7819 int __thiscall
basic_istream_char_get(basic_istream_char
*this)
7821 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7824 TRACE("(%p)\n", this);
7828 if(!basic_istream_char_sentry_create(this, TRUE
)) {
7829 basic_istream_char_sentry_destroy(this);
7833 ret
= basic_streambuf_char_sbumpc(basic_ios_char_rdbuf_get(base
));
7834 basic_istream_char_sentry_destroy(this);
7836 basic_ios_char_setstate(base
, IOSTATE_eofbit
|IOSTATE_failbit
);
7843 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@AAD@Z */
7844 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEAD@Z */
7845 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_ch
, 8)
7846 basic_istream_char
* __thiscall
basic_istream_char_get_ch(basic_istream_char
*this, char *ch
)
7850 TRACE("(%p %p)\n", this, ch
);
7852 ret
= basic_istream_char_get(this);
7858 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADHD@Z */
7859 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_JD@Z */
7860 #if STREAMSIZE_BITS == 64
7861 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str_delim
, 20)
7863 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str_delim
, 16)
7865 basic_istream_char
* __thiscall
basic_istream_char_get_str_delim(basic_istream_char
*this, char *str
, streamsize count
, char delim
)
7867 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7870 TRACE("(%p %p %s %c)\n", this, str
, wine_dbgstr_longlong(count
), delim
);
7874 if(basic_istream_char_sentry_create(this, TRUE
)) {
7875 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7877 for(ch
= basic_streambuf_char_sgetc(strbuf
); count
>1;
7878 ch
= basic_streambuf_char_snextc(strbuf
)) {
7879 if(ch
==EOF
|| ch
==delim
)
7887 basic_istream_char_sentry_destroy(this);
7889 basic_ios_char_setstate(base
, (!this->count
? IOSTATE_failbit
: IOSTATE_goodbit
) |
7890 (ch
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
7896 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADH@Z */
7897 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z */
7898 #if STREAMSIZE_BITS == 64
7899 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str
, 16)
7901 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str
, 12)
7903 basic_istream_char
* __thiscall
basic_istream_char_get_str(basic_istream_char
*this, char *str
, streamsize count
)
7905 return basic_istream_char_get_str_delim(this, str
, count
, '\n');
7908 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@AAV?$basic_streambuf@DU?$char_traits@D@std@@@2@D@Z */
7909 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@D@Z */
7910 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_streambuf_delim
, 12)
7911 basic_istream_char
* __thiscall
basic_istream_char_get_streambuf_delim(basic_istream_char
*this, basic_streambuf_char
*strbuf
, char delim
)
7913 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7916 TRACE("(%p %p %c)\n", this, strbuf
, delim
);
7920 if(basic_istream_char_sentry_create(this, TRUE
)) {
7921 basic_streambuf_char
*strbuf_read
= basic_ios_char_rdbuf_get(base
);
7923 for(ch
= basic_streambuf_char_sgetc(strbuf_read
); ;
7924 ch
= basic_streambuf_char_snextc(strbuf_read
)) {
7925 if(ch
==EOF
|| ch
==delim
)
7928 if(basic_streambuf_char_sputc(strbuf
, ch
) == EOF
)
7933 basic_istream_char_sentry_destroy(this);
7935 basic_ios_char_setstate(base
, (!this->count
? IOSTATE_failbit
: IOSTATE_goodbit
) |
7936 (ch
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
7940 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@AAV?$basic_streambuf@DU?$char_traits@D@std@@@2@@Z */
7941 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@@Z */
7942 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_streambuf
, 8)
7943 basic_istream_char
* __thiscall
basic_istream_char_get_streambuf(basic_istream_char
*this, basic_streambuf_char
*strbuf
)
7945 return basic_istream_char_get_streambuf_delim(this, strbuf
, '\n');
7948 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADHD@Z */
7949 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_JD@Z */
7950 #if STREAMSIZE_BITS == 64
7951 DEFINE_THISCALL_WRAPPER(basic_istream_char_getline_delim
, 20)
7953 DEFINE_THISCALL_WRAPPER(basic_istream_char_getline_delim
, 16)
7955 basic_istream_char
* __thiscall
basic_istream_char_getline_delim(basic_istream_char
*this, char *str
, streamsize count
, char delim
)
7957 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7958 int ch
= (unsigned char)delim
;
7960 TRACE("(%p %p %s %c)\n", this, str
, wine_dbgstr_longlong(count
), delim
);
7964 if(basic_istream_char_sentry_create(this, TRUE
) && count
>0) {
7965 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7968 ch
= basic_streambuf_char_sbumpc(strbuf
);
7970 if(ch
==EOF
|| ch
==(unsigned char)delim
)
7978 if(ch
== (unsigned char)delim
)
7980 else if(ch
!= EOF
) {
7981 ch
= basic_streambuf_char_sgetc(strbuf
);
7983 if(ch
== (unsigned char)delim
) {
7984 basic_streambuf_char__Gninc(strbuf
);
7989 basic_istream_char_sentry_destroy(this);
7991 basic_ios_char_setstate(base
, (ch
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
) |
7992 (!this->count
|| (ch
!=(unsigned char)delim
&& ch
!=EOF
) ? IOSTATE_failbit
: IOSTATE_goodbit
));
7998 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADH@Z */
7999 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z */
8000 #if STREAMSIZE_BITS == 64
8001 DEFINE_THISCALL_WRAPPER(basic_istream_char_getline
, 16)
8003 DEFINE_THISCALL_WRAPPER(basic_istream_char_getline
, 12)
8005 basic_istream_char
* __thiscall
basic_istream_char_getline(basic_istream_char
*this, char *str
, streamsize count
)
8007 return basic_istream_char_getline_delim(this, str
, count
, '\n');
8010 /* ?ignore@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@HH@Z */
8011 /* ?ignore@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JH@Z */
8012 #if STREAMSIZE_BITS == 64
8013 DEFINE_THISCALL_WRAPPER(basic_istream_char_ignore
, 16)
8015 DEFINE_THISCALL_WRAPPER(basic_istream_char_ignore
, 12)
8017 basic_istream_char
* __thiscall
basic_istream_char_ignore(basic_istream_char
*this, streamsize count
, int delim
)
8019 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8020 int ch
= (unsigned char)delim
;
8023 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(count
), delim
);
8027 if(basic_istream_char_sentry_create(this, TRUE
)) {
8028 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8029 state
= IOSTATE_goodbit
;
8032 ch
= basic_streambuf_char_sbumpc(strbuf
);
8035 state
= IOSTATE_eofbit
;
8039 if(ch
==(unsigned char)delim
)
8043 if(count
!= INT_MAX
)
8047 state
= IOSTATE_failbit
;
8048 basic_istream_char_sentry_destroy(this);
8050 basic_ios_char_setstate(base
, state
);
8054 /* ?ws@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@1@AAV21@@Z */
8055 /* ?ws@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@1@AEAV21@@Z */
8056 basic_istream_char
* __cdecl
ws_basic_istream_char(basic_istream_char
*istream
)
8058 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istream
);
8061 TRACE("(%p)\n", istream
);
8063 if(basic_istream_char_sentry_create(istream
, TRUE
)) {
8064 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8065 const ctype_char
*ctype
= ctype_char_use_facet(strbuf
->loc
);
8067 for(ch
= basic_streambuf_char_sgetc(strbuf
); ctype_char_is_ch(ctype
, _SPACE
, ch
);
8068 ch
= basic_streambuf_char_snextc(strbuf
)) {
8073 basic_istream_char_sentry_destroy(istream
);
8076 basic_ios_char_setstate(base
, IOSTATE_eofbit
);
8080 /* ?peek@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHXZ */
8081 /* ?peek@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAHXZ */
8082 DEFINE_THISCALL_WRAPPER(basic_istream_char_peek
, 4)
8083 int __thiscall
basic_istream_char_peek(basic_istream_char
*this)
8085 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8088 TRACE("(%p)\n", this);
8092 if(basic_istream_char_sentry_create(this, TRUE
))
8093 ret
= basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base
));
8094 basic_istream_char_sentry_destroy(this);
8097 basic_ios_char_setstate(base
, IOSTATE_eofbit
);
8102 /* ?_Read_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADIH@Z */
8103 /* ?_Read_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_K_J@Z */
8104 #if STREAMSIZE_BITS == 64
8105 DEFINE_THISCALL_WRAPPER(basic_istream_char__Read_s
, 20)
8107 DEFINE_THISCALL_WRAPPER(basic_istream_char__Read_s
, 16)
8109 basic_istream_char
* __thiscall
basic_istream_char__Read_s(basic_istream_char
*this, char *str
, MSVCP_size_t size
, streamsize count
)
8111 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8112 IOSB_iostate state
= IOSTATE_goodbit
;
8114 TRACE("(%p %p %lu %s)\n", this, str
, size
, wine_dbgstr_longlong(count
));
8116 if(basic_istream_char_sentry_create(this, TRUE
)) {
8117 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8119 this->count
= basic_streambuf_char__Sgetn_s(strbuf
, str
, size
, count
);
8120 if(this->count
!= count
)
8121 state
|= IOSTATE_failbit
| IOSTATE_eofbit
;
8125 basic_istream_char_sentry_destroy(this);
8127 basic_ios_char_setstate(base
, state
);
8131 /* ?read@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADH@Z */
8132 /* ?read@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z */
8133 #if STREAMSIZE_BITS == 64
8134 DEFINE_THISCALL_WRAPPER(basic_istream_char_read
, 16)
8136 DEFINE_THISCALL_WRAPPER(basic_istream_char_read
, 12)
8138 basic_istream_char
* __thiscall
basic_istream_char_read(basic_istream_char
*this, char *str
, streamsize count
)
8140 return basic_istream_char__Read_s(this, str
, -1, count
);
8143 /* ?_Readsome_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHPADIH@Z */
8144 /* ?_Readsome_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_K_J@Z */
8145 #if STREAMSIZE_BITS == 64
8146 DEFINE_THISCALL_WRAPPER(basic_istream_char__Readsome_s
, 20)
8148 DEFINE_THISCALL_WRAPPER(basic_istream_char__Readsome_s
, 16)
8150 streamsize __thiscall
basic_istream_char__Readsome_s(basic_istream_char
*this, char *str
, MSVCP_size_t size
, streamsize count
)
8152 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8153 IOSB_iostate state
= IOSTATE_goodbit
;
8155 TRACE("(%p %p %lu %s)\n", this, str
, size
, wine_dbgstr_longlong(count
));
8159 if(basic_istream_char_sentry_create(this, TRUE
)) {
8160 streamsize avail
= basic_streambuf_char_in_avail(basic_ios_char_rdbuf_get(base
));
8165 state
|= IOSTATE_eofbit
;
8167 basic_istream_char__Read_s(this, str
, size
, avail
);
8169 state
|= IOSTATE_failbit
;
8171 basic_istream_char_sentry_destroy(this);
8173 basic_ios_char_setstate(base
, state
);
8177 /* ?readsome@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHPADH@Z */
8178 /* ?readsome@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_J@Z */
8179 #if STREAMSIZE_BITS == 64
8180 DEFINE_THISCALL_WRAPPER(basic_istream_char_readsome
, 16)
8182 DEFINE_THISCALL_WRAPPER(basic_istream_char_readsome
, 12)
8184 streamsize __thiscall
basic_istream_char_readsome(basic_istream_char
*this, char *str
, streamsize count
)
8186 return basic_istream_char__Readsome_s(this, str
, count
, count
);
8189 /* ?putback@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@D@Z */
8190 /* ?putback@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@D@Z */
8191 DEFINE_THISCALL_WRAPPER(basic_istream_char_putback
, 8)
8192 basic_istream_char
* __thiscall
basic_istream_char_putback(basic_istream_char
*this, char ch
)
8194 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8195 IOSB_iostate state
= IOSTATE_goodbit
;
8197 TRACE("(%p %c)\n", this, ch
);
8201 if(basic_istream_char_sentry_create(this, TRUE
)) {
8202 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8204 if(!ios_base_good(&base
->base
))
8205 state
|= IOSTATE_failbit
;
8206 else if(!strbuf
|| basic_streambuf_char_sputbackc(strbuf
, ch
)==EOF
)
8207 state
|= IOSTATE_badbit
;
8209 basic_istream_char_sentry_destroy(this);
8211 basic_ios_char_setstate(base
, state
);
8215 /* ?unget@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ */
8216 /* ?unget@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@XZ */
8217 DEFINE_THISCALL_WRAPPER(basic_istream_char_unget
, 4)
8218 basic_istream_char
* __thiscall
basic_istream_char_unget(basic_istream_char
*this)
8220 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8221 IOSB_iostate state
= IOSTATE_goodbit
;
8223 TRACE("(%p)\n", this);
8227 if(basic_istream_char_sentry_create(this, TRUE
)) {
8228 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8230 if(!ios_base_good(&base
->base
))
8231 state
|= IOSTATE_failbit
;
8232 else if(!strbuf
|| basic_streambuf_char_sungetc(strbuf
)==EOF
)
8233 state
|= IOSTATE_badbit
;
8235 basic_istream_char_sentry_destroy(this);
8237 basic_ios_char_setstate(base
, state
);
8241 /* ?sync@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHXZ */
8242 /* ?sync@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAHXZ */
8243 DEFINE_THISCALL_WRAPPER(basic_istream_char_sync
, 4)
8244 int __thiscall
basic_istream_char_sync(basic_istream_char
*this)
8246 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8247 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8249 TRACE("(%p)\n", this);
8254 if(basic_istream_char_sentry_create(this, TRUE
)) {
8255 if(basic_streambuf_char_pubsync(strbuf
) != -1) {
8256 basic_istream_char_sentry_destroy(this);
8260 basic_istream_char_sentry_destroy(this);
8262 basic_ios_char_setstate(base
, IOSTATE_badbit
);
8266 /* ?tellg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@XZ */
8267 /* ?tellg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
8268 DEFINE_THISCALL_WRAPPER(basic_istream_char_tellg
, 8)
8269 fpos_int
* __thiscall
basic_istream_char_tellg(basic_istream_char
*this, fpos_int
*ret
)
8271 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8273 TRACE("(%p %p)\n", this, ret
);
8275 if(ios_base_fail(&base
->base
)) {
8282 basic_streambuf_char_pubseekoff(basic_ios_char_rdbuf_get(base
),
8283 ret
, 0, SEEKDIR_cur
, OPENMODE_in
);
8285 if(ret
->off
==-1 && ret
->pos
==0 && ret
->state
==0)
8286 basic_ios_char_setstate(base
, IOSTATE_failbit
);
8291 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@JH@Z */
8292 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JH@Z */
8293 #if STREAMOFF_BITS == 64
8294 DEFINE_THISCALL_WRAPPER(basic_istream_char_seekg
, 16)
8296 DEFINE_THISCALL_WRAPPER(basic_istream_char_seekg
, 12)
8298 basic_istream_char
* __thiscall
basic_istream_char_seekg(basic_istream_char
*this, streamoff off
, int dir
)
8300 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8302 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(off
), dir
);
8304 if(!ios_base_fail(&base
->base
)) {
8305 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8308 basic_streambuf_char_pubseekoff(strbuf
, &ret
, off
, dir
, OPENMODE_in
);
8310 if(ret
.off
==-1 && ret
.pos
==0 && ret
.state
==0)
8311 basic_ios_char_setstate(base
, IOSTATE_failbit
);
8313 basic_ios_char_clear(base
, IOSTATE_goodbit
);
8316 basic_ios_char_clear(base
, IOSTATE_goodbit
);
8321 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
8322 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
8323 DEFINE_THISCALL_WRAPPER(basic_istream_char_seekg_fpos
, 28)
8324 basic_istream_char
* __thiscall
basic_istream_char_seekg_fpos(basic_istream_char
*this, fpos_int pos
)
8326 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8328 TRACE("(%p %s)\n", this, debugstr_fpos_int(&pos
));
8330 if(!ios_base_fail(&base
->base
)) {
8331 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8334 basic_streambuf_char_pubseekpos(strbuf
, &ret
, pos
, OPENMODE_in
);
8336 if(ret
.off
==-1 && ret
.pos
==0 && ret
.state
==0)
8337 basic_ios_char_setstate(base
, IOSTATE_failbit
);
8339 basic_ios_char_clear(base
, IOSTATE_goodbit
);
8342 basic_ios_char_clear(base
, IOSTATE_goodbit
);
8347 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAF@Z */
8348 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAF@Z */
8349 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_short
, 8)
8350 basic_istream_char
* __thiscall
basic_istream_char_read_short(basic_istream_char
*this, short *v
)
8352 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8353 int state
= IOSTATE_goodbit
;
8355 TRACE("(%p %p)\n", this, v
);
8357 if(basic_istream_char_sentry_create(this, FALSE
)) {
8358 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8359 const num_get
*numget
= num_get_char_use_facet(strbuf
->loc
);
8360 istreambuf_iterator_char first
={0}, last
={0};
8363 first
.strbuf
= strbuf
;
8364 num_get_char_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, &tmp
);
8366 if(!(state
&IOSTATE_failbit
) && tmp
==(LONG
)((short)tmp
))
8369 state
|= IOSTATE_failbit
;
8371 basic_istream_char_sentry_destroy(this);
8373 basic_ios_char_setstate(base
, state
);
8377 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAG@Z */
8378 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAG@Z */
8379 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ushort
, 8)
8380 basic_istream_char
* __thiscall
basic_istream_char_read_ushort(basic_istream_char
*this, unsigned short *v
)
8382 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8383 int state
= IOSTATE_goodbit
;
8385 TRACE("(%p %p)\n", this, v
);
8387 if(basic_istream_char_sentry_create(this, FALSE
)) {
8388 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8389 const num_get
*numget
= num_get_char_use_facet(strbuf
->loc
);
8390 istreambuf_iterator_char first
={0}, last
={0};
8392 first
.strbuf
= strbuf
;
8393 num_get_char_get_ushort(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8395 basic_istream_char_sentry_destroy(this);
8397 basic_ios_char_setstate(base
, state
);
8401 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAH@Z */
8402 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAH@Z */
8403 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_int
, 8)
8404 basic_istream_char
* __thiscall
basic_istream_char_read_int(basic_istream_char
*this, int *v
)
8406 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8407 int state
= IOSTATE_goodbit
;
8409 TRACE("(%p %p)\n", this, v
);
8411 if(basic_istream_char_sentry_create(this, FALSE
)) {
8412 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8413 const num_get
*numget
= num_get_char_use_facet(strbuf
->loc
);
8414 istreambuf_iterator_char first
={0}, last
={0};
8416 first
.strbuf
= strbuf
;
8417 num_get_char_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8419 basic_istream_char_sentry_destroy(this);
8421 basic_ios_char_setstate(base
, state
);
8425 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAI@Z */
8426 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAI@Z */
8427 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_uint
, 8)
8428 basic_istream_char
* __thiscall
basic_istream_char_read_uint(basic_istream_char
*this, unsigned int *v
)
8430 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8431 int state
= IOSTATE_goodbit
;
8433 TRACE("(%p %p)\n", this, v
);
8435 if(basic_istream_char_sentry_create(this, FALSE
)) {
8436 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8437 const num_get
*numget
= num_get_char_use_facet(strbuf
->loc
);
8438 istreambuf_iterator_char first
={0}, last
={0};
8440 first
.strbuf
= strbuf
;
8441 num_get_char_get_uint(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8443 basic_istream_char_sentry_destroy(this);
8445 basic_ios_char_setstate(base
, state
);
8449 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAJ@Z */
8450 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAJ@Z */
8451 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_long
, 8)
8452 basic_istream_char
* __thiscall
basic_istream_char_read_long(basic_istream_char
*this, LONG
*v
)
8454 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8455 int state
= IOSTATE_goodbit
;
8457 TRACE("(%p %p)\n", this, v
);
8459 if(basic_istream_char_sentry_create(this, FALSE
)) {
8460 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8461 const num_get
*numget
= num_get_char_use_facet(strbuf
->loc
);
8462 istreambuf_iterator_char first
={0}, last
={0};
8464 first
.strbuf
= strbuf
;
8465 num_get_char_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8467 basic_istream_char_sentry_destroy(this);
8469 basic_ios_char_setstate(base
, state
);
8473 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAK@Z */
8474 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAK@Z */
8475 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ulong
, 8)
8476 basic_istream_char
* __thiscall
basic_istream_char_read_ulong(basic_istream_char
*this, ULONG
*v
)
8478 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8479 int state
= IOSTATE_goodbit
;
8481 TRACE("(%p %p)\n", this, v
);
8483 if(basic_istream_char_sentry_create(this, FALSE
)) {
8484 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8485 const num_get
*numget
= num_get_char_use_facet(strbuf
->loc
);
8486 istreambuf_iterator_char first
={0}, last
={0};
8488 first
.strbuf
= strbuf
;
8489 num_get_char_get_ulong(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8491 basic_istream_char_sentry_destroy(this);
8493 basic_ios_char_setstate(base
, state
);
8497 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAM@Z */
8498 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAM@Z */
8499 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_float
, 8)
8500 basic_istream_char
* __thiscall
basic_istream_char_read_float(basic_istream_char
*this, float *v
)
8502 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8503 int state
= IOSTATE_goodbit
;
8505 TRACE("(%p %p)\n", this, v
);
8507 if(basic_istream_char_sentry_create(this, FALSE
)) {
8508 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8509 const num_get
*numget
= num_get_char_use_facet(strbuf
->loc
);
8510 istreambuf_iterator_char first
={0}, last
={0};
8512 first
.strbuf
= strbuf
;
8513 num_get_char_get_float(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8515 basic_istream_char_sentry_destroy(this);
8517 basic_ios_char_setstate(base
, state
);
8521 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAN@Z */
8522 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAN@Z */
8523 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_double
, 8)
8524 basic_istream_char
* __thiscall
basic_istream_char_read_double(basic_istream_char
*this, double *v
)
8526 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8527 int state
= IOSTATE_goodbit
;
8529 TRACE("(%p %p)\n", this, v
);
8531 if(basic_istream_char_sentry_create(this, FALSE
)) {
8532 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8533 const num_get
*numget
= num_get_char_use_facet(strbuf
->loc
);
8534 istreambuf_iterator_char first
={0}, last
={0};
8536 first
.strbuf
= strbuf
;
8537 num_get_char_get_double(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8539 basic_istream_char_sentry_destroy(this);
8541 basic_ios_char_setstate(base
, state
);
8545 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAO@Z */
8546 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAO@Z */
8547 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ldouble
, 8)
8548 basic_istream_char
* __thiscall
basic_istream_char_read_ldouble(basic_istream_char
*this, double *v
)
8550 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8551 int state
= IOSTATE_goodbit
;
8553 TRACE("(%p %p)\n", this, v
);
8555 if(basic_istream_char_sentry_create(this, FALSE
)) {
8556 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8557 const num_get
*numget
= num_get_char_use_facet(strbuf
->loc
);
8558 istreambuf_iterator_char first
={0}, last
={0};
8560 first
.strbuf
= strbuf
;
8561 num_get_char_get_ldouble(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8563 basic_istream_char_sentry_destroy(this);
8565 basic_ios_char_setstate(base
, state
);
8569 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAPAX@Z */
8570 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAPEAX@Z */
8571 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ptr
, 8)
8572 basic_istream_char
* __thiscall
basic_istream_char_read_ptr(basic_istream_char
*this, void **v
)
8574 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8575 int state
= IOSTATE_goodbit
;
8577 TRACE("(%p %p)\n", this, v
);
8579 if(basic_istream_char_sentry_create(this, FALSE
)) {
8580 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8581 const num_get
*numget
= num_get_char_use_facet(strbuf
->loc
);
8582 istreambuf_iterator_char first
={0}, last
={0};
8584 first
.strbuf
= strbuf
;
8585 num_get_char_get_void(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8587 basic_istream_char_sentry_destroy(this);
8589 basic_ios_char_setstate(base
, state
);
8593 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AA_J@Z */
8594 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEA_J@Z */
8595 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_int64
, 8)
8596 basic_istream_char
* __thiscall
basic_istream_char_read_int64(basic_istream_char
*this, __int64
*v
)
8598 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8599 int state
= IOSTATE_goodbit
;
8601 TRACE("(%p %p)\n", this, v
);
8603 if(basic_istream_char_sentry_create(this, FALSE
)) {
8604 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8605 const num_get
*numget
= num_get_char_use_facet(strbuf
->loc
);
8606 istreambuf_iterator_char first
={0}, last
={0};
8608 first
.strbuf
= strbuf
;
8609 num_get_char_get_int64(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8611 basic_istream_char_sentry_destroy(this);
8613 basic_ios_char_setstate(base
, state
);
8617 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AA_K@Z */
8618 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEA_K@Z */
8619 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_uint64
, 8)
8620 basic_istream_char
* __thiscall
basic_istream_char_read_uint64(basic_istream_char
*this, unsigned __int64
*v
)
8622 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8623 int state
= IOSTATE_goodbit
;
8625 TRACE("(%p %p)\n", this, v
);
8627 if(basic_istream_char_sentry_create(this, FALSE
)) {
8628 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8629 const num_get
*numget
= num_get_char_use_facet(strbuf
->loc
);
8630 istreambuf_iterator_char first
={0}, last
={0};
8632 first
.strbuf
= strbuf
;
8633 num_get_char_get_uint64(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8635 basic_istream_char_sentry_destroy(this);
8637 basic_ios_char_setstate(base
, state
);
8641 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AA_N@Z */
8642 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEA_N@Z */
8643 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_bool
, 8)
8644 basic_istream_char
* __thiscall
basic_istream_char_read_bool(basic_istream_char
*this, MSVCP_bool
*v
)
8646 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8647 int state
= IOSTATE_goodbit
;
8649 TRACE("(%p %p)\n", this, v
);
8651 if(basic_istream_char_sentry_create(this, FALSE
)) {
8652 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8653 const num_get
*numget
= num_get_char_use_facet(strbuf
->loc
);
8654 istreambuf_iterator_char first
={0}, last
={0};
8656 first
.strbuf
= strbuf
;
8657 num_get_char_get_bool(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8659 basic_istream_char_sentry_destroy(this);
8661 basic_ios_char_setstate(base
, state
);
8665 /* ??$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 */
8666 /* ??$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 */
8667 basic_istream_char
* __cdecl
basic_istream_char_getline_bstr_delim(
8668 basic_istream_char
*istream
, basic_string_char
*str
, char delim
)
8670 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istream
);
8671 IOSB_iostate state
= IOSTATE_goodbit
;
8672 int c
= (unsigned char)delim
;
8674 TRACE("(%p %p %c)\n", istream
, str
, delim
);
8676 if(basic_istream_char_sentry_create(istream
, TRUE
)) {
8677 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8678 MSVCP_basic_string_char_clear(str
);
8680 c
= basic_streambuf_char_sgetc(strbuf
);
8681 for(; c
!=(unsigned char)delim
&& c
!=EOF
; c
= basic_streambuf_char_snextc(strbuf
))
8682 MSVCP_basic_string_char_append_ch(str
, c
);
8683 if(c
==EOF
) state
|= IOSTATE_eofbit
;
8684 else if(c
==(unsigned char)delim
) basic_streambuf_char_sbumpc(strbuf
);
8686 if(!MSVCP_basic_string_char_length(str
) && c
!=(unsigned char)delim
) state
|= IOSTATE_failbit
;
8688 basic_istream_char_sentry_destroy(istream
);
8690 basic_ios_char_setstate(basic_istream_char_get_basic_ios(istream
), state
);
8694 /* ??$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 */
8695 /* ??$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 */
8696 basic_istream_char
* __cdecl
basic_istream_char_getline_bstr(
8697 basic_istream_char
*istream
, basic_string_char
*str
)
8699 return basic_istream_char_getline_bstr_delim(istream
, str
, '\n');
8702 /* ??$?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 */
8703 /* ??$?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 */
8704 basic_istream_char
* __cdecl
basic_istream_char_read_bstr(
8705 basic_istream_char
*istream
, basic_string_char
*str
)
8707 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istream
);
8708 IOSB_iostate state
= IOSTATE_failbit
;
8711 TRACE("(%p %p)\n", istream
, str
);
8713 if(basic_istream_char_sentry_create(istream
, FALSE
)) {
8714 const ctype_char
*ctype
= ctype_char_use_facet(base
->strbuf
->loc
);
8715 MSVCP_size_t count
= ios_base_width_get(&base
->base
);
8720 MSVCP_basic_string_char_clear(str
);
8722 for(c
= basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base
));
8723 c
!=EOF
&& !ctype_char_is_ch(ctype
, _SPACE
|_BLANK
, c
) && count
>0;
8724 c
= basic_streambuf_char_snextc(basic_ios_char_rdbuf_get(base
)), count
--) {
8725 state
= IOSTATE_goodbit
;
8726 MSVCP_basic_string_char_append_ch(str
, c
);
8729 basic_istream_char_sentry_destroy(istream
);
8731 ios_base_width_set(&base
->base
, 0);
8732 basic_ios_char_setstate(base
, state
| (c
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
8736 /* ??$?5DU?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@PAD@Z */
8737 /* ??$?5DU?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@PEAD@Z */
8738 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@PAC@Z */
8739 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@PEAC@Z */
8740 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@PAE@Z */
8741 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@PEAE@Z */
8742 basic_istream_char
* __cdecl
basic_istream_char_read_str(basic_istream_char
*istream
, char *str
)
8744 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istream
);
8745 IOSB_iostate state
= IOSTATE_failbit
;
8748 TRACE("(%p %p)\n", istream
, str
);
8750 if(basic_istream_char_sentry_create(istream
, FALSE
)) {
8751 const ctype_char
*ctype
= ctype_char_use_facet(base
->strbuf
->loc
);
8752 MSVCP_size_t count
= ios_base_width_get(&base
->base
)-1;
8754 for(c
= basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base
));
8755 c
!=EOF
&& !ctype_char_is_ch(ctype
, _SPACE
|_BLANK
, c
) && count
>0;
8756 c
= basic_streambuf_char_snextc(basic_ios_char_rdbuf_get(base
)), count
--) {
8757 state
= IOSTATE_goodbit
;
8761 basic_istream_char_sentry_destroy(istream
);
8764 ios_base_width_set(&base
->base
, 0);
8765 basic_ios_char_setstate(base
, state
| (c
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
8769 /* ??$?5DU?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAD@Z */
8770 /* ??$?5DU?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAD@Z */
8771 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAC@Z */
8772 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAC@Z */
8773 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAE@Z */
8774 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAE@Z */
8775 basic_istream_char
* __cdecl
basic_istream_char_read_ch(basic_istream_char
*istream
, char *ch
)
8777 IOSB_iostate state
= IOSTATE_failbit
;
8780 TRACE("(%p %p)\n", istream
, ch
);
8782 if(basic_istream_char_sentry_create(istream
, FALSE
)) {
8783 c
= basic_streambuf_char_sbumpc(basic_ios_char_rdbuf_get(
8784 basic_istream_char_get_basic_ios(istream
)));
8786 state
= IOSTATE_goodbit
;
8790 basic_istream_char_sentry_destroy(istream
);
8792 basic_ios_char_setstate(basic_istream_char_get_basic_ios(istream
),
8793 state
| (c
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
8797 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
8798 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
8799 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_streambuf
, 8)
8800 basic_istream_char
* __thiscall
basic_istream_char_read_streambuf(
8801 basic_istream_char
*this, basic_streambuf_char
*streambuf
)
8803 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8804 IOSB_iostate state
= IOSTATE_failbit
;
8807 TRACE("(%p %p)\n", this, streambuf
);
8809 if(basic_istream_char_sentry_create(this, FALSE
)) {
8810 for(c
= basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base
)); c
!=EOF
;
8811 c
= basic_streambuf_char_snextc(basic_ios_char_rdbuf_get(base
))) {
8812 state
= IOSTATE_goodbit
;
8813 if(basic_streambuf_char_sputc(streambuf
, c
) == EOF
)
8817 basic_istream_char_sentry_destroy(this);
8819 basic_ios_char_setstate(base
, state
| (c
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
8823 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
8824 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
8825 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_func
, 8)
8826 basic_istream_char
* __thiscall
basic_istream_char_read_func(basic_istream_char
*this,
8827 basic_istream_char
* (__cdecl
*pfunc
)(basic_istream_char
*))
8829 TRACE("(%p %p)\n", this, pfunc
);
8834 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@DU?$char_traits@D@std@@@1@AAV21@@Z@Z */
8835 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@DU?$char_traits@D@std@@@1@AEAV21@@Z@Z */
8836 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_func_basic_ios
, 8)
8837 basic_istream_char
* __thiscall
basic_istream_char_read_func_basic_ios(basic_istream_char
*this,
8838 basic_ios_char
* (__cdecl
*pfunc
)(basic_ios_char
*))
8840 TRACE("(%p %p)\n", this, pfunc
);
8841 pfunc(basic_istream_char_get_basic_ios(this));
8845 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
8846 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
8847 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_func_ios_base
, 8)
8848 basic_istream_char
* __thiscall
basic_istream_char_read_func_ios_base(basic_istream_char
*this,
8849 ios_base
* (__cdecl
*pfunc
)(ios_base
*))
8851 TRACE("(%p %p)\n", this, pfunc
);
8852 pfunc(&basic_istream_char_get_basic_ios(this)->base
);
8856 /* Caution: basic_istream uses virtual inheritance. */
8857 static inline basic_ios_wchar
* basic_istream_wchar_get_basic_ios(basic_istream_wchar
*this)
8859 return (basic_ios_wchar
*)((char*)this+this->vbtable
[1]);
8862 static inline basic_ios_wchar
* basic_istream_wchar_to_basic_ios(basic_istream_wchar
*ptr
)
8864 return (basic_ios_wchar
*)((char*)ptr
+basic_istream_wchar_vbtable
[1]);
8867 static inline basic_istream_wchar
* basic_istream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
8869 return (basic_istream_wchar
*)((char*)ptr
-basic_istream_wchar_vbtable
[1]);
8872 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N1@Z */
8873 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N1@Z */
8874 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ctor_init
, 20)
8875 basic_istream_wchar
* __thiscall
basic_istream_wchar_ctor_init(basic_istream_wchar
*this,
8876 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool noinit
, MSVCP_bool virt_init
)
8878 basic_ios_wchar
*base
;
8880 TRACE("(%p %p %d %d %d)\n", this, strbuf
, isstd
, noinit
, virt_init
);
8883 this->vbtable
= basic_istream_wchar_vbtable
;
8884 base
= basic_istream_wchar_get_basic_ios(this);
8885 basic_ios_wchar_ctor(base
);
8887 base
= basic_istream_wchar_get_basic_ios(this);
8890 base
->base
.vtable
= &MSVCP_basic_istream_wchar_vtable
;
8893 basic_ios_wchar_init(base
, strbuf
, isstd
);
8897 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N1@Z */
8898 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N1@Z */
8899 DEFINE_THISCALL_WRAPPER(basic_istream_short_ctor_init
, 20)
8900 basic_istream_wchar
* __thiscall
basic_istream_short_ctor_init(basic_istream_wchar
*this,
8901 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool noinit
, MSVCP_bool virt_init
)
8903 basic_istream_wchar_ctor_init(this, strbuf
, isstd
, noinit
, virt_init
);
8904 basic_istream_wchar_get_basic_ios(this)->base
.vtable
= &MSVCP_basic_istream_short_vtable
;
8908 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N@Z */
8909 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N@Z */
8910 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ctor
, 16)
8911 basic_istream_wchar
* __thiscall
basic_istream_wchar_ctor(basic_istream_wchar
*this,
8912 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
8914 return basic_istream_wchar_ctor_init(this, strbuf
, isstd
, FALSE
, virt_init
);
8917 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N@Z */
8918 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N@Z */
8919 DEFINE_THISCALL_WRAPPER(basic_istream_short_ctor
, 16)
8920 basic_istream_wchar
* __thiscall
basic_istream_short_ctor(basic_istream_wchar
*this,
8921 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
8923 return basic_istream_short_ctor_init(this, strbuf
, isstd
, FALSE
, virt_init
);
8926 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE@W4_Uninitialized@1@@Z */
8927 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
8928 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ctor_uninitialized
, 12)
8929 basic_istream_wchar
* __thiscall
basic_istream_wchar_ctor_uninitialized(
8930 basic_istream_wchar
*this, int uninitialized
, MSVCP_bool virt_init
)
8932 basic_ios_wchar
*base
;
8934 TRACE("(%p %d %d)\n", this, uninitialized
, virt_init
);
8937 this->vbtable
= basic_istream_wchar_vbtable
;
8938 base
= basic_istream_wchar_get_basic_ios(this);
8939 basic_ios_wchar_ctor(base
);
8941 base
= basic_istream_wchar_get_basic_ios(this);
8944 base
->base
.vtable
= &MSVCP_basic_istream_wchar_vtable
;
8945 ios_base_Addstd(&base
->base
);
8949 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QAE@W4_Uninitialized@1@@Z */
8950 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
8951 DEFINE_THISCALL_WRAPPER(basic_istream_short_ctor_uninitialized
, 12)
8952 basic_istream_wchar
* __thiscall
basic_istream_short_ctor_uninitialized(
8953 basic_istream_wchar
*this, int uninitialized
, MSVCP_bool virt_init
)
8955 basic_istream_wchar_ctor_uninitialized(this, uninitialized
, virt_init
);
8956 basic_istream_wchar_get_basic_ios(this)->base
.vtable
= &MSVCP_basic_istream_short_vtable
;
8960 /* ??1?$basic_istream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
8961 /* ??1?$basic_istream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
8962 /* ??1?$basic_istream@GU?$char_traits@G@std@@@std@@UAE@XZ */
8963 /* ??1?$basic_istream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
8964 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_dtor
, 4)
8965 void __thiscall
basic_istream_wchar_dtor(basic_ios_wchar
*base
)
8967 basic_istream_wchar
*this = basic_istream_wchar_from_basic_ios(base
);
8969 /* don't destroy virtual base here */
8970 TRACE("(%p)\n", this);
8973 /* ??_D?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
8974 /* ??_D?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
8975 /* ??_D?$basic_istream@GU?$char_traits@G@std@@@std@@QAEXXZ */
8976 /* ??_D?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
8977 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_vbase_dtor
, 4)
8978 void __thiscall
basic_istream_wchar_vbase_dtor(basic_istream_wchar
*this)
8980 TRACE("(%p)\n", this);
8981 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(this));
8982 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(this));
8985 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_vector_dtor
, 8)
8986 basic_istream_wchar
* __thiscall
basic_istream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
8988 basic_istream_wchar
*this = basic_istream_wchar_from_basic_ios(base
);
8990 TRACE("(%p %x)\n", this, flags
);
8993 /* we have an array, with the number of elements stored before the first object */
8994 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
8996 for(i
=*ptr
-1; i
>=0; i
--)
8997 basic_istream_wchar_vbase_dtor(this+i
);
8998 MSVCRT_operator_delete(ptr
);
9000 basic_istream_wchar_vbase_dtor(this);
9002 MSVCRT_operator_delete(this);
9008 /* ?_Ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE_N_N@Z */
9009 /* ?_Ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_N_N@Z */
9010 /* ?_Ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QAE_N_N@Z */
9011 /* ?_Ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_N_N@Z */
9012 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Ipfx
, 8)
9013 MSVCP_bool __thiscall
basic_istream_wchar__Ipfx(basic_istream_wchar
*this, MSVCP_bool noskip
)
9015 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9017 TRACE("(%p %d)\n", this, noskip
);
9019 if(ios_base_good(&base
->base
)) {
9020 if(basic_ios_wchar_tie_get(base
))
9021 basic_ostream_wchar_flush(basic_ios_wchar_tie_get(base
));
9023 if(!noskip
&& (ios_base_flags_get(&base
->base
) & FMTFLAG_skipws
)) {
9024 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9025 const ctype_wchar
*ctype
= ctype_wchar_use_facet(base
->strbuf
->loc
);
9028 for(ch
= basic_streambuf_wchar_sgetc(strbuf
); ;
9029 ch
= basic_streambuf_wchar_snextc(strbuf
)) {
9031 basic_ios_wchar_setstate(base
, IOSTATE_eofbit
);
9035 if(!ctype_wchar_is_ch(ctype
, _SPACE
|_BLANK
, ch
))
9041 if(!ios_base_good(&base
->base
)) {
9042 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
9048 /* ?ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE_N_N@Z */
9049 /* ?ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_N_N@Z */
9050 /* ?ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QAE_N_N@Z */
9051 /* ?ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_N_N@Z */
9052 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ipfx
, 8)
9053 MSVCP_bool __thiscall
basic_istream_wchar_ipfx(basic_istream_wchar
*this, MSVCP_bool noskip
)
9055 return basic_istream_wchar__Ipfx(this, noskip
);
9058 /* ?isfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
9059 /* ?isfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
9060 /* ?isfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEXXZ */
9061 /* ?isfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
9062 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_isfx
, 4)
9063 void __thiscall
basic_istream_wchar_isfx(basic_istream_wchar
*this)
9065 TRACE("(%p)\n", this);
9068 static BOOL
basic_istream_wchar_sentry_create(basic_istream_wchar
*istr
, MSVCP_bool noskip
)
9070 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istr
);
9072 if(basic_ios_wchar_rdbuf_get(base
))
9073 basic_streambuf_wchar__Lock(base
->strbuf
);
9075 return basic_istream_wchar_ipfx(istr
, noskip
);
9078 static void basic_istream_wchar_sentry_destroy(basic_istream_wchar
*istr
)
9080 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istr
);
9082 if(basic_ios_wchar_rdbuf_get(base
))
9083 basic_streambuf_wchar__Unlock(base
->strbuf
);
9086 /* ?gcount@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QBEHXZ */
9087 /* ?gcount@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEBA_JXZ */
9088 /* ?gcount@?$basic_istream@GU?$char_traits@G@std@@@std@@QBEHXZ */
9089 /* ?gcount@?$basic_istream@GU?$char_traits@G@std@@@std@@QEBA_JXZ */
9090 /* ?gcount@?$basic_istream@GU?$char_traits@G@std@@@std@@QBA_JXZ */
9091 /* ?gcount@?$basic_istream@GU?$char_traits@G@std@@@std@@QBE_JXZ */
9092 /* ?gcount@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QBA_JXZ */
9093 /* ?gcount@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QBE_JXZ */
9094 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_gcount
, 4)
9095 streamsize __thiscall
basic_istream_wchar_gcount(const basic_istream_wchar
*this)
9097 TRACE("(%p)\n", this);
9101 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
9102 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
9103 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEGXZ */
9104 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAGXZ */
9105 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get
, 4)
9106 unsigned short __thiscall
basic_istream_wchar_get(basic_istream_wchar
*this)
9108 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9111 TRACE("(%p)\n", this);
9115 if(!basic_istream_wchar_sentry_create(this, TRUE
)) {
9116 basic_istream_wchar_sentry_destroy(this);
9120 ret
= basic_streambuf_wchar_sbumpc(basic_ios_wchar_rdbuf_get(base
));
9121 basic_istream_wchar_sentry_destroy(this);
9123 basic_ios_wchar_setstate(base
, IOSTATE_eofbit
|IOSTATE_failbit
);
9130 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@AA_W@Z */
9131 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEA_W@Z */
9132 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@AAG@Z */
9133 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEAG@Z */
9134 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_ch
, 8)
9135 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_ch(basic_istream_wchar
*this, wchar_t *ch
)
9139 TRACE("(%p %p)\n", this, ch
);
9141 ret
= basic_istream_wchar_get(this);
9147 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH_W@Z */
9148 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J_W@Z */
9149 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGHG@Z */
9150 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_JG@Z */
9151 #if STREAMSIZE_BITS == 64
9152 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str_delim
, 20)
9154 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str_delim
, 16)
9156 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_str_delim(basic_istream_wchar
*this, wchar_t *str
, streamsize count
, wchar_t delim
)
9158 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9159 unsigned short ch
= delim
;
9161 TRACE("(%p %p %s %c)\n", this, str
, wine_dbgstr_longlong(count
), delim
);
9165 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9166 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9168 for(ch
= basic_streambuf_wchar_sgetc(strbuf
); count
>1;
9169 ch
= basic_streambuf_wchar_snextc(strbuf
)) {
9170 if(ch
==WEOF
|| ch
==delim
)
9178 basic_istream_wchar_sentry_destroy(this);
9180 basic_ios_wchar_setstate(base
, (!this->count
? IOSTATE_failbit
: IOSTATE_goodbit
) |
9181 (ch
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
9187 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH@Z */
9188 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J@Z */
9189 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGH@Z */
9190 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_J@Z */
9191 #if STREAMSIZE_BITS == 64
9192 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str
, 16)
9194 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str
, 12)
9196 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_str(basic_istream_wchar
*this, wchar_t *str
, streamsize count
)
9198 return basic_istream_wchar_get_str_delim(this, str
, count
, '\n');
9201 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@AAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_W@Z */
9202 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_W@Z */
9203 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@AAV?$basic_streambuf@GU?$char_traits@G@std@@@2@G@Z */
9204 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@G@Z */
9205 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_streambuf_delim
, 12)
9206 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_streambuf_delim(basic_istream_wchar
*this, basic_streambuf_wchar
*strbuf
, wchar_t delim
)
9208 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9209 unsigned short ch
= delim
;
9211 TRACE("(%p %p %c)\n", this, strbuf
, delim
);
9215 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9216 basic_streambuf_wchar
*strbuf_read
= basic_ios_wchar_rdbuf_get(base
);
9218 for(ch
= basic_streambuf_wchar_sgetc(strbuf_read
); ;
9219 ch
= basic_streambuf_wchar_snextc(strbuf_read
)) {
9220 if(ch
==WEOF
|| ch
==delim
)
9223 if(basic_streambuf_wchar_sputc(strbuf
, ch
) == WEOF
)
9228 basic_istream_wchar_sentry_destroy(this);
9230 basic_ios_wchar_setstate(base
, (!this->count
? IOSTATE_failbit
: IOSTATE_goodbit
) |
9231 (ch
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
9235 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@AAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@@Z */
9236 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@@Z */
9237 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@AAV?$basic_streambuf@GU?$char_traits@G@std@@@2@@Z */
9238 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@@Z */
9239 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_streambuf
, 8)
9240 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_streambuf(basic_istream_wchar
*this, basic_streambuf_wchar
*strbuf
)
9242 return basic_istream_wchar_get_streambuf_delim(this, strbuf
, '\n');
9245 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH_W@Z */
9246 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J_W@Z */
9247 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGHG@Z */
9248 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_JG@Z */
9249 #if STREAMSIZE_BITS == 64
9250 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline_delim
, 20)
9252 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline_delim
, 16)
9254 basic_istream_wchar
* __thiscall
basic_istream_wchar_getline_delim(basic_istream_wchar
*this, wchar_t *str
, streamsize count
, wchar_t delim
)
9256 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9257 unsigned short ch
= delim
;
9259 TRACE("(%p %p %s %c)\n", this, str
, wine_dbgstr_longlong(count
), delim
);
9263 if(basic_istream_wchar_sentry_create(this, TRUE
) && count
>0) {
9264 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9267 ch
= basic_streambuf_wchar_sbumpc(strbuf
);
9269 if(ch
==WEOF
|| ch
==delim
)
9279 else if(ch
!= WEOF
) {
9280 ch
= basic_streambuf_wchar_sgetc(strbuf
);
9283 basic_streambuf_wchar__Gninc(strbuf
);
9288 basic_istream_wchar_sentry_destroy(this);
9290 basic_ios_wchar_setstate(base
, (ch
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
) |
9291 (!this->count
|| (ch
!=delim
&& ch
!=WEOF
) ? IOSTATE_failbit
: IOSTATE_goodbit
));
9297 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH@Z */
9298 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J@Z */
9299 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGH@Z */
9300 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_J@Z */
9301 #if STREAMSIZE_BITS == 64
9302 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline
, 16)
9304 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline
, 12)
9306 basic_istream_wchar
* __thiscall
basic_istream_wchar_getline(basic_istream_wchar
*this, wchar_t *str
, streamsize count
)
9308 return basic_istream_wchar_getline_delim(this, str
, count
, '\n');
9311 /* ?ignore@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@HG@Z */
9312 /* ?ignore@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_JG@Z */
9313 /* ?ignore@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@HG@Z */
9314 /* ?ignore@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JG@Z */
9315 #if STREAMSIZE_BITS == 64
9316 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ignore
, 16)
9318 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ignore
, 12)
9320 basic_istream_wchar
* __thiscall
basic_istream_wchar_ignore(basic_istream_wchar
*this, streamsize count
, unsigned short delim
)
9322 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9323 unsigned short ch
= delim
;
9326 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(count
), delim
);
9330 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9331 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9332 state
= IOSTATE_goodbit
;
9335 ch
= basic_streambuf_wchar_sbumpc(strbuf
);
9338 state
= IOSTATE_eofbit
;
9346 if(count
!= INT_MAX
)
9350 state
= IOSTATE_failbit
;
9351 basic_istream_wchar_sentry_destroy(this);
9353 basic_ios_wchar_setstate(base
, state
);
9357 /* ?ws@std@@YAAAV?$basic_istream@_WU?$char_traits@_W@std@@@1@AAV21@@Z */
9358 /* ?ws@std@@YAAEAV?$basic_istream@_WU?$char_traits@_W@std@@@1@AEAV21@@Z */
9359 /* ?ws@std@@YAAAV?$basic_istream@GU?$char_traits@G@std@@@1@AAV21@@Z */
9360 /* ?ws@std@@YAAEAV?$basic_istream@GU?$char_traits@G@std@@@1@AEAV21@@Z */
9361 basic_istream_wchar
* __cdecl
ws_basic_istream_wchar(basic_istream_wchar
*istream
)
9363 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istream
);
9364 unsigned short ch
= '\n';
9366 TRACE("(%p)\n", istream
);
9368 if(basic_istream_wchar_sentry_create(istream
, TRUE
)) {
9369 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9370 const ctype_wchar
*ctype
= ctype_wchar_use_facet(strbuf
->loc
);
9372 for(ch
= basic_streambuf_wchar_sgetc(strbuf
); ctype_wchar_is_ch(ctype
, _SPACE
, ch
);
9373 ch
= basic_streambuf_wchar_snextc(strbuf
)) {
9378 basic_istream_wchar_sentry_destroy(istream
);
9381 basic_ios_wchar_setstate(base
, IOSTATE_eofbit
);
9385 /* ?peek@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
9386 /* ?peek@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
9387 /* ?peek@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEGXZ */
9388 /* ?peek@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAGXZ */
9389 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_peek
, 4)
9390 unsigned short __thiscall
basic_istream_wchar_peek(basic_istream_wchar
*this)
9392 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9393 unsigned short ret
= WEOF
;
9395 TRACE("(%p)\n", this);
9399 if(basic_istream_wchar_sentry_create(this, TRUE
))
9400 ret
= basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base
));
9401 basic_istream_wchar_sentry_destroy(this);
9404 basic_ios_wchar_setstate(base
, IOSTATE_eofbit
);
9409 /* ?_Read_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WIH@Z */
9410 /* ?_Read_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_K_J@Z */
9411 /* ?_Read_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGIH@Z */
9412 /* ?_Read_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_K_J@Z */
9413 #if STREAMSIZE_BITS == 64
9414 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Read_s
, 20)
9416 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Read_s
, 16)
9418 basic_istream_wchar
* __thiscall
basic_istream_wchar__Read_s(basic_istream_wchar
*this, wchar_t *str
, MSVCP_size_t size
, streamsize count
)
9420 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9421 IOSB_iostate state
= IOSTATE_goodbit
;
9423 TRACE("(%p %p %lu %s)\n", this, str
, size
, wine_dbgstr_longlong(count
));
9425 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9426 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9428 this->count
= basic_streambuf_wchar__Sgetn_s(strbuf
, str
, size
, count
);
9429 if(this->count
!= count
)
9430 state
|= IOSTATE_failbit
| IOSTATE_eofbit
;
9434 basic_istream_wchar_sentry_destroy(this);
9436 basic_ios_wchar_setstate(base
, state
);
9440 /* ?read@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH@Z */
9441 /* ?read@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J@Z */
9442 /* ?read@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGH@Z */
9443 /* ?read@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_J@Z */
9444 #if STREAMSIZE_BITS == 64
9445 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read
, 16)
9447 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read
, 12)
9449 basic_istream_wchar
* __thiscall
basic_istream_wchar_read(basic_istream_wchar
*this, wchar_t *str
, streamsize count
)
9451 return basic_istream_wchar__Read_s(this, str
, -1, count
);
9454 /* ?_Readsome_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEHPA_WIH@Z */
9455 /* ?_Readsome_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_K_J@Z */
9456 /* ?_Readsome_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEHPAGIH@Z */
9457 /* ?_Readsome_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_K_J@Z */
9458 #if STREAMSIZE_BITS == 64
9459 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Readsome_s
, 20)
9461 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Readsome_s
, 16)
9463 streamsize __thiscall
basic_istream_wchar__Readsome_s(basic_istream_wchar
*this, wchar_t *str
, MSVCP_size_t size
, streamsize count
)
9465 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9466 IOSB_iostate state
= IOSTATE_goodbit
;
9468 TRACE("(%p %p %lu %s)\n", this, str
, size
, wine_dbgstr_longlong(count
));
9472 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9473 streamsize avail
= basic_streambuf_wchar_in_avail(basic_ios_wchar_rdbuf_get(base
));
9478 state
|= IOSTATE_eofbit
;
9480 basic_istream_wchar__Read_s(this, str
, size
, avail
);
9482 state
|= IOSTATE_failbit
;
9484 basic_istream_wchar_sentry_destroy(this);
9486 basic_ios_wchar_setstate(base
, state
);
9490 /* ?readsome@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEHPA_WH@Z */
9491 /* ?readsome@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_J@Z */
9492 /* ?readsome@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEHPAGH@Z */
9493 /* ?readsome@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_J@Z */
9494 #if STREAMSIZE_BITS == 64
9495 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_readsome
, 16)
9497 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_readsome
, 12)
9499 streamsize __thiscall
basic_istream_wchar_readsome(basic_istream_wchar
*this, wchar_t *str
, streamsize count
)
9501 return basic_istream_wchar__Readsome_s(this, str
, count
, count
);
9504 /* ?putback@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@_W@Z */
9505 /* ?putback@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_W@Z */
9506 /* ?putback@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@G@Z */
9507 /* ?putback@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@G@Z */
9508 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_putback
, 8)
9509 basic_istream_wchar
* __thiscall
basic_istream_wchar_putback(basic_istream_wchar
*this, wchar_t ch
)
9511 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9512 IOSB_iostate state
= IOSTATE_goodbit
;
9514 TRACE("(%p %c)\n", this, ch
);
9518 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9519 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9521 if(!ios_base_good(&base
->base
))
9522 state
|= IOSTATE_failbit
;
9523 else if(!strbuf
|| basic_streambuf_wchar_sputbackc(strbuf
, ch
)==WEOF
)
9524 state
|= IOSTATE_badbit
;
9526 basic_istream_wchar_sentry_destroy(this);
9528 basic_ios_wchar_setstate(base
, state
);
9532 /* ?unget@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@XZ */
9533 /* ?unget@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@XZ */
9534 /* ?unget@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@XZ */
9535 /* ?unget@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@XZ */
9536 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_unget
, 4)
9537 basic_istream_wchar
* __thiscall
basic_istream_wchar_unget(basic_istream_wchar
*this)
9539 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9540 IOSB_iostate state
= IOSTATE_goodbit
;
9542 TRACE("(%p)\n", this);
9546 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9547 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9549 if(!ios_base_good(&base
->base
))
9550 state
|= IOSTATE_failbit
;
9551 else if(!strbuf
|| basic_streambuf_wchar_sungetc(strbuf
)==WEOF
)
9552 state
|= IOSTATE_badbit
;
9554 basic_istream_wchar_sentry_destroy(this);
9556 basic_ios_wchar_setstate(base
, state
);
9560 /* ?sync@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEHXZ */
9561 /* ?sync@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAHXZ */
9562 /* ?sync@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEHXZ */
9563 /* ?sync@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAHXZ */
9564 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_sync
, 4)
9565 int __thiscall
basic_istream_wchar_sync(basic_istream_wchar
*this)
9567 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9568 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9570 TRACE("(%p)\n", this);
9575 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9576 if(basic_streambuf_wchar_pubsync(strbuf
) != -1) {
9577 basic_istream_wchar_sentry_destroy(this);
9581 basic_istream_wchar_sentry_destroy(this);
9583 basic_ios_wchar_setstate(base
, IOSTATE_badbit
);
9587 /* ?tellg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@XZ */
9588 /* ?tellg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
9589 /* ?tellg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@XZ */
9590 /* ?tellg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
9591 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_tellg
, 8)
9592 fpos_int
* __thiscall
basic_istream_wchar_tellg(basic_istream_wchar
*this, fpos_int
*ret
)
9594 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9596 TRACE("(%p %p)\n", this, ret
);
9598 if(ios_base_fail(&base
->base
)) {
9605 basic_streambuf_wchar_pubseekoff(basic_ios_wchar_rdbuf_get(base
),
9606 ret
, 0, SEEKDIR_cur
, OPENMODE_in
);
9607 if(ret
->off
==-1 && ret
->pos
==0 && ret
->state
==0)
9608 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
9613 /* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@JH@Z */
9614 /* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_JH@Z */
9615 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@JH@Z */
9616 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JH@Z */
9617 #if STREAMOFF_BITS == 64
9618 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_seekg
, 16)
9620 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_seekg
, 12)
9622 basic_istream_wchar
* __thiscall
basic_istream_wchar_seekg(basic_istream_wchar
*this, streamoff off
, int dir
)
9624 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9626 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(off
), dir
);
9628 if(!ios_base_fail(&base
->base
)) {
9629 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9632 basic_streambuf_wchar_pubseekoff(strbuf
, &ret
, off
, dir
, OPENMODE_in
);
9634 if(ret
.off
==-1 && ret
.pos
==0 && ret
.state
==0)
9635 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
9637 basic_ios_wchar_clear(base
, IOSTATE_goodbit
);
9640 basic_ios_wchar_clear(base
, IOSTATE_goodbit
);
9645 /* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
9646 /* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
9647 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
9648 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
9649 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_seekg_fpos
, 28)
9650 basic_istream_wchar
* __thiscall
basic_istream_wchar_seekg_fpos(basic_istream_wchar
*this, fpos_int pos
)
9652 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9654 TRACE("(%p %s)\n", this, debugstr_fpos_int(&pos
));
9656 if(!ios_base_fail(&base
->base
)) {
9657 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9660 basic_streambuf_wchar_pubseekpos(strbuf
, &ret
, pos
, OPENMODE_in
);
9662 if(ret
.off
==-1 && ret
.pos
==0 && ret
.state
==0)
9663 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
9665 basic_ios_wchar_clear(base
, IOSTATE_goodbit
);
9668 basic_ios_wchar_clear(base
, IOSTATE_goodbit
);
9673 static basic_istream_wchar
* basic_istream_read_short(basic_istream_wchar
*this, short *v
, const num_get
*numget
)
9675 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9676 int state
= IOSTATE_goodbit
;
9678 TRACE("(%p %p)\n", this, v
);
9680 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
9681 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9682 istreambuf_iterator_wchar first
={0}, last
={0};
9685 first
.strbuf
= strbuf
;
9686 num_get_wchar_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, &tmp
);
9688 if(!(state
&IOSTATE_failbit
) && tmp
==(LONG
)((short)tmp
))
9691 state
|= IOSTATE_failbit
;
9693 basic_istream_wchar_sentry_destroy(this);
9695 basic_ios_wchar_setstate(base
, state
);
9699 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAF@Z */
9700 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAF@Z */
9701 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_short
, 8)
9702 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_short(basic_istream_wchar
*this, short *v
)
9704 return basic_istream_read_short(this, v
, num_get_wchar_use_facet(
9705 basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
9708 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAF@Z */
9709 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAF@Z */
9710 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_short
, 8)
9711 basic_istream_wchar
* __thiscall
basic_istream_short_read_short(basic_istream_wchar
*this, short *v
)
9713 return basic_istream_read_short(this, v
, num_get_short_use_facet(
9714 basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
9717 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAG@Z */
9718 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAG@Z */
9719 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_ushort
, 8)
9720 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_ushort(basic_istream_wchar
*this, unsigned short *v
)
9722 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9723 int state
= IOSTATE_goodbit
;
9725 TRACE("(%p %p)\n", this, v
);
9727 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
9728 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9729 const num_get
*numget
= num_get_wchar_use_facet(strbuf
->loc
);
9730 istreambuf_iterator_wchar first
={0}, last
={0};
9732 first
.strbuf
= strbuf
;
9733 num_get_wchar_get_ushort(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
9735 basic_istream_wchar_sentry_destroy(this);
9737 basic_ios_wchar_setstate(base
, state
);
9741 static basic_istream_wchar
* basic_istream_read_int(basic_istream_wchar
*this, int *v
, const num_get
*numget
)
9743 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9744 int state
= IOSTATE_goodbit
;
9746 TRACE("(%p %p)\n", this, v
);
9748 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
9749 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9750 istreambuf_iterator_wchar first
={0}, last
={0};
9752 first
.strbuf
= strbuf
;
9753 num_get_wchar_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
9755 basic_istream_wchar_sentry_destroy(this);
9757 basic_ios_wchar_setstate(base
, state
);
9761 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAH@Z */
9762 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAH@Z */
9763 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_int
, 8)
9764 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_int(basic_istream_wchar
*this, int *v
)
9766 return basic_istream_read_int(this, v
, num_get_wchar_use_facet(
9767 basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
9770 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAH@Z */
9771 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAH@Z */
9772 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_int
, 8)
9773 basic_istream_wchar
* __thiscall
basic_istream_short_read_int(basic_istream_wchar
*this, int *v
)
9775 return basic_istream_read_int(this, v
, num_get_short_use_facet(
9776 basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
9779 static basic_istream_wchar
* basic_istream_read_uint(basic_istream_wchar
*this, unsigned int *v
, const num_get
*numget
)
9781 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9782 int state
= IOSTATE_goodbit
;
9784 TRACE("(%p %p)\n", this, v
);
9786 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
9787 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9788 istreambuf_iterator_wchar first
={0}, last
={0};
9790 first
.strbuf
= strbuf
;
9791 num_get_wchar_get_uint(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
9793 basic_istream_wchar_sentry_destroy(this);
9795 basic_ios_wchar_setstate(base
, state
);
9799 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAI@Z */
9800 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAI@Z */
9801 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_uint
, 8)
9802 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_uint(basic_istream_wchar
*this, unsigned int *v
)
9804 return basic_istream_read_uint(this, v
, num_get_wchar_use_facet(
9805 basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
9808 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAI@Z */
9809 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAI@Z */
9810 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_uint
, 8)
9811 basic_istream_wchar
* __thiscall
basic_istream_short_read_uint(basic_istream_wchar
*this, unsigned int *v
)
9813 return basic_istream_read_uint(this, v
, num_get_short_use_facet(
9814 basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
9817 static basic_istream_wchar
* basic_istream_read_long(basic_istream_wchar
*this, LONG
*v
, const num_get
*numget
)
9819 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9820 int state
= IOSTATE_goodbit
;
9822 TRACE("(%p %p)\n", this, v
);
9824 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
9825 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9826 istreambuf_iterator_wchar first
={0}, last
={0};
9828 first
.strbuf
= strbuf
;
9829 num_get_wchar_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
9831 basic_istream_wchar_sentry_destroy(this);
9833 basic_ios_wchar_setstate(base
, state
);
9837 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAJ@Z */
9838 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAJ@Z */
9839 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_long
, 8)
9840 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_long(basic_istream_wchar
*this, LONG
*v
)
9842 return basic_istream_read_long(this, v
, num_get_wchar_use_facet(
9843 basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
9846 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAJ@Z */
9847 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAJ@Z */
9848 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_long
, 8)
9849 basic_istream_wchar
* __thiscall
basic_istream_short_read_long(basic_istream_wchar
*this, LONG
*v
)
9851 return basic_istream_read_long(this, v
, num_get_short_use_facet(
9852 basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
9855 static basic_istream_wchar
* basic_istream_read_ulong(basic_istream_wchar
*this, ULONG
*v
, const num_get
*numget
)
9857 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9858 int state
= IOSTATE_goodbit
;
9860 TRACE("(%p %p)\n", this, v
);
9862 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
9863 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9864 istreambuf_iterator_wchar first
={0}, last
={0};
9866 first
.strbuf
= strbuf
;
9867 num_get_wchar_get_ulong(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
9869 basic_istream_wchar_sentry_destroy(this);
9871 basic_ios_wchar_setstate(base
, state
);
9875 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAK@Z */
9876 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAK@Z */
9877 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_ulong
, 8)
9878 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_ulong(basic_istream_wchar
*this, ULONG
*v
)
9880 return basic_istream_read_ulong(this, v
, num_get_wchar_use_facet(
9881 basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
9884 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAK@Z */
9885 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAK@Z */
9886 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_ulong
, 8)
9887 basic_istream_wchar
* __thiscall
basic_istream_short_read_ulong(basic_istream_wchar
*this, ULONG
*v
)
9889 return basic_istream_read_ulong(this, v
, num_get_short_use_facet(
9890 basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
9893 static basic_istream_wchar
* basic_istream_read_float(basic_istream_wchar
*this, float *v
, const num_get
*numget
)
9895 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9896 int state
= IOSTATE_goodbit
;
9898 TRACE("(%p %p)\n", this, v
);
9900 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
9901 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9902 istreambuf_iterator_wchar first
={0}, last
={0};
9904 first
.strbuf
= strbuf
;
9905 num_get_wchar_get_float(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
9907 basic_istream_wchar_sentry_destroy(this);
9909 basic_ios_wchar_setstate(base
, state
);
9913 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAM@Z */
9914 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAM@Z */
9915 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_float
, 8)
9916 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_float(basic_istream_wchar
*this, float *v
)
9918 return basic_istream_read_float(this, v
, num_get_wchar_use_facet(
9919 basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
9922 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAM@Z */
9923 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAM@Z */
9924 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_float
, 8)
9925 basic_istream_wchar
* __thiscall
basic_istream_short_read_float(basic_istream_wchar
*this, float *v
)
9927 return basic_istream_read_float(this, v
, num_get_short_use_facet(
9928 basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
9931 static basic_istream_wchar
* basic_istream_read_double(basic_istream_wchar
*this, double *v
, const num_get
*numget
)
9933 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9934 int state
= IOSTATE_goodbit
;
9936 TRACE("(%p %p)\n", this, v
);
9938 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
9939 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9940 istreambuf_iterator_wchar first
={0}, last
={0};
9942 first
.strbuf
= strbuf
;
9943 num_get_wchar_get_double(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
9945 basic_istream_wchar_sentry_destroy(this);
9947 basic_ios_wchar_setstate(base
, state
);
9951 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAN@Z */
9952 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAN@Z */
9953 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_double
, 8)
9954 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_double(basic_istream_wchar
*this, double *v
)
9956 return basic_istream_read_double(this, v
, num_get_wchar_use_facet(
9957 basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
9960 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAN@Z */
9961 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAN@Z */
9962 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_double
, 8)
9963 basic_istream_wchar
* __thiscall
basic_istream_short_read_double(basic_istream_wchar
*this, double *v
)
9965 return basic_istream_read_double(this, v
, num_get_short_use_facet(
9966 basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
9969 static basic_istream_wchar
* basic_istream_read_ldouble(basic_istream_wchar
*this, double *v
, const num_get
*numget
)
9971 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9972 int state
= IOSTATE_goodbit
;
9974 TRACE("(%p %p)\n", this, v
);
9976 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
9977 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9978 istreambuf_iterator_wchar first
={0}, last
={0};
9980 first
.strbuf
= strbuf
;
9981 num_get_wchar_get_ldouble(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
9983 basic_istream_wchar_sentry_destroy(this);
9985 basic_ios_wchar_setstate(base
, state
);
9989 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAO@Z */
9990 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAO@Z */
9991 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_ldouble
, 8)
9992 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_ldouble(basic_istream_wchar
*this, double *v
)
9994 return basic_istream_read_ldouble(this, v
, num_get_wchar_use_facet(
9995 basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
9998 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAO@Z */
9999 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAO@Z */
10000 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_ldouble
, 8)
10001 basic_istream_wchar
* __thiscall
basic_istream_short_read_ldouble(basic_istream_wchar
*this, double *v
)
10003 return basic_istream_read_ldouble(this, v
, num_get_short_use_facet(
10004 basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
10007 static basic_istream_wchar
* basic_istream_read_ptr(basic_istream_wchar
*this, void **v
, const num_get
*numget
)
10009 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10010 int state
= IOSTATE_goodbit
;
10012 TRACE("(%p %p)\n", this, v
);
10014 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10015 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10016 istreambuf_iterator_wchar first
={0}, last
={0};
10018 first
.strbuf
= strbuf
;
10019 num_get_wchar_get_void(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10021 basic_istream_wchar_sentry_destroy(this);
10023 basic_ios_wchar_setstate(base
, state
);
10027 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAPAX@Z */
10028 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAPEAX@Z */
10029 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_ptr
, 8)
10030 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_ptr(basic_istream_wchar
*this, void **v
)
10032 return basic_istream_read_ptr(this, v
, num_get_wchar_use_facet(
10033 basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
10036 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAPAX@Z */
10037 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAPEAX@Z */
10038 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_ptr
, 8)
10039 basic_istream_wchar
* __thiscall
basic_istream_short_read_ptr(basic_istream_wchar
*this, void **v
)
10041 return basic_istream_read_ptr(this, v
, num_get_short_use_facet(
10042 basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
10045 static basic_istream_wchar
* basic_istream_read_int64(basic_istream_wchar
*this, __int64
*v
, const num_get
*numget
)
10047 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10048 int state
= IOSTATE_goodbit
;
10050 TRACE("(%p %p)\n", this, v
);
10052 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10053 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10054 istreambuf_iterator_wchar first
={0}, last
={0};
10056 first
.strbuf
= strbuf
;
10057 num_get_wchar_get_int64(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10059 basic_istream_wchar_sentry_destroy(this);
10061 basic_ios_wchar_setstate(base
, state
);
10065 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AA_J@Z */
10066 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEA_J@Z */
10067 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_int64
, 8)
10068 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_int64(basic_istream_wchar
*this, __int64
*v
)
10070 return basic_istream_read_int64(this, v
, num_get_wchar_use_facet(
10071 basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
10074 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AA_J@Z */
10075 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEA_J@Z */
10076 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_int64
, 8)
10077 basic_istream_wchar
* __thiscall
basic_istream_short_read_int64(basic_istream_wchar
*this, __int64
*v
)
10079 return basic_istream_read_int64(this, v
, num_get_short_use_facet(
10080 basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
10083 static basic_istream_wchar
* basic_istream_read_uint64(basic_istream_wchar
*this, unsigned __int64
*v
, const num_get
*numget
)
10085 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10086 int state
= IOSTATE_goodbit
;
10088 TRACE("(%p %p)\n", this, v
);
10090 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10091 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10092 istreambuf_iterator_wchar first
={0}, last
={0};
10094 first
.strbuf
= strbuf
;
10095 num_get_wchar_get_uint64(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10097 basic_istream_wchar_sentry_destroy(this);
10099 basic_ios_wchar_setstate(base
, state
);
10103 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AA_K@Z */
10104 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEA_K@Z */
10105 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_uint64
, 8)
10106 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_uint64(basic_istream_wchar
*this, unsigned __int64
*v
)
10108 return basic_istream_read_uint64(this, v
, num_get_wchar_use_facet(
10109 basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
10112 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AA_K@Z */
10113 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEA_K@Z */
10114 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_uint64
, 8)
10115 basic_istream_wchar
* __thiscall
basic_istream_short_read_uint64(basic_istream_wchar
*this, unsigned __int64
*v
)
10117 return basic_istream_read_uint64(this, v
, num_get_short_use_facet(
10118 basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
10121 static basic_istream_wchar
* basic_istream_read_bool(basic_istream_wchar
*this, MSVCP_bool
*v
, const num_get
*numget
)
10123 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10124 int state
= IOSTATE_goodbit
;
10126 TRACE("(%p %p)\n", this, v
);
10128 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10129 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10130 istreambuf_iterator_wchar first
={0}, last
={0};
10132 first
.strbuf
= strbuf
;
10133 num_get_wchar_get_bool(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10135 basic_istream_wchar_sentry_destroy(this);
10137 basic_ios_wchar_setstate(base
, state
);
10141 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AA_N@Z */
10142 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEA_N@Z */
10143 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_bool
, 8)
10144 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_bool(basic_istream_wchar
*this, MSVCP_bool
*v
)
10146 return basic_istream_read_bool(this, v
, num_get_wchar_use_facet(
10147 basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
10150 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AA_N@Z */
10151 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEA_N@Z */
10152 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_bool
, 8)
10153 basic_istream_wchar
* __thiscall
basic_istream_short_read_bool(basic_istream_wchar
*this, MSVCP_bool
*v
)
10155 return basic_istream_read_bool(this, v
, num_get_short_use_facet(
10156 basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
10159 /* ??$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 */
10160 /* ??$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 */
10161 /* ??$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 */
10162 /* ??$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 */
10163 basic_istream_wchar
* __cdecl
basic_istream_wchar_getline_bstr_delim(
10164 basic_istream_wchar
*istream
, basic_string_wchar
*str
, wchar_t delim
)
10166 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istream
);
10167 IOSB_iostate state
= IOSTATE_goodbit
;
10170 TRACE("(%p %p %c)\n", istream
, str
, delim
);
10172 if(basic_istream_wchar_sentry_create(istream
, TRUE
)) {
10173 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10174 MSVCP_basic_string_wchar_clear(str
);
10176 c
= basic_streambuf_wchar_sgetc(strbuf
);
10177 for(; c
!=delim
&& c
!=WEOF
; c
= basic_streambuf_wchar_snextc(strbuf
))
10178 MSVCP_basic_string_wchar_append_ch(str
, c
);
10179 if(c
==delim
) basic_streambuf_wchar_sbumpc(strbuf
);
10180 else if(c
==WEOF
) state
|= IOSTATE_eofbit
;
10182 if(!MSVCP_basic_string_wchar_length(str
) && c
!=delim
) state
|= IOSTATE_failbit
;
10184 basic_istream_wchar_sentry_destroy(istream
);
10186 basic_ios_wchar_setstate(basic_istream_wchar_get_basic_ios(istream
), state
);
10190 /* ??$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 */
10191 /* ??$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 */
10192 /* ??$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 */
10193 /* ??$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 */
10194 basic_istream_wchar
* __cdecl
basic_istream_wchar_getline_bstr(
10195 basic_istream_wchar
*istream
, basic_string_wchar
*str
)
10197 return basic_istream_wchar_getline_bstr_delim(istream
, str
, '\n');
10200 static basic_istream_wchar
* basic_istream_read_bstr(basic_istream_wchar
*istream
,
10201 basic_string_wchar
*str
, const ctype_wchar
*ctype
)
10203 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istream
);
10204 IOSB_iostate state
= IOSTATE_failbit
;
10207 TRACE("(%p %p)\n", istream
, str
);
10209 if(basic_istream_wchar_sentry_create(istream
, FALSE
)) {
10210 MSVCP_size_t count
= ios_base_width_get(&base
->base
);
10215 MSVCP_basic_string_wchar_clear(str
);
10217 for(c
= basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base
));
10218 c
!=WEOF
&& !ctype_wchar_is_ch(ctype
, _SPACE
|_BLANK
, c
) && count
>0;
10219 c
= basic_streambuf_wchar_snextc(basic_ios_wchar_rdbuf_get(base
)), count
--) {
10220 state
= IOSTATE_goodbit
;
10221 MSVCP_basic_string_wchar_append_ch(str
, c
);
10224 basic_istream_wchar_sentry_destroy(istream
);
10226 ios_base_width_set(&base
->base
, 0);
10227 basic_ios_wchar_setstate(base
, state
| (c
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
10231 /* ??$?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 */
10232 /* ??$?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 */
10233 basic_istream_wchar
* __cdecl
basic_istream_wchar_read_bstr(
10234 basic_istream_wchar
*istream
, basic_string_wchar
*str
)
10236 return basic_istream_read_bstr(istream
, str
, ctype_wchar_use_facet(
10237 basic_istream_wchar_get_basic_ios(istream
)->strbuf
->loc
));
10240 /* ??$?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 */
10241 /* ??$?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 */
10242 basic_istream_wchar
* __cdecl
basic_istream_short_read_bstr(
10243 basic_istream_wchar
*istream
, basic_string_wchar
*str
)
10245 return basic_istream_read_bstr(istream
, str
, ctype_short_use_facet(
10246 basic_istream_wchar_get_basic_ios(istream
)->strbuf
->loc
));
10249 static basic_istream_wchar
* basic_istream_read_str(basic_istream_wchar
*istream
, wchar_t *str
, const ctype_wchar
*ctype
)
10251 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istream
);
10252 IOSB_iostate state
= IOSTATE_failbit
;
10253 unsigned short c
= '\n';
10255 TRACE("(%p %p)\n", istream
, str
);
10257 if(basic_istream_wchar_sentry_create(istream
, FALSE
)) {
10258 MSVCP_size_t count
= ios_base_width_get(&base
->base
)-1;
10260 for(c
= basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base
));
10261 c
!=WEOF
&& !ctype_wchar_is_ch(ctype
, _SPACE
|_BLANK
, c
) && count
>0;
10262 c
= basic_streambuf_wchar_snextc(basic_ios_wchar_rdbuf_get(base
)), count
--) {
10263 state
= IOSTATE_goodbit
;
10267 basic_istream_wchar_sentry_destroy(istream
);
10270 ios_base_width_set(&base
->base
, 0);
10271 basic_ios_wchar_setstate(base
, state
| (c
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
10275 /* ??$?5_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AAV10@PA_W@Z */
10276 /* ??$?5_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AEAV10@PEA_W@Z */
10277 basic_istream_wchar
* __cdecl
basic_istream_wchar_read_str(basic_istream_wchar
*istream
, wchar_t *str
)
10279 return basic_istream_read_str(istream
, str
, ctype_wchar_use_facet(
10280 basic_istream_wchar_get_basic_ios(istream
)->strbuf
->loc
));
10283 /* ??$?5GU?$char_traits@G@std@@@std@@YAAAV?$basic_istream@GU?$char_traits@G@std@@@0@AAV10@PAG@Z */
10284 /* ??$?5GU?$char_traits@G@std@@@std@@YAAEAV?$basic_istream@GU?$char_traits@G@std@@@0@AEAV10@PEAG@Z */
10285 basic_istream_wchar
* __cdecl
basic_istream_short_read_str(basic_istream_wchar
*istream
, wchar_t *str
)
10287 return basic_istream_read_str(istream
, str
, ctype_short_use_facet(
10288 basic_istream_wchar_get_basic_ios(istream
)->strbuf
->loc
));
10291 /* ??$?5_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AAV10@AA_W@Z */
10292 /* ??$?5_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AEAV10@AEA_W@Z */
10293 /* ??$?5GU?$char_traits@G@std@@@std@@YAAAV?$basic_istream@GU?$char_traits@G@std@@@0@AAV10@AAG@Z */
10294 /* ??$?5GU?$char_traits@G@std@@@std@@YAAEAV?$basic_istream@GU?$char_traits@G@std@@@0@AEAV10@AEAG@Z */
10295 basic_istream_wchar
* __cdecl
basic_istream_wchar_read_ch(basic_istream_wchar
*istream
, wchar_t *ch
)
10297 IOSB_iostate state
= IOSTATE_failbit
;
10298 unsigned short c
= 0;
10300 TRACE("(%p %p)\n", istream
, ch
);
10302 if(basic_istream_wchar_sentry_create(istream
, FALSE
)) {
10303 c
= basic_streambuf_wchar_sbumpc(basic_ios_wchar_rdbuf_get(
10304 basic_istream_wchar_get_basic_ios(istream
)));
10306 state
= IOSTATE_goodbit
;
10310 basic_istream_wchar_sentry_destroy(istream
);
10312 basic_ios_wchar_setstate(basic_istream_wchar_get_basic_ios(istream
),
10313 state
| (c
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
10317 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
10318 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
10319 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
10320 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
10321 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_streambuf
, 8)
10322 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_streambuf(
10323 basic_istream_wchar
*this, basic_streambuf_wchar
*streambuf
)
10325 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10326 IOSB_iostate state
= IOSTATE_failbit
;
10327 unsigned short c
= '\n';
10329 TRACE("(%p %p)\n", this, streambuf
);
10331 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10332 for(c
= basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base
)); c
!=WEOF
;
10333 c
= basic_streambuf_wchar_snextc(basic_ios_wchar_rdbuf_get(base
))) {
10334 state
= IOSTATE_goodbit
;
10335 if(basic_streambuf_wchar_sputc(streambuf
, c
) == WEOF
)
10339 basic_istream_wchar_sentry_destroy(this);
10341 basic_ios_wchar_setstate(base
, state
| (c
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
10345 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
10346 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
10347 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
10348 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
10349 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_func
, 8)
10350 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_func(basic_istream_wchar
*this,
10351 basic_istream_wchar
* (__cdecl
*pfunc
)(basic_istream_wchar
*))
10353 TRACE("(%p %p)\n", this, pfunc
);
10358 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AAV21@@Z@Z */
10359 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AEAV21@@Z@Z */
10360 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@GU?$char_traits@G@std@@@1@AAV21@@Z@Z */
10361 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@GU?$char_traits@G@std@@@1@AEAV21@@Z@Z */
10362 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_func_basic_ios
, 8)
10363 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_func_basic_ios(basic_istream_wchar
*this,
10364 basic_ios_wchar
* (__cdecl
*pfunc
)(basic_ios_wchar
*))
10366 TRACE("(%p %p)\n", this, pfunc
);
10367 pfunc(basic_istream_wchar_get_basic_ios(this));
10371 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
10372 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
10373 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
10374 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
10375 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_func_ios_base
, 8)
10376 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_func_ios_base(
10377 basic_istream_wchar
*this, ios_base
* (__cdecl
*pfunc
)(ios_base
*))
10379 TRACE("(%p %p)\n", this, pfunc
);
10380 pfunc(&basic_istream_wchar_get_basic_ios(this)->base
);
10384 static inline basic_ios_char
* basic_iostream_char_to_basic_ios(basic_iostream_char
*ptr
)
10386 return (basic_ios_char
*)((char*)ptr
+basic_iostream_char_vbtable1
[1]);
10389 static inline basic_iostream_char
* basic_iostream_char_from_basic_ios(basic_ios_char
*ptr
)
10391 return (basic_iostream_char
*)((char*)ptr
-basic_iostream_char_vbtable1
[1]);
10394 /* ??0?$basic_iostream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
10395 /* ??0?$basic_iostream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
10396 DEFINE_THISCALL_WRAPPER(basic_iostream_char_ctor
, 12)
10397 basic_iostream_char
* __thiscall
basic_iostream_char_ctor(basic_iostream_char
*this, basic_streambuf_char
*strbuf
, MSVCP_bool virt_init
)
10399 basic_ios_char
*basic_ios
;
10401 TRACE("(%p %p %d)\n", this, strbuf
, virt_init
);
10404 this->base1
.vbtable
= basic_iostream_char_vbtable1
;
10405 this->base2
.vbtable
= basic_iostream_char_vbtable2
;
10406 basic_ios
= basic_istream_char_get_basic_ios(&this->base1
);
10407 basic_ios_char_ctor(basic_ios
);
10409 basic_ios
= basic_istream_char_get_basic_ios(&this->base1
);
10412 basic_ios
->base
.vtable
= &MSVCP_basic_iostream_char_vtable
;
10414 basic_istream_char_ctor(&this->base1
, strbuf
, FALSE
, FALSE
);
10415 basic_ostream_char_ctor_uninitialized(&this->base2
, 0, FALSE
, FALSE
);
10419 /* ??1?$basic_iostream@DU?$char_traits@D@std@@@std@@UAE@XZ */
10420 /* ??1?$basic_iostream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
10421 DEFINE_THISCALL_WRAPPER(basic_iostream_char_dtor
, 4)
10422 void __thiscall
basic_iostream_char_dtor(basic_ios_char
*base
)
10424 basic_iostream_char
*this = basic_iostream_char_from_basic_ios(base
);
10426 TRACE("(%p)\n", this);
10427 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&this->base2
));
10428 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&this->base1
));
10431 /* ??_D?$basic_iostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
10432 /* ??_D?$basic_iostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
10433 DEFINE_THISCALL_WRAPPER(basic_iostream_char_vbase_dtor
, 4)
10434 void __thiscall
basic_iostream_char_vbase_dtor(basic_iostream_char
*this)
10436 TRACE("(%p)\n", this);
10437 basic_iostream_char_dtor(basic_iostream_char_to_basic_ios(this));
10438 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base1
));
10441 DEFINE_THISCALL_WRAPPER(basic_iostream_char_vector_dtor
, 8)
10442 basic_iostream_char
* __thiscall
basic_iostream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
10444 basic_iostream_char
*this = basic_iostream_char_from_basic_ios(base
);
10446 TRACE("(%p %x)\n", this, flags
);
10449 /* we have an array, with the number of elements stored before the first object */
10450 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
10452 for(i
=*ptr
-1; i
>=0; i
--)
10453 basic_iostream_char_vbase_dtor(this+i
);
10454 MSVCRT_operator_delete(ptr
);
10456 basic_iostream_char_vbase_dtor(this);
10458 MSVCRT_operator_delete(this);
10464 static inline basic_ios_wchar
* basic_iostream_wchar_to_basic_ios(basic_iostream_wchar
*ptr
)
10466 return (basic_ios_wchar
*)((char*)ptr
+basic_iostream_wchar_vbtable1
[1]);
10469 static inline basic_iostream_wchar
* basic_iostream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
10471 return (basic_iostream_wchar
*)((char*)ptr
-basic_iostream_wchar_vbtable1
[1]);
10474 /* ??0?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
10475 /* ??0?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
10476 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_ctor
, 12)
10477 basic_iostream_wchar
* __thiscall
basic_iostream_wchar_ctor(basic_iostream_wchar
*this,
10478 basic_streambuf_wchar
*strbuf
, MSVCP_bool virt_init
)
10480 basic_ios_wchar
*basic_ios
;
10482 TRACE("(%p %p %d)\n", this, strbuf
, virt_init
);
10485 this->base1
.vbtable
= basic_iostream_wchar_vbtable1
;
10486 this->base2
.vbtable
= basic_iostream_wchar_vbtable2
;
10487 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base1
);
10488 basic_ios_wchar_ctor(basic_ios
);
10490 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base1
);
10493 basic_istream_wchar_ctor(&this->base1
, strbuf
, FALSE
, FALSE
);
10494 basic_ostream_wchar_ctor_uninitialized(&this->base2
, 0, FALSE
, FALSE
);
10496 basic_ios
->base
.vtable
= &MSVCP_basic_iostream_wchar_vtable
;
10500 /* ??0?$basic_iostream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
10501 /* ??0?$basic_iostream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
10502 DEFINE_THISCALL_WRAPPER(basic_iostream_short_ctor
, 12)
10503 basic_iostream_wchar
* __thiscall
basic_iostream_short_ctor(basic_iostream_wchar
*this,
10504 basic_streambuf_wchar
*strbuf
, MSVCP_bool virt_init
)
10506 basic_iostream_wchar_ctor(this, strbuf
, virt_init
);
10507 basic_istream_wchar_get_basic_ios(&this->base1
)->base
.vtable
= &MSVCP_basic_iostream_short_vtable
;
10511 /* ??1?$basic_iostream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
10512 /* ??1?$basic_iostream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
10513 /* ??1?$basic_iostream@GU?$char_traits@G@std@@@std@@UAE@XZ */
10514 /* ??1?$basic_iostream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
10515 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_dtor
, 4)
10516 void __thiscall
basic_iostream_wchar_dtor(basic_ios_wchar
*base
)
10518 basic_iostream_wchar
*this = basic_iostream_wchar_from_basic_ios(base
);
10520 TRACE("(%p)\n", this);
10521 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(&this->base2
));
10522 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(&this->base1
));
10525 /* ??_D?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
10526 /* ??_D?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
10527 /* ??_D?$basic_iostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
10528 /* ??_D?$basic_iostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
10529 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_vbase_dtor
, 4)
10530 void __thiscall
basic_iostream_wchar_vbase_dtor(basic_iostream_wchar
*this)
10532 TRACE("(%p)\n", this);
10533 basic_iostream_wchar_dtor(basic_iostream_wchar_to_basic_ios(this));
10534 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(&this->base1
));
10537 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_vector_dtor
, 8)
10538 basic_iostream_wchar
* __thiscall
basic_iostream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
10540 basic_iostream_wchar
*this = basic_iostream_wchar_from_basic_ios(base
);
10542 TRACE("(%p %x)\n", this, flags
);
10545 /* we have an array, with the number of elements stored before the first object */
10546 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
10548 for(i
=*ptr
-1; i
>=0; i
--)
10549 basic_iostream_wchar_vbase_dtor(this+i
);
10550 MSVCRT_operator_delete(ptr
);
10552 basic_iostream_wchar_vbase_dtor(this);
10554 MSVCRT_operator_delete(this);
10560 static inline basic_ios_char
* basic_ofstream_char_to_basic_ios(basic_ofstream_char
*ptr
)
10562 return (basic_ios_char
*)((char*)ptr
+basic_ofstream_char_vbtable
[1]);
10565 static inline basic_ofstream_char
* basic_ofstream_char_from_basic_ios(basic_ios_char
*ptr
)
10567 return (basic_ofstream_char
*)((char*)ptr
-basic_ofstream_char_vbtable
[1]);
10570 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@XZ */
10571 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@XZ */
10572 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_ctor
, 8)
10573 basic_ofstream_char
* __thiscall
basic_ofstream_char_ctor(basic_ofstream_char
*this, MSVCP_bool virt_init
)
10575 basic_ios_char
*basic_ios
;
10577 TRACE("(%p %d)\n", this, virt_init
);
10580 this->base
.vbtable
= basic_ofstream_char_vbtable
;
10581 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
10582 basic_ios_char_ctor(basic_ios
);
10584 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
10587 basic_filebuf_char_ctor(&this->filebuf
);
10588 basic_ostream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
10589 basic_ios
->base
.vtable
= &MSVCP_basic_ofstream_char_vtable
;
10593 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
10594 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
10595 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_ctor_file
, 12)
10596 basic_ofstream_char
* __thiscall
basic_ofstream_char_ctor_file(
10597 basic_ofstream_char
*this, FILE *file
, MSVCP_bool virt_init
)
10599 basic_ios_char
*basic_ios
;
10601 TRACE("(%p %p %d)\n", this, file
, virt_init
);
10604 this->base
.vbtable
= basic_ofstream_char_vbtable
;
10605 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
10606 basic_ios_char_ctor(basic_ios
);
10608 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
10611 basic_filebuf_char_ctor_file(&this->filebuf
, file
);
10612 basic_ostream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
10613 basic_ios
->base
.vtable
= &MSVCP_basic_ofstream_char_vtable
;
10617 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@PBDHH@Z */
10618 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDHH@Z */
10619 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_ctor_name
, 20)
10620 basic_ofstream_char
* __thiscall
basic_ofstream_char_ctor_name(basic_ofstream_char
*this,
10621 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
10623 TRACE("(%p %s %d %d %d)\n", this, name
, mode
, prot
, virt_init
);
10625 basic_ofstream_char_ctor(this, virt_init
);
10627 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
10628 basic_ios_char
*basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
10629 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
10634 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@PBGHH@Z */
10635 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@PEBGHH@Z */
10636 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@PB_WHH@Z */
10637 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@PEB_WHH@Z */
10638 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_ctor_name_wchar
, 20)
10639 basic_ofstream_char
* __thiscall
basic_ofstream_char_ctor_name_wchar(basic_ofstream_char
*this,
10640 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
10642 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name
), mode
, prot
, virt_init
);
10644 basic_ofstream_char_ctor(this, virt_init
);
10646 if(!basic_filebuf_char_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
10647 basic_ios_char
*basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
10648 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
10653 /* ??1?$basic_ofstream@DU?$char_traits@D@std@@@std@@UAE@XZ */
10654 /* ??1?$basic_ofstream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
10655 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_dtor
, 4)
10656 void __thiscall
basic_ofstream_char_dtor(basic_ios_char
*base
)
10658 basic_ofstream_char
*this = basic_ofstream_char_from_basic_ios(base
);
10660 TRACE("(%p)\n", this);
10662 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&this->base
));
10663 basic_filebuf_char_dtor(&this->filebuf
);
10666 /* ??_D?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
10667 /* ??_D?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
10668 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_vbase_dtor
, 4)
10669 void __thiscall
basic_ofstream_char_vbase_dtor(basic_ofstream_char
*this)
10671 TRACE("(%p)\n", this);
10673 basic_ofstream_char_dtor(basic_ofstream_char_to_basic_ios(this));
10674 basic_ios_char_dtor(basic_ostream_char_get_basic_ios(&this->base
));
10677 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_vector_dtor
, 8)
10678 basic_ofstream_char
* __thiscall
basic_ofstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
10680 basic_ofstream_char
*this = basic_ofstream_char_from_basic_ios(base
);
10682 TRACE("(%p %x)\n", this, flags
);
10685 /* we have an array, with the number of elements stored before the first object */
10686 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
10688 for(i
=*ptr
-1; i
>=0; i
--)
10689 basic_ofstream_char_vbase_dtor(this+i
);
10690 MSVCRT_operator_delete(ptr
);
10692 basic_ofstream_char_vbase_dtor(this);
10694 MSVCRT_operator_delete(this);
10700 /* ?close@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
10701 /* ?close@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
10702 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_close
, 4)
10703 void __thiscall
basic_ofstream_char_close(basic_ofstream_char
*this)
10705 TRACE("(%p)\n", this);
10707 if(!basic_filebuf_char_close(&this->filebuf
)) {
10708 basic_ios_char
*basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
10709 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
10713 /* ?is_open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QBE_NXZ */
10714 /* ?is_open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
10715 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_is_open
, 4)
10716 MSVCP_bool __thiscall
basic_ofstream_char_is_open(const basic_ofstream_char
*this)
10718 TRACE("(%p)\n", this);
10719 return basic_filebuf_char_is_open(&this->filebuf
);
10722 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPBDHH@Z */
10723 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDHH@Z */
10724 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_open
, 16)
10725 void __thiscall
basic_ofstream_char_open(basic_ofstream_char
*this,
10726 const char *name
, int mode
, int prot
)
10728 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
10730 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
10731 basic_ios_char
*basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
10732 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
10736 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPBDI@Z */
10737 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDI@Z */
10738 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_open_old
, 12)
10739 void __thiscall
basic_ofstream_char_open_old(basic_ofstream_char
*this,
10740 const char *name
, unsigned int mode
)
10742 basic_ofstream_char_open(this, name
, mode
, _SH_DENYNO
);
10745 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPBGHH@Z */
10746 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGHH@Z */
10747 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPB_WHH@Z */
10748 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WHH@Z */
10749 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_open_wchar
, 16)
10750 void __thiscall
basic_ofstream_char_open_wchar(basic_ofstream_char
*this,
10751 const wchar_t *name
, int mode
, int prot
)
10753 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
10755 if(!basic_filebuf_char_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
10756 basic_ios_char
*basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
10757 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
10761 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPBGI@Z */
10762 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGI@Z */
10763 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPB_WI@Z */
10764 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WI@Z */
10765 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_open_wchar_old
, 12)
10766 void __thiscall
basic_ofstream_char_open_wchar_old(basic_ofstream_char
*this,
10767 const wchar_t *name
, unsigned int mode
)
10769 basic_ofstream_char_open_wchar(this, name
, mode
, _SH_DENYNO
);
10772 /* ?rdbuf@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
10773 /* ?rdbuf@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
10774 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_rdbuf
, 4)
10775 basic_filebuf_char
* __thiscall
basic_ofstream_char_rdbuf(const basic_ofstream_char
*this)
10777 TRACE("(%p)\n", this);
10778 return (basic_filebuf_char
*)&this->filebuf
;
10781 static inline basic_ios_wchar
* basic_ofstream_wchar_to_basic_ios(basic_ofstream_wchar
*ptr
)
10783 return (basic_ios_wchar
*)((char*)ptr
+basic_ofstream_wchar_vbtable
[1]);
10786 static inline basic_ofstream_wchar
* basic_ofstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
10788 return (basic_ofstream_wchar
*)((char*)ptr
-basic_ofstream_wchar_vbtable
[1]);
10791 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@XZ */
10792 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@XZ */
10793 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_ctor
, 8)
10794 basic_ofstream_wchar
* __thiscall
basic_ofstream_wchar_ctor(basic_ofstream_wchar
*this, MSVCP_bool virt_init
)
10796 basic_ios_wchar
*basic_ios
;
10798 TRACE("(%p %d)\n", this, virt_init
);
10801 this->base
.vbtable
= basic_ofstream_wchar_vbtable
;
10802 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
10803 basic_ios_wchar_ctor(basic_ios
);
10805 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
10808 basic_filebuf_wchar_ctor(&this->filebuf
);
10809 basic_ostream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
10810 basic_ios
->base
.vtable
= &MSVCP_basic_ofstream_wchar_vtable
;
10814 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@XZ */
10815 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@XZ */
10816 DEFINE_THISCALL_WRAPPER(basic_ofstream_short_ctor
, 8)
10817 basic_ofstream_wchar
* __thiscall
basic_ofstream_short_ctor(basic_ofstream_wchar
*this, MSVCP_bool virt_init
)
10819 basic_ofstream_wchar_ctor(this, virt_init
);
10820 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ofstream_short_vtable
;
10824 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
10825 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
10826 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_ctor_file
, 12)
10827 basic_ofstream_wchar
* __thiscall
basic_ofstream_wchar_ctor_file(
10828 basic_ofstream_wchar
*this, FILE *file
, MSVCP_bool virt_init
)
10830 basic_ios_wchar
*basic_ios
;
10832 TRACE("(%p %p %d)\n", this, file
, virt_init
);
10835 this->base
.vbtable
= basic_ofstream_wchar_vbtable
;
10836 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
10837 basic_ios_wchar_ctor(basic_ios
);
10839 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
10842 basic_filebuf_wchar_ctor_file(&this->filebuf
, file
);
10843 basic_ostream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
10844 basic_ios
->base
.vtable
= &MSVCP_basic_ofstream_wchar_vtable
;
10848 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
10849 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
10850 DEFINE_THISCALL_WRAPPER(basic_ofstream_short_ctor_file
, 12)
10851 basic_ofstream_wchar
* __thiscall
basic_ofstream_short_ctor_file(
10852 basic_ofstream_wchar
*this, FILE *file
, MSVCP_bool virt_init
)
10854 basic_ofstream_wchar_ctor_file(this, file
, virt_init
);
10855 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ofstream_short_vtable
;
10859 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@PBDHH@Z */
10860 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBDHH@Z */
10861 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_ctor_name
, 20)
10862 basic_ofstream_wchar
* __thiscall
basic_ofstream_wchar_ctor_name(basic_ofstream_wchar
*this,
10863 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
10865 TRACE("(%p %s %d %d %d)\n", this, name
, mode
, prot
, virt_init
);
10867 basic_ofstream_wchar_ctor(this, virt_init
);
10869 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
10870 basic_ios_wchar
*basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
10871 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
10876 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@PBDHH@Z */
10877 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@PEBDHH@Z */
10878 DEFINE_THISCALL_WRAPPER(basic_ofstream_short_ctor_name
, 20)
10879 basic_ofstream_wchar
* __thiscall
basic_ofstream_short_ctor_name(basic_ofstream_wchar
*this,
10880 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
10882 basic_ofstream_wchar_ctor_name(this, name
, mode
, prot
, virt_init
);
10883 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ofstream_short_vtable
;
10887 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@PBGHH@Z */
10888 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBGHH@Z */
10889 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@PB_WHH@Z */
10890 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEB_WHH@Z */
10891 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_ctor_name_wchar
, 20)
10892 basic_ofstream_wchar
* __thiscall
basic_ofstream_wchar_ctor_name_wchar(basic_ofstream_wchar
*this,
10893 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
10895 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name
), mode
, prot
, virt_init
);
10897 basic_ofstream_wchar_ctor(this, virt_init
);
10899 if(!basic_filebuf_wchar_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
10900 basic_ios_wchar
*basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
10901 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
10906 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@PBGHH@Z */
10907 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@PEBGHH@Z */
10908 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@PB_WHH@Z */
10909 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@PEB_WHH@Z */
10910 DEFINE_THISCALL_WRAPPER(basic_ofstream_short_ctor_name_wchar
, 20)
10911 basic_ofstream_wchar
* __thiscall
basic_ofstream_short_ctor_name_wchar(basic_ofstream_wchar
*this,
10912 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
10914 basic_ofstream_wchar_ctor_name_wchar(this, name
, mode
, prot
, virt_init
);
10915 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ofstream_short_vtable
;
10919 /* ??1?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
10920 /* ??1?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
10921 /* ??1?$basic_ofstream@GU?$char_traits@G@std@@@std@@UAE@XZ */
10922 /* ??1?$basic_ofstream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
10923 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_dtor
, 4)
10924 void __thiscall
basic_ofstream_wchar_dtor(basic_ios_wchar
*base
)
10926 basic_ofstream_wchar
*this = basic_ofstream_wchar_from_basic_ios(base
);
10928 TRACE("(%p)\n", this);
10930 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(&this->base
));
10931 basic_filebuf_wchar_dtor(&this->filebuf
);
10934 /* ??_D?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
10935 /* ??_D?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
10936 /* ??_D?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
10937 /* ??_D?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
10938 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_vbase_dtor
, 4)
10939 void __thiscall
basic_ofstream_wchar_vbase_dtor(basic_ofstream_wchar
*this)
10941 TRACE("(%p)\n", this);
10943 basic_ofstream_wchar_dtor(basic_ofstream_wchar_to_basic_ios(this));
10944 basic_ios_wchar_dtor(basic_ostream_wchar_get_basic_ios(&this->base
));
10947 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_vector_dtor
, 8)
10948 basic_ofstream_wchar
* __thiscall
basic_ofstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
10950 basic_ofstream_wchar
*this = basic_ofstream_wchar_from_basic_ios(base
);
10952 TRACE("(%p %x)\n", this, flags
);
10955 /* we have an array, with the number of elements stored before the first object */
10956 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
10958 for(i
=*ptr
-1; i
>=0; i
--)
10959 basic_ofstream_wchar_vbase_dtor(this+i
);
10960 MSVCRT_operator_delete(ptr
);
10962 basic_ofstream_wchar_vbase_dtor(this);
10964 MSVCRT_operator_delete(this);
10970 /* ?close@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
10971 /* ?close@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
10972 /* ?close@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
10973 /* ?close@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
10974 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_close
, 4)
10975 void __thiscall
basic_ofstream_wchar_close(basic_ofstream_wchar
*this)
10977 TRACE("(%p)\n", this);
10979 if(!basic_filebuf_wchar_close(&this->filebuf
)) {
10980 basic_ios_wchar
*basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
10981 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
10985 /* ?is_open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
10986 /* ?is_open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
10987 /* ?is_open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QBE_NXZ */
10988 /* ?is_open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
10989 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_is_open
, 4)
10990 MSVCP_bool __thiscall
basic_ofstream_wchar_is_open(const basic_ofstream_wchar
*this)
10992 TRACE("(%p)\n", this);
10993 return basic_filebuf_wchar_is_open(&this->filebuf
);
10996 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDHH@Z */
10997 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDHH@Z */
10998 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPBDHH@Z */
10999 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDHH@Z */
11000 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_open
, 16)
11001 void __thiscall
basic_ofstream_wchar_open(basic_ofstream_wchar
*this,
11002 const char *name
, int mode
, int prot
)
11004 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
11006 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
11007 basic_ios_wchar
*basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11008 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11012 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDI@Z */
11013 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDI@Z */
11014 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPBDI@Z */
11015 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDI@Z */
11016 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_open_old
, 12)
11017 void __thiscall
basic_ofstream_wchar_open_old(basic_ofstream_wchar
*this,
11018 const char *name
, unsigned int mode
)
11020 basic_ofstream_wchar_open(this, name
, mode
, _SH_DENYNO
);
11023 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGHH@Z */
11024 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGHH@Z */
11025 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WHH@Z */
11026 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WHH@Z */
11027 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPBGHH@Z */
11028 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGHH@Z */
11029 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPB_WHH@Z */
11030 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WHH@Z */
11031 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_open_wchar
, 16)
11032 void __thiscall
basic_ofstream_wchar_open_wchar(basic_ofstream_wchar
*this,
11033 const wchar_t *name
, int mode
, int prot
)
11035 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
11037 if(!basic_filebuf_wchar_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_out
, prot
)) {
11038 basic_ios_wchar
*basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11039 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11043 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGI@Z */
11044 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGI@Z */
11045 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WI@Z */
11046 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WI@Z */
11047 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPBGI@Z */
11048 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGI@Z */
11049 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPB_WI@Z */
11050 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WI@Z */
11051 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_open_wchar_old
, 12)
11052 void __thiscall
basic_ofstream_wchar_open_wchar_old(basic_ofstream_wchar
*this,
11053 const wchar_t *name
, unsigned int mode
)
11055 basic_ofstream_wchar_open_wchar(this, name
, mode
, _SH_DENYNO
);
11058 /* ?rdbuf@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
11059 /* ?rdbuf@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
11060 /* ?rdbuf@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
11061 /* ?rdbuf@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
11062 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_rdbuf
, 4)
11063 basic_filebuf_wchar
* __thiscall
basic_ofstream_wchar_rdbuf(const basic_ofstream_wchar
*this)
11065 TRACE("(%p)\n", this);
11066 return (basic_filebuf_wchar
*)&this->filebuf
;
11069 static inline basic_ios_char
* basic_ifstream_char_to_basic_ios(basic_ifstream_char
*ptr
)
11071 return (basic_ios_char
*)((char*)ptr
+basic_ifstream_char_vbtable
[1]);
11074 static inline basic_ifstream_char
* basic_ifstream_char_from_basic_ios(basic_ios_char
*ptr
)
11076 return (basic_ifstream_char
*)((char*)ptr
-basic_ifstream_char_vbtable
[1]);
11079 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@XZ */
11080 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@XZ */
11081 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor
, 8)
11082 basic_ifstream_char
* __thiscall
basic_ifstream_char_ctor(basic_ifstream_char
*this, MSVCP_bool virt_init
)
11084 basic_ios_char
*basic_ios
;
11086 TRACE("(%p %d)\n", this, virt_init
);
11089 this->base
.vbtable
= basic_ifstream_char_vbtable
;
11090 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11091 basic_ios_char_ctor(basic_ios
);
11093 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11096 basic_filebuf_char_ctor(&this->filebuf
);
11097 basic_istream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
11098 basic_ios
->base
.vtable
= &MSVCP_basic_ifstream_char_vtable
;
11102 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
11103 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11104 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor_file
, 12)
11105 basic_ifstream_char
* __thiscall
basic_ifstream_char_ctor_file(
11106 basic_ifstream_char
*this, FILE *file
, MSVCP_bool virt_init
)
11108 basic_ios_char
*basic_ios
;
11110 TRACE("(%p %p %d)\n", this, file
, virt_init
);
11113 this->base
.vbtable
= basic_ifstream_char_vbtable
;
11114 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11115 basic_ios_char_ctor(basic_ios
);
11117 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11120 basic_filebuf_char_ctor_file(&this->filebuf
, file
);
11121 basic_istream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
11122 basic_ios
->base
.vtable
= &MSVCP_basic_ifstream_char_vtable
;
11126 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PBDHH@Z */
11127 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDHH@Z */
11128 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor_name
, 20)
11129 basic_ifstream_char
* __thiscall
basic_ifstream_char_ctor_name(basic_ifstream_char
*this,
11130 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11132 TRACE("(%p %s %d %d %d)\n", this, name
, mode
, prot
, virt_init
);
11134 basic_ifstream_char_ctor(this, virt_init
);
11136 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
11137 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11138 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11143 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PBGHH@Z */
11144 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEBGHH@Z */
11145 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PB_WHH@Z */
11146 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEB_WHH@Z */
11147 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor_name_wchar
, 20)
11148 basic_ifstream_char
* __thiscall
basic_ifstream_char_ctor_name_wchar(basic_ifstream_char
*this,
11149 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11151 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name
), mode
, prot
, virt_init
);
11153 basic_ifstream_char_ctor(this, virt_init
);
11155 if(!basic_filebuf_char_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
11156 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11157 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11162 /* ??1?$basic_ifstream@DU?$char_traits@D@std@@@std@@UAE@XZ */
11163 /* ??1?$basic_ifstream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
11164 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_dtor
, 4)
11165 void __thiscall
basic_ifstream_char_dtor(basic_ios_char
*base
)
11167 basic_ifstream_char
*this = basic_ifstream_char_from_basic_ios(base
);
11169 TRACE("(%p)\n", this);
11171 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&this->base
));
11172 basic_filebuf_char_dtor(&this->filebuf
);
11175 /* ??_D?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
11176 /* ??_D?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
11177 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_vbase_dtor
, 4)
11178 void __thiscall
basic_ifstream_char_vbase_dtor(basic_ifstream_char
*this)
11180 TRACE("(%p)\n", this);
11182 basic_ifstream_char_dtor(basic_ifstream_char_to_basic_ios(this));
11183 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base
));
11186 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_vector_dtor
, 8)
11187 basic_ifstream_char
* __thiscall
basic_ifstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
11189 basic_ifstream_char
*this = basic_ifstream_char_from_basic_ios(base
);
11191 TRACE("(%p %x)\n", this, flags
);
11194 /* we have an array, with the number of elements stored before the first object */
11195 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11197 for(i
=*ptr
-1; i
>=0; i
--)
11198 basic_ifstream_char_vbase_dtor(this+i
);
11199 MSVCRT_operator_delete(ptr
);
11201 basic_ifstream_char_vbase_dtor(this);
11203 MSVCRT_operator_delete(this);
11209 /* ?close@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
11210 /* ?close@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
11211 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_close
, 4)
11212 void __thiscall
basic_ifstream_char_close(basic_ifstream_char
*this)
11214 TRACE("(%p)\n", this);
11216 if(!basic_filebuf_char_close(&this->filebuf
)) {
11217 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11218 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11222 /* ?is_open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QBE_NXZ */
11223 /* ?is_open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
11224 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_is_open
, 4)
11225 MSVCP_bool __thiscall
basic_ifstream_char_is_open(const basic_ifstream_char
*this)
11227 TRACE("(%p)\n", this);
11228 return basic_filebuf_char_is_open(&this->filebuf
);
11231 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBDHH@Z */
11232 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDHH@Z */
11233 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_open
, 16)
11234 void __thiscall
basic_ifstream_char_open(basic_ifstream_char
*this,
11235 const char *name
, int mode
, int prot
)
11237 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
11239 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
11240 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11241 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11245 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBDI@Z */
11246 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDI@Z */
11247 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_open_old
, 12)
11248 void __thiscall
basic_ifstream_char_open_old(basic_ifstream_char
*this,
11249 const char *name
, unsigned int mode
)
11251 basic_ifstream_char_open(this, name
, mode
, _SH_DENYNO
);
11254 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBGHH@Z */
11255 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGHH@Z */
11256 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPB_WHH@Z */
11257 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WHH@Z */
11258 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_open_wchar
, 16)
11259 void __thiscall
basic_ifstream_char_open_wchar(basic_ifstream_char
*this,
11260 const wchar_t *name
, int mode
, int prot
)
11262 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
11264 if(!basic_filebuf_char_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
11265 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11266 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11270 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBGI@Z */
11271 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGI@Z */
11272 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPB_WI@Z */
11273 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WI@Z */
11274 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_open_wchar_old
, 12)
11275 void __thiscall
basic_ifstream_char_open_wchar_old(basic_ifstream_char
*this,
11276 const wchar_t *name
, unsigned int mode
)
11278 basic_ifstream_char_open_wchar(this, name
, mode
, _SH_DENYNO
);
11281 /* ?rdbuf@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
11282 /* ?rdbuf@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
11283 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_rdbuf
, 4)
11284 basic_filebuf_char
* __thiscall
basic_ifstream_char_rdbuf(const basic_ifstream_char
*this)
11286 TRACE("(%p)\n", this);
11287 return (basic_filebuf_char
*)&this->filebuf
;
11290 static inline basic_ios_wchar
* basic_ifstream_wchar_to_basic_ios(basic_ifstream_wchar
*ptr
)
11292 return (basic_ios_wchar
*)((char*)ptr
+basic_ifstream_wchar_vbtable
[1]);
11295 static inline basic_ifstream_wchar
* basic_ifstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
11297 return (basic_ifstream_wchar
*)((char*)ptr
-basic_ifstream_wchar_vbtable
[1]);
11300 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@XZ */
11301 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@XZ */
11302 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_ctor
, 8)
11303 basic_ifstream_wchar
* __thiscall
basic_ifstream_wchar_ctor(basic_ifstream_wchar
*this, MSVCP_bool virt_init
)
11305 basic_ios_wchar
*basic_ios
;
11307 TRACE("(%p %d)\n", this, virt_init
);
11310 this->base
.vbtable
= basic_ifstream_wchar_vbtable
;
11311 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
11312 basic_ios_wchar_ctor(basic_ios
);
11314 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
11317 basic_filebuf_wchar_ctor(&this->filebuf
);
11318 basic_istream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
11319 basic_ios
->base
.vtable
= &MSVCP_basic_ifstream_wchar_vtable
;
11323 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@XZ */
11324 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@XZ */
11325 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor
, 8)
11326 basic_ifstream_wchar
* __thiscall
basic_ifstream_short_ctor(basic_ifstream_wchar
*this, MSVCP_bool virt_init
)
11328 basic_ifstream_wchar_ctor(this, virt_init
);
11329 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ifstream_short_vtable
;
11333 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
11334 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11335 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_ctor_file
, 12)
11336 basic_ifstream_wchar
* __thiscall
basic_ifstream_wchar_ctor_file(
11337 basic_ifstream_wchar
*this, FILE *file
, MSVCP_bool virt_init
)
11339 basic_ios_wchar
*basic_ios
;
11341 TRACE("(%p %p %d)\n", this, file
, virt_init
);
11344 this->base
.vbtable
= basic_ifstream_wchar_vbtable
;
11345 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
11346 basic_ios_wchar_ctor(basic_ios
);
11348 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
11351 basic_filebuf_wchar_ctor_file(&this->filebuf
, file
);
11352 basic_istream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
11353 basic_ios
->base
.vtable
= &MSVCP_basic_ifstream_wchar_vtable
;
11357 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
11358 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11359 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor_file
, 12)
11360 basic_ifstream_wchar
* __thiscall
basic_ifstream_short_ctor_file(
11361 basic_ifstream_wchar
*this, FILE *file
, MSVCP_bool virt_init
)
11363 basic_ifstream_wchar_ctor_file(this, file
, virt_init
);
11364 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ifstream_short_vtable
;
11368 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@PBDHH@Z */
11369 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBDHH@Z */
11370 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_ctor_name
, 20)
11371 basic_ifstream_wchar
* __thiscall
basic_ifstream_wchar_ctor_name(basic_ifstream_wchar
*this,
11372 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11374 TRACE("(%p %s %d %d %d)\n", this, name
, mode
, prot
, virt_init
);
11376 basic_ifstream_wchar_ctor(this, virt_init
);
11378 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
11379 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
11380 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11385 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@PBDHH@Z */
11386 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@PEBDHH@Z */
11387 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor_name
, 20)
11388 basic_ifstream_wchar
* __thiscall
basic_ifstream_short_ctor_name(basic_ifstream_wchar
*this,
11389 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11391 basic_ifstream_wchar_ctor_name(this, name
, mode
, prot
, virt_init
);
11392 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ifstream_short_vtable
;
11396 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@PBGHH@Z */
11397 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBGHH@Z */
11398 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@PB_WHH@Z */
11399 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEB_WHH@Z */
11400 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_ctor_name_wchar
, 20)
11401 basic_ifstream_wchar
* __thiscall
basic_ifstream_wchar_ctor_name_wchar(basic_ifstream_wchar
*this,
11402 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11404 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name
), mode
, prot
, virt_init
);
11406 basic_ifstream_wchar_ctor(this, virt_init
);
11408 if(!basic_filebuf_wchar_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
11409 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
11410 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11415 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@PBGHH@Z */
11416 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@PEBGHH@Z */
11417 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@PB_WHH@Z */
11418 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@PEB_WHH@Z */
11419 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor_name_wchar
, 20)
11420 basic_ifstream_wchar
* __thiscall
basic_ifstream_short_ctor_name_wchar(basic_ifstream_wchar
*this,
11421 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11423 basic_ifstream_wchar_ctor_name_wchar(this, name
, mode
, prot
, virt_init
);
11424 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ifstream_short_vtable
;
11428 /* ??1?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
11429 /* ??1?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
11430 /* ??1?$basic_ifstream@GU?$char_traits@G@std@@@std@@UAE@XZ */
11431 /* ??1?$basic_ifstream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
11432 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_dtor
, 4)
11433 void __thiscall
basic_ifstream_wchar_dtor(basic_ios_wchar
*base
)
11435 basic_ifstream_wchar
*this = basic_ifstream_wchar_from_basic_ios(base
);
11437 TRACE("(%p)\n", this);
11439 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(&this->base
));
11440 basic_filebuf_wchar_dtor(&this->filebuf
);
11443 /* ??_D?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
11444 /* ??_D?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
11445 /* ??_D?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
11446 /* ??_D?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
11447 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_vbase_dtor
, 4)
11448 void __thiscall
basic_ifstream_wchar_vbase_dtor(basic_ifstream_wchar
*this)
11450 TRACE("(%p)\n", this);
11452 basic_ifstream_wchar_dtor(basic_ifstream_wchar_to_basic_ios(this));
11453 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(&this->base
));
11456 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_vector_dtor
, 8)
11457 basic_ifstream_wchar
* __thiscall
basic_ifstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
11459 basic_ifstream_wchar
*this = basic_ifstream_wchar_from_basic_ios(base
);
11461 TRACE("(%p %x)\n", this, flags
);
11464 /* we have an array, with the number of elements stored before the first object */
11465 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11467 for(i
=*ptr
-1; i
>=0; i
--)
11468 basic_ifstream_wchar_vbase_dtor(this+i
);
11469 MSVCRT_operator_delete(ptr
);
11471 basic_ifstream_wchar_vbase_dtor(this);
11473 MSVCRT_operator_delete(this);
11479 /* ?close@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
11480 /* ?close@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
11481 /* ?close@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
11482 /* ?close@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
11483 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_close
, 4)
11484 void __thiscall
basic_ifstream_wchar_close(basic_ifstream_wchar
*this)
11486 TRACE("(%p)\n", this);
11488 if(!basic_filebuf_wchar_close(&this->filebuf
)) {
11489 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
11490 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11494 /* ?is_open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
11495 /* ?is_open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
11496 /* ?is_open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QBE_NXZ */
11497 /* ?is_open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
11498 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_is_open
, 4)
11499 MSVCP_bool __thiscall
basic_ifstream_wchar_is_open(const basic_ifstream_wchar
*this)
11501 TRACE("(%p)\n", this);
11502 return basic_filebuf_wchar_is_open(&this->filebuf
);
11505 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDHH@Z */
11506 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDHH@Z */
11507 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPBDHH@Z */
11508 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDHH@Z */
11509 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_open
, 16)
11510 void __thiscall
basic_ifstream_wchar_open(basic_ifstream_wchar
*this,
11511 const char *name
, int mode
, int prot
)
11513 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
11515 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
11516 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
11517 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11521 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDI@Z */
11522 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDI@Z */
11523 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPBDI@Z */
11524 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDI@Z */
11525 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_open_old
, 12)
11526 void __thiscall
basic_ifstream_wchar_open_old(basic_ifstream_wchar
*this,
11527 const char *name
, unsigned int mode
)
11529 basic_ifstream_wchar_open(this, name
, mode
, _SH_DENYNO
);
11532 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGHH@Z */
11533 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGHH@Z */
11534 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WHH@Z */
11535 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WHH@Z */
11536 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPBGHH@Z */
11537 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGHH@Z */
11538 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPB_WHH@Z */
11539 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WHH@Z */
11540 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_open_wchar
, 16)
11541 void __thiscall
basic_ifstream_wchar_open_wchar(basic_ifstream_wchar
*this,
11542 const wchar_t *name
, int mode
, int prot
)
11544 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
11546 if(!basic_filebuf_wchar_open_wchar(&this->filebuf
, name
, mode
|OPENMODE_in
, prot
)) {
11547 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
11548 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11552 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGI@Z */
11553 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGI@Z */
11554 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WI@Z */
11555 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WI@Z */
11556 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPBGI@Z */
11557 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGI@Z */
11558 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPB_WI@Z */
11559 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WI@Z */
11560 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_open_wchar_old
, 12)
11561 void __thiscall
basic_ifstream_wchar_open_wchar_old(basic_ifstream_wchar
*this,
11562 const wchar_t *name
, unsigned int mode
)
11564 basic_ifstream_wchar_open_wchar(this, name
, mode
, _SH_DENYNO
);
11567 /* ?rdbuf@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
11568 /* ?rdbuf@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
11569 /* ?rdbuf@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
11570 /* ?rdbuf@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
11571 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_rdbuf
, 4)
11572 basic_filebuf_wchar
* __thiscall
basic_ifstream_wchar_rdbuf(const basic_ifstream_wchar
*this)
11574 TRACE("(%p)\n", this);
11575 return (basic_filebuf_wchar
*)&this->filebuf
;
11578 static inline basic_ios_char
* basic_fstream_char_to_basic_ios(basic_fstream_char
*ptr
)
11580 return (basic_ios_char
*)((char*)ptr
+basic_fstream_char_vbtable1
[1]);
11583 static inline basic_fstream_char
* basic_fstream_char_from_basic_ios(basic_ios_char
*ptr
)
11585 return (basic_fstream_char
*)((char*)ptr
-basic_fstream_char_vbtable1
[1]);
11588 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@XZ */
11589 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@XZ */
11590 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor
, 8)
11591 basic_fstream_char
* __thiscall
basic_fstream_char_ctor(basic_fstream_char
*this, MSVCP_bool virt_init
)
11593 basic_ios_char
*basic_ios
;
11595 TRACE("(%p %d)\n", this, virt_init
);
11598 this->base
.base1
.vbtable
= basic_fstream_char_vbtable1
;
11599 this->base
.base2
.vbtable
= basic_fstream_char_vbtable2
;
11600 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
11601 basic_ios_char_ctor(basic_ios
);
11603 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
11606 basic_filebuf_char_ctor(&this->filebuf
);
11607 basic_iostream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
);
11608 basic_ios
->base
.vtable
= &MSVCP_basic_fstream_char_vtable
;
11612 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
11613 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11614 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor_file
, 12)
11615 basic_fstream_char
* __thiscall
basic_fstream_char_ctor_file(basic_fstream_char
*this,
11616 FILE *file
, MSVCP_bool virt_init
)
11618 basic_ios_char
*basic_ios
;
11620 TRACE("(%p %p %d)\n", this, file
, virt_init
);
11623 this->base
.base1
.vbtable
= basic_fstream_char_vbtable1
;
11624 this->base
.base2
.vbtable
= basic_fstream_char_vbtable2
;
11625 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
11626 basic_ios_char_ctor(basic_ios
);
11628 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
11631 basic_filebuf_char_ctor_file(&this->filebuf
, file
);
11632 basic_iostream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
);
11633 basic_ios
->base
.vtable
= &MSVCP_basic_fstream_char_vtable
;
11637 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PBDHH@Z */
11638 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDHH@Z */
11639 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor_name
, 20)
11640 basic_fstream_char
* __thiscall
basic_fstream_char_ctor_name(basic_fstream_char
*this,
11641 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11643 TRACE("(%p %s %d %d %d)\n", this, name
, mode
, prot
, virt_init
);
11645 basic_fstream_char_ctor(this, virt_init
);
11647 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
, prot
)) {
11648 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
11649 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11654 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PBDH@Z */
11655 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDH@Z */
11656 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor_name_noprot
, 16)
11657 basic_fstream_char
* __thiscall
basic_fstream_char_ctor_name_noprot(basic_fstream_char
*this,
11658 const char *name
, int mode
, MSVCP_bool virt_init
)
11660 return basic_fstream_char_ctor_name(this, name
, mode
, _SH_DENYNO
, virt_init
);
11663 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PBGHH@Z */
11664 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEBGHH@Z */
11665 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PB_WHH@Z */
11666 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEB_WHH@Z */
11667 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor_name_wchar
, 20)
11668 basic_fstream_char
* __thiscall
basic_fstream_char_ctor_name_wchar(basic_fstream_char
*this,
11669 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11671 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name
), mode
, prot
, virt_init
);
11673 basic_fstream_char_ctor(this, virt_init
);
11675 if(!basic_filebuf_char_open_wchar(&this->filebuf
, name
, mode
, prot
)) {
11676 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
11677 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11682 /* ??1?$basic_fstream@DU?$char_traits@D@std@@@std@@UAE@XZ */
11683 /* ??1?$basic_fstream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
11684 DEFINE_THISCALL_WRAPPER(basic_fstream_char_dtor
, 4)
11685 void __thiscall
basic_fstream_char_dtor(basic_ios_char
*base
)
11687 basic_fstream_char
*this = basic_fstream_char_from_basic_ios(base
);
11689 TRACE("(%p)\n", this);
11691 basic_iostream_char_dtor(basic_iostream_char_to_basic_ios(&this->base
));
11692 basic_filebuf_char_dtor(&this->filebuf
);
11695 /* ??_D?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
11696 /* ??_D?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
11697 DEFINE_THISCALL_WRAPPER(basic_fstream_char_vbase_dtor
, 4)
11698 void __thiscall
basic_fstream_char_vbase_dtor(basic_fstream_char
*this)
11700 TRACE("(%p)\n", this);
11702 basic_fstream_char_dtor(basic_fstream_char_to_basic_ios(this));
11703 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base
.base1
));
11706 DEFINE_THISCALL_WRAPPER(basic_fstream_char_vector_dtor
, 8)
11707 basic_fstream_char
* __thiscall
basic_fstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
11709 basic_fstream_char
*this = basic_fstream_char_from_basic_ios(base
);
11711 TRACE("(%p %x)\n", this, flags
);
11714 /* we have an array, with the number of elements stored before the first object */
11715 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11717 for(i
=*ptr
-1; i
>=0; i
--)
11718 basic_fstream_char_vbase_dtor(this+i
);
11719 MSVCRT_operator_delete(ptr
);
11721 basic_fstream_char_vbase_dtor(this);
11723 MSVCRT_operator_delete(this);
11729 /* ?close@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
11730 /* ?close@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
11731 DEFINE_THISCALL_WRAPPER(basic_fstream_char_close
, 4)
11732 void __thiscall
basic_fstream_char_close(basic_fstream_char
*this)
11734 TRACE("(%p)\n", this);
11736 if(!basic_filebuf_char_close(&this->filebuf
)) {
11737 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
11738 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11742 /* ?is_open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QBE_NXZ */
11743 /* ?is_open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
11744 DEFINE_THISCALL_WRAPPER(basic_fstream_char_is_open
, 4)
11745 MSVCP_bool __thiscall
basic_fstream_char_is_open(const basic_fstream_char
*this)
11747 TRACE("(%p)\n", this);
11748 return basic_filebuf_char_is_open(&this->filebuf
);
11751 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPBDHH@Z */
11752 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDHH@Z */
11753 DEFINE_THISCALL_WRAPPER(basic_fstream_char_open
, 16)
11754 void __thiscall
basic_fstream_char_open(basic_fstream_char
*this,
11755 const char *name
, int mode
, int prot
)
11757 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
11759 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
, prot
)) {
11760 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
11761 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11765 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPBDI@Z */
11766 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDI@Z */
11767 DEFINE_THISCALL_WRAPPER(basic_fstream_char_open_old
, 12)
11768 void __thiscall
basic_fstream_char_open_old(basic_fstream_char
*this,
11769 const char *name
, unsigned int mode
)
11771 basic_fstream_char_open(this, name
, mode
, _SH_DENYNO
);
11774 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPBGHH@Z */
11775 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGHH@Z */
11776 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPB_WHH@Z */
11777 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WHH@Z */
11778 DEFINE_THISCALL_WRAPPER(basic_fstream_char_open_wchar
, 16)
11779 void __thiscall
basic_fstream_char_open_wchar(basic_fstream_char
*this,
11780 const wchar_t *name
, int mode
, int prot
)
11782 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
11784 if(!basic_filebuf_char_open_wchar(&this->filebuf
, name
, mode
, prot
)) {
11785 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
11786 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11790 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPBGI@Z */
11791 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGI@Z */
11792 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPB_WI@Z */
11793 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WI@Z */
11794 DEFINE_THISCALL_WRAPPER(basic_fstream_char_open_wchar_old
, 12)
11795 void __thiscall
basic_fstream_char_open_wchar_old(basic_fstream_char
*this,
11796 const wchar_t *name
, unsigned int mode
)
11798 basic_fstream_char_open_wchar(this, name
, mode
, _SH_DENYNO
);
11801 /* ?rdbuf@?$basic_fstream@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
11802 /* ?rdbuf@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
11803 DEFINE_THISCALL_WRAPPER(basic_fstream_char_rdbuf
, 4)
11804 basic_filebuf_char
* __thiscall
basic_fstream_char_rdbuf(const basic_fstream_char
*this)
11806 TRACE("(%p)\n", this);
11807 return (basic_filebuf_char
*)&this->filebuf
;
11810 static inline basic_ios_wchar
* basic_fstream_wchar_to_basic_ios(basic_fstream_wchar
*ptr
)
11812 return (basic_ios_wchar
*)((char*)ptr
+basic_fstream_wchar_vbtable1
[1]);
11815 static inline basic_fstream_wchar
* basic_fstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
11817 return (basic_fstream_wchar
*)((char*)ptr
-basic_fstream_wchar_vbtable1
[1]);
11820 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@XZ */
11821 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@XZ */
11822 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_ctor
, 8)
11823 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_ctor(basic_fstream_wchar
*this, MSVCP_bool virt_init
)
11825 basic_ios_wchar
*basic_ios
;
11827 TRACE("(%p %d)\n", this, virt_init
);
11830 this->base
.base1
.vbtable
= basic_fstream_wchar_vbtable1
;
11831 this->base
.base2
.vbtable
= basic_fstream_wchar_vbtable2
;
11832 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
11833 basic_ios_wchar_ctor(basic_ios
);
11835 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
11838 basic_filebuf_wchar_ctor(&this->filebuf
);
11839 basic_iostream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
);
11840 basic_ios
->base
.vtable
= &MSVCP_basic_fstream_wchar_vtable
;
11844 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@XZ */
11845 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@XZ */
11846 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor
, 8)
11847 basic_fstream_wchar
* __thiscall
basic_fstream_short_ctor(basic_fstream_wchar
*this, MSVCP_bool virt_init
)
11849 basic_fstream_wchar_ctor(this, virt_init
);
11850 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_fstream_short_vtable
;
11854 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
11855 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11856 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_ctor_file
, 12)
11857 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_ctor_file(basic_fstream_wchar
*this,
11858 FILE *file
, MSVCP_bool virt_init
)
11860 basic_ios_wchar
*basic_ios
;
11862 TRACE("(%p %p %d)\n", this, file
, virt_init
);
11865 this->base
.base1
.vbtable
= basic_fstream_wchar_vbtable1
;
11866 this->base
.base2
.vbtable
= basic_fstream_wchar_vbtable2
;
11867 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
11868 basic_ios_wchar_ctor(basic_ios
);
11870 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
11873 basic_filebuf_wchar_ctor_file(&this->filebuf
, file
);
11874 basic_iostream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
);
11875 basic_ios
->base
.vtable
= &MSVCP_basic_fstream_wchar_vtable
;
11879 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
11880 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11881 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor_file
, 12)
11882 basic_fstream_wchar
* __thiscall
basic_fstream_short_ctor_file(basic_fstream_wchar
*this,
11883 FILE *file
, MSVCP_bool virt_init
)
11885 basic_fstream_wchar_ctor_file(this, file
, virt_init
);
11886 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_fstream_short_vtable
;
11890 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PB_WHH@Z */
11891 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEB_WHH@Z */
11892 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_ctor_name
, 20)
11893 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_ctor_name(basic_fstream_wchar
*this,
11894 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11896 TRACE("(%p %s %d %d %d)\n", this, name
, mode
, prot
, virt_init
);
11898 basic_fstream_wchar_ctor(this, virt_init
);
11900 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
, prot
)) {
11901 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
11902 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11907 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@PBGHH@Z */
11908 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@PEBGHH@Z */
11909 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor_name
, 20)
11910 basic_fstream_wchar
* __thiscall
basic_fstream_short_ctor_name(basic_fstream_wchar
*this,
11911 const char *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11913 basic_fstream_wchar_ctor_name(this, name
, mode
, prot
, virt_init
);
11914 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_fstream_short_vtable
;
11918 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PBDH@Z */
11919 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_ctor_name_noprot
, 16)
11920 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_ctor_name_noprot(basic_fstream_wchar
*this,
11921 const char *name
, int mode
, MSVCP_bool virt_init
)
11923 return basic_fstream_wchar_ctor_name(this, name
, mode
, _SH_DENYNO
, virt_init
);
11926 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@PBDH@Z */
11927 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@PEBDH@Z */
11928 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor_name_noprot
, 16)
11929 basic_fstream_wchar
* __thiscall
basic_fstream_short_ctor_name_noprot(basic_fstream_wchar
*this,
11930 const char *name
, int mode
, MSVCP_bool virt_init
)
11932 return basic_fstream_short_ctor_name(this, name
, mode
, _SH_DENYNO
, virt_init
);
11935 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PBGHH@Z */
11936 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBGHH@Z */
11937 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PB_WHH@Z */
11938 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEB_WHH@Z */
11939 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_ctor_name_wchar
, 20)
11940 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_ctor_name_wchar(basic_fstream_wchar
*this,
11941 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11943 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name
), mode
, prot
, virt_init
);
11945 basic_fstream_wchar_ctor(this, virt_init
);
11947 if(!basic_filebuf_wchar_open_wchar(&this->filebuf
, name
, mode
, prot
)) {
11948 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
11949 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11954 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@PBGHH@Z */
11955 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@PEBGHH@Z */
11956 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@PB_WHH@Z */
11957 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@PEB_WHH@Z */
11958 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor_name_wchar
, 20)
11959 basic_fstream_wchar
* __thiscall
basic_fstream_short_ctor_name_wchar(basic_fstream_wchar
*this,
11960 const wchar_t *name
, int mode
, int prot
, MSVCP_bool virt_init
)
11962 basic_fstream_wchar_ctor_name_wchar(this, name
, mode
, prot
, virt_init
);
11963 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_fstream_short_vtable
;
11967 /* ??1?$basic_fstream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
11968 /* ??1?$basic_fstream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
11969 /* ??1?$basic_fstream@GU?$char_traits@G@std@@@std@@UAE@XZ */
11970 /* ??1?$basic_fstream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
11971 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_dtor
, 4)
11972 void __thiscall
basic_fstream_wchar_dtor(basic_ios_wchar
*base
)
11974 basic_fstream_wchar
*this = basic_fstream_wchar_from_basic_ios(base
);
11976 TRACE("(%p)\n", this);
11978 basic_iostream_wchar_dtor(basic_iostream_wchar_to_basic_ios(&this->base
));
11979 basic_filebuf_wchar_dtor(&this->filebuf
);
11982 /* ??_D?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
11983 /* ??_D?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
11984 /* ??_D?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
11985 /* ??_D?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
11986 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_vbase_dtor
, 4)
11987 void __thiscall
basic_fstream_wchar_vbase_dtor(basic_fstream_wchar
*this)
11989 TRACE("(%p)\n", this);
11991 basic_fstream_wchar_dtor(basic_fstream_wchar_to_basic_ios(this));
11992 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(&this->base
.base1
));
11995 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_vector_dtor
, 8)
11996 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
11998 basic_fstream_wchar
*this = basic_fstream_wchar_from_basic_ios(base
);
12000 TRACE("(%p %x)\n", this, flags
);
12003 /* we have an array, with the number of elements stored before the first object */
12004 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
12006 for(i
=*ptr
-1; i
>=0; i
--)
12007 basic_fstream_wchar_vbase_dtor(this+i
);
12008 MSVCRT_operator_delete(ptr
);
12010 basic_fstream_wchar_vbase_dtor(this);
12012 MSVCRT_operator_delete(this);
12018 /* ?close@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
12019 /* ?close@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
12020 /* ?close@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
12021 /* ?close@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
12022 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_close
, 4)
12023 void __thiscall
basic_fstream_wchar_close(basic_fstream_wchar
*this)
12025 TRACE("(%p)\n", this);
12027 if(!basic_filebuf_wchar_close(&this->filebuf
)) {
12028 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12029 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12033 /* ?is_open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
12034 /* ?is_open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
12035 /* ?is_open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QBE_NXZ */
12036 /* ?is_open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
12037 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_is_open
, 4)
12038 MSVCP_bool __thiscall
basic_fstream_wchar_is_open(const basic_fstream_wchar
*this)
12040 TRACE("(%p)\n", this);
12041 return basic_filebuf_wchar_is_open(&this->filebuf
);
12044 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDHH@Z */
12045 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDHH@Z */
12046 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPBDHH@Z */
12047 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDHH@Z */
12048 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_open
, 16)
12049 void __thiscall
basic_fstream_wchar_open(basic_fstream_wchar
*this,
12050 const char *name
, int mode
, int prot
)
12052 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
12054 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
, prot
)) {
12055 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12056 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12060 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDI@Z */
12061 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDI@Z */
12062 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPBDI@Z */
12063 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDI@Z */
12064 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_open_old
, 12)
12065 void __thiscall
basic_fstream_wchar_open_old(basic_fstream_wchar
*this,
12066 const char *name
, unsigned int mode
)
12068 basic_fstream_wchar_open(this, name
, mode
, _SH_DENYNO
);
12071 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGHH@Z */
12072 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGHH@Z */
12073 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WHH@Z */
12074 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WHH@Z */
12075 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPBGHH@Z */
12076 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGHH@Z */
12077 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPB_WHH@Z */
12078 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WHH@Z */
12079 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_open_wchar
, 16)
12080 void __thiscall
basic_fstream_wchar_open_wchar(basic_fstream_wchar
*this,
12081 const wchar_t *name
, int mode
, int prot
)
12083 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
12085 if(!basic_filebuf_wchar_open_wchar(&this->filebuf
, name
, mode
, prot
)) {
12086 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12087 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12091 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGI@Z */
12092 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGI@Z */
12093 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WI@Z */
12094 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WI@Z */
12095 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPBGI@Z */
12096 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGI@Z */
12097 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPB_WI@Z */
12098 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WI@Z */
12099 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_open_wchar_old
, 12)
12100 void __thiscall
basic_fstream_wchar_open_wchar_old(basic_fstream_wchar
*this,
12101 const wchar_t *name
, unsigned int mode
)
12103 basic_fstream_wchar_open_wchar(this, name
, mode
, _SH_DENYNO
);
12106 /* ?rdbuf@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
12107 /* ?rdbuf@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
12108 /* ?rdbuf@?$basic_fstream@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
12109 /* ?rdbuf@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
12110 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_rdbuf
, 4)
12111 basic_filebuf_wchar
* __thiscall
basic_fstream_wchar_rdbuf(const basic_fstream_wchar
*this)
12113 TRACE("(%p)\n", this);
12114 return (basic_filebuf_wchar
*)&this->filebuf
;
12117 static inline basic_ios_char
* basic_ostringstream_char_to_basic_ios(basic_ostringstream_char
*ptr
)
12119 return (basic_ios_char
*)((char*)ptr
+basic_ostringstream_char_vbtable
[1]);
12122 static inline basic_ostringstream_char
* basic_ostringstream_char_from_basic_ios(basic_ios_char
*ptr
)
12124 return (basic_ostringstream_char
*)((char*)ptr
-basic_ostringstream_char_vbtable
[1]);
12127 /* ??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 */
12128 /* ??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 */
12129 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_ctor_str
, 16)
12130 basic_ostringstream_char
* __thiscall
basic_ostringstream_char_ctor_str(basic_ostringstream_char
*this,
12131 const basic_string_char
*str
, int mode
, MSVCP_bool virt_init
)
12133 basic_ios_char
*basic_ios
;
12135 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
12138 this->base
.vbtable
= basic_ostringstream_char_vbtable
;
12139 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
12140 basic_ios_char_ctor(basic_ios
);
12142 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
12145 basic_stringbuf_char_ctor_str(&this->strbuf
, str
, mode
|OPENMODE_out
);
12146 basic_ostream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
12147 basic_ios
->base
.vtable
= &MSVCP_basic_ostringstream_char_vtable
;
12151 /* ??0?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
12152 /* ??0?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
12153 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_ctor_mode
, 12)
12154 basic_ostringstream_char
* __thiscall
basic_ostringstream_char_ctor_mode(
12155 basic_ostringstream_char
*this, int mode
, MSVCP_bool virt_init
)
12157 basic_ios_char
*basic_ios
;
12159 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
12162 this->base
.vbtable
= basic_ostringstream_char_vbtable
;
12163 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
12164 basic_ios_char_ctor(basic_ios
);
12166 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
12169 basic_stringbuf_char_ctor_mode(&this->strbuf
, mode
|OPENMODE_out
);
12170 basic_ostream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
12171 basic_ios
->base
.vtable
= &MSVCP_basic_ostringstream_char_vtable
;
12175 /* ??_F?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
12176 /* ??_F?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
12177 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_ctor
, 4)
12178 basic_ostringstream_char
* __thiscall
basic_ostringstream_char_ctor(
12179 basic_ostringstream_char
*this)
12181 return basic_ostringstream_char_ctor_mode(this, 0, TRUE
);
12184 /* ??1?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
12185 /* ??1?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
12186 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_dtor
, 4)
12187 void __thiscall
basic_ostringstream_char_dtor(basic_ios_char
*base
)
12189 basic_ostringstream_char
*this = basic_ostringstream_char_from_basic_ios(base
);
12191 TRACE("(%p)\n", this);
12193 basic_stringbuf_char_dtor(&this->strbuf
);
12194 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&this->base
));
12197 /* ??_D?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
12198 /* ??_D?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
12199 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_vbase_dtor
, 4)
12200 void __thiscall
basic_ostringstream_char_vbase_dtor(basic_ostringstream_char
*this)
12202 TRACE("(%p)\n", this);
12204 basic_ostringstream_char_dtor(basic_ostringstream_char_to_basic_ios(this));
12205 basic_ios_char_dtor(basic_ostream_char_get_basic_ios(&this->base
));
12208 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_vector_dtor
, 8)
12209 basic_ostringstream_char
* __thiscall
basic_ostringstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
12211 basic_ostringstream_char
*this = basic_ostringstream_char_from_basic_ios(base
);
12213 TRACE("(%p %x)\n", this, flags
);
12216 /* we have an array, with the number of elements stored before the first object */
12217 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
12219 for(i
=*ptr
-1; i
>=0; i
--)
12220 basic_ostringstream_char_vbase_dtor(this+i
);
12221 MSVCRT_operator_delete(ptr
);
12223 basic_ostringstream_char_vbase_dtor(this);
12225 MSVCRT_operator_delete(this);
12231 /* ?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 */
12232 /* ?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 */
12233 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_rdbuf
, 4)
12234 basic_stringbuf_char
* __thiscall
basic_ostringstream_char_rdbuf(const basic_ostringstream_char
*this)
12236 TRACE("(%p)\n", this);
12237 return (basic_stringbuf_char
*)&this->strbuf
;
12240 /* ?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 */
12241 /* ?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 */
12242 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_str_set
, 8)
12243 void __thiscall
basic_ostringstream_char_str_set(basic_ostringstream_char
*this, const basic_string_char
*str
)
12245 TRACE("(%p %p)\n", this, str
);
12246 basic_stringbuf_char_str_set(&this->strbuf
, str
);
12249 /* ?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 */
12250 /* ?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 */
12251 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_str_get
, 8)
12252 basic_string_char
* __thiscall
basic_ostringstream_char_str_get(const basic_ostringstream_char
*this, basic_string_char
*ret
)
12254 TRACE("(%p %p)\n", this, ret
);
12255 return basic_stringbuf_char_str_get(&this->strbuf
, ret
);
12258 static inline basic_ios_wchar
* basic_ostringstream_wchar_to_basic_ios(basic_ostringstream_wchar
*ptr
)
12260 return (basic_ios_wchar
*)((char*)ptr
+basic_ostringstream_wchar_vbtable
[1]);
12263 static inline basic_ostringstream_wchar
* basic_ostringstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
12265 return (basic_ostringstream_wchar
*)((char*)ptr
-basic_ostringstream_wchar_vbtable
[1]);
12268 /* ??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 */
12269 /* ??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 */
12270 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_ctor_str
, 16)
12271 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_wchar_ctor_str(basic_ostringstream_wchar
*this,
12272 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
12274 basic_ios_wchar
*basic_ios
;
12276 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
12279 this->base
.vbtable
= basic_ostringstream_wchar_vbtable
;
12280 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
12281 basic_ios_wchar_ctor(basic_ios
);
12283 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
12286 basic_stringbuf_wchar_ctor_str(&this->strbuf
, str
, mode
|OPENMODE_out
);
12287 basic_ostream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
12288 basic_ios
->base
.vtable
= &MSVCP_basic_ostringstream_wchar_vtable
;
12292 /* ??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 */
12293 /* ??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 */
12294 DEFINE_THISCALL_WRAPPER(basic_ostringstream_short_ctor_str
, 16)
12295 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_short_ctor_str(basic_ostringstream_wchar
*this,
12296 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
12298 basic_ostringstream_wchar_ctor_str(this, str
, mode
, virt_init
);
12299 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ostringstream_short_vtable
;
12303 /* ??0?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
12304 /* ??0?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
12305 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_ctor_mode
, 12)
12306 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_wchar_ctor_mode(
12307 basic_ostringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
12309 basic_ios_wchar
*basic_ios
;
12311 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
12314 this->base
.vbtable
= basic_ostringstream_wchar_vbtable
;
12315 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
12316 basic_ios_wchar_ctor(basic_ios
);
12318 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
12321 basic_stringbuf_wchar_ctor_mode(&this->strbuf
, mode
|OPENMODE_out
);
12322 basic_ostream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
12323 basic_ios
->base
.vtable
= &MSVCP_basic_ostringstream_wchar_vtable
;
12327 /* ??0?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
12328 /* ??0?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
12329 DEFINE_THISCALL_WRAPPER(basic_ostringstream_short_ctor_mode
, 12)
12330 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_short_ctor_mode(
12331 basic_ostringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
12333 basic_ostringstream_wchar_ctor_mode(this, mode
, virt_init
);
12334 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ostringstream_short_vtable
;
12338 /* ??_F?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
12339 /* ??_F?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
12340 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_ctor
, 4)
12341 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_wchar_ctor(
12342 basic_ostringstream_wchar
*this)
12344 return basic_ostringstream_wchar_ctor_mode(this, 0, TRUE
);
12347 /* ??_F?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
12348 /* ??_F?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
12349 DEFINE_THISCALL_WRAPPER(basic_ostringstream_short_ctor
, 4)
12350 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_short_ctor(
12351 basic_ostringstream_wchar
*this)
12353 return basic_ostringstream_short_ctor_mode(this, 0, TRUE
);
12356 /* ??1?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
12357 /* ??1?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
12358 /* ??1?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
12359 /* ??1?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
12360 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_dtor
, 4)
12361 void __thiscall
basic_ostringstream_wchar_dtor(basic_ios_wchar
*base
)
12363 basic_ostringstream_wchar
*this = basic_ostringstream_wchar_from_basic_ios(base
);
12365 TRACE("(%p)\n", this);
12367 basic_stringbuf_wchar_dtor(&this->strbuf
);
12368 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(&this->base
));
12371 /* ??_D?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
12372 /* ??_D?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
12373 /* ??_D?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
12374 /* ??_D?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
12375 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_vbase_dtor
, 4)
12376 void __thiscall
basic_ostringstream_wchar_vbase_dtor(basic_ostringstream_wchar
*this)
12378 TRACE("(%p)\n", this);
12380 basic_ostringstream_wchar_dtor(basic_ostringstream_wchar_to_basic_ios(this));
12381 basic_ios_wchar_dtor(basic_ostream_wchar_get_basic_ios(&this->base
));
12384 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_vector_dtor
, 8)
12385 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
12387 basic_ostringstream_wchar
*this = basic_ostringstream_wchar_from_basic_ios(base
);
12389 TRACE("(%p %x)\n", this, flags
);
12392 /* we have an array, with the number of elements stored before the first object */
12393 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
12395 for(i
=*ptr
-1; i
>=0; i
--)
12396 basic_ostringstream_wchar_vbase_dtor(this+i
);
12397 MSVCRT_operator_delete(ptr
);
12399 basic_ostringstream_wchar_vbase_dtor(this);
12401 MSVCRT_operator_delete(this);
12407 /* ?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 */
12408 /* ?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 */
12409 /* ?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 */
12410 /* ?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 */
12411 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_rdbuf
, 4)
12412 basic_stringbuf_wchar
* __thiscall
basic_ostringstream_wchar_rdbuf(const basic_ostringstream_wchar
*this)
12414 TRACE("(%p)\n", this);
12415 return (basic_stringbuf_wchar
*)&this->strbuf
;
12418 /* ?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 */
12419 /* ?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 */
12420 /* ?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 */
12421 /* ?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 */
12422 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_str_set
, 8)
12423 void __thiscall
basic_ostringstream_wchar_str_set(basic_ostringstream_wchar
*this, const basic_string_wchar
*str
)
12425 TRACE("(%p %p)\n", this, str
);
12426 basic_stringbuf_wchar_str_set(&this->strbuf
, str
);
12429 /* ?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 */
12430 /* ?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 */
12431 /* ?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 */
12432 /* ?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 */
12433 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_str_get
, 8)
12434 basic_string_wchar
* __thiscall
basic_ostringstream_wchar_str_get(const basic_ostringstream_wchar
*this, basic_string_wchar
*ret
)
12436 TRACE("(%p %p)\n", this, ret
);
12437 return basic_stringbuf_wchar_str_get(&this->strbuf
, ret
);
12440 static inline basic_ios_char
* basic_istringstream_char_to_basic_ios(basic_istringstream_char
*ptr
)
12442 return (basic_ios_char
*)((char*)ptr
+basic_istringstream_char_vbtable
[1]);
12445 static inline basic_istringstream_char
* basic_istringstream_char_from_basic_ios(basic_ios_char
*ptr
)
12447 return (basic_istringstream_char
*)((char*)ptr
-basic_istringstream_char_vbtable
[1]);
12450 /* ??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 */
12451 /* ??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 */
12452 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_ctor_str
, 16)
12453 basic_istringstream_char
* __thiscall
basic_istringstream_char_ctor_str(basic_istringstream_char
*this,
12454 const basic_string_char
*str
, int mode
, MSVCP_bool virt_init
)
12456 basic_ios_char
*basic_ios
;
12458 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
12461 this->base
.vbtable
= basic_istringstream_char_vbtable
;
12462 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
12463 basic_ios_char_ctor(basic_ios
);
12465 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
12468 basic_stringbuf_char_ctor_str(&this->strbuf
, str
, mode
|OPENMODE_in
);
12469 basic_istream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
12470 basic_ios
->base
.vtable
= &MSVCP_basic_istringstream_char_vtable
;
12474 /* ??0?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
12475 /* ??0?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
12476 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_ctor_mode
, 12)
12477 basic_istringstream_char
* __thiscall
basic_istringstream_char_ctor_mode(
12478 basic_istringstream_char
*this, int mode
, MSVCP_bool virt_init
)
12480 basic_ios_char
*basic_ios
;
12482 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
12485 this->base
.vbtable
= basic_istringstream_char_vbtable
;
12486 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
12487 basic_ios_char_ctor(basic_ios
);
12489 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
12492 basic_stringbuf_char_ctor_mode(&this->strbuf
, mode
|OPENMODE_in
);
12493 basic_istream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
12494 basic_ios
->base
.vtable
= &MSVCP_basic_istringstream_char_vtable
;
12498 /* ??_F?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
12499 /* ??_F?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
12500 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_ctor
, 4)
12501 basic_istringstream_char
* __thiscall
basic_istringstream_char_ctor(
12502 basic_istringstream_char
*this)
12504 return basic_istringstream_char_ctor_mode(this, 0, TRUE
);
12507 /* ??1?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
12508 /* ??1?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
12509 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_dtor
, 4)
12510 void __thiscall
basic_istringstream_char_dtor(basic_ios_char
*base
)
12512 basic_istringstream_char
*this = basic_istringstream_char_from_basic_ios(base
);
12514 TRACE("(%p)\n", this);
12516 basic_stringbuf_char_dtor(&this->strbuf
);
12517 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&this->base
));
12520 /* ??_D?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
12521 /* ??_D?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
12522 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_vbase_dtor
, 4)
12523 void __thiscall
basic_istringstream_char_vbase_dtor(basic_istringstream_char
*this)
12525 TRACE("(%p)\n", this);
12527 basic_istringstream_char_dtor(basic_istringstream_char_to_basic_ios(this));
12528 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base
));
12531 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_vector_dtor
, 8)
12532 basic_istringstream_char
* __thiscall
basic_istringstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
12534 basic_istringstream_char
*this = basic_istringstream_char_from_basic_ios(base
);
12536 TRACE("(%p %x)\n", this, flags
);
12539 /* we have an array, with the number of elements stored before the first object */
12540 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
12542 for(i
=*ptr
-1; i
>=0; i
--)
12543 basic_istringstream_char_vbase_dtor(this+i
);
12544 MSVCRT_operator_delete(ptr
);
12546 basic_istringstream_char_vbase_dtor(this);
12548 MSVCRT_operator_delete(this);
12554 /* ?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 */
12555 /* ?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 */
12556 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_rdbuf
, 4)
12557 basic_stringbuf_char
* __thiscall
basic_istringstream_char_rdbuf(const basic_istringstream_char
*this)
12559 TRACE("(%p)\n", this);
12560 return (basic_stringbuf_char
*)&this->strbuf
;
12563 /* ?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 */
12564 /* ?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 */
12565 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_str_set
, 8)
12566 void __thiscall
basic_istringstream_char_str_set(basic_istringstream_char
*this, const basic_string_char
*str
)
12568 TRACE("(%p %p)\n", this, str
);
12569 basic_stringbuf_char_str_set(&this->strbuf
, str
);
12572 /* ?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 */
12573 /* ?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 */
12574 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_str_get
, 8)
12575 basic_string_char
* __thiscall
basic_istringstream_char_str_get(const basic_istringstream_char
*this, basic_string_char
*ret
)
12577 TRACE("(%p %p)\n", this, ret
);
12578 return basic_stringbuf_char_str_get(&this->strbuf
, ret
);
12581 static inline basic_ios_wchar
* basic_istringstream_wchar_to_basic_ios(basic_istringstream_wchar
*ptr
)
12583 return (basic_ios_wchar
*)((char*)ptr
+basic_istringstream_wchar_vbtable
[1]);
12586 static inline basic_istringstream_wchar
* basic_istringstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
12588 return (basic_istringstream_wchar
*)((char*)ptr
-basic_istringstream_wchar_vbtable
[1]);
12591 /* ??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 */
12592 /* ??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 */
12593 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_ctor_str
, 16)
12594 basic_istringstream_wchar
* __thiscall
basic_istringstream_wchar_ctor_str(basic_istringstream_wchar
*this,
12595 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
12597 basic_ios_wchar
*basic_ios
;
12599 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
12602 this->base
.vbtable
= basic_istringstream_wchar_vbtable
;
12603 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12604 basic_ios_wchar_ctor(basic_ios
);
12606 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12609 basic_stringbuf_wchar_ctor_str(&this->strbuf
, str
, mode
|OPENMODE_in
);
12610 basic_istream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
12611 basic_ios
->base
.vtable
= &MSVCP_basic_istringstream_wchar_vtable
;
12615 /* ??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 */
12616 /* ??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 */
12617 DEFINE_THISCALL_WRAPPER(basic_istringstream_short_ctor_str
, 16)
12618 basic_istringstream_wchar
* __thiscall
basic_istringstream_short_ctor_str(basic_istringstream_wchar
*this,
12619 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
12621 basic_istringstream_wchar_ctor_str(this, str
, mode
, virt_init
);
12622 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_istringstream_short_vtable
;
12626 /* ??0?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
12627 /* ??0?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
12628 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_ctor_mode
, 12)
12629 basic_istringstream_wchar
* __thiscall
basic_istringstream_wchar_ctor_mode(
12630 basic_istringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
12632 basic_ios_wchar
*basic_ios
;
12634 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
12637 this->base
.vbtable
= basic_istringstream_wchar_vbtable
;
12638 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12639 basic_ios_wchar_ctor(basic_ios
);
12641 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12644 basic_stringbuf_wchar_ctor_mode(&this->strbuf
, mode
|OPENMODE_in
);
12645 basic_istream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
12646 basic_ios
->base
.vtable
= &MSVCP_basic_istringstream_wchar_vtable
;
12650 /* ??0?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
12651 /* ??0?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
12652 DEFINE_THISCALL_WRAPPER(basic_istringstream_short_ctor_mode
, 12)
12653 basic_istringstream_wchar
* __thiscall
basic_istringstream_short_ctor_mode(
12654 basic_istringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
12656 basic_istringstream_wchar_ctor_mode(this, mode
, virt_init
);
12657 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_istringstream_short_vtable
;
12661 /* ??_F?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
12662 /* ??_F?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
12663 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_ctor
, 4)
12664 basic_istringstream_wchar
* __thiscall
basic_istringstream_wchar_ctor(
12665 basic_istringstream_wchar
*this)
12667 return basic_istringstream_wchar_ctor_mode(this, 0, TRUE
);
12670 /* ??_F?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
12671 /* ??_F?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
12672 DEFINE_THISCALL_WRAPPER(basic_istringstream_short_ctor
, 4)
12673 basic_istringstream_wchar
* __thiscall
basic_istringstream_short_ctor(
12674 basic_istringstream_wchar
*this)
12676 return basic_istringstream_short_ctor_mode(this, 0, TRUE
);
12679 /* ??1?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
12680 /* ??1?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
12681 /* ??1?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
12682 /* ??1?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
12683 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_dtor
, 4)
12684 void __thiscall
basic_istringstream_wchar_dtor(basic_ios_wchar
*base
)
12686 basic_istringstream_wchar
*this = basic_istringstream_wchar_from_basic_ios(base
);
12688 TRACE("(%p)\n", this);
12690 basic_stringbuf_wchar_dtor(&this->strbuf
);
12691 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(&this->base
));
12694 /* ??_D?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
12695 /* ??_D?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
12696 /* ??_D?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
12697 /* ??_D?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
12698 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_vbase_dtor
, 4)
12699 void __thiscall
basic_istringstream_wchar_vbase_dtor(basic_istringstream_wchar
*this)
12701 TRACE("(%p)\n", this);
12703 basic_istringstream_wchar_dtor(basic_istringstream_wchar_to_basic_ios(this));
12704 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(&this->base
));
12707 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_vector_dtor
, 8)
12708 basic_istringstream_wchar
* __thiscall
basic_istringstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
12710 basic_istringstream_wchar
*this = basic_istringstream_wchar_from_basic_ios(base
);
12712 TRACE("(%p %x)\n", this, flags
);
12715 /* we have an array, with the number of elements stored before the first object */
12716 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
12718 for(i
=*ptr
-1; i
>=0; i
--)
12719 basic_istringstream_wchar_vbase_dtor(this+i
);
12720 MSVCRT_operator_delete(ptr
);
12722 basic_istringstream_wchar_vbase_dtor(this);
12724 MSVCRT_operator_delete(this);
12730 /* ?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 */
12731 /* ?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 */
12732 /* ?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 */
12733 /* ?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 */
12734 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_rdbuf
, 4)
12735 basic_stringbuf_wchar
* __thiscall
basic_istringstream_wchar_rdbuf(const basic_istringstream_wchar
*this)
12737 TRACE("(%p)\n", this);
12738 return (basic_stringbuf_wchar
*)&this->strbuf
;
12741 /* ?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 */
12742 /* ?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 */
12743 /* ?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 */
12744 /* ?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 */
12745 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_str_set
, 8)
12746 void __thiscall
basic_istringstream_wchar_str_set(basic_istringstream_wchar
*this, const basic_string_wchar
*str
)
12748 TRACE("(%p %p)\n", this, str
);
12749 basic_stringbuf_wchar_str_set(&this->strbuf
, str
);
12752 /* ?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 */
12753 /* ?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 */
12754 /* ?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 */
12755 /* ?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 */
12756 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_str_get
, 8)
12757 basic_string_wchar
* __thiscall
basic_istringstream_wchar_str_get(const basic_istringstream_wchar
*this, basic_string_wchar
*ret
)
12759 TRACE("(%p %p)\n", this, ret
);
12760 return basic_stringbuf_wchar_str_get(&this->strbuf
, ret
);
12763 static inline basic_ios_char
* basic_stringstream_char_to_basic_ios(basic_stringstream_char
*ptr
)
12765 return (basic_ios_char
*)((char*)ptr
+basic_stringstream_char_vbtable1
[1]);
12768 static inline basic_stringstream_char
* basic_stringstream_char_from_basic_ios(basic_ios_char
*ptr
)
12770 return (basic_stringstream_char
*)((char*)ptr
-basic_stringstream_char_vbtable1
[1]);
12773 /* ??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 */
12774 /* ??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 */
12775 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_ctor_str
, 16)
12776 basic_stringstream_char
* __thiscall
basic_stringstream_char_ctor_str(basic_stringstream_char
*this,
12777 const basic_string_char
*str
, int mode
, MSVCP_bool virt_init
)
12779 basic_ios_char
*basic_ios
;
12781 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
12784 this->base
.base1
.vbtable
= basic_stringstream_char_vbtable1
;
12785 this->base
.base2
.vbtable
= basic_stringstream_char_vbtable2
;
12786 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12787 basic_ios_char_ctor(basic_ios
);
12789 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12792 basic_stringbuf_char_ctor_str(&this->strbuf
, str
, mode
);
12793 basic_iostream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
);
12794 basic_ios
->base
.vtable
= &MSVCP_basic_stringstream_char_vtable
;
12798 /* ??0?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
12799 /* ??0?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
12800 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_ctor_mode
, 12)
12801 basic_stringstream_char
* __thiscall
basic_stringstream_char_ctor_mode(
12802 basic_stringstream_char
*this, int mode
, MSVCP_bool virt_init
)
12804 basic_ios_char
*basic_ios
;
12806 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
12809 this->base
.base1
.vbtable
= basic_stringstream_char_vbtable1
;
12810 this->base
.base2
.vbtable
= basic_stringstream_char_vbtable2
;
12811 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12812 basic_ios_char_ctor(basic_ios
);
12814 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12817 basic_stringbuf_char_ctor_mode(&this->strbuf
, mode
);
12818 basic_iostream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
);
12819 basic_ios
->base
.vtable
= &MSVCP_basic_stringstream_char_vtable
;
12823 /* ??_F?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
12824 /* ??_F?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
12825 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_ctor
, 4)
12826 basic_stringstream_char
* __thiscall
basic_stringstream_char_ctor(
12827 basic_stringstream_char
*this)
12829 return basic_stringstream_char_ctor_mode(
12830 this, OPENMODE_out
|OPENMODE_in
, TRUE
);
12833 /* ??1?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
12834 /* ??1?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
12835 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_dtor
, 4)
12836 void __thiscall
basic_stringstream_char_dtor(basic_ios_char
*base
)
12838 basic_stringstream_char
*this = basic_stringstream_char_from_basic_ios(base
);
12840 TRACE("(%p)\n", this);
12842 basic_iostream_char_dtor(basic_iostream_char_to_basic_ios(&this->base
));
12843 basic_stringbuf_char_dtor(&this->strbuf
);
12846 /* ??_D?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
12847 /* ??_D?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
12848 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_vbase_dtor
, 4)
12849 void __thiscall
basic_stringstream_char_vbase_dtor(basic_stringstream_char
*this)
12851 TRACE("(%p)\n", this);
12853 basic_stringstream_char_dtor(basic_stringstream_char_to_basic_ios(this));
12854 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base
.base1
));
12857 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_vector_dtor
, 8)
12858 basic_stringstream_char
* __thiscall
basic_stringstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
12860 basic_stringstream_char
*this = basic_stringstream_char_from_basic_ios(base
);
12862 TRACE("(%p %x)\n", this, flags
);
12865 /* we have an array, with the number of elements stored before the first object */
12866 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
12868 for(i
=*ptr
-1; i
>=0; i
--)
12869 basic_stringstream_char_vbase_dtor(this+i
);
12870 MSVCRT_operator_delete(ptr
);
12872 basic_stringstream_char_vbase_dtor(this);
12874 MSVCRT_operator_delete(this);
12880 /* ?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 */
12881 /* ?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 */
12882 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_rdbuf
, 4)
12883 basic_stringbuf_char
* __thiscall
basic_stringstream_char_rdbuf(const basic_stringstream_char
*this)
12885 TRACE("(%p)\n", this);
12886 return (basic_stringbuf_char
*)&this->strbuf
;
12889 /* ?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 */
12890 /* ?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 */
12891 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_str_set
, 8)
12892 void __thiscall
basic_stringstream_char_str_set(basic_stringstream_char
*this, const basic_string_char
*str
)
12894 TRACE("(%p %p)\n", this, str
);
12895 basic_stringbuf_char_str_set(&this->strbuf
, str
);
12898 /* ?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 */
12899 /* ?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 */
12900 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_str_get
, 8)
12901 basic_string_char
* __thiscall
basic_stringstream_char_str_get(const basic_stringstream_char
*this, basic_string_char
*ret
)
12903 TRACE("(%p %p)\n", this, ret
);
12904 return basic_stringbuf_char_str_get(&this->strbuf
, ret
);
12907 static inline basic_ios_wchar
* basic_stringstream_wchar_to_basic_ios(basic_stringstream_wchar
*ptr
)
12909 return (basic_ios_wchar
*)((char*)ptr
+basic_stringstream_wchar_vbtable1
[1]);
12912 static inline basic_stringstream_wchar
* basic_stringstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
12914 return (basic_stringstream_wchar
*)((char*)ptr
-basic_stringstream_wchar_vbtable1
[1]);
12917 /* ??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 */
12918 /* ??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 */
12919 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_ctor_str
, 16)
12920 basic_stringstream_wchar
* __thiscall
basic_stringstream_wchar_ctor_str(basic_stringstream_wchar
*this,
12921 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
12923 basic_ios_wchar
*basic_ios
;
12925 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
12928 this->base
.base1
.vbtable
= basic_stringstream_wchar_vbtable1
;
12929 this->base
.base2
.vbtable
= basic_stringstream_wchar_vbtable2
;
12930 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12931 basic_ios_wchar_ctor(basic_ios
);
12933 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12936 basic_stringbuf_wchar_ctor_str(&this->strbuf
, str
, mode
);
12937 basic_iostream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
);
12938 basic_ios
->base
.vtable
= &MSVCP_basic_stringstream_wchar_vtable
;
12942 /* ??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 */
12943 /* ??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 */
12944 DEFINE_THISCALL_WRAPPER(basic_stringstream_short_ctor_str
, 16)
12945 basic_stringstream_wchar
* __thiscall
basic_stringstream_short_ctor_str(basic_stringstream_wchar
*this,
12946 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
12948 basic_stringstream_wchar_ctor_str(this, str
, mode
, virt_init
);
12949 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_stringstream_short_vtable
;
12953 /* ??0?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
12954 /* ??0?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
12955 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_ctor_mode
, 12)
12956 basic_stringstream_wchar
* __thiscall
basic_stringstream_wchar_ctor_mode(
12957 basic_stringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
12959 basic_ios_wchar
*basic_ios
;
12961 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
12964 this->base
.base1
.vbtable
= basic_stringstream_wchar_vbtable1
;
12965 this->base
.base2
.vbtable
= basic_stringstream_wchar_vbtable2
;
12966 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12967 basic_ios_wchar_ctor(basic_ios
);
12969 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12972 basic_stringbuf_wchar_ctor_mode(&this->strbuf
, mode
);
12973 basic_iostream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
);
12974 basic_ios
->base
.vtable
= &MSVCP_basic_stringstream_wchar_vtable
;
12978 /* ??0?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
12979 /* ??0?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
12980 DEFINE_THISCALL_WRAPPER(basic_stringstream_short_ctor_mode
, 12)
12981 basic_stringstream_wchar
* __thiscall
basic_stringstream_short_ctor_mode(
12982 basic_stringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
12984 basic_stringstream_wchar_ctor_mode(this, mode
, virt_init
);
12985 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_stringstream_short_vtable
;
12989 /* ??_F?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
12990 /* ??_F?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
12991 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_ctor
, 4)
12992 basic_stringstream_wchar
* __thiscall
basic_stringstream_wchar_ctor(
12993 basic_stringstream_wchar
*this)
12995 return basic_stringstream_wchar_ctor_mode(
12996 this, OPENMODE_out
|OPENMODE_in
, TRUE
);
12999 /* ??_F?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
13000 /* ??_F?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
13001 DEFINE_THISCALL_WRAPPER(basic_stringstream_short_ctor
, 4)
13002 basic_stringstream_wchar
* __thiscall
basic_stringstream_short_ctor(
13003 basic_stringstream_wchar
*this)
13005 return basic_stringstream_short_ctor_mode(
13006 this, OPENMODE_out
|OPENMODE_in
, TRUE
);
13009 /* ??1?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
13010 /* ??1?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
13011 /* ??1?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
13012 /* ??1?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
13013 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_dtor
, 4)
13014 void __thiscall
basic_stringstream_wchar_dtor(basic_ios_wchar
*base
)
13016 basic_stringstream_wchar
*this = basic_stringstream_wchar_from_basic_ios(base
);
13018 TRACE("(%p)\n", this);
13020 basic_iostream_wchar_dtor(basic_iostream_wchar_to_basic_ios(&this->base
));
13021 basic_stringbuf_wchar_dtor(&this->strbuf
);
13024 /* ??_D?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
13025 /* ??_D?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
13026 /* ??_D?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
13027 /* ??_D?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
13028 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_vbase_dtor
, 4)
13029 void __thiscall
basic_stringstream_wchar_vbase_dtor(basic_stringstream_wchar
*this)
13031 TRACE("(%p)\n", this);
13033 basic_stringstream_wchar_dtor(basic_stringstream_wchar_to_basic_ios(this));
13034 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(&this->base
.base1
));
13037 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_vector_dtor
, 8)
13038 basic_stringstream_wchar
* __thiscall
basic_stringstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
13040 basic_stringstream_wchar
*this = basic_stringstream_wchar_from_basic_ios(base
);
13042 TRACE("(%p %x)\n", this, flags
);
13045 /* we have an array, with the number of elements stored before the first object */
13046 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
13048 for(i
=*ptr
-1; i
>=0; i
--)
13049 basic_stringstream_wchar_vbase_dtor(this+i
);
13050 MSVCRT_operator_delete(ptr
);
13052 basic_stringstream_wchar_vbase_dtor(this);
13054 MSVCRT_operator_delete(this);
13060 /* ?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 */
13061 /* ?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 */
13062 /* ?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 */
13063 /* ?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 */
13064 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_rdbuf
, 4)
13065 basic_stringbuf_wchar
* __thiscall
basic_stringstream_wchar_rdbuf(const basic_stringstream_wchar
*this)
13067 TRACE("(%p)\n", this);
13068 return (basic_stringbuf_wchar
*)&this->strbuf
;
13071 /* ?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 */
13072 /* ?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 */
13073 /* ?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 */
13074 /* ?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 */
13075 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_str_set
, 8)
13076 void __thiscall
basic_stringstream_wchar_str_set(basic_stringstream_wchar
*this, const basic_string_wchar
*str
)
13078 TRACE("(%p %p)\n", this, str
);
13079 basic_stringbuf_wchar_str_set(&this->strbuf
, str
);
13082 /* ?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 */
13083 /* ?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 */
13084 /* ?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 */
13085 /* ?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 */
13086 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_str_get
, 8)
13087 basic_string_wchar
* __thiscall
basic_stringstream_wchar_str_get(const basic_stringstream_wchar
*this, basic_string_wchar
*ret
)
13089 TRACE("(%p %p)\n", this, ret
);
13090 return basic_stringbuf_wchar_str_get(&this->strbuf
, ret
);
13093 /* ?_Init@strstreambuf@std@@IAEXHPAD0H@Z */
13094 /* ?_Init@strstreambuf@std@@IEAAX_JPEAD1H@Z */
13095 #if STREAMSIZE_BITS == 64
13096 DEFINE_THISCALL_WRAPPER(strstreambuf__Init
, 24)
13098 DEFINE_THISCALL_WRAPPER(strstreambuf__Init
, 20)
13100 void __thiscall
strstreambuf__Init(strstreambuf
*this, streamsize len
, char *g
, char *p
, int mode
)
13102 TRACE("(%p %s %p %p %d)\n", this, wine_dbgstr_longlong(len
), g
, p
, mode
);
13104 this->minsize
= 32;
13105 this->endsave
= NULL
;
13106 this->strmode
= mode
;
13107 this->palloc
= NULL
;
13108 this->pfree
= NULL
;
13111 this->strmode
|= STRSTATE_Dynamic
;
13112 if(len
> this->minsize
)
13113 this->minsize
= len
;
13114 this->seekhigh
= NULL
;
13123 this->seekhigh
= g
+len
;
13124 basic_streambuf_char_setg(&this->base
, g
, g
, p
? p
: this->seekhigh
);
13126 basic_streambuf_char_setp(&this->base
, p
, this->seekhigh
);
13129 /* ??0strstreambuf@std@@QAE@PACH0@Z */
13130 /* ??0strstreambuf@std@@QEAA@PEAC_J0@Z */
13131 /* ??0strstreambuf@std@@QAE@PADH0@Z */
13132 /* ??0strstreambuf@std@@QEAA@PEAD_J0@Z */
13133 /* ??0strstreambuf@std@@QAE@PAEH0@Z */
13134 /* ??0strstreambuf@std@@QEAA@PEAE_J0@Z */
13135 #if STREAMSIZE_BITS == 64
13136 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_get_put
, 20)
13138 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_get_put
, 16)
13140 strstreambuf
* __thiscall
strstreambuf_ctor_get_put(strstreambuf
*this, char *g
, streamsize len
, char *p
)
13142 TRACE("(%p %p %s %p)\n", this, g
, wine_dbgstr_longlong(len
), p
);
13144 basic_streambuf_char_ctor(&this->base
);
13145 this->base
.vtable
= &MSVCP_strstreambuf_vtable
;
13147 strstreambuf__Init(this, len
, g
, p
, 0);
13151 /* ??0strstreambuf@std@@QAE@H@Z */
13152 /* ??0strstreambuf@std@@QEAA@_J@Z */
13153 #if STREAMSIZE_BITS == 64
13154 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_len
, 12)
13156 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_len
, 8)
13158 strstreambuf
* __thiscall
strstreambuf_ctor_len(strstreambuf
*this, streamsize len
)
13160 return strstreambuf_ctor_get_put(this, NULL
, len
, NULL
);
13163 /* ??0strstreambuf@std@@QAE@P6APAXI@ZP6AXPAX@Z@Z */
13164 /* ??0strstreambuf@std@@QEAA@P6APEAX_K@ZP6AXPEAX@Z@Z */
13165 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_alloc
, 12)
13166 strstreambuf
* __thiscall
strstreambuf_ctor_alloc(strstreambuf
*this, void* (__cdecl
*palloc
)(MSVCP_size_t
), void (__cdecl
*pfree
)(void*))
13168 TRACE("(%p %p %p)\n", this, palloc
, pfree
);
13170 strstreambuf_ctor_get_put(this, NULL
, 0, NULL
);
13171 this->palloc
= palloc
;
13172 this->pfree
= pfree
;
13176 /* ??0strstreambuf@std@@QAE@PBCH@Z */
13177 /* ??0strstreambuf@std@@QEAA@PEBC_J@Z */
13178 /* ??0strstreambuf@std@@QAE@PBDH@Z */
13179 /* ??0strstreambuf@std@@QEAA@PEBD_J@Z */
13180 /* ??0strstreambuf@std@@QAE@PBEH@Z */
13181 /* ??0strstreambuf@std@@QEAA@PEBE_J@Z */
13182 #if STREAMSIZE_BITS == 64
13183 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_get
, 16)
13185 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_get
, 12)
13187 strstreambuf
* __thiscall
strstreambuf_ctor_get(strstreambuf
*this, const char *g
, streamsize len
)
13189 TRACE("(%p %p %s)\n", this, g
, wine_dbgstr_longlong(len
));
13191 strstreambuf_ctor_get_put(this, (char*)g
, len
, NULL
);
13192 this->strmode
|= STRSTATE_Constant
;
13196 /* ??_Fstrstreambuf@std@@QAEXXZ */
13197 /* ??_Fstrstreambuf@std@@QEAAXXZ */
13198 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor
, 4)
13199 strstreambuf
* __thiscall
strstreambuf_ctor(strstreambuf
*this)
13201 return strstreambuf_ctor_get_put(this, NULL
, 0, NULL
);
13204 /* ?_Tidy@strstreambuf@std@@IAEXXZ */
13205 /* ?_Tidy@strstreambuf@std@@IEAAXXZ */
13206 DEFINE_THISCALL_WRAPPER(strstreambuf__Tidy
, 4)
13207 void __thiscall
strstreambuf__Tidy(strstreambuf
*this)
13209 TRACE("(%p)\n", this);
13211 if((this->strmode
& STRSTATE_Allocated
) && !(this->strmode
& STRSTATE_Frozen
)) {
13213 this->pfree(basic_streambuf_char_eback(&this->base
));
13215 MSVCRT_operator_delete(basic_streambuf_char_eback(&this->base
));
13218 this->endsave
= NULL
;
13219 this->seekhigh
= NULL
;
13220 this->strmode
&= ~(STRSTATE_Allocated
| STRSTATE_Frozen
);
13221 basic_streambuf_char_setg(&this->base
, NULL
, NULL
, NULL
);
13222 basic_streambuf_char_setp(&this->base
, NULL
, NULL
);
13225 /* ??1strstreambuf@std@@UAE@XZ */
13226 /* ??1strstreambuf@std@@UEAA@XZ */
13227 DEFINE_THISCALL_WRAPPER(strstreambuf_dtor
, 4)
13228 void __thiscall
strstreambuf_dtor(strstreambuf
*this)
13230 TRACE("(%p)\n", this);
13232 strstreambuf__Tidy(this);
13233 basic_streambuf_char_dtor(&this->base
);
13236 DEFINE_THISCALL_WRAPPER(strstreambuf_vector_dtor
, 8)
13237 strstreambuf
* __thiscall
strstreambuf_vector_dtor(strstreambuf
*this, unsigned int flags
)
13239 TRACE("(%p %x)\n", this, flags
);
13241 /* we have an array, with the number of elements stored before the first object */
13242 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
13244 for(i
=*ptr
-1; i
>=0; i
--)
13245 strstreambuf_dtor(this+i
);
13246 MSVCRT_operator_delete(ptr
);
13248 strstreambuf_dtor(this);
13250 MSVCRT_operator_delete(this);
13256 /* ?freeze@strstreambuf@std@@QAEX_N@Z */
13257 /* ?freeze@strstreambuf@std@@QEAAX_N@Z */
13258 DEFINE_THISCALL_WRAPPER(strstreambuf_freeze
, 8)
13259 void __thiscall
strstreambuf_freeze(strstreambuf
*this, MSVCP_bool freeze
)
13261 TRACE("(%p %d)\n", this, freeze
);
13263 if(!freeze
== !(this->strmode
& STRSTATE_Frozen
))
13267 this->strmode
|= STRSTATE_Frozen
;
13268 this->endsave
= basic_streambuf_char_epptr(&this->base
);
13269 basic_streambuf_char_setp_next(&this->base
, basic_streambuf_char_pbase(&this->base
),
13270 basic_streambuf_char_pptr(&this->base
), basic_streambuf_char_eback(&this->base
));
13272 this->strmode
&= ~STRSTATE_Frozen
;
13273 basic_streambuf_char_setp_next(&this->base
, basic_streambuf_char_pbase(&this->base
),
13274 basic_streambuf_char_pptr(&this->base
), this->endsave
);
13278 /* ?str@strstreambuf@std@@QAEPADXZ */
13279 /* ?str@strstreambuf@std@@QEAAPEADXZ */
13280 DEFINE_THISCALL_WRAPPER(strstreambuf_str
, 4)
13281 char* __thiscall
strstreambuf_str(strstreambuf
*this)
13283 TRACE("(%p)\n", this);
13285 strstreambuf_freeze(this, TRUE
);
13286 return basic_streambuf_char_gptr(&this->base
);
13289 /* ?pcount@strstreambuf@std@@QBEHXZ */
13290 /* ?pcount@strstreambuf@std@@QEBA_JXZ */
13291 DEFINE_THISCALL_WRAPPER(strstreambuf_pcount
, 4)
13292 streamsize __thiscall
strstreambuf_pcount(const strstreambuf
*this)
13294 char *ppos
= basic_streambuf_char_pptr(&this->base
);
13296 TRACE("(%p)\n", this);
13298 return ppos
? ppos
-basic_streambuf_char_pbase(&this->base
) : 0;
13301 /* ?overflow@strstreambuf@std@@MAEHH@Z */
13302 /* ?overflow@strstreambuf@std@@MEAAHH@Z */
13303 DEFINE_THISCALL_WRAPPER(strstreambuf_overflow
, 8)
13304 int __thiscall
strstreambuf_overflow(strstreambuf
*this, int c
)
13306 MSVCP_size_t old_size
, size
;
13309 TRACE("(%p %d)\n", this, c
);
13314 if(this->strmode
& STRSTATE_Frozen
)
13317 ptr
= basic_streambuf_char_pptr(&this->base
);
13318 if(ptr
&& ptr
<basic_streambuf_char_epptr(&this->base
))
13319 return (unsigned char)(*basic_streambuf_char__Pninc(&this->base
) = c
);
13321 if(!(this->strmode
& STRSTATE_Dynamic
) || (this->strmode
& STRSTATE_Constant
))
13324 ptr
= basic_streambuf_char_eback(&this->base
);
13325 old_size
= ptr
? basic_streambuf_char_epptr(&this->base
) - ptr
: 0;
13327 size
= old_size
+ old_size
/2;
13328 if(size
< this->minsize
)
13329 size
= this->minsize
;
13332 buf
= this->palloc(size
);
13334 buf
= MSVCRT_operator_new(size
);
13338 memcpy(buf
, ptr
, old_size
);
13339 if(this->strmode
& STRSTATE_Allocated
) {
13343 MSVCRT_operator_delete(ptr
);
13346 this->strmode
|= STRSTATE_Allocated
;
13348 this->seekhigh
= buf
;
13349 basic_streambuf_char_setp(&this->base
, buf
, buf
+size
);
13350 basic_streambuf_char_setg(&this->base
, buf
, buf
, buf
);
13352 this->seekhigh
= this->seekhigh
-ptr
+buf
;
13353 basic_streambuf_char_setp_next(&this->base
, basic_streambuf_char_pbase(&this->base
)-ptr
+buf
,
13354 basic_streambuf_char_pptr(&this->base
)-ptr
+buf
, buf
+size
);
13355 basic_streambuf_char_setg(&this->base
, buf
, basic_streambuf_char_gptr(&this->base
)-ptr
+buf
,
13356 basic_streambuf_char_pptr(&this->base
));
13359 return (unsigned char)(*basic_streambuf_char__Pninc(&this->base
) = c
);
13362 /* ?pbackfail@strstreambuf@std@@MAEHH@Z */
13363 /* ?pbackfail@strstreambuf@std@@MEAAHH@Z */
13364 DEFINE_THISCALL_WRAPPER(strstreambuf_pbackfail
, 8)
13365 int __thiscall
strstreambuf_pbackfail(strstreambuf
*this, int c
)
13367 char *ptr
= basic_streambuf_char_gptr(&this->base
);
13369 TRACE("(%p %d)\n", this, c
);
13371 if(ptr
<=basic_streambuf_char_eback(&this->base
)
13372 || ((this->strmode
& STRSTATE_Constant
) && c
!=ptr
[-1]))
13375 basic_streambuf_char_gbump(&this->base
, -1);
13378 if(this->strmode
& STRSTATE_Constant
)
13379 return (unsigned char)c
;
13381 return (unsigned char)(ptr
[0] = c
);
13384 /* ?seekoff@strstreambuf@std@@MAE?AV?$fpos@H@2@JHH@Z */
13385 /* ?seekoff@strstreambuf@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
13386 #if STREAMOFF_BITS == 64
13387 DEFINE_THISCALL_WRAPPER(strstreambuf_seekoff
, 24)
13389 DEFINE_THISCALL_WRAPPER(strstreambuf_seekoff
, 20)
13391 fpos_int
* __thiscall
strstreambuf_seekoff(strstreambuf
*this, fpos_int
*ret
, streamoff off
, int way
, int mode
)
13393 char *eback
= basic_streambuf_char_eback(&this->base
);
13394 char *pptr
= basic_streambuf_char_pptr(&this->base
);
13395 char *gptr
= basic_streambuf_char_gptr(&this->base
);
13397 TRACE("(%p %p %s %d %d)\n", this, ret
, wine_dbgstr_longlong(off
), way
, mode
);
13402 if(pptr
> this->seekhigh
)
13403 this->seekhigh
= pptr
;
13405 if((mode
& OPENMODE_in
) && gptr
) {
13406 if(way
==SEEKDIR_cur
&& !(mode
& OPENMODE_out
))
13408 else if(way
== SEEKDIR_end
)
13409 off
+= this->seekhigh
-eback
;
13410 else if(way
!= SEEKDIR_beg
)
13413 if(off
<0 || off
>this->seekhigh
-eback
) {
13416 basic_streambuf_char_gbump(&this->base
, eback
-gptr
+off
);
13417 if((mode
& OPENMODE_out
) && pptr
) {
13418 basic_streambuf_char_setp_next(&this->base
, eback
,
13419 gptr
, basic_streambuf_char_epptr(&this->base
));
13422 }else if((mode
& OPENMODE_out
) && pptr
) {
13423 if(way
== SEEKDIR_cur
)
13425 else if(way
== SEEKDIR_end
)
13426 off
+= this->seekhigh
-eback
;
13427 else if(way
!= SEEKDIR_beg
)
13430 if(off
<0 || off
>this->seekhigh
-eback
)
13433 basic_streambuf_char_pbump(&this->base
, eback
-pptr
+off
);
13442 /* ?seekpos@strstreambuf@std@@MAE?AV?$fpos@H@2@V32@H@Z */
13443 /* ?seekpos@strstreambuf@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
13444 DEFINE_THISCALL_WRAPPER(strstreambuf_seekpos
, 36)
13445 fpos_int
* __thiscall
strstreambuf_seekpos(strstreambuf
*this, fpos_int
*ret
, fpos_int pos
, int mode
)
13447 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_int(&pos
), mode
);
13449 if(pos
.off
==-1 && pos
.pos
==0 && pos
.state
==0) {
13454 return strstreambuf_seekoff(this, ret
, pos
.off
, SEEKDIR_beg
, mode
);
13457 /* ?underflow@strstreambuf@std@@MAEHXZ */
13458 /* ?underflow@strstreambuf@std@@MEAAHXZ */
13459 DEFINE_THISCALL_WRAPPER(strstreambuf_underflow
, 4)
13460 int __thiscall
strstreambuf_underflow(strstreambuf
*this)
13462 char *gptr
= basic_streambuf_char_gptr(&this->base
);
13465 TRACE("(%p)\n", this);
13470 if(gptr
< basic_streambuf_char_egptr(&this->base
))
13471 return (unsigned char)(*gptr
);
13473 pptr
= basic_streambuf_char_gptr(&this->base
);
13474 if(pptr
> this->seekhigh
)
13475 this->seekhigh
= pptr
;
13477 if(this->seekhigh
<= gptr
)
13480 basic_streambuf_char_setg(&this->base
, basic_streambuf_char_eback(&this->base
),
13481 gptr
, this->seekhigh
);
13482 return (unsigned char)(*gptr
);
13485 static inline basic_ios_char
* ostrstream_to_basic_ios(ostrstream
*ptr
)
13487 return (basic_ios_char
*)((char*)ptr
+ostrstream_vbtable
[1]);
13490 static inline ostrstream
* ostrstream_from_basic_ios(basic_ios_char
*ptr
)
13492 return (ostrstream
*)((char*)ptr
-ostrstream_vbtable
[1]);
13495 /* ??0ostrstream@std@@QAE@PADHH@Z */
13496 #if STREAMSIZE_BITS == 64
13497 DEFINE_THISCALL_WRAPPER(ostrstream_ctor
, 24)
13499 DEFINE_THISCALL_WRAPPER(ostrstream_ctor
, 20)
13501 ostrstream
* __thiscall
ostrstream_ctor(ostrstream
*this, char *buf
, streamsize size
, int mode
, MSVCP_bool virt_init
)
13503 basic_ios_char
*basic_ios
;
13505 TRACE("(%p %p %s %d %d)\n", this, buf
, wine_dbgstr_longlong(size
), mode
, virt_init
);
13508 this->base
.vbtable
= ostrstream_vbtable
;
13509 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
13510 basic_ios_char_ctor(basic_ios
);
13512 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
13515 strstreambuf_ctor_get_put(&this->buf
, buf
, size
,
13516 buf
&& (mode
& OPENMODE_app
) ? buf
+strlen(buf
) : buf
);
13517 basic_ostream_char_ctor(&this->base
, &this->buf
.base
, FALSE
, FALSE
);
13518 basic_ios
->base
.vtable
= &MSVCP_ostrstream_vtable
;
13522 /* ??1ostrstream@std@@UAE@XZ */
13523 /* ??1ostrstream@std@@UEAA@XZ */
13524 DEFINE_THISCALL_WRAPPER(ostrstream_dtor
, 4)
13525 void __thiscall
ostrstream_dtor(basic_ios_char
*base
)
13527 ostrstream
*this = ostrstream_from_basic_ios(base
);
13529 TRACE("(%p)\n", this);
13531 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&this->base
));
13532 strstreambuf_dtor(&this->buf
);
13535 static void ostrstream_vbase_dtor(ostrstream
*this)
13537 TRACE("(%p)\n", this);
13539 ostrstream_dtor(ostrstream_to_basic_ios(this));
13540 basic_ios_char_dtor(basic_ostream_char_get_basic_ios(&this->base
));
13543 DEFINE_THISCALL_WRAPPER(ostrstream_vector_dtor
, 8)
13544 ostrstream
* __thiscall
ostrstream_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
13546 ostrstream
*this = ostrstream_from_basic_ios(base
);
13548 TRACE("(%p %x)\n", this, flags
);
13551 /* we have an array, with the number of elements stored before the first object */
13552 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
13554 for(i
=*ptr
-1; i
>=0; i
--)
13555 ostrstream_vbase_dtor(this+i
);
13556 MSVCRT_operator_delete(ptr
);
13558 ostrstream_vbase_dtor(this);
13560 MSVCRT_operator_delete(this);
13566 static inline istrstream
* istrstream_from_basic_ios(basic_ios_char
*ptr
)
13568 return (istrstream
*)((char*)ptr
-istrstream_vbtable
[1]);
13571 /* ??1istrstream@std@@UAE@XZ */
13572 /* ??1istrstream@std@@UEAA@XZ */
13573 DEFINE_THISCALL_WRAPPER(istrstream_dtor
, 4)
13574 void __thiscall
istrstream_dtor(basic_ios_char
*base
)
13576 istrstream
*this = istrstream_from_basic_ios(base
);
13578 TRACE("(%p)\n", this);
13580 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&this->base
));
13581 strstreambuf_dtor(&this->buf
);
13584 static inline basic_ios_char
* strstream_to_basic_ios(strstream
*ptr
)
13586 return (basic_ios_char
*)((char*)ptr
+strstream_vbtable1
[1]);
13589 static inline strstream
* strstream_from_basic_ios(basic_ios_char
*ptr
)
13591 return (strstream
*)((char*)ptr
-strstream_vbtable1
[1]);
13594 /* ??0strstream@std@@QAE@PADHH@Z */
13595 /* ??0strstream@std@@QEAA@PEAD_JH@Z */
13596 #if STREAMSIZE_BITS == 64
13597 DEFINE_THISCALL_WRAPPER(strstream_ctor
, 24)
13599 DEFINE_THISCALL_WRAPPER(strstream_ctor
, 20)
13601 strstream
* __thiscall
strstream_ctor(strstream
*this, char *buf
, streamsize size
, int mode
, MSVCP_bool virt_init
)
13603 basic_ios_char
*basic_ios
;
13605 TRACE("(%p %p %s %d %d)\n", this, buf
, wine_dbgstr_longlong(size
), mode
, virt_init
);
13608 this->base
.base1
.vbtable
= strstream_vbtable1
;
13609 this->base
.base2
.vbtable
= strstream_vbtable2
;
13610 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
13611 basic_ios_char_ctor(basic_ios
);
13613 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
13616 strstreambuf_ctor_get_put(&this->buf
, buf
, size
,
13617 buf
&& (mode
& OPENMODE_app
) ? buf
+strlen(buf
) : buf
);
13618 basic_iostream_char_ctor(&this->base
, &this->buf
.base
, FALSE
);
13619 basic_ios
->base
.vtable
= &MSVCP_strstream_vtable
;
13623 /* ??1strstream@std@@UAE@XZ */
13624 /* ??1strstream@std@@UEAA@XZ */
13625 DEFINE_THISCALL_WRAPPER(strstream_dtor
, 4)
13626 void __thiscall
strstream_dtor(basic_ios_char
*base
)
13628 strstream
*this = strstream_from_basic_ios(base
);
13630 TRACE("(%p)\n", this);
13632 basic_iostream_char_dtor(basic_iostream_char_to_basic_ios(&this->base
));
13633 strstreambuf_dtor(&this->buf
);
13636 static void strstream_vbase_dtor(strstream
*this)
13638 TRACE("(%p)\n", this);
13640 strstream_dtor(strstream_to_basic_ios(this));
13641 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base
.base1
));
13644 DEFINE_THISCALL_WRAPPER(strstream_vector_dtor
, 8)
13645 strstream
* __thiscall
strstream_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
13647 strstream
*this = strstream_from_basic_ios(base
);
13649 TRACE("(%p %x)\n", this, flags
);
13652 /* we have an array, with the number of elements stored before the first object */
13653 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
13655 for(i
=*ptr
-1; i
>=0; i
--)
13656 strstream_vbase_dtor(this+i
);
13657 MSVCRT_operator_delete(ptr
);
13659 strstream_vbase_dtor(this);
13661 MSVCRT_operator_delete(this);
13667 static void __cdecl
setprecision_func(ios_base
*base
, streamsize prec
)
13669 ios_base_precision_set(base
, prec
);
13672 /* ?setprecision@std@@YA?AU?$_Smanip@H@1@H@Z */
13673 /* ?setprecision@std@@YA?AU?$_Smanip@_J@1@_J@Z */
13674 manip_streamsize
* __cdecl
setprecision(manip_streamsize
*ret
, streamsize prec
)
13676 TRACE("(%p %s)\n", ret
, wine_dbgstr_longlong(prec
));
13678 ret
->pfunc
= setprecision_func
;
13683 static void __cdecl
setw_func(ios_base
*base
, streamsize width
)
13685 ios_base_width_set(base
, width
);
13688 /* ?setw@std@@YA?AU?$_Smanip@H@1@H@Z */
13689 /* ?setw@std@@YA?AU?$_Smanip@_J@1@_J@Z */
13690 manip_streamsize
* __cdecl
setw(manip_streamsize
*ret
, streamsize width
)
13692 TRACE("(%p %s)\n", ret
, wine_dbgstr_longlong(width
));
13694 ret
->pfunc
= setw_func
;
13699 static void __cdecl
resetioflags_func(ios_base
*base
, int mask
)
13701 ios_base_setf_mask(base
, 0, mask
);
13704 /* ?resetiosflags@std@@YA?AU?$_Smanip@H@1@H@Z */
13705 manip_int
* __cdecl
resetiosflags(manip_int
*ret
, int mask
)
13707 TRACE("(%p %d)\n", ret
, mask
);
13709 ret
->pfunc
= resetioflags_func
;
13714 static void __cdecl
setiosflags_func(ios_base
*base
, int mask
)
13716 ios_base_setf_mask(base
, FMTFLAG_mask
, mask
);
13719 /* ?setiosflags@std@@YA?AU?$_Smanip@H@1@H@Z */
13720 manip_int
* __cdecl
setiosflags(manip_int
*ret
, int mask
)
13722 TRACE("(%p %d)\n", ret
, mask
);
13724 ret
->pfunc
= setiosflags_func
;
13729 static void __cdecl
setbase_func(ios_base
*base
, int set_base
)
13732 set_base
= FMTFLAG_dec
;
13733 else if(set_base
== 8)
13734 set_base
= FMTFLAG_oct
;
13735 else if(set_base
== 16)
13736 set_base
= FMTFLAG_hex
;
13740 ios_base_setf_mask(base
, set_base
, FMTFLAG_basefield
);
13743 /* ?setbase@std@@YA?AU?$_Smanip@H@1@H@Z */
13744 manip_int
* __cdecl
setbase(manip_int
*ret
, int base
)
13746 TRACE("(%p %d)\n", ret
, base
);
13748 ret
->pfunc
= setbase_func
;
13753 static basic_filebuf_char filebuf_char_stdin
;
13754 /* ?cin@std@@3V?$basic_istream@DU?$char_traits@D@std@@@1@A */
13756 basic_istream_char obj
;
13757 basic_ios_char vbase
;
13759 /* ?_Ptr_cin@std@@3PAV?$basic_istream@DU?$char_traits@D@std@@@1@A */
13760 /* ?_Ptr_cin@std@@3PEAV?$basic_istream@DU?$char_traits@D@std@@@1@EA */
13761 basic_istream_char
*_Ptr_cin
= &cin
.obj
;
13763 static basic_filebuf_wchar filebuf_short_stdin
;
13764 /* ?wcin@std@@3V?$basic_istream@GU?$char_traits@G@std@@@1@A */
13766 basic_istream_wchar obj
;
13767 basic_ios_wchar vbase
;
13768 } ucin
= { { 0 } };
13769 /* ?_Ptr_wcin@std@@3PAV?$basic_istream@GU?$char_traits@G@std@@@1@A */
13770 /* ?_Ptr_wcin@std@@3PEAV?$basic_istream@GU?$char_traits@G@std@@@1@EA */
13771 basic_istream_wchar
*_Ptr_ucin
= &ucin
.obj
;
13773 static basic_filebuf_wchar filebuf_wchar_stdin
;
13774 /* ?wcin@std@@3V?$basic_istream@_WU?$char_traits@_W@std@@@1@A */
13776 basic_istream_wchar obj
;
13777 basic_ios_wchar vbase
;
13778 } wcin
= { { 0 } };
13779 /* ?_Ptr_wcin@std@@3PAV?$basic_istream@_WU?$char_traits@_W@std@@@1@A */
13780 /* ?_Ptr_wcin@std@@3PEAV?$basic_istream@_WU?$char_traits@_W@std@@@1@EA */
13781 basic_istream_wchar
*_Ptr_wcin
= &wcin
.obj
;
13783 static basic_filebuf_char filebuf_char_stdout
;
13784 /* ?cout@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A */
13786 basic_ostream_char obj
;
13787 basic_ios_char vbase
;
13788 } cout
= { { 0 } };
13789 /* ?_Ptr_cout@std@@3PAV?$basic_ostream@DU?$char_traits@D@std@@@1@A */
13790 /* ?_Ptr_cout@std@@3PEAV?$basic_ostream@DU?$char_traits@D@std@@@1@EA */
13791 basic_ostream_char
*_Ptr_cout
= &cout
.obj
;
13793 static basic_filebuf_wchar filebuf_short_stdout
;
13794 /* ?wcout@std@@3V?$basic_ostream@GU?$char_traits@G@std@@@1@A */
13796 basic_ostream_wchar obj
;
13797 basic_ios_wchar vbase
;
13798 } ucout
= { { 0 } };
13799 /* ?_Ptr_wcout@std@@3PAV?$basic_ostream@GU?$char_traits@G@std@@@1@A */
13800 /* ?_Ptr_wcout@std@@3PEAV?$basic_ostream@GU?$char_traits@G@std@@@1@EA */
13801 basic_ostream_wchar
*_Ptr_ucout
= &ucout
.obj
;
13803 static basic_filebuf_wchar filebuf_wchar_stdout
;
13804 /* ?wcout@std@@3V?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
13806 basic_ostream_wchar obj
;
13807 basic_ios_wchar vbase
;
13808 } wcout
= { { 0 } };
13809 /* ?_Ptr_wcout@std@@3PAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
13810 /* ?_Ptr_wcout@std@@3PEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@EA */
13811 basic_ostream_wchar
*_Ptr_wcout
= &wcout
.obj
;
13813 static basic_filebuf_char filebuf_char_stderr
;
13814 /* ?cerr@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A */
13816 basic_ostream_char obj
;
13817 basic_ios_char vbase
;
13818 } cerr
= { { 0 } };
13819 /* ?_Ptr_cerr@std@@3PAV?$basic_ostream@DU?$char_traits@D@std@@@1@A */
13820 /* ?_Ptr_cerr@std@@3PEAV?$basic_ostream@DU?$char_traits@D@std@@@1@EA */
13821 basic_ostream_char
*_Ptr_cerr
= &cerr
.obj
;
13823 static basic_filebuf_wchar filebuf_short_stderr
;
13824 /* ?wcerr@std@@3V?$basic_ostream@GU?$char_traits@G@std@@@1@A */
13826 basic_ostream_wchar obj
;
13827 basic_ios_wchar vbase
;
13828 } ucerr
= { { 0 } };
13829 /* ?_Ptr_wcerr@std@@3PAV?$basic_ostream@GU?$char_traits@G@std@@@1@A */
13830 /* ?_Ptr_wcerr@std@@3PEAV?$basic_ostream@GU?$char_traits@G@std@@@1@EA */
13831 basic_ostream_wchar
*_Ptr_ucerr
= &ucerr
.obj
;
13833 static basic_filebuf_wchar filebuf_wchar_stderr
;
13834 /* ?wcerr@std@@3V?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
13836 basic_ostream_wchar obj
;
13837 basic_ios_wchar vbase
;
13838 } wcerr
= { { 0 } };
13839 /* ?_Ptr_wcerr@std@@3PAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
13840 /* ?_Ptr_wcerr@std@@3PEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@EA */
13841 basic_ostream_wchar
*_Ptr_wcerr
= &wcerr
.obj
;
13843 static basic_filebuf_char filebuf_char_log
;
13844 /* ?clog@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A */
13846 basic_ostream_char obj
;
13847 basic_ios_char vbase
;
13848 } clog
= { { 0 } };
13849 /* ?_Ptr_clog@std@@3PAV?$basic_ostream@DU?$char_traits@D@std@@@1@A */
13850 /* ?_Ptr_clog@std@@3PEAV?$basic_ostream@DU?$char_traits@D@std@@@1@EA */
13851 basic_ostream_char
*_Ptr_clog
= &clog
.obj
;
13853 static basic_filebuf_wchar filebuf_short_log
;
13854 /* ?wclog@std@@3V?$basic_ostream@GU?$char_traits@G@std@@@1@A */
13856 basic_ostream_wchar obj
;
13857 basic_ios_wchar vbase
;
13858 } uclog
= { { 0 } };
13859 /* ?_Ptr_wclog@std@@3PAV?$basic_ostream@GU?$char_traits@G@std@@@1@A */
13860 /* ?_Ptr_wclog@std@@3PEAV?$basic_ostream@GU?$char_traits@G@std@@@1@EA */
13861 basic_ostream_wchar
*_Ptr_uclog
= &uclog
.obj
;
13863 static basic_filebuf_wchar filebuf_wchar_log
;
13864 /* ?wclog@std@@3V?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
13866 basic_ostream_wchar obj
;
13867 basic_ios_wchar vbase
;
13868 } wclog
= { { 0 } };
13869 /* ?_Ptr_wclog@std@@3PAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
13870 /* ?_Ptr_wclog@std@@3PEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@EA */
13871 basic_ostream_wchar
*_Ptr_wclog
= &wclog
.obj
;
13873 /* ?_Init_cnt@Init@ios_base@std@@0HA */
13874 int ios_base_Init__Init_cnt
= -1;
13876 /* ?_Init_cnt_func@Init@ios_base@std@@CAAAHXZ */
13877 /* ?_Init_cnt_func@Init@ios_base@std@@CAAEAHXZ */
13878 int* __cdecl
ios_base_Init__Init_cnt_func(void)
13880 return &ios_base_Init__Init_cnt
;
13883 /* ?_Init_ctor@Init@ios_base@std@@CAXPAV123@@Z */
13884 /* ?_Init_ctor@Init@ios_base@std@@CAXPEAV123@@Z */
13885 void __cdecl
ios_base_Init__Init_ctor(void *this)
13887 TRACE("(%p)\n", this);
13889 if(ios_base_Init__Init_cnt
< 0)
13890 ios_base_Init__Init_cnt
= 1;
13892 ios_base_Init__Init_cnt
++;
13895 /* ??0Init@ios_base@std@@QAE@XZ */
13896 /* ??0Init@ios_base@std@@QEAA@XZ */
13897 DEFINE_THISCALL_WRAPPER(ios_base_Init_ctor
, 4)
13898 void* __thiscall
ios_base_Init_ctor(void *this)
13900 ios_base_Init__Init_ctor(this);
13904 /* ?_Init_dtor@Init@ios_base@std@@CAXPAV123@@Z */
13905 /* ?_Init_dtor@Init@ios_base@std@@CAXPEAV123@@Z */
13906 void __cdecl
ios_base_Init__Init_dtor(void *this)
13908 TRACE("(%p)\n", this);
13910 ios_base_Init__Init_cnt
--;
13911 if(!ios_base_Init__Init_cnt
) {
13912 basic_ostream_char_flush(&cout
.obj
);
13913 basic_ostream_char_flush(&cerr
.obj
);
13914 basic_ostream_char_flush(&clog
.obj
);
13918 /* ??1Init@ios_base@std@@QAE@XZ */
13919 /* ??1Init@ios_base@std@@QEAA@XZ */
13920 DEFINE_THISCALL_WRAPPER(ios_base_Init_dtor
, 4)
13921 void __thiscall
ios_base_Init_dtor(void *this)
13923 ios_base_Init__Init_dtor(this);
13926 /* ??4Init@ios_base@std@@QAEAAV012@ABV012@@Z */
13927 /* ??4Init@ios_base@std@@QEAAAEAV012@AEBV012@@Z */
13928 DEFINE_THISCALL_WRAPPER(ios_base_Init_op_assign
, 8)
13929 void* __thiscall
ios_base_Init_op_assign(void *this, void *rhs
)
13931 TRACE("(%p %p)\n", this, rhs
);
13935 /* ?_Init_cnt@_Winit@std@@0HA */
13936 int _Winit__Init_cnt
= -1;
13938 /* ??0_Winit@std@@QAE@XZ */
13939 /* ??0_Winit@std@@QEAA@XZ */
13940 DEFINE_THISCALL_WRAPPER(_Winit_ctor
, 4)
13941 void* __thiscall
_Winit_ctor(void *this)
13943 TRACE("(%p)\n", this);
13945 if(_Winit__Init_cnt
< 0)
13946 _Winit__Init_cnt
= 1;
13948 _Winit__Init_cnt
++;
13953 /* ??1_Winit@std@@QAE@XZ */
13954 /* ??1_Winit@std@@QAE@XZ */
13955 DEFINE_THISCALL_WRAPPER(_Winit_dtor
, 4)
13956 void __thiscall
_Winit_dtor(void *this)
13958 TRACE("(%p)\n", this);
13960 _Winit__Init_cnt
--;
13961 if(!_Winit__Init_cnt
) {
13962 basic_ostream_wchar_flush(&wcout
.obj
);
13963 basic_ostream_wchar_flush(&wcerr
.obj
);
13964 basic_ostream_wchar_flush(&wclog
.obj
);
13968 /* ??4_Winit@std@@QAEAAV01@ABV01@@Z */
13969 /* ??4_Winit@std@@QEAAAEAV01@AEBV01@@Z */
13970 DEFINE_THISCALL_WRAPPER(_Winit_op_assign
, 8)
13971 void* __thiscall
_Winit_op_assign(void *this, void *rhs
)
13973 TRACE("(%p %p)\n", this, rhs
);
13977 void init_io(void *base
)
13980 init_iosb_rtti(base
);
13981 init_ios_base_rtti(base
);
13982 init_basic_ios_char_rtti(base
);
13983 init_basic_ios_wchar_rtti(base
);
13984 init_basic_ios_short_rtti(base
);
13985 init_basic_streambuf_char_rtti(base
);
13986 init_basic_streambuf_wchar_rtti(base
);
13987 init_basic_streambuf_short_rtti(base
);
13988 init_basic_filebuf_char_rtti(base
);
13989 init_basic_filebuf_wchar_rtti(base
);
13990 init_basic_filebuf_short_rtti(base
);
13991 init_basic_stringbuf_char_rtti(base
);
13992 init_basic_stringbuf_wchar_rtti(base
);
13993 init_basic_stringbuf_short_rtti(base
);
13994 init_basic_ostream_char_rtti(base
);
13995 init_basic_ostream_wchar_rtti(base
);
13996 init_basic_ostream_short_rtti(base
);
13997 init_basic_istream_char_rtti(base
);
13998 init_basic_istream_wchar_rtti(base
);
13999 init_basic_istream_short_rtti(base
);
14000 init_basic_iostream_char_rtti(base
);
14001 init_basic_iostream_wchar_rtti(base
);
14002 init_basic_iostream_short_rtti(base
);
14003 init_basic_ofstream_char_rtti(base
);
14004 init_basic_ofstream_wchar_rtti(base
);
14005 init_basic_ofstream_short_rtti(base
);
14006 init_basic_ifstream_char_rtti(base
);
14007 init_basic_ifstream_wchar_rtti(base
);
14008 init_basic_ifstream_short_rtti(base
);
14009 init_basic_fstream_char_rtti(base
);
14010 init_basic_fstream_wchar_rtti(base
);
14011 init_basic_fstream_short_rtti(base
);
14012 init_basic_ostringstream_char_rtti(base
);
14013 init_basic_ostringstream_wchar_rtti(base
);
14014 init_basic_ostringstream_short_rtti(base
);
14015 init_basic_istringstream_char_rtti(base
);
14016 init_basic_istringstream_wchar_rtti(base
);
14017 init_basic_istringstream_short_rtti(base
);
14018 init_basic_stringstream_char_rtti(base
);
14019 init_basic_stringstream_wchar_rtti(base
);
14020 init_basic_stringstream_short_rtti(base
);
14021 init_strstreambuf_rtti(base
);
14022 init_strstream_rtti(base
);
14023 init_ostrstream_rtti(base
);
14026 basic_filebuf_char_ctor_file(&filebuf_char_stdin
, stdin
);
14027 basic_istream_char_ctor(&cin
.obj
, &filebuf_char_stdin
.base
, FALSE
/*FIXME*/, TRUE
);
14029 basic_filebuf_short_ctor_file(&filebuf_short_stdin
, stdin
);
14030 basic_istream_short_ctor(&ucin
.obj
, &filebuf_short_stdin
.base
, FALSE
/*FIXME*/, TRUE
);
14032 basic_filebuf_wchar_ctor_file(&filebuf_wchar_stdin
, stdin
);
14033 basic_istream_wchar_ctor(&wcin
.obj
, &filebuf_wchar_stdin
.base
, FALSE
/*FIXME*/, TRUE
);
14035 basic_filebuf_char_ctor_file(&filebuf_char_stdout
, stdout
);
14036 basic_ostream_char_ctor(&cout
.obj
, &filebuf_char_stdout
.base
, FALSE
/*FIXME*/, TRUE
);
14038 basic_filebuf_short_ctor_file(&filebuf_short_stdout
, stdout
);
14039 basic_ostream_short_ctor(&ucout
.obj
, &filebuf_short_stdout
.base
, FALSE
/*FIXME*/, TRUE
);
14041 basic_filebuf_wchar_ctor_file(&filebuf_wchar_stdout
, stdout
);
14042 basic_ostream_wchar_ctor(&wcout
.obj
, &filebuf_wchar_stdout
.base
, FALSE
/*FIXME*/, TRUE
);
14044 basic_filebuf_char_ctor_file(&filebuf_char_stderr
, stderr
);
14045 basic_ostream_char_ctor(&cerr
.obj
, &filebuf_char_stderr
.base
, FALSE
/*FIXME*/, TRUE
);
14047 basic_filebuf_short_ctor_file(&filebuf_short_stderr
, stderr
);
14048 basic_ostream_short_ctor(&ucerr
.obj
, &filebuf_short_stderr
.base
, FALSE
/*FIXME*/, TRUE
);
14050 basic_filebuf_wchar_ctor_file(&filebuf_wchar_stderr
, stderr
);
14051 basic_ostream_wchar_ctor(&wcerr
.obj
, &filebuf_wchar_stderr
.base
, FALSE
/*FIXME*/, TRUE
);
14053 basic_filebuf_char_ctor_file(&filebuf_char_log
, stderr
);
14054 basic_ostream_char_ctor(&clog
.obj
, &filebuf_char_log
.base
, FALSE
/*FIXME*/, TRUE
);
14056 basic_filebuf_short_ctor_file(&filebuf_short_log
, stderr
);
14057 basic_ostream_short_ctor(&uclog
.obj
, &filebuf_short_log
.base
, FALSE
/*FIXME*/, TRUE
);
14059 basic_filebuf_wchar_ctor_file(&filebuf_wchar_log
, stderr
);
14060 basic_ostream_wchar_ctor(&wclog
.obj
, &filebuf_wchar_log
.base
, FALSE
/*FIXME*/, TRUE
);
14065 basic_istream_char_vbase_dtor(&cin
.obj
);
14066 basic_filebuf_char_dtor(&filebuf_char_stdin
);
14068 basic_istream_wchar_vbase_dtor(&ucin
.obj
);
14069 basic_filebuf_wchar_dtor(&filebuf_short_stdin
);
14071 basic_istream_wchar_vbase_dtor(&wcin
.obj
);
14072 basic_filebuf_wchar_dtor(&filebuf_wchar_stdin
);
14074 basic_ostream_char_vbase_dtor(&cout
.obj
);
14075 basic_filebuf_char_dtor(&filebuf_char_stdout
);
14077 basic_ostream_wchar_vbase_dtor(&ucout
.obj
);
14078 basic_filebuf_wchar_dtor(&filebuf_short_stdout
);
14080 basic_ostream_wchar_vbase_dtor(&wcout
.obj
);
14081 basic_filebuf_wchar_dtor(&filebuf_wchar_stdout
);
14083 basic_ostream_char_vbase_dtor(&cerr
.obj
);
14084 basic_filebuf_char_dtor(&filebuf_char_stderr
);
14086 basic_ostream_wchar_vbase_dtor(&ucerr
.obj
);
14087 basic_filebuf_wchar_dtor(&filebuf_short_stderr
);
14089 basic_ostream_wchar_vbase_dtor(&wcerr
.obj
);
14090 basic_filebuf_wchar_dtor(&filebuf_wchar_stderr
);
14092 basic_ostream_char_vbase_dtor(&clog
.obj
);
14093 basic_filebuf_char_dtor(&filebuf_char_log
);
14095 basic_ostream_wchar_vbase_dtor(&uclog
.obj
);
14096 basic_filebuf_wchar_dtor(&filebuf_short_log
);
14098 basic_ostream_wchar_vbase_dtor(&wclog
.obj
);
14099 basic_filebuf_wchar_dtor(&filebuf_wchar_log
);