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
;
69 basic_string_char
*str
;
78 basic_streambuf_wchar base
;
82 basic_string_char
*str
;
88 } basic_filebuf_wchar
;
91 STRINGBUF_allocated
= 1,
92 STRINGBUF_no_write
= 2,
93 STRINGBUF_no_read
= 4,
96 } basic_stringbuf_state
;
99 basic_streambuf_char base
;
104 char allocator
; /* empty struct */
105 } basic_stringbuf_char
;
108 basic_streambuf_wchar base
;
113 char allocator
; /* empty struct */
114 } basic_stringbuf_wchar
;
118 basic_streambuf_char
*strbuf
;
119 struct _basic_ostream_char
*stream
;
125 basic_streambuf_wchar
*strbuf
;
126 struct _basic_ostream_wchar
*stream
;
130 typedef struct _basic_ostream_char
{
132 /* virtual inheritance
133 * basic_ios_char basic_ios;
135 } basic_ostream_char
;
137 typedef struct _basic_ostream_wchar
{
139 /* virtual inheritance
140 * basic_ios_wchar basic_ios;
142 } basic_ostream_wchar
;
147 /* virtual inheritance
148 * basic_ios_char basic_ios;
150 } basic_istream_char
;
155 /* virtual inheritance
156 * basic_ios_wchar basic_ios;
158 } basic_istream_wchar
;
161 basic_istream_char base1
;
162 basic_ostream_char base2
;
163 /* virtual inheritance
164 * basic_ios_char basic_ios;
166 } basic_iostream_char
;
169 basic_istream_wchar base1
;
170 basic_ostream_wchar base2
;
171 /* virtual inheritance
172 * basic_ios_wchar basic_ios;
174 } basic_iostream_wchar
;
177 basic_ostream_char base
;
178 basic_filebuf_char filebuf
;
179 /* virtual inheritance
180 * basic_ios_char basic_ios;
182 } basic_ofstream_char
;
185 basic_ostream_wchar base
;
186 basic_filebuf_wchar filebuf
;
187 /* virtual inheritance
188 * basic_ios_wchar basic_ios;
190 } basic_ofstream_wchar
;
193 basic_istream_char base
;
194 basic_filebuf_char filebuf
;
195 /* virtual inheritance
196 * basic_ios_char basic_ios;
198 } basic_ifstream_char
;
201 basic_istream_wchar base
;
202 basic_filebuf_wchar filebuf
;
203 /* virtual inheritance
204 * basic_ios_wchar basic_ios;
206 } basic_ifstream_wchar
;
209 basic_iostream_char base
;
210 basic_filebuf_char filebuf
;
211 /* virtual inheritance
212 * basic_ios_char basic_ios;
214 } basic_fstream_char
;
217 basic_iostream_wchar base
;
218 basic_filebuf_wchar filebuf
;
219 /* virtual inheritance
220 * basic_ios_char basic_ios;
222 } basic_fstream_wchar
;
225 basic_ostream_char base
;
226 basic_stringbuf_char strbuf
;
227 /* virtual inheritance
228 * basic_ios_char basic_ios;
230 } basic_ostringstream_char
;
233 basic_ostream_wchar base
;
234 basic_stringbuf_wchar strbuf
;
235 /* virtual inheritance
236 * basic_ios_wchar basic_ios;
238 } basic_ostringstream_wchar
;
241 basic_istream_char base
;
242 basic_stringbuf_char strbuf
;
243 /* virtual inheritance
244 * basic_ios_char basic_ios;
246 } basic_istringstream_char
;
249 basic_istream_wchar base
;
250 basic_stringbuf_wchar strbuf
;
251 /* virtual inheritance
252 * basic_ios_wchar basic_ios;
254 } basic_istringstream_wchar
;
257 basic_iostream_char base
;
258 basic_stringbuf_char strbuf
;
259 /* virtual inheritance
260 * basic_ios_char basic_ios;
262 } basic_stringstream_char
;
265 basic_iostream_wchar base
;
266 basic_stringbuf_wchar strbuf
;
267 /* virtual inheritance
268 * basic_ios_wchar basic_ios;
270 } basic_stringstream_wchar
;
273 STRSTATE_Allocated
= 1,
274 STRSTATE_Constant
= 2,
275 STRSTATE_Dynamic
= 4,
277 } strstreambuf__Strstate
;
280 basic_streambuf_char base
;
285 void* (__cdecl
*palloc
)(MSVCP_size_t
);
286 void (__cdecl
*pfree
)(void*);
290 basic_ostream_char base
;
292 /* virtual inheritance
293 * basic_ios_char basic_ios;
298 basic_istream_char base
;
300 /* virtual inheritance
301 * basic_ios_char basic_ios;
306 basic_iostream_char base
;
308 /* virtual inheritance
309 * basic_ios_char basic_ios;
313 #if _MSVCP_VER >= 100
314 #define VBTABLE_ALIGN 8
316 #define VBTABLE_ALIGN 4
319 extern const vtable_ptr MSVCP_iosb_vtable
;
321 /* ??_7ios_base@std@@6B@ */
322 extern const vtable_ptr MSVCP_ios_base_vtable
;
324 /* ??_7?$basic_ios@DU?$char_traits@D@std@@@std@@6B@ */
325 extern const vtable_ptr MSVCP_basic_ios_char_vtable
;
327 /* ??_7?$basic_ios@_WU?$char_traits@_W@std@@@std@@6B@ */
328 extern const vtable_ptr MSVCP_basic_ios_wchar_vtable
;
330 /* ??_7?$basic_ios@GU?$char_traits@G@std@@@std@@6B@ */
331 extern const vtable_ptr MSVCP_basic_ios_short_vtable
;
333 /* ??_7?$basic_streambuf@DU?$char_traits@D@std@@@std@@6B@ */
334 extern const vtable_ptr MSVCP_basic_streambuf_char_vtable
;
336 /* ??_7?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@6B@ */
337 extern const vtable_ptr MSVCP_basic_streambuf_wchar_vtable
;
339 /* ??_7?$basic_streambuf@GU?$char_traits@G@std@@@std@@6B@ */
340 extern const vtable_ptr MSVCP_basic_streambuf_short_vtable
;
342 /* ??_7?$basic_filebuf@DU?$char_traits@D@std@@@std@@6B@ */
343 extern const vtable_ptr MSVCP_basic_filebuf_char_vtable
;
345 /* ??_7?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@6B@ */
346 extern const vtable_ptr MSVCP_basic_filebuf_wchar_vtable
;
348 /* ??_7?$basic_filebuf@GU?$char_traits@G@std@@@std@@6B@ */
349 extern const vtable_ptr MSVCP_basic_filebuf_short_vtable
;
351 /* ??_7?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
352 extern const vtable_ptr MSVCP_basic_stringbuf_char_vtable
;
354 /* ??_7?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
355 extern const vtable_ptr MSVCP_basic_stringbuf_wchar_vtable
;
357 /* ??_7?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
358 extern const vtable_ptr MSVCP_basic_stringbuf_short_vtable
;
360 /* ??_8?$basic_ostream@DU?$char_traits@D@std@@@std@@7B@ */
361 const int basic_ostream_char_vbtable
[] = {0, ALIGNED_SIZE(sizeof(basic_ostream_char
), VBTABLE_ALIGN
)};
362 /* ??_7?$basic_ostream@DU?$char_traits@D@std@@@std@@6B@ */
363 extern const vtable_ptr MSVCP_basic_ostream_char_vtable
;
365 /* ??_8?$basic_ostream@_WU?$char_traits@_W@std@@@std@@7B@ */
366 const int basic_ostream_wchar_vbtable
[] = {0, ALIGNED_SIZE(sizeof(basic_ostream_wchar
), VBTABLE_ALIGN
)};
367 /* ??_7?$basic_ostream@_WU?$char_traits@_W@std@@@std@@6B@ */
368 extern const vtable_ptr MSVCP_basic_ostream_wchar_vtable
;
370 /* ??_8?$basic_ostream@GU?$char_traits@G@std@@@std@@7B@ */
371 const int basic_ostream_short_vbtable
[] = {0, ALIGNED_SIZE(sizeof(basic_ostream_wchar
), VBTABLE_ALIGN
)};
372 /* ??_7?$basic_ostream@GU?$char_traits@G@std@@@std@@6B@ */
373 extern const vtable_ptr MSVCP_basic_ostream_short_vtable
;
375 /* ??_8?$basic_istream@DU?$char_traits@D@std@@@std@@7B@ */
376 const int basic_istream_char_vbtable
[] = {0, ALIGNED_SIZE(sizeof(basic_istream_char
), VBTABLE_ALIGN
)};
377 /* ??_7?$basic_istream@DU?$char_traits@D@std@@@std@@6B@ */
378 extern const vtable_ptr MSVCP_basic_istream_char_vtable
;
380 /* ??_8?$basic_istream@_WU?$char_traits@_W@std@@@std@@7B@ */
381 const int basic_istream_wchar_vbtable
[] = {0, ALIGNED_SIZE(sizeof(basic_istream_wchar
), VBTABLE_ALIGN
)};
382 /* ??_7?$basic_istream@_WU?$char_traits@_W@std@@@std@@6B@ */
383 extern const vtable_ptr MSVCP_basic_istream_wchar_vtable
;
385 /* ??_8?$basic_istream@GU?$char_traits@G@std@@@std@@7B@ */
386 const int basic_istream_short_vbtable
[] = {0, ALIGNED_SIZE(sizeof(basic_istream_wchar
), VBTABLE_ALIGN
)};
387 /* ??_7?$basic_istream@GU?$char_traits@G@std@@@std@@6B@ */
388 extern const vtable_ptr MSVCP_basic_istream_short_vtable
;
390 /* ??_8?$basic_iostream@DU?$char_traits@D@std@@@std@@7B?$basic_istream@DU?$char_traits@D@std@@@1@@ */
391 const int basic_iostream_char_vbtable1
[] = {0, ALIGNED_SIZE(sizeof(basic_iostream_char
), VBTABLE_ALIGN
)};
392 /* ??_8?$basic_iostream@DU?$char_traits@D@std@@@std@@7B?$basic_ostream@DU?$char_traits@D@std@@@1@@ */
393 const int basic_iostream_char_vbtable2
[] = {0, ALIGNED_SIZE(sizeof(basic_iostream_char
), VBTABLE_ALIGN
)-FIELD_OFFSET(basic_iostream_char
, base2
)};
394 /* ??_7?$basic_iostream@DU?$char_traits@D@std@@@std@@6B@ */
395 extern const vtable_ptr MSVCP_basic_iostream_char_vtable
;
397 /* ??_8?$basic_iostream@_WU?$char_traits@_W@std@@@std@@7B?$basic_istream@_WU?$char_traits@_W@std@@@1@@ */
398 /* ??_8?$basic_iostream@GU?$char_traits@G@std@@@std@@7B?$basic_istream@GU?$char_traits@G@std@@@1@@ */
399 const int basic_iostream_wchar_vbtable1
[] = {0, ALIGNED_SIZE(sizeof(basic_iostream_wchar
), VBTABLE_ALIGN
)};
400 /* ??_8?$basic_iostream@_WU?$char_traits@_W@std@@@std@@7B?$basic_ostream@_WU?$char_traits@_W@std@@@1@@ */
401 /* ??_8?$basic_iostream@GU?$char_traits@G@std@@@std@@7B?$basic_ostream@GU?$char_traits@G@std@@@1@@ */
402 const int basic_iostream_wchar_vbtable2
[] = {0, ALIGNED_SIZE(sizeof(basic_iostream_wchar
), VBTABLE_ALIGN
)-FIELD_OFFSET(basic_iostream_wchar
, base2
)};
403 /* ??_7?$basic_iostream@_WU?$char_traits@_W@std@@@std@@6B@ */
404 extern const vtable_ptr MSVCP_basic_iostream_wchar_vtable
;
405 /* ??_7?$basic_iostream@GU?$char_traits@G@std@@@std@@6B@ */
406 extern const vtable_ptr MSVCP_basic_iostream_short_vtable
;
408 /* ??_8?$basic_ofstream@DU?$char_traits@D@std@@@std@@7B@ */
409 const int basic_ofstream_char_vbtable
[] = {0, sizeof(basic_ofstream_char
)};
410 /* ??_7?$basic_ofstream@DU?$char_traits@D@std@@@std@@6B@ */
411 extern const vtable_ptr MSVCP_basic_ofstream_char_vtable
;
413 /* ??_8?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@7B@ */
414 const int basic_ofstream_wchar_vbtable
[] = {0, sizeof(basic_ofstream_wchar
)};
415 /* ??_7?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@6B@ */
416 extern const vtable_ptr MSVCP_basic_ofstream_wchar_vtable
;
418 /* ??_8?$basic_ofstream@GU?$char_traits@G@std@@@std@@7B@ */
419 const int basic_ofstream_short_vbtable
[] = {0, sizeof(basic_ofstream_wchar
)};
420 /* ??_7?$basic_ofstream@GU?$char_traits@G@std@@@std@@6B@ */
421 extern const vtable_ptr MSVCP_basic_ofstream_short_vtable
;
423 /* ??_8?$basic_ifstream@DU?$char_traits@D@std@@@std@@7B@ */
424 const int basic_ifstream_char_vbtable
[] = {0, sizeof(basic_ifstream_char
)};
425 /* ??_7?$basic_ifstream@DU?$char_traits@D@std@@@std@@6B@ */
426 extern const vtable_ptr MSVCP_basic_ifstream_char_vtable
;
428 /* ??_8?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@7B@ */
429 const int basic_ifstream_wchar_vbtable
[] = {0, sizeof(basic_ifstream_wchar
)};
430 /* ??_7?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@6B@ */
431 extern const vtable_ptr MSVCP_basic_ifstream_wchar_vtable
;
433 /* ??_8?$basic_ifstream@GU?$char_traits@G@std@@@std@@7B@ */
434 const int basic_ifstream_short_vbtable
[] = {0, sizeof(basic_ifstream_wchar
)};
435 /* ??_7?$basic_ifstream@GU?$char_traits@G@std@@@std@@6B@ */
436 extern const vtable_ptr MSVCP_basic_ifstream_short_vtable
;
438 /* ??_8?$basic_fstream@DU?$char_traits@D@std@@@std@@7B?$basic_istream@DU?$char_traits@D@std@@@1@@ */
439 const int basic_fstream_char_vbtable1
[] = {0, sizeof(basic_fstream_char
)};
440 /* ??_8?$basic_fstream@DU?$char_traits@D@std@@@std@@7B?$basic_ostream@DU?$char_traits@D@std@@@1@@ */
441 const int basic_fstream_char_vbtable2
[] = {0, sizeof(basic_fstream_char
)-FIELD_OFFSET(basic_fstream_char
, base
.base2
)};
442 /* ??_7?$basic_fstream@DU?$char_traits@D@std@@@std@@6B@ */
443 extern const vtable_ptr MSVCP_basic_fstream_char_vtable
;
445 /* ??_8?$basic_fstream@_WU?$char_traits@_W@std@@@std@@7B?$basic_istream@_WU?$char_traits@_W@std@@@1@@ */
446 /* ??_8?$basic_fstream@GU?$char_traits@G@std@@@std@@7B?$basic_istream@GU?$char_traits@G@std@@@1@@ */
447 const int basic_fstream_wchar_vbtable1
[] = {0, sizeof(basic_fstream_wchar
)};
448 /* ??_8?$basic_fstream@_WU?$char_traits@_W@std@@@std@@7B?$basic_ostream@_WU?$char_traits@_W@std@@@1@@ */
449 /* ??_8?$basic_fstream@GU?$char_traits@G@std@@@std@@7B?$basic_ostream@GU?$char_traits@G@std@@@1@@ */
450 const int basic_fstream_wchar_vbtable2
[] = {0, sizeof(basic_fstream_wchar
)-FIELD_OFFSET(basic_fstream_wchar
, base
.base2
)};
451 /* ??_7?$basic_fstream@_WU?$char_traits@_W@std@@@std@@6B@ */
452 extern const vtable_ptr MSVCP_basic_fstream_wchar_vtable
;
453 /* ??_7?$basic_fstream@GU?$char_traits@G@std@@@std@@6B@ */
454 extern const vtable_ptr MSVCP_basic_fstream_short_vtable
;
456 /* ??_8?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B@ */
457 const int basic_ostringstream_char_vbtable
[] = {0, sizeof(basic_ostringstream_char
)};
458 /* ??_7?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
459 extern const vtable_ptr MSVCP_basic_ostringstream_char_vtable
;
461 /* ??_8?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B@ */
462 const int basic_ostringstream_wchar_vbtable
[] = {0, sizeof(basic_ostringstream_wchar
)};
463 /* ??_7?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
464 extern const vtable_ptr MSVCP_basic_ostringstream_wchar_vtable
;
466 /* ??_8?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B@ */
467 const int basic_ostringstream_short_vbtable
[] = {0, sizeof(basic_ostringstream_wchar
)};
468 /* ??_7?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
469 extern const vtable_ptr MSVCP_basic_ostringstream_short_vtable
;
471 /* ??_8?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B@ */
472 const int basic_istringstream_char_vbtable
[] = {0, sizeof(basic_istringstream_char
)};
473 /* ??_7?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
474 extern const vtable_ptr MSVCP_basic_istringstream_char_vtable
;
476 /* ??_8?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B@ */
477 const int basic_istringstream_wchar_vbtable
[] = {0, sizeof(basic_istringstream_wchar
)};
478 /* ??_7?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
479 extern const vtable_ptr MSVCP_basic_istringstream_wchar_vtable
;
481 /* ??_8?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B@ */
482 const int basic_istringstream_short_vbtable
[] = {0, sizeof(basic_istringstream_wchar
)};
483 /* ??_7?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
484 extern const vtable_ptr MSVCP_basic_istringstream_short_vtable
;
486 /* ??_8?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B?$basic_istream@DU?$char_traits@D@std@@@1@@ */
487 const int basic_stringstream_char_vbtable1
[] = {0, sizeof(basic_stringstream_char
)};
488 /* ??_8?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B?$basic_ostream@DU?$char_traits@D@std@@@1@@ */
489 const int basic_stringstream_char_vbtable2
[] = {0, sizeof(basic_stringstream_char
)-FIELD_OFFSET(basic_stringstream_char
, base
.base2
)};
490 /* ??_7?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
491 extern const vtable_ptr MSVCP_basic_stringstream_char_vtable
;
493 /* ??_8?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B?$basic_istream@_WU?$char_traits@_W@std@@@1@@ */
494 const int basic_stringstream_wchar_vbtable1
[] = {0, sizeof(basic_stringstream_wchar
)};
495 /* ??_8?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B?$basic_ostream@_WU?$char_traits@_W@std@@@1@@ */
496 const int basic_stringstream_wchar_vbtable2
[] = {0, sizeof(basic_stringstream_wchar
)-FIELD_OFFSET(basic_stringstream_wchar
, base
.base2
)};
497 /* ??_7?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
498 extern const vtable_ptr MSVCP_basic_stringstream_wchar_vtable
;
500 /* ??_8?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B?$basic_istream@GU?$char_traits@G@std@@@1@@ */
501 const int basic_stringstream_short_vbtable1
[] = {0, sizeof(basic_stringstream_wchar
)};
502 /* ??_8?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B?$basic_ostream@GU?$char_traits@G@std@@@1@@ */
503 const int basic_stringstream_short_vbtable2
[] = {0, sizeof(basic_stringstream_wchar
)-FIELD_OFFSET(basic_stringstream_wchar
, base
.base2
)};
504 /* ??_7?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
505 extern const vtable_ptr MSVCP_basic_stringstream_short_vtable
;
507 /* ??_7strstreambuf@std@@6B */
508 extern const vtable_ptr MSVCP_strstreambuf_vtable
;
510 static const int ostrstream_vbtable
[] = {0, sizeof(ostrstream
)};
511 extern const vtable_ptr MSVCP_ostrstream_vtable
;
513 static const int istrstream_vbtable
[] = {0, sizeof(istrstream
)};
515 static const int strstream_vbtable1
[] = {0, sizeof(strstream
)};
516 static const int strstream_vbtable2
[] = {0, sizeof(strstream
)-FIELD_OFFSET(strstream
, base
.base2
)};
517 extern const vtable_ptr MSVCP_strstream_vtable
;
519 DEFINE_RTTI_DATA0(iosb
, 0, ".?AV?$_Iosb@H@std@@")
520 DEFINE_RTTI_DATA1(ios_base
, 0, &iosb_rtti_base_descriptor
, ".?AV?$_Iosb@H@std@@")
521 DEFINE_RTTI_DATA2(basic_ios_char
, 0, &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
522 ".?AV?$basic_ios@DU?$char_traits@D@std@@@std@@")
523 DEFINE_RTTI_DATA2(basic_ios_wchar
, 0, &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
524 ".?AV?$basic_ios@_WU?$char_traits@_W@std@@@std@@")
525 DEFINE_RTTI_DATA2(basic_ios_short
, 0, &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
526 ".?AV?$basic_ios@GU?$char_traits@G@std@@@std@@")
527 DEFINE_RTTI_DATA0(basic_streambuf_char
, 0,
528 ".?AV?$basic_streambuf@DU?$char_traits@D@std@@@std@@")
529 DEFINE_RTTI_DATA0(basic_streambuf_wchar
, 0,
530 ".?AV?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@")
531 DEFINE_RTTI_DATA0(basic_streambuf_short
, 0,
532 ".?AV?$basic_streambuf@GU?$char_traits@G@std@@@std@@")
533 DEFINE_RTTI_DATA1(basic_filebuf_char
, 0, &basic_streambuf_char_rtti_base_descriptor
,
534 ".?AV?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@")
535 DEFINE_RTTI_DATA1(basic_filebuf_wchar
, 0, &basic_streambuf_wchar_rtti_base_descriptor
,
536 ".?AV?$basic_filebuf@GU?$char_traits@G@std@@@std@@")
537 DEFINE_RTTI_DATA1(basic_filebuf_short
, 0, &basic_streambuf_short_rtti_base_descriptor
,
538 ".?AV?$basic_filebuf@DU?$char_traits@D@std@@@std@@")
539 DEFINE_RTTI_DATA1(basic_stringbuf_char
, 0, &basic_streambuf_char_rtti_base_descriptor
,
540 ".?AV?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@")
541 DEFINE_RTTI_DATA1(basic_stringbuf_wchar
, 0, &basic_streambuf_wchar_rtti_base_descriptor
,
542 ".?AV?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@")
543 DEFINE_RTTI_DATA1(basic_stringbuf_short
, 0, &basic_streambuf_short_rtti_base_descriptor
,
544 ".?AV?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@")
545 DEFINE_RTTI_DATA3(basic_ostream_char
, sizeof(basic_ostream_char
), &basic_ios_char_rtti_base_descriptor
,
546 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
547 ".?AV?$basic_ostream@DU?$char_traits@D@std@@@std@@")
548 DEFINE_RTTI_DATA3(basic_ostream_wchar
, sizeof(basic_ostream_wchar
), &basic_ios_wchar_rtti_base_descriptor
,
549 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
550 ".?AV?$basic_ostream@_WU?$char_traits@_W@std@@@std@@")
551 DEFINE_RTTI_DATA3(basic_ostream_short
, sizeof(basic_ostream_wchar
), &basic_ios_short_rtti_base_descriptor
,
552 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
553 ".?AV?$basic_ostream@GU?$char_traits@G@std@@@std@@")
554 DEFINE_RTTI_DATA3(basic_istream_char
, sizeof(basic_istream_char
), &basic_ios_char_rtti_base_descriptor
,
555 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
556 ".?AV?$basic_istream@DU?$char_traits@D@std@@@std@@")
557 DEFINE_RTTI_DATA3(basic_istream_wchar
, sizeof(basic_istream_wchar
), &basic_ios_wchar_rtti_base_descriptor
,
558 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
559 ".?AV?$basic_istream@_WU?$char_traits@_W@std@@@std@@")
560 DEFINE_RTTI_DATA3(basic_istream_short
, sizeof(basic_istream_wchar
), &basic_ios_short_rtti_base_descriptor
,
561 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
562 ".?AV?$basic_istream@GU?$char_traits@G@std@@@std@@")
563 DEFINE_RTTI_DATA8(basic_iostream_char
, sizeof(basic_iostream_char
),
564 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
565 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
566 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
567 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
568 ".?AV?$basic_iostream@DU?$char_traits@D@std@@@std@@")
569 DEFINE_RTTI_DATA8(basic_iostream_wchar
, sizeof(basic_iostream_wchar
),
570 &basic_istream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
571 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
572 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
573 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
574 ".?AV?$basic_iostream@_WU?$char_traits@_W@std@@@std@@")
575 DEFINE_RTTI_DATA8(basic_iostream_short
, sizeof(basic_iostream_wchar
),
576 &basic_istream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
577 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
578 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
579 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
580 ".?AV?$basic_iostream@GU?$char_traits@G@std@@@std@@")
581 DEFINE_RTTI_DATA4(basic_ofstream_char
, sizeof(basic_ofstream_char
),
582 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
583 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
584 ".?AV?$basic_ofstream@DU?$char_traits@D@std@@@std@@")
585 DEFINE_RTTI_DATA4(basic_ofstream_wchar
, sizeof(basic_ofstream_wchar
),
586 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
587 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
588 ".?AV?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@")
589 DEFINE_RTTI_DATA4(basic_ofstream_short
, sizeof(basic_ofstream_wchar
),
590 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
591 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
592 ".?AV?$basic_ofstream@GU?$char_traits@G@std@@@std@@")
593 DEFINE_RTTI_DATA4(basic_ifstream_char
, sizeof(basic_ifstream_char
),
594 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
595 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
596 ".?AV?$basic_ifstream@DU?$char_traits@D@std@@@std@@")
597 DEFINE_RTTI_DATA4(basic_ifstream_wchar
, sizeof(basic_ifstream_wchar
),
598 &basic_istream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
599 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
600 ".?AV?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@")
601 DEFINE_RTTI_DATA4(basic_ifstream_short
, sizeof(basic_ifstream_wchar
),
602 &basic_istream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
603 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
604 ".?AV?$basic_ifstream@GU?$char_traits@G@std@@@std@@")
605 DEFINE_RTTI_DATA8(basic_fstream_char
, sizeof(basic_fstream_char
),
606 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
607 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
608 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
609 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
610 ".?AV?$basic_fstream@DU?$char_traits@D@std@@@std@@")
611 DEFINE_RTTI_DATA8(basic_fstream_wchar
, sizeof(basic_fstream_wchar
),
612 &basic_istream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
613 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
614 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
615 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
616 ".?AV?$basic_fstream@_WU?$char_traits@_W@std@@@std@@")
617 DEFINE_RTTI_DATA8(basic_fstream_short
, sizeof(basic_fstream_wchar
),
618 &basic_istream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
619 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
620 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
621 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
622 ".?AV?$basic_fstream@GU?$char_traits@G@std@@@std@@")
623 DEFINE_RTTI_DATA4(basic_ostringstream_char
, sizeof(basic_ostringstream_char
),
624 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
625 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
626 ".?AV?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@")
627 DEFINE_RTTI_DATA4(basic_ostringstream_wchar
, sizeof(basic_ostringstream_wchar
),
628 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
629 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
630 ".?AV?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@")
631 DEFINE_RTTI_DATA4(basic_ostringstream_short
, sizeof(basic_ostringstream_wchar
),
632 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
633 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
634 ".?AV?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@")
635 DEFINE_RTTI_DATA4(basic_istringstream_char
, sizeof(basic_istringstream_char
),
636 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
637 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
638 ".?AV?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@")
639 DEFINE_RTTI_DATA4(basic_istringstream_wchar
, sizeof(basic_istringstream_wchar
),
640 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
641 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
642 ".?AV?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@")
643 DEFINE_RTTI_DATA4(basic_istringstream_short
, sizeof(basic_istringstream_wchar
),
644 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
645 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
646 ".?AV?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@")
647 DEFINE_RTTI_DATA8(basic_stringstream_char
, sizeof(basic_stringstream_char
),
648 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
649 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
650 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
651 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
652 ".?AV?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@")
653 DEFINE_RTTI_DATA8(basic_stringstream_wchar
, sizeof(basic_stringstream_wchar
),
654 &basic_istream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
655 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
656 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
657 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
658 ".?AV?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@")
659 DEFINE_RTTI_DATA8(basic_stringstream_short
, sizeof(basic_stringstream_wchar
),
660 &basic_istream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
661 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
662 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
663 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
664 ".?AV?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@")
665 DEFINE_RTTI_DATA1(strstreambuf
, sizeof(strstreambuf
),
666 &basic_streambuf_char_rtti_base_descriptor
, ".?AVstrstreambuf@std@@")
667 DEFINE_RTTI_DATA4(ostrstream
, sizeof(ostrstream
),
668 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
669 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
670 "?AVostrstream@std@@")
671 DEFINE_RTTI_DATA8(strstream
, sizeof(strstream
),
672 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
673 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
674 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
675 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
676 "?AVstrstream@std@@")
678 __ASM_BLOCK_BEGIN(ios_vtables
)
680 VTABLE_ADD_FUNC(iosb_vector_dtor
));
681 __ASM_VTABLE(ios_base
,
682 VTABLE_ADD_FUNC(ios_base_vector_dtor
));
683 __ASM_VTABLE(basic_ios_char
,
684 VTABLE_ADD_FUNC(basic_ios_char_vector_dtor
));
685 __ASM_VTABLE(basic_ios_wchar
,
686 VTABLE_ADD_FUNC(basic_ios_wchar_vector_dtor
));
687 __ASM_VTABLE(basic_ios_short
,
688 VTABLE_ADD_FUNC(basic_ios_wchar_vector_dtor
));
689 __ASM_VTABLE(basic_streambuf_char
,
690 VTABLE_ADD_FUNC(basic_streambuf_char_vector_dtor
)
691 #if _MSVCP_VER >= 100
692 VTABLE_ADD_FUNC(basic_streambuf_char__Lock
)
693 VTABLE_ADD_FUNC(basic_streambuf_char__Unlock
)
695 VTABLE_ADD_FUNC(basic_streambuf_char_overflow
)
696 VTABLE_ADD_FUNC(basic_streambuf_char_pbackfail
)
697 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc
)
698 VTABLE_ADD_FUNC(basic_streambuf_char_underflow
)
699 VTABLE_ADD_FUNC(basic_streambuf_char_uflow
)
700 VTABLE_ADD_FUNC(basic_streambuf_char_xsgetn
)
701 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
702 VTABLE_ADD_FUNC(basic_streambuf_char__Xsgetn_s
)
704 VTABLE_ADD_FUNC(basic_streambuf_char_xsputn
)
705 VTABLE_ADD_FUNC(basic_streambuf_char_seekoff
)
706 VTABLE_ADD_FUNC(basic_streambuf_char_seekpos
)
707 VTABLE_ADD_FUNC(basic_streambuf_char_setbuf
)
708 VTABLE_ADD_FUNC(basic_streambuf_char_sync
)
709 VTABLE_ADD_FUNC(basic_streambuf_char_imbue
));
710 __ASM_VTABLE(basic_streambuf_wchar
,
711 VTABLE_ADD_FUNC(basic_streambuf_wchar_vector_dtor
)
712 #if _MSVCP_VER >= 100
713 VTABLE_ADD_FUNC(basic_streambuf_wchar__Lock
)
714 VTABLE_ADD_FUNC(basic_streambuf_wchar__Unlock
)
716 VTABLE_ADD_FUNC(basic_streambuf_wchar_overflow
)
717 VTABLE_ADD_FUNC(basic_streambuf_wchar_pbackfail
)
718 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
719 VTABLE_ADD_FUNC(basic_streambuf_wchar_underflow
)
720 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow
)
721 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
722 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
723 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
725 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
726 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekoff
)
727 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekpos
)
728 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf
)
729 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync
)
730 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
731 __ASM_VTABLE(basic_streambuf_short
,
732 VTABLE_ADD_FUNC(basic_streambuf_wchar_vector_dtor
)
733 #if _MSVCP_VER >= 100
734 VTABLE_ADD_FUNC(basic_streambuf_wchar__Lock
)
735 VTABLE_ADD_FUNC(basic_streambuf_wchar__Unlock
)
737 VTABLE_ADD_FUNC(basic_streambuf_wchar_overflow
)
738 VTABLE_ADD_FUNC(basic_streambuf_wchar_pbackfail
)
739 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
740 VTABLE_ADD_FUNC(basic_streambuf_wchar_underflow
)
741 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow
)
742 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
743 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
744 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
746 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
747 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekoff
)
748 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekpos
)
749 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf
)
750 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync
)
751 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
752 __ASM_VTABLE(basic_filebuf_char
,
753 VTABLE_ADD_FUNC(basic_filebuf_char_vector_dtor
)
754 #if _MSVCP_VER >= 100
755 VTABLE_ADD_FUNC(basic_streambuf_char__Lock
)
756 VTABLE_ADD_FUNC(basic_streambuf_char__Unlock
)
758 VTABLE_ADD_FUNC(basic_filebuf_char_overflow
)
759 VTABLE_ADD_FUNC(basic_filebuf_char_pbackfail
)
760 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc
)
761 VTABLE_ADD_FUNC(basic_filebuf_char_underflow
)
762 VTABLE_ADD_FUNC(basic_filebuf_char_uflow
)
763 VTABLE_ADD_FUNC(basic_streambuf_char_xsgetn
)
764 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
765 VTABLE_ADD_FUNC(basic_streambuf_char__Xsgetn_s
)
767 VTABLE_ADD_FUNC(basic_streambuf_char_xsputn
)
768 VTABLE_ADD_FUNC(basic_filebuf_char_seekoff
)
769 VTABLE_ADD_FUNC(basic_filebuf_char_seekpos
)
770 VTABLE_ADD_FUNC(basic_filebuf_char_setbuf
)
771 VTABLE_ADD_FUNC(basic_filebuf_char_sync
)
772 VTABLE_ADD_FUNC(basic_streambuf_char_imbue
));
773 __ASM_VTABLE(basic_filebuf_wchar
,
774 VTABLE_ADD_FUNC(basic_filebuf_wchar_vector_dtor
)
775 #if _MSVCP_VER >= 100
776 VTABLE_ADD_FUNC(basic_streambuf_wchar__Lock
)
777 VTABLE_ADD_FUNC(basic_streambuf_wchar__Unlock
)
779 VTABLE_ADD_FUNC(basic_filebuf_wchar_overflow
)
780 VTABLE_ADD_FUNC(basic_filebuf_wchar_pbackfail
)
781 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
782 VTABLE_ADD_FUNC(basic_filebuf_wchar_underflow
)
783 VTABLE_ADD_FUNC(basic_filebuf_wchar_uflow
)
784 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
785 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
786 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
788 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
789 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekoff
)
790 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekpos
)
791 VTABLE_ADD_FUNC(basic_filebuf_wchar_setbuf
)
792 VTABLE_ADD_FUNC(basic_filebuf_wchar_sync
)
793 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
794 __ASM_VTABLE(basic_filebuf_short
,
795 VTABLE_ADD_FUNC(basic_filebuf_wchar_vector_dtor
)
796 #if _MSVCP_VER >= 100
797 VTABLE_ADD_FUNC(basic_streambuf_wchar__Lock
)
798 VTABLE_ADD_FUNC(basic_streambuf_wchar__Unlock
)
800 VTABLE_ADD_FUNC(basic_filebuf_wchar_overflow
)
801 VTABLE_ADD_FUNC(basic_filebuf_wchar_pbackfail
)
802 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
803 VTABLE_ADD_FUNC(basic_filebuf_wchar_underflow
)
804 VTABLE_ADD_FUNC(basic_filebuf_wchar_uflow
)
805 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
806 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
807 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
809 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
810 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekoff
)
811 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekpos
)
812 VTABLE_ADD_FUNC(basic_filebuf_short_setbuf
)
813 VTABLE_ADD_FUNC(basic_filebuf_wchar_sync
)
814 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
815 __ASM_VTABLE(basic_stringbuf_char
,
816 VTABLE_ADD_FUNC(basic_stringbuf_char_vector_dtor
)
817 VTABLE_ADD_FUNC(basic_stringbuf_char_overflow
)
818 VTABLE_ADD_FUNC(basic_stringbuf_char_pbackfail
)
819 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc
)
820 VTABLE_ADD_FUNC(basic_stringbuf_char_underflow
)
821 VTABLE_ADD_FUNC(basic_streambuf_char_uflow
)
822 VTABLE_ADD_FUNC(basic_streambuf_char_xsgetn
)
823 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
824 VTABLE_ADD_FUNC(basic_streambuf_char__Xsgetn_s
)
826 VTABLE_ADD_FUNC(basic_streambuf_char_xsputn
)
827 VTABLE_ADD_FUNC(basic_stringbuf_char_seekoff
)
828 VTABLE_ADD_FUNC(basic_stringbuf_char_seekpos
)
829 VTABLE_ADD_FUNC(basic_streambuf_char_setbuf
)
830 VTABLE_ADD_FUNC(basic_streambuf_char_sync
)
831 VTABLE_ADD_FUNC(basic_streambuf_char_imbue
));
832 __ASM_VTABLE(basic_stringbuf_wchar
,
833 VTABLE_ADD_FUNC(basic_stringbuf_wchar_vector_dtor
)
834 VTABLE_ADD_FUNC(basic_stringbuf_wchar_overflow
)
835 VTABLE_ADD_FUNC(basic_stringbuf_wchar_pbackfail
)
836 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
837 VTABLE_ADD_FUNC(basic_stringbuf_wchar_underflow
)
838 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow
)
839 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
840 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
841 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
843 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
844 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekoff
)
845 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekpos
)
846 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf
)
847 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync
)
848 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
849 __ASM_VTABLE(basic_stringbuf_short
,
850 VTABLE_ADD_FUNC(basic_stringbuf_wchar_vector_dtor
)
851 VTABLE_ADD_FUNC(basic_stringbuf_wchar_overflow
)
852 VTABLE_ADD_FUNC(basic_stringbuf_wchar_pbackfail
)
853 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
854 VTABLE_ADD_FUNC(basic_stringbuf_wchar_underflow
)
855 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow
)
856 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
857 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
858 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s
)
860 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
861 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekoff
)
862 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekpos
)
863 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf
)
864 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync
)
865 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
866 __ASM_VTABLE(basic_ostream_char
,
867 VTABLE_ADD_FUNC(basic_ostream_char_vector_dtor
));
868 __ASM_VTABLE(basic_ostream_wchar
,
869 VTABLE_ADD_FUNC(basic_ostream_wchar_vector_dtor
));
870 __ASM_VTABLE(basic_ostream_short
,
871 VTABLE_ADD_FUNC(basic_ostream_wchar_vector_dtor
));
872 __ASM_VTABLE(basic_istream_char
,
873 VTABLE_ADD_FUNC(basic_istream_char_vector_dtor
));
874 __ASM_VTABLE(basic_istream_wchar
,
875 VTABLE_ADD_FUNC(basic_istream_wchar_vector_dtor
));
876 __ASM_VTABLE(basic_istream_short
,
877 VTABLE_ADD_FUNC(basic_istream_wchar_vector_dtor
));
878 __ASM_VTABLE(basic_iostream_char
,
879 VTABLE_ADD_FUNC(basic_iostream_char_vector_dtor
));
880 __ASM_VTABLE(basic_iostream_wchar
,
881 VTABLE_ADD_FUNC(basic_iostream_wchar_vector_dtor
));
882 __ASM_VTABLE(basic_iostream_short
,
883 VTABLE_ADD_FUNC(basic_iostream_wchar_vector_dtor
));
884 __ASM_VTABLE(basic_ofstream_char
,
885 VTABLE_ADD_FUNC(basic_ofstream_char_vector_dtor
));
886 __ASM_VTABLE(basic_ofstream_wchar
,
887 VTABLE_ADD_FUNC(basic_ofstream_wchar_vector_dtor
));
888 __ASM_VTABLE(basic_ofstream_short
,
889 VTABLE_ADD_FUNC(basic_ofstream_wchar_vector_dtor
));
890 __ASM_VTABLE(basic_ifstream_char
,
891 VTABLE_ADD_FUNC(basic_ifstream_char_vector_dtor
));
892 __ASM_VTABLE(basic_ifstream_wchar
,
893 VTABLE_ADD_FUNC(basic_ifstream_wchar_vector_dtor
));
894 __ASM_VTABLE(basic_ifstream_short
,
895 VTABLE_ADD_FUNC(basic_ifstream_wchar_vector_dtor
));
896 __ASM_VTABLE(basic_fstream_char
,
897 VTABLE_ADD_FUNC(basic_fstream_char_vector_dtor
));
898 __ASM_VTABLE(basic_fstream_wchar
,
899 VTABLE_ADD_FUNC(basic_fstream_wchar_vector_dtor
));
900 __ASM_VTABLE(basic_fstream_short
,
901 VTABLE_ADD_FUNC(basic_fstream_wchar_vector_dtor
));
902 __ASM_VTABLE(basic_ostringstream_char
,
903 VTABLE_ADD_FUNC(basic_ostringstream_char_vector_dtor
));
904 __ASM_VTABLE(basic_ostringstream_wchar
,
905 VTABLE_ADD_FUNC(basic_ostringstream_wchar_vector_dtor
));
906 __ASM_VTABLE(basic_ostringstream_short
,
907 VTABLE_ADD_FUNC(basic_ostringstream_wchar_vector_dtor
));
908 __ASM_VTABLE(basic_istringstream_char
,
909 VTABLE_ADD_FUNC(basic_istringstream_char_vector_dtor
));
910 __ASM_VTABLE(basic_istringstream_wchar
,
911 VTABLE_ADD_FUNC(basic_istringstream_wchar_vector_dtor
));
912 __ASM_VTABLE(basic_istringstream_short
,
913 VTABLE_ADD_FUNC(basic_istringstream_wchar_vector_dtor
));
914 __ASM_VTABLE(basic_stringstream_char
,
915 VTABLE_ADD_FUNC(basic_stringstream_char_vector_dtor
));
916 __ASM_VTABLE(basic_stringstream_wchar
,
917 VTABLE_ADD_FUNC(basic_stringstream_wchar_vector_dtor
));
918 __ASM_VTABLE(basic_stringstream_short
,
919 VTABLE_ADD_FUNC(basic_stringstream_wchar_vector_dtor
));
920 __ASM_VTABLE(strstreambuf
,
921 VTABLE_ADD_FUNC(strstreambuf_vector_dtor
)
922 VTABLE_ADD_FUNC(strstreambuf_overflow
)
923 VTABLE_ADD_FUNC(strstreambuf_pbackfail
)
924 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc
)
925 VTABLE_ADD_FUNC(strstreambuf_underflow
)
926 VTABLE_ADD_FUNC(basic_streambuf_char_uflow
)
927 VTABLE_ADD_FUNC(basic_streambuf_char_xsgetn
)
928 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
929 VTABLE_ADD_FUNC(basic_streambuf_char__Xsgetn_s
)
931 VTABLE_ADD_FUNC(basic_streambuf_char_xsputn
)
932 VTABLE_ADD_FUNC(strstreambuf_seekoff
)
933 VTABLE_ADD_FUNC(strstreambuf_seekpos
)
934 VTABLE_ADD_FUNC(basic_streambuf_char_setbuf
)
935 VTABLE_ADD_FUNC(basic_streambuf_char_sync
)
936 VTABLE_ADD_FUNC(basic_streambuf_char_imbue
));
937 __ASM_VTABLE(ostrstream
,
938 VTABLE_ADD_FUNC(ostrstream_vector_dtor
));
939 __ASM_VTABLE(strstream
,
940 VTABLE_ADD_FUNC(strstream_vector_dtor
));
943 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD00@Z */
944 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD00@Z */
945 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setp_next
, 16)
946 void __thiscall
basic_streambuf_char_setp_next(basic_streambuf_char
*this, char *first
, char *next
, char *last
)
948 TRACE("(%p %p %p %p)\n", this, first
, next
, last
);
952 this->wsize
= last
-next
;
955 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD0@Z */
956 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD0@Z */
957 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setp
, 12)
958 void __thiscall
basic_streambuf_char_setp(basic_streambuf_char
*this, char *first
, char *last
)
960 basic_streambuf_char_setp_next(this, first
, first
, last
);
963 /* ?setg@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD00@Z */
964 /* ?setg@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD00@Z */
965 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setg
, 16)
966 void __thiscall
basic_streambuf_char_setg(basic_streambuf_char
*this, char *first
, char *next
, char *last
)
968 TRACE("(%p %p %p %p)\n", this, first
, next
, last
);
972 this->rsize
= last
-next
;
975 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXXZ */
976 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXXZ */
977 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Init_empty
, 4)
978 void __thiscall
basic_streambuf_char__Init_empty(basic_streambuf_char
*this)
980 TRACE("(%p)\n", this);
982 this->prbuf
= &this->rbuf
;
983 this->pwbuf
= &this->wbuf
;
984 this->prpos
= &this->rpos
;
985 this->pwpos
= &this->wpos
;
986 this->prsize
= &this->rsize
;
987 this->pwsize
= &this->wsize
;
989 basic_streambuf_char_setp(this, NULL
, NULL
);
990 basic_streambuf_char_setg(this, NULL
, NULL
, NULL
);
993 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAE@W4_Uninitialized@1@@Z */
994 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAA@W4_Uninitialized@1@@Z */
995 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_ctor_uninitialized
, 8)
996 basic_streambuf_char
* __thiscall
basic_streambuf_char_ctor_uninitialized(basic_streambuf_char
*this, int uninitialized
)
998 TRACE("(%p %d)\n", this, uninitialized
);
999 this->vtable
= &MSVCP_basic_streambuf_char_vtable
;
1000 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
1001 mutex_ctor(&this->lock
);
1006 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAE@XZ */
1007 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAA@XZ */
1008 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_ctor
, 4)
1009 basic_streambuf_char
* __thiscall
basic_streambuf_char_ctor(basic_streambuf_char
*this)
1011 TRACE("(%p)\n", this);
1013 this->vtable
= &MSVCP_basic_streambuf_char_vtable
;
1014 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
1015 mutex_ctor(&this->lock
);
1017 #if _MSVCP_VER >= 70
1018 this->loc
= MSVCRT_operator_new(sizeof(locale
));
1020 locale_ctor(IOS_LOCALE(this));
1021 basic_streambuf_char__Init_empty(this);
1026 /* ??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UAE@XZ */
1027 /* ??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UEAA@XZ */
1028 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_dtor
, 4)
1029 void __thiscall
basic_streambuf_char_dtor(basic_streambuf_char
*this)
1031 TRACE("(%p)\n", this);
1033 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
1034 mutex_dtor(&this->lock
);
1036 locale_dtor(IOS_LOCALE(this));
1037 #if _MSVCP_VER >= 70
1038 MSVCRT_operator_delete(this->loc
);
1042 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_vector_dtor
, 8)
1043 basic_streambuf_char
* __thiscall
basic_streambuf_char_vector_dtor(basic_streambuf_char
*this, unsigned int flags
)
1045 TRACE("(%p %x)\n", this, flags
);
1047 /* we have an array, with the number of elements stored before the first object */
1048 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
1050 for(i
=*ptr
-1; i
>=0; i
--)
1051 basic_streambuf_char_dtor(this+i
);
1052 MSVCRT_operator_delete(ptr
);
1054 basic_streambuf_char_dtor(this);
1056 MSVCRT_operator_delete(this);
1062 /* ?_Gnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEHXZ */
1063 /* ?_Gnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBA_JXZ */
1064 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Gnavail
, 4)
1065 streamsize __thiscall
basic_streambuf_char__Gnavail(const basic_streambuf_char
*this)
1067 TRACE("(%p)\n", this);
1068 return *this->prpos
? *this->prsize
: 0;
1071 /* ?_Gndec@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
1072 /* ?_Gndec@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
1073 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Gndec
, 4)
1074 char* __thiscall
basic_streambuf_char__Gndec(basic_streambuf_char
*this)
1076 TRACE("(%p)\n", this);
1079 return *this->prpos
;
1082 /* ?_Gninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
1083 /* ?_Gninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
1084 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Gninc
, 4)
1085 char* __thiscall
basic_streambuf_char__Gninc(basic_streambuf_char
*this)
1087 TRACE("(%p)\n", this);
1089 return (*this->prpos
)++;
1092 /* ?_Gnpreinc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
1093 /* ?_Gnpreinc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
1094 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Gnpreinc
, 4)
1095 char* __thiscall
basic_streambuf_char__Gnpreinc(basic_streambuf_char
*this)
1097 TRACE("(%p)\n", this);
1100 return *this->prpos
;
1103 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAPAD0PAH001@Z */
1104 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAPEAD0PEAH001@Z */
1105 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Init
, 28)
1106 void __thiscall
basic_streambuf_char__Init(basic_streambuf_char
*this, char **gf
, char **gn
, int *gc
, char **pf
, char **pn
, int *pc
)
1108 TRACE("(%p %p %p %p %p %p %p)\n", this, gf
, gn
, gc
, pf
, pn
, pc
);
1118 /* ?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
1119 /* ?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
1120 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Lock
, 4)
1121 #if _MSVCP_VER >= 100
1122 #define call_basic_streambuf_char__Lock(this) CALL_VTBL_FUNC(this, 4, void, (basic_streambuf_char*), (this))
1124 #define call_basic_streambuf_char__Lock(this) basic_streambuf_char__Lock(this)
1126 void __thiscall
basic_streambuf_char__Lock(basic_streambuf_char
*this)
1128 TRACE("(%p)\n", this);
1129 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
1130 mutex_lock(&this->lock
);
1134 /* ?_Pnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEHXZ */
1135 /* ?_Pnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBA_JXZ */
1136 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Pnavail
, 4)
1137 streamsize __thiscall
basic_streambuf_char__Pnavail(const basic_streambuf_char
*this)
1139 TRACE("(%p)\n", this);
1140 return *this->pwpos
? *this->pwsize
: 0;
1143 /* ?_Pninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
1144 /* ?_Pninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
1145 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Pninc
, 4)
1146 char* __thiscall
basic_streambuf_char__Pninc(basic_streambuf_char
*this)
1148 TRACE("(%p)\n", this);
1150 return (*this->pwpos
)++;
1153 /* ?underflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1154 /* ?underflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
1155 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_underflow
, 4)
1156 #if _MSVCP_VER >= 100
1157 #define call_basic_streambuf_char_underflow(this) CALL_VTBL_FUNC(this, 24, int, (basic_streambuf_char*), (this))
1159 #define call_basic_streambuf_char_underflow(this) CALL_VTBL_FUNC(this, 16, int, (basic_streambuf_char*), (this))
1161 int __thiscall
basic_streambuf_char_underflow(basic_streambuf_char
*this)
1163 TRACE("(%p)\n", this);
1167 /* ?uflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1168 /* ?uflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
1169 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_uflow
, 4)
1170 #if _MSVCP_VER >= 100
1171 #define call_basic_streambuf_char_uflow(this) CALL_VTBL_FUNC(this, 28, int, (basic_streambuf_char*), (this))
1173 #define call_basic_streambuf_char_uflow(this) CALL_VTBL_FUNC(this, 20, int, (basic_streambuf_char*), (this))
1175 int __thiscall
basic_streambuf_char_uflow(basic_streambuf_char
*this)
1179 TRACE("(%p)\n", this);
1181 if(call_basic_streambuf_char_underflow(this)==EOF
)
1184 ret
= (unsigned char)**this->prpos
;
1190 /* ?_Xsgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHPADIH@Z */
1191 /* ?_Xsgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEAD_K_J@Z */
1192 #if STREAMSIZE_BITS == 64
1193 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Xsgetn_s
, 20)
1195 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Xsgetn_s
, 16)
1197 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
1198 #define call_basic_streambuf_char__Xsgetn_s(this, ptr, size, count) CALL_VTBL_FUNC(this, 28, \
1199 streamsize, (basic_streambuf_char*, char*, MSVCP_size_t, streamsize), (this, ptr, size, count))
1201 #define call_basic_streambuf_char__Xsgetn_s(this, ptr, size, count) basic_streambuf_char__Xsgetn_s(this, ptr, size, count)
1203 streamsize __thiscall
basic_streambuf_char__Xsgetn_s(basic_streambuf_char
*this, char *ptr
, MSVCP_size_t size
, streamsize count
)
1205 streamsize copied
, chunk
;
1208 TRACE("(%p %p %lu %s)\n", this, ptr
, size
, wine_dbgstr_longlong(count
));
1210 for(copied
=0; copied
<count
&& size
;) {
1211 chunk
= basic_streambuf_char__Gnavail(this);
1212 if(chunk
> count
-copied
)
1213 chunk
= count
-copied
;
1216 memcpy_s(ptr
+copied
, size
, *this->prpos
, chunk
);
1217 *this->prpos
+= chunk
;
1218 *this->prsize
-= chunk
;
1221 }else if((c
= call_basic_streambuf_char_uflow(this)) != EOF
) {
1233 /* ?_Sgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPADIH@Z */
1234 /* ?_Sgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_K_J@Z */
1235 #if STREAMSIZE_BITS == 64
1236 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Sgetn_s
, 20)
1238 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Sgetn_s
, 16)
1240 streamsize __thiscall
basic_streambuf_char__Sgetn_s(basic_streambuf_char
*this, char *ptr
, MSVCP_size_t size
, streamsize count
)
1242 TRACE("(%p %p %lu %s)\n", this, ptr
, size
, wine_dbgstr_longlong(count
));
1243 return call_basic_streambuf_char__Xsgetn_s(this, ptr
, size
, count
);
1246 /* ?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
1247 /* ?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
1248 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Unlock
, 4)
1249 #if _MSVCP_VER >= 100
1250 #define call_basic_streambuf_char__Unlock(this) CALL_VTBL_FUNC(this, 8, void, (basic_streambuf_char*), (this))
1252 #define call_basic_streambuf_char__Unlock(this) basic_streambuf_char__Unlock(this)
1254 void __thiscall
basic_streambuf_char__Unlock(basic_streambuf_char
*this)
1256 TRACE("(%p)\n", this);
1257 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
1258 mutex_unlock(&this->lock
);
1262 /* ?eback@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1263 /* ?eback@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1264 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_eback
, 4)
1265 char* __thiscall
basic_streambuf_char_eback(const basic_streambuf_char
*this)
1267 TRACE("(%p)\n", this);
1268 return *this->prbuf
;
1271 /* ?gptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1272 /* ?gptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1273 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_gptr
, 4)
1274 char* __thiscall
basic_streambuf_char_gptr(const basic_streambuf_char
*this)
1276 TRACE("(%p)\n", this);
1277 return *this->prpos
;
1280 /* ?egptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1281 /* ?egptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1282 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_egptr
, 4)
1283 char* __thiscall
basic_streambuf_char_egptr(const basic_streambuf_char
*this)
1285 TRACE("(%p)\n", this);
1286 return *this->prpos
+*this->prsize
;
1289 /* ?epptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1290 /* ?epptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1291 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_epptr
, 4)
1292 char* __thiscall
basic_streambuf_char_epptr(const basic_streambuf_char
*this)
1294 TRACE("(%p)\n", this);
1295 return *this->pwpos
+*this->pwsize
;
1298 /* ?gbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXH@Z */
1299 /* ?gbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXH@Z */
1300 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_gbump
, 8)
1301 void __thiscall
basic_streambuf_char_gbump(basic_streambuf_char
*this, int off
)
1303 TRACE("(%p %d)\n", this, off
);
1304 *this->prpos
+= off
;
1305 *this->prsize
-= off
;
1308 /* ?getloc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AVlocale@2@XZ */
1309 /* ?getloc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QBE?AVlocale@2@XZ */
1310 /* ?getloc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?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
, IOS_LOCALE(this));
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
, IOS_LOCALE(this), sizeof(locale
));
1397 call_basic_streambuf_char_imbue(this, loc
);
1398 locale_copy_ctor(IOS_LOCALE(this), loc
);
1402 /* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
1403 /* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
1404 /* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
1405 /* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
1406 #if STREAMOFF_BITS == 64
1407 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_seekoff
, 24)
1409 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_seekoff
, 20)
1411 #if _MSVCP_VER >= 100
1412 #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))
1413 #elif _MSVCP_VER >= 80
1414 #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))
1416 #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))
1418 fpos_int
* __thiscall
basic_streambuf_char_seekoff(basic_streambuf_char
*this,
1419 fpos_int
*ret
, streamoff off
, int way
, int mode
)
1421 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
1428 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JHH@Z */
1429 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JHH@Z */
1430 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JFF@Z */
1431 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JFF@Z */
1432 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
1433 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
1434 #if STREAMOFF_BITS == 64
1435 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff
, 24)
1437 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff
, 20)
1439 fpos_int
* __thiscall
basic_streambuf_char_pubseekoff(basic_streambuf_char
*this,
1440 fpos_int
*ret
, streamoff off
, int way
, int mode
)
1442 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
1443 return call_basic_streambuf_char_seekoff(this, ret
, off
, way
, mode
);
1446 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JII@Z */
1447 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JII@Z */
1448 #if STREAMOFF_BITS == 64
1449 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff_old
, 24)
1451 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff_old
, 20)
1453 fpos_int
* __thiscall
basic_streambuf_char_pubseekoff_old(basic_streambuf_char
*this,
1454 fpos_int
*ret
, streamoff off
, unsigned int way
, unsigned int mode
)
1456 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
1457 return basic_streambuf_char_pubseekoff(this, ret
, off
, way
, mode
);
1460 /* ?seekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
1461 /* ?seekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
1462 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_seekpos
, 36)
1463 #if _MSVCP_VER >= 100
1464 #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))
1465 #elif _MSVCP_VER >= 80
1466 #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))
1468 #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))
1470 fpos_int
* __thiscall
basic_streambuf_char_seekpos(basic_streambuf_char
*this,
1471 fpos_int
*ret
, fpos_int pos
, int mode
)
1473 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
1480 /* ?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@V32@H@Z */
1481 /* ?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@V32@H@Z */
1482 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekpos
, 36)
1483 fpos_int
* __thiscall
basic_streambuf_char_pubseekpos(basic_streambuf_char
*this,
1484 fpos_int
*ret
, fpos_int pos
, int mode
)
1486 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
1487 return call_basic_streambuf_char_seekpos(this, ret
, pos
, mode
);
1490 /* ?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@V32@I@Z */
1491 /* ?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@V32@I@Z */
1492 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekpos_old
, 36)
1493 fpos_int
* __thiscall
basic_streambuf_char_pubseekpos_old(basic_streambuf_char
*this,
1494 fpos_int
*ret
, fpos_int pos
, unsigned int mode
)
1496 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
1497 return basic_streambuf_char_pubseekpos(this, ret
, pos
, mode
);
1500 /* ?setbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEPAV12@PADH@Z */
1501 /* ?setbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAPEAV12@PEAD_J@Z */
1502 #if STREAMSIZE_BITS == 64
1503 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setbuf
, 16)
1505 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setbuf
, 12)
1507 #if _MSVCP_VER >= 100
1508 #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))
1509 #elif _MSVCP_VER >= 80
1510 #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))
1512 #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))
1514 basic_streambuf_char
* __thiscall
basic_streambuf_char_setbuf(basic_streambuf_char
*this, char *buf
, streamsize count
)
1516 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
1520 /* ?pubsetbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PADH@Z */
1521 /* ?pubsetbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEAD_J@Z */
1522 #if STREAMSIZE_BITS == 64
1523 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubsetbuf
, 16)
1525 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubsetbuf
, 12)
1527 basic_streambuf_char
* __thiscall
basic_streambuf_char_pubsetbuf(basic_streambuf_char
*this, char *buf
, streamsize count
)
1529 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
1530 return call_basic_streambuf_char_setbuf(this, buf
, count
);
1533 /* ?sync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1534 /* ?sync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
1535 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sync
, 4)
1536 #if _MSVCP_VER >= 100
1537 #define call_basic_streambuf_char_sync(this) CALL_VTBL_FUNC(this, 52, int, (basic_streambuf_char*), (this))
1538 #elif _MSVCP_VER >= 80
1539 #define call_basic_streambuf_char_sync(this) CALL_VTBL_FUNC(this, 48, int, (basic_streambuf_char*), (this))
1541 #define call_basic_streambuf_char_sync(this) CALL_VTBL_FUNC(this, 44, int, (basic_streambuf_char*), (this))
1543 int __thiscall
basic_streambuf_char_sync(basic_streambuf_char
*this)
1545 TRACE("(%p)\n", this);
1549 /* ?pubsync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1550 /* ?pubsync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1551 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubsync
, 4)
1552 int __thiscall
basic_streambuf_char_pubsync(basic_streambuf_char
*this)
1554 TRACE("(%p)\n", this);
1555 return call_basic_streambuf_char_sync(this);
1558 /* ?sgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPADH@Z */
1559 /* ?sgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_J@Z */
1560 #if STREAMSIZE_BITS == 64
1561 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sgetn
, 16)
1563 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sgetn
, 12)
1565 streamsize __thiscall
basic_streambuf_char_sgetn(basic_streambuf_char
*this, char *ptr
, streamsize count
)
1567 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
1568 return call_basic_streambuf_char__Xsgetn_s(this, ptr
, -1, count
);
1571 /* ?showmanyc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1572 /* ?showmanyc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JXZ */
1573 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_showmanyc
, 4)
1574 #if _MSVCP_VER >= 100
1575 #define call_basic_streambuf_char_showmanyc(this) CALL_VTBL_FUNC(this, 20, streamsize, (basic_streambuf_char*), (this))
1577 #define call_basic_streambuf_char_showmanyc(this) CALL_VTBL_FUNC(this, 12, streamsize, (basic_streambuf_char*), (this))
1579 streamsize __thiscall
basic_streambuf_char_showmanyc(basic_streambuf_char
*this)
1581 TRACE("(%p)\n", this);
1585 /* ?in_avail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1586 /* ?in_avail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JXZ */
1587 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_in_avail
, 4)
1588 streamsize __thiscall
basic_streambuf_char_in_avail(basic_streambuf_char
*this)
1592 TRACE("(%p)\n", this);
1594 ret
= basic_streambuf_char__Gnavail(this);
1595 return ret
? ret
: call_basic_streambuf_char_showmanyc(this);
1598 /* ?sputbackc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z */
1599 /* ?sputbackc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHD@Z */
1600 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputbackc
, 8)
1601 int __thiscall
basic_streambuf_char_sputbackc(basic_streambuf_char
*this, char ch
)
1603 TRACE("(%p %d)\n", this, ch
);
1604 if(*this->prpos
&& *this->prpos
>*this->prbuf
&& (*this->prpos
)[-1]==ch
) {
1607 return (unsigned char)ch
;
1610 return call_basic_streambuf_char_pbackfail(this, (unsigned char)ch
);
1613 /* ?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z */
1614 /* ?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHD@Z */
1615 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputc
, 8)
1616 int __thiscall
basic_streambuf_char_sputc(basic_streambuf_char
*this, char ch
)
1618 TRACE("(%p %d)\n", this, ch
);
1619 return basic_streambuf_char__Pnavail(this) ?
1620 (unsigned char)(*basic_streambuf_char__Pninc(this) = ch
) :
1621 call_basic_streambuf_char_overflow(this, (unsigned char)ch
);
1624 /* ?sungetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1625 /* ?sungetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1626 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sungetc
, 4)
1627 int __thiscall
basic_streambuf_char_sungetc(basic_streambuf_char
*this)
1629 TRACE("(%p)\n", this);
1630 if(*this->prpos
&& *this->prpos
>*this->prbuf
) {
1633 return (unsigned char)**this->prpos
;
1636 return call_basic_streambuf_char_pbackfail(this, EOF
);
1639 /* ?stossc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
1640 /* ?stossc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
1641 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_stossc
, 4)
1642 void __thiscall
basic_streambuf_char_stossc(basic_streambuf_char
*this)
1644 TRACE("(%p)\n", this);
1645 if(basic_streambuf_char__Gnavail(this))
1646 basic_streambuf_char__Gninc(this);
1648 call_basic_streambuf_char_uflow(this);
1651 /* ?sbumpc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1652 /* ?sbumpc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1653 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sbumpc
, 4)
1654 int __thiscall
basic_streambuf_char_sbumpc(basic_streambuf_char
*this)
1656 TRACE("(%p)\n", this);
1657 return basic_streambuf_char__Gnavail(this) ?
1658 (int)(unsigned char)*basic_streambuf_char__Gninc(this) : call_basic_streambuf_char_uflow(this);
1661 /* ?sgetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1662 /* ?sgetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1663 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sgetc
, 4)
1664 int __thiscall
basic_streambuf_char_sgetc(basic_streambuf_char
*this)
1666 TRACE("(%p)\n", this);
1667 return basic_streambuf_char__Gnavail(this) ?
1668 (int)(unsigned char)*basic_streambuf_char_gptr(this) : call_basic_streambuf_char_underflow(this);
1671 /* ?snextc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1672 /* ?snextc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1673 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_snextc
, 4)
1674 int __thiscall
basic_streambuf_char_snextc(basic_streambuf_char
*this)
1676 TRACE("(%p)\n", this);
1678 if(basic_streambuf_char__Gnavail(this) > 1)
1679 return (unsigned char)*basic_streambuf_char__Gnpreinc(this);
1680 return basic_streambuf_char_sbumpc(this)==EOF
?
1681 EOF
: basic_streambuf_char_sgetc(this);
1684 /* ?xsgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHPADH@Z */
1685 /* ?xsgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEAD_J@Z */
1686 #if STREAMSIZE_BITS == 64
1687 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsgetn
, 16)
1689 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsgetn
, 12)
1691 #if _MSVCP_VER >= 100
1692 #define call_basic_streambuf_char_xsgetn(this, ptr, count) CALL_VTBL_FUNC(this, 32, streamsize, (basic_streambuf_char*, char*, streamsize), (this, ptr, count))
1694 #define call_basic_streambuf_char_xsgetn(this, ptr, count) CALL_VTBL_FUNC(this, 24, streamsize, (basic_streambuf_char*, char*, streamsize), (this, ptr, count))
1696 streamsize __thiscall
basic_streambuf_char_xsgetn(basic_streambuf_char
*this, char *ptr
, streamsize count
)
1698 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
1699 return call_basic_streambuf_char__Xsgetn_s(this, ptr
, -1, count
);
1702 /* ?xsputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHPBDH@Z */
1703 /* ?xsputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEBD_J@Z */
1704 #if STREAMSIZE_BITS == 64
1705 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsputn
, 16)
1707 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsputn
, 12)
1709 #if _MSVCP_VER >= 100
1710 #define call_basic_streambuf_char_xsputn(this, ptr, count) CALL_VTBL_FUNC(this, 36, streamsize, (basic_streambuf_char*, const char*, streamsize), (this, ptr, count))
1711 #elif _MSVCP_VER >= 80
1712 #define call_basic_streambuf_char_xsputn(this, ptr, count) CALL_VTBL_FUNC(this, 32, streamsize, (basic_streambuf_char*, const char*, streamsize), (this, ptr, count))
1714 #define call_basic_streambuf_char_xsputn(this, ptr, count) CALL_VTBL_FUNC(this, 28, streamsize, (basic_streambuf_char*, const char*, streamsize), (this, ptr, count))
1716 streamsize __thiscall
basic_streambuf_char_xsputn(basic_streambuf_char
*this, const char *ptr
, streamsize count
)
1718 streamsize copied
, chunk
;
1720 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
1722 for(copied
=0; copied
<count
;) {
1723 chunk
= basic_streambuf_char__Pnavail(this);
1724 if(chunk
> count
-copied
)
1725 chunk
= count
-copied
;
1728 memcpy(*this->pwpos
, ptr
+copied
, chunk
);
1729 *this->pwpos
+= chunk
;
1730 *this->pwsize
-= chunk
;
1732 }else if(call_basic_streambuf_char_overflow(this, (unsigned char)ptr
[copied
]) != EOF
) {
1742 /* ?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPBDH@Z */
1743 /* ?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEBD_J@Z */
1744 #if STREAMSIZE_BITS == 64
1745 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputn
, 16)
1747 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputn
, 12)
1749 streamsize __thiscall
basic_streambuf_char_sputn(basic_streambuf_char
*this, const char *ptr
, streamsize count
)
1751 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
1752 return call_basic_streambuf_char_xsputn(this, ptr
, count
);
1755 /* ?swap@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXAAV12@@Z */
1756 /* ?swap@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXAEAV12@@Z */
1757 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_swap
, 8)
1758 void __thiscall
basic_streambuf_char_swap(basic_streambuf_char
*this, basic_streambuf_char
*r
)
1760 basic_streambuf_char tmp
;
1762 TRACE("(%p %p)\n", this, r
);
1769 this->vtable
= tmp
.vtable
;
1770 tmp
.vtable
= r
->vtable
;
1774 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPA_W00@Z */
1775 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEA_W00@Z */
1776 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAG00@Z */
1777 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAG00@Z */
1778 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setp_next
, 16)
1779 void __thiscall
basic_streambuf_wchar_setp_next(basic_streambuf_wchar
*this, wchar_t *first
, wchar_t *next
, wchar_t *last
)
1781 TRACE("(%p %p %p %p)\n", this, first
, next
, last
);
1785 this->wsize
= last
-next
;
1788 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPA_W0@Z */
1789 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEA_W0@Z */
1790 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAG0@Z */
1791 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAG0@Z */
1792 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setp
, 12)
1793 void __thiscall
basic_streambuf_wchar_setp(basic_streambuf_wchar
*this, wchar_t *first
, wchar_t *last
)
1795 basic_streambuf_wchar_setp_next(this, first
, first
, last
);
1798 /* ?setg@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPA_W00@Z */
1799 /* ?setg@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEA_W00@Z */
1800 /* ?setg@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAG00@Z */
1801 /* ?setg@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAG00@Z */
1802 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setg
, 16)
1803 void __thiscall
basic_streambuf_wchar_setg(basic_streambuf_wchar
*this, wchar_t *first
, wchar_t *next
, wchar_t *last
)
1805 TRACE("(%p %p %p %p)\n", this, first
, next
, last
);
1809 this->rsize
= last
-next
;
1812 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXXZ */
1813 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXXZ */
1814 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXXZ */
1815 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXXZ */
1816 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Init_empty
, 4)
1817 void __thiscall
basic_streambuf_wchar__Init_empty(basic_streambuf_wchar
*this)
1819 TRACE("(%p)\n", this);
1821 this->prbuf
= &this->rbuf
;
1822 this->pwbuf
= &this->wbuf
;
1823 this->prpos
= &this->rpos
;
1824 this->pwpos
= &this->wpos
;
1825 this->prsize
= &this->rsize
;
1826 this->pwsize
= &this->wsize
;
1828 basic_streambuf_wchar_setp(this, NULL
, NULL
);
1829 basic_streambuf_wchar_setg(this, NULL
, NULL
, NULL
);
1832 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAE@W4_Uninitialized@1@@Z */
1833 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAA@W4_Uninitialized@1@@Z */
1834 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_ctor_uninitialized
, 8)
1835 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_ctor_uninitialized(basic_streambuf_wchar
*this, int uninitialized
)
1837 TRACE("(%p %d)\n", this, uninitialized
);
1838 this->vtable
= &MSVCP_basic_streambuf_wchar_vtable
;
1839 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
1840 mutex_ctor(&this->lock
);
1845 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAE@W4_Uninitialized@1@@Z */
1846 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAA@W4_Uninitialized@1@@Z */
1847 DEFINE_THISCALL_WRAPPER(basic_streambuf_short_ctor_uninitialized
, 8)
1848 basic_streambuf_wchar
* __thiscall
basic_streambuf_short_ctor_uninitialized(basic_streambuf_wchar
*this, int uninitialized
)
1850 TRACE("(%p %d)\n", this, uninitialized
);
1851 basic_streambuf_wchar_ctor_uninitialized(this, uninitialized
);
1852 this->vtable
= &MSVCP_basic_streambuf_short_vtable
;
1856 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAE@XZ */
1857 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAA@XZ */
1858 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_ctor
, 4)
1859 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_ctor(basic_streambuf_wchar
*this)
1861 TRACE("(%p)\n", this);
1863 this->vtable
= &MSVCP_basic_streambuf_wchar_vtable
;
1864 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
1865 mutex_ctor(&this->lock
);
1867 #if _MSVCP_VER >= 70
1868 this->loc
= MSVCRT_operator_new(sizeof(locale
));
1870 locale_ctor(IOS_LOCALE(this));
1871 basic_streambuf_wchar__Init_empty(this);
1876 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAE@XZ */
1877 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAA@XZ */
1878 DEFINE_THISCALL_WRAPPER(basic_streambuf_short_ctor
, 4)
1879 basic_streambuf_wchar
* __thiscall
basic_streambuf_short_ctor(basic_streambuf_wchar
*this)
1881 TRACE("(%p)\n", this);
1882 basic_streambuf_wchar_ctor(this);
1883 this->vtable
= &MSVCP_basic_streambuf_short_vtable
;
1887 /* ??1?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
1888 /* ??1?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
1889 /* ??1?$basic_streambuf@GU?$char_traits@G@std@@@std@@UAE@XZ */
1890 /* ??1?$basic_streambuf@GU?$char_traits@G@std@@@std@@UEAA@XZ */
1891 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_dtor
, 4)
1892 void __thiscall
basic_streambuf_wchar_dtor(basic_streambuf_wchar
*this)
1894 TRACE("(%p)\n", this);
1896 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
1897 mutex_dtor(&this->lock
);
1899 locale_dtor(IOS_LOCALE(this));
1900 #if _MSVCP_VER >= 70
1901 MSVCRT_operator_delete(this->loc
);
1905 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_vector_dtor
, 8)
1906 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_vector_dtor(basic_streambuf_wchar
*this, unsigned int flags
)
1908 TRACE("(%p %x)\n", this, flags
);
1910 /* we have an array, with the number of elements stored before the first object */
1911 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
1913 for(i
=*ptr
-1; i
>=0; i
--)
1914 basic_streambuf_wchar_dtor(this+i
);
1915 MSVCRT_operator_delete(ptr
);
1917 basic_streambuf_wchar_dtor(this);
1919 MSVCRT_operator_delete(this);
1925 /* ?_Gnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEHXZ */
1926 /* ?_Gnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBA_JXZ */
1927 /* ?_Gnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEHXZ */
1928 /* ?_Gnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBA_JXZ */
1929 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Gnavail
, 4)
1930 streamsize __thiscall
basic_streambuf_wchar__Gnavail(const basic_streambuf_wchar
*this)
1932 TRACE("(%p)\n", this);
1933 return *this->prpos
? *this->prsize
: 0;
1936 /* ?_Gndec@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
1937 /* ?_Gndec@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
1938 /* ?_Gndec@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
1939 /* ?_Gndec@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
1940 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Gndec
, 4)
1941 wchar_t* __thiscall
basic_streambuf_wchar__Gndec(basic_streambuf_wchar
*this)
1943 TRACE("(%p)\n", this);
1946 return *this->prpos
;
1949 /* ?_Gninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
1950 /* ?_Gninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
1951 /* ?_Gninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
1952 /* ?_Gninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
1953 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Gninc
, 4)
1954 wchar_t* __thiscall
basic_streambuf_wchar__Gninc(basic_streambuf_wchar
*this)
1956 TRACE("(%p)\n", this);
1958 return (*this->prpos
)++;
1961 /* ?_Gnpreinc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
1962 /* ?_Gnpreinc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
1963 /* ?_Gnpreinc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
1964 /* ?_Gnpreinc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
1965 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Gnpreinc
, 4)
1966 wchar_t* __thiscall
basic_streambuf_wchar__Gnpreinc(basic_streambuf_wchar
*this)
1968 TRACE("(%p)\n", this);
1971 return *this->prpos
;
1974 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPAPA_W0PAH001@Z */
1975 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEAPEA_W0PEAH001@Z */
1976 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAPAG0PAH001@Z */
1977 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAPEAG0PEAH001@Z */
1978 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Init
, 28)
1979 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
)
1981 TRACE("(%p %p %p %p %p %p %p)\n", this, gf
, gn
, gc
, pf
, pn
, pc
);
1991 /* ?_Lock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
1992 /* ?_Lock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
1993 /* ?_Lock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
1994 /* ?_Lock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
1995 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Lock
, 4)
1996 void __thiscall
basic_streambuf_wchar__Lock(basic_streambuf_wchar
*this)
1998 TRACE("(%p)\n", this);
1999 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
2000 mutex_lock(&this->lock
);
2004 /* ?_Pnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEHXZ */
2005 /* ?_Pnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBA_JXZ */
2006 /* ?_Pnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEHXZ */
2007 /* ?_Pnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBA_JXZ */
2008 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Pnavail
, 4)
2009 streamsize __thiscall
basic_streambuf_wchar__Pnavail(const basic_streambuf_wchar
*this)
2011 TRACE("(%p)\n", this);
2012 return *this->pwpos
? *this->pwsize
: 0;
2015 /* ?_Pninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
2016 /* ?_Pninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
2017 /* ?_Pninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
2018 /* ?_Pninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
2019 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Pninc
, 4)
2020 wchar_t* __thiscall
basic_streambuf_wchar__Pninc(basic_streambuf_wchar
*this)
2022 TRACE("(%p)\n", this);
2024 return (*this->pwpos
)++;
2027 /* ?underflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
2028 /* ?underflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
2029 /* ?underflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
2030 /* ?underflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
2031 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_underflow
, 4)
2032 #if _MSVCP_VER >= 100
2033 #define call_basic_streambuf_wchar_underflow(this) CALL_VTBL_FUNC(this, 24, unsigned short, (basic_streambuf_wchar*), (this))
2035 #define call_basic_streambuf_wchar_underflow(this) CALL_VTBL_FUNC(this, 16, unsigned short, (basic_streambuf_wchar*), (this))
2037 unsigned short __thiscall
basic_streambuf_wchar_underflow(basic_streambuf_wchar
*this)
2039 TRACE("(%p)\n", this);
2043 /* ?uflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
2044 /* ?uflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
2045 /* ?uflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
2046 /* ?uflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
2047 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_uflow
, 4)
2048 #if _MSVCP_VER >= 100
2049 #define call_basic_streambuf_wchar_uflow(this) CALL_VTBL_FUNC(this, 28, unsigned short, (basic_streambuf_wchar*), (this))
2051 #define call_basic_streambuf_wchar_uflow(this) CALL_VTBL_FUNC(this, 20, unsigned short, (basic_streambuf_wchar*), (this))
2053 unsigned short __thiscall
basic_streambuf_wchar_uflow(basic_streambuf_wchar
*this)
2057 TRACE("(%p)\n", this);
2059 if(call_basic_streambuf_wchar_underflow(this)==WEOF
)
2062 ret
= **this->prpos
;
2068 /* ?_Xsgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHPA_WIH@Z */
2069 /* ?_Xsgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEA_W_K_J@Z */
2070 /* ?_Xsgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHPAGIH@Z */
2071 /* ?_Xsgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JPEAG_K_J@Z */
2072 #if STREAMSIZE_BITS == 64
2073 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Xsgetn_s
, 20)
2075 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Xsgetn_s
, 16)
2077 #if _MSVCP_VER >= 80 && _MSVCP_VER <= 90
2078 #define call_basic_streambuf_wchar__Xsgetn_s(this, ptr, size, count) CALL_VTBL_FUNC(this, 28, \
2079 streamsize, (basic_streambuf_wchar*, wchar_t*, MSVCP_size_t, streamsize), (this, ptr, size, count))
2081 #define call_basic_streambuf_wchar__Xsgetn_s(this, ptr, size, count) basic_streambuf_wchar__Xsgetn_s(this, ptr, size, count)
2083 streamsize __thiscall
basic_streambuf_wchar__Xsgetn_s(basic_streambuf_wchar
*this, wchar_t *ptr
, MSVCP_size_t size
, streamsize count
)
2085 streamsize copied
, chunk
;
2088 TRACE("(%p %p %lu %s)\n", this, ptr
, size
, wine_dbgstr_longlong(count
));
2090 for(copied
=0; copied
<count
&& size
;) {
2091 chunk
= basic_streambuf_wchar__Gnavail(this);
2092 if(chunk
> count
-copied
)
2093 chunk
= count
-copied
;
2096 memcpy_s(ptr
+copied
, size
, *this->prpos
, chunk
*sizeof(wchar_t));
2097 *this->prpos
+= chunk
;
2098 *this->prsize
-= chunk
;
2100 size
-= chunk
*sizeof(wchar_t);
2101 }else if((c
= call_basic_streambuf_wchar_uflow(this)) != WEOF
) {
2113 /* ?_Sgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHPA_WIH@Z */
2114 /* ?_Sgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_K_J@Z */
2115 /* ?_Sgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHPAGIH@Z */
2116 /* ?_Sgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_K_J@Z */
2117 #if STREAMSIZE_BITS == 64
2118 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Sgetn_s
, 20)
2120 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Sgetn_s
, 16)
2122 streamsize __thiscall
basic_streambuf_wchar__Sgetn_s(basic_streambuf_wchar
*this, wchar_t *ptr
, MSVCP_size_t size
, streamsize count
)
2124 TRACE("(%p %p %lu %s)\n", this, ptr
, size
, wine_dbgstr_longlong(count
));
2125 return call_basic_streambuf_wchar__Xsgetn_s(this, ptr
, size
, count
);
2128 /* ?_Unlock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
2129 /* ?_Unlock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
2130 /* ?_Unlock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
2131 /* ?_Unlock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
2132 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Unlock
, 4)
2133 void __thiscall
basic_streambuf_wchar__Unlock(basic_streambuf_wchar
*this)
2135 TRACE("(%p)\n", this);
2136 #if _MSVCP_VER >= 70 && _MSVCP_VER <= 100
2137 mutex_unlock(&this->lock
);
2141 /* ?eback@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2142 /* ?eback@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2143 /* ?eback@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2144 /* ?eback@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2145 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_eback
, 4)
2146 wchar_t* __thiscall
basic_streambuf_wchar_eback(const basic_streambuf_wchar
*this)
2148 TRACE("(%p)\n", this);
2149 return *this->prbuf
;
2152 /* ?gptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2153 /* ?gptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2154 /* ?gptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2155 /* ?gptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2156 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_gptr
, 4)
2157 wchar_t* __thiscall
basic_streambuf_wchar_gptr(const basic_streambuf_wchar
*this)
2159 TRACE("(%p)\n", this);
2160 return *this->prpos
;
2163 /* ?egptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2164 /* ?egptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2165 /* ?egptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2166 /* ?egptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2167 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_egptr
, 4)
2168 wchar_t* __thiscall
basic_streambuf_wchar_egptr(const basic_streambuf_wchar
*this)
2170 TRACE("(%p)\n", this);
2171 return *this->prpos
+*this->prsize
;
2174 /* ?epptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2175 /* ?epptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2176 /* ?epptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2177 /* ?epptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2178 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_epptr
, 4)
2179 wchar_t* __thiscall
basic_streambuf_wchar_epptr(const basic_streambuf_wchar
*this)
2181 TRACE("(%p)\n", this);
2182 return *this->pwpos
+*this->pwsize
;
2185 /* ?gbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXH@Z */
2186 /* ?gbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXH@Z */
2187 /* ?gbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXH@Z */
2188 /* ?gbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXH@Z */
2189 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_gbump
, 8)
2190 void __thiscall
basic_streambuf_wchar_gbump(basic_streambuf_wchar
*this, int off
)
2192 TRACE("(%p %d)\n", this, off
);
2193 *this->prpos
+= off
;
2194 *this->prsize
-= off
;
2197 /* ?getloc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QBE?AVlocale@2@XZ */
2198 /* ?getloc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEBA?AVlocale@2@XZ */
2199 /* ?getloc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QBE?AVlocale@2@XZ */
2200 /* ?getloc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEBA?AVlocale@2@XZ */
2201 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_getloc
, 8)
2202 locale
* __thiscall
basic_streambuf_wchar_getloc(const basic_streambuf_wchar
*this, locale
*ret
)
2204 TRACE("(%p)\n", this);
2205 return locale_copy_ctor(ret
, IOS_LOCALE(this));
2208 /* ?imbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEXABVlocale@2@@Z */
2209 /* ?imbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAXAEBVlocale@2@@Z */
2210 /* ?imbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEXABVlocale@2@@Z */
2211 /* ?imbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAXAEBVlocale@2@@Z */
2212 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_imbue
, 8)
2213 #if _MSVCP_VER >= 100
2214 #define call_basic_streambuf_wchar_imbue(this, loc) CALL_VTBL_FUNC(this, 56, void, (basic_streambuf_wchar*, const locale*), (this, loc))
2215 #elif _MSVCP_VER >= 80
2216 #define call_basic_streambuf_wchar_imbue(this, loc) CALL_VTBL_FUNC(this, 52, void, (basic_streambuf_wchar*, const locale*), (this, loc))
2218 #define call_basic_streambuf_wchar_imbue(this, loc) CALL_VTBL_FUNC(this, 48, void, (basic_streambuf_wchar*, const locale*), (this, loc))
2220 void __thiscall
basic_streambuf_wchar_imbue(basic_streambuf_wchar
*this, const locale
*loc
)
2222 TRACE("(%p %p)\n", this, loc
);
2225 /* ?overflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
2226 /* ?overflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
2227 /* ?overflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
2228 /* ?overflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
2229 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_overflow
, 8)
2230 #if _MSVCP_VER >= 100
2231 #define call_basic_streambuf_wchar_overflow(this, ch) CALL_VTBL_FUNC(this, 12, unsigned short, (basic_streambuf_wchar*, unsigned short), (this, ch))
2233 #define call_basic_streambuf_wchar_overflow(this, ch) CALL_VTBL_FUNC(this, 4, unsigned short, (basic_streambuf_wchar*, unsigned short), (this, ch))
2235 unsigned short __thiscall
basic_streambuf_wchar_overflow(basic_streambuf_wchar
*this, unsigned short ch
)
2237 TRACE("(%p %d)\n", this, ch
);
2241 /* ?pbackfail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
2242 /* ?pbackfail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
2243 /* ?pbackfail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
2244 /* ?pbackfail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
2245 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pbackfail
, 8)
2246 #if _MSVCP_VER >= 100
2247 #define call_basic_streambuf_wchar_pbackfail(this, ch) CALL_VTBL_FUNC(this, 16, unsigned short, (basic_streambuf_wchar*, unsigned short), (this, ch))
2249 #define call_basic_streambuf_wchar_pbackfail(this, ch) CALL_VTBL_FUNC(this, 8, unsigned short, (basic_streambuf_wchar*, unsigned short), (this, ch))
2251 unsigned short __thiscall
basic_streambuf_wchar_pbackfail(basic_streambuf_wchar
*this, unsigned short ch
)
2253 TRACE("(%p %d)\n", this, ch
);
2257 /* ?pbase@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2258 /* ?pbase@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2259 /* ?pbase@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2260 /* ?pbase@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2261 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pbase
, 4)
2262 wchar_t* __thiscall
basic_streambuf_wchar_pbase(const basic_streambuf_wchar
*this)
2264 TRACE("(%p)\n", this);
2265 return *this->pwbuf
;
2268 /* ?pbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXH@Z */
2269 /* ?pbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXH@Z */
2270 /* ?pbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXH@Z */
2271 /* ?pbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXH@Z */
2272 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pbump
, 8)
2273 void __thiscall
basic_streambuf_wchar_pbump(basic_streambuf_wchar
*this, int off
)
2275 TRACE("(%p %d)\n", this, off
);
2276 *this->pwpos
+= off
;
2277 *this->pwsize
-= off
;
2280 /* ?pptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
2281 /* ?pptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
2282 /* ?pptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
2283 /* ?pptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
2284 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pptr
, 4)
2285 wchar_t* __thiscall
basic_streambuf_wchar_pptr(const basic_streambuf_wchar
*this)
2287 TRACE("(%p)\n", this);
2288 return *this->pwpos
;
2291 /* ?pubimbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
2292 /* ?pubimbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
2293 /* ?pubimbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
2294 /* ?pubimbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
2295 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubimbue
, 12)
2296 locale
* __thiscall
basic_streambuf_wchar_pubimbue(basic_streambuf_wchar
*this, locale
*ret
, const locale
*loc
)
2298 TRACE("(%p %p)\n", this, loc
);
2299 memcpy(ret
, IOS_LOCALE(this), sizeof(locale
));
2300 call_basic_streambuf_wchar_imbue(this, loc
);
2301 locale_copy_ctor(IOS_LOCALE(this), loc
);
2305 /* ?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
2306 /* ?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
2307 /* ?seekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
2308 /* ?seekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
2309 /* ?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
2310 /* ?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
2311 #if STREAMOFF_BITS == 64
2312 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_seekoff
, 24)
2314 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_seekoff
, 20)
2316 #if _MSVCP_VER >= 100
2317 #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))
2318 #elif _MSVCP_VER >= 80
2319 #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))
2321 #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))
2323 fpos_int
* __thiscall
basic_streambuf_wchar_seekoff(basic_streambuf_wchar
*this,
2324 fpos_int
*ret
, streamoff off
, int way
, int mode
)
2326 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
2333 /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@JHH@Z */
2334 /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@_JHH@Z */
2335 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JHH@Z */
2336 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JHH@Z */
2337 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JFF@Z */
2338 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JFF@Z */
2339 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
2340 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JW4seekdir@ioos_base@2@H@Z */
2341 #if STREAMOFF_BITS == 64
2342 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff
, 24)
2344 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff
, 20)
2346 fpos_int
* __thiscall
basic_streambuf_wchar_pubseekoff(basic_streambuf_wchar
*this,
2347 fpos_int
*ret
, streamoff off
, int way
, int mode
)
2349 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
2350 return call_basic_streambuf_wchar_seekoff(this, ret
, off
, way
, mode
);
2353 /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@JII@Z */
2354 /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@_JII@Z */
2355 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JII@Z */
2356 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JII@Z */
2357 #if STREAMOFF_BITS == 64
2358 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff_old
, 24)
2360 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff_old
, 20)
2362 fpos_int
* __thiscall
basic_streambuf_wchar_pubseekoff_old(basic_streambuf_wchar
*this,
2363 fpos_int
*ret
, streamoff off
, unsigned int way
, unsigned int mode
)
2365 TRACE("(%p %s %d %d)\n", this, wine_dbgstr_longlong(off
), way
, mode
);
2366 return basic_streambuf_wchar_pubseekoff(this, ret
, off
, way
, mode
);
2369 /* ?seekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
2370 /* ?seekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
2371 /* ?seekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
2372 /* ?seekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
2373 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_seekpos
, 36)
2374 #if _MSVCP_VER >= 100
2375 #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))
2376 #elif _MSVCP_VER >= 80
2377 #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))
2379 #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))
2381 fpos_int
* __thiscall
basic_streambuf_wchar_seekpos(basic_streambuf_wchar
*this,
2382 fpos_int
*ret
, fpos_int pos
, int mode
)
2384 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
2391 /* ?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@V32@H@Z */
2392 /* ?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@V32@H@Z */
2393 /* ?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@V32@H@Z */
2394 /* ?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@V32@H@Z */
2395 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekpos
, 36)
2396 fpos_int
* __thiscall
basic_streambuf_wchar_pubseekpos(basic_streambuf_wchar
*this,
2397 fpos_int
*ret
, fpos_int pos
, int mode
)
2399 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
2400 return call_basic_streambuf_wchar_seekpos(this, ret
, pos
, mode
);
2403 /* ?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@V32@I@Z */
2404 /* ?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@V32@I@Z */
2405 /* ?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@V32@I@Z */
2406 /* ?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@V32@I@Z */
2407 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekpos_old
, 36)
2408 fpos_int
* __thiscall
basic_streambuf_wchar_pubseekpos_old(basic_streambuf_wchar
*this,
2409 fpos_int
*ret
, fpos_int pos
, unsigned int mode
)
2411 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
2412 return basic_streambuf_wchar_pubseekpos(this, ret
, pos
, mode
);
2415 /* ?setbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEPAV12@PA_WH@Z */
2416 /* ?setbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAPEAV12@PEA_W_J@Z */
2417 /* ?setbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEPAV12@PAGH@Z */
2418 /* ?setbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAPEAV12@PEAG_J@Z */
2419 #if STREAMSIZE_BITS == 64
2420 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setbuf
, 16)
2422 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setbuf
, 12)
2424 #if _MSVCP_VER >= 100
2425 #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))
2426 #elif _MSVCP_VER >= 80
2427 #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))
2429 #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))
2431 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_setbuf(basic_streambuf_wchar
*this, wchar_t *buf
, streamsize count
)
2433 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
2437 /* ?pubsetbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PA_WH@Z */
2438 /* ?pubsetbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEA_W_J@Z */
2439 /* ?pubsetbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PAGH@Z */
2440 /* ?pubsetbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEAG_J@Z */
2441 #if STREAMSIZE_BITS == 64
2442 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubsetbuf
, 16)
2444 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubsetbuf
, 12)
2446 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_pubsetbuf(basic_streambuf_wchar
*this, wchar_t *buf
, streamsize count
)
2448 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
2449 return call_basic_streambuf_wchar_setbuf(this, buf
, count
);
2452 /* ?sync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHXZ */
2453 /* ?sync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAHXZ */
2454 /* ?sync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHXZ */
2455 /* ?sync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAHXZ */
2456 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sync
, 4)
2457 #if _MSVCP_VER >= 100
2458 #define call_basic_streambuf_wchar_sync(this) CALL_VTBL_FUNC(this, 52, int, (basic_streambuf_wchar*), (this))
2459 #elif _MSVCP_VER >= 80
2460 #define call_basic_streambuf_wchar_sync(this) CALL_VTBL_FUNC(this, 48, int, (basic_streambuf_wchar*), (this))
2462 #define call_basic_streambuf_wchar_sync(this) CALL_VTBL_FUNC(this, 44, int, (basic_streambuf_wchar*), (this))
2464 int __thiscall
basic_streambuf_wchar_sync(basic_streambuf_wchar
*this)
2466 TRACE("(%p)\n", this);
2470 /* ?pubsync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHXZ */
2471 /* ?pubsync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAHXZ */
2472 /* ?pubsync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHXZ */
2473 /* ?pubsync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAHXZ */
2474 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubsync
, 4)
2475 int __thiscall
basic_streambuf_wchar_pubsync(basic_streambuf_wchar
*this)
2477 TRACE("(%p)\n", this);
2478 return call_basic_streambuf_wchar_sync(this);
2481 /* ?xsgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHPA_WH@Z */
2482 /* ?xsgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEA_W_J@Z */
2483 /* ?xsgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHPAGH@Z */
2484 /* ?xsgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JPEAG_J@Z */
2485 #if STREAMSIZE_BITS == 64
2486 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsgetn
, 16)
2488 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsgetn
, 12)
2490 #if _MSVCP_VER >= 100
2491 #define call_basic_streambuf_wchar_xsgetn(this, ptr, count) CALL_VTBL_FUNC(this, 32, streamsize, (basic_streambuf_wchar*, wchar_t*, streamsize), (this, ptr, count))
2493 #define call_basic_streambuf_wchar_xsgetn(this, ptr, count) CALL_VTBL_FUNC(this, 24, streamsize, (basic_streambuf_wchar*, wchar_t*, streamsize), (this, ptr, count))
2495 streamsize __thiscall
basic_streambuf_wchar_xsgetn(basic_streambuf_wchar
*this, wchar_t *ptr
, streamsize count
)
2497 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
2498 return call_basic_streambuf_wchar__Xsgetn_s(this, ptr
, -1, count
);
2501 /* ?sgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHPA_WH@Z */
2502 /* ?sgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_J@Z */
2503 /* ?sgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHPAGH@Z */
2504 /* ?sgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_J@Z */
2505 #if STREAMSIZE_BITS == 64
2506 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sgetn
, 16)
2508 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sgetn
, 12)
2510 streamsize __thiscall
basic_streambuf_wchar_sgetn(basic_streambuf_wchar
*this, wchar_t *ptr
, streamsize count
)
2512 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
2513 return call_basic_streambuf_wchar_xsgetn(this, ptr
, count
);
2516 /* ?showmanyc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHXZ */
2517 /* ?showmanyc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JXZ */
2518 /* ?showmanyc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHXZ */
2519 /* ?showmanyc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JXZ */
2520 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_showmanyc
, 4)
2521 #if _MSVCP_VER >= 100
2522 #define call_basic_streambuf_wchar_showmanyc(this) CALL_VTBL_FUNC(this, 20, streamsize, (basic_streambuf_wchar*), (this))
2524 #define call_basic_streambuf_wchar_showmanyc(this) CALL_VTBL_FUNC(this, 12, streamsize, (basic_streambuf_wchar*), (this))
2526 streamsize __thiscall
basic_streambuf_wchar_showmanyc(basic_streambuf_wchar
*this)
2528 TRACE("(%p)\n", this);
2532 /* ?in_avail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHXZ */
2533 /* ?in_avail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JXZ */
2534 /* ?in_avail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHXZ */
2535 /* ?in_avail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JXZ */
2536 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_in_avail
, 4)
2537 streamsize __thiscall
basic_streambuf_wchar_in_avail(basic_streambuf_wchar
*this)
2541 TRACE("(%p)\n", this);
2543 ret
= basic_streambuf_wchar__Gnavail(this);
2544 return ret
? ret
: call_basic_streambuf_wchar_showmanyc(this);
2547 /* ?sputbackc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEG_W@Z */
2548 /* ?sputbackc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAG_W@Z */
2549 /* ?sputbackc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGG@Z */
2550 /* ?sputbackc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGG@Z */
2551 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputbackc
, 8)
2552 unsigned short __thiscall
basic_streambuf_wchar_sputbackc(basic_streambuf_wchar
*this, wchar_t ch
)
2554 TRACE("(%p %d)\n", this, ch
);
2555 if(*this->prpos
&& *this->prpos
>*this->prbuf
&& (*this->prpos
)[-1]==ch
) {
2561 return call_basic_streambuf_wchar_pbackfail(this, ch
);
2564 /* ?sputc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEG_W@Z */
2565 /* ?sputc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAG_W@Z */
2566 /* ?sputc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGG@Z */
2567 /* ?sputc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAHG@Z */
2568 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputc
, 8)
2569 unsigned short __thiscall
basic_streambuf_wchar_sputc(basic_streambuf_wchar
*this, wchar_t ch
)
2571 TRACE("(%p %d)\n", this, ch
);
2572 return basic_streambuf_wchar__Pnavail(this) ?
2573 (*basic_streambuf_wchar__Pninc(this) = ch
) :
2574 call_basic_streambuf_wchar_overflow(this, ch
);
2577 /* ?sungetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2578 /* ?sungetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2579 /* ?sungetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2580 /* ?sungetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2581 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sungetc
, 4)
2582 unsigned short __thiscall
basic_streambuf_wchar_sungetc(basic_streambuf_wchar
*this)
2584 TRACE("(%p)\n", this);
2585 if(*this->prpos
&& *this->prpos
>*this->prbuf
) {
2588 return **this->prpos
;
2591 return call_basic_streambuf_wchar_pbackfail(this, WEOF
);
2594 /* ?stossc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
2595 /* ?stossc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
2596 /* ?stossc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
2597 /* ?stossc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
2598 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_stossc
, 4)
2599 void __thiscall
basic_streambuf_wchar_stossc(basic_streambuf_wchar
*this)
2601 TRACE("(%p)\n", this);
2602 if(basic_streambuf_wchar__Gnavail(this))
2603 basic_streambuf_wchar__Gninc(this);
2605 call_basic_streambuf_wchar_uflow(this);
2608 /* ?sbumpc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2609 /* ?sbumpc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2610 /* ?sbumpc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2611 /* ?sbumpc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2612 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sbumpc
, 4)
2613 unsigned short __thiscall
basic_streambuf_wchar_sbumpc(basic_streambuf_wchar
*this)
2615 TRACE("(%p)\n", this);
2616 return basic_streambuf_wchar__Gnavail(this) ?
2617 *basic_streambuf_wchar__Gninc(this) : call_basic_streambuf_wchar_uflow(this);
2620 /* ?sgetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2621 /* ?sgetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2622 /* ?sgetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2623 /* ?sgetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2624 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sgetc
, 4)
2625 unsigned short __thiscall
basic_streambuf_wchar_sgetc(basic_streambuf_wchar
*this)
2627 TRACE("(%p)\n", this);
2628 return basic_streambuf_wchar__Gnavail(this) ?
2629 *basic_streambuf_wchar_gptr(this) : call_basic_streambuf_wchar_underflow(this);
2632 /* ?snextc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2633 /* ?snextc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2634 /* ?snextc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2635 /* ?snextc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2636 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_snextc
, 4)
2637 unsigned short __thiscall
basic_streambuf_wchar_snextc(basic_streambuf_wchar
*this)
2639 TRACE("(%p)\n", this);
2641 if(basic_streambuf_wchar__Gnavail(this) > 1)
2642 return *basic_streambuf_wchar__Gnpreinc(this);
2643 return basic_streambuf_wchar_sbumpc(this)==WEOF
?
2644 WEOF
: basic_streambuf_wchar_sgetc(this);
2647 /* ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHPB_WH@Z */
2648 /* ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEB_W_J@Z */
2649 /* ?xsputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHPBGH@Z */
2650 /* ?xsputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JPEBG_J@Z */
2651 #if STREAMSIZE_BITS == 64
2652 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsputn
, 16)
2654 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsputn
, 12)
2656 #if _MSVCP_VER >= 100
2657 #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))
2658 #elif _MSVCP_VER >= 80
2659 #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))
2661 #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))
2663 streamsize __thiscall
basic_streambuf_wchar_xsputn(basic_streambuf_wchar
*this, const wchar_t *ptr
, streamsize count
)
2665 streamsize copied
, chunk
;
2667 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
2669 for(copied
=0; copied
<count
;) {
2670 chunk
= basic_streambuf_wchar__Pnavail(this);
2671 if(chunk
> count
-copied
)
2672 chunk
= count
-copied
;
2675 memcpy(*this->pwpos
, ptr
+copied
, chunk
*sizeof(wchar_t));
2676 *this->pwpos
+= chunk
;
2677 *this->pwsize
-= chunk
;
2679 }else if(call_basic_streambuf_wchar_overflow(this, ptr
[copied
]) != WEOF
) {
2689 /* ?sputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHPB_WH@Z */
2690 /* ?sputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JPEB_W_J@Z */
2691 /* ?sputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHPBGH@Z */
2692 /* ?sputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JPEBG_J@Z */
2693 #if STREAMSIZE_BITS == 64
2694 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputn
, 16)
2696 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputn
, 12)
2698 streamsize __thiscall
basic_streambuf_wchar_sputn(basic_streambuf_wchar
*this, const wchar_t *ptr
, streamsize count
)
2700 TRACE("(%p %p %s)\n", this, ptr
, wine_dbgstr_longlong(count
));
2701 return call_basic_streambuf_wchar_xsputn(this, ptr
, count
);
2704 /* ?swap@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXAAV12@@Z */
2705 /* ?swap@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXAEAV12@@Z */
2706 /* ?swap@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXAAV12@@Z */
2707 /* ?swap@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXAAV12@@Z */
2708 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_swap
, 8)
2709 void __thiscall
basic_streambuf_wchar_swap(basic_streambuf_wchar
*this, basic_streambuf_wchar
*r
)
2711 basic_streambuf_wchar tmp
;
2713 TRACE("(%p %p)\n", this, r
);
2720 this->vtable
= tmp
.vtable
;
2721 tmp
.vtable
= r
->vtable
;
2725 /* ?_Stinit@?1??_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@23@@Z@4HA */
2726 /* ?_Stinit@?1??_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@23@@Z@4HA */
2727 int basic_filebuf_char__Init__Stinit
= 0;
2729 /* ?_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@12@@Z */
2730 /* ?_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@12@@Z */
2731 DEFINE_THISCALL_WRAPPER(basic_filebuf_char__Init
, 12)
2732 void __thiscall
basic_filebuf_char__Init(basic_filebuf_char
*this, FILE *file
, basic_filebuf__Initfl which
)
2734 TRACE("(%p %p %d)\n", this, file
, which
);
2737 this->state0
= basic_filebuf_char__Init__Stinit
;
2738 this->state
= basic_filebuf_char__Init__Stinit
;
2739 if(which
== INITFL_new
)
2741 this->close
= (which
== INITFL_open
);
2744 basic_streambuf_char__Init_empty(&this->base
);
2746 basic_streambuf_char__Init(&this->base
, &file
->_base
, &file
->_ptr
,
2747 &file
->_cnt
, &file
->_base
, &file
->_ptr
, &file
->_cnt
);
2750 /* ?_Initcvt@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAEXPAV?$codecvt@DDH@2@@Z */
2751 /* ?_Initcvt@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXPEAV?$codecvt@DDH@2@@Z */
2752 DEFINE_THISCALL_WRAPPER(basic_filebuf_char__Initcvt_cvt
, 8)
2753 void __thiscall
basic_filebuf_char__Initcvt_cvt(basic_filebuf_char
*this, codecvt_char
*cvt
)
2755 TRACE("(%p %p)\n", this, cvt
);
2757 if(codecvt_base_always_noconv(&cvt
->base
)) {
2760 this->str
= MSVCRT_operator_new(sizeof(basic_string_char
));
2761 MSVCP_basic_string_char_ctor(this->str
);
2766 /* ?_Initcvt@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAEXXZ */
2767 /* ?_Initcvt@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXXZ */
2768 DEFINE_THISCALL_WRAPPER(basic_filebuf_char__Initcvt
, 4)
2769 void __thiscall
basic_filebuf_char__Initcvt(basic_filebuf_char
*this)
2771 codecvt_char
*cvt
= codecvt_char_use_facet(IOS_LOCALE(&this->base
));
2773 TRACE("(%p)\n", this);
2775 locale__Addfac(&this->loc
, &cvt
->base
.facet
, codecvt_char_id
.id
, LC_CTYPE
);
2776 basic_filebuf_char__Initcvt_cvt( this, cvt
);
2779 /* ?close@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@XZ */
2780 /* ?close@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@XZ */
2781 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_close
, 4)
2782 basic_filebuf_char
* __thiscall
basic_filebuf_char_close(basic_filebuf_char
*this)
2784 basic_filebuf_char
*ret
= this;
2786 TRACE("(%p)\n", this);
2788 if(!this->file
|| fclose(this->file
))
2791 basic_filebuf_char__Init(this, NULL
, INITFL_close
);
2795 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
2796 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
2797 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_ctor_file
, 8)
2798 basic_filebuf_char
* __thiscall
basic_filebuf_char_ctor_file(basic_filebuf_char
*this, FILE *file
)
2800 TRACE("(%p %p)\n", this, file
);
2802 basic_streambuf_char_ctor(&this->base
);
2803 this->base
.vtable
= &MSVCP_basic_filebuf_char_vtable
;
2805 locale_ctor(&this->loc
);
2806 basic_filebuf_char__Init(this, file
, INITFL_new
);
2810 /* ??_F?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
2811 /* ??_F?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
2812 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_ctor
, 4)
2813 basic_filebuf_char
* __thiscall
basic_filebuf_char_ctor(basic_filebuf_char
*this)
2815 return basic_filebuf_char_ctor_file(this, NULL
);
2818 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAE@W4_Uninitialized@1@@Z */
2819 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
2820 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_ctor_uninitialized
, 8)
2821 basic_filebuf_char
* __thiscall
basic_filebuf_char_ctor_uninitialized(basic_filebuf_char
*this, int uninitialized
)
2823 TRACE("(%p %d)\n", this, uninitialized
);
2825 basic_streambuf_char_ctor_uninitialized(&this->base
, 0);
2826 this->base
.vtable
= &MSVCP_basic_filebuf_char_vtable
;
2827 locale_ctor(&this->loc
);
2831 /* ??1?$basic_filebuf@DU?$char_traits@D@std@@@std@@UAE@XZ */
2832 /* ??1?$basic_filebuf@DU?$char_traits@D@std@@@std@@UEAA@XZ */
2833 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_dtor
, 4)
2834 void __thiscall
basic_filebuf_char_dtor(basic_filebuf_char
*this)
2836 TRACE("(%p)\n", this);
2839 basic_filebuf_char_close(this);
2841 MSVCP_basic_string_char_dtor(this->str
);
2842 MSVCRT_operator_delete(this->str
);
2844 locale_dtor(&this->loc
);
2845 basic_streambuf_char_dtor(&this->base
);
2848 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_vector_dtor
, 8)
2849 basic_filebuf_char
* __thiscall
basic_filebuf_char_vector_dtor(basic_filebuf_char
*this, unsigned int flags
)
2851 TRACE("(%p %x)\n", this, flags
);
2853 /* we have an array, with the number of elements stored before the first object */
2854 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
2856 for(i
=*ptr
-1; i
>=0; i
--)
2857 basic_filebuf_char_dtor(this+i
);
2858 MSVCRT_operator_delete(ptr
);
2860 basic_filebuf_char_dtor(this);
2862 MSVCRT_operator_delete(this);
2868 /* ?is_open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QBE_NXZ */
2869 /* ?is_open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
2870 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_is_open
, 4)
2871 MSVCP_bool __thiscall
basic_filebuf_char_is_open(const basic_filebuf_char
*this)
2873 TRACE("(%p)\n", this);
2874 return this->file
!= NULL
;
2877 /* ?_Fiopen@std@@YAPAU_iobuf@@PB_WHH@Z */
2878 /* ?_Fiopen@std@@YAPEAU_iobuf@@PEB_WHH@Z */
2879 FILE* __cdecl
_Fiopen_wchar(const wchar_t *name
, int mode
, int prot
)
2881 static const wchar_t rW
[] = {'r',0};
2882 static const struct {
2884 const wchar_t str
[4];
2885 const wchar_t str_bin
[4];
2887 {OPENMODE_out
, {'w',0}, {'w','b',0}},
2888 {OPENMODE_out
|OPENMODE_app
, {'a',0}, {'a','b',0}},
2889 {OPENMODE_app
, {'a',0}, {'a','b',0}},
2890 {OPENMODE_out
|OPENMODE_trunc
, {'w',0}, {'w','b',0}},
2891 {OPENMODE_in
, {'r',0}, {'r','b',0}},
2892 {OPENMODE_in
|OPENMODE_out
, {'r','+',0}, {'r','+','b',0}},
2893 {OPENMODE_in
|OPENMODE_out
|OPENMODE_trunc
, {'w','+',0}, {'w','+','b',0}},
2894 {OPENMODE_in
|OPENMODE_out
|OPENMODE_app
, {'a','+',0}, {'a','+','b',0}},
2895 {OPENMODE_in
|OPENMODE_app
, {'a','+',0}, {'a','+','b',0}}
2898 int real_mode
= mode
& ~(OPENMODE_ate
|OPENMODE__Nocreate
|OPENMODE__Noreplace
|OPENMODE_binary
);
2902 TRACE("(%s %d %d)\n", debugstr_w(name
), mode
, prot
);
2904 for(mode_idx
=0; mode_idx
<ARRAY_SIZE(str_mode
); mode_idx
++)
2905 if(str_mode
[mode_idx
].mode
== real_mode
)
2907 if(mode_idx
== ARRAY_SIZE(str_mode
))
2910 if((mode
& OPENMODE__Nocreate
) && !(f
= _wfopen(name
, rW
)))
2915 if((mode
& OPENMODE__Noreplace
) && (mode
& (OPENMODE_out
|OPENMODE_app
))
2916 && (f
= _wfopen(name
, rW
))) {
2921 f
= _wfsopen(name
, (mode
& OPENMODE_binary
) ? str_mode
[mode_idx
].str_bin
2922 : str_mode
[mode_idx
].str
, prot
);
2926 if((mode
& OPENMODE_ate
) && fseek(f
, 0, SEEK_END
)) {
2934 /* ?_Fiopen@std@@YAPAU_iobuf@@PBDHH@Z */
2935 /* ?_Fiopen@std@@YAPEAU_iobuf@@PEBDHH@Z */
2936 FILE* __cdecl
_Fiopen(const char *name
, int mode
, int prot
)
2938 wchar_t nameW
[FILENAME_MAX
];
2940 TRACE("(%s %d %d)\n", name
, mode
, prot
);
2942 if(mbstowcs_s(NULL
, nameW
, FILENAME_MAX
, name
, FILENAME_MAX
-1) != 0)
2944 return _Fiopen_wchar(nameW
, mode
, prot
);
2947 /* ?__Fiopen@std@@YAPAU_iobuf@@PBDH@Z */
2948 /* ?__Fiopen@std@@YAPEAU_iobuf@@PEBDH@Z */
2949 FILE* __cdecl
___Fiopen(const char *name
, int mode
)
2951 TRACE("(%p %d)\n", name
, mode
);
2952 return _Fiopen(name
, mode
, _SH_DENYNO
);
2955 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PB_WHH@Z */
2956 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEB_WHH@Z */
2957 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBGHH@Z */
2958 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBGHH@Z */
2959 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open_wchar
, 16)
2960 basic_filebuf_char
* __thiscall
basic_filebuf_char_open_wchar(basic_filebuf_char
*this, const wchar_t *name
, int mode
, int prot
)
2964 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
2966 if(basic_filebuf_char_is_open(this))
2969 if(!(f
= _Fiopen_wchar(name
, mode
, prot
)))
2972 basic_filebuf_char__Init(this, f
, INITFL_open
);
2973 basic_filebuf_char__Initcvt_cvt(this, codecvt_char_use_facet(IOS_LOCALE(&this->base
)));
2977 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PB_WI@Z */
2978 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEB_WI@Z */
2979 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBGI@Z */
2980 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBGI@Z */
2981 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open_wchar_mode
, 12)
2982 basic_filebuf_char
* __thiscall
basic_filebuf_char_open_wchar_mode(basic_filebuf_char
*this, const wchar_t *name
, unsigned int mode
)
2984 return basic_filebuf_char_open_wchar(this, name
, mode
, SH_DENYNO
);
2987 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDHH@Z */
2988 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDHH@Z */
2989 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open
, 16)
2990 basic_filebuf_char
* __thiscall
basic_filebuf_char_open(basic_filebuf_char
*this, const char *name
, int mode
, int prot
)
2992 wchar_t nameW
[FILENAME_MAX
];
2994 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
2996 if(mbstowcs_s(NULL
, nameW
, FILENAME_MAX
, name
, FILENAME_MAX
-1) != 0)
2998 return basic_filebuf_char_open_wchar(this, nameW
, mode
, prot
);
3001 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDF@Z */
3002 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDF@Z */
3003 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open_mode_old
, 12)
3004 basic_filebuf_char
* __thiscall
basic_filebuf_char_open_mode_old(basic_filebuf_char
*this, const char *name
, short mode
)
3006 TRACE("(%p %p %d)\n", this, name
, mode
);
3007 return basic_filebuf_char_open(this, name
, mode
, SH_DENYNO
);
3010 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDH@Z */
3011 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDH@Z */
3012 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDI@Z */
3013 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDI@Z */
3014 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open_mode
, 12)
3015 basic_filebuf_char
* __thiscall
basic_filebuf_char_open_mode(basic_filebuf_char
*this, const char *name
, unsigned int mode
)
3017 return basic_filebuf_char_open(this, name
, mode
, SH_DENYNO
);
3020 /* ?overflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHH@Z */
3021 /* ?overflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z */
3022 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_overflow
, 8)
3023 int __thiscall
basic_filebuf_char_overflow(basic_filebuf_char
*this, int c
)
3025 char *ptr
, ch
= c
, *to_next
;
3026 const char *from_next
;
3030 TRACE("(%p %d)\n", this, c
);
3032 if(!basic_filebuf_char_is_open(this))
3038 return fwrite(&ch
, sizeof(char), 1, this->file
) ? c
: EOF
;
3041 MSVCP_basic_string_char_clear(this->str
);
3042 MSVCP_basic_string_char_append_len_ch(this->str
, 8, '\0');
3043 ptr
= this->str
->ptr
;
3044 ret
= codecvt_char_out(this->cvt
, &this->state
, from_next
, &ch
+1, &from_next
,
3045 ptr
, ptr
+MSVCP_basic_string_char_length(this->str
), &to_next
);
3048 case CODECVT_partial
:
3049 if(from_next
== &ch
)
3052 if(!fwrite(ptr
, to_next
-ptr
, 1, this->file
))
3055 case CODECVT_noconv
:
3056 return fwrite(&ch
, sizeof(char), 1, this->file
) ? c
: EOF
;
3062 /* ?pbackfail@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHH@Z */
3063 /* ?pbackfail@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z */
3064 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_pbackfail
, 8)
3065 int __thiscall
basic_filebuf_char_pbackfail(basic_filebuf_char
*this, int c
)
3067 TRACE("(%p %d)\n", this, c
);
3069 if(!basic_filebuf_char_is_open(this))
3072 if(basic_streambuf_char_gptr(&this->base
)>basic_streambuf_char_eback(&this->base
)
3073 && (c
==EOF
|| (int)(unsigned char)basic_streambuf_char_gptr(&this->base
)[-1]==c
)) {
3074 basic_streambuf_char__Gndec(&this->base
);
3075 return c
==EOF
? !c
: c
;
3076 }else if(c
== EOF
) {
3078 }else if(!this->cvt
) {
3079 return ungetc(c
, this->file
);
3080 }else if(MSVCP_basic_string_char_length(this->str
)) {
3084 b
= e
+this->str
->size
-1;
3085 for(cur
= b
; cur
>=e
; cur
--) {
3086 if(ungetc(*cur
, this->file
) == EOF
) {
3087 for(; cur
<=b
; cur
++)
3092 MSVCP_basic_string_char_clear(this->str
);
3093 this->state
= this->state0
;
3100 /* ?uflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
3101 /* ?uflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
3102 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_uflow
, 4)
3103 int __thiscall
basic_filebuf_char_uflow(basic_filebuf_char
*this)
3106 const char *buf_next
;
3109 TRACE("(%p)\n", this);
3111 if(!basic_filebuf_char_is_open(this))
3114 if(basic_streambuf_char_gptr(&this->base
) < basic_streambuf_char_egptr(&this->base
))
3115 return (unsigned char)*basic_streambuf_char__Gninc(&this->base
);
3117 c
= fgetc(this->file
);
3118 if(!this->cvt
|| c
==EOF
)
3121 MSVCP_basic_string_char_clear(this->str
);
3122 this->state0
= this->state
;
3124 MSVCP_basic_string_char_append_ch(this->str
, c
);
3125 this->state
= this->state0
;
3127 switch(codecvt_char_in(this->cvt
, &this->state
, this->str
->ptr
,
3128 this->str
->ptr
+this->str
->size
, &buf_next
, &ch
, &ch
+1, &to_next
)) {
3129 case CODECVT_partial
:
3131 case CODECVT_noconv
:
3132 return (unsigned char)this->str
->ptr
[0];
3134 return (unsigned char)ch
;
3139 c
= fgetc(this->file
);
3145 /* ?underflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
3146 /* ?underflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
3147 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_underflow
, 4)
3148 int __thiscall
basic_filebuf_char_underflow(basic_filebuf_char
*this)
3152 TRACE("(%p)\n", this);
3154 if(basic_streambuf_char_gptr(&this->base
) < basic_streambuf_char_egptr(&this->base
))
3155 return (unsigned char)*basic_streambuf_char_gptr(&this->base
);
3157 ret
= call_basic_streambuf_char_uflow(&this->base
);
3159 ret
= call_basic_streambuf_char_pbackfail(&this->base
, ret
);
3163 /* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
3164 /* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
3165 /* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
3166 /* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
3167 #if STREAMOFF_BITS == 64
3168 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_seekoff
, 24)
3170 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_seekoff
, 20)
3172 fpos_int
* __thiscall
basic_filebuf_char_seekoff(basic_filebuf_char
*this,
3173 fpos_int
*ret
, streamoff off
, int way
, int mode
)
3177 TRACE("(%p %p %s %d %d)\n", this, ret
, wine_dbgstr_longlong(off
), way
, mode
);
3179 if(!basic_filebuf_char_is_open(this) || fseek(this->file
, off
, way
)) {
3186 fgetpos(this->file
, &pos
);
3189 ret
->state
= this->state
;
3193 /* ?seekpos@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
3194 /* ?seekpos@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
3195 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_seekpos
, 36)
3196 fpos_int
* __thiscall
basic_filebuf_char_seekpos(basic_filebuf_char
*this,
3197 fpos_int
*ret
, fpos_int pos
, int mode
)
3201 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_int(&pos
), mode
);
3203 if(!basic_filebuf_char_is_open(this) || fseek(this->file
, (LONG
)pos
.pos
, SEEK_SET
)
3204 || (pos
.off
&& fseek(this->file
, pos
.off
, SEEK_CUR
))) {
3211 fgetpos(this->file
, &fpos
);
3214 ret
->state
= this->state
;
3218 /* ?setbuf@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PADH@Z */
3219 /* ?setbuf@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PEAD_J@Z */
3220 #if STREAMSIZE_BITS == 64
3221 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_setbuf
, 16)
3223 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_setbuf
, 12)
3225 basic_streambuf_char
* __thiscall
basic_filebuf_char_setbuf(basic_filebuf_char
*this, char *buf
, streamsize count
)
3227 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
3229 if(!basic_filebuf_char_is_open(this))
3232 if(setvbuf(this->file
, buf
, (buf
==NULL
&& count
==0) ? _IONBF
: _IOFBF
, count
))
3235 basic_filebuf_char__Init(this, this->file
, INITFL_open
);
3239 /* ?sync@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
3240 /* ?sync@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
3241 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_sync
, 4)
3242 int __thiscall
basic_filebuf_char_sync(basic_filebuf_char
*this)
3244 TRACE("(%p)\n", this);
3246 if(!basic_filebuf_char_is_open(this))
3249 if(call_basic_streambuf_char_overflow(&this->base
, EOF
) == EOF
)
3251 return fflush(this->file
);
3254 /* ?imbue@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEXABVlocale@2@@Z */
3255 /* ?imbue@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAXAEBVlocale@2@@Z */
3256 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_imbue
, 8)
3257 void __thiscall
basic_filebuf_char_imbue(basic_filebuf_char
*this, const locale
*loc
)
3259 TRACE("(%p %p)\n", this, loc
);
3260 basic_filebuf_char__Initcvt_cvt(this, codecvt_char_use_facet(loc
));
3263 /* ?_Stinit@?1??_Init@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@23@@Z@4HA */
3264 /* ?_Stinit@?1??_Init@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@23@@Z@4HA */
3265 int basic_filebuf_wchar__Init__Stinit
= 0;
3267 /* ?_Stinit@?1??_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@23@@Z@4HA */
3268 /* ?_Stinit@?1??_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@23@@Z@4HA */
3269 int basic_filebuf_short__Init__Stinit
= 0;
3271 /* ?_Init@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@12@@Z */
3272 /* ?_Init@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@12@@Z */
3273 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar__Init
, 12)
3274 void __thiscall
basic_filebuf_wchar__Init(basic_filebuf_wchar
*this, FILE *file
, basic_filebuf__Initfl which
)
3276 TRACE("(%p %p %d)\n", this, file
, which
);
3279 this->state0
= basic_filebuf_short__Init__Stinit
;
3280 this->state
= basic_filebuf_short__Init__Stinit
;
3281 if(which
== INITFL_new
)
3283 this->close
= (which
== INITFL_open
);
3286 basic_streambuf_wchar__Init_empty(&this->base
);
3289 /* ?_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@12@@Z */
3290 /* ?_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@12@@Z */
3291 DEFINE_THISCALL_WRAPPER(basic_filebuf_short__Init
, 12)
3292 void __thiscall
basic_filebuf_short__Init(basic_filebuf_wchar
*this, FILE *file
, basic_filebuf__Initfl which
)
3294 TRACE("(%p %p %d)\n", this, file
, which
);
3297 this->state0
= basic_filebuf_short__Init__Stinit
;
3298 this->state
= basic_filebuf_short__Init__Stinit
;
3299 if(which
== INITFL_new
)
3301 this->close
= (which
== INITFL_open
);
3304 basic_streambuf_wchar__Init_empty(&this->base
);
3307 /* ?_Initcvt@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IAEXPAV?$codecvt@_WDH@2@@Z */
3308 /* ?_Initcvt@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEAV?$codecvt@_WDH@2@@Z */
3309 /* ?_Initcvt@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAEXPAV?$codecvt@GDH@2@@Z */
3310 /* ?_Initcvt@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAAXPEAV?$codecvt@GDH@2@@Z */
3311 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar__Initcvt_cvt
, 8)
3312 void __thiscall
basic_filebuf_wchar__Initcvt_cvt(basic_filebuf_wchar
*this, codecvt_wchar
*cvt
)
3314 TRACE("(%p %p)\n", this, cvt
);
3316 if(codecvt_base_always_noconv(&cvt
->base
)) {
3319 basic_streambuf_wchar__Init_empty(&this->base
);
3324 /* ?_Initcvt@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAEXXZ */
3325 /* ?_Initcvt@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAAXXZ */
3326 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar__Initcvt
, 4)
3327 void __thiscall
basic_filebuf_wchar__Initcvt(basic_filebuf_wchar
*this)
3329 codecvt_wchar
*cvt
= codecvt_wchar_use_facet(IOS_LOCALE(&this->base
));
3330 basic_filebuf_wchar__Initcvt_cvt( this, cvt
);
3333 /* ?close@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@XZ */
3334 /* ?close@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@XZ */
3335 /* ?close@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@XZ */
3336 /* ?close@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@XZ */
3337 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_close
, 4)
3338 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_close(basic_filebuf_wchar
*this)
3340 basic_filebuf_wchar
*ret
= this;
3342 TRACE("(%p)\n", this);
3344 if(!this->file
|| fclose(this->file
))
3347 basic_filebuf_wchar__Init(this, NULL
, INITFL_close
);
3351 /* ??0?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
3352 /* ??0?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
3353 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_ctor_file
, 8)
3354 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_ctor_file(basic_filebuf_wchar
*this, FILE *file
)
3356 TRACE("(%p %p)\n", this, file
);
3358 basic_streambuf_wchar_ctor(&this->base
);
3359 this->base
.vtable
= &MSVCP_basic_filebuf_wchar_vtable
;
3361 locale_ctor(&this->loc
);
3362 basic_filebuf_wchar__Init(this, file
, INITFL_new
);
3366 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
3367 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
3368 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_ctor_file
, 8)
3369 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_ctor_file(basic_filebuf_wchar
*this, FILE *file
)
3371 TRACE("(%p %p)\n", this, file
);
3373 basic_streambuf_short_ctor(&this->base
);
3374 this->base
.vtable
= &MSVCP_basic_filebuf_short_vtable
;
3376 locale_ctor(&this->loc
);
3377 basic_filebuf_short__Init(this, file
, INITFL_new
);
3381 /* ??_F?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
3382 /* ??_F?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
3383 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_ctor
, 4)
3384 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_ctor(basic_filebuf_wchar
*this)
3386 return basic_filebuf_wchar_ctor_file(this, NULL
);
3389 /* ??_F?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
3390 /* ??_F?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
3391 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_ctor
, 4)
3392 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_ctor(basic_filebuf_wchar
*this)
3394 return basic_filebuf_short_ctor_file(this, NULL
);
3397 /* ??0?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAE@W4_Uninitialized@1@@Z */
3398 /* ??0?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
3399 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_ctor_uninitialized
, 8)
3400 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_ctor_uninitialized(basic_filebuf_wchar
*this, int uninitialized
)
3402 TRACE("(%p %d)\n", this, uninitialized
);
3404 basic_streambuf_wchar_ctor(&this->base
);
3405 this->base
.vtable
= &MSVCP_basic_filebuf_wchar_vtable
;
3409 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAE@W4_Uninitialized@1@@Z */
3410 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
3411 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_ctor_uninitialized
, 8)
3412 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_ctor_uninitialized(basic_filebuf_wchar
*this, int uninitialized
)
3414 TRACE("(%p %d)\n", this, uninitialized
);
3416 basic_streambuf_short_ctor_uninitialized(&this->base
, 0);
3417 this->base
.vtable
= &MSVCP_basic_filebuf_short_vtable
;
3418 locale_ctor(&this->loc
);
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);
3434 MSVCP_basic_string_char_dtor(this->str
);
3435 MSVCRT_operator_delete(this->str
);
3437 locale_dtor(&this->loc
);
3438 basic_streambuf_wchar_dtor(&this->base
);
3441 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_vector_dtor
, 8)
3442 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_vector_dtor(basic_filebuf_wchar
*this, unsigned int flags
)
3444 TRACE("(%p %x)\n", this, flags
);
3446 /* we have an array, with the number of elements stored before the first object */
3447 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
3449 for(i
=*ptr
-1; i
>=0; i
--)
3450 basic_filebuf_wchar_dtor(this+i
);
3451 MSVCRT_operator_delete(ptr
);
3453 basic_filebuf_wchar_dtor(this);
3455 MSVCRT_operator_delete(this);
3461 /* ?is_open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
3462 /* ?is_open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
3463 /* ?is_open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QBE_NXZ */
3464 /* ?is_open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
3465 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_is_open
, 4)
3466 MSVCP_bool __thiscall
basic_filebuf_wchar_is_open(const basic_filebuf_wchar
*this)
3468 TRACE("(%p)\n", this);
3469 return this->file
!= NULL
;
3472 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PB_WHH@Z */
3473 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEB_WHH@Z */
3474 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBGHH@Z */
3475 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBGHH@Z */
3476 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open_wchar
, 16)
3477 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_open_wchar(basic_filebuf_wchar
*this, const wchar_t *name
, int mode
, int prot
)
3481 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
3483 if(basic_filebuf_wchar_is_open(this))
3486 if(!(f
= _Fiopen_wchar(name
, mode
, prot
)))
3489 basic_filebuf_wchar__Init(this, f
, INITFL_open
);
3490 basic_filebuf_wchar__Initcvt_cvt(this, codecvt_wchar_use_facet(IOS_LOCALE(&this->base
)));
3494 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PB_WHH@Z */
3495 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEB_WHH@Z */
3496 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBGHH@Z */
3497 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBGHH@Z */
3498 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_open_wchar
, 16)
3499 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_open_wchar(basic_filebuf_wchar
*this, const wchar_t *name
, int mode
, int prot
)
3503 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
3505 if(basic_filebuf_wchar_is_open(this))
3508 if(!(f
= _Fiopen_wchar(name
, mode
, prot
)))
3511 basic_filebuf_short__Init(this, f
, INITFL_open
);
3512 basic_filebuf_wchar__Initcvt_cvt(this, codecvt_short_use_facet(IOS_LOCALE(&this->base
)));
3516 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PB_WI@Z */
3517 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEB_WI@Z */
3518 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBGI@Z */
3519 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBGI@Z */
3520 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open_wchar_mode
, 12)
3521 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_open_wchar_mode(basic_filebuf_wchar
*this, const wchar_t *name
, unsigned int mode
)
3523 return basic_filebuf_wchar_open_wchar(this, name
, mode
, SH_DENYNO
);
3526 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PB_WI@Z */
3527 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEB_WI@Z */
3528 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBGI@Z */
3529 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBGI@Z */
3530 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_open_wchar_mode
, 12)
3531 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_open_wchar_mode(basic_filebuf_wchar
*this, const wchar_t *name
, unsigned int mode
)
3533 return basic_filebuf_short_open_wchar(this, name
, mode
, SH_DENYNO
);
3536 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBDHH@Z */
3537 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBDHH@Z */
3538 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open
, 16)
3539 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_open(basic_filebuf_wchar
*this, const char *name
, int mode
, int prot
)
3541 wchar_t nameW
[FILENAME_MAX
];
3543 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
3545 if(mbstowcs_s(NULL
, nameW
, FILENAME_MAX
, name
, FILENAME_MAX
-1) != 0)
3547 return basic_filebuf_wchar_open_wchar(this, nameW
, mode
, prot
);
3550 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDHH@Z */
3551 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDHH@Z */
3552 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_open
, 16)
3553 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_open(basic_filebuf_wchar
*this, const char *name
, int mode
, int prot
)
3555 wchar_t nameW
[FILENAME_MAX
];
3557 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
3559 if(mbstowcs_s(NULL
, nameW
, FILENAME_MAX
, name
, FILENAME_MAX
-1) != 0)
3561 return basic_filebuf_short_open_wchar(this, nameW
, mode
, prot
);
3564 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDF@Z */
3565 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDF@Z */
3566 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open_mode_old
, 12)
3567 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_open_mode_old(basic_filebuf_wchar
*this, const char *name
, short mode
)
3569 TRACE("(%p %p %d)\n", this, name
, mode
);
3570 return basic_filebuf_wchar_open(this, name
, mode
, SH_DENYNO
);
3573 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDH@Z */
3574 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDH@Z */
3575 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBDI@Z */
3576 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBDI@Z */
3577 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open_mode
, 12)
3578 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_open_mode(basic_filebuf_wchar
*this, const char *name
, unsigned int mode
)
3580 return basic_filebuf_wchar_open(this, name
, mode
, SH_DENYNO
);
3583 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDI@Z */
3584 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDI@Z */
3585 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_open_mode
, 12)
3586 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_open_mode(basic_filebuf_wchar
*this, const char *name
, unsigned int mode
)
3588 return basic_filebuf_short_open(this, name
, mode
, SH_DENYNO
);
3591 /* ?overflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
3592 /* ?overflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
3593 /* ?overflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
3594 /* ?overflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
3595 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_overflow
, 8)
3596 unsigned short __thiscall
basic_filebuf_wchar_overflow(basic_filebuf_wchar
*this, unsigned short c
)
3598 char *ptr
, *to_next
;
3600 const wchar_t *from_next
;
3604 TRACE("(%p %d)\n", this, c
);
3606 if(!basic_filebuf_wchar_is_open(this))
3612 return fwrite(&ch
, sizeof(wchar_t), 1, this->file
) ? c
: WEOF
;
3615 MSVCP_basic_string_char_clear(this->str
);
3616 MSVCP_basic_string_char_append_len_ch(this->str
, 8, '\0');
3617 ptr
= this->str
->ptr
;
3618 ret
= codecvt_wchar_out(this->cvt
, &this->state
, &ch
, &ch
+1, &from_next
,
3619 ptr
, ptr
+MSVCP_basic_string_char_length(this->str
), &to_next
);
3622 case CODECVT_partial
:
3623 if(from_next
== &ch
)
3627 if(!fwrite(ptr
, to_next
-ptr
, 1, this->file
))
3630 case CODECVT_noconv
:
3631 return fwrite(&ch
, sizeof(wchar_t), 1, this->file
) ? c
: WEOF
;
3637 /* ?pbackfail@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
3638 /* ?pbackfail@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
3639 /* ?pbackfail@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
3640 /* ?pbackfail@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
3641 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_pbackfail
, 8)
3642 unsigned short __thiscall
basic_filebuf_wchar_pbackfail(basic_filebuf_wchar
*this, unsigned short c
)
3644 TRACE("(%p %d)\n", this, c
);
3646 if(!basic_filebuf_wchar_is_open(this))
3649 if(basic_streambuf_wchar_gptr(&this->base
)>basic_streambuf_wchar_eback(&this->base
)
3650 && (c
==WEOF
|| basic_streambuf_wchar_gptr(&this->base
)[-1]==c
)) {
3651 basic_streambuf_wchar__Gndec(&this->base
);
3652 return c
==WEOF
? !c
: c
;
3653 }else if(c
== WEOF
) {
3655 }else if(!this->cvt
) {
3656 return ungetwc(c
, this->file
);
3657 }else if(MSVCP_basic_string_char_length(this->str
)) {
3661 b
= e
+this->str
->size
-1;
3662 for(cur
= b
; cur
>=e
; cur
--) {
3663 if(ungetc(*cur
, this->file
) == EOF
) {
3664 for(; cur
<=b
; cur
++)
3669 MSVCP_basic_string_char_clear(this->str
);
3670 this->state
= this->state0
;
3677 /* ?uflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
3678 /* ?uflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
3679 /* ?uflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
3680 /* ?uflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
3681 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_uflow
, 4)
3682 unsigned short __thiscall
basic_filebuf_wchar_uflow(basic_filebuf_wchar
*this)
3684 wchar_t ch
, *to_next
;
3685 const char *buf_next
;
3688 TRACE("(%p)\n", this);
3690 if(!basic_filebuf_wchar_is_open(this))
3693 if(basic_streambuf_wchar_gptr(&this->base
) < basic_streambuf_wchar_egptr(&this->base
))
3694 return *basic_streambuf_wchar__Gninc(&this->base
);
3697 return fgetwc(this->file
);
3699 MSVCP_basic_string_char_clear(this->str
);
3700 this->state0
= this->state
;
3702 if((c
= fgetc(this->file
)) == EOF
)
3704 MSVCP_basic_string_char_append_ch(this->str
, c
);
3705 this->state
= this->state0
;
3707 switch(codecvt_wchar_in(this->cvt
, &this->state
, this->str
->ptr
,
3708 this->str
->ptr
+this->str
->size
, &buf_next
, &ch
, &ch
+1, &to_next
)) {
3709 case CODECVT_partial
:
3711 case CODECVT_noconv
:
3712 if(this->str
->size
< sizeof(unsigned short)/sizeof(char))
3714 return *(unsigned short*)this->str
->ptr
;
3716 return (unsigned short)ch
;
3723 /* ?underflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
3724 /* ?underflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
3725 /* ?underflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
3726 /* ?underflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
3727 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_underflow
, 4)
3728 unsigned short __thiscall
basic_filebuf_wchar_underflow(basic_filebuf_wchar
*this)
3732 TRACE("(%p)\n", this);
3734 if(basic_streambuf_wchar_gptr(&this->base
) < basic_streambuf_wchar_egptr(&this->base
))
3735 return *basic_streambuf_wchar_gptr(&this->base
);
3737 ret
= call_basic_streambuf_wchar_uflow(&this->base
);
3739 ret
= call_basic_streambuf_wchar_pbackfail(&this->base
, ret
);
3743 /* ?seekoff@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
3744 /* ?seekoff@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
3745 /* ?seekoff@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
3746 /* ?seekoff@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
3747 /* ?seekoff@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
3748 /* ?seekoff@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
3749 #if STREAMOFF_BITS == 64
3750 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_seekoff
, 24)
3752 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_seekoff
, 20)
3754 fpos_int
* __thiscall
basic_filebuf_wchar_seekoff(basic_filebuf_wchar
*this,
3755 fpos_int
*ret
, streamoff off
, int way
, int mode
)
3759 TRACE("(%p %p %s %d %d)\n", this, ret
, wine_dbgstr_longlong(off
), way
, mode
);
3761 if(!basic_filebuf_wchar_is_open(this) || fseek(this->file
, off
, way
)) {
3768 fgetpos(this->file
, &pos
);
3771 ret
->state
= this->state
;
3775 /* ?seekpos@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
3776 /* ?seekpos@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
3777 /* ?seekpos@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
3778 /* ?seekpos@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
3779 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_seekpos
, 36)
3780 fpos_int
* __thiscall
basic_filebuf_wchar_seekpos(basic_filebuf_wchar
*this,
3781 fpos_int
*ret
, fpos_int pos
, int mode
)
3785 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_int(&pos
), mode
);
3787 if(!basic_filebuf_wchar_is_open(this) || fseek(this->file
, (LONG
)pos
.pos
, SEEK_SET
)
3788 || (pos
.off
&& fseek(this->file
, pos
.off
, SEEK_CUR
))) {
3795 fgetpos(this->file
, &fpos
);
3798 ret
->state
= this->state
;
3802 /* ?setbuf@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PA_WH@Z */
3803 /* ?setbuf@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PEA_W_J@Z */
3804 #if STREAMSIZE_BITS == 64
3805 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_setbuf
, 16)
3807 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_setbuf
, 12)
3809 basic_streambuf_wchar
* __thiscall
basic_filebuf_wchar_setbuf(basic_filebuf_wchar
*this, wchar_t *buf
, streamsize count
)
3811 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
3813 if(!basic_filebuf_wchar_is_open(this))
3816 if(setvbuf(this->file
, (char*)buf
, (buf
==NULL
&& count
==0) ? _IONBF
: _IOFBF
, count
*sizeof(wchar_t)))
3819 basic_filebuf_wchar__Init(this, this->file
, INITFL_open
);
3823 /* ?setbuf@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PAGH@Z */
3824 /* ?setbuf@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PEAG_J@Z */
3825 #if STREAMSIZE_BITS == 64
3826 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_setbuf
, 16)
3828 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_setbuf
, 12)
3830 basic_streambuf_wchar
* __thiscall
basic_filebuf_short_setbuf(basic_filebuf_wchar
*this, wchar_t *buf
, streamsize count
)
3832 TRACE("(%p %p %s)\n", this, buf
, wine_dbgstr_longlong(count
));
3834 if(!basic_filebuf_wchar_is_open(this))
3837 if(setvbuf(this->file
, (char*)buf
, (buf
==NULL
&& count
==0) ? _IONBF
: _IOFBF
, count
*sizeof(wchar_t)))
3840 basic_filebuf_short__Init(this, this->file
, INITFL_open
);
3844 /* ?sync@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEHXZ */
3845 /* ?sync@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAHXZ */
3846 /* ?sync@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEHXZ */
3847 /* ?sync@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAHXZ */
3848 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_sync
, 4)
3849 int __thiscall
basic_filebuf_wchar_sync(basic_filebuf_wchar
*this)
3851 TRACE("(%p)\n", this);
3853 if(!basic_filebuf_wchar_is_open(this))
3856 if(call_basic_streambuf_wchar_overflow(&this->base
, WEOF
) == WEOF
)
3858 return fflush(this->file
);
3861 /* ?imbue@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEXABVlocale@2@@Z */
3862 /* ?imbue@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAXAEBVlocale@2@@Z */
3863 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_imbue
, 8)
3864 void __thiscall
basic_filebuf_wchar_imbue(basic_filebuf_wchar
*this, const locale
*loc
)
3866 TRACE("(%p %p)\n", this, loc
);
3867 basic_filebuf_wchar__Initcvt_cvt(this, codecvt_wchar_use_facet(loc
));
3870 /* ?imbue@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEXABVlocale@2@@Z */
3871 /* ?imbue@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAXAEBVlocale@2@@Z */
3872 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_imbue
, 8)
3873 void __thiscall
basic_filebuf_short_imbue(basic_filebuf_wchar
*this, const locale
*loc
)
3875 TRACE("(%p %p)\n", this, loc
);
3876 basic_filebuf_wchar__Initcvt_cvt(this, codecvt_short_use_facet(loc
));
3879 /* ?_Getstate@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEHH@Z */
3880 /* ?_Getstate@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAHH@Z */
3881 /* ?_Mode@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEHH@Z */
3882 /* ?_Mode@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAHH@Z */
3883 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char__Getstate
, 8)
3884 int __thiscall
basic_stringbuf_char__Getstate(basic_stringbuf_char
*this, IOSB_openmode mode
)
3888 if(!(mode
& OPENMODE_in
))
3889 state
|= STRINGBUF_no_read
;
3891 if(!(mode
& OPENMODE_out
))
3892 state
|= STRINGBUF_no_write
;
3894 if(mode
& OPENMODE_ate
)
3895 state
|= STRINGBUF_at_end
;
3897 if(mode
& OPENMODE_app
)
3898 state
|= STRINGBUF_append
;
3903 /* ?_Init@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXPBDIH@Z */
3904 /* ?_Init@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAXPEBD_KH@Z */
3905 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char__Init
, 16)
3906 void __thiscall
basic_stringbuf_char__Init(basic_stringbuf_char
*this, const char *str
, MSVCP_size_t count
, int state
)
3908 TRACE("(%p, %p, %ld, %d)\n", this, str
, count
, state
);
3910 basic_streambuf_char__Init_empty(&this->base
);
3912 this->state
= state
;
3913 this->seekhigh
= NULL
;
3916 char *buf
= MSVCRT_operator_new(count
);
3918 ERR("Out of memory\n");
3919 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
3922 memcpy(buf
, str
, count
);
3923 this->seekhigh
= buf
+ count
;
3925 this->state
|= STRINGBUF_allocated
;
3927 if(!(state
& STRINGBUF_no_read
))
3928 basic_streambuf_char_setg(&this->base
, buf
, buf
, buf
+ count
);
3930 if(!(state
& STRINGBUF_no_write
)) {
3931 basic_streambuf_char_setp_next(&this->base
, buf
, (state
& STRINGBUF_at_end
) ? buf
+ count
: buf
, buf
+ count
);
3933 if(!basic_streambuf_char_gptr(&this->base
))
3934 basic_streambuf_char_setg(&this->base
, buf
, 0, buf
);
3939 /* ??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 */
3940 /* ??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 */
3941 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_ctor_str
, 12)
3942 basic_stringbuf_char
* __thiscall
basic_stringbuf_char_ctor_str(basic_stringbuf_char
*this,
3943 const basic_string_char
*str
, IOSB_openmode mode
)
3945 TRACE("(%p %p %d)\n", this, str
, mode
);
3947 basic_streambuf_char_ctor(&this->base
);
3948 this->base
.vtable
= &MSVCP_basic_stringbuf_char_vtable
;
3950 basic_stringbuf_char__Init(this, MSVCP_basic_string_char_c_str(str
),
3951 str
->size
, basic_stringbuf_char__Getstate(this, mode
));
3955 /* ??0?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
3956 /* ??0?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
3957 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_ctor_mode
, 8)
3958 basic_stringbuf_char
* __thiscall
basic_stringbuf_char_ctor_mode(
3959 basic_stringbuf_char
*this, IOSB_openmode mode
)
3961 TRACE("(%p %d)\n", this, mode
);
3963 basic_streambuf_char_ctor(&this->base
);
3964 this->base
.vtable
= &MSVCP_basic_stringbuf_char_vtable
;
3966 basic_stringbuf_char__Init(this, NULL
, 0, basic_stringbuf_char__Getstate(this, mode
));
3970 /* ??_F?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
3971 /* ??_F?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
3972 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_ctor
, 4)
3973 basic_stringbuf_char
* __thiscall
basic_stringbuf_char_ctor(basic_stringbuf_char
*this)
3975 return basic_stringbuf_char_ctor_mode(this, OPENMODE_in
|OPENMODE_out
);
3978 /* ?_Tidy@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXXZ */
3979 /* ?_Tidy@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAXXZ */
3980 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char__Tidy
, 4)
3981 void __thiscall
basic_stringbuf_char__Tidy(basic_stringbuf_char
*this)
3983 TRACE("(%p)\n", this);
3985 if(this->state
& STRINGBUF_allocated
) {
3986 MSVCRT_operator_delete(basic_streambuf_char_eback(&this->base
));
3987 this->seekhigh
= NULL
;
3988 this->state
&= ~STRINGBUF_allocated
;
3991 basic_streambuf_char__Init_empty(&this->base
);
3994 /* ??1?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
3995 /* ??1?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
3996 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_dtor
, 4)
3997 void __thiscall
basic_stringbuf_char_dtor(basic_stringbuf_char
*this)
3999 TRACE("(%p)\n", this);
4001 basic_stringbuf_char__Tidy(this);
4002 basic_streambuf_char_dtor(&this->base
);
4005 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_vector_dtor
, 8)
4006 basic_stringbuf_char
* __thiscall
basic_stringbuf_char_vector_dtor(basic_stringbuf_char
*this, unsigned int flags
)
4008 TRACE("(%p %x)\n", this, flags
);
4011 /* we have an array, with the number of elements stored before the first object */
4012 INT_PTR i
, *ptr
= (INT_PTR
*) this - 1;
4014 for (i
= *ptr
- 1; i
>= 0; i
--)
4015 basic_stringbuf_char_dtor(this+i
);
4017 MSVCRT_operator_delete(ptr
);
4019 basic_stringbuf_char_dtor(this);
4022 MSVCRT_operator_delete(this);
4028 /* ?overflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHH@Z */
4029 /* ?overflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAAHH@Z */
4030 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_overflow
, 8)
4031 int __thiscall
basic_stringbuf_char_overflow(basic_stringbuf_char
*this, int meta
)
4033 MSVCP_size_t oldsize
, size
;
4036 TRACE("(%p %x)\n", this, meta
);
4040 if(this->state
& STRINGBUF_no_write
)
4043 ptr
= basic_streambuf_char_pptr(&this->base
);
4044 if((this->state
&STRINGBUF_append
) && ptr
<this->seekhigh
)
4045 basic_streambuf_char_setp_next(&this->base
, basic_streambuf_char_pbase(&this->base
),
4046 this->seekhigh
, basic_streambuf_char_epptr(&this->base
));
4048 if(ptr
&& ptr
<basic_streambuf_char_epptr(&this->base
))
4049 return (unsigned char)(*basic_streambuf_char__Pninc(&this->base
) = meta
);
4051 oldsize
= (ptr
? basic_streambuf_char_epptr(&this->base
)-basic_streambuf_char_eback(&this->base
): 0);
4054 buf
= MSVCRT_operator_new(size
);
4056 ERR("Out of memory\n");
4057 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
4061 this->seekhigh
= buf
;
4062 basic_streambuf_char_setp(&this->base
, buf
, buf
+size
);
4063 if(this->state
& STRINGBUF_no_read
)
4064 basic_streambuf_char_setg(&this->base
, buf
, NULL
, buf
);
4066 basic_streambuf_char_setg(&this->base
, buf
, buf
, buf
+1);
4068 this->state
|= STRINGBUF_allocated
;
4070 ptr
= basic_streambuf_char_eback(&this->base
);
4071 memcpy(buf
, ptr
, oldsize
);
4073 this->seekhigh
= buf
+(this->seekhigh
-ptr
);
4074 basic_streambuf_char_setp_next(&this->base
, buf
,
4075 buf
+(basic_streambuf_char_pptr(&this->base
)-ptr
), 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
,
4080 buf
+(basic_streambuf_char_gptr(&this->base
)-ptr
),
4081 basic_streambuf_char_pptr(&this->base
)+1);
4083 MSVCRT_operator_delete(ptr
);
4086 return (unsigned char)(*basic_streambuf_char__Pninc(&this->base
) = meta
);
4089 /* ?pbackfail@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHH@Z */
4090 /* ?pbackfail@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAAHH@Z */
4091 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_pbackfail
, 8)
4092 int __thiscall
basic_stringbuf_char_pbackfail(basic_stringbuf_char
*this, int c
)
4096 TRACE("(%p %x)\n", this, c
);
4098 cur
= basic_streambuf_char_gptr(&this->base
);
4099 if(!cur
|| cur
==basic_streambuf_char_eback(&this->base
)
4100 || (c
!=EOF
&& c
!=cur
[-1] && this->state
&STRINGBUF_no_write
))
4105 basic_streambuf_char_gbump(&this->base
, -1);
4106 return c
==EOF
? !EOF
: c
;
4109 /* ?underflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHXZ */
4110 /* ?underflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAAHXZ */
4111 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_underflow
, 4)
4112 int __thiscall
basic_stringbuf_char_underflow(basic_stringbuf_char
*this)
4116 TRACE("(%p)\n", this);
4118 cur
= basic_streambuf_char_gptr(&this->base
);
4119 if(!cur
|| this->state
&STRINGBUF_no_read
)
4122 ptr
= basic_streambuf_char_pptr(&this->base
);
4123 if(this->seekhigh
< ptr
)
4124 this->seekhigh
= ptr
;
4126 ptr
= basic_streambuf_char_egptr(&this->base
);
4127 if(this->seekhigh
> ptr
)
4128 basic_streambuf_char_setg(&this->base
, basic_streambuf_char_eback(&this->base
), cur
, this->seekhigh
);
4130 if(cur
< this->seekhigh
)
4131 return (unsigned char)*cur
;
4135 /* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
4136 /* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
4137 /* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAE?AV?$fpos@H@2@JHH@Z */
4138 /* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
4139 #if STREAMOFF_BITS == 64
4140 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_seekoff
, 24)
4142 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_seekoff
, 20)
4144 fpos_int
* __thiscall
basic_stringbuf_char_seekoff(basic_stringbuf_char
*this,
4145 fpos_int
*ret
, streamoff off
, int way
, int mode
)
4147 char *beg
, *cur_r
, *cur_w
;
4149 TRACE("(%p %p %s %d %d)\n", this, ret
, wine_dbgstr_longlong(off
), way
, mode
);
4151 cur_w
= basic_streambuf_char_pptr(&this->base
);
4152 if(cur_w
> this->seekhigh
)
4153 this->seekhigh
= cur_w
;
4159 beg
= basic_streambuf_char_eback(&this->base
);
4160 cur_r
= basic_streambuf_char_gptr(&this->base
);
4161 if((mode
& OPENMODE_in
) && cur_r
) {
4162 if(way
==SEEKDIR_cur
&& !(mode
& OPENMODE_out
))
4164 else if(way
== SEEKDIR_end
)
4165 off
+= this->seekhigh
-beg
;
4166 else if(way
!= SEEKDIR_beg
)
4169 if(off
<0 || off
>this->seekhigh
-beg
) {
4172 basic_streambuf_char_gbump(&this->base
, beg
-cur_r
+off
);
4173 if((mode
& OPENMODE_out
) && cur_w
) {
4174 basic_streambuf_char_setp_next(&this->base
, beg
,
4175 basic_streambuf_char_gptr(&this->base
),
4176 basic_streambuf_char_epptr(&this->base
));
4179 }else if((mode
& OPENMODE_out
) && cur_w
) {
4180 if(way
== SEEKDIR_cur
)
4182 else if(way
== SEEKDIR_end
)
4183 off
+= this->seekhigh
-beg
;
4184 else if(way
!= SEEKDIR_beg
)
4187 if(off
<0 || off
>this->seekhigh
-beg
)
4190 basic_streambuf_char_pbump(&this->base
, beg
-cur_w
+off
);
4199 /* ?seekpos@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
4200 /* ?seekpos@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
4201 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_seekpos
, 36)
4202 fpos_int
* __thiscall
basic_stringbuf_char_seekpos(basic_stringbuf_char
*this,
4203 fpos_int
*ret
, fpos_int pos
, int mode
)
4205 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_int(&pos
), mode
);
4207 if(pos
.off
==-1 && pos
.pos
==0 && pos
.state
==0) {
4212 return basic_stringbuf_char_seekoff(this, ret
, pos
.pos
+pos
.off
, SEEKDIR_beg
, mode
);
4215 /* ?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 */
4216 /* ?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 */
4217 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_str_set
, 8)
4218 void __thiscall
basic_stringbuf_char_str_set(basic_stringbuf_char
*this, const basic_string_char
*str
)
4220 TRACE("(%p %p)\n", this, str
);
4222 basic_stringbuf_char__Tidy(this);
4223 basic_stringbuf_char__Init(this, MSVCP_basic_string_char_c_str(str
), str
->size
, this->state
);
4226 /* ?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 */
4227 /* ?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 */
4228 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_str_get
, 8)
4229 basic_string_char
* __thiscall
basic_stringbuf_char_str_get(const basic_stringbuf_char
*this, basic_string_char
*ret
)
4233 TRACE("(%p)\n", this);
4235 if(!(this->state
& STRINGBUF_no_write
) && basic_streambuf_char_pptr(&this->base
)) {
4238 ptr
= basic_streambuf_char_pbase(&this->base
);
4239 pptr
= basic_streambuf_char_pptr(&this->base
);
4241 return MSVCP_basic_string_char_ctor_cstr_len(ret
, ptr
, (this->seekhigh
< pptr
? pptr
: this->seekhigh
) - ptr
);
4244 if(!(this->state
& STRINGBUF_no_read
) && basic_streambuf_char_gptr(&this->base
)) {
4245 ptr
= basic_streambuf_char_eback(&this->base
);
4246 return MSVCP_basic_string_char_ctor_cstr_len(ret
, ptr
, basic_streambuf_char_egptr(&this->base
) - ptr
);
4249 return MSVCP_basic_string_char_ctor(ret
);
4252 /* ?_Getstate@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AAEHH@Z */
4253 /* ?_Getstate@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AEAAHH@Z */
4254 /* ?_Getstate@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AAEHH@Z */
4255 /* ?_Getstate@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AEAAHH@Z */
4256 /* ?_Mode@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AAEHH@Z */
4257 /* ?_Mode@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AEAAHH@Z */
4258 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar__Getstate
, 8)
4259 int __thiscall
basic_stringbuf_wchar__Getstate(basic_stringbuf_wchar
*this, IOSB_openmode mode
)
4263 if(!(mode
& OPENMODE_in
))
4264 state
|= STRINGBUF_no_read
;
4266 if(!(mode
& OPENMODE_out
))
4267 state
|= STRINGBUF_no_write
;
4269 if(mode
& OPENMODE_ate
)
4270 state
|= STRINGBUF_at_end
;
4272 if(mode
& OPENMODE_app
)
4273 state
|= STRINGBUF_append
;
4278 /* ?_Init@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXPB_WIH@Z */
4279 /* ?_Init@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAXPEB_W_KH@Z */
4280 /* ?_Init@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEXPBGIH@Z */
4281 /* ?_Init@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAXPEBG_KH@Z */
4282 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar__Init
, 16)
4283 void __thiscall
basic_stringbuf_wchar__Init(basic_stringbuf_wchar
*this, const wchar_t *str
, MSVCP_size_t count
, int state
)
4285 TRACE("(%p, %p, %lu, %d)\n", this, str
, count
, state
);
4287 basic_streambuf_wchar__Init_empty(&this->base
);
4289 this->state
= state
;
4290 this->seekhigh
= NULL
;
4293 wchar_t *buf
= MSVCRT_operator_new(count
*sizeof(wchar_t));
4295 ERR("Out of memory\n");
4296 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
4299 memcpy(buf
, str
, count
*sizeof(wchar_t));
4300 this->seekhigh
= buf
+ count
;
4302 this->state
|= STRINGBUF_allocated
;
4304 if(!(state
& STRINGBUF_no_read
))
4305 basic_streambuf_wchar_setg(&this->base
, buf
, buf
, buf
+ count
);
4307 if(!(state
& STRINGBUF_no_write
)) {
4308 basic_streambuf_wchar_setp_next(&this->base
, buf
, (state
& STRINGBUF_at_end
) ? buf
+ count
: buf
, buf
+ count
);
4310 if(!basic_streambuf_wchar_gptr(&this->base
))
4311 basic_streambuf_wchar_setg(&this->base
, buf
, 0, buf
);
4316 /* ??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 */
4317 /* ??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 */
4318 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_ctor_str
, 12)
4319 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_wchar_ctor_str(basic_stringbuf_wchar
*this,
4320 const basic_string_wchar
*str
, IOSB_openmode mode
)
4322 TRACE("(%p %p %d)\n", this, str
, mode
);
4324 basic_streambuf_wchar_ctor(&this->base
);
4325 this->base
.vtable
= &MSVCP_basic_stringbuf_wchar_vtable
;
4327 basic_stringbuf_wchar__Init(this, MSVCP_basic_string_wchar_c_str(str
),
4328 str
->size
, basic_stringbuf_wchar__Getstate(this, mode
));
4332 /* ??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 */
4333 /* ??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 */
4334 DEFINE_THISCALL_WRAPPER(basic_stringbuf_short_ctor_str
, 12)
4335 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_short_ctor_str(basic_stringbuf_wchar
*this,
4336 const basic_string_wchar
*str
, IOSB_openmode mode
)
4338 basic_stringbuf_wchar_ctor_str(this, str
, mode
);
4339 this->base
.vtable
= &MSVCP_basic_stringbuf_short_vtable
;
4343 /* ??0?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
4344 /* ??0?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
4345 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_ctor_mode
, 8)
4346 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_wchar_ctor_mode(
4347 basic_stringbuf_wchar
*this, IOSB_openmode mode
)
4349 TRACE("(%p %d)\n", this, mode
);
4351 basic_streambuf_wchar_ctor(&this->base
);
4352 this->base
.vtable
= &MSVCP_basic_stringbuf_wchar_vtable
;
4354 basic_stringbuf_wchar__Init(this, NULL
, 0, basic_stringbuf_wchar__Getstate(this, mode
));
4358 /* ??0?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
4359 /* ??0?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
4360 DEFINE_THISCALL_WRAPPER(basic_stringbuf_short_ctor_mode
, 8)
4361 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_short_ctor_mode(
4362 basic_stringbuf_wchar
*this, IOSB_openmode mode
)
4364 basic_stringbuf_wchar_ctor_mode(this, mode
);
4365 this->base
.vtable
= &MSVCP_basic_stringbuf_short_vtable
;
4369 /* ??_F?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
4370 /* ??_F?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
4371 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_ctor
, 4)
4372 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_wchar_ctor(basic_stringbuf_wchar
*this)
4374 return basic_stringbuf_wchar_ctor_mode(this, OPENMODE_in
|OPENMODE_out
);
4377 /* ??_F?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
4378 /* ??_F?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
4379 DEFINE_THISCALL_WRAPPER(basic_stringbuf_short_ctor
, 4)
4380 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_short_ctor(basic_stringbuf_wchar
*this)
4382 return basic_stringbuf_short_ctor_mode(this, OPENMODE_in
|OPENMODE_out
);
4385 /* ?_Tidy@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXXZ */
4386 /* ?_Tidy@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAXXZ */
4387 /* ?_Tidy@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEXXZ */
4388 /* ?_Tidy@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAXXZ */
4389 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar__Tidy
, 4)
4390 void __thiscall
basic_stringbuf_wchar__Tidy(basic_stringbuf_wchar
*this)
4392 TRACE("(%p)\n", this);
4394 if(this->state
& STRINGBUF_allocated
) {
4395 MSVCRT_operator_delete(basic_streambuf_wchar_eback(&this->base
));
4396 this->seekhigh
= NULL
;
4397 this->state
&= ~STRINGBUF_allocated
;
4400 basic_streambuf_wchar__Init_empty(&this->base
);
4403 /* ??1?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
4404 /* ??1?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
4405 /* ??1?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
4406 /* ??1?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
4407 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_dtor
, 4)
4408 void __thiscall
basic_stringbuf_wchar_dtor(basic_stringbuf_wchar
*this)
4410 TRACE("(%p)\n", this);
4412 basic_stringbuf_wchar__Tidy(this);
4413 basic_streambuf_wchar_dtor(&this->base
);
4416 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_vector_dtor
, 8)
4417 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_wchar_vector_dtor(basic_stringbuf_wchar
*this, unsigned int flags
)
4419 TRACE("(%p %x)\n", this, flags
);
4422 /* we have an array, with the number of elements stored before the first object */
4423 INT_PTR i
, *ptr
= (INT_PTR
*) this - 1;
4425 for (i
= *ptr
- 1; i
>= 0; i
--)
4426 basic_stringbuf_wchar_dtor(this+i
);
4428 MSVCRT_operator_delete(ptr
);
4430 basic_stringbuf_wchar_dtor(this);
4433 MSVCRT_operator_delete(this);
4439 /* ?overflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAEGG@Z */
4440 /* ?overflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAAGG@Z */
4441 /* ?overflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAEGG@Z */
4442 /* ?overflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAAGG@Z */
4443 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_overflow
, 8)
4444 unsigned short __thiscall
basic_stringbuf_wchar_overflow(basic_stringbuf_wchar
*this, unsigned short meta
)
4446 MSVCP_size_t oldsize
, size
;
4449 TRACE("(%p %x)\n", this, meta
);
4453 if(this->state
& STRINGBUF_no_write
)
4456 ptr
= basic_streambuf_wchar_pptr(&this->base
);
4457 if((this->state
&STRINGBUF_append
) && ptr
<this->seekhigh
)
4458 basic_streambuf_wchar_setp_next(&this->base
, basic_streambuf_wchar_pbase(&this->base
),
4459 this->seekhigh
, basic_streambuf_wchar_epptr(&this->base
));
4461 if(ptr
&& ptr
<basic_streambuf_wchar_epptr(&this->base
))
4462 return (*basic_streambuf_wchar__Pninc(&this->base
) = meta
);
4464 oldsize
= (ptr
? basic_streambuf_wchar_epptr(&this->base
)-basic_streambuf_wchar_eback(&this->base
): 0);
4467 buf
= MSVCRT_operator_new(size
*sizeof(wchar_t));
4469 ERR("Out of memory\n");
4470 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
4474 this->seekhigh
= buf
;
4475 basic_streambuf_wchar_setp(&this->base
, buf
, buf
+size
);
4476 if(this->state
& STRINGBUF_no_read
)
4477 basic_streambuf_wchar_setg(&this->base
, buf
, NULL
, buf
);
4479 basic_streambuf_wchar_setg(&this->base
, buf
, buf
, buf
+1);
4481 this->state
|= STRINGBUF_allocated
;
4483 ptr
= basic_streambuf_wchar_eback(&this->base
);
4484 memcpy(buf
, ptr
, oldsize
*sizeof(wchar_t));
4486 this->seekhigh
= buf
+(this->seekhigh
-ptr
);
4487 basic_streambuf_wchar_setp_next(&this->base
, buf
,
4488 buf
+(basic_streambuf_wchar_pptr(&this->base
)-ptr
), buf
+size
);
4489 if(this->state
& STRINGBUF_no_read
)
4490 basic_streambuf_wchar_setg(&this->base
, buf
, NULL
, buf
);
4492 basic_streambuf_wchar_setg(&this->base
, buf
,
4493 buf
+(basic_streambuf_wchar_gptr(&this->base
)-ptr
),
4494 basic_streambuf_wchar_pptr(&this->base
)+1);
4496 MSVCRT_operator_delete(ptr
);
4499 return (*basic_streambuf_wchar__Pninc(&this->base
) = meta
);
4502 /* ?pbackfail@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAEGG@Z */
4503 /* ?pbackfail@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAAGG@Z */
4504 /* ?pbackfail@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAEGG@Z */
4505 /* ?pbackfail@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAAGG@Z */
4506 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_pbackfail
, 8)
4507 unsigned short __thiscall
basic_stringbuf_wchar_pbackfail(basic_stringbuf_wchar
*this, unsigned short c
)
4511 TRACE("(%p %x)\n", this, c
);
4513 cur
= basic_streambuf_wchar_gptr(&this->base
);
4514 if(!cur
|| cur
==basic_streambuf_wchar_eback(&this->base
)
4515 || (c
!=WEOF
&& c
!=cur
[-1] && this->state
&STRINGBUF_no_write
))
4520 basic_streambuf_wchar_gbump(&this->base
, -1);
4521 return c
==WEOF
? !WEOF
: c
;
4524 /* ?underflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAEGXZ */
4525 /* ?underflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAAGXZ */
4526 /* ?underflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAEGXZ */
4527 /* ?underflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAAGXZ */
4528 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_underflow
, 4)
4529 unsigned short __thiscall
basic_stringbuf_wchar_underflow(basic_stringbuf_wchar
*this)
4533 TRACE("(%p)\n", this);
4535 cur
= basic_streambuf_wchar_gptr(&this->base
);
4536 if(!cur
|| this->state
&STRINGBUF_no_read
)
4539 ptr
= basic_streambuf_wchar_pptr(&this->base
);
4540 if(this->seekhigh
< ptr
)
4541 this->seekhigh
= ptr
;
4543 ptr
= basic_streambuf_wchar_egptr(&this->base
);
4544 if(this->seekhigh
> ptr
)
4545 basic_streambuf_wchar_setg(&this->base
, basic_streambuf_wchar_eback(&this->base
), cur
, this->seekhigh
);
4547 if(cur
< this->seekhigh
)
4552 /* ?seekoff@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
4553 /* ?seekoff@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
4554 /* ?seekoff@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAE?AV?$fpos@H@2@JHH@Z */
4555 /* ?seekoff@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
4556 /* ?seekoff@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAE?AV?$fpos@H@2@JHH@Z */
4557 /* ?seekoff@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
4558 #if STREAMOFF_BITS == 64
4559 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_seekoff
, 24)
4561 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_seekoff
, 20)
4563 fpos_int
* __thiscall
basic_stringbuf_wchar_seekoff(basic_stringbuf_wchar
*this,
4564 fpos_int
*ret
, streamoff off
, int way
, int mode
)
4566 wchar_t *beg
, *cur_r
, *cur_w
;
4568 TRACE("(%p %p %s %d %d)\n", this, ret
, wine_dbgstr_longlong(off
), way
, mode
);
4570 cur_w
= basic_streambuf_wchar_pptr(&this->base
);
4571 if(cur_w
> this->seekhigh
)
4572 this->seekhigh
= cur_w
;
4578 beg
= basic_streambuf_wchar_eback(&this->base
);
4579 cur_r
= basic_streambuf_wchar_gptr(&this->base
);
4580 if((mode
& OPENMODE_in
) && cur_r
) {
4581 if(way
==SEEKDIR_cur
&& !(mode
& OPENMODE_out
))
4583 else if(way
== SEEKDIR_end
)
4584 off
+= this->seekhigh
-beg
;
4585 else if(way
!= SEEKDIR_beg
)
4588 if(off
<0 || off
>this->seekhigh
-beg
) {
4591 basic_streambuf_wchar_gbump(&this->base
, beg
-cur_r
+off
);
4592 if((mode
& OPENMODE_out
) && cur_w
) {
4593 basic_streambuf_wchar_setp_next(&this->base
, beg
,
4594 basic_streambuf_wchar_gptr(&this->base
),
4595 basic_streambuf_wchar_epptr(&this->base
));
4598 }else if((mode
& OPENMODE_out
) && cur_w
) {
4599 if(way
== SEEKDIR_cur
)
4601 else if(way
== SEEKDIR_end
)
4602 off
+= this->seekhigh
-beg
;
4603 else if(way
!= SEEKDIR_beg
)
4606 if(off
<0 || off
>this->seekhigh
-beg
)
4609 basic_streambuf_wchar_pbump(&this->base
, beg
-cur_w
+off
);
4618 /* ?seekpos@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
4619 /* ?seekpos@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
4620 /* ?seekpos@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
4621 /* ?seekpos@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
4622 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_seekpos
, 36)
4623 fpos_int
* __thiscall
basic_stringbuf_wchar_seekpos(basic_stringbuf_wchar
*this,
4624 fpos_int
*ret
, fpos_int pos
, int mode
)
4626 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_int(&pos
), mode
);
4628 if(pos
.off
==-1 && pos
.pos
==0 && pos
.state
==0) {
4633 return basic_stringbuf_wchar_seekoff(this, ret
, pos
.pos
+pos
.off
, SEEKDIR_beg
, mode
);
4636 /* ?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 */
4637 /* ?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 */
4638 /* ?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 */
4639 /* ?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 */
4640 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_str_set
, 8)
4641 void __thiscall
basic_stringbuf_wchar_str_set(basic_stringbuf_wchar
*this, const basic_string_wchar
*str
)
4643 TRACE("(%p %p)\n", this, str
);
4645 basic_stringbuf_wchar__Tidy(this);
4646 basic_stringbuf_wchar__Init(this, MSVCP_basic_string_wchar_c_str(str
), str
->size
, this->state
);
4649 /* ?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 */
4650 /* ?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 */
4651 /* ?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 */
4652 /* ?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 */
4653 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_str_get
, 8)
4654 basic_string_wchar
* __thiscall
basic_stringbuf_wchar_str_get(const basic_stringbuf_wchar
*this, basic_string_wchar
*ret
)
4658 TRACE("(%p)\n", this);
4660 if(!(this->state
& STRINGBUF_no_write
) && basic_streambuf_wchar_pptr(&this->base
)) {
4663 ptr
= basic_streambuf_wchar_pbase(&this->base
);
4664 pptr
= basic_streambuf_wchar_pptr(&this->base
);
4666 return MSVCP_basic_string_wchar_ctor_cstr_len(ret
, ptr
, (this->seekhigh
< pptr
? pptr
: this->seekhigh
) - ptr
);
4669 if(!(this->state
& STRINGBUF_no_read
) && basic_streambuf_wchar_gptr(&this->base
)) {
4670 ptr
= basic_streambuf_wchar_eback(&this->base
);
4671 return MSVCP_basic_string_wchar_ctor_cstr_len(ret
, ptr
, basic_streambuf_wchar_egptr(&this->base
) - ptr
);
4674 return MSVCP_basic_string_wchar_ctor(ret
);
4677 /* ??0ios_base@std@@IAE@XZ */
4678 /* ??0ios_base@std@@IEAA@XZ */
4679 DEFINE_THISCALL_WRAPPER(ios_base_ctor
, 4)
4680 ios_base
* __thiscall
ios_base_ctor(ios_base
*this)
4682 TRACE("(%p)\n", this);
4683 this->vtable
= &MSVCP_ios_base_vtable
;
4684 locale_ctor_uninitialized(IOS_LOCALE(this), 0);
4688 /* ??0ios_base@std@@QAE@ABV01@@Z */
4689 /* ??0ios_base@std@@QEAA@AEBV01@@Z */
4690 DEFINE_THISCALL_WRAPPER(ios_base_copy_ctor
, 8)
4691 ios_base
* __thiscall
ios_base_copy_ctor(ios_base
*this, const ios_base
*copy
)
4693 TRACE("(%p %p)\n", this, copy
);
4695 this->vtable
= &MSVCP_ios_base_vtable
;
4699 /* ?_Callfns@ios_base@std@@AAEXW4event@12@@Z */
4700 /* ?_Callfns@ios_base@std@@AEAAXW4event@12@@Z */
4701 DEFINE_THISCALL_WRAPPER(ios_base_Callfns
, 8)
4702 void __thiscall
ios_base_Callfns(ios_base
*this, IOS_BASE_event event
)
4704 IOS_BASE_fnarray
*cur
;
4706 TRACE("(%p %x)\n", this, event
);
4708 for(cur
=this->calls
; cur
; cur
=cur
->next
)
4709 cur
->event_handler(event
, this, cur
->index
);
4712 /* ?_Tidy@ios_base@std@@AAAXXZ */
4713 /* ?_Tidy@ios_base@std@@AEAAXXZ */
4714 void __cdecl
ios_base_Tidy(ios_base
*this)
4716 IOS_BASE_iosarray
*arr_cur
, *arr_next
;
4717 IOS_BASE_fnarray
*event_cur
, *event_next
;
4719 TRACE("(%p)\n", this);
4721 ios_base_Callfns(this, EVENT_erase_event
);
4723 for(arr_cur
=this->arr
; arr_cur
; arr_cur
=arr_next
) {
4724 arr_next
= arr_cur
->next
;
4725 MSVCRT_operator_delete(arr_cur
);
4729 for(event_cur
=this->calls
; event_cur
; event_cur
=event_next
) {
4730 event_next
= event_cur
->next
;
4731 MSVCRT_operator_delete(event_cur
);
4736 /* ?_Ios_base_dtor@ios_base@std@@CAXPAV12@@Z */
4737 /* ?_Ios_base_dtor@ios_base@std@@CAXPEAV12@@Z */
4738 void __cdecl
ios_base_Ios_base_dtor(ios_base
*obj
)
4740 TRACE("(%p)\n", obj
);
4741 locale_dtor(IOS_LOCALE(obj
));
4742 #if _MSVCP_VER >= 70
4743 MSVCRT_operator_delete(obj
->loc
);
4748 /* ??1ios_base@std@@UAE@XZ */
4749 /* ??1ios_base@std@@UEAA@XZ */
4750 DEFINE_THISCALL_WRAPPER(ios_base_dtor
, 4)
4751 void __thiscall
ios_base_dtor(ios_base
*this)
4753 ios_base_Ios_base_dtor(this);
4756 DEFINE_THISCALL_WRAPPER(ios_base_vector_dtor
, 8)
4757 ios_base
* __thiscall
ios_base_vector_dtor(ios_base
*this, unsigned int flags
)
4759 TRACE("(%p %x)\n", this, flags
);
4761 /* we have an array, with the number of elements stored before the first object */
4762 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
4764 for(i
=*ptr
-1; i
>=0; i
--)
4765 ios_base_dtor(this+i
);
4766 MSVCRT_operator_delete(ptr
);
4768 ios_base_dtor(this);
4770 MSVCRT_operator_delete(this);
4776 DEFINE_THISCALL_WRAPPER(iosb_vector_dtor
, 8)
4777 void* __thiscall
iosb_vector_dtor(void *this, unsigned int flags
)
4779 TRACE("(%p %x)\n", this, flags
);
4781 INT_PTR
*ptr
= (INT_PTR
*)this-1;
4782 MSVCRT_operator_delete(ptr
);
4785 MSVCRT_operator_delete(this);
4791 /* ?_Findarr@ios_base@std@@AAEAAU_Iosarray@12@H@Z */
4792 /* ?_Findarr@ios_base@std@@AEAAAEAU_Iosarray@12@H@Z */
4793 DEFINE_THISCALL_WRAPPER(ios_base_Findarr
, 8)
4794 IOS_BASE_iosarray
* __thiscall
ios_base_Findarr(ios_base
*this, int index
)
4796 IOS_BASE_iosarray
*p
;
4798 TRACE("(%p %d)\n", this, index
);
4800 for(p
=this->arr
; p
; p
=p
->next
) {
4801 if(p
->index
== index
)
4805 for(p
=this->arr
; p
; p
=p
->next
) {
4806 if(!p
->long_val
&& !p
->ptr_val
) {
4812 p
= MSVCRT_operator_new(sizeof(IOS_BASE_iosarray
));
4813 p
->next
= this->arr
;
4821 /* ?iword@ios_base@std@@QAEAAJH@Z */
4822 /* ?iword@ios_base@std@@QEAAAEAJH@Z */
4823 DEFINE_THISCALL_WRAPPER(ios_base_iword
, 8)
4824 LONG
* __thiscall
ios_base_iword(ios_base
*this, int index
)
4826 TRACE("(%p %d)\n", this, index
);
4827 return &ios_base_Findarr(this, index
)->long_val
;
4830 /* ?pword@ios_base@std@@QAEAAPAXH@Z */
4831 /* ?pword@ios_base@std@@QEAAAEAPEAXH@Z */
4832 DEFINE_THISCALL_WRAPPER(ios_base_pword
, 8)
4833 void** __thiscall
ios_base_pword(ios_base
*this, int index
)
4835 TRACE("(%p %d)\n", this, index
);
4836 return &ios_base_Findarr(this, index
)->ptr_val
;
4839 /* ?register_callback@ios_base@std@@QAEXP6AXW4event@12@AAV12@H@ZH@Z */
4840 /* ?register_callback@ios_base@std@@QEAAXP6AXW4event@12@AEAV12@H@ZH@Z */
4841 DEFINE_THISCALL_WRAPPER(ios_base_register_callback
, 12)
4842 void __thiscall
ios_base_register_callback(ios_base
*this, IOS_BASE_event_callback callback
, int index
)
4844 IOS_BASE_fnarray
*event
;
4846 TRACE("(%p %p %d)\n", this, callback
, index
);
4848 event
= MSVCRT_operator_new(sizeof(IOS_BASE_fnarray
));
4849 event
->next
= this->calls
;
4850 event
->index
= index
;
4851 event
->event_handler
= callback
;
4852 this->calls
= event
;
4855 /* ?clear@ios_base@std@@QAEXH_N@Z */
4856 /* ?clear@ios_base@std@@QEAAXH_N@Z */
4857 DEFINE_THISCALL_WRAPPER(ios_base_clear_reraise
, 12)
4858 void __thiscall
ios_base_clear_reraise(ios_base
*this, IOSB_iostate state
, MSVCP_bool reraise
)
4860 TRACE("(%p %x %x)\n", this, state
, reraise
);
4862 this->state
= state
& IOSTATE_mask
;
4863 if(!(this->state
& this->except
))
4867 throw_exception(EXCEPTION_RERAISE
, NULL
);
4868 else if(this->state
& this->except
& IOSTATE_eofbit
)
4869 throw_exception(EXCEPTION_FAILURE
, "eofbit is set");
4870 else if(this->state
& this->except
& IOSTATE_failbit
)
4871 throw_exception(EXCEPTION_FAILURE
, "failbit is set");
4872 else if(this->state
& this->except
& IOSTATE_badbit
)
4873 throw_exception(EXCEPTION_FAILURE
, "badbit is set");
4874 else if(this->state
& this->except
& IOSTATE__Hardfail
)
4875 throw_exception(EXCEPTION_FAILURE
, "_Hardfail is set");
4878 /* ?clear@ios_base@std@@QAEXH@Z */
4879 /* ?clear@ios_base@std@@QEAAXH@Z */
4880 DEFINE_THISCALL_WRAPPER(ios_base_clear
, 8)
4881 void __thiscall
ios_base_clear(ios_base
*this, IOSB_iostate state
)
4883 ios_base_clear_reraise(this, state
, FALSE
);
4886 /* ?clear@ios_base@std@@QAEXI@Z */
4887 /* ?clear@ios_base@std@@QEAAXI@Z */
4888 DEFINE_THISCALL_WRAPPER(ios_base_clear_unsigned
, 8)
4889 void __thiscall
ios_base_clear_unsigned(ios_base
*this, unsigned int state
)
4891 ios_base_clear_reraise(this, (IOSB_iostate
)state
, FALSE
);
4894 /* ?exceptions@ios_base@std@@QAEXH@Z */
4895 /* ?exceptions@ios_base@std@@QEAAXH@Z */
4896 DEFINE_THISCALL_WRAPPER(ios_base_exceptions_set
, 8)
4897 void __thiscall
ios_base_exceptions_set(ios_base
*this, IOSB_iostate state
)
4899 TRACE("(%p %x)\n", this, state
);
4900 this->except
= state
& IOSTATE_mask
;
4901 ios_base_clear(this, this->state
);
4904 /* ?exceptions@ios_base@std@@QAEXI@Z */
4905 /* ?exceptions@ios_base@std@@QEAAXI@Z */
4906 DEFINE_THISCALL_WRAPPER(ios_base_exceptions_set_unsigned
, 8)
4907 void __thiscall
ios_base_exceptions_set_unsigned(ios_base
*this, unsigned int state
)
4909 TRACE("(%p %x)\n", this, state
);
4910 ios_base_exceptions_set(this, state
);
4913 /* ?exceptions@ios_base@std@@QBEHXZ */
4914 /* ?exceptions@ios_base@std@@QEBAHXZ */
4915 DEFINE_THISCALL_WRAPPER(ios_base_exceptions_get
, 4)
4916 IOSB_iostate __thiscall
ios_base_exceptions_get(ios_base
*this)
4918 TRACE("(%p)\n", this);
4919 return this->except
;
4922 /* ?copyfmt@ios_base@std@@QAEAAV12@ABV12@@Z */
4923 /* ?copyfmt@ios_base@std@@QEAAAEAV12@AEBV12@@Z */
4924 DEFINE_THISCALL_WRAPPER(ios_base_copyfmt
, 8)
4925 ios_base
* __thiscall
ios_base_copyfmt(ios_base
*this, const ios_base
*rhs
)
4927 TRACE("(%p %p)\n", this, rhs
);
4930 IOS_BASE_iosarray
*arr_cur
;
4931 IOS_BASE_fnarray
*event_cur
;
4933 ios_base_Tidy(this);
4935 for(arr_cur
=rhs
->arr
; arr_cur
; arr_cur
=arr_cur
->next
) {
4936 if(arr_cur
->long_val
)
4937 *ios_base_iword(this, arr_cur
->index
) = arr_cur
->long_val
;
4938 if(arr_cur
->ptr_val
)
4939 *ios_base_pword(this, arr_cur
->index
) = arr_cur
->ptr_val
;
4941 this->stdstr
= rhs
->stdstr
;
4942 this->fmtfl
= rhs
->fmtfl
;
4943 this->prec
= rhs
->prec
;
4944 this->wide
= rhs
->wide
;
4945 locale_operator_assign(IOS_LOCALE(this), IOS_LOCALE(rhs
));
4947 for(event_cur
=rhs
->calls
; event_cur
; event_cur
=event_cur
->next
)
4948 ios_base_register_callback(this, event_cur
->event_handler
, event_cur
->index
);
4950 ios_base_Callfns(this, EVENT_copyfmt_event
);
4951 ios_base_exceptions_set(this, rhs
->except
);
4957 /* ??4ios_base@std@@QAEAAV01@ABV01@@Z */
4958 /* ??4ios_base@std@@QEAAAEAV01@AEBV01@@Z */
4959 DEFINE_THISCALL_WRAPPER(ios_base_assign
, 8)
4960 ios_base
* __thiscall
ios_base_assign(ios_base
*this, const ios_base
*right
)
4962 TRACE("(%p %p)\n", this, right
);
4965 this->state
= right
->state
;
4966 ios_base_copyfmt(this, right
);
4972 /* ?fail@ios_base@std@@QBE_NXZ */
4973 /* ?fail@ios_base@std@@QEBA_NXZ */
4974 DEFINE_THISCALL_WRAPPER(ios_base_fail
, 4)
4975 MSVCP_bool __thiscall
ios_base_fail(const ios_base
*this)
4977 TRACE("(%p)\n", this);
4978 return (this->state
& (IOSTATE_failbit
|IOSTATE_badbit
)) != 0;
4981 /* ??7ios_base@std@@QBE_NXZ */
4982 /* ??7ios_base@std@@QEBA_NXZ */
4983 DEFINE_THISCALL_WRAPPER(ios_base_op_succ
, 4)
4984 MSVCP_bool __thiscall
ios_base_op_succ(const ios_base
*this)
4986 TRACE("(%p)\n", this);
4987 return ios_base_fail(this);
4990 /* ??Bios_base@std@@QBEPAXXZ */
4991 /* ??Bios_base@std@@QEBAPEAXXZ */
4992 DEFINE_THISCALL_WRAPPER(ios_base_op_fail
, 4)
4993 void* __thiscall
ios_base_op_fail(const ios_base
*this)
4995 TRACE("(%p)\n", this);
4996 return ios_base_fail(this) ? NULL
: (void*)this;
4999 /* ??Bios_base@std@@QBA_NXZ */
5000 /* ??Bios_base@std@@QBE_NXZ */
5001 /* ??Bios_base@std@@QEBA_NXZ */
5002 DEFINE_THISCALL_WRAPPER(ios_base_operator_bool
, 4)
5003 MSVCP_bool __thiscall
ios_base_operator_bool(const ios_base
*this)
5005 TRACE("(%p)\n", this);
5006 return (this->state
& (IOSTATE_failbit
|IOSTATE_badbit
)) == 0;
5009 /* ?_Addstd@ios_base@std@@SAXPAV12@@Z */
5010 /* ?_Addstd@ios_base@std@@SAXPEAV12@@Z */
5011 void __cdecl
ios_base_Addstd(ios_base
*add
)
5013 FIXME("(%p) stub\n", add
);
5016 /* ?_Index_func@ios_base@std@@CAAAHXZ */
5017 /* ?_Index_func@ios_base@std@@CAAEAHXZ */
5018 int* __cdecl
ios_base_Index_func(void)
5021 return &ios_base_Index
;
5024 /* ?_Init@ios_base@std@@IAEXXZ */
5025 /* ?_Init@ios_base@std@@IEAAXXZ */
5026 DEFINE_THISCALL_WRAPPER(ios_base__Init
, 4)
5027 void __thiscall
ios_base__Init(ios_base
*this)
5029 TRACE("(%p)\n", this);
5032 this->state
= this->except
= IOSTATE_goodbit
;
5033 this->fmtfl
= FMTFLAG_skipws
| FMTFLAG_dec
;
5038 #if _MSVCP_VER >= 70
5039 this->loc
= MSVCRT_operator_new(sizeof(locale
));
5041 locale_ctor(IOS_LOCALE(this));
5044 /* ?_Sync_func@ios_base@std@@CAAA_NXZ */
5045 /* ?_Sync_func@ios_base@std@@CAAEA_NXZ */
5046 MSVCP_bool
* __cdecl
ios_base_Sync_func(void)
5049 return &ios_base_Sync
;
5052 /* ?bad@ios_base@std@@QBE_NXZ */
5053 /* ?bad@ios_base@std@@QEBA_NXZ */
5054 DEFINE_THISCALL_WRAPPER(ios_base_bad
, 4)
5055 MSVCP_bool __thiscall
ios_base_bad(const ios_base
*this)
5057 TRACE("(%p)\n", this);
5058 return (this->state
& IOSTATE_badbit
) != 0;
5061 /* ?eof@ios_base@std@@QBE_NXZ */
5062 /* ?eof@ios_base@std@@QEBA_NXZ */
5063 DEFINE_THISCALL_WRAPPER(ios_base_eof
, 4)
5064 MSVCP_bool __thiscall
ios_base_eof(const ios_base
*this)
5066 TRACE("(%p)\n", this);
5067 return (this->state
& IOSTATE_eofbit
) != 0;
5070 /* ?flags@ios_base@std@@QAEHH@Z */
5071 /* ?flags@ios_base@std@@QEAAHH@Z */
5072 DEFINE_THISCALL_WRAPPER(ios_base_flags_set
, 8)
5073 IOSB_fmtflags __thiscall
ios_base_flags_set(ios_base
*this, IOSB_fmtflags flags
)
5075 IOSB_fmtflags ret
= this->fmtfl
;
5077 TRACE("(%p %x)\n", this, flags
);
5079 this->fmtfl
= flags
& FMTFLAG_mask
;
5083 /* ?flags@ios_base@std@@QBEHXZ */
5084 /* ?flags@ios_base@std@@QEBAHXZ */
5085 DEFINE_THISCALL_WRAPPER(ios_base_flags_get
, 4)
5086 IOSB_fmtflags __thiscall
ios_base_flags_get(const ios_base
*this)
5088 TRACE("(%p)\n", this);
5092 /* ?getloc@ios_base@std@@QBE?AVlocale@2@XZ */
5093 /* ?getloc@ios_base@std@@QEBA?AVlocale@2@XZ */
5094 DEFINE_THISCALL_WRAPPER(ios_base_getloc
, 8)
5095 locale
* __thiscall
ios_base_getloc(const ios_base
*this, locale
*ret
)
5097 TRACE("(%p)\n", this);
5098 return locale_copy_ctor(ret
, IOS_LOCALE(this));
5101 /* ?good@ios_base@std@@QBE_NXZ */
5102 /* ?good@ios_base@std@@QEBA_NXZ */
5103 DEFINE_THISCALL_WRAPPER(ios_base_good
, 4)
5104 MSVCP_bool __thiscall
ios_base_good(const ios_base
*this)
5106 TRACE("(%p)\n", this);
5107 return this->state
== IOSTATE_goodbit
;
5110 /* ?imbue@ios_base@std@@QAE?AVlocale@2@ABV32@@Z */
5111 /* ?imbue@ios_base@std@@QEAA?AVlocale@2@AEBV32@@Z */
5112 DEFINE_THISCALL_WRAPPER(ios_base_imbue
, 12)
5113 locale
* __thiscall
ios_base_imbue(ios_base
*this, locale
*ret
, const locale
*loc
)
5115 TRACE("(%p %p)\n", this, loc
);
5116 *ret
= *IOS_LOCALE(this);
5117 locale_copy_ctor(IOS_LOCALE(this), loc
);
5121 /* ?precision@ios_base@std@@QAEHH@Z */
5122 /* ?precision@ios_base@std@@QEAA_J_J@Z */
5123 #if STREAMSIZE_BITS == 64
5124 DEFINE_THISCALL_WRAPPER(ios_base_precision_set
, 12)
5126 DEFINE_THISCALL_WRAPPER(ios_base_precision_set
, 8)
5128 streamsize __thiscall
ios_base_precision_set(ios_base
*this, streamsize precision
)
5130 streamsize ret
= this->prec
;
5132 TRACE("(%p %s)\n", this, wine_dbgstr_longlong(precision
));
5134 this->prec
= precision
;
5138 /* ?precision@ios_base@std@@QBEHXZ */
5139 /* ?precision@ios_base@std@@QEBA_JXZ */
5140 DEFINE_THISCALL_WRAPPER(ios_base_precision_get
, 4)
5141 streamsize __thiscall
ios_base_precision_get(const ios_base
*this)
5143 TRACE("(%p)\n", this);
5147 /* ?rdstate@ios_base@std@@QBEHXZ */
5148 /* ?rdstate@ios_base@std@@QEBAHXZ */
5149 DEFINE_THISCALL_WRAPPER(ios_base_rdstate
, 4)
5150 IOSB_iostate __thiscall
ios_base_rdstate(const ios_base
*this)
5152 TRACE("(%p)\n", this);
5156 /* ?setf@ios_base@std@@QAEHHH@Z */
5157 /* ?setf@ios_base@std@@QEAAHHH@Z */
5158 DEFINE_THISCALL_WRAPPER(ios_base_setf_mask
, 12)
5159 IOSB_fmtflags __thiscall
ios_base_setf_mask(ios_base
*this, IOSB_fmtflags flags
, IOSB_fmtflags mask
)
5161 IOSB_fmtflags ret
= this->fmtfl
;
5163 TRACE("(%p %x %x)\n", this, flags
, mask
);
5165 this->fmtfl
= (this->fmtfl
& (~mask
)) | (flags
& mask
& FMTFLAG_mask
);
5169 /* ?setf@ios_base@std@@QAEHH@Z */
5170 /* ?setf@ios_base@std@@QEAAHH@Z */
5171 DEFINE_THISCALL_WRAPPER(ios_base_setf
, 8)
5172 IOSB_fmtflags __thiscall
ios_base_setf(ios_base
*this, IOSB_fmtflags flags
)
5174 IOSB_fmtflags ret
= this->fmtfl
;
5176 TRACE("(%p %x)\n", this, flags
);
5178 this->fmtfl
|= flags
& FMTFLAG_mask
;
5182 /* ?setstate@ios_base@std@@QAEXH_N@Z */
5183 /* ?setstate@ios_base@std@@QEAAXH_N@Z */
5184 DEFINE_THISCALL_WRAPPER(ios_base_setstate_reraise
, 12)
5185 void __thiscall
ios_base_setstate_reraise(ios_base
*this, IOSB_iostate state
, MSVCP_bool reraise
)
5187 TRACE("(%p %x %x)\n", this, state
, reraise
);
5189 if(state
!= IOSTATE_goodbit
)
5190 ios_base_clear_reraise(this, this->state
| state
, reraise
);
5193 /* ?setstate@ios_base@std@@QAEXH@Z */
5194 /* ?setstate@ios_base@std@@QEAAXH@Z */
5195 DEFINE_THISCALL_WRAPPER(ios_base_setstate
, 8)
5196 void __thiscall
ios_base_setstate(ios_base
*this, IOSB_iostate state
)
5198 ios_base_setstate_reraise(this, state
, FALSE
);
5201 /* ?setstate@ios_base@std@@QAEXI@Z */
5202 /* ?setstate@ios_base@std@@QEAAXI@Z */
5203 DEFINE_THISCALL_WRAPPER(ios_base_setstate_unsigned
, 8)
5204 void __thiscall
ios_base_setstate_unsigned(ios_base
*this, unsigned int state
)
5206 ios_base_setstate_reraise(this, (IOSB_iostate
)state
, FALSE
);
5209 /* ?sync_with_stdio@ios_base@std@@SA_N_N@Z */
5210 MSVCP_bool __cdecl
ios_base_sync_with_stdio(MSVCP_bool sync
)
5215 TRACE("(%x)\n", sync
);
5217 _Lockit_ctor_locktype(&lock
, _LOCK_STREAM
);
5218 ret
= ios_base_Sync
;
5219 ios_base_Sync
= sync
;
5220 _Lockit_dtor(&lock
);
5224 /* ?unsetf@ios_base@std@@QAEXH@Z */
5225 /* ?unsetf@ios_base@std@@QEAAXH@Z */
5226 DEFINE_THISCALL_WRAPPER(ios_base_unsetf
, 8)
5227 void __thiscall
ios_base_unsetf(ios_base
*this, IOSB_fmtflags flags
)
5229 TRACE("(%p %x)\n", this, flags
);
5230 this->fmtfl
&= ~flags
;
5233 /* ?width@ios_base@std@@QAEHH@Z */
5234 /* ?width@ios_base@std@@QEAA_J_J@Z */
5235 #if STREAMSIZE_BITS == 64
5236 DEFINE_THISCALL_WRAPPER(ios_base_width_set
, 12)
5238 DEFINE_THISCALL_WRAPPER(ios_base_width_set
, 8)
5240 streamsize __thiscall
ios_base_width_set(ios_base
*this, streamsize width
)
5242 streamsize ret
= this->wide
;
5244 TRACE("(%p %s)\n", this, wine_dbgstr_longlong(width
));
5250 /* ?width@ios_base@std@@QBEHXZ */
5251 /* ?width@ios_base@std@@QEBA_JXZ */
5252 DEFINE_THISCALL_WRAPPER(ios_base_width_get
, 4)
5253 streamsize __thiscall
ios_base_width_get(ios_base
*this)
5255 TRACE("(%p)\n", this);
5259 /* ?xalloc@ios_base@std@@SAHXZ */
5260 int __cdecl
ios_base_xalloc(void)
5267 _Lockit_ctor_locktype(&lock
, _LOCK_STREAM
);
5268 ret
= ios_base_Index
++;
5269 _Lockit_dtor(&lock
);
5273 /* ?swap@ios_base@std@@QAEXAAV12@@Z */
5274 /* ?swap@ios_base@std@@QEAAXAEAV12@@Z */
5275 DEFINE_THISCALL_WRAPPER(ios_base_swap
, 8)
5276 void __thiscall
ios_base_swap(ios_base
*this, ios_base
*r
)
5280 TRACE("(%p %p)\n", this, r
);
5287 this->vtable
= tmp
.vtable
;
5288 tmp
.vtable
= r
->vtable
;
5292 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@IAE@XZ */
5293 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@IEAA@XZ */
5294 DEFINE_THISCALL_WRAPPER(basic_ios_char_ctor
, 4)
5295 basic_ios_char
* __thiscall
basic_ios_char_ctor(basic_ios_char
*this)
5297 TRACE("(%p)\n", this);
5299 ios_base_ctor(&this->base
);
5300 this->base
.vtable
= &MSVCP_basic_ios_char_vtable
;
5304 /* ?init@?$basic_ios@DU?$char_traits@D@std@@@std@@IAEXPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@_N@Z */
5305 /* ?init@?$basic_ios@DU?$char_traits@D@std@@@std@@IEAAXPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@_N@Z */
5306 DEFINE_THISCALL_WRAPPER(basic_ios_char_init
, 12)
5307 void __thiscall
basic_ios_char_init(basic_ios_char
*this, basic_streambuf_char
*streambuf
, MSVCP_bool isstd
)
5309 TRACE("(%p %p %x)\n", this, streambuf
, isstd
);
5310 ios_base__Init(&this->base
);
5311 this->strbuf
= streambuf
;
5312 this->stream
= NULL
;
5316 ios_base_setstate(&this->base
, IOSTATE_badbit
);
5319 FIXME("standard streams not handled yet\n");
5322 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
5323 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
5324 DEFINE_THISCALL_WRAPPER(basic_ios_char_ctor_streambuf
, 8)
5325 basic_ios_char
* __thiscall
basic_ios_char_ctor_streambuf(basic_ios_char
*this, basic_streambuf_char
*strbuf
)
5327 TRACE("(%p %p)\n", this, strbuf
);
5329 basic_ios_char_ctor(this);
5330 basic_ios_char_init(this, strbuf
, FALSE
);
5334 /* ??1?$basic_ios@DU?$char_traits@D@std@@@std@@UAE@XZ */
5335 /* ??1?$basic_ios@DU?$char_traits@D@std@@@std@@UEAA@XZ */
5336 DEFINE_THISCALL_WRAPPER(basic_ios_char_dtor
, 4)
5337 void __thiscall
basic_ios_char_dtor(basic_ios_char
*this)
5339 TRACE("(%p)\n", this);
5340 ios_base_dtor(&this->base
);
5343 DEFINE_THISCALL_WRAPPER(basic_ios_char_vector_dtor
, 8)
5344 basic_ios_char
* __thiscall
basic_ios_char_vector_dtor(basic_ios_char
*this, unsigned int flags
)
5346 TRACE("(%p %x)\n", this, flags
);
5348 /* we have an array, with the number of elements stored before the first object */
5349 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
5351 for(i
=*ptr
-1; i
>=0; i
--)
5352 basic_ios_char_dtor(this+i
);
5353 MSVCRT_operator_delete(ptr
);
5355 basic_ios_char_dtor(this);
5357 MSVCRT_operator_delete(this);
5363 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z */
5364 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXH_N@Z */
5365 DEFINE_THISCALL_WRAPPER(basic_ios_char_clear_reraise
, 12)
5366 void __thiscall
basic_ios_char_clear_reraise(basic_ios_char
*this, IOSB_iostate state
, MSVCP_bool reraise
)
5368 TRACE("(%p %x %x)\n", this, state
, reraise
);
5369 ios_base_clear_reraise(&this->base
, state
| (this->strbuf
? IOSTATE_goodbit
: IOSTATE_badbit
), reraise
);
5372 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXI@Z */
5373 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXI@Z */
5374 DEFINE_THISCALL_WRAPPER(basic_ios_char_clear
, 8)
5375 void __thiscall
basic_ios_char_clear(basic_ios_char
*this, unsigned int state
)
5377 basic_ios_char_clear_reraise(this, (IOSB_iostate
)state
, FALSE
);
5380 /* ?copyfmt@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEAAV12@ABV12@@Z */
5381 /* ?copyfmt@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEBV12@@Z */
5382 DEFINE_THISCALL_WRAPPER(basic_ios_char_copyfmt
, 8)
5383 basic_ios_char
* __thiscall
basic_ios_char_copyfmt(basic_ios_char
*this, basic_ios_char
*copy
)
5385 TRACE("(%p %p)\n", this, copy
);
5389 this->stream
= copy
->stream
;
5390 this->fillch
= copy
->fillch
;
5391 ios_base_copyfmt(&this->base
, ©
->base
);
5395 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEDD@Z */
5396 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAADD@Z */
5397 DEFINE_THISCALL_WRAPPER(basic_ios_char_fill_set
, 8)
5398 char __thiscall
basic_ios_char_fill_set(basic_ios_char
*this, char fill
)
5400 char ret
= this->fillch
;
5402 TRACE("(%p %c)\n", this, fill
);
5404 this->fillch
= fill
;
5408 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDXZ */
5409 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBADXZ */
5410 DEFINE_THISCALL_WRAPPER(basic_ios_char_fill_get
, 4)
5411 char __thiscall
basic_ios_char_fill_get(basic_ios_char
*this)
5413 TRACE("(%p)\n", this);
5414 return this->fillch
;
5417 /* ?imbue@?$basic_ios@DU?$char_traits@D@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
5418 /* ?imbue@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
5419 DEFINE_THISCALL_WRAPPER(basic_ios_char_imbue
, 12)
5420 locale
*__thiscall
basic_ios_char_imbue(basic_ios_char
*this, locale
*ret
, const locale
*loc
)
5422 TRACE("(%p %p %p)\n", this, ret
, loc
);
5425 basic_streambuf_char_pubimbue(this->strbuf
, ret
, loc
);
5429 return ios_base_imbue(&this->base
, ret
, loc
);
5432 /* ?narrow@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDDD@Z */
5433 /* ?narrow@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBADDD@Z */
5434 DEFINE_THISCALL_WRAPPER(basic_ios_char_narrow
, 12)
5435 char __thiscall
basic_ios_char_narrow(basic_ios_char
*this, char ch
, char def
)
5437 TRACE("(%p %c %c)\n", this, ch
, def
);
5438 return ctype_char_narrow_ch(ctype_char_use_facet(IOS_LOCALE(this->strbuf
)), ch
, def
);
5441 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PAV32@@Z */
5442 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PEAV32@@Z */
5443 DEFINE_THISCALL_WRAPPER(basic_ios_char_rdbuf_set
, 8)
5444 basic_streambuf_char
* __thiscall
basic_ios_char_rdbuf_set(basic_ios_char
*this, basic_streambuf_char
*streambuf
)
5446 basic_streambuf_char
*ret
= this->strbuf
;
5448 TRACE("(%p %p)\n", this, streambuf
);
5450 this->strbuf
= streambuf
;
5451 basic_ios_char_clear(this, IOSTATE_goodbit
);
5455 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ */
5456 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ */
5457 DEFINE_THISCALL_WRAPPER(basic_ios_char_rdbuf_get
, 4)
5458 basic_streambuf_char
* __thiscall
basic_ios_char_rdbuf_get(const basic_ios_char
*this)
5460 TRACE("(%p)\n", this);
5461 return this->strbuf
;
5464 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z */
5465 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXH_N@Z */
5466 DEFINE_THISCALL_WRAPPER(basic_ios_char_setstate_reraise
, 12)
5467 void __thiscall
basic_ios_char_setstate_reraise(basic_ios_char
*this, IOSB_iostate state
, MSVCP_bool reraise
)
5469 TRACE("(%p %x %x)\n", this, state
, reraise
);
5471 if(state
!= IOSTATE_goodbit
)
5472 basic_ios_char_clear_reraise(this, this->base
.state
| state
, reraise
);
5475 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXI@Z */
5476 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXI@Z */
5477 DEFINE_THISCALL_WRAPPER(basic_ios_char_setstate
, 8)
5478 void __thiscall
basic_ios_char_setstate(basic_ios_char
*this, unsigned int state
)
5480 basic_ios_char_setstate_reraise(this, (IOSB_iostate
)state
, FALSE
);
5483 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEPAV?$basic_ostream@DU?$char_traits@D@std@@@2@PAV32@@Z */
5484 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAPEAV?$basic_ostream@DU?$char_traits@D@std@@@2@PEAV32@@Z */
5485 DEFINE_THISCALL_WRAPPER(basic_ios_char_tie_set
, 8)
5486 basic_ostream_char
* __thiscall
basic_ios_char_tie_set(basic_ios_char
*this, basic_ostream_char
*ostream
)
5488 basic_ostream_char
*ret
= this->stream
;
5490 TRACE("(%p %p)\n", this, ostream
);
5492 this->stream
= ostream
;
5496 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ */
5497 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ */
5498 DEFINE_THISCALL_WRAPPER(basic_ios_char_tie_get
, 4)
5499 basic_ostream_char
* __thiscall
basic_ios_char_tie_get(const basic_ios_char
*this)
5501 TRACE("(%p)\n", this);
5502 return this->stream
;
5505 /* ?widen@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDD@Z */
5506 /* ?widen@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBADD@Z */
5507 DEFINE_THISCALL_WRAPPER(basic_ios_char_widen
, 8)
5508 char __thiscall
basic_ios_char_widen(basic_ios_char
*this, char ch
)
5510 TRACE("(%p %c)\n", this, ch
);
5511 return ctype_char_widen_ch(ctype_char_use_facet(IOS_LOCALE(this->strbuf
)), ch
);
5514 /* ?swap@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXAAV12@@Z */
5515 /* ?swap@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXAEAV12@@Z */
5516 DEFINE_THISCALL_WRAPPER(basic_ios_char_swap
, 8)
5517 void __thiscall
basic_ios_char_swap(basic_ios_char
*this, basic_ios_char
*r
)
5521 TRACE("(%p %p)\n", this, r
);
5526 ios_base_swap(&this->base
, &r
->base
);
5527 swap_ptr
= this->stream
;
5528 this->stream
= r
->stream
;
5529 r
->stream
= swap_ptr
;
5530 this->fillch
^= r
->fillch
;
5531 r
->fillch
^= this->fillch
;
5532 this->fillch
^= r
->fillch
;
5535 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@IAE@XZ */
5536 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@IEAA@XZ */
5537 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_ctor
, 4)
5538 basic_ios_wchar
* __thiscall
basic_ios_wchar_ctor(basic_ios_wchar
*this)
5540 TRACE("(%p)\n", this);
5542 ios_base_ctor(&this->base
);
5543 this->base
.vtable
= &MSVCP_basic_ios_wchar_vtable
;
5547 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@IAE@XZ */
5548 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@IEAA@XZ */
5549 DEFINE_THISCALL_WRAPPER(basic_ios_short_ctor
, 4)
5550 basic_ios_wchar
* __thiscall
basic_ios_short_ctor(basic_ios_wchar
*this)
5552 basic_ios_wchar_ctor(this);
5553 this->base
.vtable
= &MSVCP_basic_ios_short_vtable
;
5557 /* ?init@?$basic_ios@_WU?$char_traits@_W@std@@@std@@IAEXPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_N@Z */
5558 /* ?init@?$basic_ios@_WU?$char_traits@_W@std@@@std@@IEAAXPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_N@Z */
5559 /* ?init@?$basic_ios@GU?$char_traits@G@std@@@std@@IAEXPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@_N@Z */
5560 /* ?init@?$basic_ios@GU?$char_traits@G@std@@@std@@IEAAXPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@_N@Z */
5561 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_init
, 12)
5562 void __thiscall
basic_ios_wchar_init(basic_ios_wchar
*this, basic_streambuf_wchar
*streambuf
, MSVCP_bool isstd
)
5564 TRACE("(%p %p %x)\n", this, streambuf
, isstd
);
5565 ios_base__Init(&this->base
);
5566 this->strbuf
= streambuf
;
5567 this->stream
= NULL
;
5571 ios_base_setstate(&this->base
, IOSTATE_badbit
);
5574 FIXME("standard streams not handled yet\n");
5577 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
5578 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
5579 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_ctor_streambuf
, 8)
5580 basic_ios_wchar
* __thiscall
basic_ios_wchar_ctor_streambuf(basic_ios_wchar
*this, basic_streambuf_wchar
*strbuf
)
5582 TRACE("(%p %p)\n", this, strbuf
);
5584 basic_ios_wchar_ctor(this);
5585 basic_ios_wchar_init(this, strbuf
, FALSE
);
5589 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
5590 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
5591 DEFINE_THISCALL_WRAPPER(basic_ios_short_ctor_streambuf
, 8)
5592 basic_ios_wchar
* __thiscall
basic_ios_short_ctor_streambuf(basic_ios_wchar
*this, basic_streambuf_wchar
*strbuf
)
5594 basic_ios_wchar_ctor_streambuf(this, strbuf
);
5595 this->base
.vtable
= &MSVCP_basic_ios_short_vtable
;
5599 /* ??1?$basic_ios@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
5600 /* ??1?$basic_ios@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
5601 /* ??1?$basic_ios@GU?$char_traits@G@std@@@std@@UAE@XZ */
5602 /* ??1?$basic_ios@GU?$char_traits@G@std@@@std@@UEAA@XZ */
5603 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_dtor
, 4)
5604 void __thiscall
basic_ios_wchar_dtor(basic_ios_wchar
*this)
5606 TRACE("(%p)\n", this);
5607 ios_base_dtor(&this->base
);
5610 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_vector_dtor
, 8)
5611 basic_ios_wchar
* __thiscall
basic_ios_wchar_vector_dtor(basic_ios_wchar
*this, unsigned int flags
)
5613 TRACE("(%p %x)\n", this, flags
);
5615 /* we have an array, with the number of elements stored before the first object */
5616 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
5618 for(i
=*ptr
-1; i
>=0; i
--)
5619 basic_ios_wchar_dtor(this+i
);
5620 MSVCRT_operator_delete(ptr
);
5622 basic_ios_wchar_dtor(this);
5624 MSVCRT_operator_delete(this);
5630 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXH_N@Z */
5631 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXH_N@Z */
5632 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXH_N@Z */
5633 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXH_N@Z */
5634 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_clear_reraise
, 12)
5635 void __thiscall
basic_ios_wchar_clear_reraise(basic_ios_wchar
*this, IOSB_iostate state
, MSVCP_bool reraise
)
5637 TRACE("(%p %x %x)\n", this, state
, reraise
);
5638 ios_base_clear_reraise(&this->base
, state
| (this->strbuf
? IOSTATE_goodbit
: IOSTATE_badbit
), reraise
);
5641 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXI@Z */
5642 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXI@Z */
5643 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXI@Z */
5644 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXI@Z */
5645 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_clear
, 8)
5646 void __thiscall
basic_ios_wchar_clear(basic_ios_wchar
*this, unsigned int state
)
5648 basic_ios_wchar_clear_reraise(this, (IOSB_iostate
)state
, FALSE
);
5651 /* ?copyfmt@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEAAV12@ABV12@@Z */
5652 /* ?copyfmt@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEBV12@@Z */
5653 /* ?copyfmt@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEAAV12@ABV12@@Z */
5654 /* ?copyfmt@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEBV12@@Z */
5655 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_copyfmt
, 8)
5656 basic_ios_wchar
* __thiscall
basic_ios_wchar_copyfmt(basic_ios_wchar
*this, basic_ios_wchar
*copy
)
5658 TRACE("(%p %p)\n", this, copy
);
5662 this->stream
= copy
->stream
;
5663 this->fillch
= copy
->fillch
;
5664 ios_base_copyfmt(&this->base
, ©
->base
);
5668 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAE_W_W@Z */
5669 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAA_W_W@Z */
5670 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEGG@Z */
5671 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAGG@Z */
5672 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_fill_set
, 8)
5673 wchar_t __thiscall
basic_ios_wchar_fill_set(basic_ios_wchar
*this, wchar_t fill
)
5675 wchar_t ret
= this->fillch
;
5677 TRACE("(%p %c)\n", this, fill
);
5679 this->fillch
= fill
;
5683 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBE_WXZ */
5684 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBA_WXZ */
5685 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEGXZ */
5686 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAGXZ */
5687 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_fill_get
, 4)
5688 wchar_t __thiscall
basic_ios_wchar_fill_get(basic_ios_wchar
*this)
5690 TRACE("(%p)\n", this);
5691 return this->fillch
;
5694 /* ?imbue@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
5695 /* ?imbue@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
5696 /* ?imbue@?$basic_ios@GU?$char_traits@G@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
5697 /* ?imbue@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
5698 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_imbue
, 12)
5699 locale
*__thiscall
basic_ios_wchar_imbue(basic_ios_wchar
*this, locale
*ret
, const locale
*loc
)
5701 TRACE("(%p %p %p)\n", this, ret
, loc
);
5704 basic_streambuf_wchar_pubimbue(this->strbuf
, ret
, loc
);
5708 return ios_base_imbue(&this->base
, ret
, loc
);
5711 /* ?narrow@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBED_WD@Z */
5712 /* ?narrow@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBAD_WD@Z */
5713 /* ?narrow@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEDGD@Z */
5714 /* ?narrow@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBADGD@Z */
5715 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_narrow
, 12)
5716 char __thiscall
basic_ios_wchar_narrow(basic_ios_wchar
*this, wchar_t ch
, char def
)
5718 TRACE("(%p %c %c)\n", this, ch
, def
);
5719 return ctype_wchar_narrow_ch(ctype_wchar_use_facet(IOS_LOCALE(this->strbuf
)), ch
, def
);
5722 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PAV32@@Z */
5723 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PEAV32@@Z */
5724 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PAV32@@Z */
5725 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PEAV32@@Z */
5726 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_rdbuf_set
, 8)
5727 basic_streambuf_wchar
* __thiscall
basic_ios_wchar_rdbuf_set(basic_ios_wchar
*this, basic_streambuf_wchar
*streambuf
)
5729 basic_streambuf_wchar
*ret
= this->strbuf
;
5731 TRACE("(%p %p)\n", this, streambuf
);
5733 this->strbuf
= streambuf
;
5734 basic_ios_wchar_clear(this, IOSTATE_goodbit
);
5738 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@XZ */
5739 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@XZ */
5740 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@XZ */
5741 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@XZ */
5742 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_rdbuf_get
, 4)
5743 basic_streambuf_wchar
* __thiscall
basic_ios_wchar_rdbuf_get(const basic_ios_wchar
*this)
5745 TRACE("(%p)\n", this);
5746 return this->strbuf
;
5749 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXH_N@Z */
5750 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXH_N@Z */
5751 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXH_N@Z */
5752 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXH_N@Z */
5753 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_setstate_reraise
, 12)
5754 void __thiscall
basic_ios_wchar_setstate_reraise(basic_ios_wchar
*this, IOSB_iostate state
, MSVCP_bool reraise
)
5756 TRACE("(%p %x %x)\n", this, state
, reraise
);
5758 if(state
!= IOSTATE_goodbit
)
5759 basic_ios_wchar_clear_reraise(this, this->base
.state
| state
, reraise
);
5762 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXI@Z */
5763 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXI@Z */
5764 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXI@Z */
5765 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXI@Z */
5766 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_setstate
, 8)
5767 void __thiscall
basic_ios_wchar_setstate(basic_ios_wchar
*this, IOSB_iostate state
)
5769 basic_ios_wchar_setstate_reraise(this, state
, FALSE
);
5772 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEPAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@PAV32@@Z */
5773 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAPEAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@PEAV32@@Z */
5774 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEPAV?$basic_ostream@GU?$char_traits@G@std@@@2@PAV32@@Z */
5775 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAPEAV?$basic_ostream@GU?$char_traits@G@std@@@2@PEAV32@@Z */
5776 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_tie_set
, 8)
5777 basic_ostream_wchar
* __thiscall
basic_ios_wchar_tie_set(basic_ios_wchar
*this, basic_ostream_wchar
*ostream
)
5779 basic_ostream_wchar
*ret
= this->stream
;
5781 TRACE("(%p %p)\n", this, ostream
);
5783 this->stream
= ostream
;
5787 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@XZ */
5788 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@XZ */
5789 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_ostream@GU?$char_traits@G@std@@@2@XZ */
5790 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_ostream@GU?$char_traits@G@std@@@2@XZ */
5791 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_tie_get
, 4)
5792 basic_ostream_wchar
* __thiscall
basic_ios_wchar_tie_get(const basic_ios_wchar
*this)
5794 TRACE("(%p)\n", this);
5795 return this->stream
;
5798 /* ?widen@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBE_WD@Z */
5799 /* ?widen@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBA_WD@Z */
5800 /* ?widen@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEGD@Z */
5801 /* ?widen@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAGD@Z */
5802 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_widen
, 8)
5803 wchar_t __thiscall
basic_ios_wchar_widen(basic_ios_wchar
*this, char ch
)
5805 TRACE("(%p %c)\n", this, ch
);
5806 return ctype_wchar_widen_ch(ctype_wchar_use_facet(IOS_LOCALE(this->strbuf
)), ch
);
5809 /* ?swap@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXAAV12@@Z */
5810 /* ?swap@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXAEAV12@@Z */
5811 /* ?swap@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXAAV12@@Z */
5812 /* ?swap@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXAEAV12@@Z */
5813 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_swap
, 8)
5814 void __thiscall
basic_ios_wchar_swap(basic_ios_wchar
*this, basic_ios_wchar
*r
)
5818 TRACE("(%p %p)\n", this, r
);
5823 ios_base_swap(&this->base
, &r
->base
);
5824 swap_ptr
= this->stream
;
5825 this->stream
= r
->stream
;
5826 r
->stream
= swap_ptr
;
5827 this->fillch
^= r
->fillch
;
5828 r
->fillch
^= this->fillch
;
5829 this->fillch
^= r
->fillch
;
5832 /* Caution: basic_ostream uses virtual inheritance.
5833 * All constructors have additional parameter that says if base class should be initialized.
5834 * Base class needs to be accessed using vbtable.
5836 static inline basic_ios_char
* basic_ostream_char_get_basic_ios(basic_ostream_char
*this)
5838 return (basic_ios_char
*)((char*)this+this->vbtable
[1]);
5841 static inline basic_ios_char
* basic_ostream_char_to_basic_ios(basic_ostream_char
*ptr
)
5843 return (basic_ios_char
*)((char*)ptr
+basic_ostream_char_vbtable
[1]);
5846 static inline basic_ostream_char
* basic_ostream_char_from_basic_ios(basic_ios_char
*ptr
)
5848 return (basic_ostream_char
*)((char*)ptr
-basic_ostream_char_vbtable
[1]);
5851 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N1@Z */
5852 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N1@Z */
5853 DEFINE_THISCALL_WRAPPER(basic_ostream_char_ctor
, 20)
5854 basic_ostream_char
* __thiscall
basic_ostream_char_ctor(basic_ostream_char
*this,
5855 basic_streambuf_char
*strbuf
, MSVCP_bool isstd
, MSVCP_bool init
, MSVCP_bool virt_init
)
5857 basic_ios_char
*base
;
5859 TRACE("(%p %p %d %d %d)\n", this, strbuf
, isstd
, init
, virt_init
);
5862 this->vbtable
= basic_ostream_char_vbtable
;
5863 base
= basic_ostream_char_get_basic_ios(this);
5864 basic_ios_char_ctor(base
);
5866 base
= basic_ostream_char_get_basic_ios(this);
5869 base
->base
.vtable
= &MSVCP_basic_ostream_char_vtable
;
5871 basic_ios_char_init(base
, strbuf
, isstd
);
5875 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@W4_Uninitialized@1@@Z */
5876 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
5877 DEFINE_THISCALL_WRAPPER(basic_ostream_char_ctor_uninitialized
, 12)
5878 basic_ostream_char
* __thiscall
basic_ostream_char_ctor_uninitialized(basic_ostream_char
*this,
5879 int uninitialized
, MSVCP_bool virt_init
)
5881 basic_ios_char
*base
;
5883 TRACE("(%p %d)\n", this, uninitialized
);
5886 this->vbtable
= basic_ostream_char_vbtable
;
5887 base
= basic_ostream_char_get_basic_ios(this);
5888 basic_ios_char_ctor(base
);
5890 base
= basic_ostream_char_get_basic_ios(this);
5893 base
->base
.vtable
= &MSVCP_basic_ostream_char_vtable
;
5894 ios_base_Addstd(&base
->base
);
5898 /* ??1?$basic_ostream@DU?$char_traits@D@std@@@std@@UAE@XZ */
5899 /* ??1?$basic_ostream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
5900 DEFINE_THISCALL_WRAPPER(basic_ostream_char_dtor
, 4)
5901 void __thiscall
basic_ostream_char_dtor(basic_ios_char
*base
)
5903 basic_ostream_char
*this = basic_ostream_char_from_basic_ios(base
);
5905 /* don't destroy virtual base here */
5906 TRACE("(%p)\n", this);
5909 /* ??_D?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
5910 /* ??_D?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
5911 DEFINE_THISCALL_WRAPPER(basic_ostream_char_vbase_dtor
, 4)
5912 void __thiscall
basic_ostream_char_vbase_dtor(basic_ostream_char
*this)
5914 TRACE("(%p)\n", this);
5915 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(this));
5916 basic_ios_char_dtor(basic_ostream_char_get_basic_ios(this));
5919 DEFINE_THISCALL_WRAPPER(basic_ostream_char_vector_dtor
, 8)
5920 basic_ostream_char
* __thiscall
basic_ostream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
5922 basic_ostream_char
*this = basic_ostream_char_from_basic_ios(base
);
5924 TRACE("(%p %x)\n", this, flags
);
5927 /* we have an array, with the number of elements stored before the first object */
5928 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
5930 for(i
=*ptr
-1; i
>=0; i
--)
5931 basic_ostream_char_vbase_dtor(this+i
);
5932 MSVCRT_operator_delete(ptr
);
5934 basic_ostream_char_vbase_dtor(this);
5936 MSVCRT_operator_delete(this);
5942 /* ?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ */
5943 /* ?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@XZ */
5944 DEFINE_THISCALL_WRAPPER(basic_ostream_char_flush
, 4)
5945 basic_ostream_char
* __thiscall
basic_ostream_char_flush(basic_ostream_char
*this)
5947 /* this function is not matching C++ specification */
5948 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
5950 TRACE("(%p)\n", this);
5952 if(basic_ios_char_rdbuf_get(base
) && ios_base_good(&base
->base
)
5953 && basic_streambuf_char_pubsync(basic_ios_char_rdbuf_get(base
))==-1)
5954 basic_ios_char_setstate(base
, IOSTATE_badbit
);
5958 /* ?flush@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z */
5959 /* ?flush@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@1@AEAV21@@Z */
5960 basic_ostream_char
* __cdecl
flush_ostream_char(basic_ostream_char
*ostream
)
5962 return basic_ostream_char_flush(ostream
);
5965 /* ?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
5966 /* ?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
5967 DEFINE_THISCALL_WRAPPER(basic_ostream_char__Osfx
, 4)
5968 void __thiscall
basic_ostream_char__Osfx(basic_ostream_char
*this)
5970 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
5972 TRACE("(%p)\n", this);
5974 if(base
->base
.fmtfl
& FMTFLAG_unitbuf
)
5975 basic_ostream_char_flush(this);
5978 /* ?osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
5979 /* ?osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
5980 DEFINE_THISCALL_WRAPPER(basic_ostream_char_osfx
, 4)
5981 void __thiscall
basic_ostream_char_osfx(basic_ostream_char
*this)
5983 TRACE("(%p)\n", this);
5984 basic_ostream_char__Osfx(this);
5987 static BOOL
basic_ostream_char_sentry_create(basic_ostream_char
*ostr
)
5989 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
5991 if(basic_ios_char_rdbuf_get(base
))
5992 call_basic_streambuf_char__Lock(base
->strbuf
);
5994 if(ios_base_good(&base
->base
) && base
->stream
)
5995 basic_ostream_char_flush(base
->stream
);
5997 return ios_base_good(&base
->base
);
6000 static void basic_ostream_char_sentry_destroy(basic_ostream_char
*ostr
)
6002 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
6004 if(ios_base_good(&base
->base
) && !__uncaught_exception())
6005 basic_ostream_char_osfx(ostr
);
6007 if(basic_ios_char_rdbuf_get(base
))
6008 call_basic_streambuf_char__Unlock(base
->strbuf
);
6011 /* ?opfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE_NXZ */
6012 /* ?opfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA_NXZ */
6013 DEFINE_THISCALL_WRAPPER(basic_ostream_char_opfx
, 4)
6014 MSVCP_bool __thiscall
basic_ostream_char_opfx(basic_ostream_char
*this)
6016 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6018 TRACE("(%p)\n", this);
6020 if(ios_base_good(&base
->base
) && base
->stream
)
6021 basic_ostream_char_flush(base
->stream
);
6022 return ios_base_good(&base
->base
);
6025 /* ?put@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@D@Z */
6026 /* ?put@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@D@Z */
6027 DEFINE_THISCALL_WRAPPER(basic_ostream_char_put
, 8)
6028 basic_ostream_char
* __thiscall
basic_ostream_char_put(basic_ostream_char
*this, char ch
)
6030 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6032 TRACE("(%p %c)\n", this, ch
);
6034 if(!basic_ostream_char_sentry_create(this)
6035 || basic_streambuf_char_sputc(base
->strbuf
, ch
)==EOF
) {
6036 basic_ostream_char_sentry_destroy(this);
6037 basic_ios_char_setstate(base
, IOSTATE_badbit
);
6041 basic_ostream_char_sentry_destroy(this);
6045 /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@JH@Z */
6046 /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JH@Z */
6047 #if STREAMOFF_BITS == 64
6048 DEFINE_THISCALL_WRAPPER(basic_ostream_char_seekp
, 16)
6050 DEFINE_THISCALL_WRAPPER(basic_ostream_char_seekp
, 12)
6052 basic_ostream_char
* __thiscall
basic_ostream_char_seekp(basic_ostream_char
*this, streamoff off
, int way
)
6054 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6056 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(off
), way
);
6058 if(!ios_base_fail(&base
->base
)) {
6061 basic_streambuf_char_pubseekoff(basic_ios_char_rdbuf_get(base
),
6062 &seek
, off
, way
, OPENMODE_out
);
6063 if(seek
.off
==-1 && seek
.pos
==0 && seek
.state
==0)
6064 basic_ios_char_setstate(base
, IOSTATE_failbit
);
6069 /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
6070 /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
6071 DEFINE_THISCALL_WRAPPER(basic_ostream_char_seekp_fpos
, 28)
6072 basic_ostream_char
* __thiscall
basic_ostream_char_seekp_fpos(basic_ostream_char
*this, fpos_int pos
)
6074 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6076 TRACE("(%p %s)\n", this, debugstr_fpos_int(&pos
));
6078 if(!ios_base_fail(&base
->base
)) {
6081 basic_streambuf_char_pubseekpos(basic_ios_char_rdbuf_get(base
),
6082 &seek
, pos
, OPENMODE_out
);
6083 if(seek
.off
==-1 && seek
.pos
==0 && seek
.state
==0)
6084 basic_ios_char_setstate(base
, IOSTATE_failbit
);
6089 /* ?tellp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@XZ */
6090 /* ?tellp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
6091 DEFINE_THISCALL_WRAPPER(basic_ostream_char_tellp
, 8)
6092 fpos_int
* __thiscall
basic_ostream_char_tellp(basic_ostream_char
*this, fpos_int
*ret
)
6094 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6096 TRACE("(%p)\n", this);
6098 if(!ios_base_fail(&base
->base
)) {
6099 basic_streambuf_char_pubseekoff(basic_ios_char_rdbuf_get(base
),
6100 ret
, 0, SEEKDIR_cur
, OPENMODE_out
);
6109 /* ?write@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@PBDH@Z */
6110 /* ?write@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEBD_J@Z */
6111 #if STREAMSIZE_BITS == 64
6112 DEFINE_THISCALL_WRAPPER(basic_ostream_char_write
, 16)
6114 DEFINE_THISCALL_WRAPPER(basic_ostream_char_write
, 12)
6116 basic_ostream_char
* __thiscall
basic_ostream_char_write(basic_ostream_char
*this, const char *str
, streamsize count
)
6118 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6120 TRACE("(%p %s %s)\n", this, debugstr_a(str
), wine_dbgstr_longlong(count
));
6122 if(!basic_ostream_char_sentry_create(this)
6123 || basic_streambuf_char_sputn(base
->strbuf
, str
, count
)!=count
) {
6124 basic_ostream_char_sentry_destroy(this);
6125 basic_ios_char_setstate(base
, IOSTATE_badbit
);
6129 basic_ostream_char_sentry_destroy(this);
6133 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@F@Z */
6134 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@F@Z */
6135 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_short
, 8)
6136 basic_ostream_char
* __thiscall
basic_ostream_char_print_short(basic_ostream_char
*this, short val
)
6138 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6139 int state
= IOSTATE_goodbit
;
6141 TRACE("(%p %d)\n", this, val
);
6143 if(basic_ostream_char_sentry_create(this)) {
6144 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6145 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6146 ostreambuf_iterator_char dest
;
6148 memset(&dest
, 0, sizeof(dest
));
6149 dest
.strbuf
= strbuf
;
6150 num_put_char_put_long(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
),
6151 (ios_base_flags_get(&base
->base
) & FMTFLAG_basefield
& (FMTFLAG_oct
| FMTFLAG_hex
))
6152 ? (LONG
)((unsigned short)val
) : (LONG
)val
);
6154 basic_ostream_char_sentry_destroy(this);
6156 basic_ios_char_setstate(base
, state
);
6160 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@G@Z */
6161 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@G@Z */
6162 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_ushort
, 8)
6163 basic_ostream_char
* __thiscall
basic_ostream_char_print_ushort(basic_ostream_char
*this, unsigned short val
)
6165 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6166 int state
= IOSTATE_goodbit
;
6168 TRACE("(%p %u)\n", this, val
);
6170 if(basic_ostream_char_sentry_create(this)) {
6171 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6172 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6173 ostreambuf_iterator_char dest
;
6175 memset(&dest
, 0, sizeof(dest
));
6176 dest
.strbuf
= strbuf
;
6177 num_put_char_put_ulong(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6179 basic_ostream_char_sentry_destroy(this);
6181 basic_ios_char_setstate(base
, state
);
6185 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@H@Z */
6186 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@H@Z */
6187 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@J@Z */
6188 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@J@Z */
6189 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_int
, 8)
6190 basic_ostream_char
* __thiscall
basic_ostream_char_print_int(basic_ostream_char
*this, int val
)
6192 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6193 int state
= IOSTATE_goodbit
;
6195 TRACE("(%p %d)\n", this, val
);
6197 if(basic_ostream_char_sentry_create(this)) {
6198 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6199 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6200 ostreambuf_iterator_char dest
;
6202 memset(&dest
, 0, sizeof(dest
));
6203 dest
.strbuf
= strbuf
;
6204 num_put_char_put_long(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6206 basic_ostream_char_sentry_destroy(this);
6208 basic_ios_char_setstate(base
, state
);
6212 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@I@Z */
6213 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@I@Z */
6214 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@K@Z */
6215 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@K@Z */
6216 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_uint
, 8)
6217 basic_ostream_char
* __thiscall
basic_ostream_char_print_uint(basic_ostream_char
*this, unsigned int val
)
6219 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6220 int state
= IOSTATE_goodbit
;
6222 TRACE("(%p %u)\n", this, val
);
6224 if(basic_ostream_char_sentry_create(this)) {
6225 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6226 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6227 ostreambuf_iterator_char dest
;
6229 memset(&dest
, 0, sizeof(dest
));
6230 dest
.strbuf
= strbuf
;
6231 num_put_char_put_ulong(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6233 basic_ostream_char_sentry_destroy(this);
6235 basic_ios_char_setstate(base
, state
);
6239 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@M@Z */
6240 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@M@Z */
6241 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_float
, 8)
6242 basic_ostream_char
* __thiscall
basic_ostream_char_print_float(basic_ostream_char
*this, float val
)
6244 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6245 int state
= IOSTATE_goodbit
;
6247 TRACE("(%p %f)\n", this, val
);
6249 if(basic_ostream_char_sentry_create(this)) {
6250 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6251 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6252 ostreambuf_iterator_char dest
;
6254 memset(&dest
, 0, sizeof(dest
));
6255 dest
.strbuf
= strbuf
;
6256 num_put_char_put_double(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6258 basic_ostream_char_sentry_destroy(this);
6260 basic_ios_char_setstate(base
, state
);
6264 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@N@Z */
6265 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@N@Z */
6266 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_double
, 12)
6267 basic_ostream_char
* __thiscall
basic_ostream_char_print_double(basic_ostream_char
*this, double val
)
6269 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6270 int state
= IOSTATE_goodbit
;
6272 TRACE("(%p %lf)\n", this, val
);
6274 if(basic_ostream_char_sentry_create(this)) {
6275 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6276 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6277 ostreambuf_iterator_char dest
;
6279 memset(&dest
, 0, sizeof(dest
));
6280 dest
.strbuf
= strbuf
;
6281 num_put_char_put_double(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6283 basic_ostream_char_sentry_destroy(this);
6285 basic_ios_char_setstate(base
, state
);
6289 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@O@Z */
6290 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@O@Z */
6291 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_ldouble
, 12)
6292 basic_ostream_char
* __thiscall
basic_ostream_char_print_ldouble(basic_ostream_char
*this, double val
)
6294 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6295 int state
= IOSTATE_goodbit
;
6297 TRACE("(%p %lf)\n", this, val
);
6299 if(basic_ostream_char_sentry_create(this)) {
6300 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6301 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6302 ostreambuf_iterator_char dest
;
6304 memset(&dest
, 0, sizeof(dest
));
6305 dest
.strbuf
= strbuf
;
6306 num_put_char_put_ldouble(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6308 basic_ostream_char_sentry_destroy(this);
6310 basic_ios_char_setstate(base
, state
);
6314 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
6315 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
6316 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_streambuf
, 8)
6317 basic_ostream_char
* __thiscall
basic_ostream_char_print_streambuf(basic_ostream_char
*this, basic_streambuf_char
*val
)
6319 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6320 IOSB_iostate state
= IOSTATE_badbit
;
6323 TRACE("(%p %p)\n", this, val
);
6325 if(basic_ostream_char_sentry_create(this)) {
6326 for(c
= basic_streambuf_char_sgetc(val
); c
!=EOF
;
6327 c
= basic_streambuf_char_snextc(val
)) {
6328 state
= IOSTATE_goodbit
;
6330 if(basic_streambuf_char_sputc(base
->strbuf
, c
) == EOF
) {
6331 state
= IOSTATE_badbit
;
6336 state
= IOSTATE_badbit
;
6338 basic_ostream_char_sentry_destroy(this);
6340 ios_base_width_set(&base
->base
, 0);
6341 basic_ios_char_setstate(base
, state
);
6345 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@PBX@Z */
6346 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@PEBX@Z */
6347 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_ptr
, 8)
6348 basic_ostream_char
* __thiscall
basic_ostream_char_print_ptr(basic_ostream_char
*this, const void *val
)
6350 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6351 int state
= IOSTATE_goodbit
;
6353 TRACE("(%p %p)\n", this, val
);
6355 if(basic_ostream_char_sentry_create(this)) {
6356 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6357 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6358 ostreambuf_iterator_char dest
;
6360 memset(&dest
, 0, sizeof(dest
));
6361 dest
.strbuf
= strbuf
;
6362 num_put_char_put_ptr(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6364 basic_ostream_char_sentry_destroy(this);
6366 basic_ios_char_setstate(base
, state
);
6370 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@_J@Z */
6371 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@_J@Z */
6372 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_int64
, 12)
6373 basic_ostream_char
* __thiscall
basic_ostream_char_print_int64(basic_ostream_char
*this, __int64 val
)
6375 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6376 int state
= IOSTATE_goodbit
;
6378 TRACE("(%p)\n", this);
6380 if(basic_ostream_char_sentry_create(this)) {
6381 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6382 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6383 ostreambuf_iterator_char dest
;
6385 memset(&dest
, 0, sizeof(dest
));
6386 dest
.strbuf
= strbuf
;
6387 num_put_char_put_int64(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6389 basic_ostream_char_sentry_destroy(this);
6391 basic_ios_char_setstate(base
, state
);
6395 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@_K@Z */
6396 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@_K@Z */
6397 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_uint64
, 12)
6398 basic_ostream_char
* __thiscall
basic_ostream_char_print_uint64(basic_ostream_char
*this, unsigned __int64 val
)
6400 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6401 int state
= IOSTATE_goodbit
;
6403 TRACE("(%p)\n", this);
6405 if(basic_ostream_char_sentry_create(this)) {
6406 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6407 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6408 ostreambuf_iterator_char dest
;
6410 memset(&dest
, 0, sizeof(dest
));
6411 dest
.strbuf
= strbuf
;
6412 num_put_char_put_uint64(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6414 basic_ostream_char_sentry_destroy(this);
6416 basic_ios_char_setstate(base
, state
);
6420 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@_N@Z */
6421 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@_N@Z */
6422 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_bool
, 8)
6423 basic_ostream_char
* __thiscall
basic_ostream_char_print_bool(basic_ostream_char
*this, MSVCP_bool val
)
6425 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
6426 int state
= IOSTATE_goodbit
;
6428 TRACE("(%p %x)\n", this, val
);
6430 if(basic_ostream_char_sentry_create(this)) {
6431 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6432 const num_put
*numput
= num_put_char_use_facet(IOS_LOCALE(strbuf
));
6433 ostreambuf_iterator_char dest
;
6435 memset(&dest
, 0, sizeof(dest
));
6436 dest
.strbuf
= strbuf
;
6437 num_put_char_put_bool(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
6439 basic_ostream_char_sentry_destroy(this);
6441 basic_ios_char_setstate(base
, state
);
6445 /* ?ends@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z */
6446 /* ?ends@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@1@AEAV21@@Z */
6447 basic_ostream_char
* __cdecl
basic_ostream_char_ends(basic_ostream_char
*ostr
)
6449 TRACE("(%p)\n", ostr
);
6451 basic_ostream_char_put(ostr
, 0);
6455 /* ?endl@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z */
6456 /* ?endl@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@1@AEAV21@@Z */
6457 basic_ostream_char
* __cdecl
basic_ostream_char_endl(basic_ostream_char
*ostr
)
6459 TRACE("(%p)\n", ostr
);
6461 basic_ostream_char_put(ostr
, '\n');
6462 basic_ostream_char_flush(ostr
);
6466 /* ??$?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 */
6467 /* ??$?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 */
6468 basic_ostream_char
* __cdecl
basic_ostream_char_print_bstr(basic_ostream_char
*ostr
, const basic_string_char
*str
)
6470 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
6471 IOSB_iostate state
= IOSTATE_goodbit
;
6473 TRACE("(%p %p)\n", ostr
, str
);
6475 if(basic_ostream_char_sentry_create(ostr
)) {
6476 MSVCP_size_t len
= MSVCP_basic_string_char_length(str
);
6477 streamsize pad
= (base
->base
.wide
>len
? base
->base
.wide
-len
: 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_sputn(base
->strbuf
, MSVCP_basic_string_char_c_str(str
), len
) != len
)
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@C@Z */
6513 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@C@Z */
6514 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@D@Z */
6515 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@D@Z */
6516 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@E@Z */
6517 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@E@Z */
6518 basic_ostream_char
* __cdecl
basic_ostream_char_print_ch(basic_ostream_char
*ostr
, char ch
)
6520 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
6521 IOSB_iostate state
= IOSTATE_goodbit
;
6523 TRACE("(%p %d)\n", ostr
, ch
);
6525 if(basic_ostream_char_sentry_create(ostr
)) {
6526 streamsize pad
= (base
->base
.wide
>1 ? base
->base
.wide
-1 : 0);
6528 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
6529 for(; pad
!=0; pad
--) {
6530 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
6531 state
= IOSTATE_badbit
;
6537 if(state
== IOSTATE_goodbit
) {
6538 if(basic_streambuf_char_sputc(base
->strbuf
, ch
) == EOF
)
6539 state
= IOSTATE_badbit
;
6542 if(state
== IOSTATE_goodbit
) {
6543 for(; pad
!=0; pad
--) {
6544 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
6545 state
= IOSTATE_badbit
;
6551 base
->base
.wide
= 0;
6553 state
= IOSTATE_badbit
;
6555 basic_ostream_char_sentry_destroy(ostr
);
6557 basic_ios_char_setstate(base
, state
);
6561 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBC@Z */
6562 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBC@Z */
6563 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z */
6564 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBD@Z */
6565 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBE@Z */
6566 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBE@Z */
6567 basic_ostream_char
* __cdecl
basic_ostream_char_print_str(basic_ostream_char
*ostr
, const char *str
)
6569 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
6570 IOSB_iostate state
= IOSTATE_goodbit
;
6572 TRACE("(%p %s)\n", ostr
, str
);
6574 if(basic_ostream_char_sentry_create(ostr
)) {
6575 MSVCP_size_t len
= strlen(str
);
6576 streamsize pad
= (base
->base
.wide
>len
? base
->base
.wide
-len
: 0);
6578 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
6579 for(; pad
!=0; pad
--) {
6580 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
6581 state
= IOSTATE_badbit
;
6587 if(state
== IOSTATE_goodbit
) {
6588 if(basic_streambuf_char_sputn(base
->strbuf
, str
, len
) != len
)
6589 state
= IOSTATE_badbit
;
6592 if(state
== IOSTATE_goodbit
) {
6593 for(; pad
!=0; pad
--) {
6594 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
6595 state
= IOSTATE_badbit
;
6601 base
->base
.wide
= 0;
6603 state
= IOSTATE_badbit
;
6605 basic_ostream_char_sentry_destroy(ostr
);
6607 basic_ios_char_setstate(base
, state
);
6611 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
6612 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
6613 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_func
, 8)
6614 basic_ostream_char
* __thiscall
basic_ostream_char_print_func(basic_ostream_char
*this,
6615 basic_ostream_char
* (__cdecl
*pfunc
)(basic_ostream_char
*))
6617 TRACE("(%p %p)\n", this, pfunc
);
6622 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@DU?$char_traits@D@std@@@1@AAV21@@Z@Z */
6623 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@DU?$char_traits@D@std@@@1@AEAV21@@Z@Z */
6624 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_func_basic_ios
, 8)
6625 basic_ostream_char
* __thiscall
basic_ostream_char_print_func_basic_ios(basic_ostream_char
*this,
6626 basic_ios_char
* (__cdecl
*pfunc
)(basic_ios_char
*))
6628 TRACE("(%p %p)\n", this, pfunc
);
6629 pfunc(basic_ostream_char_get_basic_ios(this));
6633 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
6634 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
6635 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_func_ios_base
, 8)
6636 basic_ostream_char
* __thiscall
basic_ostream_char_print_func_ios_base(
6637 basic_ostream_char
*this, ios_base
* (__cdecl
*pfunc
)(ios_base
*))
6639 TRACE("(%p %p)\n", this, pfunc
);
6640 pfunc(&basic_ostream_char_get_basic_ios(this)->base
);
6644 /* ?swap@?$basic_ostream@DU?$char_traits@D@std@@@std@@IAEXAAV12@@Z */
6645 /* ?swap@?$basic_ostream@DU?$char_traits@D@std@@@std@@IEAAXAEAV12@@Z */
6646 DEFINE_THISCALL_WRAPPER(basic_ostream_char_swap
, 8)
6647 void __thiscall
basic_ostream_char_swap(basic_ostream_char
*this, basic_ostream_char
*r
)
6649 TRACE("(%p %p)\n", this, r
);
6654 basic_ios_char_swap(basic_ostream_char_get_basic_ios(this),
6655 basic_ostream_char_get_basic_ios(r
));
6658 /* Caution: basic_ostream uses virtual inheritance. */
6659 static inline basic_ios_wchar
* basic_ostream_wchar_get_basic_ios(basic_ostream_wchar
*this)
6661 return (basic_ios_wchar
*)((char*)this+this->vbtable
[1]);
6664 static inline basic_ios_wchar
* basic_ostream_wchar_to_basic_ios(basic_ostream_wchar
*ptr
)
6666 return (basic_ios_wchar
*)((char*)ptr
+basic_ostream_wchar_vbtable
[1]);
6669 static inline basic_ostream_wchar
* basic_ostream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
6671 return (basic_ostream_wchar
*)((char*)ptr
-basic_ostream_wchar_vbtable
[1]);
6674 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N1@Z */
6675 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N1@Z */
6676 DEFINE_THISCALL_WRAPPER(basic_ostream_short_ctor
, 20)
6677 basic_ostream_wchar
* __thiscall
basic_ostream_short_ctor(basic_ostream_wchar
*this,
6678 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool init
, MSVCP_bool virt_init
)
6680 basic_ios_wchar
*base
;
6682 TRACE("(%p %p %d %d)\n", this, strbuf
, isstd
, virt_init
);
6685 this->vbtable
= basic_ostream_wchar_vbtable
;
6686 base
= basic_ostream_wchar_get_basic_ios(this);
6687 basic_ios_wchar_ctor(base
);
6689 base
= basic_ostream_wchar_get_basic_ios(this);
6692 base
->base
.vtable
= &MSVCP_basic_ostream_short_vtable
;
6694 basic_ios_wchar_init(base
, strbuf
, isstd
);
6698 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE@W4_Uninitialized@1@@Z */
6699 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
6700 DEFINE_THISCALL_WRAPPER(basic_ostream_short_ctor_uninitialized
, 12)
6701 basic_ostream_wchar
* __thiscall
basic_ostream_short_ctor_uninitialized(basic_ostream_wchar
*this,
6702 int uninitialized
, MSVCP_bool virt_init
)
6704 basic_ios_wchar
*base
;
6706 TRACE("(%p %d)\n", this, uninitialized
);
6709 this->vbtable
= basic_ostream_wchar_vbtable
;
6710 base
= basic_ostream_wchar_get_basic_ios(this);
6711 basic_ios_wchar_ctor(base
);
6713 base
= basic_ostream_wchar_get_basic_ios(this);
6716 base
->base
.vtable
= &MSVCP_basic_ostream_short_vtable
;
6717 ios_base_Addstd(&base
->base
);
6721 /* ??1?$basic_ostream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
6722 /* ??1?$basic_ostream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
6723 /* ??1?$basic_ostream@GU?$char_traits@G@std@@@std@@UAE@XZ */
6724 /* ??1?$basic_ostream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
6725 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_dtor
, 4)
6726 void __thiscall
basic_ostream_wchar_dtor(basic_ios_wchar
*base
)
6728 basic_ostream_wchar
*this = basic_ostream_wchar_from_basic_ios(base
);
6730 /* don't destroy virtual base here */
6731 TRACE("(%p)\n", this);
6734 /* ??_D?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
6735 /* ??_D?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
6736 /* ??_D?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
6737 /* ??_D?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
6738 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_vbase_dtor
, 4)
6739 void __thiscall
basic_ostream_wchar_vbase_dtor(basic_ostream_wchar
*this)
6741 TRACE("(%p)\n", this);
6742 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(this));
6743 basic_ios_wchar_dtor(basic_ostream_wchar_get_basic_ios(this));
6746 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_vector_dtor
, 8)
6747 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
6749 basic_ostream_wchar
*this = basic_ostream_wchar_from_basic_ios(base
);
6751 TRACE("(%p %x)\n", this, flags
);
6754 /* we have an array, with the number of elements stored before the first object */
6755 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
6757 for(i
=*ptr
-1; i
>=0; i
--)
6758 basic_ostream_wchar_vbase_dtor(this+i
);
6759 MSVCRT_operator_delete(ptr
);
6761 basic_ostream_wchar_vbase_dtor(this);
6763 MSVCRT_operator_delete(this);
6769 /* ?flush@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@XZ */
6770 /* ?flush@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@XZ */
6771 /* ?flush@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@XZ */
6772 /* ?flush@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@XZ */
6773 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_flush
, 4)
6774 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_flush(basic_ostream_wchar
*this)
6776 /* this function is not matching C++ specification */
6777 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6779 TRACE("(%p)\n", this);
6781 if(basic_ios_wchar_rdbuf_get(base
) && ios_base_good(&base
->base
)
6782 && basic_streambuf_wchar_pubsync(basic_ios_wchar_rdbuf_get(base
))==-1)
6783 basic_ios_wchar_setstate(base
, IOSTATE_badbit
);
6787 /* ?flush@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AAV21@@Z */
6788 /* ?flush@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AEAV21@@Z */
6789 /* ?flush@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@1@AAV21@@Z */
6790 /* ?flush@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@1@AEAV21@@Z */
6791 basic_ostream_wchar
* __cdecl
flush_ostream_wchar(basic_ostream_wchar
*ostream
)
6793 return basic_ostream_wchar_flush(ostream
);
6796 /* ?_Osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
6797 /* ?_Osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
6798 /* ?_Osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
6799 /* ?_Osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
6800 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar__Osfx
, 4)
6801 void __thiscall
basic_ostream_wchar__Osfx(basic_ostream_wchar
*this)
6803 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6805 TRACE("(%p)\n", this);
6807 if(base
->base
.fmtfl
& FMTFLAG_unitbuf
)
6808 basic_ostream_wchar_flush(this);
6811 /* ?osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
6812 /* ?osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
6813 /* ?osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
6814 /* ?osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
6815 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_osfx
, 4)
6816 void __thiscall
basic_ostream_wchar_osfx(basic_ostream_wchar
*this)
6818 TRACE("(%p)\n", this);
6819 basic_ostream_wchar__Osfx(this);
6822 static BOOL
basic_ostream_wchar_sentry_create(basic_ostream_wchar
*ostr
)
6824 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
6826 if(basic_ios_wchar_rdbuf_get(base
))
6827 basic_streambuf_wchar__Lock(base
->strbuf
);
6829 if(ios_base_good(&base
->base
) && base
->stream
)
6830 basic_ostream_wchar_flush(base
->stream
);
6832 return ios_base_good(&base
->base
);
6835 static void basic_ostream_wchar_sentry_destroy(basic_ostream_wchar
*ostr
)
6837 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
6839 if(ios_base_good(&base
->base
) && !__uncaught_exception())
6840 basic_ostream_wchar_osfx(ostr
);
6842 if(basic_ios_wchar_rdbuf_get(base
))
6843 basic_streambuf_wchar__Unlock(base
->strbuf
);
6846 /* ?opfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAE_NXZ */
6847 /* ?opfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA_NXZ */
6848 /* ?opfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE_NXZ */
6849 /* ?opfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA_NXZ */
6850 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_opfx
, 4)
6851 MSVCP_bool __thiscall
basic_ostream_wchar_opfx(basic_ostream_wchar
*this)
6853 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6855 TRACE("(%p)\n", this);
6857 if(ios_base_good(&base
->base
) && base
->stream
)
6858 basic_ostream_wchar_flush(base
->stream
);
6859 return ios_base_good(&base
->base
);
6862 /* ?put@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@_W@Z */
6863 /* ?put@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_W@Z */
6864 /* ?put@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@G@Z */
6865 /* ?put@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@G@Z */
6866 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_put
, 8)
6867 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_put(basic_ostream_wchar
*this, wchar_t ch
)
6869 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6871 TRACE("(%p %c)\n", this, ch
);
6873 if(!basic_ostream_wchar_sentry_create(this)
6874 || basic_streambuf_wchar_sputc(base
->strbuf
, ch
)==WEOF
) {
6875 basic_ostream_wchar_sentry_destroy(this);
6876 basic_ios_wchar_setstate(base
, IOSTATE_badbit
);
6880 basic_ostream_wchar_sentry_destroy(this);
6884 /* ?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@JH@Z */
6885 /* ?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_JH@Z */
6886 /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@JH@Z */
6887 /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JH@Z */
6888 #if STREAMOFF_BITS == 64
6889 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_seekp
, 16)
6891 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_seekp
, 12)
6893 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_seekp(basic_ostream_wchar
*this, streamoff off
, int way
)
6895 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6897 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(off
), way
);
6899 if(!ios_base_fail(&base
->base
)) {
6902 basic_streambuf_wchar_pubseekoff(basic_ios_wchar_rdbuf_get(base
),
6903 &seek
, off
, way
, OPENMODE_out
);
6904 if(seek
.off
==-1 && seek
.pos
==0 && seek
.state
==0)
6905 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
6910 /* ?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
6911 /* ?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
6912 /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
6913 /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
6914 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_seekp_fpos
, 28)
6915 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_seekp_fpos(basic_ostream_wchar
*this, fpos_int pos
)
6917 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6919 TRACE("(%p %s)\n", this, debugstr_fpos_int(&pos
));
6921 if(!ios_base_fail(&base
->base
)) {
6924 basic_streambuf_wchar_pubseekpos(basic_ios_wchar_rdbuf_get(base
),
6925 &seek
, pos
, OPENMODE_out
);
6926 if(seek
.off
==-1 && seek
.pos
==0 && seek
.state
==0)
6927 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
6932 /* ?tellp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@XZ */
6933 /* ?tellp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
6934 /* ?tellp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@XZ */
6935 /* ?tellp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
6936 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_tellp
, 8)
6937 fpos_int
* __thiscall
basic_ostream_wchar_tellp(basic_ostream_wchar
*this, fpos_int
*ret
)
6939 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6941 TRACE("(%p)\n", this);
6943 if(!ios_base_fail(&base
->base
)) {
6944 basic_streambuf_wchar_pubseekoff(basic_ios_wchar_rdbuf_get(base
),
6945 ret
, 0, SEEKDIR_cur
, OPENMODE_out
);
6954 /* ?write@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PB_WH@Z */
6955 /* ?write@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEB_W_J@Z */
6956 /* ?write@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@PBGH@Z */
6957 /* ?write@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEBG_J@Z */
6958 #if STREAMSIZE_BITS == 64
6959 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_write
, 16)
6961 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_write
, 12)
6963 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_write(basic_ostream_wchar
*this, const wchar_t *str
, streamsize count
)
6965 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6967 TRACE("(%p %s %s)\n", this, debugstr_w(str
), wine_dbgstr_longlong(count
));
6969 if(!basic_ostream_wchar_sentry_create(this)
6970 || basic_streambuf_wchar_sputn(base
->strbuf
, str
, count
)!=count
) {
6971 basic_ostream_wchar_sentry_destroy(this);
6972 basic_ios_wchar_setstate(base
, IOSTATE_badbit
);
6976 basic_ostream_wchar_sentry_destroy(this);
6980 static basic_ostream_wchar
* basic_ostream_print_short(basic_ostream_wchar
*this, 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_long(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
),
6994 (ios_base_flags_get(&base
->base
) & FMTFLAG_basefield
& (FMTFLAG_oct
| FMTFLAG_hex
))
6995 ? (LONG
)((unsigned short)val
) : (LONG
)val
);
6997 basic_ostream_wchar_sentry_destroy(this);
6999 basic_ios_wchar_setstate(base
, state
);
7003 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@F@Z */
7004 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@F@Z */
7005 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_short
, 8)
7006 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_short(basic_ostream_wchar
*this, short val
)
7008 return basic_ostream_print_short(this, val
, num_put_wchar_use_facet(
7009 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7012 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@F@Z */
7013 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@F@Z */
7014 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_short
, 8)
7015 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_short(basic_ostream_wchar
*this, short val
)
7017 return basic_ostream_print_short(this, val
, num_put_short_use_facet(
7018 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7021 static basic_ostream_wchar
* basic_ostream_print_ushort(basic_ostream_wchar
*this, unsigned short val
, const num_put
*numput
)
7023 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7024 int state
= IOSTATE_goodbit
;
7026 TRACE("(%p %d)\n", this, val
);
7028 if(basic_ostream_wchar_sentry_create(this)) {
7029 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7030 ostreambuf_iterator_wchar dest
;
7032 memset(&dest
, 0, sizeof(dest
));
7033 dest
.strbuf
= strbuf
;
7034 num_put_wchar_put_ulong(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7036 basic_ostream_wchar_sentry_destroy(this);
7038 basic_ios_wchar_setstate(base
, state
);
7042 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@G@Z */
7043 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@G@Z */
7044 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_ushort
, 8)
7045 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_ushort(basic_ostream_wchar
*this, unsigned short val
)
7047 return basic_ostream_print_ushort(this, val
, num_put_wchar_use_facet(
7048 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7051 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@G@Z */
7052 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@G@Z */
7053 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_ushort
, 8)
7054 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_ushort(basic_ostream_wchar
*this, unsigned short val
)
7056 return basic_ostream_print_ushort(this, val
, num_put_short_use_facet(
7057 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7060 /* ??6std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@0@AAV10@G@Z */
7061 /* ??6std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@0@AEAV10@G@Z */
7062 basic_ostream_wchar
* __cdecl
basic_ostream_short_print_ushort_global(basic_ostream_wchar
*ostr
, unsigned short val
)
7064 return basic_ostream_print_ushort(ostr
, val
, num_put_short_use_facet(
7065 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(ostr
)))));
7068 static basic_ostream_wchar
* basic_ostream_print_int(basic_ostream_wchar
*this, int val
, const num_put
*numput
)
7070 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7071 int state
= IOSTATE_goodbit
;
7073 TRACE("(%p %d)\n", this, val
);
7075 if(basic_ostream_wchar_sentry_create(this)) {
7076 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7077 ostreambuf_iterator_wchar dest
;
7079 memset(&dest
, 0, sizeof(dest
));
7080 dest
.strbuf
= strbuf
;
7081 num_put_wchar_put_long(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7083 basic_ostream_wchar_sentry_destroy(this);
7085 basic_ios_wchar_setstate(base
, state
);
7089 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@H@Z */
7090 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@H@Z */
7091 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@J@Z */
7092 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@J@Z */
7093 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_int
, 8)
7094 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_int(basic_ostream_wchar
*this, int val
)
7096 return basic_ostream_print_int(this, val
, num_put_wchar_use_facet(
7097 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7100 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@H@Z */
7101 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@H@Z */
7102 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@J@Z */
7103 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@J@Z */
7104 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_int
, 8)
7105 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_int(basic_ostream_wchar
*this, int val
)
7107 return basic_ostream_print_int(this, val
, num_put_short_use_facet(
7108 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7111 static basic_ostream_wchar
* basic_ostream_print_uint(basic_ostream_wchar
*this, unsigned int val
, const num_put
*numput
)
7113 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7114 int state
= IOSTATE_goodbit
;
7116 TRACE("(%p %u)\n", this, val
);
7118 if(basic_ostream_wchar_sentry_create(this)) {
7119 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7120 ostreambuf_iterator_wchar dest
;
7122 memset(&dest
, 0, sizeof(dest
));
7123 dest
.strbuf
= strbuf
;
7124 num_put_wchar_put_ulong(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7126 basic_ostream_wchar_sentry_destroy(this);
7128 basic_ios_wchar_setstate(base
, state
);
7132 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@I@Z */
7133 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@I@Z */
7134 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@K@Z */
7135 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@K@Z */
7136 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_uint
, 8)
7137 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_uint(basic_ostream_wchar
*this, unsigned int val
)
7139 return basic_ostream_print_uint(this, val
, num_put_wchar_use_facet(
7140 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7143 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@I@Z */
7144 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@I@Z */
7145 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@K@Z */
7146 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@K@Z */
7147 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_uint
, 8)
7148 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_uint(basic_ostream_wchar
*this, unsigned int val
)
7150 return basic_ostream_print_uint(this, val
, num_put_short_use_facet(
7151 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7154 static basic_ostream_wchar
* basic_ostream_print_float(basic_ostream_wchar
*this, float val
, const num_put
*numput
)
7156 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7157 int state
= IOSTATE_goodbit
;
7159 TRACE("(%p %f)\n", this, val
);
7161 if(basic_ostream_wchar_sentry_create(this)) {
7162 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7163 ostreambuf_iterator_wchar dest
;
7165 memset(&dest
, 0, sizeof(dest
));
7166 dest
.strbuf
= strbuf
;
7167 num_put_wchar_put_double(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7169 basic_ostream_wchar_sentry_destroy(this);
7171 basic_ios_wchar_setstate(base
, state
);
7175 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@M@Z */
7176 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@M@Z */
7177 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_float
, 8)
7178 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_float(basic_ostream_wchar
*this, float val
)
7180 return basic_ostream_print_float(this, val
, num_put_wchar_use_facet(
7181 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7184 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@M@Z */
7185 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@M@Z */
7186 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_float
, 8)
7187 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_float(basic_ostream_wchar
*this, float val
)
7189 return basic_ostream_print_float(this, val
, num_put_short_use_facet(
7190 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7193 static basic_ostream_wchar
* basic_ostream_print_double(basic_ostream_wchar
*this, double val
, const num_put
*numput
)
7195 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7196 int state
= IOSTATE_goodbit
;
7198 TRACE("(%p %lf)\n", this, val
);
7200 if(basic_ostream_wchar_sentry_create(this)) {
7201 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7202 ostreambuf_iterator_wchar dest
;
7204 memset(&dest
, 0, sizeof(dest
));
7205 dest
.strbuf
= strbuf
;
7206 num_put_wchar_put_double(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7208 basic_ostream_wchar_sentry_destroy(this);
7210 basic_ios_wchar_setstate(base
, state
);
7214 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@N@Z */
7215 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@N@Z */
7216 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_double
, 12)
7217 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_double(basic_ostream_wchar
*this, double val
)
7219 return basic_ostream_print_double(this, val
, num_put_wchar_use_facet(
7220 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7223 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@N@Z */
7224 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@N@Z */
7225 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_double
, 12)
7226 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_double(basic_ostream_wchar
*this, double val
)
7228 return basic_ostream_print_double(this, val
, num_put_short_use_facet(
7229 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7232 static basic_ostream_wchar
* basic_ostream_print_ldouble(basic_ostream_wchar
*this, double val
, const num_put
*numput
)
7234 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7235 int state
= IOSTATE_goodbit
;
7237 TRACE("(%p %lf)\n", this, val
);
7239 if(basic_ostream_wchar_sentry_create(this)) {
7240 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7241 ostreambuf_iterator_wchar dest
;
7243 memset(&dest
, 0, sizeof(dest
));
7244 dest
.strbuf
= strbuf
;
7245 num_put_wchar_put_ldouble(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7247 basic_ostream_wchar_sentry_destroy(this);
7249 basic_ios_wchar_setstate(base
, state
);
7253 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@O@Z */
7254 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@O@Z */
7255 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_ldouble
, 12)
7256 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_ldouble(basic_ostream_wchar
*this, double val
)
7258 return basic_ostream_print_ldouble(this, val
, num_put_wchar_use_facet(
7259 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7262 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@O@Z */
7263 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@O@Z */
7264 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_ldouble
, 12)
7265 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_ldouble(basic_ostream_wchar
*this, double val
)
7267 return basic_ostream_print_ldouble(this, val
, num_put_short_use_facet(
7268 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7271 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
7272 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
7273 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
7274 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
7275 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_streambuf
, 8)
7276 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_streambuf(basic_ostream_wchar
*this, basic_streambuf_wchar
*val
)
7278 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7279 IOSB_iostate state
= IOSTATE_badbit
;
7280 unsigned short c
= '\n';
7282 TRACE("(%p %p)\n", this, val
);
7284 if(basic_ostream_wchar_sentry_create(this)) {
7285 for(c
= basic_streambuf_wchar_sgetc(val
); c
!=WEOF
;
7286 c
= basic_streambuf_wchar_snextc(val
)) {
7287 state
= IOSTATE_goodbit
;
7289 if(basic_streambuf_wchar_sputc(base
->strbuf
, c
) == WEOF
) {
7290 state
= IOSTATE_badbit
;
7295 state
= IOSTATE_badbit
;
7297 basic_ostream_wchar_sentry_destroy(this);
7299 ios_base_width_set(&base
->base
, 0);
7300 basic_ios_wchar_setstate(base
, state
);
7304 static basic_ostream_wchar
* basic_ostream_print_ptr(basic_ostream_wchar
*this, const void *val
, const num_put
*numput
)
7306 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7307 int state
= IOSTATE_goodbit
;
7309 TRACE("(%p %p)\n", this, val
);
7311 if(basic_ostream_wchar_sentry_create(this)) {
7312 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7313 ostreambuf_iterator_wchar dest
;
7315 memset(&dest
, 0, sizeof(dest
));
7316 dest
.strbuf
= strbuf
;
7317 num_put_wchar_put_ptr(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7319 basic_ostream_wchar_sentry_destroy(this);
7321 basic_ios_wchar_setstate(base
, state
);
7325 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@PBX@Z */
7326 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@PEBX@Z */
7327 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_ptr
, 8)
7328 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_ptr(basic_ostream_wchar
*this, const void *val
)
7330 return basic_ostream_print_ptr(this, val
, num_put_wchar_use_facet(
7331 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7334 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@PBX@Z */
7335 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@PEBX@Z */
7336 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_ptr
, 8)
7337 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_ptr(basic_ostream_wchar
*this, const void *val
)
7339 return basic_ostream_print_ptr(this, val
, num_put_short_use_facet(
7340 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7343 static basic_ostream_wchar
* basic_ostream_print_int64(basic_ostream_wchar
*this, __int64 val
, const num_put
*numput
)
7345 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7346 int state
= IOSTATE_goodbit
;
7348 TRACE("(%p)\n", this);
7350 if(basic_ostream_wchar_sentry_create(this)) {
7351 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7352 ostreambuf_iterator_wchar dest
;
7354 memset(&dest
, 0, sizeof(dest
));
7355 dest
.strbuf
= strbuf
;
7356 num_put_wchar_put_int64(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7358 basic_ostream_wchar_sentry_destroy(this);
7360 basic_ios_wchar_setstate(base
, state
);
7364 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@_J@Z */
7365 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@_J@Z */
7366 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_int64
, 12)
7367 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_int64(basic_ostream_wchar
*this, __int64 val
)
7369 return basic_ostream_print_int64(this, val
, num_put_wchar_use_facet(
7370 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7373 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@_J@Z */
7374 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@_J@Z */
7375 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_int64
, 12)
7376 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_int64(basic_ostream_wchar
*this, __int64 val
)
7378 return basic_ostream_print_int64(this, val
, num_put_short_use_facet(
7379 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7382 static basic_ostream_wchar
* basic_ostream_print_uint64(basic_ostream_wchar
*this, unsigned __int64 val
, const num_put
*numput
)
7384 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7385 int state
= IOSTATE_goodbit
;
7387 TRACE("(%p)\n", this);
7389 if(basic_ostream_wchar_sentry_create(this)) {
7390 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7391 ostreambuf_iterator_wchar dest
;
7393 memset(&dest
, 0, sizeof(dest
));
7394 dest
.strbuf
= strbuf
;
7395 num_put_wchar_put_uint64(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7397 basic_ostream_wchar_sentry_destroy(this);
7399 basic_ios_wchar_setstate(base
, state
);
7403 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@_K@Z */
7404 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@_K@Z */
7405 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_uint64
, 12)
7406 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_uint64(basic_ostream_wchar
*this, unsigned __int64 val
)
7408 return basic_ostream_print_uint64(this, val
, num_put_wchar_use_facet(
7409 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7412 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@_K@Z */
7413 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@_K@Z */
7414 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_uint64
, 12)
7415 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_uint64(basic_ostream_wchar
*this, unsigned __int64 val
)
7417 return basic_ostream_print_uint64(this, val
, num_put_short_use_facet(
7418 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7421 static basic_ostream_wchar
* basic_ostream_print_bool(basic_ostream_wchar
*this, MSVCP_bool val
, const num_put
*numput
)
7423 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
7424 int state
= IOSTATE_goodbit
;
7426 TRACE("(%p %x)\n", this, val
);
7428 if(basic_ostream_wchar_sentry_create(this)) {
7429 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
7430 ostreambuf_iterator_wchar dest
;
7432 memset(&dest
, 0, sizeof(dest
));
7433 dest
.strbuf
= strbuf
;
7434 num_put_wchar_put_bool(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
7436 basic_ostream_wchar_sentry_destroy(this);
7438 basic_ios_wchar_setstate(base
, state
);
7442 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@_N@Z */
7443 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@_N@Z */
7444 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_bool
, 8)
7445 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_bool(basic_ostream_wchar
*this, MSVCP_bool val
)
7447 return basic_ostream_print_bool(this, val
, num_put_wchar_use_facet(
7448 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7451 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@_N@Z */
7452 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@_N@Z */
7453 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_bool
, 8)
7454 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_bool(basic_ostream_wchar
*this, MSVCP_bool val
)
7456 return basic_ostream_print_bool(this, val
, num_put_short_use_facet(
7457 IOS_LOCALE(basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this)))));
7460 /* ?ends@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AAV21@@Z */
7461 /* ?ends@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AEAV21@@Z */
7462 /* ?ends@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@1@AAV21@@Z */
7463 /* ?ends@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@1@AEAV21@@Z */
7464 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_ends(basic_ostream_wchar
*ostr
)
7466 TRACE("(%p)\n", ostr
);
7468 basic_ostream_wchar_put(ostr
, 0);
7472 /* ?endl@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AAV21@@Z */
7473 /* ?endl@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AEAV21@@Z */
7474 /* ?endl@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@1@AAV21@@Z */
7475 /* ?endl@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@1@AEAV21@@Z */
7476 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_endl(basic_ostream_wchar
*ostr
)
7478 TRACE("(%p)\n", ostr
);
7480 basic_ostream_wchar_put(ostr
, '\n');
7481 basic_ostream_wchar_flush(ostr
);
7485 /* ??$?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 */
7486 /* ??$?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 */
7487 /* ??$?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 */
7488 /* ??$?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 */
7489 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_print_bstr(basic_ostream_wchar
*ostr
, const basic_string_wchar
*str
)
7491 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
7492 IOSB_iostate state
= IOSTATE_goodbit
;
7494 TRACE("(%p %p)\n", ostr
, str
);
7496 if(basic_ostream_wchar_sentry_create(ostr
)) {
7497 MSVCP_size_t len
= MSVCP_basic_string_wchar_length(str
);
7498 streamsize pad
= (base
->base
.wide
>len
? base
->base
.wide
-len
: 0);
7500 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
7501 for(; pad
!=0; pad
--) {
7502 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
7503 state
= IOSTATE_badbit
;
7509 if(state
== IOSTATE_goodbit
) {
7510 if(basic_streambuf_wchar_sputn(base
->strbuf
, MSVCP_basic_string_wchar_c_str(str
), len
) != len
)
7511 state
= IOSTATE_badbit
;
7514 if(state
== IOSTATE_goodbit
) {
7515 for(; pad
!=0; pad
--) {
7516 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
7517 state
= IOSTATE_badbit
;
7523 base
->base
.wide
= 0;
7525 state
= IOSTATE_badbit
;
7527 basic_ostream_wchar_sentry_destroy(ostr
);
7529 basic_ios_wchar_setstate(base
, state
);
7533 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AAV10@_W@Z */
7534 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AEAV10@_W@Z */
7535 /* ??$?6GU?$char_traits@G@std@@@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@0@AAV10@G@Z */
7536 /* ??$?6GU?$char_traits@G@std@@@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@0@AEAV10@G@Z */
7537 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_print_ch(basic_ostream_wchar
*ostr
, wchar_t ch
)
7539 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
7540 IOSB_iostate state
= IOSTATE_goodbit
;
7542 TRACE("(%p %d)\n", ostr
, ch
);
7544 if(basic_ostream_wchar_sentry_create(ostr
)) {
7545 streamsize pad
= (base
->base
.wide
>1 ? base
->base
.wide
-1 : 0);
7547 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
7548 for(; pad
!=0; pad
--) {
7549 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
7550 state
= IOSTATE_badbit
;
7556 if(state
== IOSTATE_goodbit
) {
7557 if(basic_streambuf_wchar_sputc(base
->strbuf
, ch
) == WEOF
)
7558 state
= IOSTATE_badbit
;
7561 if(state
== IOSTATE_goodbit
) {
7562 for(; pad
!=0; pad
--) {
7563 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
7564 state
= IOSTATE_badbit
;
7570 base
->base
.wide
= 0;
7572 state
= IOSTATE_badbit
;
7574 basic_ostream_wchar_sentry_destroy(ostr
);
7576 basic_ios_wchar_setstate(base
, state
);
7580 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AAV10@PB_W@Z */
7581 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AEAV10@PEB_W@Z */
7582 /* ??$?6GU?$char_traits@G@std@@@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@0@AAV10@PBG@Z */
7583 /* ??$?6GU?$char_traits@G@std@@@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@0@AEAV10@PEBG@Z */
7584 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_print_str(basic_ostream_wchar
*ostr
, const wchar_t *str
)
7586 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
7587 IOSB_iostate state
= IOSTATE_goodbit
;
7589 TRACE("(%p %s)\n", ostr
, debugstr_w(str
));
7591 if(basic_ostream_wchar_sentry_create(ostr
)) {
7592 MSVCP_size_t len
= wcslen(str
);
7593 streamsize pad
= (base
->base
.wide
>len
? base
->base
.wide
-len
: 0);
7595 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
7596 for(; pad
!=0; pad
--) {
7597 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
7598 state
= IOSTATE_badbit
;
7604 if(state
== IOSTATE_goodbit
) {
7605 if(basic_streambuf_wchar_sputn(base
->strbuf
, str
, len
) != len
)
7606 state
= IOSTATE_badbit
;
7609 if(state
== IOSTATE_goodbit
) {
7610 for(; pad
!=0; pad
--) {
7611 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
7612 state
= IOSTATE_badbit
;
7618 base
->base
.wide
= 0;
7620 state
= IOSTATE_badbit
;
7622 basic_ostream_wchar_sentry_destroy(ostr
);
7624 basic_ios_wchar_setstate(base
, state
);
7628 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
7629 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
7630 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
7631 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
7632 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_func
, 8)
7633 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_func(basic_ostream_wchar
*this,
7634 basic_ostream_wchar
* (__cdecl
*pfunc
)(basic_ostream_wchar
*))
7636 TRACE("(%p %p)\n", this, pfunc
);
7641 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AAV21@@Z@Z */
7642 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AEAV21@@Z@Z */
7643 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@GU?$char_traits@G@std@@@1@AAV21@@Z@Z */
7644 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@GU?$char_traits@G@std@@@1@AEAV21@@Z@Z */
7645 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_func_basic_ios
, 8)
7646 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_func_basic_ios(basic_ostream_wchar
*this,
7647 basic_ios_wchar
* (__cdecl
*pfunc
)(basic_ios_wchar
*))
7649 TRACE("(%p %p)\n", this, pfunc
);
7650 pfunc(basic_ostream_wchar_get_basic_ios(this));
7654 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
7655 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
7656 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
7657 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
7658 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_func_ios_base
, 8)
7659 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_func_ios_base(
7660 basic_ostream_wchar
*this, ios_base
* (__cdecl
*pfunc
)(ios_base
*))
7662 TRACE("(%p %p)\n", this, pfunc
);
7663 pfunc(&basic_ostream_wchar_get_basic_ios(this)->base
);
7667 /* ?swap@?$basic_ostream@GU?$char_traits@G@std@@@std@@IAEXAAV12@@Z */
7668 /* ?swap@?$basic_ostream@GU?$char_traits@G@std@@@std@@IEAAXAEAV12@@Z */
7669 /* ?swap@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@IAEXAAV12@@Z */
7670 /* ?swap@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@IEAAXAEAV12@@Z */
7671 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_swap
, 8)
7672 void __thiscall
basic_ostream_wchar_swap(basic_ostream_wchar
*this, basic_ostream_wchar
*r
)
7674 TRACE("(%p %p)\n", this, r
);
7679 basic_ios_wchar_swap(basic_ostream_wchar_get_basic_ios(this),
7680 basic_ostream_wchar_get_basic_ios(r
));
7683 /* Caution: basic_istream uses virtual inheritance. */
7684 static inline basic_ios_char
* basic_istream_char_get_basic_ios(basic_istream_char
*this)
7686 return (basic_ios_char
*)((char*)this+this->vbtable
[1]);
7689 static inline basic_ios_char
* basic_istream_char_to_basic_ios(basic_istream_char
*ptr
)
7691 return (basic_ios_char
*)((char*)ptr
+basic_istream_char_vbtable
[1]);
7694 static inline basic_istream_char
* basic_istream_char_from_basic_ios(basic_ios_char
*ptr
)
7696 return (basic_istream_char
*)((char*)ptr
-basic_istream_char_vbtable
[1]);
7699 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N1@Z */
7700 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N1@Z */
7701 DEFINE_THISCALL_WRAPPER(basic_istream_char_ctor_init
, 20)
7702 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
)
7704 basic_ios_char
*base
;
7706 TRACE("(%p %p %d %d %d)\n", this, strbuf
, isstd
, noinit
, virt_init
);
7709 this->vbtable
= basic_istream_char_vbtable
;
7710 base
= basic_istream_char_get_basic_ios(this);
7711 basic_ios_char_ctor(base
);
7713 base
= basic_istream_char_get_basic_ios(this);
7716 base
->base
.vtable
= &MSVCP_basic_istream_char_vtable
;
7719 basic_ios_char_init(base
, strbuf
, isstd
);
7723 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z */
7724 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z */
7725 DEFINE_THISCALL_WRAPPER(basic_istream_char_ctor
, 16)
7726 basic_istream_char
* __thiscall
basic_istream_char_ctor(basic_istream_char
*this, basic_streambuf_char
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
7728 return basic_istream_char_ctor_init(this, strbuf
, isstd
, FALSE
, virt_init
);
7731 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QAE@W4_Uninitialized@1@@Z */
7732 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
7733 DEFINE_THISCALL_WRAPPER(basic_istream_char_ctor_uninitialized
, 12)
7734 basic_istream_char
* __thiscall
basic_istream_char_ctor_uninitialized(basic_istream_char
*this, int uninitialized
, MSVCP_bool virt_init
)
7736 basic_ios_char
*base
;
7738 TRACE("(%p %d %d)\n", this, uninitialized
, virt_init
);
7741 this->vbtable
= basic_istream_char_vbtable
;
7742 base
= basic_istream_char_get_basic_ios(this);
7743 basic_ios_char_ctor(base
);
7745 base
= basic_istream_char_get_basic_ios(this);
7748 base
->base
.vtable
= &MSVCP_basic_istream_char_vtable
;
7749 ios_base_Addstd(&base
->base
);
7753 /* ??1?$basic_istream@DU?$char_traits@D@std@@@std@@UAE@XZ */
7754 /* ??1?$basic_istream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
7755 DEFINE_THISCALL_WRAPPER(basic_istream_char_dtor
, 4)
7756 void __thiscall
basic_istream_char_dtor(basic_ios_char
*base
)
7758 basic_istream_char
*this = basic_istream_char_from_basic_ios(base
);
7760 /* don't destroy virtual base here */
7761 TRACE("(%p)\n", this);
7764 /* ??_D?$basic_istream@DU?$char_traits@D@std@@@std@@QAEXXZ */
7765 /* ??_D?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
7766 DEFINE_THISCALL_WRAPPER(basic_istream_char_vbase_dtor
, 4)
7767 void __thiscall
basic_istream_char_vbase_dtor(basic_istream_char
*this)
7769 TRACE("(%p)\n", this);
7770 basic_istream_char_dtor(basic_istream_char_to_basic_ios(this));
7771 basic_ios_char_dtor(basic_istream_char_get_basic_ios(this));
7774 DEFINE_THISCALL_WRAPPER(basic_istream_char_vector_dtor
, 8)
7775 basic_istream_char
* __thiscall
basic_istream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
7777 basic_istream_char
*this = basic_istream_char_from_basic_ios(base
);
7779 TRACE("(%p %x)\n", this, flags
);
7782 /* we have an array, with the number of elements stored before the first object */
7783 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
7785 for(i
=*ptr
-1; i
>=0; i
--)
7786 basic_istream_char_vbase_dtor(this+i
);
7787 MSVCRT_operator_delete(ptr
);
7789 basic_istream_char_vbase_dtor(this);
7791 MSVCRT_operator_delete(this);
7797 /* ?_Ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QAE_N_N@Z */
7798 /* ?_Ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_N_N@Z */
7799 DEFINE_THISCALL_WRAPPER(basic_istream_char__Ipfx
, 8)
7800 MSVCP_bool __thiscall
basic_istream_char__Ipfx(basic_istream_char
*this, MSVCP_bool noskip
)
7802 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7804 TRACE("(%p %d)\n", this, noskip
);
7806 if(ios_base_good(&base
->base
)) {
7807 if(basic_ios_char_tie_get(base
))
7808 basic_ostream_char_flush(basic_ios_char_tie_get(base
));
7810 if(!noskip
&& (ios_base_flags_get(&base
->base
) & FMTFLAG_skipws
)) {
7811 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7812 const ctype_char
*ctype
= ctype_char_use_facet(IOS_LOCALE(base
->strbuf
));
7815 for(ch
= basic_streambuf_char_sgetc(strbuf
); ;
7816 ch
= basic_streambuf_char_snextc(strbuf
)) {
7817 if(ch
==EOF
|| !ctype_char_is_ch(ctype
, _SPACE
|_BLANK
, ch
))
7823 if(!ios_base_good(&base
->base
)) {
7824 basic_ios_char_setstate(base
, IOSTATE_failbit
);
7831 /* ?ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QAE_N_N@Z */
7832 /* ?ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_N_N@Z */
7833 DEFINE_THISCALL_WRAPPER(basic_istream_char_ipfx
, 8)
7834 MSVCP_bool __thiscall
basic_istream_char_ipfx(basic_istream_char
*this, MSVCP_bool noskip
)
7836 return basic_istream_char__Ipfx(this, noskip
);
7839 /* ?isfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEXXZ */
7840 /* ?isfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
7841 DEFINE_THISCALL_WRAPPER(basic_istream_char_isfx
, 4)
7842 void __thiscall
basic_istream_char_isfx(basic_istream_char
*this)
7844 TRACE("(%p)\n", this);
7847 static BOOL
basic_istream_char_sentry_create(basic_istream_char
*istr
, MSVCP_bool noskip
)
7849 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istr
);
7851 if(basic_ios_char_rdbuf_get(base
))
7852 call_basic_streambuf_char__Lock(base
->strbuf
);
7854 return basic_istream_char_ipfx(istr
, noskip
);
7857 static void basic_istream_char_sentry_destroy(basic_istream_char
*istr
)
7859 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istr
);
7861 if(basic_ios_char_rdbuf_get(base
))
7862 call_basic_streambuf_char__Unlock(base
->strbuf
);
7865 /* ?gcount@?$basic_istream@DU?$char_traits@D@std@@@std@@QBEHXZ */
7866 /* ?gcount@?$basic_istream@DU?$char_traits@D@std@@@std@@QEBA_JXZ */
7867 /* ?gcount@?$basic_istream@DU?$char_traits@D@std@@@std@@QBA_JXZ */
7868 /* ?gcount@?$basic_istream@DU?$char_traits@D@std@@@std@@QBE_JXZ */
7869 DEFINE_THISCALL_WRAPPER(basic_istream_char_gcount
, 4)
7870 streamsize __thiscall
basic_istream_char_gcount(const basic_istream_char
*this)
7872 TRACE("(%p)\n", this);
7876 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHXZ */
7877 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAHXZ */
7878 DEFINE_THISCALL_WRAPPER(basic_istream_char_get
, 4)
7879 int __thiscall
basic_istream_char_get(basic_istream_char
*this)
7881 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7884 TRACE("(%p)\n", this);
7888 if(!basic_istream_char_sentry_create(this, TRUE
)) {
7889 basic_istream_char_sentry_destroy(this);
7893 ret
= basic_streambuf_char_sbumpc(basic_ios_char_rdbuf_get(base
));
7894 basic_istream_char_sentry_destroy(this);
7896 basic_ios_char_setstate(base
, IOSTATE_eofbit
|IOSTATE_failbit
);
7903 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@AAD@Z */
7904 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEAD@Z */
7905 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_ch
, 8)
7906 basic_istream_char
* __thiscall
basic_istream_char_get_ch(basic_istream_char
*this, char *ch
)
7910 TRACE("(%p %p)\n", this, ch
);
7912 ret
= basic_istream_char_get(this);
7918 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADHD@Z */
7919 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_JD@Z */
7920 #if STREAMSIZE_BITS == 64
7921 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str_delim
, 20)
7923 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str_delim
, 16)
7925 basic_istream_char
* __thiscall
basic_istream_char_get_str_delim(basic_istream_char
*this, char *str
, streamsize count
, char delim
)
7927 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7930 TRACE("(%p %p %s %s)\n", this, str
, wine_dbgstr_longlong(count
), debugstr_an(&delim
, 1));
7934 if(basic_istream_char_sentry_create(this, TRUE
)) {
7935 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7937 for(ch
= basic_streambuf_char_sgetc(strbuf
); count
>1;
7938 ch
= basic_streambuf_char_snextc(strbuf
)) {
7939 if(ch
==EOF
|| ch
==delim
)
7947 basic_istream_char_sentry_destroy(this);
7949 basic_ios_char_setstate(base
, (!this->count
? IOSTATE_failbit
: IOSTATE_goodbit
) |
7950 (ch
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
7956 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADH@Z */
7957 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z */
7958 #if STREAMSIZE_BITS == 64
7959 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str
, 16)
7961 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str
, 12)
7963 basic_istream_char
* __thiscall
basic_istream_char_get_str(basic_istream_char
*this, char *str
, streamsize count
)
7965 return basic_istream_char_get_str_delim(this, str
, count
, '\n');
7968 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@AAV?$basic_streambuf@DU?$char_traits@D@std@@@2@D@Z */
7969 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@D@Z */
7970 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_streambuf_delim
, 12)
7971 basic_istream_char
* __thiscall
basic_istream_char_get_streambuf_delim(basic_istream_char
*this, basic_streambuf_char
*strbuf
, char delim
)
7973 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7976 TRACE("(%p %p %s)\n", this, strbuf
, debugstr_an(&delim
, 1));
7980 if(basic_istream_char_sentry_create(this, TRUE
)) {
7981 basic_streambuf_char
*strbuf_read
= basic_ios_char_rdbuf_get(base
);
7983 for(ch
= basic_streambuf_char_sgetc(strbuf_read
); ;
7984 ch
= basic_streambuf_char_snextc(strbuf_read
)) {
7985 if(ch
==EOF
|| ch
==delim
)
7988 if(basic_streambuf_char_sputc(strbuf
, ch
) == EOF
)
7993 basic_istream_char_sentry_destroy(this);
7995 basic_ios_char_setstate(base
, (!this->count
? IOSTATE_failbit
: IOSTATE_goodbit
) |
7996 (ch
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
8000 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@AAV?$basic_streambuf@DU?$char_traits@D@std@@@2@@Z */
8001 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@@Z */
8002 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_streambuf
, 8)
8003 basic_istream_char
* __thiscall
basic_istream_char_get_streambuf(basic_istream_char
*this, basic_streambuf_char
*strbuf
)
8005 return basic_istream_char_get_streambuf_delim(this, strbuf
, '\n');
8008 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADHD@Z */
8009 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_JD@Z */
8010 #if STREAMSIZE_BITS == 64
8011 DEFINE_THISCALL_WRAPPER(basic_istream_char_getline_delim
, 20)
8013 DEFINE_THISCALL_WRAPPER(basic_istream_char_getline_delim
, 16)
8015 basic_istream_char
* __thiscall
basic_istream_char_getline_delim(basic_istream_char
*this, char *str
, streamsize count
, char delim
)
8017 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8018 int ch
= (unsigned char)delim
;
8020 TRACE("(%p %p %s %s)\n", this, str
, wine_dbgstr_longlong(count
), debugstr_an(&delim
, 1));
8024 if(basic_istream_char_sentry_create(this, TRUE
) && count
>0) {
8025 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8028 ch
= basic_streambuf_char_sbumpc(strbuf
);
8030 if(ch
==EOF
|| ch
==(unsigned char)delim
)
8038 if(ch
== (unsigned char)delim
)
8040 else if(ch
!= EOF
) {
8041 ch
= basic_streambuf_char_sgetc(strbuf
);
8043 if(ch
== (unsigned char)delim
) {
8044 basic_streambuf_char__Gninc(strbuf
);
8049 basic_istream_char_sentry_destroy(this);
8051 basic_ios_char_setstate(base
, (ch
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
) |
8052 (!this->count
|| (ch
!=(unsigned char)delim
&& ch
!=EOF
) ? IOSTATE_failbit
: IOSTATE_goodbit
));
8058 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADH@Z */
8059 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z */
8060 #if STREAMSIZE_BITS == 64
8061 DEFINE_THISCALL_WRAPPER(basic_istream_char_getline
, 16)
8063 DEFINE_THISCALL_WRAPPER(basic_istream_char_getline
, 12)
8065 basic_istream_char
* __thiscall
basic_istream_char_getline(basic_istream_char
*this, char *str
, streamsize count
)
8067 return basic_istream_char_getline_delim(this, str
, count
, '\n');
8070 /* ?ignore@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@HH@Z */
8071 /* ?ignore@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JH@Z */
8072 #if STREAMSIZE_BITS == 64
8073 DEFINE_THISCALL_WRAPPER(basic_istream_char_ignore
, 16)
8075 DEFINE_THISCALL_WRAPPER(basic_istream_char_ignore
, 12)
8077 basic_istream_char
* __thiscall
basic_istream_char_ignore(basic_istream_char
*this, streamsize count
, int delim
)
8079 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8080 int ch
= (unsigned char)delim
;
8083 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(count
), delim
);
8087 if(basic_istream_char_sentry_create(this, TRUE
)) {
8088 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8089 state
= IOSTATE_goodbit
;
8092 ch
= basic_streambuf_char_sbumpc(strbuf
);
8095 state
= IOSTATE_eofbit
;
8103 if(count
!= INT_MAX
)
8107 state
= IOSTATE_failbit
;
8108 basic_istream_char_sentry_destroy(this);
8110 basic_ios_char_setstate(base
, state
);
8114 /* ?ws@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@1@AAV21@@Z */
8115 /* ?ws@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@1@AEAV21@@Z */
8116 basic_istream_char
* __cdecl
ws_basic_istream_char(basic_istream_char
*istream
)
8118 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istream
);
8121 TRACE("(%p)\n", istream
);
8123 if(basic_istream_char_sentry_create(istream
, TRUE
)) {
8124 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8125 const ctype_char
*ctype
= ctype_char_use_facet(IOS_LOCALE(strbuf
));
8127 for(ch
= basic_streambuf_char_sgetc(strbuf
); ctype_char_is_ch(ctype
, _SPACE
, ch
);
8128 ch
= basic_streambuf_char_snextc(strbuf
)) {
8133 basic_istream_char_sentry_destroy(istream
);
8136 basic_ios_char_setstate(base
, IOSTATE_eofbit
);
8140 /* ?peek@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHXZ */
8141 /* ?peek@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAHXZ */
8142 DEFINE_THISCALL_WRAPPER(basic_istream_char_peek
, 4)
8143 int __thiscall
basic_istream_char_peek(basic_istream_char
*this)
8145 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8148 TRACE("(%p)\n", this);
8152 if(basic_istream_char_sentry_create(this, TRUE
))
8153 ret
= basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base
));
8154 basic_istream_char_sentry_destroy(this);
8157 basic_ios_char_setstate(base
, IOSTATE_eofbit
);
8162 /* ?_Read_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADIH@Z */
8163 /* ?_Read_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_K_J@Z */
8164 #if STREAMSIZE_BITS == 64
8165 DEFINE_THISCALL_WRAPPER(basic_istream_char__Read_s
, 20)
8167 DEFINE_THISCALL_WRAPPER(basic_istream_char__Read_s
, 16)
8169 basic_istream_char
* __thiscall
basic_istream_char__Read_s(basic_istream_char
*this, char *str
, MSVCP_size_t size
, streamsize count
)
8171 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8172 IOSB_iostate state
= IOSTATE_goodbit
;
8174 TRACE("(%p %p %lu %s)\n", this, str
, size
, wine_dbgstr_longlong(count
));
8176 if(basic_istream_char_sentry_create(this, TRUE
)) {
8177 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8179 this->count
= basic_streambuf_char__Sgetn_s(strbuf
, str
, size
, count
);
8180 if(this->count
!= count
)
8181 state
|= IOSTATE_failbit
| IOSTATE_eofbit
;
8185 basic_istream_char_sentry_destroy(this);
8187 basic_ios_char_setstate(base
, state
);
8191 /* ?read@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADH@Z */
8192 /* ?read@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z */
8193 #if STREAMSIZE_BITS == 64
8194 DEFINE_THISCALL_WRAPPER(basic_istream_char_read
, 16)
8196 DEFINE_THISCALL_WRAPPER(basic_istream_char_read
, 12)
8198 basic_istream_char
* __thiscall
basic_istream_char_read(basic_istream_char
*this, char *str
, streamsize count
)
8200 return basic_istream_char__Read_s(this, str
, -1, count
);
8203 /* ?_Readsome_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHPADIH@Z */
8204 /* ?_Readsome_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_K_J@Z */
8205 #if STREAMSIZE_BITS == 64
8206 DEFINE_THISCALL_WRAPPER(basic_istream_char__Readsome_s
, 20)
8208 DEFINE_THISCALL_WRAPPER(basic_istream_char__Readsome_s
, 16)
8210 streamsize __thiscall
basic_istream_char__Readsome_s(basic_istream_char
*this, char *str
, MSVCP_size_t size
, streamsize count
)
8212 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8213 IOSB_iostate state
= IOSTATE_goodbit
;
8215 TRACE("(%p %p %lu %s)\n", this, str
, size
, wine_dbgstr_longlong(count
));
8219 if(basic_istream_char_sentry_create(this, TRUE
)) {
8220 streamsize avail
= basic_streambuf_char_in_avail(basic_ios_char_rdbuf_get(base
));
8225 state
|= IOSTATE_eofbit
;
8227 basic_istream_char__Read_s(this, str
, size
, avail
);
8229 state
|= IOSTATE_failbit
;
8231 basic_istream_char_sentry_destroy(this);
8233 basic_ios_char_setstate(base
, state
);
8237 /* ?readsome@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHPADH@Z */
8238 /* ?readsome@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_J@Z */
8239 #if STREAMSIZE_BITS == 64
8240 DEFINE_THISCALL_WRAPPER(basic_istream_char_readsome
, 16)
8242 DEFINE_THISCALL_WRAPPER(basic_istream_char_readsome
, 12)
8244 streamsize __thiscall
basic_istream_char_readsome(basic_istream_char
*this, char *str
, streamsize count
)
8246 return basic_istream_char__Readsome_s(this, str
, count
, count
);
8249 /* ?putback@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@D@Z */
8250 /* ?putback@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@D@Z */
8251 DEFINE_THISCALL_WRAPPER(basic_istream_char_putback
, 8)
8252 basic_istream_char
* __thiscall
basic_istream_char_putback(basic_istream_char
*this, char ch
)
8254 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8255 IOSB_iostate state
= IOSTATE_goodbit
;
8257 TRACE("(%p %c)\n", this, ch
);
8261 if(basic_istream_char_sentry_create(this, TRUE
)) {
8262 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8264 if(!ios_base_good(&base
->base
))
8265 state
|= IOSTATE_failbit
;
8266 else if(!strbuf
|| basic_streambuf_char_sputbackc(strbuf
, ch
)==EOF
)
8267 state
|= IOSTATE_badbit
;
8269 basic_istream_char_sentry_destroy(this);
8271 basic_ios_char_setstate(base
, state
);
8275 /* ?unget@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ */
8276 /* ?unget@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@XZ */
8277 DEFINE_THISCALL_WRAPPER(basic_istream_char_unget
, 4)
8278 basic_istream_char
* __thiscall
basic_istream_char_unget(basic_istream_char
*this)
8280 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8281 IOSB_iostate state
= IOSTATE_goodbit
;
8283 TRACE("(%p)\n", this);
8287 if(basic_istream_char_sentry_create(this, TRUE
)) {
8288 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8290 if(!ios_base_good(&base
->base
))
8291 state
|= IOSTATE_failbit
;
8292 else if(!strbuf
|| basic_streambuf_char_sungetc(strbuf
)==EOF
)
8293 state
|= IOSTATE_badbit
;
8295 basic_istream_char_sentry_destroy(this);
8297 basic_ios_char_setstate(base
, state
);
8301 /* ?sync@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHXZ */
8302 /* ?sync@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAHXZ */
8303 DEFINE_THISCALL_WRAPPER(basic_istream_char_sync
, 4)
8304 int __thiscall
basic_istream_char_sync(basic_istream_char
*this)
8306 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8307 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8309 TRACE("(%p)\n", this);
8314 if(basic_istream_char_sentry_create(this, TRUE
)) {
8315 if(basic_streambuf_char_pubsync(strbuf
) != -1) {
8316 basic_istream_char_sentry_destroy(this);
8320 basic_istream_char_sentry_destroy(this);
8322 basic_ios_char_setstate(base
, IOSTATE_badbit
);
8326 /* ?tellg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@XZ */
8327 /* ?tellg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
8328 DEFINE_THISCALL_WRAPPER(basic_istream_char_tellg
, 8)
8329 fpos_int
* __thiscall
basic_istream_char_tellg(basic_istream_char
*this, fpos_int
*ret
)
8331 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8333 TRACE("(%p %p)\n", this, ret
);
8335 if(ios_base_fail(&base
->base
)) {
8342 basic_streambuf_char_pubseekoff(basic_ios_char_rdbuf_get(base
),
8343 ret
, 0, SEEKDIR_cur
, OPENMODE_in
);
8348 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@JW4seekdir@ios_base@2@@Z */
8349 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JW4seekdir@ios_base@2@@Z */
8350 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@JH@Z */
8351 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JH@Z */
8352 #if STREAMOFF_BITS == 64
8353 DEFINE_THISCALL_WRAPPER(basic_istream_char_seekg
, 16)
8355 DEFINE_THISCALL_WRAPPER(basic_istream_char_seekg
, 12)
8357 basic_istream_char
* __thiscall
basic_istream_char_seekg(basic_istream_char
*this, streamoff off
, int dir
)
8359 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8361 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(off
), dir
);
8363 if(!ios_base_fail(&base
->base
)) {
8364 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8367 basic_streambuf_char_pubseekoff(strbuf
, &ret
, off
, dir
, OPENMODE_in
);
8373 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
8374 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
8375 DEFINE_THISCALL_WRAPPER(basic_istream_char_seekg_fpos
, 28)
8376 basic_istream_char
* __thiscall
basic_istream_char_seekg_fpos(basic_istream_char
*this, fpos_int pos
)
8378 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8380 TRACE("(%p %s)\n", this, debugstr_fpos_int(&pos
));
8382 if(!ios_base_fail(&base
->base
)) {
8383 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8386 basic_streambuf_char_pubseekpos(strbuf
, &ret
, pos
, OPENMODE_in
);
8392 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAF@Z */
8393 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAF@Z */
8394 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_short
, 8)
8395 basic_istream_char
* __thiscall
basic_istream_char_read_short(basic_istream_char
*this, short *v
)
8397 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8398 int state
= IOSTATE_goodbit
;
8400 TRACE("(%p %p)\n", this, v
);
8402 if(basic_istream_char_sentry_create(this, FALSE
)) {
8403 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8404 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8405 istreambuf_iterator_char first
={0}, last
={0};
8408 first
.strbuf
= strbuf
;
8409 num_get_char_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, &tmp
);
8411 if(!(state
&IOSTATE_failbit
) && tmp
==(LONG
)((short)tmp
))
8414 state
|= IOSTATE_failbit
;
8416 basic_istream_char_sentry_destroy(this);
8418 basic_ios_char_setstate(base
, state
);
8422 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAG@Z */
8423 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAG@Z */
8424 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ushort
, 8)
8425 basic_istream_char
* __thiscall
basic_istream_char_read_ushort(basic_istream_char
*this, unsigned short *v
)
8427 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8428 int state
= IOSTATE_goodbit
;
8430 TRACE("(%p %p)\n", this, v
);
8432 if(basic_istream_char_sentry_create(this, FALSE
)) {
8433 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8434 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8435 istreambuf_iterator_char first
={0}, last
={0};
8437 first
.strbuf
= strbuf
;
8438 num_get_char_get_ushort(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8440 basic_istream_char_sentry_destroy(this);
8442 basic_ios_char_setstate(base
, state
);
8446 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAH@Z */
8447 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAH@Z */
8448 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_int
, 8)
8449 basic_istream_char
* __thiscall
basic_istream_char_read_int(basic_istream_char
*this, int *v
)
8451 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8452 int state
= IOSTATE_goodbit
;
8454 TRACE("(%p %p)\n", this, v
);
8456 if(basic_istream_char_sentry_create(this, FALSE
)) {
8457 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8458 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8459 istreambuf_iterator_char first
={0}, last
={0};
8461 first
.strbuf
= strbuf
;
8462 num_get_char_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8464 basic_istream_char_sentry_destroy(this);
8466 basic_ios_char_setstate(base
, state
);
8470 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAI@Z */
8471 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAI@Z */
8472 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_uint
, 8)
8473 basic_istream_char
* __thiscall
basic_istream_char_read_uint(basic_istream_char
*this, unsigned int *v
)
8475 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8476 int state
= IOSTATE_goodbit
;
8478 TRACE("(%p %p)\n", this, v
);
8480 if(basic_istream_char_sentry_create(this, FALSE
)) {
8481 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8482 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8483 istreambuf_iterator_char first
={0}, last
={0};
8485 first
.strbuf
= strbuf
;
8486 num_get_char_get_uint(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8488 basic_istream_char_sentry_destroy(this);
8490 basic_ios_char_setstate(base
, state
);
8494 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAJ@Z */
8495 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAJ@Z */
8496 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_long
, 8)
8497 basic_istream_char
* __thiscall
basic_istream_char_read_long(basic_istream_char
*this, LONG
*v
)
8499 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8500 int state
= IOSTATE_goodbit
;
8502 TRACE("(%p %p)\n", this, v
);
8504 if(basic_istream_char_sentry_create(this, FALSE
)) {
8505 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8506 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8507 istreambuf_iterator_char first
={0}, last
={0};
8509 first
.strbuf
= strbuf
;
8510 num_get_char_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8512 basic_istream_char_sentry_destroy(this);
8514 basic_ios_char_setstate(base
, state
);
8518 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAK@Z */
8519 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAK@Z */
8520 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ulong
, 8)
8521 basic_istream_char
* __thiscall
basic_istream_char_read_ulong(basic_istream_char
*this, ULONG
*v
)
8523 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8524 int state
= IOSTATE_goodbit
;
8526 TRACE("(%p %p)\n", this, v
);
8528 if(basic_istream_char_sentry_create(this, FALSE
)) {
8529 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8530 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8531 istreambuf_iterator_char first
={0}, last
={0};
8533 first
.strbuf
= strbuf
;
8534 num_get_char_get_ulong(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8536 basic_istream_char_sentry_destroy(this);
8538 basic_ios_char_setstate(base
, state
);
8542 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAM@Z */
8543 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAM@Z */
8544 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_float
, 8)
8545 basic_istream_char
* __thiscall
basic_istream_char_read_float(basic_istream_char
*this, float *v
)
8547 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8548 int state
= IOSTATE_goodbit
;
8550 TRACE("(%p %p)\n", this, v
);
8552 if(basic_istream_char_sentry_create(this, FALSE
)) {
8553 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8554 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8555 istreambuf_iterator_char first
={0}, last
={0};
8557 first
.strbuf
= strbuf
;
8558 num_get_char_get_float(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8560 basic_istream_char_sentry_destroy(this);
8562 basic_ios_char_setstate(base
, state
);
8566 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAN@Z */
8567 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAN@Z */
8568 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_double
, 8)
8569 basic_istream_char
* __thiscall
basic_istream_char_read_double(basic_istream_char
*this, double *v
)
8571 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8572 int state
= IOSTATE_goodbit
;
8574 TRACE("(%p %p)\n", this, v
);
8576 if(basic_istream_char_sentry_create(this, FALSE
)) {
8577 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8578 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8579 istreambuf_iterator_char first
={0}, last
={0};
8581 first
.strbuf
= strbuf
;
8582 num_get_char_get_double(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8584 basic_istream_char_sentry_destroy(this);
8586 basic_ios_char_setstate(base
, state
);
8590 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAO@Z */
8591 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAO@Z */
8592 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ldouble
, 8)
8593 basic_istream_char
* __thiscall
basic_istream_char_read_ldouble(basic_istream_char
*this, double *v
)
8595 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8596 int state
= IOSTATE_goodbit
;
8598 TRACE("(%p %p)\n", this, v
);
8600 if(basic_istream_char_sentry_create(this, FALSE
)) {
8601 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8602 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8603 istreambuf_iterator_char first
={0}, last
={0};
8605 first
.strbuf
= strbuf
;
8606 num_get_char_get_ldouble(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8608 basic_istream_char_sentry_destroy(this);
8610 basic_ios_char_setstate(base
, state
);
8614 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAPAX@Z */
8615 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAPEAX@Z */
8616 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ptr
, 8)
8617 basic_istream_char
* __thiscall
basic_istream_char_read_ptr(basic_istream_char
*this, void **v
)
8619 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8620 int state
= IOSTATE_goodbit
;
8622 TRACE("(%p %p)\n", this, v
);
8624 if(basic_istream_char_sentry_create(this, FALSE
)) {
8625 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8626 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8627 istreambuf_iterator_char first
={0}, last
={0};
8629 first
.strbuf
= strbuf
;
8630 num_get_char_get_void(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8632 basic_istream_char_sentry_destroy(this);
8634 basic_ios_char_setstate(base
, state
);
8638 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AA_J@Z */
8639 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEA_J@Z */
8640 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_int64
, 8)
8641 basic_istream_char
* __thiscall
basic_istream_char_read_int64(basic_istream_char
*this, __int64
*v
)
8643 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8644 int state
= IOSTATE_goodbit
;
8646 TRACE("(%p %p)\n", this, v
);
8648 if(basic_istream_char_sentry_create(this, FALSE
)) {
8649 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8650 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8651 istreambuf_iterator_char first
={0}, last
={0};
8653 first
.strbuf
= strbuf
;
8654 num_get_char_get_int64(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8656 basic_istream_char_sentry_destroy(this);
8658 basic_ios_char_setstate(base
, state
);
8662 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AA_K@Z */
8663 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEA_K@Z */
8664 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_uint64
, 8)
8665 basic_istream_char
* __thiscall
basic_istream_char_read_uint64(basic_istream_char
*this, unsigned __int64
*v
)
8667 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8668 int state
= IOSTATE_goodbit
;
8670 TRACE("(%p %p)\n", this, v
);
8672 if(basic_istream_char_sentry_create(this, FALSE
)) {
8673 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8674 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8675 istreambuf_iterator_char first
={0}, last
={0};
8677 first
.strbuf
= strbuf
;
8678 num_get_char_get_uint64(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8680 basic_istream_char_sentry_destroy(this);
8682 basic_ios_char_setstate(base
, state
);
8686 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AA_N@Z */
8687 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEA_N@Z */
8688 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_bool
, 8)
8689 basic_istream_char
* __thiscall
basic_istream_char_read_bool(basic_istream_char
*this, MSVCP_bool
*v
)
8691 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8692 int state
= IOSTATE_goodbit
;
8694 TRACE("(%p %p)\n", this, v
);
8696 if(basic_istream_char_sentry_create(this, FALSE
)) {
8697 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8698 const num_get
*numget
= num_get_char_use_facet(IOS_LOCALE(strbuf
));
8699 istreambuf_iterator_char first
={0}, last
={0};
8701 first
.strbuf
= strbuf
;
8702 num_get_char_get_bool(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8704 basic_istream_char_sentry_destroy(this);
8706 basic_ios_char_setstate(base
, state
);
8710 /* ??$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 */
8711 /* ??$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 */
8712 basic_istream_char
* __cdecl
basic_istream_char_getline_bstr_delim(
8713 basic_istream_char
*istream
, basic_string_char
*str
, char delim
)
8715 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istream
);
8716 IOSB_iostate state
= IOSTATE_goodbit
;
8717 int c
= (unsigned char)delim
;
8719 TRACE("(%p %p %s)\n", istream
, str
, debugstr_an(&delim
, 1));
8721 MSVCP_basic_string_char_clear(str
);
8722 if(basic_istream_char_sentry_create(istream
, TRUE
)) {
8723 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
8725 c
= basic_streambuf_char_sgetc(strbuf
);
8726 for(; c
!=(unsigned char)delim
&& c
!=EOF
; c
= basic_streambuf_char_snextc(strbuf
))
8727 MSVCP_basic_string_char_append_ch(str
, c
);
8728 if(c
==EOF
) state
|= IOSTATE_eofbit
;
8729 else if(c
==(unsigned char)delim
) basic_streambuf_char_sbumpc(strbuf
);
8731 if(!MSVCP_basic_string_char_length(str
) && c
!=(unsigned char)delim
) state
|= IOSTATE_failbit
;
8733 basic_istream_char_sentry_destroy(istream
);
8735 basic_ios_char_setstate(basic_istream_char_get_basic_ios(istream
), state
);
8739 /* ??$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 */
8740 /* ??$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 */
8741 basic_istream_char
* __cdecl
basic_istream_char_getline_bstr(
8742 basic_istream_char
*istream
, basic_string_char
*str
)
8744 return basic_istream_char_getline_bstr_delim(istream
, str
, '\n');
8747 /* ??$?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 */
8748 /* ??$?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 */
8749 basic_istream_char
* __cdecl
basic_istream_char_read_bstr(
8750 basic_istream_char
*istream
, basic_string_char
*str
)
8752 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istream
);
8753 IOSB_iostate state
= IOSTATE_failbit
;
8756 TRACE("(%p %p)\n", istream
, str
);
8758 if(basic_istream_char_sentry_create(istream
, FALSE
)) {
8759 const ctype_char
*ctype
= ctype_char_use_facet(IOS_LOCALE(base
->strbuf
));
8760 MSVCP_size_t count
= ios_base_width_get(&base
->base
);
8765 MSVCP_basic_string_char_clear(str
);
8767 for(c
= basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base
));
8768 c
!=EOF
&& !ctype_char_is_ch(ctype
, _SPACE
|_BLANK
, c
) && count
>0;
8769 c
= basic_streambuf_char_snextc(basic_ios_char_rdbuf_get(base
)), count
--) {
8770 state
= IOSTATE_goodbit
;
8771 MSVCP_basic_string_char_append_ch(str
, c
);
8774 basic_istream_char_sentry_destroy(istream
);
8776 ios_base_width_set(&base
->base
, 0);
8777 basic_ios_char_setstate(base
, state
| (c
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
8781 /* ??$?5DU?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@PAD@Z */
8782 /* ??$?5DU?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@PEAD@Z */
8783 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@PAC@Z */
8784 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@PEAC@Z */
8785 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@PAE@Z */
8786 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@PEAE@Z */
8787 basic_istream_char
* __cdecl
basic_istream_char_read_str(basic_istream_char
*istream
, char *str
)
8789 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istream
);
8790 IOSB_iostate state
= IOSTATE_failbit
;
8793 TRACE("(%p %p)\n", istream
, str
);
8795 if(basic_istream_char_sentry_create(istream
, FALSE
)) {
8796 const ctype_char
*ctype
= ctype_char_use_facet(IOS_LOCALE(base
->strbuf
));
8797 MSVCP_size_t count
= ios_base_width_get(&base
->base
)-1;
8799 for(c
= basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base
));
8800 c
!=EOF
&& !ctype_char_is_ch(ctype
, _SPACE
|_BLANK
, c
) && count
>0;
8801 c
= basic_streambuf_char_snextc(basic_ios_char_rdbuf_get(base
)), count
--) {
8802 state
= IOSTATE_goodbit
;
8806 basic_istream_char_sentry_destroy(istream
);
8809 ios_base_width_set(&base
->base
, 0);
8810 basic_ios_char_setstate(base
, state
| (c
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
8814 /* ??$?5DU?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAD@Z */
8815 /* ??$?5DU?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAD@Z */
8816 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAC@Z */
8817 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAC@Z */
8818 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAE@Z */
8819 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAE@Z */
8820 basic_istream_char
* __cdecl
basic_istream_char_read_ch(basic_istream_char
*istream
, char *ch
)
8822 IOSB_iostate state
= IOSTATE_failbit
;
8825 TRACE("(%p %p)\n", istream
, ch
);
8827 if(basic_istream_char_sentry_create(istream
, FALSE
)) {
8828 c
= basic_streambuf_char_sbumpc(basic_ios_char_rdbuf_get(
8829 basic_istream_char_get_basic_ios(istream
)));
8831 state
= IOSTATE_goodbit
;
8835 basic_istream_char_sentry_destroy(istream
);
8837 basic_ios_char_setstate(basic_istream_char_get_basic_ios(istream
),
8838 state
| (c
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
8842 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
8843 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
8844 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_streambuf
, 8)
8845 basic_istream_char
* __thiscall
basic_istream_char_read_streambuf(
8846 basic_istream_char
*this, basic_streambuf_char
*streambuf
)
8848 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8849 IOSB_iostate state
= IOSTATE_failbit
;
8852 TRACE("(%p %p)\n", this, streambuf
);
8854 if(basic_istream_char_sentry_create(this, FALSE
)) {
8855 for(c
= basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base
)); c
!=EOF
;
8856 c
= basic_streambuf_char_snextc(basic_ios_char_rdbuf_get(base
))) {
8857 state
= IOSTATE_goodbit
;
8858 if(basic_streambuf_char_sputc(streambuf
, c
) == EOF
)
8862 basic_istream_char_sentry_destroy(this);
8864 basic_ios_char_setstate(base
, state
| (c
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
8868 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
8869 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
8870 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_func
, 8)
8871 basic_istream_char
* __thiscall
basic_istream_char_read_func(basic_istream_char
*this,
8872 basic_istream_char
* (__cdecl
*pfunc
)(basic_istream_char
*))
8874 TRACE("(%p %p)\n", this, pfunc
);
8879 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@DU?$char_traits@D@std@@@1@AAV21@@Z@Z */
8880 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@DU?$char_traits@D@std@@@1@AEAV21@@Z@Z */
8881 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_func_basic_ios
, 8)
8882 basic_istream_char
* __thiscall
basic_istream_char_read_func_basic_ios(basic_istream_char
*this,
8883 basic_ios_char
* (__cdecl
*pfunc
)(basic_ios_char
*))
8885 TRACE("(%p %p)\n", this, pfunc
);
8886 pfunc(basic_istream_char_get_basic_ios(this));
8890 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
8891 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
8892 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_func_ios_base
, 8)
8893 basic_istream_char
* __thiscall
basic_istream_char_read_func_ios_base(basic_istream_char
*this,
8894 ios_base
* (__cdecl
*pfunc
)(ios_base
*))
8896 TRACE("(%p %p)\n", this, pfunc
);
8897 pfunc(&basic_istream_char_get_basic_ios(this)->base
);
8901 /* ??$?5MDU?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAV?$complex@M@0@@Z */
8902 /* ??$?5MDU?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAV?$complex@M@0@@Z */
8903 basic_istream_char
* __cdecl
basic_istream_char_read_complex_float(basic_istream_char
*this, complex_float
*v
)
8906 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8908 TRACE("(%p %p)\n", this, v
);
8910 ws_basic_istream_char(this);
8911 if(basic_istream_char_peek(this) == '(') {
8913 basic_istream_char_get(this);
8914 basic_istream_char_read_float(this, &r
);
8916 if(ios_base_fail(&base
->base
))
8919 ws_basic_istream_char(this);
8920 c
= basic_istream_char_peek(this);
8923 basic_istream_char_get(this);
8924 basic_istream_char_read_float(this, &i
);
8926 if(ios_base_fail(&base
->base
))
8929 ws_basic_istream_char(this);
8930 c
= basic_istream_char_peek(this);
8931 if(c
== ')') { /* supported format: (real, imag) */
8932 basic_istream_char_get(this);
8936 basic_ios_char_setstate(base
, IOSTATE_failbit
);
8939 }else if(c
== ')') { /* supported format: (real) */
8940 basic_istream_char_get(this);
8944 basic_ios_char_setstate(base
, IOSTATE_failbit
);
8947 }else { /* supported format: real */
8948 basic_istream_char_read_float(this, &r
);
8950 if(ios_base_fail(&base
->base
))
8960 /* ??$?5NDU?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAV?$complex@N@0@@Z */
8961 /* ??$?5DU?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAV?$complex@N@0@@Z */
8962 basic_istream_char
* __cdecl
basic_istream_char_read_complex_double(basic_istream_char
*this, complex_double
*v
)
8965 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
8967 TRACE("(%p %p)\n", this, v
);
8969 ws_basic_istream_char(this);
8970 if(basic_istream_char_peek(this) == '(') {
8972 basic_istream_char_get(this);
8973 basic_istream_char_read_double(this, &r
);
8975 if(ios_base_fail(&base
->base
))
8978 ws_basic_istream_char(this);
8979 c
= basic_istream_char_peek(this);
8982 basic_istream_char_get(this);
8983 basic_istream_char_read_double(this, &i
);
8985 if(ios_base_fail(&base
->base
))
8988 ws_basic_istream_char(this);
8989 c
= basic_istream_char_peek(this);
8990 if(c
== ')') { /* supported format: (real, imag) */
8991 basic_istream_char_get(this);
8995 basic_ios_char_setstate(base
, IOSTATE_failbit
);
8998 }else if(c
== ')') { /* supported format: (real) */
8999 basic_istream_char_get(this);
9003 basic_ios_char_setstate(base
, IOSTATE_failbit
);
9006 }else { /* supported format: real */
9007 basic_istream_char_read_double(this, &r
);
9009 if(ios_base_fail(&base
->base
))
9019 /* ??$?5ODU?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAV?$complex@O@0@@Z */
9020 /* ??$?5ODU?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAV?$complex@O@0@@Z */
9021 basic_istream_char
* __cdecl
basic_istream_char_read_complex_ldouble(basic_istream_char
*this, complex_double
*v
)
9024 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
9026 TRACE("(%p %p)\n", this, v
);
9028 ws_basic_istream_char(this);
9029 if(basic_istream_char_peek(this) == '(') {
9031 basic_istream_char_get(this);
9032 basic_istream_char_read_ldouble(this, &r
);
9034 if(ios_base_fail(&base
->base
))
9037 ws_basic_istream_char(this);
9038 c
= basic_istream_char_peek(this);
9041 basic_istream_char_get(this);
9042 basic_istream_char_read_ldouble(this, &i
);
9044 if(ios_base_fail(&base
->base
))
9047 ws_basic_istream_char(this);
9048 c
= basic_istream_char_peek(this);
9049 if(c
== ')') { /* supported format: (real, imag) */
9050 basic_istream_char_get(this);
9054 basic_ios_char_setstate(base
, IOSTATE_failbit
);
9057 }else if(c
== ')') { /* supported format: (real) */
9058 basic_istream_char_get(this);
9062 basic_ios_char_setstate(base
, IOSTATE_failbit
);
9065 }else { /* supported format: real */
9066 basic_istream_char_read_ldouble(this, &r
);
9068 if(ios_base_fail(&base
->base
))
9078 /* ?swap@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEXAAV12@@Z */
9079 /* ?swap@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAXAEAV12@@Z */
9080 DEFINE_THISCALL_WRAPPER(basic_istream_char_swap
, 8)
9081 void __thiscall
basic_istream_char_swap(basic_istream_char
*this, basic_istream_char
*r
)
9083 TRACE("(%p %p)\n", this, r
);
9088 basic_ios_char_swap(basic_istream_char_get_basic_ios(this),
9089 basic_istream_char_get_basic_ios(r
));
9090 this->count
^= r
->count
;
9091 r
->count
^= this->count
;
9092 this->count
^= r
->count
;
9095 /* Caution: basic_istream uses virtual inheritance. */
9096 static inline basic_ios_wchar
* basic_istream_wchar_get_basic_ios(basic_istream_wchar
*this)
9098 return (basic_ios_wchar
*)((char*)this+this->vbtable
[1]);
9101 static inline basic_ios_wchar
* basic_istream_wchar_to_basic_ios(basic_istream_wchar
*ptr
)
9103 return (basic_ios_wchar
*)((char*)ptr
+basic_istream_wchar_vbtable
[1]);
9106 static inline basic_istream_wchar
* basic_istream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
9108 return (basic_istream_wchar
*)((char*)ptr
-basic_istream_wchar_vbtable
[1]);
9111 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N1@Z */
9112 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N1@Z */
9113 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ctor_init
, 20)
9114 basic_istream_wchar
* __thiscall
basic_istream_wchar_ctor_init(basic_istream_wchar
*this,
9115 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool noinit
, MSVCP_bool virt_init
)
9117 basic_ios_wchar
*base
;
9119 TRACE("(%p %p %d %d %d)\n", this, strbuf
, isstd
, noinit
, virt_init
);
9122 this->vbtable
= basic_istream_wchar_vbtable
;
9123 base
= basic_istream_wchar_get_basic_ios(this);
9124 basic_ios_wchar_ctor(base
);
9126 base
= basic_istream_wchar_get_basic_ios(this);
9129 base
->base
.vtable
= &MSVCP_basic_istream_wchar_vtable
;
9132 basic_ios_wchar_init(base
, strbuf
, isstd
);
9136 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N1@Z */
9137 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N1@Z */
9138 DEFINE_THISCALL_WRAPPER(basic_istream_short_ctor_init
, 20)
9139 basic_istream_wchar
* __thiscall
basic_istream_short_ctor_init(basic_istream_wchar
*this,
9140 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool noinit
, MSVCP_bool virt_init
)
9142 basic_istream_wchar_ctor_init(this, strbuf
, isstd
, noinit
, virt_init
);
9143 basic_istream_wchar_get_basic_ios(this)->base
.vtable
= &MSVCP_basic_istream_short_vtable
;
9147 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N@Z */
9148 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N@Z */
9149 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ctor
, 16)
9150 basic_istream_wchar
* __thiscall
basic_istream_wchar_ctor(basic_istream_wchar
*this,
9151 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
9153 return basic_istream_wchar_ctor_init(this, strbuf
, isstd
, FALSE
, virt_init
);
9156 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N@Z */
9157 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N@Z */
9158 DEFINE_THISCALL_WRAPPER(basic_istream_short_ctor
, 16)
9159 basic_istream_wchar
* __thiscall
basic_istream_short_ctor(basic_istream_wchar
*this,
9160 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
9162 return basic_istream_short_ctor_init(this, strbuf
, isstd
, FALSE
, virt_init
);
9165 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE@W4_Uninitialized@1@@Z */
9166 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
9167 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ctor_uninitialized
, 12)
9168 basic_istream_wchar
* __thiscall
basic_istream_wchar_ctor_uninitialized(
9169 basic_istream_wchar
*this, int uninitialized
, MSVCP_bool virt_init
)
9171 basic_ios_wchar
*base
;
9173 TRACE("(%p %d %d)\n", this, uninitialized
, virt_init
);
9176 this->vbtable
= basic_istream_wchar_vbtable
;
9177 base
= basic_istream_wchar_get_basic_ios(this);
9178 basic_ios_wchar_ctor(base
);
9180 base
= basic_istream_wchar_get_basic_ios(this);
9183 base
->base
.vtable
= &MSVCP_basic_istream_wchar_vtable
;
9184 ios_base_Addstd(&base
->base
);
9188 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QAE@W4_Uninitialized@1@@Z */
9189 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
9190 DEFINE_THISCALL_WRAPPER(basic_istream_short_ctor_uninitialized
, 12)
9191 basic_istream_wchar
* __thiscall
basic_istream_short_ctor_uninitialized(
9192 basic_istream_wchar
*this, int uninitialized
, MSVCP_bool virt_init
)
9194 basic_istream_wchar_ctor_uninitialized(this, uninitialized
, virt_init
);
9195 basic_istream_wchar_get_basic_ios(this)->base
.vtable
= &MSVCP_basic_istream_short_vtable
;
9199 /* ??1?$basic_istream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
9200 /* ??1?$basic_istream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
9201 /* ??1?$basic_istream@GU?$char_traits@G@std@@@std@@UAE@XZ */
9202 /* ??1?$basic_istream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
9203 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_dtor
, 4)
9204 void __thiscall
basic_istream_wchar_dtor(basic_ios_wchar
*base
)
9206 basic_istream_wchar
*this = basic_istream_wchar_from_basic_ios(base
);
9208 /* don't destroy virtual base here */
9209 TRACE("(%p)\n", this);
9212 /* ??_D?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
9213 /* ??_D?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
9214 /* ??_D?$basic_istream@GU?$char_traits@G@std@@@std@@QAEXXZ */
9215 /* ??_D?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
9216 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_vbase_dtor
, 4)
9217 void __thiscall
basic_istream_wchar_vbase_dtor(basic_istream_wchar
*this)
9219 TRACE("(%p)\n", this);
9220 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(this));
9221 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(this));
9224 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_vector_dtor
, 8)
9225 basic_istream_wchar
* __thiscall
basic_istream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
9227 basic_istream_wchar
*this = basic_istream_wchar_from_basic_ios(base
);
9229 TRACE("(%p %x)\n", this, flags
);
9232 /* we have an array, with the number of elements stored before the first object */
9233 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
9235 for(i
=*ptr
-1; i
>=0; i
--)
9236 basic_istream_wchar_vbase_dtor(this+i
);
9237 MSVCRT_operator_delete(ptr
);
9239 basic_istream_wchar_vbase_dtor(this);
9241 MSVCRT_operator_delete(this);
9247 /* ?_Ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE_N_N@Z */
9248 /* ?_Ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_N_N@Z */
9249 /* ?_Ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QAE_N_N@Z */
9250 /* ?_Ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_N_N@Z */
9251 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Ipfx
, 8)
9252 MSVCP_bool __thiscall
basic_istream_wchar__Ipfx(basic_istream_wchar
*this, MSVCP_bool noskip
)
9254 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9256 TRACE("(%p %d)\n", this, noskip
);
9258 if(ios_base_good(&base
->base
)) {
9259 if(basic_ios_wchar_tie_get(base
))
9260 basic_ostream_wchar_flush(basic_ios_wchar_tie_get(base
));
9262 if(!noskip
&& (ios_base_flags_get(&base
->base
) & FMTFLAG_skipws
)) {
9263 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9264 const ctype_wchar
*ctype
= ctype_wchar_use_facet(IOS_LOCALE(base
->strbuf
));
9267 for(ch
= basic_streambuf_wchar_sgetc(strbuf
); ;
9268 ch
= basic_streambuf_wchar_snextc(strbuf
)) {
9269 if(ch
==WEOF
|| !ctype_wchar_is_ch(ctype
, _SPACE
|_BLANK
, ch
))
9275 if(!ios_base_good(&base
->base
)) {
9276 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
9282 /* ?ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE_N_N@Z */
9283 /* ?ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_N_N@Z */
9284 /* ?ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QAE_N_N@Z */
9285 /* ?ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_N_N@Z */
9286 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ipfx
, 8)
9287 MSVCP_bool __thiscall
basic_istream_wchar_ipfx(basic_istream_wchar
*this, MSVCP_bool noskip
)
9289 return basic_istream_wchar__Ipfx(this, noskip
);
9292 /* ?isfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
9293 /* ?isfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
9294 /* ?isfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEXXZ */
9295 /* ?isfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
9296 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_isfx
, 4)
9297 void __thiscall
basic_istream_wchar_isfx(basic_istream_wchar
*this)
9299 TRACE("(%p)\n", this);
9302 static BOOL
basic_istream_wchar_sentry_create(basic_istream_wchar
*istr
, MSVCP_bool noskip
)
9304 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istr
);
9306 if(basic_ios_wchar_rdbuf_get(base
))
9307 basic_streambuf_wchar__Lock(base
->strbuf
);
9309 return basic_istream_wchar_ipfx(istr
, noskip
);
9312 static void basic_istream_wchar_sentry_destroy(basic_istream_wchar
*istr
)
9314 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istr
);
9316 if(basic_ios_wchar_rdbuf_get(base
))
9317 basic_streambuf_wchar__Unlock(base
->strbuf
);
9320 /* ?gcount@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QBEHXZ */
9321 /* ?gcount@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEBA_JXZ */
9322 /* ?gcount@?$basic_istream@GU?$char_traits@G@std@@@std@@QBEHXZ */
9323 /* ?gcount@?$basic_istream@GU?$char_traits@G@std@@@std@@QEBA_JXZ */
9324 /* ?gcount@?$basic_istream@GU?$char_traits@G@std@@@std@@QBA_JXZ */
9325 /* ?gcount@?$basic_istream@GU?$char_traits@G@std@@@std@@QBE_JXZ */
9326 /* ?gcount@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QBA_JXZ */
9327 /* ?gcount@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QBE_JXZ */
9328 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_gcount
, 4)
9329 streamsize __thiscall
basic_istream_wchar_gcount(const basic_istream_wchar
*this)
9331 TRACE("(%p)\n", this);
9335 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
9336 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
9337 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEGXZ */
9338 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAGXZ */
9339 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get
, 4)
9340 unsigned short __thiscall
basic_istream_wchar_get(basic_istream_wchar
*this)
9342 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9345 TRACE("(%p)\n", this);
9349 if(!basic_istream_wchar_sentry_create(this, TRUE
)) {
9350 basic_istream_wchar_sentry_destroy(this);
9354 ret
= basic_streambuf_wchar_sbumpc(basic_ios_wchar_rdbuf_get(base
));
9355 basic_istream_wchar_sentry_destroy(this);
9357 basic_ios_wchar_setstate(base
, IOSTATE_eofbit
|IOSTATE_failbit
);
9364 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@AA_W@Z */
9365 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEA_W@Z */
9366 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@AAG@Z */
9367 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEAG@Z */
9368 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_ch
, 8)
9369 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_ch(basic_istream_wchar
*this, wchar_t *ch
)
9373 TRACE("(%p %p)\n", this, ch
);
9375 ret
= basic_istream_wchar_get(this);
9381 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH_W@Z */
9382 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J_W@Z */
9383 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGHG@Z */
9384 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_JG@Z */
9385 #if STREAMSIZE_BITS == 64
9386 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str_delim
, 20)
9388 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str_delim
, 16)
9390 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_str_delim(basic_istream_wchar
*this, wchar_t *str
, streamsize count
, wchar_t delim
)
9392 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9393 unsigned short ch
= delim
;
9395 TRACE("(%p %p %s %s)\n", this, str
, wine_dbgstr_longlong(count
), debugstr_wn(&delim
, 1));
9399 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9400 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9402 for(ch
= basic_streambuf_wchar_sgetc(strbuf
); count
>1;
9403 ch
= basic_streambuf_wchar_snextc(strbuf
)) {
9404 if(ch
==WEOF
|| ch
==delim
)
9412 basic_istream_wchar_sentry_destroy(this);
9414 basic_ios_wchar_setstate(base
, (!this->count
? IOSTATE_failbit
: IOSTATE_goodbit
) |
9415 (ch
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
9421 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH@Z */
9422 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J@Z */
9423 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGH@Z */
9424 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_J@Z */
9425 #if STREAMSIZE_BITS == 64
9426 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str
, 16)
9428 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str
, 12)
9430 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_str(basic_istream_wchar
*this, wchar_t *str
, streamsize count
)
9432 return basic_istream_wchar_get_str_delim(this, str
, count
, '\n');
9435 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@AAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_W@Z */
9436 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_W@Z */
9437 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@AAV?$basic_streambuf@GU?$char_traits@G@std@@@2@G@Z */
9438 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@G@Z */
9439 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_streambuf_delim
, 12)
9440 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_streambuf_delim(basic_istream_wchar
*this, basic_streambuf_wchar
*strbuf
, wchar_t delim
)
9442 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9443 unsigned short ch
= delim
;
9445 TRACE("(%p %p %s)\n", this, strbuf
, debugstr_wn(&delim
, 1));
9449 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9450 basic_streambuf_wchar
*strbuf_read
= basic_ios_wchar_rdbuf_get(base
);
9452 for(ch
= basic_streambuf_wchar_sgetc(strbuf_read
); ;
9453 ch
= basic_streambuf_wchar_snextc(strbuf_read
)) {
9454 if(ch
==WEOF
|| ch
==delim
)
9457 if(basic_streambuf_wchar_sputc(strbuf
, ch
) == WEOF
)
9462 basic_istream_wchar_sentry_destroy(this);
9464 basic_ios_wchar_setstate(base
, (!this->count
? IOSTATE_failbit
: IOSTATE_goodbit
) |
9465 (ch
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
9469 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@AAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@@Z */
9470 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@@Z */
9471 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@AAV?$basic_streambuf@GU?$char_traits@G@std@@@2@@Z */
9472 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@@Z */
9473 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_streambuf
, 8)
9474 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_streambuf(basic_istream_wchar
*this, basic_streambuf_wchar
*strbuf
)
9476 return basic_istream_wchar_get_streambuf_delim(this, strbuf
, '\n');
9479 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH_W@Z */
9480 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J_W@Z */
9481 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGHG@Z */
9482 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_JG@Z */
9483 #if STREAMSIZE_BITS == 64
9484 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline_delim
, 20)
9486 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline_delim
, 16)
9488 basic_istream_wchar
* __thiscall
basic_istream_wchar_getline_delim(basic_istream_wchar
*this, wchar_t *str
, streamsize count
, wchar_t delim
)
9490 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9491 unsigned short ch
= delim
;
9493 TRACE("(%p %p %s %s)\n", this, str
, wine_dbgstr_longlong(count
), debugstr_wn(&delim
, 1));
9497 if(basic_istream_wchar_sentry_create(this, TRUE
) && count
>0) {
9498 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9501 ch
= basic_streambuf_wchar_sbumpc(strbuf
);
9503 if(ch
==WEOF
|| ch
==delim
)
9513 else if(ch
!= WEOF
) {
9514 ch
= basic_streambuf_wchar_sgetc(strbuf
);
9517 basic_streambuf_wchar__Gninc(strbuf
);
9522 basic_istream_wchar_sentry_destroy(this);
9524 basic_ios_wchar_setstate(base
, (ch
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
) |
9525 (!this->count
|| (ch
!=delim
&& ch
!=WEOF
) ? IOSTATE_failbit
: IOSTATE_goodbit
));
9531 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH@Z */
9532 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J@Z */
9533 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGH@Z */
9534 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_J@Z */
9535 #if STREAMSIZE_BITS == 64
9536 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline
, 16)
9538 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline
, 12)
9540 basic_istream_wchar
* __thiscall
basic_istream_wchar_getline(basic_istream_wchar
*this, wchar_t *str
, streamsize count
)
9542 return basic_istream_wchar_getline_delim(this, str
, count
, '\n');
9545 /* ?ignore@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@HG@Z */
9546 /* ?ignore@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_JG@Z */
9547 /* ?ignore@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@HG@Z */
9548 /* ?ignore@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JG@Z */
9549 #if STREAMSIZE_BITS == 64
9550 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ignore
, 16)
9552 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ignore
, 12)
9554 basic_istream_wchar
* __thiscall
basic_istream_wchar_ignore(basic_istream_wchar
*this, streamsize count
, unsigned short delim
)
9556 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9557 unsigned short ch
= delim
;
9560 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(count
), delim
);
9564 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9565 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9566 state
= IOSTATE_goodbit
;
9569 ch
= basic_streambuf_wchar_sbumpc(strbuf
);
9572 state
= IOSTATE_eofbit
;
9580 if(count
!= INT_MAX
)
9584 state
= IOSTATE_failbit
;
9585 basic_istream_wchar_sentry_destroy(this);
9587 basic_ios_wchar_setstate(base
, state
);
9591 /* ?ws@std@@YAAAV?$basic_istream@_WU?$char_traits@_W@std@@@1@AAV21@@Z */
9592 /* ?ws@std@@YAAEAV?$basic_istream@_WU?$char_traits@_W@std@@@1@AEAV21@@Z */
9593 /* ?ws@std@@YAAAV?$basic_istream@GU?$char_traits@G@std@@@1@AAV21@@Z */
9594 /* ?ws@std@@YAAEAV?$basic_istream@GU?$char_traits@G@std@@@1@AEAV21@@Z */
9595 basic_istream_wchar
* __cdecl
ws_basic_istream_wchar(basic_istream_wchar
*istream
)
9597 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istream
);
9598 unsigned short ch
= '\n';
9600 TRACE("(%p)\n", istream
);
9602 if(basic_istream_wchar_sentry_create(istream
, TRUE
)) {
9603 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9604 const ctype_wchar
*ctype
= ctype_wchar_use_facet(IOS_LOCALE(strbuf
));
9606 for(ch
= basic_streambuf_wchar_sgetc(strbuf
); ctype_wchar_is_ch(ctype
, _SPACE
, ch
);
9607 ch
= basic_streambuf_wchar_snextc(strbuf
)) {
9612 basic_istream_wchar_sentry_destroy(istream
);
9615 basic_ios_wchar_setstate(base
, IOSTATE_eofbit
);
9619 /* ?peek@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
9620 /* ?peek@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
9621 /* ?peek@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEGXZ */
9622 /* ?peek@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAGXZ */
9623 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_peek
, 4)
9624 unsigned short __thiscall
basic_istream_wchar_peek(basic_istream_wchar
*this)
9626 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9627 unsigned short ret
= WEOF
;
9629 TRACE("(%p)\n", this);
9633 if(basic_istream_wchar_sentry_create(this, TRUE
))
9634 ret
= basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base
));
9635 basic_istream_wchar_sentry_destroy(this);
9638 basic_ios_wchar_setstate(base
, IOSTATE_eofbit
);
9643 /* ?_Read_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WIH@Z */
9644 /* ?_Read_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_K_J@Z */
9645 /* ?_Read_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGIH@Z */
9646 /* ?_Read_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_K_J@Z */
9647 #if STREAMSIZE_BITS == 64
9648 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Read_s
, 20)
9650 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Read_s
, 16)
9652 basic_istream_wchar
* __thiscall
basic_istream_wchar__Read_s(basic_istream_wchar
*this, wchar_t *str
, MSVCP_size_t size
, streamsize count
)
9654 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9655 IOSB_iostate state
= IOSTATE_goodbit
;
9657 TRACE("(%p %p %lu %s)\n", this, str
, size
, wine_dbgstr_longlong(count
));
9659 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9660 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9662 this->count
= basic_streambuf_wchar__Sgetn_s(strbuf
, str
, size
, count
);
9663 if(this->count
!= count
)
9664 state
|= IOSTATE_failbit
| IOSTATE_eofbit
;
9668 basic_istream_wchar_sentry_destroy(this);
9670 basic_ios_wchar_setstate(base
, state
);
9674 /* ?read@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH@Z */
9675 /* ?read@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J@Z */
9676 /* ?read@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGH@Z */
9677 /* ?read@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_J@Z */
9678 #if STREAMSIZE_BITS == 64
9679 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read
, 16)
9681 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read
, 12)
9683 basic_istream_wchar
* __thiscall
basic_istream_wchar_read(basic_istream_wchar
*this, wchar_t *str
, streamsize count
)
9685 return basic_istream_wchar__Read_s(this, str
, -1, count
);
9688 /* ?_Readsome_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEHPA_WIH@Z */
9689 /* ?_Readsome_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_K_J@Z */
9690 /* ?_Readsome_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEHPAGIH@Z */
9691 /* ?_Readsome_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_K_J@Z */
9692 #if STREAMSIZE_BITS == 64
9693 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Readsome_s
, 20)
9695 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Readsome_s
, 16)
9697 streamsize __thiscall
basic_istream_wchar__Readsome_s(basic_istream_wchar
*this, wchar_t *str
, MSVCP_size_t size
, streamsize count
)
9699 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9700 IOSB_iostate state
= IOSTATE_goodbit
;
9702 TRACE("(%p %p %lu %s)\n", this, str
, size
, wine_dbgstr_longlong(count
));
9706 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9707 streamsize avail
= basic_streambuf_wchar_in_avail(basic_ios_wchar_rdbuf_get(base
));
9712 state
|= IOSTATE_eofbit
;
9714 basic_istream_wchar__Read_s(this, str
, size
, avail
);
9716 state
|= IOSTATE_failbit
;
9718 basic_istream_wchar_sentry_destroy(this);
9720 basic_ios_wchar_setstate(base
, state
);
9724 /* ?readsome@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEHPA_WH@Z */
9725 /* ?readsome@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_J@Z */
9726 /* ?readsome@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEHPAGH@Z */
9727 /* ?readsome@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_J@Z */
9728 #if STREAMSIZE_BITS == 64
9729 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_readsome
, 16)
9731 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_readsome
, 12)
9733 streamsize __thiscall
basic_istream_wchar_readsome(basic_istream_wchar
*this, wchar_t *str
, streamsize count
)
9735 return basic_istream_wchar__Readsome_s(this, str
, count
, count
);
9738 /* ?putback@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@_W@Z */
9739 /* ?putback@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_W@Z */
9740 /* ?putback@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@G@Z */
9741 /* ?putback@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@G@Z */
9742 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_putback
, 8)
9743 basic_istream_wchar
* __thiscall
basic_istream_wchar_putback(basic_istream_wchar
*this, wchar_t ch
)
9745 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9746 IOSB_iostate state
= IOSTATE_goodbit
;
9748 TRACE("(%p %c)\n", this, ch
);
9752 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9753 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9755 if(!ios_base_good(&base
->base
))
9756 state
|= IOSTATE_failbit
;
9757 else if(!strbuf
|| basic_streambuf_wchar_sputbackc(strbuf
, ch
)==WEOF
)
9758 state
|= IOSTATE_badbit
;
9760 basic_istream_wchar_sentry_destroy(this);
9762 basic_ios_wchar_setstate(base
, state
);
9766 /* ?unget@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@XZ */
9767 /* ?unget@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@XZ */
9768 /* ?unget@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@XZ */
9769 /* ?unget@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@XZ */
9770 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_unget
, 4)
9771 basic_istream_wchar
* __thiscall
basic_istream_wchar_unget(basic_istream_wchar
*this)
9773 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9774 IOSB_iostate state
= IOSTATE_goodbit
;
9776 TRACE("(%p)\n", this);
9780 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9781 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9783 if(!ios_base_good(&base
->base
))
9784 state
|= IOSTATE_failbit
;
9785 else if(!strbuf
|| basic_streambuf_wchar_sungetc(strbuf
)==WEOF
)
9786 state
|= IOSTATE_badbit
;
9788 basic_istream_wchar_sentry_destroy(this);
9790 basic_ios_wchar_setstate(base
, state
);
9794 /* ?sync@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEHXZ */
9795 /* ?sync@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAHXZ */
9796 /* ?sync@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEHXZ */
9797 /* ?sync@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAHXZ */
9798 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_sync
, 4)
9799 int __thiscall
basic_istream_wchar_sync(basic_istream_wchar
*this)
9801 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9802 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9804 TRACE("(%p)\n", this);
9809 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
9810 if(basic_streambuf_wchar_pubsync(strbuf
) != -1) {
9811 basic_istream_wchar_sentry_destroy(this);
9815 basic_istream_wchar_sentry_destroy(this);
9817 basic_ios_wchar_setstate(base
, IOSTATE_badbit
);
9821 /* ?tellg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@XZ */
9822 /* ?tellg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
9823 /* ?tellg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@XZ */
9824 /* ?tellg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
9825 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_tellg
, 8)
9826 fpos_int
* __thiscall
basic_istream_wchar_tellg(basic_istream_wchar
*this, fpos_int
*ret
)
9828 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9830 TRACE("(%p %p)\n", this, ret
);
9832 if(ios_base_fail(&base
->base
)) {
9839 basic_streambuf_wchar_pubseekoff(basic_ios_wchar_rdbuf_get(base
),
9840 ret
, 0, SEEKDIR_cur
, OPENMODE_in
);
9845 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@JW4seekdir@ios_base@2@@Z */
9846 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JW4seekdir@ios_base@2@@Z */
9847 /* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@JH@Z */
9848 /* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_JH@Z */
9849 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@JH@Z */
9850 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JH@Z */
9851 #if STREAMOFF_BITS == 64
9852 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_seekg
, 16)
9854 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_seekg
, 12)
9856 basic_istream_wchar
* __thiscall
basic_istream_wchar_seekg(basic_istream_wchar
*this, streamoff off
, int dir
)
9858 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9860 TRACE("(%p %s %d)\n", this, wine_dbgstr_longlong(off
), dir
);
9862 if(!ios_base_fail(&base
->base
)) {
9863 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9866 basic_streambuf_wchar_pubseekoff(strbuf
, &ret
, off
, dir
, OPENMODE_in
);
9872 /* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
9873 /* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
9874 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
9875 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
9876 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_seekg_fpos
, 28)
9877 basic_istream_wchar
* __thiscall
basic_istream_wchar_seekg_fpos(basic_istream_wchar
*this, fpos_int pos
)
9879 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9881 TRACE("(%p %s)\n", this, debugstr_fpos_int(&pos
));
9883 if(!ios_base_fail(&base
->base
)) {
9884 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9887 basic_streambuf_wchar_pubseekpos(strbuf
, &ret
, pos
, OPENMODE_in
);
9893 static basic_istream_wchar
* basic_istream_read_short(basic_istream_wchar
*this, short *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};
9905 first
.strbuf
= strbuf
;
9906 num_get_wchar_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, &tmp
);
9908 if(!(state
&IOSTATE_failbit
) && tmp
==(LONG
)((short)tmp
))
9911 state
|= IOSTATE_failbit
;
9913 basic_istream_wchar_sentry_destroy(this);
9915 basic_ios_wchar_setstate(base
, state
);
9919 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAF@Z */
9920 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAF@Z */
9921 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_short
, 8)
9922 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_short(basic_istream_wchar
*this, short *v
)
9924 return basic_istream_read_short(this, v
, num_get_wchar_use_facet(
9925 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
9928 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAF@Z */
9929 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAF@Z */
9930 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_short
, 8)
9931 basic_istream_wchar
* __thiscall
basic_istream_short_read_short(basic_istream_wchar
*this, short *v
)
9933 return basic_istream_read_short(this, v
, num_get_short_use_facet(
9934 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
9937 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAG@Z */
9938 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAG@Z */
9939 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_ushort
, 8)
9940 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_ushort(basic_istream_wchar
*this, unsigned short *v
)
9942 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9943 int state
= IOSTATE_goodbit
;
9945 TRACE("(%p %p)\n", this, v
);
9947 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
9948 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9949 const num_get
*numget
= num_get_wchar_use_facet(IOS_LOCALE(strbuf
));
9950 istreambuf_iterator_wchar first
={0}, last
={0};
9952 first
.strbuf
= strbuf
;
9953 num_get_wchar_get_ushort(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
9955 basic_istream_wchar_sentry_destroy(this);
9957 basic_ios_wchar_setstate(base
, state
);
9961 static basic_istream_wchar
* basic_istream_read_int(basic_istream_wchar
*this, int *v
, const num_get
*numget
)
9963 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9964 int state
= IOSTATE_goodbit
;
9966 TRACE("(%p %p)\n", this, v
);
9968 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
9969 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
9970 istreambuf_iterator_wchar first
={0}, last
={0};
9972 first
.strbuf
= strbuf
;
9973 num_get_wchar_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
9975 basic_istream_wchar_sentry_destroy(this);
9977 basic_ios_wchar_setstate(base
, state
);
9981 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAH@Z */
9982 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAH@Z */
9983 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_int
, 8)
9984 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_int(basic_istream_wchar
*this, int *v
)
9986 return basic_istream_read_int(this, v
, num_get_wchar_use_facet(
9987 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
9990 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAH@Z */
9991 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAH@Z */
9992 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_int
, 8)
9993 basic_istream_wchar
* __thiscall
basic_istream_short_read_int(basic_istream_wchar
*this, int *v
)
9995 return basic_istream_read_int(this, v
, num_get_short_use_facet(
9996 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
9999 static basic_istream_wchar
* basic_istream_read_uint(basic_istream_wchar
*this, unsigned int *v
, const num_get
*numget
)
10001 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10002 int state
= IOSTATE_goodbit
;
10004 TRACE("(%p %p)\n", this, v
);
10006 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10007 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10008 istreambuf_iterator_wchar first
={0}, last
={0};
10010 first
.strbuf
= strbuf
;
10011 num_get_wchar_get_uint(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10013 basic_istream_wchar_sentry_destroy(this);
10015 basic_ios_wchar_setstate(base
, state
);
10019 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAI@Z */
10020 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAI@Z */
10021 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_uint
, 8)
10022 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_uint(basic_istream_wchar
*this, unsigned int *v
)
10024 return basic_istream_read_uint(this, v
, num_get_wchar_use_facet(
10025 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10028 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAI@Z */
10029 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAI@Z */
10030 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_uint
, 8)
10031 basic_istream_wchar
* __thiscall
basic_istream_short_read_uint(basic_istream_wchar
*this, unsigned int *v
)
10033 return basic_istream_read_uint(this, v
, num_get_short_use_facet(
10034 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10037 static basic_istream_wchar
* basic_istream_read_long(basic_istream_wchar
*this, LONG
*v
, const num_get
*numget
)
10039 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10040 int state
= IOSTATE_goodbit
;
10042 TRACE("(%p %p)\n", this, v
);
10044 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10045 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10046 istreambuf_iterator_wchar first
={0}, last
={0};
10048 first
.strbuf
= strbuf
;
10049 num_get_wchar_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10051 basic_istream_wchar_sentry_destroy(this);
10053 basic_ios_wchar_setstate(base
, state
);
10057 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAJ@Z */
10058 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAJ@Z */
10059 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_long
, 8)
10060 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_long(basic_istream_wchar
*this, LONG
*v
)
10062 return basic_istream_read_long(this, v
, num_get_wchar_use_facet(
10063 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10066 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAJ@Z */
10067 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAJ@Z */
10068 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_long
, 8)
10069 basic_istream_wchar
* __thiscall
basic_istream_short_read_long(basic_istream_wchar
*this, LONG
*v
)
10071 return basic_istream_read_long(this, v
, num_get_short_use_facet(
10072 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10075 static basic_istream_wchar
* basic_istream_read_ulong(basic_istream_wchar
*this, ULONG
*v
, const num_get
*numget
)
10077 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10078 int state
= IOSTATE_goodbit
;
10080 TRACE("(%p %p)\n", this, v
);
10082 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10083 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10084 istreambuf_iterator_wchar first
={0}, last
={0};
10086 first
.strbuf
= strbuf
;
10087 num_get_wchar_get_ulong(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10089 basic_istream_wchar_sentry_destroy(this);
10091 basic_ios_wchar_setstate(base
, state
);
10095 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAK@Z */
10096 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAK@Z */
10097 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_ulong
, 8)
10098 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_ulong(basic_istream_wchar
*this, ULONG
*v
)
10100 return basic_istream_read_ulong(this, v
, num_get_wchar_use_facet(
10101 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10104 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAK@Z */
10105 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAK@Z */
10106 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_ulong
, 8)
10107 basic_istream_wchar
* __thiscall
basic_istream_short_read_ulong(basic_istream_wchar
*this, ULONG
*v
)
10109 return basic_istream_read_ulong(this, v
, num_get_short_use_facet(
10110 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10113 static basic_istream_wchar
* basic_istream_read_float(basic_istream_wchar
*this, float *v
, const num_get
*numget
)
10115 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10116 int state
= IOSTATE_goodbit
;
10118 TRACE("(%p %p)\n", this, v
);
10120 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10121 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10122 istreambuf_iterator_wchar first
={0}, last
={0};
10124 first
.strbuf
= strbuf
;
10125 num_get_wchar_get_float(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10127 basic_istream_wchar_sentry_destroy(this);
10129 basic_ios_wchar_setstate(base
, state
);
10133 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAM@Z */
10134 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAM@Z */
10135 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_float
, 8)
10136 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_float(basic_istream_wchar
*this, float *v
)
10138 return basic_istream_read_float(this, v
, num_get_wchar_use_facet(
10139 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10142 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAM@Z */
10143 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAM@Z */
10144 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_float
, 8)
10145 basic_istream_wchar
* __thiscall
basic_istream_short_read_float(basic_istream_wchar
*this, float *v
)
10147 return basic_istream_read_float(this, v
, num_get_short_use_facet(
10148 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10151 static basic_istream_wchar
* basic_istream_read_double(basic_istream_wchar
*this, double *v
, const num_get
*numget
)
10153 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10154 int state
= IOSTATE_goodbit
;
10156 TRACE("(%p %p)\n", this, v
);
10158 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10159 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10160 istreambuf_iterator_wchar first
={0}, last
={0};
10162 first
.strbuf
= strbuf
;
10163 num_get_wchar_get_double(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10165 basic_istream_wchar_sentry_destroy(this);
10167 basic_ios_wchar_setstate(base
, state
);
10171 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAN@Z */
10172 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAN@Z */
10173 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_double
, 8)
10174 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_double(basic_istream_wchar
*this, double *v
)
10176 return basic_istream_read_double(this, v
, num_get_wchar_use_facet(
10177 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10180 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAN@Z */
10181 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAN@Z */
10182 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_double
, 8)
10183 basic_istream_wchar
* __thiscall
basic_istream_short_read_double(basic_istream_wchar
*this, double *v
)
10185 return basic_istream_read_double(this, v
, num_get_short_use_facet(
10186 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10189 static basic_istream_wchar
* basic_istream_read_ldouble(basic_istream_wchar
*this, double *v
, const num_get
*numget
)
10191 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10192 int state
= IOSTATE_goodbit
;
10194 TRACE("(%p %p)\n", this, v
);
10196 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10197 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10198 istreambuf_iterator_wchar first
={0}, last
={0};
10200 first
.strbuf
= strbuf
;
10201 num_get_wchar_get_ldouble(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10203 basic_istream_wchar_sentry_destroy(this);
10205 basic_ios_wchar_setstate(base
, state
);
10209 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAO@Z */
10210 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAO@Z */
10211 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_ldouble
, 8)
10212 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_ldouble(basic_istream_wchar
*this, double *v
)
10214 return basic_istream_read_ldouble(this, v
, num_get_wchar_use_facet(
10215 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10218 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAO@Z */
10219 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAO@Z */
10220 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_ldouble
, 8)
10221 basic_istream_wchar
* __thiscall
basic_istream_short_read_ldouble(basic_istream_wchar
*this, double *v
)
10223 return basic_istream_read_ldouble(this, v
, num_get_short_use_facet(
10224 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10227 static basic_istream_wchar
* basic_istream_read_ptr(basic_istream_wchar
*this, void **v
, const num_get
*numget
)
10229 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10230 int state
= IOSTATE_goodbit
;
10232 TRACE("(%p %p)\n", this, v
);
10234 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10235 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10236 istreambuf_iterator_wchar first
={0}, last
={0};
10238 first
.strbuf
= strbuf
;
10239 num_get_wchar_get_void(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10241 basic_istream_wchar_sentry_destroy(this);
10243 basic_ios_wchar_setstate(base
, state
);
10247 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAPAX@Z */
10248 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAPEAX@Z */
10249 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_ptr
, 8)
10250 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_ptr(basic_istream_wchar
*this, void **v
)
10252 return basic_istream_read_ptr(this, v
, num_get_wchar_use_facet(
10253 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10256 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAPAX@Z */
10257 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAPEAX@Z */
10258 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_ptr
, 8)
10259 basic_istream_wchar
* __thiscall
basic_istream_short_read_ptr(basic_istream_wchar
*this, void **v
)
10261 return basic_istream_read_ptr(this, v
, num_get_short_use_facet(
10262 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10265 static basic_istream_wchar
* basic_istream_read_int64(basic_istream_wchar
*this, __int64
*v
, const num_get
*numget
)
10267 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10268 int state
= IOSTATE_goodbit
;
10270 TRACE("(%p %p)\n", this, v
);
10272 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10273 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10274 istreambuf_iterator_wchar first
={0}, last
={0};
10276 first
.strbuf
= strbuf
;
10277 num_get_wchar_get_int64(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10279 basic_istream_wchar_sentry_destroy(this);
10281 basic_ios_wchar_setstate(base
, state
);
10285 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AA_J@Z */
10286 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEA_J@Z */
10287 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_int64
, 8)
10288 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_int64(basic_istream_wchar
*this, __int64
*v
)
10290 return basic_istream_read_int64(this, v
, num_get_wchar_use_facet(
10291 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10294 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AA_J@Z */
10295 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEA_J@Z */
10296 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_int64
, 8)
10297 basic_istream_wchar
* __thiscall
basic_istream_short_read_int64(basic_istream_wchar
*this, __int64
*v
)
10299 return basic_istream_read_int64(this, v
, num_get_short_use_facet(
10300 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10303 static basic_istream_wchar
* basic_istream_read_uint64(basic_istream_wchar
*this, unsigned __int64
*v
, const num_get
*numget
)
10305 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10306 int state
= IOSTATE_goodbit
;
10308 TRACE("(%p %p)\n", this, v
);
10310 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10311 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10312 istreambuf_iterator_wchar first
={0}, last
={0};
10314 first
.strbuf
= strbuf
;
10315 num_get_wchar_get_uint64(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10317 basic_istream_wchar_sentry_destroy(this);
10319 basic_ios_wchar_setstate(base
, state
);
10323 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AA_K@Z */
10324 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEA_K@Z */
10325 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_uint64
, 8)
10326 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_uint64(basic_istream_wchar
*this, unsigned __int64
*v
)
10328 return basic_istream_read_uint64(this, v
, num_get_wchar_use_facet(
10329 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10332 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AA_K@Z */
10333 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEA_K@Z */
10334 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_uint64
, 8)
10335 basic_istream_wchar
* __thiscall
basic_istream_short_read_uint64(basic_istream_wchar
*this, unsigned __int64
*v
)
10337 return basic_istream_read_uint64(this, v
, num_get_short_use_facet(
10338 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10341 static basic_istream_wchar
* basic_istream_read_bool(basic_istream_wchar
*this, MSVCP_bool
*v
, const num_get
*numget
)
10343 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10344 int state
= IOSTATE_goodbit
;
10346 TRACE("(%p %p)\n", this, v
);
10348 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10349 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10350 istreambuf_iterator_wchar first
={0}, last
={0};
10352 first
.strbuf
= strbuf
;
10353 num_get_wchar_get_bool(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
10355 basic_istream_wchar_sentry_destroy(this);
10357 basic_ios_wchar_setstate(base
, state
);
10361 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AA_N@Z */
10362 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEA_N@Z */
10363 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_bool
, 8)
10364 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_bool(basic_istream_wchar
*this, MSVCP_bool
*v
)
10366 return basic_istream_read_bool(this, v
, num_get_wchar_use_facet(
10367 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10370 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AA_N@Z */
10371 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEA_N@Z */
10372 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_bool
, 8)
10373 basic_istream_wchar
* __thiscall
basic_istream_short_read_bool(basic_istream_wchar
*this, MSVCP_bool
*v
)
10375 return basic_istream_read_bool(this, v
, num_get_short_use_facet(
10376 IOS_LOCALE(basic_istream_wchar_get_basic_ios(this)->strbuf
)));
10379 /* ??$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 */
10380 /* ??$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 */
10381 /* ??$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 */
10382 /* ??$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 */
10383 basic_istream_wchar
* __cdecl
basic_istream_wchar_getline_bstr_delim(
10384 basic_istream_wchar
*istream
, basic_string_wchar
*str
, wchar_t delim
)
10386 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istream
);
10387 IOSB_iostate state
= IOSTATE_goodbit
;
10390 TRACE("(%p %p %s)\n", istream
, str
, debugstr_wn(&delim
, 1));
10392 MSVCP_basic_string_wchar_clear(str
);
10393 if(basic_istream_wchar_sentry_create(istream
, TRUE
)) {
10394 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
10396 c
= basic_streambuf_wchar_sgetc(strbuf
);
10397 for(; c
!=delim
&& c
!=WEOF
; c
= basic_streambuf_wchar_snextc(strbuf
))
10398 MSVCP_basic_string_wchar_append_ch(str
, c
);
10399 if(c
==delim
) basic_streambuf_wchar_sbumpc(strbuf
);
10400 else if(c
==WEOF
) state
|= IOSTATE_eofbit
;
10402 if(!MSVCP_basic_string_wchar_length(str
) && c
!=delim
) state
|= IOSTATE_failbit
;
10404 basic_istream_wchar_sentry_destroy(istream
);
10406 basic_ios_wchar_setstate(basic_istream_wchar_get_basic_ios(istream
), state
);
10410 /* ??$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 */
10411 /* ??$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 */
10412 /* ??$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 */
10413 /* ??$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 */
10414 basic_istream_wchar
* __cdecl
basic_istream_wchar_getline_bstr(
10415 basic_istream_wchar
*istream
, basic_string_wchar
*str
)
10417 return basic_istream_wchar_getline_bstr_delim(istream
, str
, '\n');
10420 static basic_istream_wchar
* basic_istream_read_bstr(basic_istream_wchar
*istream
,
10421 basic_string_wchar
*str
, const ctype_wchar
*ctype
)
10423 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istream
);
10424 IOSB_iostate state
= IOSTATE_failbit
;
10427 TRACE("(%p %p)\n", istream
, str
);
10429 if(basic_istream_wchar_sentry_create(istream
, FALSE
)) {
10430 MSVCP_size_t count
= ios_base_width_get(&base
->base
);
10435 MSVCP_basic_string_wchar_clear(str
);
10437 for(c
= basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base
));
10438 c
!=WEOF
&& !ctype_wchar_is_ch(ctype
, _SPACE
|_BLANK
, c
) && count
>0;
10439 c
= basic_streambuf_wchar_snextc(basic_ios_wchar_rdbuf_get(base
)), count
--) {
10440 state
= IOSTATE_goodbit
;
10441 MSVCP_basic_string_wchar_append_ch(str
, c
);
10444 basic_istream_wchar_sentry_destroy(istream
);
10446 ios_base_width_set(&base
->base
, 0);
10447 basic_ios_wchar_setstate(base
, state
| (c
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
10451 /* ??$?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 */
10452 /* ??$?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 */
10453 basic_istream_wchar
* __cdecl
basic_istream_wchar_read_bstr(
10454 basic_istream_wchar
*istream
, basic_string_wchar
*str
)
10456 return basic_istream_read_bstr(istream
, str
, ctype_wchar_use_facet(
10457 IOS_LOCALE(basic_istream_wchar_get_basic_ios(istream
)->strbuf
)));
10460 /* ??$?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 */
10461 /* ??$?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 */
10462 basic_istream_wchar
* __cdecl
basic_istream_short_read_bstr(
10463 basic_istream_wchar
*istream
, basic_string_wchar
*str
)
10465 return basic_istream_read_bstr(istream
, str
, ctype_short_use_facet(
10466 IOS_LOCALE(basic_istream_wchar_get_basic_ios(istream
)->strbuf
)));
10469 static basic_istream_wchar
* basic_istream_read_str(basic_istream_wchar
*istream
, wchar_t *str
, const ctype_wchar
*ctype
)
10471 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istream
);
10472 IOSB_iostate state
= IOSTATE_failbit
;
10473 unsigned short c
= '\n';
10475 TRACE("(%p %p)\n", istream
, str
);
10477 if(basic_istream_wchar_sentry_create(istream
, FALSE
)) {
10478 MSVCP_size_t count
= ios_base_width_get(&base
->base
)-1;
10480 for(c
= basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base
));
10481 c
!=WEOF
&& !ctype_wchar_is_ch(ctype
, _SPACE
|_BLANK
, c
) && count
>0;
10482 c
= basic_streambuf_wchar_snextc(basic_ios_wchar_rdbuf_get(base
)), count
--) {
10483 state
= IOSTATE_goodbit
;
10487 basic_istream_wchar_sentry_destroy(istream
);
10490 ios_base_width_set(&base
->base
, 0);
10491 basic_ios_wchar_setstate(base
, state
| (c
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
10495 /* ??$?5_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AAV10@PA_W@Z */
10496 /* ??$?5_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AEAV10@PEA_W@Z */
10497 basic_istream_wchar
* __cdecl
basic_istream_wchar_read_str(basic_istream_wchar
*istream
, wchar_t *str
)
10499 return basic_istream_read_str(istream
, str
, ctype_wchar_use_facet(
10500 IOS_LOCALE(basic_istream_wchar_get_basic_ios(istream
)->strbuf
)));
10503 /* ??$?5GU?$char_traits@G@std@@@std@@YAAAV?$basic_istream@GU?$char_traits@G@std@@@0@AAV10@PAG@Z */
10504 /* ??$?5GU?$char_traits@G@std@@@std@@YAAEAV?$basic_istream@GU?$char_traits@G@std@@@0@AEAV10@PEAG@Z */
10505 basic_istream_wchar
* __cdecl
basic_istream_short_read_str(basic_istream_wchar
*istream
, wchar_t *str
)
10507 return basic_istream_read_str(istream
, str
, ctype_short_use_facet(
10508 IOS_LOCALE(basic_istream_wchar_get_basic_ios(istream
)->strbuf
)));
10511 /* ??$?5_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AAV10@AA_W@Z */
10512 /* ??$?5_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AEAV10@AEA_W@Z */
10513 /* ??$?5GU?$char_traits@G@std@@@std@@YAAAV?$basic_istream@GU?$char_traits@G@std@@@0@AAV10@AAG@Z */
10514 /* ??$?5GU?$char_traits@G@std@@@std@@YAAEAV?$basic_istream@GU?$char_traits@G@std@@@0@AEAV10@AEAG@Z */
10515 basic_istream_wchar
* __cdecl
basic_istream_wchar_read_ch(basic_istream_wchar
*istream
, wchar_t *ch
)
10517 IOSB_iostate state
= IOSTATE_failbit
;
10518 unsigned short c
= 0;
10520 TRACE("(%p %p)\n", istream
, ch
);
10522 if(basic_istream_wchar_sentry_create(istream
, FALSE
)) {
10523 c
= basic_streambuf_wchar_sbumpc(basic_ios_wchar_rdbuf_get(
10524 basic_istream_wchar_get_basic_ios(istream
)));
10526 state
= IOSTATE_goodbit
;
10530 basic_istream_wchar_sentry_destroy(istream
);
10532 basic_ios_wchar_setstate(basic_istream_wchar_get_basic_ios(istream
),
10533 state
| (c
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
10537 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
10538 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
10539 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
10540 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
10541 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_streambuf
, 8)
10542 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_streambuf(
10543 basic_istream_wchar
*this, basic_streambuf_wchar
*streambuf
)
10545 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
10546 IOSB_iostate state
= IOSTATE_failbit
;
10547 unsigned short c
= '\n';
10549 TRACE("(%p %p)\n", this, streambuf
);
10551 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
10552 for(c
= basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base
)); c
!=WEOF
;
10553 c
= basic_streambuf_wchar_snextc(basic_ios_wchar_rdbuf_get(base
))) {
10554 state
= IOSTATE_goodbit
;
10555 if(basic_streambuf_wchar_sputc(streambuf
, c
) == WEOF
)
10559 basic_istream_wchar_sentry_destroy(this);
10561 basic_ios_wchar_setstate(base
, state
| (c
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
10565 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
10566 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
10567 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
10568 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
10569 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_func
, 8)
10570 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_func(basic_istream_wchar
*this,
10571 basic_istream_wchar
* (__cdecl
*pfunc
)(basic_istream_wchar
*))
10573 TRACE("(%p %p)\n", this, pfunc
);
10578 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AAV21@@Z@Z */
10579 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AEAV21@@Z@Z */
10580 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@GU?$char_traits@G@std@@@1@AAV21@@Z@Z */
10581 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@GU?$char_traits@G@std@@@1@AEAV21@@Z@Z */
10582 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_func_basic_ios
, 8)
10583 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_func_basic_ios(basic_istream_wchar
*this,
10584 basic_ios_wchar
* (__cdecl
*pfunc
)(basic_ios_wchar
*))
10586 TRACE("(%p %p)\n", this, pfunc
);
10587 pfunc(basic_istream_wchar_get_basic_ios(this));
10591 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
10592 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
10593 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
10594 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
10595 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_func_ios_base
, 8)
10596 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_func_ios_base(
10597 basic_istream_wchar
*this, ios_base
* (__cdecl
*pfunc
)(ios_base
*))
10599 TRACE("(%p %p)\n", this, pfunc
);
10600 pfunc(&basic_istream_wchar_get_basic_ios(this)->base
);
10604 /* ?swap@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEXAAV12@@Z */
10605 /* ?swap@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAXAEAV12@@Z */
10606 /* ?swap@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEXAAV12@@Z */
10607 /* ?swap@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAXAEAV12@@Z */
10608 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_swap
, 8)
10609 void __thiscall
basic_istream_wchar_swap(basic_istream_wchar
*this, basic_istream_wchar
*r
)
10611 TRACE("(%p %p)\n", this, r
);
10616 basic_ios_wchar_swap(basic_istream_wchar_get_basic_ios(this),
10617 basic_istream_wchar_get_basic_ios(r
));
10618 this->count
^= r
->count
;
10619 r
->count
^= this->count
;
10620 this->count
^= r
->count
;
10623 static inline basic_ios_char
* basic_iostream_char_to_basic_ios(basic_iostream_char
*ptr
)
10625 return (basic_ios_char
*)((char*)ptr
+basic_iostream_char_vbtable1
[1]);
10628 static inline basic_iostream_char
* basic_iostream_char_from_basic_ios(basic_ios_char
*ptr
)
10630 return (basic_iostream_char
*)((char*)ptr
-basic_iostream_char_vbtable1
[1]);
10633 /* ??0?$basic_iostream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
10634 /* ??0?$basic_iostream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
10635 DEFINE_THISCALL_WRAPPER(basic_iostream_char_ctor
, 12)
10636 basic_iostream_char
* __thiscall
basic_iostream_char_ctor(basic_iostream_char
*this, basic_streambuf_char
*strbuf
, MSVCP_bool virt_init
)
10638 basic_ios_char
*basic_ios
;
10640 TRACE("(%p %p %d)\n", this, strbuf
, virt_init
);
10643 this->base1
.vbtable
= basic_iostream_char_vbtable1
;
10644 this->base2
.vbtable
= basic_iostream_char_vbtable2
;
10645 basic_ios
= basic_istream_char_get_basic_ios(&this->base1
);
10646 basic_ios_char_ctor(basic_ios
);
10648 basic_ios
= basic_istream_char_get_basic_ios(&this->base1
);
10651 basic_ios
->base
.vtable
= &MSVCP_basic_iostream_char_vtable
;
10653 basic_istream_char_ctor(&this->base1
, strbuf
, FALSE
, FALSE
);
10654 basic_ostream_char_ctor(&this->base2
, NULL
, FALSE
, FALSE
, FALSE
);
10658 /* ??1?$basic_iostream@DU?$char_traits@D@std@@@std@@UAE@XZ */
10659 /* ??1?$basic_iostream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
10660 DEFINE_THISCALL_WRAPPER(basic_iostream_char_dtor
, 4)
10661 void __thiscall
basic_iostream_char_dtor(basic_ios_char
*base
)
10663 basic_iostream_char
*this = basic_iostream_char_from_basic_ios(base
);
10665 TRACE("(%p)\n", this);
10666 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&this->base2
));
10667 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&this->base1
));
10670 /* ??_D?$basic_iostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
10671 /* ??_D?$basic_iostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
10672 DEFINE_THISCALL_WRAPPER(basic_iostream_char_vbase_dtor
, 4)
10673 void __thiscall
basic_iostream_char_vbase_dtor(basic_iostream_char
*this)
10675 TRACE("(%p)\n", this);
10676 basic_iostream_char_dtor(basic_iostream_char_to_basic_ios(this));
10677 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base1
));
10680 DEFINE_THISCALL_WRAPPER(basic_iostream_char_vector_dtor
, 8)
10681 basic_iostream_char
* __thiscall
basic_iostream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
10683 basic_iostream_char
*this = basic_iostream_char_from_basic_ios(base
);
10685 TRACE("(%p %x)\n", this, flags
);
10688 /* we have an array, with the number of elements stored before the first object */
10689 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
10691 for(i
=*ptr
-1; i
>=0; i
--)
10692 basic_iostream_char_vbase_dtor(this+i
);
10693 MSVCRT_operator_delete(ptr
);
10695 basic_iostream_char_vbase_dtor(this);
10697 MSVCRT_operator_delete(this);
10703 /* ?swap@?$basic_iostream@DU?$char_traits@D@std@@@std@@QAEXAAV12@@Z */
10704 /* ?swap@?$basic_iostream@DU?$char_traits@D@std@@@std@@QEAAXAEAV12@@Z */
10705 DEFINE_THISCALL_WRAPPER(basic_iostream_char_swap
, 8)
10706 void __thiscall
basic_iostream_char_swap(basic_iostream_char
*this, basic_iostream_char
*r
)
10708 TRACE("(%p %p)\n", this, r
);
10713 basic_ios_char_swap(basic_istream_char_get_basic_ios(&this->base1
),
10714 basic_istream_char_get_basic_ios(&r
->base1
));
10717 static inline basic_ios_wchar
* basic_iostream_wchar_to_basic_ios(basic_iostream_wchar
*ptr
)
10719 return (basic_ios_wchar
*)((char*)ptr
+basic_iostream_wchar_vbtable1
[1]);
10722 static inline basic_iostream_wchar
* basic_iostream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
10724 return (basic_iostream_wchar
*)((char*)ptr
-basic_iostream_wchar_vbtable1
[1]);
10727 /* ??0?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
10728 /* ??0?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
10729 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_ctor
, 12)
10730 basic_iostream_wchar
* __thiscall
basic_iostream_wchar_ctor(basic_iostream_wchar
*this,
10731 basic_streambuf_wchar
*strbuf
, MSVCP_bool virt_init
)
10733 basic_ios_wchar
*basic_ios
;
10735 TRACE("(%p %p %d)\n", this, strbuf
, virt_init
);
10738 this->base1
.vbtable
= basic_iostream_wchar_vbtable1
;
10739 this->base2
.vbtable
= basic_iostream_wchar_vbtable2
;
10740 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base1
);
10741 basic_ios_wchar_ctor(basic_ios
);
10743 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base1
);
10746 basic_istream_wchar_ctor(&this->base1
, strbuf
, FALSE
, FALSE
);
10747 basic_ostream_short_ctor(&this->base2
, NULL
, FALSE
, FALSE
, FALSE
);
10749 basic_ios
->base
.vtable
= &MSVCP_basic_iostream_wchar_vtable
;
10753 /* ??0?$basic_iostream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
10754 /* ??0?$basic_iostream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
10755 DEFINE_THISCALL_WRAPPER(basic_iostream_short_ctor
, 12)
10756 basic_iostream_wchar
* __thiscall
basic_iostream_short_ctor(basic_iostream_wchar
*this,
10757 basic_streambuf_wchar
*strbuf
, MSVCP_bool virt_init
)
10759 basic_iostream_wchar_ctor(this, strbuf
, virt_init
);
10760 basic_istream_wchar_get_basic_ios(&this->base1
)->base
.vtable
= &MSVCP_basic_iostream_short_vtable
;
10764 /* ??1?$basic_iostream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
10765 /* ??1?$basic_iostream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
10766 /* ??1?$basic_iostream@GU?$char_traits@G@std@@@std@@UAE@XZ */
10767 /* ??1?$basic_iostream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
10768 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_dtor
, 4)
10769 void __thiscall
basic_iostream_wchar_dtor(basic_ios_wchar
*base
)
10771 basic_iostream_wchar
*this = basic_iostream_wchar_from_basic_ios(base
);
10773 TRACE("(%p)\n", this);
10774 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(&this->base2
));
10775 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(&this->base1
));
10778 /* ??_D?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
10779 /* ??_D?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
10780 /* ??_D?$basic_iostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
10781 /* ??_D?$basic_iostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
10782 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_vbase_dtor
, 4)
10783 void __thiscall
basic_iostream_wchar_vbase_dtor(basic_iostream_wchar
*this)
10785 TRACE("(%p)\n", this);
10786 basic_iostream_wchar_dtor(basic_iostream_wchar_to_basic_ios(this));
10787 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(&this->base1
));
10790 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_vector_dtor
, 8)
10791 basic_iostream_wchar
* __thiscall
basic_iostream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
10793 basic_iostream_wchar
*this = basic_iostream_wchar_from_basic_ios(base
);
10795 TRACE("(%p %x)\n", this, flags
);
10798 /* we have an array, with the number of elements stored before the first object */
10799 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
10801 for(i
=*ptr
-1; i
>=0; i
--)
10802 basic_iostream_wchar_vbase_dtor(this+i
);
10803 MSVCRT_operator_delete(ptr
);
10805 basic_iostream_wchar_vbase_dtor(this);
10807 MSVCRT_operator_delete(this);
10813 /* ?swap@?$basic_iostream@GU?$char_traits@G@std@@@std@@QAEXAAV12@@Z */
10814 /* ?swap@?$basic_iostream@GU?$char_traits@G@std@@@std@@QEAAXAEAV12@@Z */
10815 /* ?swap@?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QAEXAAV12@@Z */
10816 /* ?swap@?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QEAAXAEAV12@@Z */
10817 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_swap
, 8)
10818 void __thiscall
basic_iostream_wchar_swap(basic_iostream_wchar
*this, basic_iostream_wchar
*r
)
10820 TRACE("(%p %p)\n", this, r
);
10825 basic_ios_wchar_swap(basic_istream_wchar_get_basic_ios(&this->base1
),
10826 basic_istream_wchar_get_basic_ios(&r
->base1
));
10829 static inline basic_ios_char
* basic_ofstream_char_to_basic_ios(basic_ofstream_char
*ptr
)
10831 return (basic_ios_char
*)((char*)ptr
+basic_ofstream_char_vbtable
[1]);
10834 static inline basic_ofstream_char
* basic_ofstream_char_from_basic_ios(basic_ios_char
*ptr
)
10836 return (basic_ofstream_char
*)((char*)ptr
-basic_ofstream_char_vbtable
[1]);
10839 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@XZ */
10840 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@XZ */
10841 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_ctor
, 8)
10842 basic_ofstream_char
* __thiscall
basic_ofstream_char_ctor(basic_ofstream_char
*this, MSVCP_bool virt_init
)
10844 basic_ios_char
*basic_ios
;
10846 TRACE("(%p %d)\n", this, virt_init
);
10849 this->base
.vbtable
= basic_ofstream_char_vbtable
;
10850 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
10851 basic_ios_char_ctor(basic_ios
);
10853 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
10856 basic_filebuf_char_ctor(&this->filebuf
);
10857 basic_ostream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
, TRUE
, FALSE
);
10858 basic_ios
->base
.vtable
= &MSVCP_basic_ofstream_char_vtable
;
10862 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
10863 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
10864 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_ctor_file
, 12)
10865 basic_ofstream_char
* __thiscall
basic_ofstream_char_ctor_file(
10866 basic_ofstream_char
*this, FILE *file
, MSVCP_bool virt_init
)
10868 basic_ios_char
*basic_ios
;
10870 TRACE("(%p %p %d)\n", this, file
, virt_init
);
10873 this->base
.vbtable
= basic_ofstream_char_vbtable
;
10874 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
10875 basic_ios_char_ctor(basic_ios
);
10877 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
10880 basic_filebuf_char_ctor_file(&this->filebuf
, file
);
10881 basic_ostream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
, TRUE
, FALSE
);
10882 basic_ios
->base
.vtable
= &MSVCP_basic_ofstream_char_vtable
;
10886 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@ABV01@@Z */
10887 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@AEBV01@@Z */
10888 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_copy_ctor
, 12)
10889 basic_ofstream_char
* __thiscall
basic_ofstream_char_copy_ctor(basic_ofstream_char
*this,
10890 basic_ofstream_char
*copy
, MSVCP_bool virt_init
)
10892 TRACE("(%p %p %d)\n", this, copy
, virt_init
);
10893 return basic_ofstream_char_ctor_file(this, copy
->filebuf
.file
, virt_init
);
10896 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@PBDH@Z */
10897 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDH@Z */
10898 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_ctor_name
, 16)
10899 basic_ofstream_char
* __thiscall
basic_ofstream_char_ctor_name(basic_ofstream_char
*this,
10900 const char *name
, int mode
, MSVCP_bool virt_init
)
10902 TRACE("(%p %s %d %d)\n", this, name
, mode
, virt_init
);
10904 basic_ofstream_char_ctor(this, virt_init
);
10906 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
|OPENMODE_out
, _SH_DENYNO
)) {
10907 basic_ios_char
*basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
10908 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
10913 /* ??1?$basic_ofstream@DU?$char_traits@D@std@@@std@@UAE@XZ */
10914 /* ??1?$basic_ofstream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
10915 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_dtor
, 4)
10916 void __thiscall
basic_ofstream_char_dtor(basic_ios_char
*base
)
10918 basic_ofstream_char
*this = basic_ofstream_char_from_basic_ios(base
);
10920 TRACE("(%p)\n", this);
10922 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&this->base
));
10923 basic_filebuf_char_dtor(&this->filebuf
);
10926 /* ??_D?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
10927 /* ??_D?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
10928 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_vbase_dtor
, 4)
10929 void __thiscall
basic_ofstream_char_vbase_dtor(basic_ofstream_char
*this)
10931 TRACE("(%p)\n", this);
10933 basic_ofstream_char_dtor(basic_ofstream_char_to_basic_ios(this));
10934 basic_ios_char_dtor(basic_ostream_char_get_basic_ios(&this->base
));
10937 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_vector_dtor
, 8)
10938 basic_ofstream_char
* __thiscall
basic_ofstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
10940 basic_ofstream_char
*this = basic_ofstream_char_from_basic_ios(base
);
10942 TRACE("(%p %x)\n", this, flags
);
10945 /* we have an array, with the number of elements stored before the first object */
10946 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
10948 for(i
=*ptr
-1; i
>=0; i
--)
10949 basic_ofstream_char_vbase_dtor(this+i
);
10950 MSVCRT_operator_delete(ptr
);
10952 basic_ofstream_char_vbase_dtor(this);
10954 MSVCRT_operator_delete(this);
10960 /* ?close@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
10961 /* ?close@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
10962 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_close
, 4)
10963 void __thiscall
basic_ofstream_char_close(basic_ofstream_char
*this)
10965 TRACE("(%p)\n", this);
10967 if(!basic_filebuf_char_close(&this->filebuf
)) {
10968 basic_ios_char
*basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
10969 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
10973 /* ?is_open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QBE_NXZ */
10974 /* ?is_open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
10975 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_is_open
, 4)
10976 MSVCP_bool __thiscall
basic_ofstream_char_is_open(const basic_ofstream_char
*this)
10978 TRACE("(%p)\n", this);
10979 return basic_filebuf_char_is_open(&this->filebuf
);
10982 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPBDH@Z */
10983 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDH@Z */
10984 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_open
, 12)
10985 void __thiscall
basic_ofstream_char_open(basic_ofstream_char
*this,
10986 const char *name
, int mode
)
10988 TRACE("(%p %s %d)\n", this, name
, mode
);
10990 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
|OPENMODE_out
, _SH_DENYNO
)) {
10991 basic_ios_char
*basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
10992 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
10996 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPBDF@Z */
10997 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDF@Z */
10998 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_open_old
, 12)
10999 void __thiscall
basic_ofstream_char_open_old(basic_ofstream_char
*this,
11000 const char *name
, short mode
)
11002 basic_ofstream_char_open(this, name
, mode
);
11005 /* ?rdbuf@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
11006 /* ?rdbuf@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
11007 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_rdbuf
, 4)
11008 basic_filebuf_char
* __thiscall
basic_ofstream_char_rdbuf(const basic_ofstream_char
*this)
11010 TRACE("(%p)\n", this);
11011 return (basic_filebuf_char
*)&this->filebuf
;
11014 static inline basic_ios_wchar
* basic_ofstream_wchar_to_basic_ios(basic_ofstream_wchar
*ptr
)
11016 return (basic_ios_wchar
*)((char*)ptr
+basic_ofstream_wchar_vbtable
[1]);
11019 static inline basic_ofstream_wchar
* basic_ofstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
11021 return (basic_ofstream_wchar
*)((char*)ptr
-basic_ofstream_wchar_vbtable
[1]);
11024 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@XZ */
11025 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@XZ */
11026 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_ctor
, 8)
11027 basic_ofstream_wchar
* __thiscall
basic_ofstream_wchar_ctor(basic_ofstream_wchar
*this, MSVCP_bool virt_init
)
11029 basic_ios_wchar
*basic_ios
;
11031 TRACE("(%p %d)\n", this, virt_init
);
11034 this->base
.vbtable
= basic_ofstream_wchar_vbtable
;
11035 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11036 basic_ios_wchar_ctor(basic_ios
);
11038 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11041 basic_filebuf_wchar_ctor(&this->filebuf
);
11042 basic_ostream_short_ctor(&this->base
, &this->filebuf
.base
, FALSE
, TRUE
, FALSE
);
11043 basic_ios
->base
.vtable
= &MSVCP_basic_ofstream_wchar_vtable
;
11047 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@XZ */
11048 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@XZ */
11049 DEFINE_THISCALL_WRAPPER(basic_ofstream_short_ctor
, 8)
11050 basic_ofstream_wchar
* __thiscall
basic_ofstream_short_ctor(basic_ofstream_wchar
*this, MSVCP_bool virt_init
)
11052 basic_ofstream_wchar_ctor(this, virt_init
);
11053 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ofstream_short_vtable
;
11057 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
11058 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11059 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_ctor_file
, 12)
11060 basic_ofstream_wchar
* __thiscall
basic_ofstream_wchar_ctor_file(
11061 basic_ofstream_wchar
*this, FILE *file
, MSVCP_bool virt_init
)
11063 basic_ios_wchar
*basic_ios
;
11065 TRACE("(%p %p %d)\n", this, file
, virt_init
);
11068 this->base
.vbtable
= basic_ofstream_wchar_vbtable
;
11069 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11070 basic_ios_wchar_ctor(basic_ios
);
11072 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11075 basic_filebuf_wchar_ctor_file(&this->filebuf
, file
);
11076 basic_ostream_short_ctor(&this->base
, &this->filebuf
.base
, FALSE
, TRUE
, FALSE
);
11077 basic_ios
->base
.vtable
= &MSVCP_basic_ofstream_wchar_vtable
;
11081 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
11082 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11083 DEFINE_THISCALL_WRAPPER(basic_ofstream_short_ctor_file
, 12)
11084 basic_ofstream_wchar
* __thiscall
basic_ofstream_short_ctor_file(
11085 basic_ofstream_wchar
*this, FILE *file
, MSVCP_bool virt_init
)
11087 basic_ofstream_wchar_ctor_file(this, file
, virt_init
);
11088 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ofstream_short_vtable
;
11092 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@ABV01@@Z */
11093 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@AEBV01@@Z */
11094 DEFINE_THISCALL_WRAPPER(basic_ofstream_short_copy_ctor
, 12)
11095 basic_ofstream_wchar
* __thiscall
basic_ofstream_short_copy_ctor(basic_ofstream_wchar
*this,
11096 basic_ofstream_wchar
*copy
, MSVCP_bool virt_init
)
11098 TRACE("(%p %p %d)\n", this, copy
, virt_init
);
11099 return basic_ofstream_short_ctor_file(this, copy
->filebuf
.file
, virt_init
);
11102 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@PBDH@Z */
11103 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@PEBDH@Z */
11104 DEFINE_THISCALL_WRAPPER(basic_ofstream_short_ctor_name
, 16)
11105 basic_ofstream_wchar
* __thiscall
basic_ofstream_short_ctor_name(basic_ofstream_wchar
*this,
11106 const char *name
, int mode
, MSVCP_bool virt_init
)
11108 TRACE("(%p %s %d %d)\n", this, name
, mode
, virt_init
);
11110 basic_ofstream_short_ctor(this, virt_init
);
11112 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
|OPENMODE_out
, _SH_DENYNO
)) {
11113 basic_ios_wchar
*basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11114 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11119 /* ??1?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
11120 /* ??1?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
11121 /* ??1?$basic_ofstream@GU?$char_traits@G@std@@@std@@UAE@XZ */
11122 /* ??1?$basic_ofstream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
11123 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_dtor
, 4)
11124 void __thiscall
basic_ofstream_wchar_dtor(basic_ios_wchar
*base
)
11126 basic_ofstream_wchar
*this = basic_ofstream_wchar_from_basic_ios(base
);
11128 TRACE("(%p)\n", this);
11130 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(&this->base
));
11131 basic_filebuf_wchar_dtor(&this->filebuf
);
11134 /* ??_D?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
11135 /* ??_D?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
11136 /* ??_D?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
11137 /* ??_D?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
11138 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_vbase_dtor
, 4)
11139 void __thiscall
basic_ofstream_wchar_vbase_dtor(basic_ofstream_wchar
*this)
11141 TRACE("(%p)\n", this);
11143 basic_ofstream_wchar_dtor(basic_ofstream_wchar_to_basic_ios(this));
11144 basic_ios_wchar_dtor(basic_ostream_wchar_get_basic_ios(&this->base
));
11147 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_vector_dtor
, 8)
11148 basic_ofstream_wchar
* __thiscall
basic_ofstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
11150 basic_ofstream_wchar
*this = basic_ofstream_wchar_from_basic_ios(base
);
11152 TRACE("(%p %x)\n", this, flags
);
11155 /* we have an array, with the number of elements stored before the first object */
11156 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11158 for(i
=*ptr
-1; i
>=0; i
--)
11159 basic_ofstream_wchar_vbase_dtor(this+i
);
11160 MSVCRT_operator_delete(ptr
);
11162 basic_ofstream_wchar_vbase_dtor(this);
11164 MSVCRT_operator_delete(this);
11170 /* ?close@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
11171 /* ?close@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
11172 /* ?close@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
11173 /* ?close@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
11174 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_close
, 4)
11175 void __thiscall
basic_ofstream_wchar_close(basic_ofstream_wchar
*this)
11177 TRACE("(%p)\n", this);
11179 if(!basic_filebuf_wchar_close(&this->filebuf
)) {
11180 basic_ios_wchar
*basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11181 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11185 /* ?is_open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
11186 /* ?is_open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
11187 /* ?is_open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QBE_NXZ */
11188 /* ?is_open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
11189 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_is_open
, 4)
11190 MSVCP_bool __thiscall
basic_ofstream_wchar_is_open(const basic_ofstream_wchar
*this)
11192 TRACE("(%p)\n", this);
11193 return basic_filebuf_wchar_is_open(&this->filebuf
);
11196 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPBDH@Z */
11197 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDH@Z */
11198 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_open
, 12)
11199 void __thiscall
basic_ofstream_wchar_open(basic_ofstream_wchar
*this,
11200 const char *name
, int mode
)
11202 TRACE("(%p %s %d)\n", this, name
, mode
);
11204 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
|OPENMODE_out
, _SH_DENYNO
)) {
11205 basic_ios_wchar
*basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
11206 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11210 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPBDF@Z */
11211 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDF@Z */
11212 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_open_old
, 12)
11213 void __thiscall
basic_ofstream_wchar_open_old(basic_ofstream_wchar
*this,
11214 const char *name
, int mode
)
11216 basic_ofstream_wchar_open(this, name
, mode
);
11219 /* ?rdbuf@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
11220 /* ?rdbuf@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
11221 /* ?rdbuf@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
11222 /* ?rdbuf@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
11223 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_rdbuf
, 4)
11224 basic_filebuf_wchar
* __thiscall
basic_ofstream_wchar_rdbuf(const basic_ofstream_wchar
*this)
11226 TRACE("(%p)\n", this);
11227 return (basic_filebuf_wchar
*)&this->filebuf
;
11230 static inline basic_ios_char
* basic_ifstream_char_to_basic_ios(basic_ifstream_char
*ptr
)
11232 return (basic_ios_char
*)((char*)ptr
+basic_ifstream_char_vbtable
[1]);
11235 static inline basic_ifstream_char
* basic_ifstream_char_from_basic_ios(basic_ios_char
*ptr
)
11237 return (basic_ifstream_char
*)((char*)ptr
-basic_ifstream_char_vbtable
[1]);
11240 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@XZ */
11241 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@XZ */
11242 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor
, 8)
11243 basic_ifstream_char
* __thiscall
basic_ifstream_char_ctor(basic_ifstream_char
*this, MSVCP_bool virt_init
)
11245 basic_ios_char
*basic_ios
;
11247 TRACE("(%p %d)\n", this, virt_init
);
11250 this->base
.vbtable
= basic_ifstream_char_vbtable
;
11251 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11252 basic_ios_char_ctor(basic_ios
);
11254 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11257 basic_filebuf_char_ctor(&this->filebuf
);
11258 basic_istream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
11259 basic_ios
->base
.vtable
= &MSVCP_basic_ifstream_char_vtable
;
11263 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
11264 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11265 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor_file
, 12)
11266 basic_ifstream_char
* __thiscall
basic_ifstream_char_ctor_file(
11267 basic_ifstream_char
*this, FILE *file
, MSVCP_bool virt_init
)
11269 basic_ios_char
*basic_ios
;
11271 TRACE("(%p %p %d)\n", this, file
, virt_init
);
11274 this->base
.vbtable
= basic_ifstream_char_vbtable
;
11275 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11276 basic_ios_char_ctor(basic_ios
);
11278 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11281 basic_filebuf_char_ctor_file(&this->filebuf
, file
);
11282 basic_istream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
11283 basic_ios
->base
.vtable
= &MSVCP_basic_ifstream_char_vtable
;
11287 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@ABV01@@Z */
11288 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@AEBV01@@Z */
11289 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_copy_ctor
, 12)
11290 basic_ifstream_char
* __thiscall
basic_ifstream_char_copy_ctor(basic_ifstream_char
*this,
11291 const basic_ifstream_char
*copy
, MSVCP_bool virt_init
)
11293 TRACE("(%p %p %d)\n", this, copy
, virt_init
);
11294 return basic_ifstream_char_ctor_file(this, copy
->filebuf
.file
, virt_init
);
11297 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PBDH@Z */
11298 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDH@Z */
11299 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor_name
, 16)
11300 basic_ifstream_char
* __thiscall
basic_ifstream_char_ctor_name(basic_ifstream_char
*this,
11301 const char *name
, int mode
, MSVCP_bool virt_init
)
11303 TRACE("(%p %s %d %d)\n", this, name
, mode
, virt_init
);
11305 basic_ifstream_char_ctor(this, virt_init
);
11307 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
|OPENMODE_in
, _SH_DENYNO
)) {
11308 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11309 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11314 /* ??1?$basic_ifstream@DU?$char_traits@D@std@@@std@@UAE@XZ */
11315 /* ??1?$basic_ifstream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
11316 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_dtor
, 4)
11317 void __thiscall
basic_ifstream_char_dtor(basic_ios_char
*base
)
11319 basic_ifstream_char
*this = basic_ifstream_char_from_basic_ios(base
);
11321 TRACE("(%p)\n", this);
11323 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&this->base
));
11324 basic_filebuf_char_dtor(&this->filebuf
);
11327 /* ??_D?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
11328 /* ??_D?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
11329 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_vbase_dtor
, 4)
11330 void __thiscall
basic_ifstream_char_vbase_dtor(basic_ifstream_char
*this)
11332 TRACE("(%p)\n", this);
11334 basic_ifstream_char_dtor(basic_ifstream_char_to_basic_ios(this));
11335 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base
));
11338 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_vector_dtor
, 8)
11339 basic_ifstream_char
* __thiscall
basic_ifstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
11341 basic_ifstream_char
*this = basic_ifstream_char_from_basic_ios(base
);
11343 TRACE("(%p %x)\n", this, flags
);
11346 /* we have an array, with the number of elements stored before the first object */
11347 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11349 for(i
=*ptr
-1; i
>=0; i
--)
11350 basic_ifstream_char_vbase_dtor(this+i
);
11351 MSVCRT_operator_delete(ptr
);
11353 basic_ifstream_char_vbase_dtor(this);
11355 MSVCRT_operator_delete(this);
11361 /* ?close@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
11362 /* ?close@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
11363 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_close
, 4)
11364 void __thiscall
basic_ifstream_char_close(basic_ifstream_char
*this)
11366 TRACE("(%p)\n", this);
11368 if(!basic_filebuf_char_close(&this->filebuf
)) {
11369 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11370 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11374 /* ?is_open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QBE_NXZ */
11375 /* ?is_open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
11376 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_is_open
, 4)
11377 MSVCP_bool __thiscall
basic_ifstream_char_is_open(const basic_ifstream_char
*this)
11379 TRACE("(%p)\n", this);
11380 return basic_filebuf_char_is_open(&this->filebuf
);
11383 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBDH@Z */
11384 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDH@Z */
11385 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_open
, 12)
11386 void __thiscall
basic_ifstream_char_open(basic_ifstream_char
*this,
11387 const char *name
, int mode
)
11389 TRACE("(%p %s %d)\n", this, name
, mode
);
11391 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
|OPENMODE_in
, _SH_DENYNO
)) {
11392 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
11393 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11397 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBDF@Z */
11398 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDF@Z */
11399 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_open_old
, 12)
11400 void __thiscall
basic_ifstream_char_open_old(basic_ifstream_char
*this,
11401 const char *name
, short mode
)
11403 basic_ifstream_char_open(this, name
, mode
);
11406 /* ?rdbuf@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
11407 /* ?rdbuf@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
11408 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_rdbuf
, 4)
11409 basic_filebuf_char
* __thiscall
basic_ifstream_char_rdbuf(const basic_ifstream_char
*this)
11411 TRACE("(%p)\n", this);
11412 return (basic_filebuf_char
*)&this->filebuf
;
11415 static inline basic_ios_wchar
* basic_ifstream_wchar_to_basic_ios(basic_ifstream_wchar
*ptr
)
11417 return (basic_ios_wchar
*)((char*)ptr
+basic_ifstream_wchar_vbtable
[1]);
11420 static inline basic_ifstream_wchar
* basic_ifstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
11422 return (basic_ifstream_wchar
*)((char*)ptr
-basic_ifstream_wchar_vbtable
[1]);
11425 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@XZ */
11426 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@XZ */
11427 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_ctor
, 8)
11428 basic_ifstream_wchar
* __thiscall
basic_ifstream_wchar_ctor(basic_ifstream_wchar
*this, MSVCP_bool virt_init
)
11430 basic_ios_wchar
*basic_ios
;
11432 TRACE("(%p %d)\n", this, virt_init
);
11435 this->base
.vbtable
= basic_ifstream_wchar_vbtable
;
11436 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
11437 basic_ios_wchar_ctor(basic_ios
);
11439 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
11442 basic_filebuf_wchar_ctor(&this->filebuf
);
11443 basic_istream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
11444 basic_ios
->base
.vtable
= &MSVCP_basic_ifstream_wchar_vtable
;
11448 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@XZ */
11449 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@XZ */
11450 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor
, 8)
11451 basic_ifstream_wchar
* __thiscall
basic_ifstream_short_ctor(basic_ifstream_wchar
*this, MSVCP_bool virt_init
)
11453 basic_ifstream_wchar_ctor(this, virt_init
);
11454 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ifstream_short_vtable
;
11458 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
11459 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11460 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_ctor_file
, 12)
11461 basic_ifstream_wchar
* __thiscall
basic_ifstream_wchar_ctor_file(
11462 basic_ifstream_wchar
*this, FILE *file
, MSVCP_bool virt_init
)
11464 basic_ios_wchar
*basic_ios
;
11466 TRACE("(%p %p %d)\n", this, file
, virt_init
);
11469 this->base
.vbtable
= basic_ifstream_wchar_vbtable
;
11470 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
11471 basic_ios_wchar_ctor(basic_ios
);
11473 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
11476 basic_filebuf_wchar_ctor_file(&this->filebuf
, file
);
11477 basic_istream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
11478 basic_ios
->base
.vtable
= &MSVCP_basic_ifstream_wchar_vtable
;
11482 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
11483 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11484 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor_file
, 12)
11485 basic_ifstream_wchar
* __thiscall
basic_ifstream_short_ctor_file(
11486 basic_ifstream_wchar
*this, FILE *file
, MSVCP_bool virt_init
)
11488 basic_ifstream_wchar_ctor_file(this, file
, virt_init
);
11489 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ifstream_short_vtable
;
11493 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@ABV01@@Z */
11494 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@AEBV01@@Z */
11495 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_copy_ctor
, 12)
11496 basic_ifstream_wchar
* __thiscall
basic_ifstream_short_copy_ctor(basic_ifstream_wchar
*this,
11497 basic_ifstream_wchar
*copy
, MSVCP_bool virt_init
)
11499 TRACE("(%p %p %d)\n", this, copy
, virt_init
);
11500 return basic_ifstream_short_ctor_file(this, copy
->filebuf
.file
, virt_init
);
11503 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@PBDH@Z */
11504 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@PEBDH@Z */
11505 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor_name
, 16)
11506 basic_ifstream_wchar
* __thiscall
basic_ifstream_short_ctor_name(basic_ifstream_wchar
*this,
11507 const char *name
, int mode
, MSVCP_bool virt_init
)
11509 TRACE("(%p %s %d %d)\n", this, name
, mode
, virt_init
);
11511 basic_ifstream_short_ctor(this, virt_init
);
11513 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
|OPENMODE_in
, _SH_DENYNO
)) {
11514 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
11515 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11520 /* ??1?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
11521 /* ??1?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
11522 /* ??1?$basic_ifstream@GU?$char_traits@G@std@@@std@@UAE@XZ */
11523 /* ??1?$basic_ifstream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
11524 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_dtor
, 4)
11525 void __thiscall
basic_ifstream_wchar_dtor(basic_ios_wchar
*base
)
11527 basic_ifstream_wchar
*this = basic_ifstream_wchar_from_basic_ios(base
);
11529 TRACE("(%p)\n", this);
11531 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(&this->base
));
11532 basic_filebuf_wchar_dtor(&this->filebuf
);
11535 /* ??_D?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
11536 /* ??_D?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
11537 /* ??_D?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
11538 /* ??_D?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
11539 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_vbase_dtor
, 4)
11540 void __thiscall
basic_ifstream_wchar_vbase_dtor(basic_ifstream_wchar
*this)
11542 TRACE("(%p)\n", this);
11544 basic_ifstream_wchar_dtor(basic_ifstream_wchar_to_basic_ios(this));
11545 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(&this->base
));
11548 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_vector_dtor
, 8)
11549 basic_ifstream_wchar
* __thiscall
basic_ifstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
11551 basic_ifstream_wchar
*this = basic_ifstream_wchar_from_basic_ios(base
);
11553 TRACE("(%p %x)\n", this, flags
);
11556 /* we have an array, with the number of elements stored before the first object */
11557 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11559 for(i
=*ptr
-1; i
>=0; i
--)
11560 basic_ifstream_wchar_vbase_dtor(this+i
);
11561 MSVCRT_operator_delete(ptr
);
11563 basic_ifstream_wchar_vbase_dtor(this);
11565 MSVCRT_operator_delete(this);
11571 /* ?close@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
11572 /* ?close@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
11573 /* ?close@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
11574 /* ?close@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
11575 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_close
, 4)
11576 void __thiscall
basic_ifstream_wchar_close(basic_ifstream_wchar
*this)
11578 TRACE("(%p)\n", this);
11580 if(!basic_filebuf_wchar_close(&this->filebuf
)) {
11581 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
11582 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11586 /* ?is_open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
11587 /* ?is_open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
11588 /* ?is_open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QBE_NXZ */
11589 /* ?is_open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
11590 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_is_open
, 4)
11591 MSVCP_bool __thiscall
basic_ifstream_wchar_is_open(const basic_ifstream_wchar
*this)
11593 TRACE("(%p)\n", this);
11594 return basic_filebuf_wchar_is_open(&this->filebuf
);
11597 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPBDH@Z */
11598 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDH@Z */
11599 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_open
, 12)
11600 void __thiscall
basic_ifstream_wchar_open(basic_ifstream_wchar
*this,
11601 const char *name
, int mode
)
11603 TRACE("(%p %s %d)\n", this, name
, mode
);
11605 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
|OPENMODE_in
, _SH_DENYNO
)) {
11606 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
11607 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11611 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPBDF@Z */
11612 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDF@Z */
11613 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_open_old
, 12)
11614 void __thiscall
basic_ifstream_wchar_open_old(basic_ifstream_wchar
*this,
11615 const char *name
, short mode
)
11617 basic_ifstream_wchar_open(this, name
, mode
);
11620 /* ?rdbuf@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
11621 /* ?rdbuf@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
11622 /* ?rdbuf@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
11623 /* ?rdbuf@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
11624 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_rdbuf
, 4)
11625 basic_filebuf_wchar
* __thiscall
basic_ifstream_wchar_rdbuf(const basic_ifstream_wchar
*this)
11627 TRACE("(%p)\n", this);
11628 return (basic_filebuf_wchar
*)&this->filebuf
;
11631 static inline basic_ios_char
* basic_fstream_char_to_basic_ios(basic_fstream_char
*ptr
)
11633 return (basic_ios_char
*)((char*)ptr
+basic_fstream_char_vbtable1
[1]);
11636 static inline basic_fstream_char
* basic_fstream_char_from_basic_ios(basic_ios_char
*ptr
)
11638 return (basic_fstream_char
*)((char*)ptr
-basic_fstream_char_vbtable1
[1]);
11641 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@XZ */
11642 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@XZ */
11643 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor
, 8)
11644 basic_fstream_char
* __thiscall
basic_fstream_char_ctor(basic_fstream_char
*this, MSVCP_bool virt_init
)
11646 basic_ios_char
*basic_ios
;
11648 TRACE("(%p %d)\n", this, virt_init
);
11651 this->base
.base1
.vbtable
= basic_fstream_char_vbtable1
;
11652 this->base
.base2
.vbtable
= basic_fstream_char_vbtable2
;
11653 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
11654 basic_ios_char_ctor(basic_ios
);
11656 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
11659 basic_filebuf_char_ctor(&this->filebuf
);
11660 basic_iostream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
);
11661 basic_ios
->base
.vtable
= &MSVCP_basic_fstream_char_vtable
;
11665 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
11666 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11667 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor_file
, 12)
11668 basic_fstream_char
* __thiscall
basic_fstream_char_ctor_file(basic_fstream_char
*this,
11669 FILE *file
, MSVCP_bool virt_init
)
11671 basic_ios_char
*basic_ios
;
11673 TRACE("(%p %p %d)\n", this, file
, virt_init
);
11676 this->base
.base1
.vbtable
= basic_fstream_char_vbtable1
;
11677 this->base
.base2
.vbtable
= basic_fstream_char_vbtable2
;
11678 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
11679 basic_ios_char_ctor(basic_ios
);
11681 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
11684 basic_filebuf_char_ctor_file(&this->filebuf
, file
);
11685 basic_iostream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
);
11686 basic_ios
->base
.vtable
= &MSVCP_basic_fstream_char_vtable
;
11690 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@ABV01@@Z */
11691 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@AEBV01@@Z */
11692 DEFINE_THISCALL_WRAPPER(basic_fstream_char_copy_ctor
, 12)
11693 basic_fstream_char
* __thiscall
basic_fstream_char_copy_ctor(basic_fstream_char
*this,
11694 basic_fstream_char
*copy
, MSVCP_bool virt_init
)
11696 TRACE("(%p %p %d)\n", this, copy
, virt_init
);
11697 return basic_fstream_char_ctor_file(this, copy
->filebuf
.file
, virt_init
);
11700 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PBDH@Z */
11701 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDH@Z */
11702 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor_name
, 16)
11703 basic_fstream_char
* __thiscall
basic_fstream_char_ctor_name(basic_fstream_char
*this,
11704 const char *name
, int mode
, MSVCP_bool virt_init
)
11706 TRACE("(%p %s %d %d)\n", this, name
, mode
, virt_init
);
11708 basic_fstream_char_ctor(this, virt_init
);
11710 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
, _SH_DENYNO
)) {
11711 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
11712 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11717 /* ??1?$basic_fstream@DU?$char_traits@D@std@@@std@@UAE@XZ */
11718 /* ??1?$basic_fstream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
11719 DEFINE_THISCALL_WRAPPER(basic_fstream_char_dtor
, 4)
11720 void __thiscall
basic_fstream_char_dtor(basic_ios_char
*base
)
11722 basic_fstream_char
*this = basic_fstream_char_from_basic_ios(base
);
11724 TRACE("(%p)\n", this);
11726 basic_iostream_char_dtor(basic_iostream_char_to_basic_ios(&this->base
));
11727 basic_filebuf_char_dtor(&this->filebuf
);
11730 /* ??_D?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
11731 /* ??_D?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
11732 DEFINE_THISCALL_WRAPPER(basic_fstream_char_vbase_dtor
, 4)
11733 void __thiscall
basic_fstream_char_vbase_dtor(basic_fstream_char
*this)
11735 TRACE("(%p)\n", this);
11737 basic_fstream_char_dtor(basic_fstream_char_to_basic_ios(this));
11738 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base
.base1
));
11741 DEFINE_THISCALL_WRAPPER(basic_fstream_char_vector_dtor
, 8)
11742 basic_fstream_char
* __thiscall
basic_fstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
11744 basic_fstream_char
*this = basic_fstream_char_from_basic_ios(base
);
11746 TRACE("(%p %x)\n", this, flags
);
11749 /* we have an array, with the number of elements stored before the first object */
11750 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11752 for(i
=*ptr
-1; i
>=0; i
--)
11753 basic_fstream_char_vbase_dtor(this+i
);
11754 MSVCRT_operator_delete(ptr
);
11756 basic_fstream_char_vbase_dtor(this);
11758 MSVCRT_operator_delete(this);
11764 /* ?close@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
11765 /* ?close@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
11766 DEFINE_THISCALL_WRAPPER(basic_fstream_char_close
, 4)
11767 void __thiscall
basic_fstream_char_close(basic_fstream_char
*this)
11769 TRACE("(%p)\n", this);
11771 if(!basic_filebuf_char_close(&this->filebuf
)) {
11772 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
11773 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11777 /* ?is_open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QBE_NXZ */
11778 /* ?is_open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
11779 DEFINE_THISCALL_WRAPPER(basic_fstream_char_is_open
, 4)
11780 MSVCP_bool __thiscall
basic_fstream_char_is_open(const basic_fstream_char
*this)
11782 TRACE("(%p)\n", this);
11783 return basic_filebuf_char_is_open(&this->filebuf
);
11786 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPBDH@Z */
11787 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDH@Z */
11788 DEFINE_THISCALL_WRAPPER(basic_fstream_char_open
, 12)
11789 void __thiscall
basic_fstream_char_open(basic_fstream_char
*this,
11790 const char *name
, int mode
)
11792 TRACE("(%p %s %d)\n", this, name
, mode
);
11794 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
, _SH_DENYNO
)) {
11795 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
11796 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
11800 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPBDF@Z */
11801 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDF@Z */
11802 DEFINE_THISCALL_WRAPPER(basic_fstream_char_open_old
, 12)
11803 void __thiscall
basic_fstream_char_open_old(basic_fstream_char
*this,
11804 const char *name
, int mode
)
11806 basic_fstream_char_open(this, name
, mode
);
11809 /* ?rdbuf@?$basic_fstream@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
11810 /* ?rdbuf@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
11811 DEFINE_THISCALL_WRAPPER(basic_fstream_char_rdbuf
, 4)
11812 basic_filebuf_char
* __thiscall
basic_fstream_char_rdbuf(const basic_fstream_char
*this)
11814 TRACE("(%p)\n", this);
11815 return (basic_filebuf_char
*)&this->filebuf
;
11818 static inline basic_ios_wchar
* basic_fstream_wchar_to_basic_ios(basic_fstream_wchar
*ptr
)
11820 return (basic_ios_wchar
*)((char*)ptr
+basic_fstream_wchar_vbtable1
[1]);
11823 static inline basic_fstream_wchar
* basic_fstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
11825 return (basic_fstream_wchar
*)((char*)ptr
-basic_fstream_wchar_vbtable1
[1]);
11828 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@XZ */
11829 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@XZ */
11830 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_ctor
, 8)
11831 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_ctor(basic_fstream_wchar
*this, MSVCP_bool virt_init
)
11833 basic_ios_wchar
*basic_ios
;
11835 TRACE("(%p %d)\n", this, virt_init
);
11838 this->base
.base1
.vbtable
= basic_fstream_wchar_vbtable1
;
11839 this->base
.base2
.vbtable
= basic_fstream_wchar_vbtable2
;
11840 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
11841 basic_ios_wchar_ctor(basic_ios
);
11843 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
11846 basic_filebuf_wchar_ctor(&this->filebuf
);
11847 basic_iostream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
);
11848 basic_ios
->base
.vtable
= &MSVCP_basic_fstream_wchar_vtable
;
11852 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@XZ */
11853 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@XZ */
11854 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor
, 8)
11855 basic_fstream_wchar
* __thiscall
basic_fstream_short_ctor(basic_fstream_wchar
*this, MSVCP_bool virt_init
)
11857 basic_fstream_wchar_ctor(this, virt_init
);
11858 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_fstream_short_vtable
;
11862 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
11863 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11864 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_ctor_file
, 12)
11865 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_ctor_file(basic_fstream_wchar
*this,
11866 FILE *file
, MSVCP_bool virt_init
)
11868 basic_ios_wchar
*basic_ios
;
11870 TRACE("(%p %p %d)\n", this, file
, virt_init
);
11873 this->base
.base1
.vbtable
= basic_fstream_wchar_vbtable1
;
11874 this->base
.base2
.vbtable
= basic_fstream_wchar_vbtable2
;
11875 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
11876 basic_ios_wchar_ctor(basic_ios
);
11878 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
11881 basic_filebuf_wchar_ctor_file(&this->filebuf
, file
);
11882 basic_iostream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
);
11883 basic_ios
->base
.vtable
= &MSVCP_basic_fstream_wchar_vtable
;
11887 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
11888 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11889 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor_file
, 12)
11890 basic_fstream_wchar
* __thiscall
basic_fstream_short_ctor_file(basic_fstream_wchar
*this,
11891 FILE *file
, MSVCP_bool virt_init
)
11893 basic_fstream_wchar_ctor_file(this, file
, virt_init
);
11894 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_fstream_short_vtable
;
11898 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@ABV01@@Z */
11899 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@AEBV01@@Z */
11900 DEFINE_THISCALL_WRAPPER(basic_fstream_short_copy_ctor
, 12)
11901 basic_fstream_wchar
* __thiscall
basic_fstream_short_copy_ctor(basic_fstream_wchar
*this,
11902 basic_fstream_wchar
*copy
, MSVCP_bool virt_init
)
11904 TRACE("(%p %p %d)\n", this, copy
, virt_init
);
11905 return basic_fstream_short_ctor_file(this, copy
->filebuf
.file
, virt_init
);
11908 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PB_WHH@Z */
11909 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEB_WHH@Z */
11910 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor_name
, 16)
11911 basic_fstream_wchar
* __thiscall
basic_fstream_short_ctor_name(basic_fstream_wchar
*this,
11912 const char *name
, int mode
, MSVCP_bool virt_init
)
11914 TRACE("(%p %s %d %d)\n", this, name
, mode
, virt_init
);
11916 basic_fstream_short_ctor(this, virt_init
);
11918 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
, _SH_DENYNO
)) {
11919 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
11920 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11925 /* ??1?$basic_fstream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
11926 /* ??1?$basic_fstream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
11927 /* ??1?$basic_fstream@GU?$char_traits@G@std@@@std@@UAE@XZ */
11928 /* ??1?$basic_fstream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
11929 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_dtor
, 4)
11930 void __thiscall
basic_fstream_wchar_dtor(basic_ios_wchar
*base
)
11932 basic_fstream_wchar
*this = basic_fstream_wchar_from_basic_ios(base
);
11934 TRACE("(%p)\n", this);
11936 basic_iostream_wchar_dtor(basic_iostream_wchar_to_basic_ios(&this->base
));
11937 basic_filebuf_wchar_dtor(&this->filebuf
);
11940 /* ??_D?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
11941 /* ??_D?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
11942 /* ??_D?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
11943 /* ??_D?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
11944 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_vbase_dtor
, 4)
11945 void __thiscall
basic_fstream_wchar_vbase_dtor(basic_fstream_wchar
*this)
11947 TRACE("(%p)\n", this);
11949 basic_fstream_wchar_dtor(basic_fstream_wchar_to_basic_ios(this));
11950 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(&this->base
.base1
));
11953 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_vector_dtor
, 8)
11954 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
11956 basic_fstream_wchar
*this = basic_fstream_wchar_from_basic_ios(base
);
11958 TRACE("(%p %x)\n", this, flags
);
11961 /* we have an array, with the number of elements stored before the first object */
11962 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11964 for(i
=*ptr
-1; i
>=0; i
--)
11965 basic_fstream_wchar_vbase_dtor(this+i
);
11966 MSVCRT_operator_delete(ptr
);
11968 basic_fstream_wchar_vbase_dtor(this);
11970 MSVCRT_operator_delete(this);
11976 /* ?close@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
11977 /* ?close@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
11978 /* ?close@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
11979 /* ?close@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
11980 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_close
, 4)
11981 void __thiscall
basic_fstream_wchar_close(basic_fstream_wchar
*this)
11983 TRACE("(%p)\n", this);
11985 if(!basic_filebuf_wchar_close(&this->filebuf
)) {
11986 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
11987 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
11991 /* ?is_open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
11992 /* ?is_open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
11993 /* ?is_open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QBE_NXZ */
11994 /* ?is_open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
11995 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_is_open
, 4)
11996 MSVCP_bool __thiscall
basic_fstream_wchar_is_open(const basic_fstream_wchar
*this)
11998 TRACE("(%p)\n", this);
11999 return basic_filebuf_wchar_is_open(&this->filebuf
);
12002 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDH@Z */
12003 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDH@Z */
12004 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_open
, 12)
12005 void __thiscall
basic_fstream_wchar_open(basic_fstream_wchar
*this,
12006 const char *name
, int mode
)
12008 TRACE("(%p %s %d)\n", this, name
, mode
);
12010 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
, _SH_DENYNO
)) {
12011 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12012 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
12016 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDF@Z */
12017 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDF@Z */
12018 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_open_old
, 12)
12019 void __thiscall
basic_fstream_wchar_open_old(basic_fstream_wchar
*this,
12020 const char *name
, int mode
)
12022 basic_fstream_wchar_open(this, name
, mode
);
12025 /* ?rdbuf@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
12026 /* ?rdbuf@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
12027 /* ?rdbuf@?$basic_fstream@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
12028 /* ?rdbuf@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
12029 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_rdbuf
, 4)
12030 basic_filebuf_wchar
* __thiscall
basic_fstream_wchar_rdbuf(const basic_fstream_wchar
*this)
12032 TRACE("(%p)\n", this);
12033 return (basic_filebuf_wchar
*)&this->filebuf
;
12036 static inline basic_ios_char
* basic_ostringstream_char_to_basic_ios(basic_ostringstream_char
*ptr
)
12038 return (basic_ios_char
*)((char*)ptr
+basic_ostringstream_char_vbtable
[1]);
12041 static inline basic_ostringstream_char
* basic_ostringstream_char_from_basic_ios(basic_ios_char
*ptr
)
12043 return (basic_ostringstream_char
*)((char*)ptr
-basic_ostringstream_char_vbtable
[1]);
12046 /* ??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 */
12047 /* ??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 */
12048 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_ctor_str
, 16)
12049 basic_ostringstream_char
* __thiscall
basic_ostringstream_char_ctor_str(basic_ostringstream_char
*this,
12050 const basic_string_char
*str
, int mode
, MSVCP_bool virt_init
)
12052 basic_ios_char
*basic_ios
;
12054 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
12057 this->base
.vbtable
= basic_ostringstream_char_vbtable
;
12058 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
12059 basic_ios_char_ctor(basic_ios
);
12061 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
12064 basic_stringbuf_char_ctor_str(&this->strbuf
, str
, mode
|OPENMODE_out
);
12065 basic_ostream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
, TRUE
, FALSE
);
12066 basic_ios
->base
.vtable
= &MSVCP_basic_ostringstream_char_vtable
;
12070 /* ??0?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
12071 /* ??0?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
12072 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_ctor_mode
, 12)
12073 basic_ostringstream_char
* __thiscall
basic_ostringstream_char_ctor_mode(
12074 basic_ostringstream_char
*this, int mode
, MSVCP_bool virt_init
)
12076 basic_ios_char
*basic_ios
;
12078 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
12081 this->base
.vbtable
= basic_ostringstream_char_vbtable
;
12082 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
12083 basic_ios_char_ctor(basic_ios
);
12085 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
12088 basic_stringbuf_char_ctor_mode(&this->strbuf
, mode
|OPENMODE_out
);
12089 basic_ostream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
, TRUE
, FALSE
);
12090 basic_ios
->base
.vtable
= &MSVCP_basic_ostringstream_char_vtable
;
12094 /* ??_F?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
12095 /* ??_F?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
12096 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_ctor
, 4)
12097 basic_ostringstream_char
* __thiscall
basic_ostringstream_char_ctor(
12098 basic_ostringstream_char
*this)
12100 return basic_ostringstream_char_ctor_mode(this, 0, TRUE
);
12103 /* ??1?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
12104 /* ??1?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
12105 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_dtor
, 4)
12106 void __thiscall
basic_ostringstream_char_dtor(basic_ios_char
*base
)
12108 basic_ostringstream_char
*this = basic_ostringstream_char_from_basic_ios(base
);
12110 TRACE("(%p)\n", this);
12112 basic_stringbuf_char_dtor(&this->strbuf
);
12113 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&this->base
));
12116 /* ??_D?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
12117 /* ??_D?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
12118 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_vbase_dtor
, 4)
12119 void __thiscall
basic_ostringstream_char_vbase_dtor(basic_ostringstream_char
*this)
12121 TRACE("(%p)\n", this);
12123 basic_ostringstream_char_dtor(basic_ostringstream_char_to_basic_ios(this));
12124 basic_ios_char_dtor(basic_ostream_char_get_basic_ios(&this->base
));
12127 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_vector_dtor
, 8)
12128 basic_ostringstream_char
* __thiscall
basic_ostringstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
12130 basic_ostringstream_char
*this = basic_ostringstream_char_from_basic_ios(base
);
12132 TRACE("(%p %x)\n", this, flags
);
12135 /* we have an array, with the number of elements stored before the first object */
12136 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
12138 for(i
=*ptr
-1; i
>=0; i
--)
12139 basic_ostringstream_char_vbase_dtor(this+i
);
12140 MSVCRT_operator_delete(ptr
);
12142 basic_ostringstream_char_vbase_dtor(this);
12144 MSVCRT_operator_delete(this);
12150 /* ?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 */
12151 /* ?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 */
12152 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_rdbuf
, 4)
12153 basic_stringbuf_char
* __thiscall
basic_ostringstream_char_rdbuf(const basic_ostringstream_char
*this)
12155 TRACE("(%p)\n", this);
12156 return (basic_stringbuf_char
*)&this->strbuf
;
12159 /* ?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 */
12160 /* ?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 */
12161 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_str_set
, 8)
12162 void __thiscall
basic_ostringstream_char_str_set(basic_ostringstream_char
*this, const basic_string_char
*str
)
12164 TRACE("(%p %p)\n", this, str
);
12165 basic_stringbuf_char_str_set(&this->strbuf
, str
);
12168 /* ?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 */
12169 /* ?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 */
12170 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_str_get
, 8)
12171 basic_string_char
* __thiscall
basic_ostringstream_char_str_get(const basic_ostringstream_char
*this, basic_string_char
*ret
)
12173 TRACE("(%p %p)\n", this, ret
);
12174 return basic_stringbuf_char_str_get(&this->strbuf
, ret
);
12177 static inline basic_ios_wchar
* basic_ostringstream_wchar_to_basic_ios(basic_ostringstream_wchar
*ptr
)
12179 return (basic_ios_wchar
*)((char*)ptr
+basic_ostringstream_wchar_vbtable
[1]);
12182 static inline basic_ostringstream_wchar
* basic_ostringstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
12184 return (basic_ostringstream_wchar
*)((char*)ptr
-basic_ostringstream_wchar_vbtable
[1]);
12187 /* ??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 */
12188 /* ??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 */
12189 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_ctor_str
, 16)
12190 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_wchar_ctor_str(basic_ostringstream_wchar
*this,
12191 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
12193 basic_ios_wchar
*basic_ios
;
12195 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
12198 this->base
.vbtable
= basic_ostringstream_wchar_vbtable
;
12199 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
12200 basic_ios_wchar_ctor(basic_ios
);
12202 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
12205 basic_stringbuf_wchar_ctor_str(&this->strbuf
, str
, mode
|OPENMODE_out
);
12206 basic_ostream_short_ctor(&this->base
, &this->strbuf
.base
, FALSE
, TRUE
, FALSE
);
12207 basic_ios
->base
.vtable
= &MSVCP_basic_ostringstream_wchar_vtable
;
12211 /* ??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 */
12212 /* ??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 */
12213 DEFINE_THISCALL_WRAPPER(basic_ostringstream_short_ctor_str
, 16)
12214 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_short_ctor_str(basic_ostringstream_wchar
*this,
12215 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
12217 basic_ostringstream_wchar_ctor_str(this, str
, mode
, virt_init
);
12218 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ostringstream_short_vtable
;
12222 /* ??0?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
12223 /* ??0?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
12224 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_ctor_mode
, 12)
12225 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_wchar_ctor_mode(
12226 basic_ostringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
12228 basic_ios_wchar
*basic_ios
;
12230 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
12233 this->base
.vbtable
= basic_ostringstream_wchar_vbtable
;
12234 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
12235 basic_ios_wchar_ctor(basic_ios
);
12237 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
12240 basic_stringbuf_wchar_ctor_mode(&this->strbuf
, mode
|OPENMODE_out
);
12241 basic_ostream_short_ctor(&this->base
, &this->strbuf
.base
, FALSE
, TRUE
, FALSE
);
12242 basic_ios
->base
.vtable
= &MSVCP_basic_ostringstream_wchar_vtable
;
12246 /* ??0?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
12247 /* ??0?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
12248 DEFINE_THISCALL_WRAPPER(basic_ostringstream_short_ctor_mode
, 12)
12249 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_short_ctor_mode(
12250 basic_ostringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
12252 basic_ostringstream_wchar_ctor_mode(this, mode
, virt_init
);
12253 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ostringstream_short_vtable
;
12257 /* ??_F?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
12258 /* ??_F?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
12259 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_ctor
, 4)
12260 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_wchar_ctor(
12261 basic_ostringstream_wchar
*this)
12263 return basic_ostringstream_wchar_ctor_mode(this, 0, TRUE
);
12266 /* ??_F?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
12267 /* ??_F?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
12268 DEFINE_THISCALL_WRAPPER(basic_ostringstream_short_ctor
, 4)
12269 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_short_ctor(
12270 basic_ostringstream_wchar
*this)
12272 return basic_ostringstream_short_ctor_mode(this, 0, TRUE
);
12275 /* ??1?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
12276 /* ??1?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
12277 /* ??1?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
12278 /* ??1?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
12279 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_dtor
, 4)
12280 void __thiscall
basic_ostringstream_wchar_dtor(basic_ios_wchar
*base
)
12282 basic_ostringstream_wchar
*this = basic_ostringstream_wchar_from_basic_ios(base
);
12284 TRACE("(%p)\n", this);
12286 basic_stringbuf_wchar_dtor(&this->strbuf
);
12287 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(&this->base
));
12290 /* ??_D?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
12291 /* ??_D?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
12292 /* ??_D?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
12293 /* ??_D?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
12294 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_vbase_dtor
, 4)
12295 void __thiscall
basic_ostringstream_wchar_vbase_dtor(basic_ostringstream_wchar
*this)
12297 TRACE("(%p)\n", this);
12299 basic_ostringstream_wchar_dtor(basic_ostringstream_wchar_to_basic_ios(this));
12300 basic_ios_wchar_dtor(basic_ostream_wchar_get_basic_ios(&this->base
));
12303 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_vector_dtor
, 8)
12304 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
12306 basic_ostringstream_wchar
*this = basic_ostringstream_wchar_from_basic_ios(base
);
12308 TRACE("(%p %x)\n", this, flags
);
12311 /* we have an array, with the number of elements stored before the first object */
12312 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
12314 for(i
=*ptr
-1; i
>=0; i
--)
12315 basic_ostringstream_wchar_vbase_dtor(this+i
);
12316 MSVCRT_operator_delete(ptr
);
12318 basic_ostringstream_wchar_vbase_dtor(this);
12320 MSVCRT_operator_delete(this);
12326 /* ?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 */
12327 /* ?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 */
12328 /* ?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 */
12329 /* ?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 */
12330 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_rdbuf
, 4)
12331 basic_stringbuf_wchar
* __thiscall
basic_ostringstream_wchar_rdbuf(const basic_ostringstream_wchar
*this)
12333 TRACE("(%p)\n", this);
12334 return (basic_stringbuf_wchar
*)&this->strbuf
;
12337 /* ?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 */
12338 /* ?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 */
12339 /* ?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 */
12340 /* ?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 */
12341 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_str_set
, 8)
12342 void __thiscall
basic_ostringstream_wchar_str_set(basic_ostringstream_wchar
*this, const basic_string_wchar
*str
)
12344 TRACE("(%p %p)\n", this, str
);
12345 basic_stringbuf_wchar_str_set(&this->strbuf
, str
);
12348 /* ?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 */
12349 /* ?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 */
12350 /* ?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 */
12351 /* ?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 */
12352 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_str_get
, 8)
12353 basic_string_wchar
* __thiscall
basic_ostringstream_wchar_str_get(const basic_ostringstream_wchar
*this, basic_string_wchar
*ret
)
12355 TRACE("(%p %p)\n", this, ret
);
12356 return basic_stringbuf_wchar_str_get(&this->strbuf
, ret
);
12359 static inline basic_ios_char
* basic_istringstream_char_to_basic_ios(basic_istringstream_char
*ptr
)
12361 return (basic_ios_char
*)((char*)ptr
+basic_istringstream_char_vbtable
[1]);
12364 static inline basic_istringstream_char
* basic_istringstream_char_from_basic_ios(basic_ios_char
*ptr
)
12366 return (basic_istringstream_char
*)((char*)ptr
-basic_istringstream_char_vbtable
[1]);
12369 /* ??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 */
12370 /* ??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 */
12371 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_ctor_str
, 16)
12372 basic_istringstream_char
* __thiscall
basic_istringstream_char_ctor_str(basic_istringstream_char
*this,
12373 const basic_string_char
*str
, int mode
, MSVCP_bool virt_init
)
12375 basic_ios_char
*basic_ios
;
12377 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
12380 this->base
.vbtable
= basic_istringstream_char_vbtable
;
12381 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
12382 basic_ios_char_ctor(basic_ios
);
12384 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
12387 basic_stringbuf_char_ctor_str(&this->strbuf
, str
, mode
|OPENMODE_in
);
12388 basic_istream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
12389 basic_ios
->base
.vtable
= &MSVCP_basic_istringstream_char_vtable
;
12393 /* ??0?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
12394 /* ??0?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
12395 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_ctor_mode
, 12)
12396 basic_istringstream_char
* __thiscall
basic_istringstream_char_ctor_mode(
12397 basic_istringstream_char
*this, int mode
, MSVCP_bool virt_init
)
12399 basic_ios_char
*basic_ios
;
12401 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
12404 this->base
.vbtable
= basic_istringstream_char_vbtable
;
12405 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
12406 basic_ios_char_ctor(basic_ios
);
12408 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
12411 basic_stringbuf_char_ctor_mode(&this->strbuf
, mode
|OPENMODE_in
);
12412 basic_istream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
12413 basic_ios
->base
.vtable
= &MSVCP_basic_istringstream_char_vtable
;
12417 /* ??_F?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
12418 /* ??_F?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
12419 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_ctor
, 4)
12420 basic_istringstream_char
* __thiscall
basic_istringstream_char_ctor(
12421 basic_istringstream_char
*this)
12423 return basic_istringstream_char_ctor_mode(this, 0, TRUE
);
12426 /* ??1?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
12427 /* ??1?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
12428 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_dtor
, 4)
12429 void __thiscall
basic_istringstream_char_dtor(basic_ios_char
*base
)
12431 basic_istringstream_char
*this = basic_istringstream_char_from_basic_ios(base
);
12433 TRACE("(%p)\n", this);
12435 basic_stringbuf_char_dtor(&this->strbuf
);
12436 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&this->base
));
12439 /* ??_D?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
12440 /* ??_D?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
12441 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_vbase_dtor
, 4)
12442 void __thiscall
basic_istringstream_char_vbase_dtor(basic_istringstream_char
*this)
12444 TRACE("(%p)\n", this);
12446 basic_istringstream_char_dtor(basic_istringstream_char_to_basic_ios(this));
12447 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base
));
12450 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_vector_dtor
, 8)
12451 basic_istringstream_char
* __thiscall
basic_istringstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
12453 basic_istringstream_char
*this = basic_istringstream_char_from_basic_ios(base
);
12455 TRACE("(%p %x)\n", this, flags
);
12458 /* we have an array, with the number of elements stored before the first object */
12459 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
12461 for(i
=*ptr
-1; i
>=0; i
--)
12462 basic_istringstream_char_vbase_dtor(this+i
);
12463 MSVCRT_operator_delete(ptr
);
12465 basic_istringstream_char_vbase_dtor(this);
12467 MSVCRT_operator_delete(this);
12473 /* ?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 */
12474 /* ?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 */
12475 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_rdbuf
, 4)
12476 basic_stringbuf_char
* __thiscall
basic_istringstream_char_rdbuf(const basic_istringstream_char
*this)
12478 TRACE("(%p)\n", this);
12479 return (basic_stringbuf_char
*)&this->strbuf
;
12482 /* ?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 */
12483 /* ?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 */
12484 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_str_set
, 8)
12485 void __thiscall
basic_istringstream_char_str_set(basic_istringstream_char
*this, const basic_string_char
*str
)
12487 TRACE("(%p %p)\n", this, str
);
12488 basic_stringbuf_char_str_set(&this->strbuf
, str
);
12491 /* ?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 */
12492 /* ?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 */
12493 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_str_get
, 8)
12494 basic_string_char
* __thiscall
basic_istringstream_char_str_get(const basic_istringstream_char
*this, basic_string_char
*ret
)
12496 TRACE("(%p %p)\n", this, ret
);
12497 return basic_stringbuf_char_str_get(&this->strbuf
, ret
);
12500 static inline basic_ios_wchar
* basic_istringstream_wchar_to_basic_ios(basic_istringstream_wchar
*ptr
)
12502 return (basic_ios_wchar
*)((char*)ptr
+basic_istringstream_wchar_vbtable
[1]);
12505 static inline basic_istringstream_wchar
* basic_istringstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
12507 return (basic_istringstream_wchar
*)((char*)ptr
-basic_istringstream_wchar_vbtable
[1]);
12510 /* ??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 */
12511 /* ??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 */
12512 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_ctor_str
, 16)
12513 basic_istringstream_wchar
* __thiscall
basic_istringstream_wchar_ctor_str(basic_istringstream_wchar
*this,
12514 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
12516 basic_ios_wchar
*basic_ios
;
12518 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
12521 this->base
.vbtable
= basic_istringstream_wchar_vbtable
;
12522 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12523 basic_ios_wchar_ctor(basic_ios
);
12525 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12528 basic_stringbuf_wchar_ctor_str(&this->strbuf
, str
, mode
|OPENMODE_in
);
12529 basic_istream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
12530 basic_ios
->base
.vtable
= &MSVCP_basic_istringstream_wchar_vtable
;
12534 /* ??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 */
12535 /* ??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 */
12536 DEFINE_THISCALL_WRAPPER(basic_istringstream_short_ctor_str
, 16)
12537 basic_istringstream_wchar
* __thiscall
basic_istringstream_short_ctor_str(basic_istringstream_wchar
*this,
12538 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
12540 basic_istringstream_wchar_ctor_str(this, str
, mode
, virt_init
);
12541 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_istringstream_short_vtable
;
12545 /* ??0?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
12546 /* ??0?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
12547 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_ctor_mode
, 12)
12548 basic_istringstream_wchar
* __thiscall
basic_istringstream_wchar_ctor_mode(
12549 basic_istringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
12551 basic_ios_wchar
*basic_ios
;
12553 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
12556 this->base
.vbtable
= basic_istringstream_wchar_vbtable
;
12557 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12558 basic_ios_wchar_ctor(basic_ios
);
12560 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
12563 basic_stringbuf_wchar_ctor_mode(&this->strbuf
, mode
|OPENMODE_in
);
12564 basic_istream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
12565 basic_ios
->base
.vtable
= &MSVCP_basic_istringstream_wchar_vtable
;
12569 /* ??0?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
12570 /* ??0?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
12571 DEFINE_THISCALL_WRAPPER(basic_istringstream_short_ctor_mode
, 12)
12572 basic_istringstream_wchar
* __thiscall
basic_istringstream_short_ctor_mode(
12573 basic_istringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
12575 basic_istringstream_wchar_ctor_mode(this, mode
, virt_init
);
12576 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_istringstream_short_vtable
;
12580 /* ??_F?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
12581 /* ??_F?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
12582 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_ctor
, 4)
12583 basic_istringstream_wchar
* __thiscall
basic_istringstream_wchar_ctor(
12584 basic_istringstream_wchar
*this)
12586 return basic_istringstream_wchar_ctor_mode(this, 0, TRUE
);
12589 /* ??_F?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
12590 /* ??_F?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
12591 DEFINE_THISCALL_WRAPPER(basic_istringstream_short_ctor
, 4)
12592 basic_istringstream_wchar
* __thiscall
basic_istringstream_short_ctor(
12593 basic_istringstream_wchar
*this)
12595 return basic_istringstream_short_ctor_mode(this, 0, TRUE
);
12598 /* ??1?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
12599 /* ??1?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
12600 /* ??1?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
12601 /* ??1?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
12602 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_dtor
, 4)
12603 void __thiscall
basic_istringstream_wchar_dtor(basic_ios_wchar
*base
)
12605 basic_istringstream_wchar
*this = basic_istringstream_wchar_from_basic_ios(base
);
12607 TRACE("(%p)\n", this);
12609 basic_stringbuf_wchar_dtor(&this->strbuf
);
12610 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(&this->base
));
12613 /* ??_D?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
12614 /* ??_D?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
12615 /* ??_D?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
12616 /* ??_D?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
12617 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_vbase_dtor
, 4)
12618 void __thiscall
basic_istringstream_wchar_vbase_dtor(basic_istringstream_wchar
*this)
12620 TRACE("(%p)\n", this);
12622 basic_istringstream_wchar_dtor(basic_istringstream_wchar_to_basic_ios(this));
12623 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(&this->base
));
12626 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_vector_dtor
, 8)
12627 basic_istringstream_wchar
* __thiscall
basic_istringstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
12629 basic_istringstream_wchar
*this = basic_istringstream_wchar_from_basic_ios(base
);
12631 TRACE("(%p %x)\n", this, flags
);
12634 /* we have an array, with the number of elements stored before the first object */
12635 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
12637 for(i
=*ptr
-1; i
>=0; i
--)
12638 basic_istringstream_wchar_vbase_dtor(this+i
);
12639 MSVCRT_operator_delete(ptr
);
12641 basic_istringstream_wchar_vbase_dtor(this);
12643 MSVCRT_operator_delete(this);
12649 /* ?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 */
12650 /* ?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 */
12651 /* ?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 */
12652 /* ?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 */
12653 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_rdbuf
, 4)
12654 basic_stringbuf_wchar
* __thiscall
basic_istringstream_wchar_rdbuf(const basic_istringstream_wchar
*this)
12656 TRACE("(%p)\n", this);
12657 return (basic_stringbuf_wchar
*)&this->strbuf
;
12660 /* ?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 */
12661 /* ?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 */
12662 /* ?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 */
12663 /* ?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 */
12664 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_str_set
, 8)
12665 void __thiscall
basic_istringstream_wchar_str_set(basic_istringstream_wchar
*this, const basic_string_wchar
*str
)
12667 TRACE("(%p %p)\n", this, str
);
12668 basic_stringbuf_wchar_str_set(&this->strbuf
, str
);
12671 /* ?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 */
12672 /* ?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 */
12673 /* ?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 */
12674 /* ?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 */
12675 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_str_get
, 8)
12676 basic_string_wchar
* __thiscall
basic_istringstream_wchar_str_get(const basic_istringstream_wchar
*this, basic_string_wchar
*ret
)
12678 TRACE("(%p %p)\n", this, ret
);
12679 return basic_stringbuf_wchar_str_get(&this->strbuf
, ret
);
12682 static inline basic_ios_char
* basic_stringstream_char_to_basic_ios(basic_stringstream_char
*ptr
)
12684 return (basic_ios_char
*)((char*)ptr
+basic_stringstream_char_vbtable1
[1]);
12687 static inline basic_stringstream_char
* basic_stringstream_char_from_basic_ios(basic_ios_char
*ptr
)
12689 return (basic_stringstream_char
*)((char*)ptr
-basic_stringstream_char_vbtable1
[1]);
12692 /* ??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 */
12693 /* ??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 */
12694 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_ctor_str
, 16)
12695 basic_stringstream_char
* __thiscall
basic_stringstream_char_ctor_str(basic_stringstream_char
*this,
12696 const basic_string_char
*str
, int mode
, MSVCP_bool virt_init
)
12698 basic_ios_char
*basic_ios
;
12700 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
12703 this->base
.base1
.vbtable
= basic_stringstream_char_vbtable1
;
12704 this->base
.base2
.vbtable
= basic_stringstream_char_vbtable2
;
12705 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12706 basic_ios_char_ctor(basic_ios
);
12708 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12711 basic_stringbuf_char_ctor_str(&this->strbuf
, str
, mode
);
12712 basic_iostream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
);
12713 basic_ios
->base
.vtable
= &MSVCP_basic_stringstream_char_vtable
;
12717 /* ??0?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
12718 /* ??0?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
12719 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_ctor_mode
, 12)
12720 basic_stringstream_char
* __thiscall
basic_stringstream_char_ctor_mode(
12721 basic_stringstream_char
*this, int mode
, MSVCP_bool virt_init
)
12723 basic_ios_char
*basic_ios
;
12725 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
12728 this->base
.base1
.vbtable
= basic_stringstream_char_vbtable1
;
12729 this->base
.base2
.vbtable
= basic_stringstream_char_vbtable2
;
12730 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12731 basic_ios_char_ctor(basic_ios
);
12733 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
12736 basic_stringbuf_char_ctor_mode(&this->strbuf
, mode
);
12737 basic_iostream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
);
12738 basic_ios
->base
.vtable
= &MSVCP_basic_stringstream_char_vtable
;
12742 /* ??_F?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
12743 /* ??_F?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
12744 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_ctor
, 4)
12745 basic_stringstream_char
* __thiscall
basic_stringstream_char_ctor(
12746 basic_stringstream_char
*this)
12748 return basic_stringstream_char_ctor_mode(
12749 this, OPENMODE_out
|OPENMODE_in
, TRUE
);
12752 /* ??1?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
12753 /* ??1?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
12754 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_dtor
, 4)
12755 void __thiscall
basic_stringstream_char_dtor(basic_ios_char
*base
)
12757 basic_stringstream_char
*this = basic_stringstream_char_from_basic_ios(base
);
12759 TRACE("(%p)\n", this);
12761 basic_iostream_char_dtor(basic_iostream_char_to_basic_ios(&this->base
));
12762 basic_stringbuf_char_dtor(&this->strbuf
);
12765 /* ??_D?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
12766 /* ??_D?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
12767 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_vbase_dtor
, 4)
12768 void __thiscall
basic_stringstream_char_vbase_dtor(basic_stringstream_char
*this)
12770 TRACE("(%p)\n", this);
12772 basic_stringstream_char_dtor(basic_stringstream_char_to_basic_ios(this));
12773 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base
.base1
));
12776 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_vector_dtor
, 8)
12777 basic_stringstream_char
* __thiscall
basic_stringstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
12779 basic_stringstream_char
*this = basic_stringstream_char_from_basic_ios(base
);
12781 TRACE("(%p %x)\n", this, flags
);
12784 /* we have an array, with the number of elements stored before the first object */
12785 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
12787 for(i
=*ptr
-1; i
>=0; i
--)
12788 basic_stringstream_char_vbase_dtor(this+i
);
12789 MSVCRT_operator_delete(ptr
);
12791 basic_stringstream_char_vbase_dtor(this);
12793 MSVCRT_operator_delete(this);
12799 /* ?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 */
12800 /* ?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 */
12801 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_rdbuf
, 4)
12802 basic_stringbuf_char
* __thiscall
basic_stringstream_char_rdbuf(const basic_stringstream_char
*this)
12804 TRACE("(%p)\n", this);
12805 return (basic_stringbuf_char
*)&this->strbuf
;
12808 /* ?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 */
12809 /* ?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 */
12810 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_str_set
, 8)
12811 void __thiscall
basic_stringstream_char_str_set(basic_stringstream_char
*this, const basic_string_char
*str
)
12813 TRACE("(%p %p)\n", this, str
);
12814 basic_stringbuf_char_str_set(&this->strbuf
, str
);
12817 /* ?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 */
12818 /* ?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 */
12819 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_str_get
, 8)
12820 basic_string_char
* __thiscall
basic_stringstream_char_str_get(const basic_stringstream_char
*this, basic_string_char
*ret
)
12822 TRACE("(%p %p)\n", this, ret
);
12823 return basic_stringbuf_char_str_get(&this->strbuf
, ret
);
12826 static inline basic_ios_wchar
* basic_stringstream_wchar_to_basic_ios(basic_stringstream_wchar
*ptr
)
12828 return (basic_ios_wchar
*)((char*)ptr
+basic_stringstream_wchar_vbtable1
[1]);
12831 static inline basic_stringstream_wchar
* basic_stringstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
12833 return (basic_stringstream_wchar
*)((char*)ptr
-basic_stringstream_wchar_vbtable1
[1]);
12836 /* ??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 */
12837 /* ??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 */
12838 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_ctor_str
, 16)
12839 basic_stringstream_wchar
* __thiscall
basic_stringstream_wchar_ctor_str(basic_stringstream_wchar
*this,
12840 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
12842 basic_ios_wchar
*basic_ios
;
12844 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
12847 this->base
.base1
.vbtable
= basic_stringstream_wchar_vbtable1
;
12848 this->base
.base2
.vbtable
= basic_stringstream_wchar_vbtable2
;
12849 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12850 basic_ios_wchar_ctor(basic_ios
);
12852 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12855 basic_stringbuf_wchar_ctor_str(&this->strbuf
, str
, mode
);
12856 basic_iostream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
);
12857 basic_ios
->base
.vtable
= &MSVCP_basic_stringstream_wchar_vtable
;
12861 /* ??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 */
12862 /* ??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 */
12863 DEFINE_THISCALL_WRAPPER(basic_stringstream_short_ctor_str
, 16)
12864 basic_stringstream_wchar
* __thiscall
basic_stringstream_short_ctor_str(basic_stringstream_wchar
*this,
12865 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
12867 basic_stringstream_wchar_ctor_str(this, str
, mode
, virt_init
);
12868 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_stringstream_short_vtable
;
12872 /* ??0?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
12873 /* ??0?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
12874 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_ctor_mode
, 12)
12875 basic_stringstream_wchar
* __thiscall
basic_stringstream_wchar_ctor_mode(
12876 basic_stringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
12878 basic_ios_wchar
*basic_ios
;
12880 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
12883 this->base
.base1
.vbtable
= basic_stringstream_wchar_vbtable1
;
12884 this->base
.base2
.vbtable
= basic_stringstream_wchar_vbtable2
;
12885 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12886 basic_ios_wchar_ctor(basic_ios
);
12888 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
12891 basic_stringbuf_wchar_ctor_mode(&this->strbuf
, mode
);
12892 basic_iostream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
);
12893 basic_ios
->base
.vtable
= &MSVCP_basic_stringstream_wchar_vtable
;
12897 /* ??0?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
12898 /* ??0?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
12899 DEFINE_THISCALL_WRAPPER(basic_stringstream_short_ctor_mode
, 12)
12900 basic_stringstream_wchar
* __thiscall
basic_stringstream_short_ctor_mode(
12901 basic_stringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
12903 basic_stringstream_wchar_ctor_mode(this, mode
, virt_init
);
12904 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_stringstream_short_vtable
;
12908 /* ??_F?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
12909 /* ??_F?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
12910 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_ctor
, 4)
12911 basic_stringstream_wchar
* __thiscall
basic_stringstream_wchar_ctor(
12912 basic_stringstream_wchar
*this)
12914 return basic_stringstream_wchar_ctor_mode(
12915 this, OPENMODE_out
|OPENMODE_in
, TRUE
);
12918 /* ??_F?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
12919 /* ??_F?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
12920 DEFINE_THISCALL_WRAPPER(basic_stringstream_short_ctor
, 4)
12921 basic_stringstream_wchar
* __thiscall
basic_stringstream_short_ctor(
12922 basic_stringstream_wchar
*this)
12924 return basic_stringstream_short_ctor_mode(
12925 this, OPENMODE_out
|OPENMODE_in
, TRUE
);
12928 /* ??1?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
12929 /* ??1?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
12930 /* ??1?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
12931 /* ??1?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
12932 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_dtor
, 4)
12933 void __thiscall
basic_stringstream_wchar_dtor(basic_ios_wchar
*base
)
12935 basic_stringstream_wchar
*this = basic_stringstream_wchar_from_basic_ios(base
);
12937 TRACE("(%p)\n", this);
12939 basic_iostream_wchar_dtor(basic_iostream_wchar_to_basic_ios(&this->base
));
12940 basic_stringbuf_wchar_dtor(&this->strbuf
);
12943 /* ??_D?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
12944 /* ??_D?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
12945 /* ??_D?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
12946 /* ??_D?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
12947 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_vbase_dtor
, 4)
12948 void __thiscall
basic_stringstream_wchar_vbase_dtor(basic_stringstream_wchar
*this)
12950 TRACE("(%p)\n", this);
12952 basic_stringstream_wchar_dtor(basic_stringstream_wchar_to_basic_ios(this));
12953 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(&this->base
.base1
));
12956 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_vector_dtor
, 8)
12957 basic_stringstream_wchar
* __thiscall
basic_stringstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
12959 basic_stringstream_wchar
*this = basic_stringstream_wchar_from_basic_ios(base
);
12961 TRACE("(%p %x)\n", this, flags
);
12964 /* we have an array, with the number of elements stored before the first object */
12965 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
12967 for(i
=*ptr
-1; i
>=0; i
--)
12968 basic_stringstream_wchar_vbase_dtor(this+i
);
12969 MSVCRT_operator_delete(ptr
);
12971 basic_stringstream_wchar_vbase_dtor(this);
12973 MSVCRT_operator_delete(this);
12979 /* ?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 */
12980 /* ?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 */
12981 /* ?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 */
12982 /* ?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 */
12983 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_rdbuf
, 4)
12984 basic_stringbuf_wchar
* __thiscall
basic_stringstream_wchar_rdbuf(const basic_stringstream_wchar
*this)
12986 TRACE("(%p)\n", this);
12987 return (basic_stringbuf_wchar
*)&this->strbuf
;
12990 /* ?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 */
12991 /* ?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 */
12992 /* ?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 */
12993 /* ?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 */
12994 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_str_set
, 8)
12995 void __thiscall
basic_stringstream_wchar_str_set(basic_stringstream_wchar
*this, const basic_string_wchar
*str
)
12997 TRACE("(%p %p)\n", this, str
);
12998 basic_stringbuf_wchar_str_set(&this->strbuf
, str
);
13001 /* ?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 */
13002 /* ?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 */
13003 /* ?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 */
13004 /* ?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 */
13005 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_str_get
, 8)
13006 basic_string_wchar
* __thiscall
basic_stringstream_wchar_str_get(const basic_stringstream_wchar
*this, basic_string_wchar
*ret
)
13008 TRACE("(%p %p)\n", this, ret
);
13009 return basic_stringbuf_wchar_str_get(&this->strbuf
, ret
);
13012 /* ?_Init@strstreambuf@std@@IAEXHPAD0H@Z */
13013 /* ?_Init@strstreambuf@std@@IEAAX_JPEAD1H@Z */
13014 #if STREAMSIZE_BITS == 64
13015 DEFINE_THISCALL_WRAPPER(strstreambuf__Init
, 24)
13017 DEFINE_THISCALL_WRAPPER(strstreambuf__Init
, 20)
13019 void __thiscall
strstreambuf__Init(strstreambuf
*this, streamsize len
, char *g
, char *p
, int mode
)
13021 TRACE("(%p %s %p %p %d)\n", this, wine_dbgstr_longlong(len
), g
, p
, mode
);
13023 this->minsize
= 32;
13024 this->endsave
= NULL
;
13025 this->strmode
= mode
;
13026 this->palloc
= NULL
;
13027 this->pfree
= NULL
;
13030 this->strmode
|= STRSTATE_Dynamic
;
13031 if(len
> this->minsize
)
13032 this->minsize
= len
;
13033 this->seekhigh
= NULL
;
13042 this->seekhigh
= g
+len
;
13043 basic_streambuf_char_setg(&this->base
, g
, g
, p
? p
: this->seekhigh
);
13045 basic_streambuf_char_setp(&this->base
, p
, this->seekhigh
);
13048 /* ??0strstreambuf@std@@QAE@PACH0@Z */
13049 /* ??0strstreambuf@std@@QEAA@PEAC_J0@Z */
13050 /* ??0strstreambuf@std@@QAE@PADH0@Z */
13051 /* ??0strstreambuf@std@@QEAA@PEAD_J0@Z */
13052 /* ??0strstreambuf@std@@QAE@PAEH0@Z */
13053 /* ??0strstreambuf@std@@QEAA@PEAE_J0@Z */
13054 #if STREAMSIZE_BITS == 64
13055 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_get_put
, 20)
13057 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_get_put
, 16)
13059 strstreambuf
* __thiscall
strstreambuf_ctor_get_put(strstreambuf
*this, char *g
, streamsize len
, char *p
)
13061 TRACE("(%p %p %s %p)\n", this, g
, wine_dbgstr_longlong(len
), p
);
13063 basic_streambuf_char_ctor(&this->base
);
13064 this->base
.vtable
= &MSVCP_strstreambuf_vtable
;
13066 strstreambuf__Init(this, len
, g
, p
, 0);
13070 /* ??0strstreambuf@std@@QAE@H@Z */
13071 /* ??0strstreambuf@std@@QEAA@_J@Z */
13072 #if STREAMSIZE_BITS == 64
13073 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_len
, 12)
13075 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_len
, 8)
13077 strstreambuf
* __thiscall
strstreambuf_ctor_len(strstreambuf
*this, streamsize len
)
13079 return strstreambuf_ctor_get_put(this, NULL
, len
, NULL
);
13082 /* ??0strstreambuf@std@@QAE@P6APAXI@ZP6AXPAX@Z@Z */
13083 /* ??0strstreambuf@std@@QEAA@P6APEAX_K@ZP6AXPEAX@Z@Z */
13084 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_alloc
, 12)
13085 strstreambuf
* __thiscall
strstreambuf_ctor_alloc(strstreambuf
*this, void* (__cdecl
*palloc
)(MSVCP_size_t
), void (__cdecl
*pfree
)(void*))
13087 TRACE("(%p %p %p)\n", this, palloc
, pfree
);
13089 strstreambuf_ctor_get_put(this, NULL
, 0, NULL
);
13090 this->palloc
= palloc
;
13091 this->pfree
= pfree
;
13095 /* ??0strstreambuf@std@@QAE@PBCH@Z */
13096 /* ??0strstreambuf@std@@QEAA@PEBC_J@Z */
13097 /* ??0strstreambuf@std@@QAE@PBDH@Z */
13098 /* ??0strstreambuf@std@@QEAA@PEBD_J@Z */
13099 /* ??0strstreambuf@std@@QAE@PBEH@Z */
13100 /* ??0strstreambuf@std@@QEAA@PEBE_J@Z */
13101 #if STREAMSIZE_BITS == 64
13102 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_get
, 16)
13104 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_get
, 12)
13106 strstreambuf
* __thiscall
strstreambuf_ctor_get(strstreambuf
*this, const char *g
, streamsize len
)
13108 TRACE("(%p %p %s)\n", this, g
, wine_dbgstr_longlong(len
));
13110 strstreambuf_ctor_get_put(this, (char*)g
, len
, NULL
);
13111 this->strmode
|= STRSTATE_Constant
;
13115 /* ??_Fstrstreambuf@std@@QAEXXZ */
13116 /* ??_Fstrstreambuf@std@@QEAAXXZ */
13117 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor
, 4)
13118 strstreambuf
* __thiscall
strstreambuf_ctor(strstreambuf
*this)
13120 return strstreambuf_ctor_get_put(this, NULL
, 0, NULL
);
13123 /* ?_Tidy@strstreambuf@std@@IAEXXZ */
13124 /* ?_Tidy@strstreambuf@std@@IEAAXXZ */
13125 DEFINE_THISCALL_WRAPPER(strstreambuf__Tidy
, 4)
13126 void __thiscall
strstreambuf__Tidy(strstreambuf
*this)
13128 TRACE("(%p)\n", this);
13130 if((this->strmode
& STRSTATE_Allocated
) && !(this->strmode
& STRSTATE_Frozen
)) {
13132 this->pfree(basic_streambuf_char_eback(&this->base
));
13134 MSVCRT_operator_delete(basic_streambuf_char_eback(&this->base
));
13137 this->endsave
= NULL
;
13138 this->seekhigh
= NULL
;
13139 this->strmode
&= ~(STRSTATE_Allocated
| STRSTATE_Frozen
);
13140 basic_streambuf_char_setg(&this->base
, NULL
, NULL
, NULL
);
13141 basic_streambuf_char_setp(&this->base
, NULL
, NULL
);
13144 /* ??1strstreambuf@std@@UAE@XZ */
13145 /* ??1strstreambuf@std@@UEAA@XZ */
13146 DEFINE_THISCALL_WRAPPER(strstreambuf_dtor
, 4)
13147 void __thiscall
strstreambuf_dtor(strstreambuf
*this)
13149 TRACE("(%p)\n", this);
13151 strstreambuf__Tidy(this);
13152 basic_streambuf_char_dtor(&this->base
);
13155 DEFINE_THISCALL_WRAPPER(strstreambuf_vector_dtor
, 8)
13156 strstreambuf
* __thiscall
strstreambuf_vector_dtor(strstreambuf
*this, unsigned int flags
)
13158 TRACE("(%p %x)\n", this, flags
);
13160 /* we have an array, with the number of elements stored before the first object */
13161 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
13163 for(i
=*ptr
-1; i
>=0; i
--)
13164 strstreambuf_dtor(this+i
);
13165 MSVCRT_operator_delete(ptr
);
13167 strstreambuf_dtor(this);
13169 MSVCRT_operator_delete(this);
13175 /* ?freeze@strstreambuf@std@@QAEX_N@Z */
13176 /* ?freeze@strstreambuf@std@@QEAAX_N@Z */
13177 DEFINE_THISCALL_WRAPPER(strstreambuf_freeze
, 8)
13178 void __thiscall
strstreambuf_freeze(strstreambuf
*this, MSVCP_bool freeze
)
13180 TRACE("(%p %d)\n", this, freeze
);
13182 if(!freeze
== !(this->strmode
& STRSTATE_Frozen
))
13186 this->strmode
|= STRSTATE_Frozen
;
13187 this->endsave
= basic_streambuf_char_epptr(&this->base
);
13188 basic_streambuf_char_setp_next(&this->base
, basic_streambuf_char_pbase(&this->base
),
13189 basic_streambuf_char_pptr(&this->base
), basic_streambuf_char_eback(&this->base
));
13191 this->strmode
&= ~STRSTATE_Frozen
;
13192 basic_streambuf_char_setp_next(&this->base
, basic_streambuf_char_pbase(&this->base
),
13193 basic_streambuf_char_pptr(&this->base
), this->endsave
);
13197 /* ?str@strstreambuf@std@@QAEPADXZ */
13198 /* ?str@strstreambuf@std@@QEAAPEADXZ */
13199 DEFINE_THISCALL_WRAPPER(strstreambuf_str
, 4)
13200 char* __thiscall
strstreambuf_str(strstreambuf
*this)
13202 TRACE("(%p)\n", this);
13204 strstreambuf_freeze(this, TRUE
);
13205 return basic_streambuf_char_gptr(&this->base
);
13208 /* ?pcount@strstreambuf@std@@QBEHXZ */
13209 /* ?pcount@strstreambuf@std@@QEBA_JXZ */
13210 DEFINE_THISCALL_WRAPPER(strstreambuf_pcount
, 4)
13211 streamsize __thiscall
strstreambuf_pcount(const strstreambuf
*this)
13213 char *ppos
= basic_streambuf_char_pptr(&this->base
);
13215 TRACE("(%p)\n", this);
13217 return ppos
? ppos
-basic_streambuf_char_pbase(&this->base
) : 0;
13220 /* ?overflow@strstreambuf@std@@MAEHH@Z */
13221 /* ?overflow@strstreambuf@std@@MEAAHH@Z */
13222 DEFINE_THISCALL_WRAPPER(strstreambuf_overflow
, 8)
13223 int __thiscall
strstreambuf_overflow(strstreambuf
*this, int c
)
13225 MSVCP_size_t old_size
, size
;
13228 TRACE("(%p %d)\n", this, c
);
13233 if(this->strmode
& STRSTATE_Frozen
)
13236 ptr
= basic_streambuf_char_pptr(&this->base
);
13237 if(ptr
&& ptr
<basic_streambuf_char_epptr(&this->base
))
13238 return (unsigned char)(*basic_streambuf_char__Pninc(&this->base
) = c
);
13240 if(!(this->strmode
& STRSTATE_Dynamic
) || (this->strmode
& STRSTATE_Constant
))
13243 ptr
= basic_streambuf_char_eback(&this->base
);
13244 old_size
= ptr
? basic_streambuf_char_epptr(&this->base
) - ptr
: 0;
13246 size
= old_size
+ old_size
/2;
13247 if(size
< this->minsize
)
13248 size
= this->minsize
;
13251 buf
= this->palloc(size
);
13253 buf
= MSVCRT_operator_new(size
);
13257 memcpy(buf
, ptr
, old_size
);
13258 if(this->strmode
& STRSTATE_Allocated
) {
13262 MSVCRT_operator_delete(ptr
);
13265 this->strmode
|= STRSTATE_Allocated
;
13267 this->seekhigh
= buf
;
13268 basic_streambuf_char_setp(&this->base
, buf
, buf
+size
);
13269 basic_streambuf_char_setg(&this->base
, buf
, buf
, buf
);
13271 this->seekhigh
= this->seekhigh
-ptr
+buf
;
13272 basic_streambuf_char_setp_next(&this->base
, basic_streambuf_char_pbase(&this->base
)-ptr
+buf
,
13273 basic_streambuf_char_pptr(&this->base
)-ptr
+buf
, buf
+size
);
13274 basic_streambuf_char_setg(&this->base
, buf
, basic_streambuf_char_gptr(&this->base
)-ptr
+buf
,
13275 basic_streambuf_char_pptr(&this->base
));
13278 return (unsigned char)(*basic_streambuf_char__Pninc(&this->base
) = c
);
13281 /* ?pbackfail@strstreambuf@std@@MAEHH@Z */
13282 /* ?pbackfail@strstreambuf@std@@MEAAHH@Z */
13283 DEFINE_THISCALL_WRAPPER(strstreambuf_pbackfail
, 8)
13284 int __thiscall
strstreambuf_pbackfail(strstreambuf
*this, int c
)
13286 char *ptr
= basic_streambuf_char_gptr(&this->base
);
13288 TRACE("(%p %d)\n", this, c
);
13290 if(ptr
<=basic_streambuf_char_eback(&this->base
)
13291 || ((this->strmode
& STRSTATE_Constant
) && c
!=ptr
[-1]))
13294 basic_streambuf_char_gbump(&this->base
, -1);
13297 if(this->strmode
& STRSTATE_Constant
)
13298 return (unsigned char)c
;
13300 return (unsigned char)(ptr
[0] = c
);
13303 /* ?seekoff@strstreambuf@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
13304 /* ?seekoff@strstreambuf@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
13305 /* ?seekoff@strstreambuf@std@@MAE?AV?$fpos@H@2@JHH@Z */
13306 /* ?seekoff@strstreambuf@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
13307 #if STREAMOFF_BITS == 64
13308 DEFINE_THISCALL_WRAPPER(strstreambuf_seekoff
, 24)
13310 DEFINE_THISCALL_WRAPPER(strstreambuf_seekoff
, 20)
13312 fpos_int
* __thiscall
strstreambuf_seekoff(strstreambuf
*this, fpos_int
*ret
, streamoff off
, int way
, int mode
)
13314 char *eback
= basic_streambuf_char_eback(&this->base
);
13315 char *pptr
= basic_streambuf_char_pptr(&this->base
);
13316 char *gptr
= basic_streambuf_char_gptr(&this->base
);
13318 TRACE("(%p %p %s %d %d)\n", this, ret
, wine_dbgstr_longlong(off
), way
, mode
);
13323 if(pptr
> this->seekhigh
)
13324 this->seekhigh
= pptr
;
13326 if((mode
& OPENMODE_in
) && gptr
) {
13327 if(way
==SEEKDIR_cur
&& !(mode
& OPENMODE_out
))
13329 else if(way
== SEEKDIR_end
)
13330 off
+= this->seekhigh
-eback
;
13331 else if(way
!= SEEKDIR_beg
)
13334 if(off
<0 || off
>this->seekhigh
-eback
) {
13337 basic_streambuf_char_gbump(&this->base
, eback
-gptr
+off
);
13338 if((mode
& OPENMODE_out
) && pptr
) {
13339 basic_streambuf_char_setp_next(&this->base
, eback
,
13340 gptr
, basic_streambuf_char_epptr(&this->base
));
13343 }else if((mode
& OPENMODE_out
) && pptr
) {
13344 if(way
== SEEKDIR_cur
)
13346 else if(way
== SEEKDIR_end
)
13347 off
+= this->seekhigh
-eback
;
13348 else if(way
!= SEEKDIR_beg
)
13351 if(off
<0 || off
>this->seekhigh
-eback
)
13354 basic_streambuf_char_pbump(&this->base
, eback
-pptr
+off
);
13363 /* ?seekpos@strstreambuf@std@@MAE?AV?$fpos@H@2@V32@H@Z */
13364 /* ?seekpos@strstreambuf@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
13365 DEFINE_THISCALL_WRAPPER(strstreambuf_seekpos
, 36)
13366 fpos_int
* __thiscall
strstreambuf_seekpos(strstreambuf
*this, fpos_int
*ret
, fpos_int pos
, int mode
)
13368 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_int(&pos
), mode
);
13370 if(pos
.off
==-1 && pos
.pos
==0 && pos
.state
==0) {
13375 return strstreambuf_seekoff(this, ret
, pos
.pos
+pos
.off
, SEEKDIR_beg
, mode
);
13378 /* ?underflow@strstreambuf@std@@MAEHXZ */
13379 /* ?underflow@strstreambuf@std@@MEAAHXZ */
13380 DEFINE_THISCALL_WRAPPER(strstreambuf_underflow
, 4)
13381 int __thiscall
strstreambuf_underflow(strstreambuf
*this)
13383 char *gptr
= basic_streambuf_char_gptr(&this->base
);
13386 TRACE("(%p)\n", this);
13391 if(gptr
< basic_streambuf_char_egptr(&this->base
))
13392 return (unsigned char)(*gptr
);
13394 pptr
= basic_streambuf_char_gptr(&this->base
);
13395 if(pptr
> this->seekhigh
)
13396 this->seekhigh
= pptr
;
13398 if(this->seekhigh
<= gptr
)
13401 basic_streambuf_char_setg(&this->base
, basic_streambuf_char_eback(&this->base
),
13402 gptr
, this->seekhigh
);
13403 return (unsigned char)(*gptr
);
13406 static inline basic_ios_char
* ostrstream_to_basic_ios(ostrstream
*ptr
)
13408 return (basic_ios_char
*)((char*)ptr
+ostrstream_vbtable
[1]);
13411 static inline ostrstream
* ostrstream_from_basic_ios(basic_ios_char
*ptr
)
13413 return (ostrstream
*)((char*)ptr
-ostrstream_vbtable
[1]);
13416 /* ??0ostrstream@std@@QAE@PADHH@Z */
13417 #if STREAMSIZE_BITS == 64
13418 DEFINE_THISCALL_WRAPPER(ostrstream_ctor
, 24)
13420 DEFINE_THISCALL_WRAPPER(ostrstream_ctor
, 20)
13422 ostrstream
* __thiscall
ostrstream_ctor(ostrstream
*this, char *buf
, streamsize size
, int mode
, MSVCP_bool virt_init
)
13424 basic_ios_char
*basic_ios
;
13426 TRACE("(%p %p %s %d %d)\n", this, buf
, wine_dbgstr_longlong(size
), mode
, virt_init
);
13429 this->base
.vbtable
= ostrstream_vbtable
;
13430 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
13431 basic_ios_char_ctor(basic_ios
);
13433 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
13436 strstreambuf_ctor_get_put(&this->buf
, buf
, size
,
13437 buf
&& (mode
& OPENMODE_app
) ? buf
+strlen(buf
) : buf
);
13438 basic_ostream_char_ctor(&this->base
, &this->buf
.base
, FALSE
, TRUE
, FALSE
);
13439 basic_ios
->base
.vtable
= &MSVCP_ostrstream_vtable
;
13443 /* ??1ostrstream@std@@UAE@XZ */
13444 /* ??1ostrstream@std@@UEAA@XZ */
13445 DEFINE_THISCALL_WRAPPER(ostrstream_dtor
, 4)
13446 void __thiscall
ostrstream_dtor(basic_ios_char
*base
)
13448 ostrstream
*this = ostrstream_from_basic_ios(base
);
13450 TRACE("(%p)\n", this);
13452 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&this->base
));
13453 strstreambuf_dtor(&this->buf
);
13456 static void ostrstream_vbase_dtor(ostrstream
*this)
13458 TRACE("(%p)\n", this);
13460 ostrstream_dtor(ostrstream_to_basic_ios(this));
13461 basic_ios_char_dtor(basic_ostream_char_get_basic_ios(&this->base
));
13464 DEFINE_THISCALL_WRAPPER(ostrstream_vector_dtor
, 8)
13465 ostrstream
* __thiscall
ostrstream_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
13467 ostrstream
*this = ostrstream_from_basic_ios(base
);
13469 TRACE("(%p %x)\n", this, flags
);
13472 /* we have an array, with the number of elements stored before the first object */
13473 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
13475 for(i
=*ptr
-1; i
>=0; i
--)
13476 ostrstream_vbase_dtor(this+i
);
13477 MSVCRT_operator_delete(ptr
);
13479 ostrstream_vbase_dtor(this);
13481 MSVCRT_operator_delete(this);
13487 static inline istrstream
* istrstream_from_basic_ios(basic_ios_char
*ptr
)
13489 return (istrstream
*)((char*)ptr
-istrstream_vbtable
[1]);
13492 /* ??1istrstream@std@@UAE@XZ */
13493 /* ??1istrstream@std@@UEAA@XZ */
13494 DEFINE_THISCALL_WRAPPER(istrstream_dtor
, 4)
13495 void __thiscall
istrstream_dtor(basic_ios_char
*base
)
13497 istrstream
*this = istrstream_from_basic_ios(base
);
13499 TRACE("(%p)\n", this);
13501 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&this->base
));
13502 strstreambuf_dtor(&this->buf
);
13505 static inline basic_ios_char
* strstream_to_basic_ios(strstream
*ptr
)
13507 return (basic_ios_char
*)((char*)ptr
+strstream_vbtable1
[1]);
13510 static inline strstream
* strstream_from_basic_ios(basic_ios_char
*ptr
)
13512 return (strstream
*)((char*)ptr
-strstream_vbtable1
[1]);
13515 /* ??$?6MDU?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@ABV?$complex@M@0@@Z */
13516 /* ??$?6MDU?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@AEBV?$complex@M@0@@Z */
13517 basic_ostream_char
* __cdecl
basic_ostream_char_print_complex_float(basic_ostream_char
*ostr
, const complex_float
*val
)
13520 basic_ostringstream_char obj
;
13521 basic_ios_char vbase
;
13523 ios_base
*ostringstream_ios_base
, *ostream_ios_base
;
13525 basic_string_char str
;
13526 basic_ostringstream_char_ctor(&oss
.obj
);
13527 ostringstream_ios_base
= &oss
.vbase
.base
;
13528 ostream_ios_base
= &basic_ostream_char_get_basic_ios(ostr
)->base
;
13529 TRACE("(%p %p)\n", ostr
, val
);
13531 ios_base_imbue(ostringstream_ios_base
, &loc
, IOS_LOCALE(ostream_ios_base
));
13533 ios_base_precision_set(ostringstream_ios_base
, ios_base_precision_get(ostream_ios_base
));
13534 ios_base_flags_set(ostringstream_ios_base
, ios_base_flags_get(ostream_ios_base
));
13536 basic_ostream_char_print_ch(&oss
.obj
.base
, '(');
13537 basic_ostream_char_print_float(&oss
.obj
.base
, val
->real
);
13538 basic_ostream_char_print_ch(&oss
.obj
.base
, ',');
13539 basic_ostream_char_print_float(&oss
.obj
.base
, val
->imag
);
13540 basic_ostream_char_print_ch(&oss
.obj
.base
, ')');
13542 basic_ostringstream_char_str_get(&oss
.obj
, &str
);
13543 basic_ostringstream_char_dtor(&oss
.vbase
);
13544 basic_ostream_char_print_bstr(ostr
, &str
);
13545 MSVCP_basic_string_char_dtor(&str
);
13549 /* ??$?6NDU?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@ABV?$complex@N@0@@Z */
13550 /* ??$?6NDU?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@AEBV?$complex@N@0@@Z */
13551 basic_ostream_char
* __cdecl
basic_ostream_char_print_complex_double(basic_ostream_char
*ostr
, const complex_double
*val
)
13554 basic_ostringstream_char obj
;
13555 basic_ios_char vbase
;
13557 ios_base
*ostringstream_ios_base
, *ostream_ios_base
;
13559 basic_string_char str
;
13560 basic_ostringstream_char_ctor(&oss
.obj
);
13561 ostringstream_ios_base
= &oss
.vbase
.base
;
13562 ostream_ios_base
= &basic_ostream_char_get_basic_ios(ostr
)->base
;
13563 TRACE("(%p %p)\n", ostr
, val
);
13565 ios_base_imbue(ostringstream_ios_base
, &loc
, IOS_LOCALE(ostream_ios_base
));
13567 ios_base_precision_set(ostringstream_ios_base
, ios_base_precision_get(ostream_ios_base
));
13568 ios_base_flags_set(ostringstream_ios_base
, ios_base_flags_get(ostream_ios_base
));
13570 basic_ostream_char_print_ch(&oss
.obj
.base
, '(');
13571 basic_ostream_char_print_double(&oss
.obj
.base
, val
->real
);
13572 basic_ostream_char_print_ch(&oss
.obj
.base
, ',');
13573 basic_ostream_char_print_double(&oss
.obj
.base
, val
->imag
);
13574 basic_ostream_char_print_ch(&oss
.obj
.base
, ')');
13576 basic_ostringstream_char_str_get(&oss
.obj
, &str
);
13577 basic_ostringstream_char_dtor(&oss
.vbase
);
13578 basic_ostream_char_print_bstr(ostr
, &str
);
13579 MSVCP_basic_string_char_dtor(&str
);
13583 /* ??$?6odu?$char_traits@d@std@@@std@@yaaav?$basic_ostream@du?$char_traits@d@std@@@0@aav10@abv?$complex@o@0@@Z */
13584 /* ??$?6ODU?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@AEBV?$complex@O@0@@Z */
13585 basic_ostream_char
* __cdecl
basic_ostream_char_print_complex_ldouble(basic_ostream_char
*ostr
, const complex_double
*val
)
13588 basic_ostringstream_char obj
;
13589 basic_ios_char vbase
;
13591 ios_base
*ostringstream_ios_base
, *ostream_ios_base
;
13593 basic_string_char str
;
13594 basic_ostringstream_char_ctor(&oss
.obj
);
13595 ostringstream_ios_base
= &oss
.vbase
.base
;
13596 ostream_ios_base
= &basic_ostream_char_get_basic_ios(ostr
)->base
;
13597 TRACE("(%p %p)\n", ostr
, val
);
13599 ios_base_imbue(ostringstream_ios_base
, &loc
, IOS_LOCALE(ostream_ios_base
));
13601 ios_base_precision_set(ostringstream_ios_base
, ios_base_precision_get(ostream_ios_base
));
13602 ios_base_flags_set(ostringstream_ios_base
, ios_base_flags_get(ostream_ios_base
));
13604 basic_ostream_char_print_ch(&oss
.obj
.base
, '(');
13605 basic_ostream_char_print_ldouble(&oss
.obj
.base
, val
->real
);
13606 basic_ostream_char_print_ch(&oss
.obj
.base
, ',');
13607 basic_ostream_char_print_ldouble(&oss
.obj
.base
, val
->imag
);
13608 basic_ostream_char_print_ch(&oss
.obj
.base
, ')');
13610 basic_ostringstream_char_str_get(&oss
.obj
, &str
);
13611 basic_ostringstream_char_dtor(&oss
.vbase
);
13612 basic_ostream_char_print_bstr(ostr
, &str
);
13613 MSVCP_basic_string_char_dtor(&str
);
13617 /* ??0strstream@std@@QAE@PADHH@Z */
13618 /* ??0strstream@std@@QEAA@PEAD_JH@Z */
13619 #if STREAMSIZE_BITS == 64
13620 DEFINE_THISCALL_WRAPPER(strstream_ctor
, 24)
13622 DEFINE_THISCALL_WRAPPER(strstream_ctor
, 20)
13624 strstream
* __thiscall
strstream_ctor(strstream
*this, char *buf
, streamsize size
, int mode
, MSVCP_bool virt_init
)
13626 basic_ios_char
*basic_ios
;
13628 TRACE("(%p %p %s %d %d)\n", this, buf
, wine_dbgstr_longlong(size
), mode
, virt_init
);
13631 this->base
.base1
.vbtable
= strstream_vbtable1
;
13632 this->base
.base2
.vbtable
= strstream_vbtable2
;
13633 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
13634 basic_ios_char_ctor(basic_ios
);
13636 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
13639 strstreambuf_ctor_get_put(&this->buf
, buf
, size
,
13640 buf
&& (mode
& OPENMODE_app
) ? buf
+strlen(buf
) : buf
);
13641 basic_iostream_char_ctor(&this->base
, &this->buf
.base
, FALSE
);
13642 basic_ios
->base
.vtable
= &MSVCP_strstream_vtable
;
13646 /* ??1strstream@std@@UAE@XZ */
13647 /* ??1strstream@std@@UEAA@XZ */
13648 DEFINE_THISCALL_WRAPPER(strstream_dtor
, 4)
13649 void __thiscall
strstream_dtor(basic_ios_char
*base
)
13651 strstream
*this = strstream_from_basic_ios(base
);
13653 TRACE("(%p)\n", this);
13655 basic_iostream_char_dtor(basic_iostream_char_to_basic_ios(&this->base
));
13656 strstreambuf_dtor(&this->buf
);
13659 static void strstream_vbase_dtor(strstream
*this)
13661 TRACE("(%p)\n", this);
13663 strstream_dtor(strstream_to_basic_ios(this));
13664 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base
.base1
));
13667 DEFINE_THISCALL_WRAPPER(strstream_vector_dtor
, 8)
13668 strstream
* __thiscall
strstream_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
13670 strstream
*this = strstream_from_basic_ios(base
);
13672 TRACE("(%p %x)\n", this, flags
);
13675 /* we have an array, with the number of elements stored before the first object */
13676 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
13678 for(i
=*ptr
-1; i
>=0; i
--)
13679 strstream_vbase_dtor(this+i
);
13680 MSVCRT_operator_delete(ptr
);
13682 strstream_vbase_dtor(this);
13684 MSVCRT_operator_delete(this);
13690 static void __cdecl
setprecision_func(ios_base
*base
, streamsize prec
)
13692 ios_base_precision_set(base
, prec
);
13695 /* ?setprecision@std@@YA?AU?$_Smanip@H@1@H@Z */
13696 /* ?setprecision@std@@YA?AU?$_Smanip@_J@1@_J@Z */
13697 manip_streamsize
* __cdecl
setprecision(manip_streamsize
*ret
, streamsize prec
)
13699 TRACE("(%p %s)\n", ret
, wine_dbgstr_longlong(prec
));
13701 ret
->pfunc
= setprecision_func
;
13706 static void __cdecl
setw_func(ios_base
*base
, streamsize width
)
13708 ios_base_width_set(base
, width
);
13711 /* ?setw@std@@YA?AU?$_Smanip@H@1@H@Z */
13712 /* ?setw@std@@YA?AU?$_Smanip@_J@1@_J@Z */
13713 manip_streamsize
* __cdecl
setw(manip_streamsize
*ret
, streamsize width
)
13715 TRACE("(%p %s)\n", ret
, wine_dbgstr_longlong(width
));
13717 ret
->pfunc
= setw_func
;
13722 static void __cdecl
resetioflags_func(ios_base
*base
, int mask
)
13724 ios_base_setf_mask(base
, 0, mask
);
13727 /* ?resetiosflags@std@@YA?AU?$_Smanip@H@1@H@Z */
13728 manip_int
* __cdecl
resetiosflags(manip_int
*ret
, int mask
)
13730 TRACE("(%p %d)\n", ret
, mask
);
13732 ret
->pfunc
= resetioflags_func
;
13737 static void __cdecl
setiosflags_func(ios_base
*base
, int mask
)
13739 ios_base_setf_mask(base
, FMTFLAG_mask
, mask
);
13742 /* ?setiosflags@std@@YA?AU?$_Smanip@H@1@H@Z */
13743 manip_int
* __cdecl
setiosflags(manip_int
*ret
, int mask
)
13745 TRACE("(%p %d)\n", ret
, mask
);
13747 ret
->pfunc
= setiosflags_func
;
13752 static void __cdecl
setbase_func(ios_base
*base
, int set_base
)
13755 set_base
= FMTFLAG_dec
;
13756 else if(set_base
== 8)
13757 set_base
= FMTFLAG_oct
;
13758 else if(set_base
== 16)
13759 set_base
= FMTFLAG_hex
;
13763 ios_base_setf_mask(base
, set_base
, FMTFLAG_basefield
);
13766 /* ?setbase@std@@YA?AU?$_Smanip@H@1@H@Z */
13767 manip_int
* __cdecl
setbase(manip_int
*ret
, int base
)
13769 TRACE("(%p %d)\n", ret
, base
);
13771 ret
->pfunc
= setbase_func
;
13776 static basic_filebuf_char filebuf_char_stdin
;
13777 /* ?cin@std@@3V?$basic_istream@DU?$char_traits@D@std@@@1@A */
13779 basic_istream_char obj
;
13780 basic_ios_char vbase
;
13782 /* ?_Ptr_cin@std@@3PAV?$basic_istream@DU?$char_traits@D@std@@@1@A */
13783 /* ?_Ptr_cin@std@@3PEAV?$basic_istream@DU?$char_traits@D@std@@@1@EA */
13784 basic_istream_char
*_Ptr_cin
= &cin
.obj
;
13786 static basic_filebuf_wchar filebuf_short_stdin
;
13787 /* ?wcin@std@@3V?$basic_istream@GU?$char_traits@G@std@@@1@A */
13789 basic_istream_wchar obj
;
13790 basic_ios_wchar vbase
;
13791 } ucin
= { { 0 } };
13792 /* ?_Ptr_wcin@std@@3PAV?$basic_istream@GU?$char_traits@G@std@@@1@A */
13793 /* ?_Ptr_wcin@std@@3PEAV?$basic_istream@GU?$char_traits@G@std@@@1@EA */
13794 basic_istream_wchar
*_Ptr_ucin
= &ucin
.obj
;
13796 static basic_filebuf_wchar filebuf_wchar_stdin
;
13797 /* ?wcin@std@@3V?$basic_istream@_WU?$char_traits@_W@std@@@1@A */
13799 basic_istream_wchar obj
;
13800 basic_ios_wchar vbase
;
13801 } wcin
= { { 0 } };
13802 /* ?_Ptr_wcin@std@@3PAV?$basic_istream@_WU?$char_traits@_W@std@@@1@A */
13803 /* ?_Ptr_wcin@std@@3PEAV?$basic_istream@_WU?$char_traits@_W@std@@@1@EA */
13804 basic_istream_wchar
*_Ptr_wcin
= &wcin
.obj
;
13806 static basic_filebuf_char filebuf_char_stdout
;
13807 /* ?cout@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A */
13809 basic_ostream_char obj
;
13810 basic_ios_char vbase
;
13811 } cout
= { { 0 } };
13812 /* ?_Ptr_cout@std@@3PAV?$basic_ostream@DU?$char_traits@D@std@@@1@A */
13813 /* ?_Ptr_cout@std@@3PEAV?$basic_ostream@DU?$char_traits@D@std@@@1@EA */
13814 basic_ostream_char
*_Ptr_cout
= &cout
.obj
;
13816 static basic_filebuf_wchar filebuf_short_stdout
;
13817 /* ?wcout@std@@3V?$basic_ostream@GU?$char_traits@G@std@@@1@A */
13819 basic_ostream_wchar obj
;
13820 basic_ios_wchar vbase
;
13821 } ucout
= { { 0 } };
13822 /* ?_Ptr_wcout@std@@3PAV?$basic_ostream@GU?$char_traits@G@std@@@1@A */
13823 /* ?_Ptr_wcout@std@@3PEAV?$basic_ostream@GU?$char_traits@G@std@@@1@EA */
13824 basic_ostream_wchar
*_Ptr_ucout
= &ucout
.obj
;
13826 static basic_filebuf_wchar filebuf_wchar_stdout
;
13827 /* ?wcout@std@@3V?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
13829 basic_ostream_wchar obj
;
13830 basic_ios_wchar vbase
;
13831 } wcout
= { { 0 } };
13832 /* ?_Ptr_wcout@std@@3PAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
13833 /* ?_Ptr_wcout@std@@3PEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@EA */
13834 basic_ostream_wchar
*_Ptr_wcout
= &wcout
.obj
;
13836 static basic_filebuf_char filebuf_char_stderr
;
13837 /* ?cerr@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A */
13839 basic_ostream_char obj
;
13840 basic_ios_char vbase
;
13841 } cerr
= { { 0 } };
13842 /* ?_Ptr_cerr@std@@3PAV?$basic_ostream@DU?$char_traits@D@std@@@1@A */
13843 /* ?_Ptr_cerr@std@@3PEAV?$basic_ostream@DU?$char_traits@D@std@@@1@EA */
13844 basic_ostream_char
*_Ptr_cerr
= &cerr
.obj
;
13846 static basic_filebuf_wchar filebuf_short_stderr
;
13847 /* ?wcerr@std@@3V?$basic_ostream@GU?$char_traits@G@std@@@1@A */
13849 basic_ostream_wchar obj
;
13850 basic_ios_wchar vbase
;
13851 } ucerr
= { { 0 } };
13852 /* ?_Ptr_wcerr@std@@3PAV?$basic_ostream@GU?$char_traits@G@std@@@1@A */
13853 /* ?_Ptr_wcerr@std@@3PEAV?$basic_ostream@GU?$char_traits@G@std@@@1@EA */
13854 basic_ostream_wchar
*_Ptr_ucerr
= &ucerr
.obj
;
13856 static basic_filebuf_wchar filebuf_wchar_stderr
;
13857 /* ?wcerr@std@@3V?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
13859 basic_ostream_wchar obj
;
13860 basic_ios_wchar vbase
;
13861 } wcerr
= { { 0 } };
13862 /* ?_Ptr_wcerr@std@@3PAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
13863 /* ?_Ptr_wcerr@std@@3PEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@EA */
13864 basic_ostream_wchar
*_Ptr_wcerr
= &wcerr
.obj
;
13866 static basic_filebuf_char filebuf_char_log
;
13867 /* ?clog@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A */
13869 basic_ostream_char obj
;
13870 basic_ios_char vbase
;
13871 } MSVCP_clog
= { { 0 } };
13872 /* ?_Ptr_clog@std@@3PAV?$basic_ostream@DU?$char_traits@D@std@@@1@A */
13873 /* ?_Ptr_clog@std@@3PEAV?$basic_ostream@DU?$char_traits@D@std@@@1@EA */
13874 basic_ostream_char
*_Ptr_clog
= &MSVCP_clog
.obj
;
13876 static basic_filebuf_wchar filebuf_short_log
;
13877 /* ?wclog@std@@3V?$basic_ostream@GU?$char_traits@G@std@@@1@A */
13879 basic_ostream_wchar obj
;
13880 basic_ios_wchar vbase
;
13881 } uclog
= { { 0 } };
13882 /* ?_Ptr_wclog@std@@3PAV?$basic_ostream@GU?$char_traits@G@std@@@1@A */
13883 /* ?_Ptr_wclog@std@@3PEAV?$basic_ostream@GU?$char_traits@G@std@@@1@EA */
13884 basic_ostream_wchar
*_Ptr_uclog
= &uclog
.obj
;
13886 static basic_filebuf_wchar filebuf_wchar_log
;
13887 /* ?wclog@std@@3V?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
13889 basic_ostream_wchar obj
;
13890 basic_ios_wchar vbase
;
13891 } wclog
= { { 0 } };
13892 /* ?_Ptr_wclog@std@@3PAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
13893 /* ?_Ptr_wclog@std@@3PEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@EA */
13894 basic_ostream_wchar
*_Ptr_wclog
= &wclog
.obj
;
13896 /* ?_Init_cnt@Init@ios_base@std@@0HA */
13897 int ios_base_Init__Init_cnt
= -1;
13899 /* ?_Init_cnt_func@Init@ios_base@std@@CAAAHXZ */
13900 /* ?_Init_cnt_func@Init@ios_base@std@@CAAEAHXZ */
13901 int* __cdecl
ios_base_Init__Init_cnt_func(void)
13903 return &ios_base_Init__Init_cnt
;
13906 /* ?_Init_ctor@Init@ios_base@std@@CAXPAV123@@Z */
13907 /* ?_Init_ctor@Init@ios_base@std@@CAXPEAV123@@Z */
13908 void __cdecl
ios_base_Init__Init_ctor(void *this)
13910 TRACE("(%p)\n", this);
13912 if(ios_base_Init__Init_cnt
< 0)
13913 ios_base_Init__Init_cnt
= 1;
13915 ios_base_Init__Init_cnt
++;
13918 /* ??0Init@ios_base@std@@QAE@XZ */
13919 /* ??0Init@ios_base@std@@QEAA@XZ */
13920 DEFINE_THISCALL_WRAPPER(ios_base_Init_ctor
, 4)
13921 void* __thiscall
ios_base_Init_ctor(void *this)
13923 ios_base_Init__Init_ctor(this);
13927 /* ?_Init_dtor@Init@ios_base@std@@CAXPAV123@@Z */
13928 /* ?_Init_dtor@Init@ios_base@std@@CAXPEAV123@@Z */
13929 void __cdecl
ios_base_Init__Init_dtor(void *this)
13931 TRACE("(%p)\n", this);
13933 ios_base_Init__Init_cnt
--;
13934 if(!ios_base_Init__Init_cnt
) {
13935 basic_ostream_char_flush(&cout
.obj
);
13936 basic_ostream_char_flush(&cerr
.obj
);
13937 basic_ostream_char_flush(&MSVCP_clog
.obj
);
13941 /* ??1Init@ios_base@std@@QAE@XZ */
13942 /* ??1Init@ios_base@std@@QEAA@XZ */
13943 DEFINE_THISCALL_WRAPPER(ios_base_Init_dtor
, 4)
13944 void __thiscall
ios_base_Init_dtor(void *this)
13946 ios_base_Init__Init_dtor(this);
13949 /* ??4Init@ios_base@std@@QAEAAV012@ABV012@@Z */
13950 /* ??4Init@ios_base@std@@QEAAAEAV012@AEBV012@@Z */
13951 DEFINE_THISCALL_WRAPPER(ios_base_Init_op_assign
, 8)
13952 void* __thiscall
ios_base_Init_op_assign(void *this, void *rhs
)
13954 TRACE("(%p %p)\n", this, rhs
);
13958 /* ?_Init_cnt@_Winit@std@@0HA */
13959 int _Winit__Init_cnt
= -1;
13961 /* ??0_Winit@std@@QAE@XZ */
13962 /* ??0_Winit@std@@QEAA@XZ */
13963 DEFINE_THISCALL_WRAPPER(_Winit_ctor
, 4)
13964 void* __thiscall
_Winit_ctor(void *this)
13966 TRACE("(%p)\n", this);
13968 if(_Winit__Init_cnt
< 0)
13969 _Winit__Init_cnt
= 1;
13971 _Winit__Init_cnt
++;
13976 /* ??1_Winit@std@@QAE@XZ */
13977 /* ??1_Winit@std@@QAE@XZ */
13978 DEFINE_THISCALL_WRAPPER(_Winit_dtor
, 4)
13979 void __thiscall
_Winit_dtor(void *this)
13981 TRACE("(%p)\n", this);
13983 _Winit__Init_cnt
--;
13984 if(!_Winit__Init_cnt
) {
13985 basic_ostream_wchar_flush(&wcout
.obj
);
13986 basic_ostream_wchar_flush(&wcerr
.obj
);
13987 basic_ostream_wchar_flush(&wclog
.obj
);
13991 /* ??4_Winit@std@@QAEAAV01@ABV01@@Z */
13992 /* ??4_Winit@std@@QEAAAEAV01@AEBV01@@Z */
13993 DEFINE_THISCALL_WRAPPER(_Winit_op_assign
, 8)
13994 void* __thiscall
_Winit_op_assign(void *this, void *rhs
)
13996 TRACE("(%p %p)\n", this, rhs
);
14000 void init_io(void *base
)
14003 init_iosb_rtti(base
);
14004 init_ios_base_rtti(base
);
14005 init_basic_ios_char_rtti(base
);
14006 init_basic_ios_wchar_rtti(base
);
14007 init_basic_ios_short_rtti(base
);
14008 init_basic_streambuf_char_rtti(base
);
14009 init_basic_streambuf_wchar_rtti(base
);
14010 init_basic_streambuf_short_rtti(base
);
14011 init_basic_filebuf_char_rtti(base
);
14012 init_basic_filebuf_wchar_rtti(base
);
14013 init_basic_filebuf_short_rtti(base
);
14014 init_basic_stringbuf_char_rtti(base
);
14015 init_basic_stringbuf_wchar_rtti(base
);
14016 init_basic_stringbuf_short_rtti(base
);
14017 init_basic_ostream_char_rtti(base
);
14018 init_basic_ostream_wchar_rtti(base
);
14019 init_basic_ostream_short_rtti(base
);
14020 init_basic_istream_char_rtti(base
);
14021 init_basic_istream_wchar_rtti(base
);
14022 init_basic_istream_short_rtti(base
);
14023 init_basic_iostream_char_rtti(base
);
14024 init_basic_iostream_wchar_rtti(base
);
14025 init_basic_iostream_short_rtti(base
);
14026 init_basic_ofstream_char_rtti(base
);
14027 init_basic_ofstream_wchar_rtti(base
);
14028 init_basic_ofstream_short_rtti(base
);
14029 init_basic_ifstream_char_rtti(base
);
14030 init_basic_ifstream_wchar_rtti(base
);
14031 init_basic_ifstream_short_rtti(base
);
14032 init_basic_fstream_char_rtti(base
);
14033 init_basic_fstream_wchar_rtti(base
);
14034 init_basic_fstream_short_rtti(base
);
14035 init_basic_ostringstream_char_rtti(base
);
14036 init_basic_ostringstream_wchar_rtti(base
);
14037 init_basic_ostringstream_short_rtti(base
);
14038 init_basic_istringstream_char_rtti(base
);
14039 init_basic_istringstream_wchar_rtti(base
);
14040 init_basic_istringstream_short_rtti(base
);
14041 init_basic_stringstream_char_rtti(base
);
14042 init_basic_stringstream_wchar_rtti(base
);
14043 init_basic_stringstream_short_rtti(base
);
14044 init_strstreambuf_rtti(base
);
14045 init_strstream_rtti(base
);
14046 init_ostrstream_rtti(base
);
14049 basic_filebuf_char_ctor_file(&filebuf_char_stdin
, stdin
);
14050 basic_istream_char_ctor(&cin
.obj
, &filebuf_char_stdin
.base
, FALSE
/*FIXME*/, TRUE
);
14052 basic_filebuf_short_ctor_file(&filebuf_short_stdin
, stdin
);
14053 basic_istream_short_ctor(&ucin
.obj
, &filebuf_short_stdin
.base
, FALSE
/*FIXME*/, TRUE
);
14055 basic_filebuf_wchar_ctor_file(&filebuf_wchar_stdin
, stdin
);
14056 basic_istream_wchar_ctor(&wcin
.obj
, &filebuf_wchar_stdin
.base
, FALSE
/*FIXME*/, TRUE
);
14058 basic_filebuf_char_ctor_file(&filebuf_char_stdout
, stdout
);
14059 basic_ostream_char_ctor(&cout
.obj
, &filebuf_char_stdout
.base
, FALSE
/*FIXME*/, TRUE
, TRUE
);
14061 basic_filebuf_short_ctor_file(&filebuf_short_stdout
, stdout
);
14062 basic_ostream_short_ctor(&ucout
.obj
, &filebuf_short_stdout
.base
, FALSE
/*FIXME*/, TRUE
, TRUE
);
14064 basic_filebuf_wchar_ctor_file(&filebuf_wchar_stdout
, stdout
);
14065 basic_ostream_short_ctor(&wcout
.obj
, &filebuf_wchar_stdout
.base
, FALSE
/*FIXME*/, TRUE
, TRUE
);
14067 basic_filebuf_char_ctor_file(&filebuf_char_stderr
, stderr
);
14068 basic_ostream_char_ctor(&cerr
.obj
, &filebuf_char_stderr
.base
, FALSE
/*FIXME*/, TRUE
, TRUE
);
14070 basic_filebuf_short_ctor_file(&filebuf_short_stderr
, stderr
);
14071 basic_ostream_short_ctor(&ucerr
.obj
, &filebuf_short_stderr
.base
, FALSE
/*FIXME*/, TRUE
, TRUE
);
14073 basic_filebuf_wchar_ctor_file(&filebuf_wchar_stderr
, stderr
);
14074 basic_ostream_short_ctor(&wcerr
.obj
, &filebuf_wchar_stderr
.base
, FALSE
/*FIXME*/, TRUE
, TRUE
);
14076 basic_filebuf_char_ctor_file(&filebuf_char_log
, stderr
);
14077 basic_ostream_char_ctor(&MSVCP_clog
.obj
, &filebuf_char_log
.base
, FALSE
/*FIXME*/, TRUE
, TRUE
);
14079 basic_filebuf_short_ctor_file(&filebuf_short_log
, stderr
);
14080 basic_ostream_short_ctor(&uclog
.obj
, &filebuf_short_log
.base
, FALSE
/*FIXME*/, TRUE
, TRUE
);
14082 basic_filebuf_wchar_ctor_file(&filebuf_wchar_log
, stderr
);
14083 basic_ostream_short_ctor(&wclog
.obj
, &filebuf_wchar_log
.base
, FALSE
/*FIXME*/, TRUE
, TRUE
);
14088 basic_istream_char_vbase_dtor(&cin
.obj
);
14089 basic_filebuf_char_dtor(&filebuf_char_stdin
);
14091 basic_istream_wchar_vbase_dtor(&ucin
.obj
);
14092 basic_filebuf_wchar_dtor(&filebuf_short_stdin
);
14094 basic_istream_wchar_vbase_dtor(&wcin
.obj
);
14095 basic_filebuf_wchar_dtor(&filebuf_wchar_stdin
);
14097 basic_ostream_char_vbase_dtor(&cout
.obj
);
14098 basic_filebuf_char_dtor(&filebuf_char_stdout
);
14100 basic_ostream_wchar_vbase_dtor(&ucout
.obj
);
14101 basic_filebuf_wchar_dtor(&filebuf_short_stdout
);
14103 basic_ostream_wchar_vbase_dtor(&wcout
.obj
);
14104 basic_filebuf_wchar_dtor(&filebuf_wchar_stdout
);
14106 basic_ostream_char_vbase_dtor(&cerr
.obj
);
14107 basic_filebuf_char_dtor(&filebuf_char_stderr
);
14109 basic_ostream_wchar_vbase_dtor(&ucerr
.obj
);
14110 basic_filebuf_wchar_dtor(&filebuf_short_stderr
);
14112 basic_ostream_wchar_vbase_dtor(&wcerr
.obj
);
14113 basic_filebuf_wchar_dtor(&filebuf_wchar_stderr
);
14115 basic_ostream_char_vbase_dtor(&MSVCP_clog
.obj
);
14116 basic_filebuf_char_dtor(&filebuf_char_log
);
14118 basic_ostream_wchar_vbase_dtor(&uclog
.obj
);
14119 basic_filebuf_wchar_dtor(&filebuf_short_log
);
14121 basic_ostream_wchar_vbase_dtor(&wclog
.obj
);
14122 basic_filebuf_wchar_dtor(&filebuf_wchar_log
);