2 * Copyright 2011 Piotr Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
30 #include "wine/debug.h"
31 WINE_DEFAULT_DEBUG_CHANNEL(msvcp
);
33 /* ?_Index@ios_base@std@@0HA */
34 int ios_base_Index
= 0;
35 /* ?_Sync@ios_base@std@@0_NA */
36 MSVCP_bool ios_base_Sync
= FALSE
;
40 __int64
DECLSPEC_ALIGN(8) pos
;
44 static inline const char* debugstr_fpos_int(fpos_int
*fpos
)
46 return wine_dbg_sprintf("fpos(%ld %s %d)", fpos
->off
, wine_dbgstr_longlong(fpos
->pos
), fpos
->state
);
50 void (__cdecl
*pfunc
)(ios_base
*, streamsize
);
55 void (__cdecl
*pfunc
)(ios_base
*, int);
63 } basic_filebuf__Initfl
;
66 basic_streambuf_char base
;
70 basic_string_char
*str
;
77 basic_streambuf_wchar base
;
81 basic_string_char
*str
;
85 } basic_filebuf_wchar
;
88 STRINGBUF_allocated
= 1,
89 STRINGBUF_no_write
= 2,
90 STRINGBUF_no_read
= 4,
93 } basic_stringbuf_state
;
96 basic_streambuf_char base
;
101 char allocator
; /* empty struct */
102 } basic_stringbuf_char
;
105 basic_streambuf_wchar base
;
110 char allocator
; /* empty struct */
111 } basic_stringbuf_wchar
;
115 basic_streambuf_char
*strbuf
;
116 struct _basic_ostream_char
*stream
;
122 basic_streambuf_wchar
*strbuf
;
123 struct _basic_ostream_wchar
*stream
;
127 typedef struct _basic_ostream_char
{
129 /* virtual inheritance
130 * basic_ios_char basic_ios;
132 } basic_ostream_char
;
134 typedef struct _basic_ostream_wchar
{
136 /* virtual inheritance
137 * basic_ios_wchar basic_ios;
139 } basic_ostream_wchar
;
144 /* virtual inheritance
145 * basic_ios_char basic_ios;
147 } basic_istream_char
;
152 /* virtual inheritance
153 * basic_ios_wchar basic_ios;
155 } basic_istream_wchar
;
158 basic_istream_char base1
;
159 basic_ostream_char base2
;
160 /* virtual inheritance
161 * basic_ios_char basic_ios;
163 } basic_iostream_char
;
166 basic_istream_wchar base1
;
167 basic_ostream_wchar base2
;
168 /* virtual inheritance
169 * basic_ios_wchar basic_ios;
171 } basic_iostream_wchar
;
174 basic_ostream_char base
;
175 basic_filebuf_char filebuf
;
176 /* virtual inheritance
177 * basic_ios_char basic_ios;
179 } basic_ofstream_char
;
182 basic_ostream_wchar base
;
183 basic_filebuf_wchar filebuf
;
184 /* virtual inheritance
185 * basic_ios_wchar basic_ios;
187 } basic_ofstream_wchar
;
190 basic_istream_char base
;
191 basic_filebuf_char filebuf
;
192 /* virtual inheritance
193 * basic_ios_char basic_ios;
195 } basic_ifstream_char
;
198 basic_istream_wchar base
;
199 basic_filebuf_wchar filebuf
;
200 /* virtual inheritance
201 * basic_ios_wchar basic_ios;
203 } basic_ifstream_wchar
;
206 basic_iostream_char base
;
207 basic_filebuf_char filebuf
;
208 /* virtual inheritance
209 * basic_ios_char basic_ios;
211 } basic_fstream_char
;
214 basic_iostream_wchar base
;
215 basic_filebuf_wchar filebuf
;
216 /* virtual inheritance
217 * basic_ios_char basic_ios;
219 } basic_fstream_wchar
;
222 basic_ostream_char base
;
223 basic_stringbuf_char strbuf
;
224 /* virtual inheritance
225 * basic_ios_char basic_ios;
227 } basic_ostringstream_char
;
230 basic_ostream_wchar base
;
231 basic_stringbuf_wchar strbuf
;
232 /* virtual inheritance
233 * basic_ios_wchar basic_ios;
235 } basic_ostringstream_wchar
;
238 basic_istream_char base
;
239 basic_stringbuf_char strbuf
;
240 /* virtual inheritance
241 * basic_ios_char basic_ios;
243 } basic_istringstream_char
;
246 basic_istream_wchar base
;
247 basic_stringbuf_wchar strbuf
;
248 /* virtual inheritance
249 * basic_ios_wchar basic_ios;
251 } basic_istringstream_wchar
;
254 basic_iostream_char base
;
255 basic_stringbuf_char strbuf
;
256 /* virtual inheritance
257 * basic_ios_char basic_ios;
259 } basic_stringstream_char
;
262 basic_iostream_wchar base
;
263 basic_stringbuf_wchar strbuf
;
264 /* virtual inheritance
265 * basic_ios_wchar basic_ios;
267 } basic_stringstream_wchar
;
270 STRSTATE_Allocated
= 1,
271 STRSTATE_Constant
= 2,
272 STRSTATE_Dynamic
= 4,
274 } strstreambuf__Strstate
;
277 basic_streambuf_char base
;
282 void* (__cdecl
*palloc
)(MSVCP_size_t
);
283 void (__cdecl
*pfree
)(void*);
287 basic_ostream_char base
;
289 /* virtual inheritance
290 * basic_ios_char basic_ios;
295 basic_istream_char base
;
297 /* virtual inheritance
298 * basic_ios_char basic_ios;
303 basic_iostream_char base
;
305 /* virtual inheritance
306 * basic_ios_char basic_ios;
310 extern const vtable_ptr MSVCP_iosb_vtable
;
312 /* ??_7ios_base@std@@6B@ */
313 extern const vtable_ptr MSVCP_ios_base_vtable
;
315 /* ??_7?$basic_ios@DU?$char_traits@D@std@@@std@@6B@ */
316 extern const vtable_ptr MSVCP_basic_ios_char_vtable
;
318 /* ??_7?$basic_ios@_WU?$char_traits@_W@std@@@std@@6B@ */
319 extern const vtable_ptr MSVCP_basic_ios_wchar_vtable
;
321 /* ??_7?$basic_ios@GU?$char_traits@G@std@@@std@@6B@ */
322 extern const vtable_ptr MSVCP_basic_ios_short_vtable
;
324 /* ??_7?$basic_streambuf@DU?$char_traits@D@std@@@std@@6B@ */
325 extern const vtable_ptr MSVCP_basic_streambuf_char_vtable
;
327 /* ??_7?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@6B@ */
328 extern const vtable_ptr MSVCP_basic_streambuf_wchar_vtable
;
330 /* ??_7?$basic_streambuf@GU?$char_traits@G@std@@@std@@6B@ */
331 extern const vtable_ptr MSVCP_basic_streambuf_short_vtable
;
333 /* ??_7?$basic_filebuf@DU?$char_traits@D@std@@@std@@6B@ */
334 extern const vtable_ptr MSVCP_basic_filebuf_char_vtable
;
336 /* ??_7?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@6B@ */
337 extern const vtable_ptr MSVCP_basic_filebuf_wchar_vtable
;
339 /* ??_7?$basic_filebuf@GU?$char_traits@G@std@@@std@@6B@ */
340 extern const vtable_ptr MSVCP_basic_filebuf_short_vtable
;
342 /* ??_7?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
343 extern const vtable_ptr MSVCP_basic_stringbuf_char_vtable
;
345 /* ??_7?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
346 extern const vtable_ptr MSVCP_basic_stringbuf_wchar_vtable
;
348 /* ??_7?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
349 extern const vtable_ptr MSVCP_basic_stringbuf_short_vtable
;
351 /* ??_8?$basic_ostream@DU?$char_traits@D@std@@@std@@7B@ */
352 const int basic_ostream_char_vbtable
[] = {0, sizeof(basic_ostream_char
)};
353 /* ??_7?$basic_ostream@DU?$char_traits@D@std@@@std@@6B@ */
354 extern const vtable_ptr MSVCP_basic_ostream_char_vtable
;
356 /* ??_8?$basic_ostream@_WU?$char_traits@_W@std@@@std@@7B@ */
357 const int basic_ostream_wchar_vbtable
[] = {0, sizeof(basic_ostream_wchar
)};
358 /* ??_7?$basic_ostream@_WU?$char_traits@_W@std@@@std@@6B@ */
359 extern const vtable_ptr MSVCP_basic_ostream_wchar_vtable
;
361 /* ??_8?$basic_ostream@GU?$char_traits@G@std@@@std@@7B@ */
362 const int basic_ostream_short_vbtable
[] = {0, sizeof(basic_ostream_wchar
)};
363 /* ??_7?$basic_ostream@GU?$char_traits@G@std@@@std@@6B@ */
364 extern const vtable_ptr MSVCP_basic_ostream_short_vtable
;
366 /* ??_8?$basic_istream@DU?$char_traits@D@std@@@std@@7B@ */
367 const int basic_istream_char_vbtable
[] = {0, sizeof(basic_istream_char
)};
368 /* ??_7?$basic_istream@DU?$char_traits@D@std@@@std@@6B@ */
369 extern const vtable_ptr MSVCP_basic_istream_char_vtable
;
371 /* ??_8?$basic_istream@_WU?$char_traits@_W@std@@@std@@7B@ */
372 const int basic_istream_wchar_vbtable
[] = {0, sizeof(basic_istream_wchar
)};
373 /* ??_7?$basic_istream@_WU?$char_traits@_W@std@@@std@@6B@ */
374 extern const vtable_ptr MSVCP_basic_istream_wchar_vtable
;
376 /* ??_8?$basic_istream@GU?$char_traits@G@std@@@std@@7B@ */
377 const int basic_istream_short_vbtable
[] = {0, sizeof(basic_istream_wchar
)};
378 /* ??_7?$basic_istream@GU?$char_traits@G@std@@@std@@6B@ */
379 extern const vtable_ptr MSVCP_basic_istream_short_vtable
;
381 /* ??_8?$basic_iostream@DU?$char_traits@D@std@@@std@@7B?$basic_istream@DU?$char_traits@D@std@@@1@@ */
382 const int basic_iostream_char_vbtable1
[] = {0, sizeof(basic_iostream_char
)};
383 /* ??_8?$basic_iostream@DU?$char_traits@D@std@@@std@@7B?$basic_ostream@DU?$char_traits@D@std@@@1@@ */
384 const int basic_iostream_char_vbtable2
[] = {0, sizeof(basic_iostream_char
)-FIELD_OFFSET(basic_iostream_char
, base2
)};
385 /* ??_7?$basic_iostream@DU?$char_traits@D@std@@@std@@6B@ */
386 extern const vtable_ptr MSVCP_basic_iostream_char_vtable
;
388 /* ??_8?$basic_iostream@_WU?$char_traits@_W@std@@@std@@7B?$basic_istream@_WU?$char_traits@_W@std@@@1@@ */
389 /* ??_8?$basic_iostream@GU?$char_traits@G@std@@@std@@7B?$basic_istream@GU?$char_traits@G@std@@@1@@ */
390 const int basic_iostream_wchar_vbtable1
[] = {0, sizeof(basic_iostream_wchar
)};
391 /* ??_8?$basic_iostream@_WU?$char_traits@_W@std@@@std@@7B?$basic_ostream@_WU?$char_traits@_W@std@@@1@@ */
392 /* ??_8?$basic_iostream@GU?$char_traits@G@std@@@std@@7B?$basic_ostream@GU?$char_traits@G@std@@@1@@ */
393 const int basic_iostream_wchar_vbtable2
[] = {0, sizeof(basic_iostream_wchar
)-FIELD_OFFSET(basic_iostream_wchar
, base2
)};
394 /* ??_7?$basic_iostream@_WU?$char_traits@_W@std@@@std@@6B@ */
395 extern const vtable_ptr MSVCP_basic_iostream_wchar_vtable
;
396 /* ??_7?$basic_iostream@GU?$char_traits@G@std@@@std@@6B@ */
397 extern const vtable_ptr MSVCP_basic_iostream_short_vtable
;
399 /* ??_8?$basic_ofstream@DU?$char_traits@D@std@@@std@@7B@ */
400 const int basic_ofstream_char_vbtable
[] = {0, sizeof(basic_ofstream_char
)};
401 /* ??_7?$basic_ofstream@DU?$char_traits@D@std@@@std@@6B@ */
402 extern const vtable_ptr MSVCP_basic_ofstream_char_vtable
;
404 /* ??_8?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@7B@ */
405 const int basic_ofstream_wchar_vbtable
[] = {0, sizeof(basic_ofstream_wchar
)};
406 /* ??_7?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@6B@ */
407 extern const vtable_ptr MSVCP_basic_ofstream_wchar_vtable
;
409 /* ??_8?$basic_ofstream@GU?$char_traits@G@std@@@std@@7B@ */
410 const int basic_ofstream_short_vbtable
[] = {0, sizeof(basic_ofstream_wchar
)};
411 /* ??_7?$basic_ofstream@GU?$char_traits@G@std@@@std@@6B@ */
412 extern const vtable_ptr MSVCP_basic_ofstream_short_vtable
;
414 /* ??_8?$basic_ifstream@DU?$char_traits@D@std@@@std@@7B@ */
415 const int basic_ifstream_char_vbtable
[] = {0, sizeof(basic_ifstream_char
)};
416 /* ??_7?$basic_ifstream@DU?$char_traits@D@std@@@std@@6B@ */
417 extern const vtable_ptr MSVCP_basic_ifstream_char_vtable
;
419 /* ??_8?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@7B@ */
420 const int basic_ifstream_wchar_vbtable
[] = {0, sizeof(basic_ifstream_wchar
)};
421 /* ??_7?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@6B@ */
422 extern const vtable_ptr MSVCP_basic_ifstream_wchar_vtable
;
424 /* ??_8?$basic_ifstream@GU?$char_traits@G@std@@@std@@7B@ */
425 const int basic_ifstream_short_vbtable
[] = {0, sizeof(basic_ifstream_wchar
)};
426 /* ??_7?$basic_ifstream@GU?$char_traits@G@std@@@std@@6B@ */
427 extern const vtable_ptr MSVCP_basic_ifstream_short_vtable
;
429 /* ??_8?$basic_fstream@DU?$char_traits@D@std@@@std@@7B?$basic_istream@DU?$char_traits@D@std@@@1@@ */
430 const int basic_fstream_char_vbtable1
[] = {0, sizeof(basic_fstream_char
)};
431 /* ??_8?$basic_fstream@DU?$char_traits@D@std@@@std@@7B?$basic_ostream@DU?$char_traits@D@std@@@1@@ */
432 const int basic_fstream_char_vbtable2
[] = {0, sizeof(basic_fstream_char
)-FIELD_OFFSET(basic_fstream_char
, base
.base2
)};
433 /* ??_7?$basic_fstream@DU?$char_traits@D@std@@@std@@6B@ */
434 extern const vtable_ptr MSVCP_basic_fstream_char_vtable
;
436 /* ??_8?$basic_fstream@_WU?$char_traits@_W@std@@@std@@7B?$basic_istream@_WU?$char_traits@_W@std@@@1@@ */
437 /* ??_8?$basic_fstream@GU?$char_traits@G@std@@@std@@7B?$basic_istream@GU?$char_traits@G@std@@@1@@ */
438 const int basic_fstream_wchar_vbtable1
[] = {0, sizeof(basic_fstream_wchar
)};
439 /* ??_8?$basic_fstream@_WU?$char_traits@_W@std@@@std@@7B?$basic_ostream@_WU?$char_traits@_W@std@@@1@@ */
440 /* ??_8?$basic_fstream@GU?$char_traits@G@std@@@std@@7B?$basic_ostream@GU?$char_traits@G@std@@@1@@ */
441 const int basic_fstream_wchar_vbtable2
[] = {0, sizeof(basic_fstream_wchar
)-FIELD_OFFSET(basic_fstream_wchar
, base
.base2
)};
442 /* ??_7?$basic_fstream@_WU?$char_traits@_W@std@@@std@@6B@ */
443 extern const vtable_ptr MSVCP_basic_fstream_wchar_vtable
;
444 /* ??_7?$basic_fstream@GU?$char_traits@G@std@@@std@@6B@ */
445 extern const vtable_ptr MSVCP_basic_fstream_short_vtable
;
447 /* ??_8?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B@ */
448 const int basic_ostringstream_char_vbtable
[] = {0, sizeof(basic_ostringstream_char
)};
449 /* ??_7?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
450 extern const vtable_ptr MSVCP_basic_ostringstream_char_vtable
;
452 /* ??_8?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B@ */
453 const int basic_ostringstream_wchar_vbtable
[] = {0, sizeof(basic_ostringstream_wchar
)};
454 /* ??_7?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
455 extern const vtable_ptr MSVCP_basic_ostringstream_wchar_vtable
;
457 /* ??_8?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B@ */
458 const int basic_ostringstream_short_vbtable
[] = {0, sizeof(basic_ostringstream_wchar
)};
459 /* ??_7?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
460 extern const vtable_ptr MSVCP_basic_ostringstream_short_vtable
;
462 /* ??_8?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B@ */
463 const int basic_istringstream_char_vbtable
[] = {0, sizeof(basic_istringstream_char
)};
464 /* ??_7?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
465 extern const vtable_ptr MSVCP_basic_istringstream_char_vtable
;
467 /* ??_8?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B@ */
468 const int basic_istringstream_wchar_vbtable
[] = {0, sizeof(basic_istringstream_wchar
)};
469 /* ??_7?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
470 extern const vtable_ptr MSVCP_basic_istringstream_wchar_vtable
;
472 /* ??_8?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B@ */
473 const int basic_istringstream_short_vbtable
[] = {0, sizeof(basic_istringstream_wchar
)};
474 /* ??_7?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
475 extern const vtable_ptr MSVCP_basic_istringstream_short_vtable
;
477 /* ??_8?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B?$basic_istream@DU?$char_traits@D@std@@@1@@ */
478 const int basic_stringstream_char_vbtable1
[] = {0, sizeof(basic_stringstream_char
)};
479 /* ??_8?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B?$basic_ostream@DU?$char_traits@D@std@@@1@@ */
480 const int basic_stringstream_char_vbtable2
[] = {0, sizeof(basic_stringstream_char
)-FIELD_OFFSET(basic_stringstream_char
, base
.base2
)};
481 /* ??_7?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
482 extern const vtable_ptr MSVCP_basic_stringstream_char_vtable
;
484 /* ??_8?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B?$basic_istream@_WU?$char_traits@_W@std@@@1@@ */
485 const int basic_stringstream_wchar_vbtable1
[] = {0, sizeof(basic_stringstream_wchar
)};
486 /* ??_8?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B?$basic_ostream@_WU?$char_traits@_W@std@@@1@@ */
487 const int basic_stringstream_wchar_vbtable2
[] = {0, sizeof(basic_stringstream_wchar
)-FIELD_OFFSET(basic_stringstream_wchar
, base
.base2
)};
488 /* ??_7?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
489 extern const vtable_ptr MSVCP_basic_stringstream_wchar_vtable
;
491 /* ??_8?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B?$basic_istream@GU?$char_traits@G@std@@@1@@ */
492 const int basic_stringstream_short_vbtable1
[] = {0, sizeof(basic_stringstream_wchar
)};
493 /* ??_8?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B?$basic_ostream@GU?$char_traits@G@std@@@1@@ */
494 const int basic_stringstream_short_vbtable2
[] = {0, sizeof(basic_stringstream_wchar
)-FIELD_OFFSET(basic_stringstream_wchar
, base
.base2
)};
495 /* ??_7?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
496 extern const vtable_ptr MSVCP_basic_stringstream_short_vtable
;
498 /* ??_7strstreambuf@std@@6B */
499 extern const vtable_ptr MSVCP_strstreambuf_vtable
;
501 static const int ostrstream_vbtable
[] = {0, sizeof(ostrstream
)};
502 extern const vtable_ptr MSVCP_ostrstream_vtable
;
504 static const int istrstream_vbtable
[] = {0, sizeof(istrstream
)};
506 static const int strstream_vbtable1
[] = {0, sizeof(strstream
)};
507 static const int strstream_vbtable2
[] = {0, sizeof(strstream
)-FIELD_OFFSET(strstream
, base
.base2
)};
508 extern const vtable_ptr MSVCP_strstream_vtable
;
510 DEFINE_RTTI_DATA0(iosb
, 0, ".?AV?$_Iosb@H@std@@")
511 DEFINE_RTTI_DATA1(ios_base
, 0, &iosb_rtti_base_descriptor
, ".?AV?$_Iosb@H@std@@")
512 DEFINE_RTTI_DATA2(basic_ios_char
, 0, &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
513 ".?AV?$basic_ios@DU?$char_traits@D@std@@@std@@")
514 DEFINE_RTTI_DATA2(basic_ios_wchar
, 0, &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
515 ".?AV?$basic_ios@_WU?$char_traits@_W@std@@@std@@")
516 DEFINE_RTTI_DATA2(basic_ios_short
, 0, &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
517 ".?AV?$basic_ios@GU?$char_traits@G@std@@@std@@")
518 DEFINE_RTTI_DATA0(basic_streambuf_char
, 0,
519 ".?AV?$basic_streambuf@DU?$char_traits@D@std@@@std@@")
520 DEFINE_RTTI_DATA0(basic_streambuf_wchar
, 0,
521 ".?AV?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@")
522 DEFINE_RTTI_DATA0(basic_streambuf_short
, 0,
523 ".?AV?$basic_streambuf@GU?$char_traits@G@std@@@std@@")
524 DEFINE_RTTI_DATA1(basic_filebuf_char
, 0, &basic_streambuf_char_rtti_base_descriptor
,
525 ".?AV?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@")
526 DEFINE_RTTI_DATA1(basic_filebuf_wchar
, 0, &basic_streambuf_wchar_rtti_base_descriptor
,
527 ".?AV?$basic_filebuf@GU?$char_traits@G@std@@@std@@")
528 DEFINE_RTTI_DATA1(basic_filebuf_short
, 0, &basic_streambuf_short_rtti_base_descriptor
,
529 ".?AV?$basic_filebuf@DU?$char_traits@D@std@@@std@@")
530 DEFINE_RTTI_DATA1(basic_stringbuf_char
, 0, &basic_streambuf_char_rtti_base_descriptor
,
531 ".?AV?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@")
532 DEFINE_RTTI_DATA1(basic_stringbuf_wchar
, 0, &basic_streambuf_wchar_rtti_base_descriptor
,
533 ".?AV?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@")
534 DEFINE_RTTI_DATA1(basic_stringbuf_short
, 0, &basic_streambuf_short_rtti_base_descriptor
,
535 ".?AV?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@")
536 DEFINE_RTTI_DATA3(basic_ostream_char
, sizeof(basic_ostream_char
), &basic_ios_char_rtti_base_descriptor
,
537 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
538 ".?AV?$basic_ostream@DU?$char_traits@D@std@@@std@@")
539 DEFINE_RTTI_DATA3(basic_ostream_wchar
, sizeof(basic_ostream_wchar
), &basic_ios_wchar_rtti_base_descriptor
,
540 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
541 ".?AV?$basic_ostream@_WU?$char_traits@_W@std@@@std@@")
542 DEFINE_RTTI_DATA3(basic_ostream_short
, sizeof(basic_ostream_wchar
), &basic_ios_short_rtti_base_descriptor
,
543 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
544 ".?AV?$basic_ostream@GU?$char_traits@G@std@@@std@@")
545 DEFINE_RTTI_DATA3(basic_istream_char
, sizeof(basic_istream_char
), &basic_ios_char_rtti_base_descriptor
,
546 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
547 ".?AV?$basic_istream@DU?$char_traits@D@std@@@std@@")
548 DEFINE_RTTI_DATA3(basic_istream_wchar
, sizeof(basic_istream_wchar
), &basic_ios_wchar_rtti_base_descriptor
,
549 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
550 ".?AV?$basic_istream@_WU?$char_traits@_W@std@@@std@@")
551 DEFINE_RTTI_DATA3(basic_istream_short
, sizeof(basic_istream_wchar
), &basic_ios_short_rtti_base_descriptor
,
552 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
553 ".?AV?$basic_istream@GU?$char_traits@G@std@@@std@@")
554 DEFINE_RTTI_DATA8(basic_iostream_char
, sizeof(basic_iostream_char
),
555 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
556 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
557 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
558 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
559 ".?AV?$basic_iostream@DU?$char_traits@D@std@@@std@@")
560 DEFINE_RTTI_DATA8(basic_iostream_wchar
, sizeof(basic_iostream_wchar
),
561 &basic_istream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
562 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
563 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
564 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
565 ".?AV?$basic_iostream@_WU?$char_traits@_W@std@@@std@@")
566 DEFINE_RTTI_DATA8(basic_iostream_short
, sizeof(basic_iostream_wchar
),
567 &basic_istream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
568 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
569 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
570 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
571 ".?AV?$basic_iostream@GU?$char_traits@G@std@@@std@@")
572 DEFINE_RTTI_DATA4(basic_ofstream_char
, sizeof(basic_ofstream_char
),
573 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
574 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
575 ".?AV?$basic_ofstream@DU?$char_traits@D@std@@@std@@")
576 DEFINE_RTTI_DATA4(basic_ofstream_wchar
, sizeof(basic_ofstream_wchar
),
577 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
578 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
579 ".?AV?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@")
580 DEFINE_RTTI_DATA4(basic_ofstream_short
, sizeof(basic_ofstream_wchar
),
581 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
582 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
583 ".?AV?$basic_ofstream@GU?$char_traits@G@std@@@std@@")
584 DEFINE_RTTI_DATA4(basic_ifstream_char
, sizeof(basic_ifstream_char
),
585 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
586 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
587 ".?AV?$basic_ifstream@DU?$char_traits@D@std@@@std@@")
588 DEFINE_RTTI_DATA4(basic_ifstream_wchar
, sizeof(basic_ifstream_wchar
),
589 &basic_istream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
590 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
591 ".?AV?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@")
592 DEFINE_RTTI_DATA4(basic_ifstream_short
, sizeof(basic_ifstream_wchar
),
593 &basic_istream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
594 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
595 ".?AV?$basic_ifstream@GU?$char_traits@G@std@@@std@@")
596 DEFINE_RTTI_DATA8(basic_fstream_char
, sizeof(basic_fstream_char
),
597 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
598 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
599 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
600 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
601 ".?AV?$basic_fstream@DU?$char_traits@D@std@@@std@@")
602 DEFINE_RTTI_DATA8(basic_fstream_wchar
, sizeof(basic_fstream_wchar
),
603 &basic_istream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
604 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
605 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
606 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
607 ".?AV?$basic_fstream@_WU?$char_traits@_W@std@@@std@@")
608 DEFINE_RTTI_DATA8(basic_fstream_short
, sizeof(basic_fstream_wchar
),
609 &basic_istream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
610 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
611 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
612 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
613 ".?AV?$basic_fstream@GU?$char_traits@G@std@@@std@@")
614 DEFINE_RTTI_DATA4(basic_ostringstream_char
, sizeof(basic_ostringstream_char
),
615 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
616 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
617 ".?AV?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@")
618 DEFINE_RTTI_DATA4(basic_ostringstream_wchar
, sizeof(basic_ostringstream_wchar
),
619 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
620 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
621 ".?AV?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@")
622 DEFINE_RTTI_DATA4(basic_ostringstream_short
, sizeof(basic_ostringstream_wchar
),
623 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
624 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
625 ".?AV?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@")
626 DEFINE_RTTI_DATA4(basic_istringstream_char
, sizeof(basic_istringstream_char
),
627 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
628 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
629 ".?AV?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@")
630 DEFINE_RTTI_DATA4(basic_istringstream_wchar
, sizeof(basic_istringstream_wchar
),
631 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
632 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
633 ".?AV?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@")
634 DEFINE_RTTI_DATA4(basic_istringstream_short
, sizeof(basic_istringstream_wchar
),
635 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
636 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
637 ".?AV?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@")
638 DEFINE_RTTI_DATA8(basic_stringstream_char
, sizeof(basic_stringstream_char
),
639 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
640 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
641 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
642 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
643 ".?AV?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@")
644 DEFINE_RTTI_DATA8(basic_stringstream_wchar
, sizeof(basic_stringstream_wchar
),
645 &basic_istream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
646 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
647 &basic_ostream_wchar_rtti_base_descriptor
, &basic_ios_wchar_rtti_base_descriptor
,
648 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
649 ".?AV?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@")
650 DEFINE_RTTI_DATA8(basic_stringstream_short
, sizeof(basic_stringstream_wchar
),
651 &basic_istream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
652 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
653 &basic_ostream_short_rtti_base_descriptor
, &basic_ios_short_rtti_base_descriptor
,
654 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
655 ".?AV?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@")
656 DEFINE_RTTI_DATA1(strstreambuf
, sizeof(strstreambuf
),
657 &basic_streambuf_char_rtti_base_descriptor
, ".?AVstrstreambuf@std@@")
658 DEFINE_RTTI_DATA4(ostrstream
, sizeof(ostrstream
),
659 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
660 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
661 "?AVostrstream@std@@")
662 DEFINE_RTTI_DATA8(strstream
, sizeof(strstream
),
663 &basic_istream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
664 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
665 &basic_ostream_char_rtti_base_descriptor
, &basic_ios_char_rtti_base_descriptor
,
666 &ios_base_rtti_base_descriptor
, &iosb_rtti_base_descriptor
,
667 "?AVstrstream@std@@")
670 void __asm_dummy_vtables(void) {
673 VTABLE_ADD_FUNC(iosb_vector_dtor
));
674 __ASM_VTABLE(ios_base
,
675 VTABLE_ADD_FUNC(ios_base_vector_dtor
));
676 __ASM_VTABLE(basic_ios_char
,
677 VTABLE_ADD_FUNC(basic_ios_char_vector_dtor
));
678 __ASM_VTABLE(basic_ios_wchar
,
679 VTABLE_ADD_FUNC(basic_ios_wchar_vector_dtor
));
680 __ASM_VTABLE(basic_ios_short
,
681 VTABLE_ADD_FUNC(basic_ios_wchar_vector_dtor
));
682 __ASM_VTABLE(basic_streambuf_char
,
683 VTABLE_ADD_FUNC(basic_streambuf_char_vector_dtor
)
684 VTABLE_ADD_FUNC(basic_streambuf_char_overflow
)
685 VTABLE_ADD_FUNC(basic_streambuf_char_pbackfail
)
686 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc
)
687 VTABLE_ADD_FUNC(basic_streambuf_char_underflow
)
688 VTABLE_ADD_FUNC(basic_streambuf_char_uflow
)
689 VTABLE_ADD_FUNC(basic_streambuf_char_xsgetn
)
690 VTABLE_ADD_FUNC(basic_streambuf_char_xsputn
)
691 VTABLE_ADD_FUNC(basic_streambuf_char_seekoff
)
692 VTABLE_ADD_FUNC(basic_streambuf_char_seekpos
)
693 VTABLE_ADD_FUNC(basic_streambuf_char_setbuf
)
694 VTABLE_ADD_FUNC(basic_streambuf_char_sync
)
695 VTABLE_ADD_FUNC(basic_streambuf_char_imbue
));
696 __ASM_VTABLE(basic_streambuf_wchar
,
697 VTABLE_ADD_FUNC(basic_streambuf_wchar_vector_dtor
)
698 VTABLE_ADD_FUNC(basic_streambuf_wchar_overflow
)
699 VTABLE_ADD_FUNC(basic_streambuf_wchar_pbackfail
)
700 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
701 VTABLE_ADD_FUNC(basic_streambuf_wchar_underflow
)
702 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow
)
703 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
704 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
705 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekoff
)
706 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekpos
)
707 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf
)
708 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync
)
709 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
710 __ASM_VTABLE(basic_streambuf_short
,
711 VTABLE_ADD_FUNC(basic_streambuf_wchar_vector_dtor
)
712 VTABLE_ADD_FUNC(basic_streambuf_wchar_overflow
)
713 VTABLE_ADD_FUNC(basic_streambuf_wchar_pbackfail
)
714 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
715 VTABLE_ADD_FUNC(basic_streambuf_wchar_underflow
)
716 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow
)
717 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
718 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
719 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekoff
)
720 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekpos
)
721 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf
)
722 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync
)
723 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
724 __ASM_VTABLE(basic_filebuf_char
,
725 VTABLE_ADD_FUNC(basic_filebuf_char_vector_dtor
)
726 VTABLE_ADD_FUNC(basic_filebuf_char_overflow
)
727 VTABLE_ADD_FUNC(basic_filebuf_char_pbackfail
)
728 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc
)
729 VTABLE_ADD_FUNC(basic_filebuf_char_underflow
)
730 VTABLE_ADD_FUNC(basic_filebuf_char_uflow
)
731 VTABLE_ADD_FUNC(basic_streambuf_char_xsgetn
)
732 VTABLE_ADD_FUNC(basic_streambuf_char_xsputn
)
733 VTABLE_ADD_FUNC(basic_filebuf_char_seekoff
)
734 VTABLE_ADD_FUNC(basic_filebuf_char_seekpos
)
735 VTABLE_ADD_FUNC(basic_filebuf_char_setbuf
)
736 VTABLE_ADD_FUNC(basic_filebuf_char_sync
)
737 VTABLE_ADD_FUNC(basic_streambuf_char_imbue
));
738 __ASM_VTABLE(basic_filebuf_wchar
,
739 VTABLE_ADD_FUNC(basic_filebuf_wchar_vector_dtor
)
740 VTABLE_ADD_FUNC(basic_filebuf_wchar_overflow
)
741 VTABLE_ADD_FUNC(basic_filebuf_wchar_pbackfail
)
742 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
743 VTABLE_ADD_FUNC(basic_filebuf_wchar_underflow
)
744 VTABLE_ADD_FUNC(basic_filebuf_wchar_uflow
)
745 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
746 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
747 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekoff
)
748 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekpos
)
749 VTABLE_ADD_FUNC(basic_filebuf_wchar_setbuf
)
750 VTABLE_ADD_FUNC(basic_filebuf_wchar_sync
)
751 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
752 __ASM_VTABLE(basic_filebuf_short
,
753 VTABLE_ADD_FUNC(basic_filebuf_wchar_vector_dtor
)
754 VTABLE_ADD_FUNC(basic_filebuf_wchar_overflow
)
755 VTABLE_ADD_FUNC(basic_filebuf_wchar_pbackfail
)
756 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
757 VTABLE_ADD_FUNC(basic_filebuf_wchar_underflow
)
758 VTABLE_ADD_FUNC(basic_filebuf_wchar_uflow
)
759 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
760 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
761 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekoff
)
762 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekpos
)
763 VTABLE_ADD_FUNC(basic_filebuf_short_setbuf
)
764 VTABLE_ADD_FUNC(basic_filebuf_wchar_sync
)
765 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
766 __ASM_VTABLE(basic_stringbuf_char
,
767 VTABLE_ADD_FUNC(basic_stringbuf_char_vector_dtor
)
768 VTABLE_ADD_FUNC(basic_stringbuf_char_overflow
)
769 VTABLE_ADD_FUNC(basic_stringbuf_char_pbackfail
)
770 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc
)
771 VTABLE_ADD_FUNC(basic_stringbuf_char_underflow
)
772 VTABLE_ADD_FUNC(basic_streambuf_char_uflow
)
773 VTABLE_ADD_FUNC(basic_streambuf_char_xsgetn
)
774 VTABLE_ADD_FUNC(basic_streambuf_char_xsputn
)
775 VTABLE_ADD_FUNC(basic_stringbuf_char_seekoff
)
776 VTABLE_ADD_FUNC(basic_stringbuf_char_seekpos
)
777 VTABLE_ADD_FUNC(basic_streambuf_char_setbuf
)
778 VTABLE_ADD_FUNC(basic_streambuf_char_sync
)
779 VTABLE_ADD_FUNC(basic_streambuf_char_imbue
));
780 __ASM_VTABLE(basic_stringbuf_wchar
,
781 VTABLE_ADD_FUNC(basic_stringbuf_wchar_vector_dtor
)
782 VTABLE_ADD_FUNC(basic_stringbuf_wchar_overflow
)
783 VTABLE_ADD_FUNC(basic_stringbuf_wchar_pbackfail
)
784 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
785 VTABLE_ADD_FUNC(basic_stringbuf_wchar_underflow
)
786 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow
)
787 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
788 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
789 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekoff
)
790 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekpos
)
791 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf
)
792 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync
)
793 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
794 __ASM_VTABLE(basic_stringbuf_short
,
795 VTABLE_ADD_FUNC(basic_stringbuf_wchar_vector_dtor
)
796 VTABLE_ADD_FUNC(basic_stringbuf_wchar_overflow
)
797 VTABLE_ADD_FUNC(basic_stringbuf_wchar_pbackfail
)
798 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc
)
799 VTABLE_ADD_FUNC(basic_stringbuf_wchar_underflow
)
800 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow
)
801 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn
)
802 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn
)
803 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekoff
)
804 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekpos
)
805 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf
)
806 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync
)
807 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue
));
808 __ASM_VTABLE(basic_ostream_char
,
809 VTABLE_ADD_FUNC(basic_ostream_char_vector_dtor
));
810 __ASM_VTABLE(basic_ostream_wchar
,
811 VTABLE_ADD_FUNC(basic_ostream_wchar_vector_dtor
));
812 __ASM_VTABLE(basic_ostream_short
,
813 VTABLE_ADD_FUNC(basic_ostream_wchar_vector_dtor
));
814 __ASM_VTABLE(basic_istream_char
,
815 VTABLE_ADD_FUNC(basic_istream_char_vector_dtor
));
816 __ASM_VTABLE(basic_istream_wchar
,
817 VTABLE_ADD_FUNC(basic_istream_wchar_vector_dtor
));
818 __ASM_VTABLE(basic_istream_short
,
819 VTABLE_ADD_FUNC(basic_istream_wchar_vector_dtor
));
820 __ASM_VTABLE(basic_iostream_char
,
821 VTABLE_ADD_FUNC(basic_iostream_char_vector_dtor
));
822 __ASM_VTABLE(basic_iostream_wchar
,
823 VTABLE_ADD_FUNC(basic_iostream_wchar_vector_dtor
));
824 __ASM_VTABLE(basic_iostream_short
,
825 VTABLE_ADD_FUNC(basic_iostream_wchar_vector_dtor
));
826 __ASM_VTABLE(basic_ofstream_char
,
827 VTABLE_ADD_FUNC(basic_ofstream_char_vector_dtor
));
828 __ASM_VTABLE(basic_ofstream_wchar
,
829 VTABLE_ADD_FUNC(basic_ofstream_wchar_vector_dtor
));
830 __ASM_VTABLE(basic_ofstream_short
,
831 VTABLE_ADD_FUNC(basic_ofstream_wchar_vector_dtor
));
832 __ASM_VTABLE(basic_ifstream_char
,
833 VTABLE_ADD_FUNC(basic_ifstream_char_vector_dtor
));
834 __ASM_VTABLE(basic_ifstream_wchar
,
835 VTABLE_ADD_FUNC(basic_ifstream_wchar_vector_dtor
));
836 __ASM_VTABLE(basic_ifstream_short
,
837 VTABLE_ADD_FUNC(basic_ifstream_wchar_vector_dtor
));
838 __ASM_VTABLE(basic_fstream_char
,
839 VTABLE_ADD_FUNC(basic_fstream_char_vector_dtor
));
840 __ASM_VTABLE(basic_fstream_wchar
,
841 VTABLE_ADD_FUNC(basic_fstream_wchar_vector_dtor
));
842 __ASM_VTABLE(basic_fstream_short
,
843 VTABLE_ADD_FUNC(basic_fstream_wchar_vector_dtor
));
844 __ASM_VTABLE(basic_ostringstream_char
,
845 VTABLE_ADD_FUNC(basic_ostringstream_char_vector_dtor
));
846 __ASM_VTABLE(basic_ostringstream_wchar
,
847 VTABLE_ADD_FUNC(basic_ostringstream_wchar_vector_dtor
));
848 __ASM_VTABLE(basic_ostringstream_short
,
849 VTABLE_ADD_FUNC(basic_ostringstream_wchar_vector_dtor
));
850 __ASM_VTABLE(basic_istringstream_char
,
851 VTABLE_ADD_FUNC(basic_istringstream_char_vector_dtor
));
852 __ASM_VTABLE(basic_istringstream_wchar
,
853 VTABLE_ADD_FUNC(basic_istringstream_wchar_vector_dtor
));
854 __ASM_VTABLE(basic_istringstream_short
,
855 VTABLE_ADD_FUNC(basic_istringstream_wchar_vector_dtor
));
856 __ASM_VTABLE(basic_stringstream_char
,
857 VTABLE_ADD_FUNC(basic_stringstream_char_vector_dtor
));
858 __ASM_VTABLE(basic_stringstream_wchar
,
859 VTABLE_ADD_FUNC(basic_stringstream_wchar_vector_dtor
));
860 __ASM_VTABLE(basic_stringstream_short
,
861 VTABLE_ADD_FUNC(basic_stringstream_wchar_vector_dtor
));
862 __ASM_VTABLE(strstreambuf
,
863 VTABLE_ADD_FUNC(strstreambuf_vector_dtor
)
864 VTABLE_ADD_FUNC(strstreambuf_overflow
)
865 VTABLE_ADD_FUNC(strstreambuf_pbackfail
)
866 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc
)
867 VTABLE_ADD_FUNC(strstreambuf_underflow
)
868 VTABLE_ADD_FUNC(basic_streambuf_char_uflow
)
869 VTABLE_ADD_FUNC(basic_streambuf_char_xsgetn
)
870 VTABLE_ADD_FUNC(basic_streambuf_char_xsputn
)
871 VTABLE_ADD_FUNC(strstreambuf_seekoff
)
872 VTABLE_ADD_FUNC(strstreambuf_seekpos
)
873 VTABLE_ADD_FUNC(basic_streambuf_char_setbuf
)
874 VTABLE_ADD_FUNC(basic_streambuf_char_sync
)
875 VTABLE_ADD_FUNC(basic_streambuf_char_imbue
));
876 __ASM_VTABLE(ostrstream
,
877 VTABLE_ADD_FUNC(ostrstream_vector_dtor
));
878 __ASM_VTABLE(strstream
,
879 VTABLE_ADD_FUNC(strstream_vector_dtor
));
884 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD00@Z */
885 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD00@Z */
886 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setp_next
, 16)
887 void __thiscall
basic_streambuf_char_setp_next(basic_streambuf_char
*this, char *first
, char *next
, char *last
)
889 TRACE("(%p %p %p %p)\n", this, first
, next
, last
);
893 this->wsize
= last
-next
;
896 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD0@Z */
897 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD0@Z */
898 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setp
, 12)
899 void __thiscall
basic_streambuf_char_setp(basic_streambuf_char
*this, char *first
, char *last
)
901 basic_streambuf_char_setp_next(this, first
, first
, last
);
904 /* ?setg@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD00@Z */
905 /* ?setg@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD00@Z */
906 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setg
, 16)
907 void __thiscall
basic_streambuf_char_setg(basic_streambuf_char
*this, char *first
, char *next
, char *last
)
909 TRACE("(%p %p %p %p)\n", this, first
, next
, last
);
913 this->rsize
= last
-next
;
916 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXXZ */
917 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXXZ */
918 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Init_empty
, 4)
919 void __thiscall
basic_streambuf_char__Init_empty(basic_streambuf_char
*this)
921 TRACE("(%p)\n", this);
923 this->prbuf
= &this->rbuf
;
924 this->pwbuf
= &this->wbuf
;
925 this->prpos
= &this->rpos
;
926 this->pwpos
= &this->wpos
;
927 this->prsize
= &this->rsize
;
928 this->pwsize
= &this->wsize
;
930 basic_streambuf_char_setp(this, NULL
, NULL
);
931 basic_streambuf_char_setg(this, NULL
, NULL
, NULL
);
934 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAE@W4_Uninitialized@1@@Z */
935 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAA@W4_Uninitialized@1@@Z */
936 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_ctor_uninitialized
, 8)
937 basic_streambuf_char
* __thiscall
basic_streambuf_char_ctor_uninitialized(basic_streambuf_char
*this, int uninitialized
)
939 TRACE("(%p %d)\n", this, uninitialized
);
940 this->vtable
= &MSVCP_basic_streambuf_char_vtable
;
944 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAE@XZ */
945 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAA@XZ */
946 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_ctor
, 4)
947 basic_streambuf_char
* __thiscall
basic_streambuf_char_ctor(basic_streambuf_char
*this)
949 TRACE("(%p)\n", this);
951 this->vtable
= &MSVCP_basic_streambuf_char_vtable
;
952 locale_ctor(&this->loc
);
953 basic_streambuf_char__Init_empty(this);
958 /* ??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UAE@XZ */
959 /* ??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UEAA@XZ */
960 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_dtor
, 4)
961 void __thiscall
basic_streambuf_char_dtor(basic_streambuf_char
*this)
963 TRACE("(%p)\n", this);
965 locale_dtor(&this->loc
);
968 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_vector_dtor
, 8)
969 basic_streambuf_char
* __thiscall
basic_streambuf_char_vector_dtor(basic_streambuf_char
*this, unsigned int flags
)
971 TRACE("(%p %x)\n", this, flags
);
973 /* we have an array, with the number of elements stored before the first object */
974 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
976 for(i
=*ptr
-1; i
>=0; i
--)
977 basic_streambuf_char_dtor(this+i
);
978 MSVCRT_operator_delete(ptr
);
980 basic_streambuf_char_dtor(this);
982 MSVCRT_operator_delete(this);
988 /* ?_Gnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEHXZ */
989 /* ?_Gnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBA_JXZ */
990 static streamsize
basic_streambuf_char__Gnavail(const basic_streambuf_char
*this)
992 TRACE("(%p)\n", this);
993 return *this->prpos
? *this->prsize
: 0;
996 /* ?_Gndec@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
997 /* ?_Gndec@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
998 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Gndec
, 4)
999 char* __thiscall
basic_streambuf_char__Gndec(basic_streambuf_char
*this)
1001 TRACE("(%p)\n", this);
1004 return *this->prpos
;
1007 /* ?_Gninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
1008 /* ?_Gninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
1009 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Gninc
, 4)
1010 char* __thiscall
basic_streambuf_char__Gninc(basic_streambuf_char
*this)
1012 TRACE("(%p)\n", this);
1014 return (*this->prpos
)++;
1017 /* ?_Gnpreinc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
1018 /* ?_Gnpreinc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
1019 static char* basic_streambuf_char__Gnpreinc(basic_streambuf_char
*this)
1021 TRACE("(%p)\n", this);
1024 return *this->prpos
;
1027 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAPAD0PAH001@Z */
1028 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAPEAD0PEAH001@Z */
1029 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Init
, 28)
1030 void __thiscall
basic_streambuf_char__Init(basic_streambuf_char
*this, char **gf
, char **gn
, int *gc
, char **pf
, char **pn
, int *pc
)
1032 TRACE("(%p %p %p %p %p %p %p)\n", this, gf
, gn
, gc
, pf
, pn
, pc
);
1042 /* ?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
1043 /* ?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
1044 static void basic_streambuf_char__Lock(basic_streambuf_char
*this)
1046 TRACE("(%p)\n", this);
1049 /* ?_Pnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEHXZ */
1050 /* ?_Pnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBA_JXZ */
1051 static streamsize
basic_streambuf_char__Pnavail(const basic_streambuf_char
*this)
1053 TRACE("(%p)\n", this);
1054 return *this->pwpos
? *this->pwsize
: 0;
1057 /* ?_Pninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
1058 /* ?_Pninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
1059 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Pninc
, 4)
1060 char* __thiscall
basic_streambuf_char__Pninc(basic_streambuf_char
*this)
1062 TRACE("(%p)\n", this);
1064 return (*this->pwpos
)++;
1067 /* ?underflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1068 /* ?underflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
1069 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_underflow
, 4)
1070 #define call_basic_streambuf_char_underflow(this) CALL_VTBL_FUNC(this, 16, \
1071 int, (basic_streambuf_char*), (this))
1072 int __thiscall
basic_streambuf_char_underflow(basic_streambuf_char
*this)
1074 TRACE("(%p)\n", this);
1078 /* ?uflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1079 /* ?uflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
1080 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_uflow
, 4)
1081 #define call_basic_streambuf_char_uflow(this) CALL_VTBL_FUNC(this, 20, \
1082 int, (basic_streambuf_char*), (this))
1083 int __thiscall
basic_streambuf_char_uflow(basic_streambuf_char
*this)
1087 TRACE("(%p)\n", this);
1089 if(call_basic_streambuf_char_underflow(this)==EOF
)
1092 ret
= (unsigned char)**this->prpos
;
1098 /* ?_Xsgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHPADIH@Z */
1099 /* ?_Xsgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEAD_K_J@Z */
1100 static streamsize
basic_streambuf_char__Xsgetn_s(basic_streambuf_char
*this, char *ptr
, MSVCP_size_t size
, streamsize count
)
1102 streamsize copied
, chunk
;
1105 TRACE("(%p %p %lu %ld)\n", this, ptr
, size
, count
);
1107 for(copied
=0; copied
<count
&& size
;) {
1108 chunk
= basic_streambuf_char__Gnavail(this);
1109 if(chunk
> count
-copied
)
1110 chunk
= count
-copied
;
1113 memcpy_s(ptr
+copied
, size
, *this->prpos
, chunk
);
1114 *this->prpos
+= chunk
;
1115 *this->prsize
-= chunk
;
1118 }else if((c
= call_basic_streambuf_char_uflow(this)) != EOF
) {
1130 /* ?_Sgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPADIH@Z */
1131 /* ?_Sgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_K_J@Z */
1132 static streamsize
basic_streambuf_char__Sgetn_s(basic_streambuf_char
*this, char *ptr
, MSVCP_size_t size
, streamsize count
)
1134 TRACE("(%p %p %lu %ld)\n", this, ptr
, size
, count
);
1135 return basic_streambuf_char__Xsgetn_s(this, ptr
, size
, count
);
1138 /* ?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
1139 /* ?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
1140 static void basic_streambuf_char__Unlock(basic_streambuf_char
*this)
1142 TRACE("(%p)\n", this);
1145 /* ?eback@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1146 /* ?eback@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1147 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_eback
, 4)
1148 char* __thiscall
basic_streambuf_char_eback(const basic_streambuf_char
*this)
1150 TRACE("(%p)\n", this);
1151 return *this->prbuf
;
1154 /* ?gptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1155 /* ?gptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1156 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_gptr
, 4)
1157 char* __thiscall
basic_streambuf_char_gptr(const basic_streambuf_char
*this)
1159 TRACE("(%p)\n", this);
1160 return *this->prpos
;
1163 /* ?egptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1164 /* ?egptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1165 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_egptr
, 4)
1166 char* __thiscall
basic_streambuf_char_egptr(const basic_streambuf_char
*this)
1168 TRACE("(%p)\n", this);
1169 return *this->prpos
+*this->prsize
;
1172 /* ?epptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1173 /* ?epptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1174 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_epptr
, 4)
1175 char* __thiscall
basic_streambuf_char_epptr(const basic_streambuf_char
*this)
1177 TRACE("(%p)\n", this);
1178 return *this->pwpos
+*this->pwsize
;
1181 /* ?gbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXH@Z */
1182 /* ?gbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXH@Z */
1183 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_gbump
, 8)
1184 void __thiscall
basic_streambuf_char_gbump(basic_streambuf_char
*this, int off
)
1186 TRACE("(%p %d)\n", this, off
);
1187 *this->prpos
+= off
;
1188 *this->prsize
-= off
;
1191 /* ?imbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEXABVlocale@2@@Z */
1192 /* ?imbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAXAEBVlocale@2@@Z */
1193 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_imbue
, 8)
1194 #define call_basic_streambuf_char_imbue(this, loc) CALL_VTBL_FUNC(this, 48, \
1195 void, (basic_streambuf_char*, const locale*), (this, loc))
1196 void __thiscall
basic_streambuf_char_imbue(basic_streambuf_char
*this, const locale
*loc
)
1198 TRACE("(%p %p)\n", this, loc
);
1201 /* ?overflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHH@Z */
1202 /* ?overflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z */
1203 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_overflow
, 8)
1204 #define call_basic_streambuf_char_overflow(this, ch) CALL_VTBL_FUNC(this, 4, \
1205 int, (basic_streambuf_char*, int), (this, ch))
1206 int __thiscall
basic_streambuf_char_overflow(basic_streambuf_char
*this, int ch
)
1208 TRACE("(%p %d)\n", this, ch
);
1212 /* ?pbackfail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHH@Z */
1213 /* ?pbackfail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z */
1214 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pbackfail
, 8)
1215 #define call_basic_streambuf_char_pbackfail(this, ch) CALL_VTBL_FUNC(this, 8, \
1216 int, (basic_streambuf_char*, int), (this, ch))
1217 int __thiscall
basic_streambuf_char_pbackfail(basic_streambuf_char
*this, int ch
)
1219 TRACE("(%p %d)\n", this, ch
);
1223 /* ?pbase@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1224 /* ?pbase@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1225 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pbase
, 4)
1226 char* __thiscall
basic_streambuf_char_pbase(const basic_streambuf_char
*this)
1228 TRACE("(%p)\n", this);
1229 return *this->pwbuf
;
1232 /* ?pbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXH@Z */
1233 /* ?pbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXH@Z */
1234 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pbump
, 8)
1235 void __thiscall
basic_streambuf_char_pbump(basic_streambuf_char
*this, int off
)
1237 TRACE("(%p %d)\n", this, off
);
1238 *this->pwpos
+= off
;
1239 *this->pwsize
-= off
;
1242 /* ?pptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1243 /* ?pptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1244 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pptr
, 4)
1245 char* __thiscall
basic_streambuf_char_pptr(const basic_streambuf_char
*this)
1247 TRACE("(%p)\n", this);
1248 return *this->pwpos
;
1251 /* ?pubimbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
1252 /* ?pubimbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
1253 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubimbue
, 12)
1254 locale
* __thiscall
basic_streambuf_char_pubimbue(basic_streambuf_char
*this, locale
*ret
, const locale
*loc
)
1256 TRACE("(%p %p)\n", this, loc
);
1257 memcpy(ret
, &this->loc
, sizeof(locale
));
1258 call_basic_streambuf_char_imbue(this, loc
);
1259 locale_copy_ctor(&this->loc
, loc
);
1263 /* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
1264 /* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
1265 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_seekoff
, 20)
1266 #define call_basic_streambuf_char_seekoff(this, ret, off, way, mode) CALL_VTBL_FUNC(this, 32, \
1267 fpos_int*, (basic_streambuf_char*, fpos_int*, streamoff, int, int), (this, ret, off, way, mode))
1268 fpos_int
* __thiscall
basic_streambuf_char_seekoff(basic_streambuf_char
*this,
1269 fpos_int
*ret
, streamoff off
, int way
, int mode
)
1271 TRACE("(%p %ld %d %d)\n", this, off
, way
, mode
);
1278 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JHH@Z */
1279 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JHH@Z */
1280 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JFF@Z */
1281 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JFF@Z */
1282 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
1283 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
1284 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff
, 20)
1285 fpos_int
* __thiscall
basic_streambuf_char_pubseekoff(basic_streambuf_char
*this,
1286 fpos_int
*ret
, streamoff off
, int way
, int mode
)
1288 TRACE("(%p %ld %d %d)\n", this, off
, way
, mode
);
1289 return call_basic_streambuf_char_seekoff(this, ret
, off
, way
, mode
);
1292 /* ?seekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
1293 /* ?seekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
1294 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_seekpos
, 36)
1295 #define call_basic_streambuf_char_seekpos(this, ret, pos, mode) CALL_VTBL_FUNC(this, 36, \
1296 fpos_int*, (basic_streambuf_char*, fpos_int*, fpos_int, int), (this, ret, pos, mode))
1297 fpos_int
* __thiscall
basic_streambuf_char_seekpos(basic_streambuf_char
*this,
1298 fpos_int
*ret
, fpos_int pos
, int mode
)
1300 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
1307 /* ?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@V32@H@Z */
1308 /* ?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@V32@H@Z */
1309 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekpos
, 36)
1310 fpos_int
* __thiscall
basic_streambuf_char_pubseekpos(basic_streambuf_char
*this,
1311 fpos_int
*ret
, fpos_int pos
, int mode
)
1313 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
1314 return call_basic_streambuf_char_seekpos(this, ret
, pos
, mode
);
1317 /* ?setbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEPAV12@PADH@Z */
1318 /* ?setbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAPEAV12@PEAD_J@Z */
1319 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setbuf
, 12)
1320 #define call_basic_streambuf_char_setbuf(this, buf, count) CALL_VTBL_FUNC(this, 40, \
1321 basic_streambuf_char*, (basic_streambuf_char*, char*, streamsize), (this, buf, count))
1322 basic_streambuf_char
* __thiscall
basic_streambuf_char_setbuf(basic_streambuf_char
*this, char *buf
, streamsize count
)
1324 TRACE("(%p %p %ld)\n", this, buf
, count
);
1328 /* ?pubsetbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PADH@Z */
1329 /* ?pubsetbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEAD_J@Z */
1330 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubsetbuf
, 12)
1331 basic_streambuf_char
* __thiscall
basic_streambuf_char_pubsetbuf(basic_streambuf_char
*this, char *buf
, streamsize count
)
1333 TRACE("(%p %p %ld)\n", this, buf
, count
);
1334 return call_basic_streambuf_char_setbuf(this, buf
, count
);
1337 /* ?sync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1338 /* ?sync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
1339 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sync
, 4)
1340 #define call_basic_streambuf_char_sync(this) CALL_VTBL_FUNC(this, 44, \
1341 int, (basic_streambuf_char*), (this))
1342 int __thiscall
basic_streambuf_char_sync(basic_streambuf_char
*this)
1344 TRACE("(%p)\n", this);
1348 /* ?pubsync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1349 /* ?pubsync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1350 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubsync
, 4)
1351 int __thiscall
basic_streambuf_char_pubsync(basic_streambuf_char
*this)
1353 TRACE("(%p)\n", this);
1354 return call_basic_streambuf_char_sync(this);
1357 /* ?sgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPADH@Z */
1358 /* ?sgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_J@Z */
1359 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sgetn
, 12)
1360 streamsize __thiscall
basic_streambuf_char_sgetn(basic_streambuf_char
*this, char *ptr
, streamsize count
)
1362 TRACE("(%p %p %ld)\n", this, ptr
, count
);
1363 return basic_streambuf_char__Xsgetn_s(this, ptr
, -1, count
);
1366 /* ?showmanyc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1367 /* ?showmanyc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JXZ */
1368 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_showmanyc
, 4)
1369 #define call_basic_streambuf_char_showmanyc(this) CALL_VTBL_FUNC(this, 12, \
1370 streamsize, (basic_streambuf_char*), (this))
1371 streamsize __thiscall
basic_streambuf_char_showmanyc(basic_streambuf_char
*this)
1373 TRACE("(%p)\n", this);
1377 /* ?in_avail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1378 /* ?in_avail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JXZ */
1379 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_in_avail
, 4)
1380 streamsize __thiscall
basic_streambuf_char_in_avail(basic_streambuf_char
*this)
1384 TRACE("(%p)\n", this);
1386 ret
= basic_streambuf_char__Gnavail(this);
1387 return ret
? ret
: call_basic_streambuf_char_showmanyc(this);
1390 /* ?sputbackc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z */
1391 /* ?sputbackc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHD@Z */
1392 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputbackc
, 8)
1393 int __thiscall
basic_streambuf_char_sputbackc(basic_streambuf_char
*this, char ch
)
1395 TRACE("(%p %d)\n", this, ch
);
1396 if(*this->prpos
&& *this->prpos
>*this->prbuf
&& (*this->prpos
)[-1]==ch
) {
1399 return (unsigned char)ch
;
1402 return call_basic_streambuf_char_pbackfail(this, (unsigned char)ch
);
1405 /* ?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z */
1406 /* ?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHD@Z */
1407 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputc
, 8)
1408 int __thiscall
basic_streambuf_char_sputc(basic_streambuf_char
*this, char ch
)
1410 TRACE("(%p %d)\n", this, ch
);
1411 return basic_streambuf_char__Pnavail(this) ?
1412 (*basic_streambuf_char__Pninc(this) = ch
) :
1413 call_basic_streambuf_char_overflow(this, (unsigned char)ch
);
1416 /* ?sungetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1417 /* ?sungetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1418 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sungetc
, 4)
1419 int __thiscall
basic_streambuf_char_sungetc(basic_streambuf_char
*this)
1421 TRACE("(%p)\n", this);
1422 if(*this->prpos
&& *this->prpos
>*this->prbuf
) {
1425 return (unsigned char)**this->prpos
;
1428 return call_basic_streambuf_char_pbackfail(this, EOF
);
1431 /* ?stossc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
1432 /* ?stossc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
1433 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_stossc
, 4)
1434 void __thiscall
basic_streambuf_char_stossc(basic_streambuf_char
*this)
1436 TRACE("(%p)\n", this);
1437 if(basic_streambuf_char__Gnavail(this))
1438 basic_streambuf_char__Gninc(this);
1440 call_basic_streambuf_char_uflow(this);
1443 /* ?sbumpc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1444 /* ?sbumpc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1445 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sbumpc
, 4)
1446 int __thiscall
basic_streambuf_char_sbumpc(basic_streambuf_char
*this)
1448 TRACE("(%p)\n", this);
1449 return basic_streambuf_char__Gnavail(this) ?
1450 (int)(unsigned char)*basic_streambuf_char__Gninc(this) : call_basic_streambuf_char_uflow(this);
1453 /* ?sgetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1454 /* ?sgetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1455 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sgetc
, 4)
1456 int __thiscall
basic_streambuf_char_sgetc(basic_streambuf_char
*this)
1458 TRACE("(%p)\n", this);
1459 return basic_streambuf_char__Gnavail(this) ?
1460 (int)(unsigned char)*basic_streambuf_char_gptr(this) : call_basic_streambuf_char_underflow(this);
1463 /* ?snextc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1464 /* ?snextc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1465 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_snextc
, 4)
1466 int __thiscall
basic_streambuf_char_snextc(basic_streambuf_char
*this)
1468 TRACE("(%p)\n", this);
1470 if(basic_streambuf_char__Gnavail(this) > 1)
1471 return (unsigned char)*basic_streambuf_char__Gnpreinc(this);
1472 return basic_streambuf_char_sbumpc(this)==EOF
?
1473 EOF
: basic_streambuf_char_sgetc(this);
1476 /* ?xsgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHPADH@Z */
1477 /* ?xsgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEAD_J@Z */
1478 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsgetn
, 12)
1479 #define call_basic_streambuf_char_xsgetn(this, ptr, count) CALL_VTBL_FUNC(this, 24, \
1480 streamsize, (basic_streambuf_char*, char*, streamsize), (this, ptr, count))
1481 streamsize __thiscall
basic_streambuf_char_xsgetn(basic_streambuf_char
*this, char *ptr
, streamsize count
)
1483 TRACE("(%p %p %ld)\n", this, ptr
, count
);
1484 return basic_streambuf_char__Xsgetn_s(this, ptr
, -1, count
);
1487 /* ?xsputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHPBDH@Z */
1488 /* ?xsputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEBD_J@Z */
1489 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsputn
, 12)
1490 #define call_basic_streambuf_char_xsputn(this, ptr, count) CALL_VTBL_FUNC(this, 28, \
1491 streamsize, (basic_streambuf_char*, const char*, streamsize), (this, ptr, count))
1492 streamsize __thiscall
basic_streambuf_char_xsputn(basic_streambuf_char
*this, const char *ptr
, streamsize count
)
1494 streamsize copied
, chunk
;
1496 TRACE("(%p %p %ld)\n", this, ptr
, count
);
1498 for(copied
=0; copied
<count
;) {
1499 chunk
= basic_streambuf_char__Pnavail(this);
1500 if(chunk
> count
-copied
)
1501 chunk
= count
-copied
;
1504 memcpy(*this->pwpos
, ptr
+copied
, chunk
);
1505 *this->pwpos
+= chunk
;
1506 *this->pwsize
-= chunk
;
1508 }else if(call_basic_streambuf_char_overflow(this, (unsigned char)ptr
[copied
]) != EOF
) {
1518 /* ?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPBDH@Z */
1519 /* ?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEBD_J@Z */
1520 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputn
, 12)
1521 streamsize __thiscall
basic_streambuf_char_sputn(basic_streambuf_char
*this, const char *ptr
, streamsize count
)
1523 TRACE("(%p %p %ld)\n", this, ptr
, count
);
1524 return call_basic_streambuf_char_xsputn(this, ptr
, count
);
1527 /* ?getloc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AVlocale@2@XZ */
1528 /* ?getloc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AVlocale@2@XZ */
1529 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_getloc
, 8)
1530 locale
* __thiscall
basic_streambuf_char_getloc(basic_streambuf_char
*this, locale
*ret
)
1532 TRACE("(%p %p)\n", this, ret
);
1533 return locale_copy_ctor(ret
, &this->loc
);
1536 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPA_W00@Z */
1537 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEA_W00@Z */
1538 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAG00@Z */
1539 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAG00@Z */
1540 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setp_next
, 16)
1541 void __thiscall
basic_streambuf_wchar_setp_next(basic_streambuf_wchar
*this, wchar_t *first
, wchar_t *next
, wchar_t *last
)
1543 TRACE("(%p %p %p %p)\n", this, first
, next
, last
);
1547 this->wsize
= last
-next
;
1550 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPA_W0@Z */
1551 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEA_W0@Z */
1552 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAG0@Z */
1553 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAG0@Z */
1554 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setp
, 12)
1555 void __thiscall
basic_streambuf_wchar_setp(basic_streambuf_wchar
*this, wchar_t *first
, wchar_t *last
)
1557 basic_streambuf_wchar_setp_next(this, first
, first
, last
);
1560 /* ?setg@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPA_W00@Z */
1561 /* ?setg@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEA_W00@Z */
1562 /* ?setg@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAG00@Z */
1563 /* ?setg@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAG00@Z */
1564 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setg
, 16)
1565 void __thiscall
basic_streambuf_wchar_setg(basic_streambuf_wchar
*this, wchar_t *first
, wchar_t *next
, wchar_t *last
)
1567 TRACE("(%p %p %p %p)\n", this, first
, next
, last
);
1571 this->rsize
= last
-next
;
1574 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXXZ */
1575 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXXZ */
1576 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXXZ */
1577 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXXZ */
1578 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Init_empty
, 4)
1579 void __thiscall
basic_streambuf_wchar__Init_empty(basic_streambuf_wchar
*this)
1581 TRACE("(%p)\n", this);
1583 this->prbuf
= &this->rbuf
;
1584 this->pwbuf
= &this->wbuf
;
1585 this->prpos
= &this->rpos
;
1586 this->pwpos
= &this->wpos
;
1587 this->prsize
= &this->rsize
;
1588 this->pwsize
= &this->wsize
;
1590 basic_streambuf_wchar_setp(this, NULL
, NULL
);
1591 basic_streambuf_wchar_setg(this, NULL
, NULL
, NULL
);
1594 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAE@W4_Uninitialized@1@@Z */
1595 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAA@W4_Uninitialized@1@@Z */
1596 static basic_streambuf_wchar
* basic_streambuf_wchar_ctor_uninitialized(basic_streambuf_wchar
*this, int uninitialized
)
1598 TRACE("(%p %d)\n", this, uninitialized
);
1599 this->vtable
= &MSVCP_basic_streambuf_wchar_vtable
;
1603 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAE@W4_Uninitialized@1@@Z */
1604 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAA@W4_Uninitialized@1@@Z */
1605 DEFINE_THISCALL_WRAPPER(basic_streambuf_short_ctor_uninitialized
, 8)
1606 basic_streambuf_wchar
* __thiscall
basic_streambuf_short_ctor_uninitialized(basic_streambuf_wchar
*this, int uninitialized
)
1608 TRACE("(%p %d)\n", this, uninitialized
);
1609 basic_streambuf_wchar_ctor_uninitialized(this, uninitialized
);
1610 this->vtable
= &MSVCP_basic_streambuf_short_vtable
;
1614 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAE@XZ */
1615 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAA@XZ */
1616 static basic_streambuf_wchar
* basic_streambuf_wchar_ctor(basic_streambuf_wchar
*this)
1618 TRACE("(%p)\n", this);
1620 this->vtable
= &MSVCP_basic_streambuf_wchar_vtable
;
1621 locale_ctor(&this->loc
);
1622 basic_streambuf_wchar__Init_empty(this);
1627 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAE@XZ */
1628 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAA@XZ */
1629 DEFINE_THISCALL_WRAPPER(basic_streambuf_short_ctor
, 4)
1630 basic_streambuf_wchar
* __thiscall
basic_streambuf_short_ctor(basic_streambuf_wchar
*this)
1632 TRACE("(%p)\n", this);
1633 basic_streambuf_wchar_ctor(this);
1634 this->vtable
= &MSVCP_basic_streambuf_short_vtable
;
1638 /* ??1?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
1639 /* ??1?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
1640 /* ??1?$basic_streambuf@GU?$char_traits@G@std@@@std@@UAE@XZ */
1641 /* ??1?$basic_streambuf@GU?$char_traits@G@std@@@std@@UEAA@XZ */
1642 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_dtor
, 4)
1643 void __thiscall
basic_streambuf_wchar_dtor(basic_streambuf_wchar
*this)
1645 TRACE("(%p)\n", this);
1647 locale_dtor(&this->loc
);
1650 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_vector_dtor
, 8)
1651 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_vector_dtor(basic_streambuf_wchar
*this, unsigned int flags
)
1653 TRACE("(%p %x)\n", this, flags
);
1655 /* we have an array, with the number of elements stored before the first object */
1656 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
1658 for(i
=*ptr
-1; i
>=0; i
--)
1659 basic_streambuf_wchar_dtor(this+i
);
1660 MSVCRT_operator_delete(ptr
);
1662 basic_streambuf_wchar_dtor(this);
1664 MSVCRT_operator_delete(this);
1670 /* ?_Gnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEHXZ */
1671 /* ?_Gnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBA_JXZ */
1672 /* ?_Gnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEHXZ */
1673 /* ?_Gnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBA_JXZ */
1674 static streamsize
basic_streambuf_wchar__Gnavail(const basic_streambuf_wchar
*this)
1676 TRACE("(%p)\n", this);
1677 return *this->prpos
? *this->prsize
: 0;
1680 /* ?_Gndec@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
1681 /* ?_Gndec@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
1682 /* ?_Gndec@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
1683 /* ?_Gndec@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
1684 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Gndec
, 4)
1685 wchar_t* __thiscall
basic_streambuf_wchar__Gndec(basic_streambuf_wchar
*this)
1687 TRACE("(%p)\n", this);
1690 return *this->prpos
;
1693 /* ?_Gninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
1694 /* ?_Gninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
1695 /* ?_Gninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
1696 /* ?_Gninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
1697 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Gninc
, 4)
1698 wchar_t* __thiscall
basic_streambuf_wchar__Gninc(basic_streambuf_wchar
*this)
1700 TRACE("(%p)\n", this);
1702 return (*this->prpos
)++;
1705 /* ?_Gnpreinc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
1706 /* ?_Gnpreinc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
1707 /* ?_Gnpreinc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
1708 /* ?_Gnpreinc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
1709 static wchar_t* basic_streambuf_wchar__Gnpreinc(basic_streambuf_wchar
*this)
1711 TRACE("(%p)\n", this);
1714 return *this->prpos
;
1717 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPAPA_W0PAH001@Z */
1718 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEAPEA_W0PEAH001@Z */
1719 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAPAG0PAH001@Z */
1720 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAPEAG0PEAH001@Z */
1721 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Init
, 28)
1722 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
)
1724 TRACE("(%p %p %p %p %p %p %p)\n", this, gf
, gn
, gc
, pf
, pn
, pc
);
1734 /* ?_Lock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
1735 /* ?_Lock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
1736 /* ?_Lock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
1737 /* ?_Lock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
1738 static void basic_streambuf_wchar__Lock(basic_streambuf_wchar
*this)
1740 TRACE("(%p)\n", this);
1743 /* ?_Pnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEHXZ */
1744 /* ?_Pnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBA_JXZ */
1745 /* ?_Pnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEHXZ */
1746 /* ?_Pnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBA_JXZ */
1747 static streamsize
basic_streambuf_wchar__Pnavail(const basic_streambuf_wchar
*this)
1749 TRACE("(%p)\n", this);
1750 return *this->pwpos
? *this->pwsize
: 0;
1753 /* ?_Pninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
1754 /* ?_Pninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
1755 /* ?_Pninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
1756 /* ?_Pninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
1757 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Pninc
, 4)
1758 wchar_t* __thiscall
basic_streambuf_wchar__Pninc(basic_streambuf_wchar
*this)
1760 TRACE("(%p)\n", this);
1762 return (*this->pwpos
)++;
1765 /* ?underflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
1766 /* ?underflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
1767 /* ?underflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
1768 /* ?underflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
1769 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_underflow
, 4)
1770 #define call_basic_streambuf_wchar_underflow(this) CALL_VTBL_FUNC(this, 16, \
1771 unsigned short, (basic_streambuf_wchar*), (this))
1772 unsigned short __thiscall
basic_streambuf_wchar_underflow(basic_streambuf_wchar
*this)
1774 TRACE("(%p)\n", this);
1778 /* ?uflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
1779 /* ?uflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
1780 /* ?uflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
1781 /* ?uflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
1782 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_uflow
, 4)
1783 #define call_basic_streambuf_wchar_uflow(this) CALL_VTBL_FUNC(this, 20, \
1784 unsigned short, (basic_streambuf_wchar*), (this))
1785 unsigned short __thiscall
basic_streambuf_wchar_uflow(basic_streambuf_wchar
*this)
1789 TRACE("(%p)\n", this);
1791 if(call_basic_streambuf_wchar_underflow(this)==WEOF
)
1794 ret
= **this->prpos
;
1800 /* ?_Xsgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHPA_WIH@Z */
1801 /* ?_Xsgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEA_W_K_J@Z */
1802 /* ?_Xsgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHPAGIH@Z */
1803 /* ?_Xsgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JPEAG_K_J@Z */
1804 static streamsize
basic_streambuf_wchar__Xsgetn_s(basic_streambuf_wchar
*this, wchar_t *ptr
, MSVCP_size_t size
, streamsize count
)
1806 streamsize copied
, chunk
;
1809 TRACE("(%p %p %lu %ld)\n", this, ptr
, size
, count
);
1811 for(copied
=0; copied
<count
&& size
;) {
1812 chunk
= basic_streambuf_wchar__Gnavail(this);
1813 if(chunk
> count
-copied
)
1814 chunk
= count
-copied
;
1817 memcpy_s(ptr
+copied
, size
, *this->prpos
, chunk
*sizeof(wchar_t));
1818 *this->prpos
+= chunk
;
1819 *this->prsize
-= chunk
;
1821 size
-= chunk
*sizeof(wchar_t);
1822 }else if((c
= call_basic_streambuf_wchar_uflow(this)) != WEOF
) {
1834 /* ?_Sgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHPA_WIH@Z */
1835 /* ?_Sgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_K_J@Z */
1836 /* ?_Sgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHPAGIH@Z */
1837 /* ?_Sgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_K_J@Z */
1838 static streamsize
basic_streambuf_wchar__Sgetn_s(basic_streambuf_wchar
*this, wchar_t *ptr
, MSVCP_size_t size
, streamsize count
)
1840 TRACE("(%p %p %lu %ld)\n", this, ptr
, size
, count
);
1841 return basic_streambuf_wchar__Xsgetn_s(this, ptr
, size
, count
);
1844 /* ?_Unlock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
1845 /* ?_Unlock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
1846 /* ?_Unlock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
1847 /* ?_Unlock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
1848 static void basic_streambuf_wchar__Unlock(basic_streambuf_wchar
*this)
1850 TRACE("(%p)\n", this);
1853 /* ?eback@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
1854 /* ?eback@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
1855 /* ?eback@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
1856 /* ?eback@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
1857 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_eback
, 4)
1858 wchar_t* __thiscall
basic_streambuf_wchar_eback(const basic_streambuf_wchar
*this)
1860 TRACE("(%p)\n", this);
1861 return *this->prbuf
;
1864 /* ?gptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
1865 /* ?gptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
1866 /* ?gptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
1867 /* ?gptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
1868 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_gptr
, 4)
1869 wchar_t* __thiscall
basic_streambuf_wchar_gptr(const basic_streambuf_wchar
*this)
1871 TRACE("(%p)\n", this);
1872 return *this->prpos
;
1875 /* ?egptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
1876 /* ?egptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
1877 /* ?egptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
1878 /* ?egptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
1879 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_egptr
, 4)
1880 wchar_t* __thiscall
basic_streambuf_wchar_egptr(const basic_streambuf_wchar
*this)
1882 TRACE("(%p)\n", this);
1883 return *this->prpos
+*this->prsize
;
1886 /* ?epptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
1887 /* ?epptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
1888 /* ?epptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
1889 /* ?epptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
1890 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_epptr
, 4)
1891 wchar_t* __thiscall
basic_streambuf_wchar_epptr(const basic_streambuf_wchar
*this)
1893 TRACE("(%p)\n", this);
1894 return *this->pwpos
+*this->pwsize
;
1897 /* ?gbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXH@Z */
1898 /* ?gbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXH@Z */
1899 /* ?gbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXH@Z */
1900 /* ?gbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXH@Z */
1901 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_gbump
, 8)
1902 void __thiscall
basic_streambuf_wchar_gbump(basic_streambuf_wchar
*this, int off
)
1904 TRACE("(%p %d)\n", this, off
);
1905 *this->prpos
+= off
;
1906 *this->prsize
-= off
;
1909 /* ?imbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEXABVlocale@2@@Z */
1910 /* ?imbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAXAEBVlocale@2@@Z */
1911 /* ?imbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEXABVlocale@2@@Z */
1912 /* ?imbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAXAEBVlocale@2@@Z */
1913 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_imbue
, 8)
1914 #define call_basic_streambuf_wchar_imbue(this, loc) CALL_VTBL_FUNC(this, 48, \
1915 void, (basic_streambuf_wchar*, const locale*), (this, loc))
1916 void __thiscall
basic_streambuf_wchar_imbue(basic_streambuf_wchar
*this, const locale
*loc
)
1918 TRACE("(%p %p)\n", this, loc
);
1921 /* ?overflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
1922 /* ?overflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
1923 /* ?overflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
1924 /* ?overflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
1925 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_overflow
, 8)
1926 #define call_basic_streambuf_wchar_overflow(this, ch) CALL_VTBL_FUNC(this, 4, \
1927 unsigned short, (basic_streambuf_wchar*, unsigned short), (this, ch))
1928 unsigned short __thiscall
basic_streambuf_wchar_overflow(basic_streambuf_wchar
*this, unsigned short ch
)
1930 TRACE("(%p %d)\n", this, ch
);
1934 /* ?pbackfail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
1935 /* ?pbackfail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
1936 /* ?pbackfail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
1937 /* ?pbackfail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
1938 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pbackfail
, 8)
1939 #define call_basic_streambuf_wchar_pbackfail(this, ch) CALL_VTBL_FUNC(this, 8, \
1940 unsigned short, (basic_streambuf_wchar*, unsigned short), (this, ch))
1941 unsigned short __thiscall
basic_streambuf_wchar_pbackfail(basic_streambuf_wchar
*this, unsigned short ch
)
1943 TRACE("(%p %d)\n", this, ch
);
1947 /* ?pbase@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
1948 /* ?pbase@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
1949 /* ?pbase@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
1950 /* ?pbase@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
1951 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pbase
, 4)
1952 wchar_t* __thiscall
basic_streambuf_wchar_pbase(const basic_streambuf_wchar
*this)
1954 TRACE("(%p)\n", this);
1955 return *this->pwbuf
;
1958 /* ?pbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXH@Z */
1959 /* ?pbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXH@Z */
1960 /* ?pbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXH@Z */
1961 /* ?pbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXH@Z */
1962 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pbump
, 8)
1963 void __thiscall
basic_streambuf_wchar_pbump(basic_streambuf_wchar
*this, int off
)
1965 TRACE("(%p %d)\n", this, off
);
1966 *this->pwpos
+= off
;
1967 *this->pwsize
-= off
;
1970 /* ?pptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
1971 /* ?pptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
1972 /* ?pptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
1973 /* ?pptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
1974 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pptr
, 4)
1975 wchar_t* __thiscall
basic_streambuf_wchar_pptr(const basic_streambuf_wchar
*this)
1977 TRACE("(%p)\n", this);
1978 return *this->pwpos
;
1981 /* ?pubimbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
1982 /* ?pubimbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
1983 /* ?pubimbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
1984 /* ?pubimbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
1985 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubimbue
, 12)
1986 locale
* __thiscall
basic_streambuf_wchar_pubimbue(basic_streambuf_wchar
*this, locale
*ret
, const locale
*loc
)
1988 TRACE("(%p %p)\n", this, loc
);
1989 memcpy(ret
, &this->loc
, sizeof(locale
));
1990 call_basic_streambuf_wchar_imbue(this, loc
);
1991 locale_copy_ctor(&this->loc
, loc
);
1995 /* ?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
1996 /* ?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
1997 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_seekoff
, 20)
1998 #define call_basic_streambuf_wchar_seekoff(this, ret, off, way, mode) CALL_VTBL_FUNC(this, 32, \
1999 fpos_int*, (basic_streambuf_wchar*, fpos_int*, streamoff, int, int), (this, ret, off, way, mode))
2000 fpos_int
* __thiscall
basic_streambuf_wchar_seekoff(basic_streambuf_wchar
*this,
2001 fpos_int
*ret
, streamoff off
, int way
, int mode
)
2003 TRACE("(%p %ld %d %d)\n", this, off
, way
, mode
);
2010 /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@JHH@Z */
2011 /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@_JHH@Z */
2012 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JHH@Z */
2013 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JHH@Z */
2014 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JFF@Z */
2015 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JFF@Z */
2016 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
2017 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JW4seekdir@ioos_base@2@H@Z */
2018 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff
, 20)
2019 fpos_int
* __thiscall
basic_streambuf_wchar_pubseekoff(basic_streambuf_wchar
*this,
2020 fpos_int
*ret
, streamoff off
, int way
, int mode
)
2022 TRACE("(%p %ld %d %d)\n", this, off
, way
, mode
);
2023 return call_basic_streambuf_wchar_seekoff(this, ret
, off
, way
, mode
);
2026 /* ?seekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
2027 /* ?seekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
2028 /* ?seekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
2029 /* ?seekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
2030 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_seekpos
, 36)
2031 #define call_basic_streambuf_wchar_seekpos(this, ret, pos, mode) CALL_VTBL_FUNC(this, 36, \
2032 fpos_int*, (basic_streambuf_wchar*, fpos_int*, fpos_int, int), (this, ret, pos, mode))
2033 fpos_int
* __thiscall
basic_streambuf_wchar_seekpos(basic_streambuf_wchar
*this,
2034 fpos_int
*ret
, fpos_int pos
, int mode
)
2036 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
2043 /* ?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@V32@H@Z */
2044 /* ?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@V32@H@Z */
2045 /* ?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@V32@H@Z */
2046 /* ?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@V32@H@Z */
2047 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekpos
, 36)
2048 fpos_int
* __thiscall
basic_streambuf_wchar_pubseekpos(basic_streambuf_wchar
*this,
2049 fpos_int
*ret
, fpos_int pos
, int mode
)
2051 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos
), mode
);
2052 return call_basic_streambuf_wchar_seekpos(this, ret
, pos
, mode
);
2055 /* ?setbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEPAV12@PA_WH@Z */
2056 /* ?setbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAPEAV12@PEA_W_J@Z */
2057 /* ?setbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEPAV12@PAGH@Z */
2058 /* ?setbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAPEAV12@PEAG_J@Z */
2059 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setbuf
, 12)
2060 #define call_basic_streambuf_wchar_setbuf(this, buf, count) CALL_VTBL_FUNC(this, 40, \
2061 basic_streambuf_wchar*, (basic_streambuf_wchar*, wchar_t*, streamsize), (this, buf, count))
2062 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_setbuf(basic_streambuf_wchar
*this, wchar_t *buf
, streamsize count
)
2064 TRACE("(%p %p %ld)\n", this, buf
, count
);
2068 /* ?pubsetbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PA_WH@Z */
2069 /* ?pubsetbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEA_W_J@Z */
2070 /* ?pubsetbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PAGH@Z */
2071 /* ?pubsetbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEAG_J@Z */
2072 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubsetbuf
, 12)
2073 basic_streambuf_wchar
* __thiscall
basic_streambuf_wchar_pubsetbuf(basic_streambuf_wchar
*this, wchar_t *buf
, streamsize count
)
2075 TRACE("(%p %p %ld)\n", this, buf
, count
);
2076 return call_basic_streambuf_wchar_setbuf(this, buf
, count
);
2079 /* ?sync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHXZ */
2080 /* ?sync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAHXZ */
2081 /* ?sync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHXZ */
2082 /* ?sync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAHXZ */
2083 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sync
, 4)
2084 #define call_basic_streambuf_wchar_sync(this) CALL_VTBL_FUNC(this, 44, \
2085 int, (basic_streambuf_wchar*), (this))
2086 int __thiscall
basic_streambuf_wchar_sync(basic_streambuf_wchar
*this)
2088 TRACE("(%p)\n", this);
2092 /* ?pubsync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHXZ */
2093 /* ?pubsync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAHXZ */
2094 /* ?pubsync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHXZ */
2095 /* ?pubsync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAHXZ */
2096 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubsync
, 4)
2097 int __thiscall
basic_streambuf_wchar_pubsync(basic_streambuf_wchar
*this)
2099 TRACE("(%p)\n", this);
2100 return call_basic_streambuf_wchar_sync(this);
2103 /* ?sgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHPA_WH@Z */
2104 /* ?sgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_J@Z */
2105 /* ?sgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHPAGH@Z */
2106 /* ?sgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_J@Z */
2107 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sgetn
, 12)
2108 streamsize __thiscall
basic_streambuf_wchar_sgetn(basic_streambuf_wchar
*this, wchar_t *ptr
, streamsize count
)
2110 TRACE("(%p %p %ld)\n", this, ptr
, count
);
2111 return basic_streambuf_wchar__Xsgetn_s(this, ptr
, -1, count
);
2114 /* ?showmanyc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHXZ */
2115 /* ?showmanyc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JXZ */
2116 /* ?showmanyc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHXZ */
2117 /* ?showmanyc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JXZ */
2118 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_showmanyc
, 4)
2119 #define call_basic_streambuf_wchar_showmanyc(this) CALL_VTBL_FUNC(this, 12, \
2120 streamsize, (basic_streambuf_wchar*), (this))
2121 streamsize __thiscall
basic_streambuf_wchar_showmanyc(basic_streambuf_wchar
*this)
2123 TRACE("(%p)\n", this);
2127 /* ?in_avail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHXZ */
2128 /* ?in_avail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JXZ */
2129 /* ?in_avail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHXZ */
2130 /* ?in_avail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JXZ */
2131 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_in_avail
, 4)
2132 streamsize __thiscall
basic_streambuf_wchar_in_avail(basic_streambuf_wchar
*this)
2136 TRACE("(%p)\n", this);
2138 ret
= basic_streambuf_wchar__Gnavail(this);
2139 return ret
? ret
: call_basic_streambuf_wchar_showmanyc(this);
2142 /* ?sputbackc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEG_W@Z */
2143 /* ?sputbackc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAG_W@Z */
2144 /* ?sputbackc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGG@Z */
2145 /* ?sputbackc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGG@Z */
2146 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputbackc
, 8)
2147 unsigned short __thiscall
basic_streambuf_wchar_sputbackc(basic_streambuf_wchar
*this, wchar_t ch
)
2149 TRACE("(%p %d)\n", this, ch
);
2150 if(*this->prpos
&& *this->prpos
>*this->prbuf
&& (*this->prpos
)[-1]==ch
) {
2156 return call_basic_streambuf_wchar_pbackfail(this, ch
);
2159 /* ?sputc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEG_W@Z */
2160 /* ?sputc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAG_W@Z */
2161 /* ?sputc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGG@Z */
2162 /* ?sputc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAHG@Z */
2163 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputc
, 8)
2164 unsigned short __thiscall
basic_streambuf_wchar_sputc(basic_streambuf_wchar
*this, wchar_t ch
)
2166 TRACE("(%p %d)\n", this, ch
);
2167 return basic_streambuf_wchar__Pnavail(this) ?
2168 (*basic_streambuf_wchar__Pninc(this) = ch
) :
2169 call_basic_streambuf_wchar_overflow(this, ch
);
2172 /* ?sungetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2173 /* ?sungetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2174 /* ?sungetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2175 /* ?sungetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2176 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sungetc
, 4)
2177 unsigned short __thiscall
basic_streambuf_wchar_sungetc(basic_streambuf_wchar
*this)
2179 TRACE("(%p)\n", this);
2180 if(*this->prpos
&& *this->prpos
>*this->prbuf
) {
2183 return **this->prpos
;
2186 return call_basic_streambuf_wchar_pbackfail(this, WEOF
);
2189 /* ?stossc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
2190 /* ?stossc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
2191 /* ?stossc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
2192 /* ?stossc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
2193 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_stossc
, 4)
2194 void __thiscall
basic_streambuf_wchar_stossc(basic_streambuf_wchar
*this)
2196 TRACE("(%p)\n", this);
2197 if(basic_streambuf_wchar__Gnavail(this))
2198 basic_streambuf_wchar__Gninc(this);
2200 call_basic_streambuf_wchar_uflow(this);
2203 /* ?sbumpc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2204 /* ?sbumpc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2205 /* ?sbumpc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2206 /* ?sbumpc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2207 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sbumpc
, 4)
2208 unsigned short __thiscall
basic_streambuf_wchar_sbumpc(basic_streambuf_wchar
*this)
2210 TRACE("(%p)\n", this);
2211 return basic_streambuf_wchar__Gnavail(this) ?
2212 *basic_streambuf_wchar__Gninc(this) : call_basic_streambuf_wchar_uflow(this);
2215 /* ?sgetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2216 /* ?sgetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2217 /* ?sgetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2218 /* ?sgetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2219 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sgetc
, 4)
2220 unsigned short __thiscall
basic_streambuf_wchar_sgetc(basic_streambuf_wchar
*this)
2222 TRACE("(%p)\n", this);
2223 return basic_streambuf_wchar__Gnavail(this) ?
2224 *basic_streambuf_wchar_gptr(this) : call_basic_streambuf_wchar_underflow(this);
2227 /* ?snextc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2228 /* ?snextc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2229 /* ?snextc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2230 /* ?snextc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2231 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_snextc
, 4)
2232 unsigned short __thiscall
basic_streambuf_wchar_snextc(basic_streambuf_wchar
*this)
2234 TRACE("(%p)\n", this);
2236 if(basic_streambuf_wchar__Gnavail(this) > 1)
2237 return *basic_streambuf_wchar__Gnpreinc(this);
2238 return basic_streambuf_wchar_sbumpc(this)==WEOF
?
2239 WEOF
: basic_streambuf_wchar_sgetc(this);
2242 /* ?xsgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHPA_WH@Z */
2243 /* ?xsgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEA_W_J@Z */
2244 /* ?xsgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHPAGH@Z */
2245 /* ?xsgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JPEAG_J@Z */
2246 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsgetn
, 12)
2247 #define call_basic_streambuf_wchar_xsgetn(this, ptr, count) CALL_VTBL_FUNC(this, 24, \
2248 streamsize, (basic_streambuf_wchar*, wchar_t*, streamsize), (this, ptr, count))
2249 streamsize __thiscall
basic_streambuf_wchar_xsgetn(basic_streambuf_wchar
*this, wchar_t *ptr
, streamsize count
)
2251 TRACE("(%p %p %ld)\n", this, ptr
, count
);
2252 return basic_streambuf_wchar__Xsgetn_s(this, ptr
, -1, count
);
2255 /* ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHPB_WH@Z */
2256 /* ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEB_W_J@Z */
2257 /* ?xsputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHPBGH@Z */
2258 /* ?xsputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JPEBG_J@Z */
2259 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsputn
, 12)
2260 #define call_basic_streambuf_wchar_xsputn(this, ptr, count) CALL_VTBL_FUNC(this, 28, \
2261 streamsize, (basic_streambuf_wchar*, const wchar_t*, streamsize), (this, ptr, count))
2262 streamsize __thiscall
basic_streambuf_wchar_xsputn(basic_streambuf_wchar
*this, const wchar_t *ptr
, streamsize count
)
2264 streamsize copied
, chunk
;
2266 TRACE("(%p %p %ld)\n", this, ptr
, count
);
2268 for(copied
=0; copied
<count
;) {
2269 chunk
= basic_streambuf_wchar__Pnavail(this);
2270 if(chunk
> count
-copied
)
2271 chunk
= count
-copied
;
2274 memcpy(*this->pwpos
, ptr
+copied
, chunk
*sizeof(wchar_t));
2275 *this->pwpos
+= chunk
;
2276 *this->pwsize
-= chunk
;
2278 }else if(call_basic_streambuf_wchar_overflow(this, ptr
[copied
]) != WEOF
) {
2288 /* ?sputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHPB_WH@Z */
2289 /* ?sputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JPEB_W_J@Z */
2290 /* ?sputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHPBGH@Z */
2291 /* ?sputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JPEBG_J@Z */
2292 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputn
, 12)
2293 streamsize __thiscall
basic_streambuf_wchar_sputn(basic_streambuf_wchar
*this, const wchar_t *ptr
, streamsize count
)
2295 TRACE("(%p %p %ld)\n", this, ptr
, count
);
2296 return call_basic_streambuf_wchar_xsputn(this, ptr
, count
);
2299 /* ?_Stinit@?1??_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@23@@Z@4HA */
2300 /* ?_Stinit@?1??_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@23@@Z@4HA */
2301 int basic_filebuf_char__Init__Stinit
= 0;
2303 /* ?_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@12@@Z */
2304 /* ?_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@12@@Z */
2305 DEFINE_THISCALL_WRAPPER(basic_filebuf_char__Init
, 12)
2306 void __thiscall
basic_filebuf_char__Init(basic_filebuf_char
*this, FILE *file
, basic_filebuf__Initfl which
)
2308 TRACE("(%p %p %d)\n", this, file
, which
);
2311 this->state0
= basic_filebuf_char__Init__Stinit
;
2312 this->state
= basic_filebuf_char__Init__Stinit
;
2313 if(which
== INITFL_new
)
2315 this->close
= (which
== INITFL_open
);
2318 basic_streambuf_char__Init_empty(&this->base
);
2320 basic_streambuf_char__Init(&this->base
, &file
->_base
, &file
->_ptr
,
2321 &file
->_cnt
, &file
->_base
, &file
->_ptr
, &file
->_cnt
);
2324 /* ?_Initcvt@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAEXXZ */
2325 /* ?_Initcvt@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXXZ */
2326 DEFINE_THISCALL_WRAPPER(basic_filebuf_char__Initcvt
, 4)
2327 void __thiscall
basic_filebuf_char__Initcvt(basic_filebuf_char
*this)
2329 TRACE("(%p)\n", this);
2331 this->cvt
= codecvt_char_use_facet(&this->base
.loc
);
2332 locale__Addfac(&this->loc
, &this->cvt
->base
.facet
, codecvt_char_id
.id
, LC_CTYPE
);
2333 if(codecvt_base_always_noconv(&this->cvt
->base
)) {
2336 this->str
= MSVCRT_operator_new(sizeof(basic_string_char
));
2337 basic_string_char_ctor(this->str
);
2341 /* ?close@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@XZ */
2342 /* ?close@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@XZ */
2343 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_close
, 4)
2344 basic_filebuf_char
* __thiscall
basic_filebuf_char_close(basic_filebuf_char
*this)
2346 basic_filebuf_char
*ret
= this;
2348 TRACE("(%p)\n", this);
2350 if(!this->file
|| fclose(this->file
))
2353 basic_filebuf_char__Init(this, NULL
, INITFL_close
);
2357 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
2358 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
2359 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_ctor_file
, 8)
2360 basic_filebuf_char
* __thiscall
basic_filebuf_char_ctor_file(basic_filebuf_char
*this, FILE *file
)
2362 TRACE("(%p %p)\n", this, file
);
2364 basic_streambuf_char_ctor(&this->base
);
2365 this->base
.vtable
= &MSVCP_basic_filebuf_char_vtable
;
2367 locale_ctor(&this->loc
);
2368 basic_filebuf_char__Init(this, file
, INITFL_new
);
2372 /* ??_F?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
2373 /* ??_F?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
2374 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_ctor
, 4)
2375 basic_filebuf_char
* __thiscall
basic_filebuf_char_ctor(basic_filebuf_char
*this)
2377 return basic_filebuf_char_ctor_file(this, NULL
);
2380 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAE@W4_Uninitialized@1@@Z */
2381 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
2382 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_ctor_uninitialized
, 8)
2383 basic_filebuf_char
* __thiscall
basic_filebuf_char_ctor_uninitialized(basic_filebuf_char
*this, int uninitialized
)
2385 TRACE("(%p %d)\n", this, uninitialized
);
2387 basic_streambuf_char_ctor_uninitialized(&this->base
, 0);
2388 this->base
.vtable
= &MSVCP_basic_filebuf_char_vtable
;
2389 locale_ctor(&this->loc
);
2393 /* ??1?$basic_filebuf@DU?$char_traits@D@std@@@std@@UAE@XZ */
2394 /* ??1?$basic_filebuf@DU?$char_traits@D@std@@@std@@UEAA@XZ */
2395 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_dtor
, 4)
2396 void __thiscall
basic_filebuf_char_dtor(basic_filebuf_char
*this)
2398 TRACE("(%p)\n", this);
2401 basic_filebuf_char_close(this);
2403 basic_string_char_dtor(this->str
);
2404 MSVCRT_operator_delete(this->str
);
2406 locale_dtor(&this->loc
);
2407 basic_streambuf_char_dtor(&this->base
);
2410 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_vector_dtor
, 8)
2411 basic_filebuf_char
* __thiscall
basic_filebuf_char_vector_dtor(basic_filebuf_char
*this, unsigned int flags
)
2413 TRACE("(%p %x)\n", this, flags
);
2415 /* we have an array, with the number of elements stored before the first object */
2416 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
2418 for(i
=*ptr
-1; i
>=0; i
--)
2419 basic_filebuf_char_dtor(this+i
);
2420 MSVCRT_operator_delete(ptr
);
2422 basic_filebuf_char_dtor(this);
2424 MSVCRT_operator_delete(this);
2430 /* ?is_open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QBE_NXZ */
2431 /* ?is_open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
2432 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_is_open
, 4)
2433 MSVCP_bool __thiscall
basic_filebuf_char_is_open(const basic_filebuf_char
*this)
2435 TRACE("(%p)\n", this);
2436 return this->file
!= NULL
;
2439 /* ?_Fiopen@std@@YAPAU_iobuf@@PB_WHH@Z */
2440 /* ?_Fiopen@std@@YAPEAU_iobuf@@PEB_WHH@Z */
2441 static FILE* _Fiopen_wchar(const wchar_t *name
, int mode
, int prot
)
2443 static const wchar_t rW
[] = {'r',0};
2444 static const struct {
2446 const wchar_t str
[4];
2447 const wchar_t str_bin
[4];
2449 {OPENMODE_out
, {'w',0}, {'w','b',0}},
2450 {OPENMODE_out
|OPENMODE_app
, {'a',0}, {'a','b',0}},
2451 {OPENMODE_app
, {'a',0}, {'a','b',0}},
2452 {OPENMODE_out
|OPENMODE_trunc
, {'w',0}, {'w','b',0}},
2453 {OPENMODE_in
, {'r',0}, {'r','b',0}},
2454 {OPENMODE_in
|OPENMODE_out
, {'r','+',0}, {'r','+','b',0}},
2455 {OPENMODE_in
|OPENMODE_out
|OPENMODE_trunc
, {'w','+',0}, {'w','+','b',0}},
2456 {OPENMODE_in
|OPENMODE_out
|OPENMODE_app
, {'a','+',0}, {'a','+','b',0}},
2457 {OPENMODE_in
|OPENMODE_app
, {'a','+',0}, {'a','+','b',0}}
2460 int real_mode
= mode
& ~(OPENMODE_ate
|OPENMODE__Nocreate
|OPENMODE__Noreplace
|OPENMODE_binary
);
2461 unsigned int mode_idx
;
2464 TRACE("(%s %d %d)\n", debugstr_w(name
), mode
, prot
);
2466 for(mode_idx
=0; mode_idx
<sizeof(str_mode
)/sizeof(str_mode
[0]); mode_idx
++)
2467 if(str_mode
[mode_idx
].mode
== real_mode
)
2469 if(mode_idx
== sizeof(str_mode
)/sizeof(str_mode
[0]))
2472 if((mode
& OPENMODE__Nocreate
) && !(f
= _wfopen(name
, rW
)))
2477 if((mode
& OPENMODE__Noreplace
) && (mode
& (OPENMODE_out
|OPENMODE_app
))
2478 && (f
= _wfopen(name
, rW
))) {
2483 f
= _wfsopen(name
, (mode
& OPENMODE_binary
) ? str_mode
[mode_idx
].str_bin
2484 : str_mode
[mode_idx
].str
, prot
);
2488 if((mode
& OPENMODE_ate
) && fseek(f
, 0, SEEK_END
)) {
2496 /* ?_Fiopen@std@@YAPAU_iobuf@@PBDHH@Z */
2497 /* ?_Fiopen@std@@YAPEAU_iobuf@@PEBDHH@Z */
2498 static FILE* _Fiopen(const char *name
, int mode
, int prot
)
2500 wchar_t nameW
[FILENAME_MAX
];
2502 TRACE("(%s %d %d)\n", name
, mode
, prot
);
2504 if(mbstowcs_s(NULL
, nameW
, FILENAME_MAX
, name
, FILENAME_MAX
-1) != 0)
2506 return _Fiopen_wchar(nameW
, mode
, prot
);
2509 /* ?__Fiopen@std@@YAPAU_iobuf@@PBDH@Z */
2510 /* ?__Fiopen@std@@YAPEAU_iobuf@@PEBDH@Z */
2511 FILE* __cdecl
___Fiopen(const char *name
, int mode
)
2513 TRACE("(%p %d)\n", name
, mode
);
2514 return _Fiopen(name
, mode
, _SH_DENYNO
);
2517 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PB_WHH@Z */
2518 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEB_WHH@Z */
2519 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBGHH@Z */
2520 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBGHH@Z */
2521 static basic_filebuf_char
* basic_filebuf_char_open_wchar(basic_filebuf_char
*this, const wchar_t *name
, int mode
, int prot
)
2525 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
2527 if(basic_filebuf_char_is_open(this))
2530 if(!(f
= _Fiopen_wchar(name
, mode
, prot
)))
2533 basic_filebuf_char__Init(this, f
, INITFL_open
);
2534 basic_filebuf_char__Initcvt(this);
2538 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDHH@Z */
2539 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDHH@Z */
2540 static basic_filebuf_char
* basic_filebuf_char_open(basic_filebuf_char
*this, const char *name
, int mode
, int prot
)
2542 wchar_t nameW
[FILENAME_MAX
];
2544 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
2546 if(mbstowcs_s(NULL
, nameW
, FILENAME_MAX
, name
, FILENAME_MAX
-1) != 0)
2548 return basic_filebuf_char_open_wchar(this, nameW
, mode
, prot
);
2551 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDF@Z */
2552 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDF@Z */
2553 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open_mode_old
, 12)
2554 basic_filebuf_char
* __thiscall
basic_filebuf_char_open_mode_old(basic_filebuf_char
*this, const char *name
, short mode
)
2556 TRACE("(%p %p %d)\n", this, name
, mode
);
2557 return basic_filebuf_char_open(this, name
, mode
, _SH_DENYNO
);
2560 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDH@Z */
2561 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDH@Z */
2562 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open_mode
, 12)
2563 basic_filebuf_char
* __thiscall
basic_filebuf_char_open_mode(basic_filebuf_char
*this, const char *name
, int mode
)
2565 TRACE("(%p %p %d)\n", this, name
, mode
);
2566 return basic_filebuf_char_open(this, name
, mode
, _SH_DENYNO
);
2569 /* ?overflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHH@Z */
2570 /* ?overflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z */
2571 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_overflow
, 8)
2572 int __thiscall
basic_filebuf_char_overflow(basic_filebuf_char
*this, int c
)
2574 char *ptr
, ch
= c
, *to_next
;
2575 const char *from_next
;
2579 TRACE("(%p %d)\n", this, c
);
2581 if(!basic_filebuf_char_is_open(this))
2587 return fwrite(&ch
, sizeof(char), 1, this->file
) ? c
: EOF
;
2590 basic_string_char_clear(this->str
);
2591 basic_string_char_append_len_ch(this->str
, 8, '\0');
2592 ptr
= this->str
->ptr
;
2593 ret
= codecvt_char_out(this->cvt
, &this->state
, from_next
, &ch
+1, &from_next
,
2594 ptr
, ptr
+basic_string_char_length(this->str
), &to_next
);
2597 case CODECVT_partial
:
2598 if(from_next
== &ch
)
2601 if(!fwrite(ptr
, to_next
-ptr
, 1, this->file
))
2604 case CODECVT_noconv
:
2605 return fwrite(&ch
, sizeof(char), 1, this->file
) ? c
: EOF
;
2611 /* ?pbackfail@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHH@Z */
2612 /* ?pbackfail@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z */
2613 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_pbackfail
, 8)
2614 int __thiscall
basic_filebuf_char_pbackfail(basic_filebuf_char
*this, int c
)
2616 TRACE("(%p %d)\n", this, c
);
2618 if(!basic_filebuf_char_is_open(this))
2621 if(basic_streambuf_char_gptr(&this->base
)>basic_streambuf_char_eback(&this->base
)
2622 && (c
==EOF
|| (int)(unsigned char)basic_streambuf_char_gptr(&this->base
)[-1]==c
)) {
2623 basic_streambuf_char__Gndec(&this->base
);
2624 return c
==EOF
? !c
: c
;
2625 }else if(c
== EOF
) {
2627 }else if(!this->cvt
) {
2628 return ungetc(c
, this->file
);
2629 }else if(basic_string_char_length(this->str
)) {
2633 b
= e
+this->str
->size
-1;
2634 for(cur
= b
; cur
>=e
; cur
--) {
2635 if(ungetc(*cur
, this->file
) == EOF
) {
2636 for(; cur
<=b
; cur
++)
2641 basic_string_char_clear(this->str
);
2642 this->state
= this->state0
;
2649 /* ?uflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
2650 /* ?uflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
2651 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_uflow
, 4)
2652 int __thiscall
basic_filebuf_char_uflow(basic_filebuf_char
*this)
2655 const char *buf_next
;
2658 TRACE("(%p)\n", this);
2660 if(!basic_filebuf_char_is_open(this))
2663 if(basic_streambuf_char_gptr(&this->base
) < basic_streambuf_char_egptr(&this->base
))
2664 return (unsigned char)*basic_streambuf_char__Gninc(&this->base
);
2666 c
= fgetc(this->file
);
2667 if(!this->cvt
|| c
==EOF
)
2670 basic_string_char_clear(this->str
);
2671 this->state0
= this->state
;
2673 basic_string_char_append_ch(this->str
, c
);
2674 this->state
= this->state0
;
2676 switch(codecvt_char_in(this->cvt
, &this->state
, this->str
->ptr
,
2677 this->str
->ptr
+this->str
->size
, &buf_next
, &ch
, &ch
+1, &to_next
)) {
2678 case CODECVT_partial
:
2680 case CODECVT_noconv
:
2681 return (unsigned char)this->str
->ptr
[0];
2683 return (unsigned char)ch
;
2688 c
= fgetc(this->file
);
2694 /* ?underflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
2695 /* ?underflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
2696 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_underflow
, 4)
2697 int __thiscall
basic_filebuf_char_underflow(basic_filebuf_char
*this)
2701 TRACE("(%p)\n", this);
2703 if(basic_streambuf_char_gptr(&this->base
) < basic_streambuf_char_egptr(&this->base
))
2704 return (unsigned char)*basic_streambuf_char_gptr(&this->base
);
2706 ret
= call_basic_streambuf_char_uflow(&this->base
);
2708 ret
= call_basic_streambuf_char_pbackfail(&this->base
, ret
);
2712 /* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
2713 /* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
2714 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_seekoff
, 20)
2715 fpos_int
* __thiscall
basic_filebuf_char_seekoff(basic_filebuf_char
*this,
2716 fpos_int
*ret
, streamoff off
, int way
, int mode
)
2720 TRACE("(%p %p %ld %d %d)\n", this, ret
, off
, way
, mode
);
2722 if(!basic_filebuf_char_is_open(this) || fseek(this->file
, off
, way
)) {
2729 fgetpos(this->file
, &pos
);
2732 ret
->state
= this->state
;
2736 /* ?seekpos@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
2737 /* ?seekpos@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
2738 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_seekpos
, 36)
2739 fpos_int
* __thiscall
basic_filebuf_char_seekpos(basic_filebuf_char
*this,
2740 fpos_int
*ret
, fpos_int pos
, int mode
)
2744 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_int(&pos
), mode
);
2746 if(!basic_filebuf_char_is_open(this) || fseek(this->file
, (LONG
)pos
.pos
, SEEK_SET
)
2747 || (pos
.off
&& fseek(this->file
, pos
.off
, SEEK_CUR
))) {
2754 fgetpos(this->file
, &fpos
);
2757 ret
->state
= this->state
;
2761 /* ?setbuf@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PADH@Z */
2762 /* ?setbuf@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PEAD_J@Z */
2763 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_setbuf
, 12)
2764 basic_streambuf_char
* __thiscall
basic_filebuf_char_setbuf(basic_filebuf_char
*this, char *buf
, streamsize count
)
2766 TRACE("(%p %p %ld)\n", this, buf
, count
);
2768 if(!basic_filebuf_char_is_open(this))
2771 if(setvbuf(this->file
, buf
, (buf
==NULL
&& count
==0) ? _IONBF
: _IOFBF
, count
))
2774 basic_filebuf_char__Init(this, this->file
, INITFL_open
);
2778 /* ?sync@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
2779 /* ?sync@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
2780 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_sync
, 4)
2781 int __thiscall
basic_filebuf_char_sync(basic_filebuf_char
*this)
2783 TRACE("(%p)\n", this);
2785 if(!basic_filebuf_char_is_open(this))
2788 if(call_basic_streambuf_char_overflow(&this->base
, EOF
) == EOF
)
2790 return fflush(this->file
);
2793 /* ?_Stinit@?1??_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@23@@Z@4HA */
2794 /* ?_Stinit@?1??_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@23@@Z@4HA */
2795 int basic_filebuf_short__Init__Stinit
= 0;
2797 /* ?_Init@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@12@@Z */
2798 /* ?_Init@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@12@@Z */
2799 static void basic_filebuf_wchar__Init(basic_filebuf_wchar
*this, FILE *file
, basic_filebuf__Initfl which
)
2801 TRACE("(%p %p %d)\n", this, file
, which
);
2804 this->state0
= basic_filebuf_short__Init__Stinit
;
2805 this->state
= basic_filebuf_short__Init__Stinit
;
2806 if(which
== INITFL_new
)
2808 this->close
= (which
== INITFL_open
);
2811 basic_streambuf_wchar__Init_empty(&this->base
);
2814 /* ?_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@12@@Z */
2815 /* ?_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@12@@Z */
2816 DEFINE_THISCALL_WRAPPER(basic_filebuf_short__Init
, 12)
2817 void __thiscall
basic_filebuf_short__Init(basic_filebuf_wchar
*this, FILE *file
, basic_filebuf__Initfl which
)
2819 TRACE("(%p %p %d)\n", this, file
, which
);
2822 this->state0
= basic_filebuf_short__Init__Stinit
;
2823 this->state
= basic_filebuf_short__Init__Stinit
;
2824 if(which
== INITFL_new
)
2826 this->close
= (which
== INITFL_open
);
2829 basic_streambuf_wchar__Init_empty(&this->base
);
2832 /* ?_Initcvt@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAEXXZ */
2833 /* ?_Initcvt@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAAXXZ */
2834 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar__Initcvt
, 4)
2835 void __thiscall
basic_filebuf_wchar__Initcvt(basic_filebuf_wchar
*this)
2837 TRACE("(%p)\n", this);
2839 this->cvt
= codecvt_short_use_facet(&this->base
.loc
);
2840 locale__Addfac(&this->loc
, &this->cvt
->base
.facet
, codecvt_short_id
.id
, LC_CTYPE
);
2841 if(codecvt_base_always_noconv(&this->cvt
->base
)) {
2844 this->str
= MSVCRT_operator_new(sizeof(basic_string_char
));
2845 basic_string_char_ctor(this->str
);
2849 /* ?close@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@XZ */
2850 /* ?close@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@XZ */
2851 /* ?close@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@XZ */
2852 /* ?close@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@XZ */
2853 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_close
, 4)
2854 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_close(basic_filebuf_wchar
*this)
2856 basic_filebuf_wchar
*ret
= this;
2858 TRACE("(%p)\n", this);
2860 if(!this->file
|| fclose(this->file
))
2863 basic_filebuf_wchar__Init(this, NULL
, INITFL_close
);
2867 /* ??0?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
2868 /* ??0?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
2869 static basic_filebuf_wchar
* basic_filebuf_wchar_ctor_file(basic_filebuf_wchar
*this, FILE *file
)
2871 TRACE("(%p %p)\n", this, file
);
2873 basic_streambuf_wchar_ctor(&this->base
);
2874 this->base
.vtable
= &MSVCP_basic_filebuf_wchar_vtable
;
2876 locale_ctor(&this->loc
);
2877 basic_filebuf_wchar__Init(this, file
, INITFL_new
);
2881 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
2882 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
2883 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_ctor_file
, 8)
2884 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_ctor_file(basic_filebuf_wchar
*this, FILE *file
)
2886 TRACE("(%p %p)\n", this, file
);
2888 basic_streambuf_short_ctor(&this->base
);
2889 this->base
.vtable
= &MSVCP_basic_filebuf_short_vtable
;
2891 locale_ctor(&this->loc
);
2892 basic_filebuf_short__Init(this, file
, INITFL_new
);
2896 /* ??_F?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
2897 /* ??_F?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
2898 static basic_filebuf_wchar
* basic_filebuf_wchar_ctor(basic_filebuf_wchar
*this)
2900 return basic_filebuf_wchar_ctor_file(this, NULL
);
2903 /* ??_F?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
2904 /* ??_F?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
2905 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_ctor
, 4)
2906 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_ctor(basic_filebuf_wchar
*this)
2908 return basic_filebuf_short_ctor_file(this, NULL
);
2911 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAE@W4_Uninitialized@1@@Z */
2912 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
2913 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_ctor_uninitialized
, 8)
2914 basic_filebuf_wchar
* __thiscall
basic_filebuf_short_ctor_uninitialized(basic_filebuf_wchar
*this, int uninitialized
)
2916 TRACE("(%p %d)\n", this, uninitialized
);
2918 basic_streambuf_short_ctor_uninitialized(&this->base
, 0);
2919 this->base
.vtable
= &MSVCP_basic_filebuf_short_vtable
;
2920 locale_ctor(&this->loc
);
2924 /* ??1?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
2925 /* ??1?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
2926 /* ??1?$basic_filebuf@GU?$char_traits@G@std@@@std@@UAE@XZ */
2927 /* ??1?$basic_filebuf@GU?$char_traits@G@std@@@std@@UEAA@XZ */
2928 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_dtor
, 4)
2929 void __thiscall
basic_filebuf_wchar_dtor(basic_filebuf_wchar
*this)
2931 TRACE("(%p)\n", this);
2934 basic_filebuf_wchar_close(this);
2936 basic_string_char_dtor(this->str
);
2937 MSVCRT_operator_delete(this->str
);
2939 locale_dtor(&this->loc
);
2940 basic_streambuf_wchar_dtor(&this->base
);
2943 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_vector_dtor
, 8)
2944 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_vector_dtor(basic_filebuf_wchar
*this, unsigned int flags
)
2946 TRACE("(%p %x)\n", this, flags
);
2948 /* we have an array, with the number of elements stored before the first object */
2949 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
2951 for(i
=*ptr
-1; i
>=0; i
--)
2952 basic_filebuf_wchar_dtor(this+i
);
2953 MSVCRT_operator_delete(ptr
);
2955 basic_filebuf_wchar_dtor(this);
2957 MSVCRT_operator_delete(this);
2963 /* ?is_open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
2964 /* ?is_open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
2965 /* ?is_open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QBE_NXZ */
2966 /* ?is_open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
2967 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_is_open
, 4)
2968 MSVCP_bool __thiscall
basic_filebuf_wchar_is_open(const basic_filebuf_wchar
*this)
2970 TRACE("(%p)\n", this);
2971 return this->file
!= NULL
;
2974 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PB_WHH@Z */
2975 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEB_WHH@Z */
2976 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBGHH@Z */
2977 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBGHH@Z */
2978 static basic_filebuf_wchar
* basic_filebuf_wchar_open_wchar(basic_filebuf_wchar
*this, const wchar_t *name
, int mode
, int prot
)
2982 TRACE("(%p %s %d %d)\n", this, debugstr_w(name
), mode
, prot
);
2984 if(basic_filebuf_wchar_is_open(this))
2987 if(!(f
= _Fiopen_wchar(name
, mode
, prot
)))
2990 basic_filebuf_wchar__Init(this, f
, INITFL_open
);
2991 basic_filebuf_wchar__Initcvt(this);
2995 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBDHH@Z */
2996 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBDHH@Z */
2997 static basic_filebuf_wchar
* basic_filebuf_wchar_open(basic_filebuf_wchar
*this, const char *name
, int mode
, int prot
)
2999 wchar_t nameW
[FILENAME_MAX
];
3001 TRACE("(%p %s %d %d)\n", this, name
, mode
, prot
);
3003 if(mbstowcs_s(NULL
, nameW
, FILENAME_MAX
, name
, FILENAME_MAX
-1) != 0)
3005 return basic_filebuf_wchar_open_wchar(this, nameW
, mode
, prot
);
3008 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDF@Z */
3009 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDF@Z */
3010 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open_mode_old
, 12)
3011 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_open_mode_old(basic_filebuf_wchar
*this, const char *name
, short mode
)
3013 TRACE("(%p %p %d)\n", this, name
, mode
);
3014 return basic_filebuf_wchar_open(this, name
, mode
, _SH_DENYNO
);
3017 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDH@Z */
3018 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDH@Z */
3019 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open_mode
, 12)
3020 basic_filebuf_wchar
* __thiscall
basic_filebuf_wchar_open_mode(basic_filebuf_wchar
*this, const char *name
, int mode
)
3022 TRACE("(%p %p %d)\n", this, name
, mode
);
3023 return basic_filebuf_wchar_open(this, name
, mode
, _SH_DENYNO
);
3026 /* ?overflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
3027 /* ?overflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
3028 /* ?overflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
3029 /* ?overflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
3030 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_overflow
, 8)
3031 unsigned short __thiscall
basic_filebuf_wchar_overflow(basic_filebuf_wchar
*this, unsigned short c
)
3033 char *ptr
, *to_next
;
3035 const wchar_t *from_next
;
3039 TRACE("(%p %d)\n", this, c
);
3041 if(!basic_filebuf_wchar_is_open(this))
3047 return fwrite(&ch
, sizeof(wchar_t), 1, this->file
) ? c
: WEOF
;
3050 basic_string_char_clear(this->str
);
3051 basic_string_char_append_len_ch(this->str
, 8, '\0');
3052 ptr
= this->str
->ptr
;
3053 ret
= codecvt_wchar_out(this->cvt
, &this->state
, &ch
, &ch
+1, &from_next
,
3054 ptr
, ptr
+basic_string_char_length(this->str
), &to_next
);
3057 case CODECVT_partial
:
3058 if(from_next
== &ch
)
3062 if(!fwrite(ptr
, to_next
-ptr
, 1, this->file
))
3065 case CODECVT_noconv
:
3066 return fwrite(&ch
, sizeof(wchar_t), 1, this->file
) ? c
: WEOF
;
3072 /* ?pbackfail@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
3073 /* ?pbackfail@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
3074 /* ?pbackfail@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
3075 /* ?pbackfail@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
3076 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_pbackfail
, 8)
3077 unsigned short __thiscall
basic_filebuf_wchar_pbackfail(basic_filebuf_wchar
*this, unsigned short c
)
3079 TRACE("(%p %d)\n", this, c
);
3081 if(!basic_filebuf_wchar_is_open(this))
3084 if(basic_streambuf_wchar_gptr(&this->base
)>basic_streambuf_wchar_eback(&this->base
)
3085 && (c
==WEOF
|| basic_streambuf_wchar_gptr(&this->base
)[-1]==c
)) {
3086 basic_streambuf_wchar__Gndec(&this->base
);
3087 return c
==WEOF
? !c
: c
;
3088 }else if(c
== WEOF
) {
3090 }else if(!this->cvt
) {
3091 return ungetwc(c
, this->file
);
3092 }else if(basic_string_char_length(this->str
)) {
3096 b
= e
+this->str
->size
-1;
3097 for(cur
= b
; cur
>=e
; cur
--) {
3098 if(ungetc(*cur
, this->file
) == EOF
) {
3099 for(; cur
<=b
; cur
++)
3104 basic_string_char_clear(this->str
);
3105 this->state
= this->state0
;
3112 /* ?uflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
3113 /* ?uflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
3114 /* ?uflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
3115 /* ?uflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
3116 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_uflow
, 4)
3117 unsigned short __thiscall
basic_filebuf_wchar_uflow(basic_filebuf_wchar
*this)
3119 wchar_t ch
, *to_next
;
3120 const char *buf_next
;
3123 TRACE("(%p)\n", this);
3125 if(!basic_filebuf_wchar_is_open(this))
3128 if(basic_streambuf_wchar_gptr(&this->base
) < basic_streambuf_wchar_egptr(&this->base
))
3129 return *basic_streambuf_wchar__Gninc(&this->base
);
3132 return fgetwc(this->file
);
3134 basic_string_char_clear(this->str
);
3135 this->state0
= this->state
;
3137 if((c
= fgetc(this->file
)) == EOF
)
3139 basic_string_char_append_ch(this->str
, c
);
3140 this->state
= this->state0
;
3142 switch(codecvt_wchar_in(this->cvt
, &this->state
, this->str
->ptr
,
3143 this->str
->ptr
+this->str
->size
, &buf_next
, &ch
, &ch
+1, &to_next
)) {
3144 case CODECVT_partial
:
3146 case CODECVT_noconv
:
3147 if(this->str
->size
< sizeof(unsigned short)/sizeof(char))
3149 return *(unsigned short*)this->str
->ptr
;
3151 return (unsigned short)ch
;
3158 /* ?underflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
3159 /* ?underflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
3160 /* ?underflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
3161 /* ?underflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
3162 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_underflow
, 4)
3163 unsigned short __thiscall
basic_filebuf_wchar_underflow(basic_filebuf_wchar
*this)
3167 TRACE("(%p)\n", this);
3169 if(basic_streambuf_wchar_gptr(&this->base
) < basic_streambuf_wchar_egptr(&this->base
))
3170 return *basic_streambuf_wchar_gptr(&this->base
);
3172 ret
= call_basic_streambuf_wchar_uflow(&this->base
);
3174 ret
= call_basic_streambuf_wchar_pbackfail(&this->base
, ret
);
3178 /* ?seekoff@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
3179 /* ?seekoff@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
3180 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_seekoff
, 20)
3181 fpos_int
* __thiscall
basic_filebuf_wchar_seekoff(basic_filebuf_wchar
*this,
3182 fpos_int
*ret
, streamoff off
, int way
, int mode
)
3186 TRACE("(%p %p %ld %d %d)\n", this, ret
, off
, way
, mode
);
3188 if(!basic_filebuf_wchar_is_open(this) || fseek(this->file
, off
, way
)) {
3195 fgetpos(this->file
, &pos
);
3198 ret
->state
= this->state
;
3202 /* ?seekpos@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
3203 /* ?seekpos@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
3204 /* ?seekpos@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
3205 /* ?seekpos@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
3206 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_seekpos
, 36)
3207 fpos_int
* __thiscall
basic_filebuf_wchar_seekpos(basic_filebuf_wchar
*this,
3208 fpos_int
*ret
, fpos_int pos
, int mode
)
3212 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_int(&pos
), mode
);
3214 if(!basic_filebuf_wchar_is_open(this) || fseek(this->file
, (LONG
)pos
.pos
, SEEK_SET
)
3215 || (pos
.off
&& fseek(this->file
, pos
.off
, SEEK_CUR
))) {
3222 fgetpos(this->file
, &fpos
);
3225 ret
->state
= this->state
;
3229 /* ?setbuf@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PA_WH@Z */
3230 /* ?setbuf@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PEA_W_J@Z */
3231 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_setbuf
, 12)
3232 basic_streambuf_wchar
* __thiscall
basic_filebuf_wchar_setbuf(basic_filebuf_wchar
*this, wchar_t *buf
, streamsize count
)
3234 TRACE("(%p %p %ld)\n", this, buf
, count
);
3236 if(!basic_filebuf_wchar_is_open(this))
3239 if(setvbuf(this->file
, (char*)buf
, (buf
==NULL
&& count
==0) ? _IONBF
: _IOFBF
, count
*sizeof(wchar_t)))
3242 basic_filebuf_wchar__Init(this, this->file
, INITFL_open
);
3246 /* ?setbuf@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PAGH@Z */
3247 /* ?setbuf@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PEAG_J@Z */
3248 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_setbuf
, 12)
3249 basic_streambuf_wchar
* __thiscall
basic_filebuf_short_setbuf(basic_filebuf_wchar
*this, wchar_t *buf
, streamsize count
)
3251 TRACE("(%p %p %ld)\n", this, buf
, count
);
3253 if(!basic_filebuf_wchar_is_open(this))
3256 if(setvbuf(this->file
, (char*)buf
, (buf
==NULL
&& count
==0) ? _IONBF
: _IOFBF
, count
*sizeof(wchar_t)))
3259 basic_filebuf_short__Init(this, this->file
, INITFL_open
);
3263 /* ?sync@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEHXZ */
3264 /* ?sync@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAHXZ */
3265 /* ?sync@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEHXZ */
3266 /* ?sync@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAHXZ */
3267 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_sync
, 4)
3268 int __thiscall
basic_filebuf_wchar_sync(basic_filebuf_wchar
*this)
3270 TRACE("(%p)\n", this);
3272 if(!basic_filebuf_wchar_is_open(this))
3275 if(call_basic_streambuf_wchar_overflow(&this->base
, WEOF
) == WEOF
)
3277 return fflush(this->file
);
3280 /* ?_Getstate@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEHH@Z */
3281 /* ?_Getstate@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAHH@Z */
3282 /* ?_Mode@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEHH@Z */
3283 /* ?_Mode@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAHH@Z */
3284 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char__Getstate
, 8)
3285 int __thiscall
basic_stringbuf_char__Getstate(basic_stringbuf_char
*this, IOSB_openmode mode
)
3289 if(!(mode
& OPENMODE_in
))
3290 state
|= STRINGBUF_no_read
;
3292 if(!(mode
& OPENMODE_out
))
3293 state
|= STRINGBUF_no_write
;
3295 if(mode
& OPENMODE_ate
)
3296 state
|= STRINGBUF_at_end
;
3298 if(mode
& OPENMODE_app
)
3299 state
|= STRINGBUF_append
;
3304 /* ?_Init@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXPBDIH@Z */
3305 /* ?_Init@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAXPEBD_KH@Z */
3306 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char__Init
, 16)
3307 void __thiscall
basic_stringbuf_char__Init(basic_stringbuf_char
*this, const char *str
, MSVCP_size_t count
, int state
)
3309 TRACE("(%p, %p, %ld, %d)\n", this, str
, count
, state
);
3311 basic_streambuf_char__Init_empty(&this->base
);
3313 this->state
= state
;
3314 this->seekhigh
= NULL
;
3317 char *buf
= MSVCRT_operator_new(count
);
3319 ERR("Out of memory\n");
3320 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
3323 memcpy(buf
, str
, count
);
3324 this->seekhigh
= buf
+ count
;
3326 this->state
|= STRINGBUF_allocated
;
3328 if(!(state
& STRINGBUF_no_read
))
3329 basic_streambuf_char_setg(&this->base
, buf
, buf
, buf
+ count
);
3331 if(!(state
& STRINGBUF_no_write
)) {
3332 basic_streambuf_char_setp_next(&this->base
, buf
, (state
& STRINGBUF_at_end
) ? buf
+ count
: buf
, buf
+ count
);
3334 if(!basic_streambuf_char_gptr(&this->base
))
3335 basic_streambuf_char_setg(&this->base
, buf
, 0, buf
);
3340 /* ??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 */
3341 /* ??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 */
3342 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_ctor_str
, 12)
3343 basic_stringbuf_char
* __thiscall
basic_stringbuf_char_ctor_str(basic_stringbuf_char
*this,
3344 const basic_string_char
*str
, IOSB_openmode mode
)
3346 TRACE("(%p %p %d)\n", this, str
, mode
);
3348 basic_streambuf_char_ctor(&this->base
);
3349 this->base
.vtable
= &MSVCP_basic_stringbuf_char_vtable
;
3351 basic_stringbuf_char__Init(this, basic_string_char_c_str(str
),
3352 str
->size
, basic_stringbuf_char__Getstate(this, mode
));
3356 /* ??0?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
3357 /* ??0?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
3358 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_ctor_mode
, 8)
3359 basic_stringbuf_char
* __thiscall
basic_stringbuf_char_ctor_mode(
3360 basic_stringbuf_char
*this, IOSB_openmode mode
)
3362 TRACE("(%p %d)\n", this, mode
);
3364 basic_streambuf_char_ctor(&this->base
);
3365 this->base
.vtable
= &MSVCP_basic_stringbuf_char_vtable
;
3367 basic_stringbuf_char__Init(this, NULL
, 0, basic_stringbuf_char__Getstate(this, mode
));
3371 /* ??_F?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
3372 /* ??_F?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
3373 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_ctor
, 4)
3374 basic_stringbuf_char
* __thiscall
basic_stringbuf_char_ctor(basic_stringbuf_char
*this)
3376 return basic_stringbuf_char_ctor_mode(this, OPENMODE_in
|OPENMODE_out
);
3379 /* ?_Tidy@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXXZ */
3380 /* ?_Tidy@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAXXZ */
3381 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char__Tidy
, 4)
3382 void __thiscall
basic_stringbuf_char__Tidy(basic_stringbuf_char
*this)
3384 TRACE("(%p)\n", this);
3386 if(this->state
& STRINGBUF_allocated
) {
3387 MSVCRT_operator_delete(basic_streambuf_char_eback(&this->base
));
3388 this->seekhigh
= NULL
;
3389 this->state
&= ~STRINGBUF_allocated
;
3392 basic_streambuf_char__Init_empty(&this->base
);
3395 /* ??1?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
3396 /* ??1?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
3397 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_dtor
, 4)
3398 void __thiscall
basic_stringbuf_char_dtor(basic_stringbuf_char
*this)
3400 TRACE("(%p)\n", this);
3402 basic_stringbuf_char__Tidy(this);
3403 basic_streambuf_char_dtor(&this->base
);
3406 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_vector_dtor
, 8)
3407 basic_stringbuf_char
* __thiscall
basic_stringbuf_char_vector_dtor(basic_stringbuf_char
*this, unsigned int flags
)
3409 TRACE("(%p %x)\n", this, flags
);
3412 /* we have an array, with the number of elements stored before the first object */
3413 INT_PTR i
, *ptr
= (INT_PTR
*) this - 1;
3415 for (i
= *ptr
- 1; i
>= 0; i
--)
3416 basic_stringbuf_char_dtor(this+i
);
3418 MSVCRT_operator_delete(ptr
);
3420 basic_stringbuf_char_dtor(this);
3423 MSVCRT_operator_delete(this);
3429 /* ?overflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHH@Z */
3430 /* ?overflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAAHH@Z */
3431 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_overflow
, 8)
3432 int __thiscall
basic_stringbuf_char_overflow(basic_stringbuf_char
*this, int meta
)
3434 MSVCP_size_t oldsize
, size
;
3437 TRACE("(%p %x)\n", this, meta
);
3441 if(this->state
& STRINGBUF_no_write
)
3444 ptr
= basic_streambuf_char_pptr(&this->base
);
3445 if((this->state
&STRINGBUF_append
) && ptr
<this->seekhigh
)
3446 basic_streambuf_char_setp_next(&this->base
, basic_streambuf_char_pbase(&this->base
),
3447 this->seekhigh
, basic_streambuf_char_epptr(&this->base
));
3449 if(ptr
&& ptr
<basic_streambuf_char_epptr(&this->base
))
3450 return (*basic_streambuf_char__Pninc(&this->base
) = meta
);
3452 oldsize
= (ptr
? basic_streambuf_char_epptr(&this->base
)-basic_streambuf_char_eback(&this->base
): 0);
3455 buf
= MSVCRT_operator_new(size
);
3457 ERR("Out of memory\n");
3458 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
3462 this->seekhigh
= buf
;
3463 basic_streambuf_char_setp(&this->base
, buf
, buf
+size
);
3464 if(this->state
& STRINGBUF_no_read
)
3465 basic_streambuf_char_setg(&this->base
, buf
, NULL
, buf
);
3467 basic_streambuf_char_setg(&this->base
, buf
, buf
, buf
+1);
3469 this->state
|= STRINGBUF_allocated
;
3471 ptr
= basic_streambuf_char_eback(&this->base
);
3472 memcpy(buf
, ptr
, oldsize
);
3474 this->seekhigh
= buf
+(this->seekhigh
-ptr
);
3475 basic_streambuf_char_setp_next(&this->base
, buf
,
3476 buf
+(basic_streambuf_char_pptr(&this->base
)-ptr
), buf
+size
);
3477 if(this->state
& STRINGBUF_no_read
)
3478 basic_streambuf_char_setg(&this->base
, buf
, NULL
, buf
);
3480 basic_streambuf_char_setg(&this->base
, buf
,
3481 buf
+(basic_streambuf_char_gptr(&this->base
)-ptr
),
3482 basic_streambuf_char_pptr(&this->base
)+1);
3484 MSVCRT_operator_delete(ptr
);
3487 return (*basic_streambuf_char__Pninc(&this->base
) = meta
);
3490 /* ?pbackfail@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHH@Z */
3491 /* ?pbackfail@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAAHH@Z */
3492 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_pbackfail
, 8)
3493 int __thiscall
basic_stringbuf_char_pbackfail(basic_stringbuf_char
*this, int c
)
3497 TRACE("(%p %x)\n", this, c
);
3499 cur
= basic_streambuf_char_gptr(&this->base
);
3500 if(!cur
|| cur
==basic_streambuf_char_eback(&this->base
)
3501 || (c
!=EOF
&& c
!=cur
[-1] && this->state
&STRINGBUF_no_write
))
3506 basic_streambuf_char_gbump(&this->base
, -1);
3507 return c
==EOF
? !EOF
: c
;
3510 /* ?underflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHXZ */
3511 /* ?underflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAAHXZ */
3512 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_underflow
, 4)
3513 int __thiscall
basic_stringbuf_char_underflow(basic_stringbuf_char
*this)
3517 TRACE("(%p)\n", this);
3519 cur
= basic_streambuf_char_gptr(&this->base
);
3520 if(!cur
|| this->state
&STRINGBUF_no_read
)
3523 ptr
= basic_streambuf_char_pptr(&this->base
);
3524 if(this->seekhigh
< ptr
)
3525 this->seekhigh
= ptr
;
3527 ptr
= basic_streambuf_char_egptr(&this->base
);
3528 if(this->seekhigh
> ptr
)
3529 basic_streambuf_char_setg(&this->base
, basic_streambuf_char_eback(&this->base
), cur
, this->seekhigh
);
3531 if(cur
< this->seekhigh
)
3532 return (unsigned char)*cur
;
3536 /* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
3537 /* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
3538 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_seekoff
, 20)
3539 fpos_int
* __thiscall
basic_stringbuf_char_seekoff(basic_stringbuf_char
*this,
3540 fpos_int
*ret
, streamoff off
, int way
, int mode
)
3542 char *beg
, *cur_r
, *cur_w
;
3544 TRACE("(%p %p %ld %d %d)\n", this, ret
, off
, way
, mode
);
3546 cur_w
= basic_streambuf_char_pptr(&this->base
);
3547 if(cur_w
> this->seekhigh
)
3548 this->seekhigh
= cur_w
;
3554 beg
= basic_streambuf_char_eback(&this->base
);
3555 cur_r
= basic_streambuf_char_gptr(&this->base
);
3556 if((mode
& OPENMODE_in
) && cur_r
) {
3557 if(way
==SEEKDIR_cur
&& !(mode
& OPENMODE_out
))
3559 else if(way
== SEEKDIR_end
)
3560 off
+= this->seekhigh
-beg
;
3561 else if(way
!= SEEKDIR_beg
)
3564 if(off
<0 || off
>this->seekhigh
-beg
) {
3567 basic_streambuf_char_gbump(&this->base
, beg
-cur_r
+off
);
3568 if((mode
& OPENMODE_out
) && cur_w
) {
3569 basic_streambuf_char_setp_next(&this->base
, beg
,
3570 basic_streambuf_char_gptr(&this->base
),
3571 basic_streambuf_char_epptr(&this->base
));
3574 }else if((mode
& OPENMODE_out
) && cur_w
) {
3575 if(way
== SEEKDIR_cur
)
3577 else if(way
== SEEKDIR_end
)
3578 off
+= this->seekhigh
-beg
;
3579 else if(way
!= SEEKDIR_beg
)
3582 if(off
<0 || off
>this->seekhigh
-beg
)
3585 basic_streambuf_char_pbump(&this->base
, beg
-cur_w
+off
);
3594 /* ?seekpos@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
3595 /* ?seekpos@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
3596 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_seekpos
, 36)
3597 fpos_int
* __thiscall
basic_stringbuf_char_seekpos(basic_stringbuf_char
*this,
3598 fpos_int
*ret
, fpos_int pos
, int mode
)
3600 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_int(&pos
), mode
);
3602 if(pos
.off
==-1 && pos
.pos
==0 && pos
.state
==0) {
3607 return basic_stringbuf_char_seekoff(this, ret
, pos
.off
, SEEKDIR_beg
, mode
);
3610 /* ?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 */
3611 /* ?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 */
3612 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_str_set
, 8)
3613 void __thiscall
basic_stringbuf_char_str_set(basic_stringbuf_char
*this, const basic_string_char
*str
)
3615 TRACE("(%p %p)\n", this, str
);
3617 basic_stringbuf_char__Tidy(this);
3618 basic_stringbuf_char__Init(this, basic_string_char_c_str(str
), str
->size
, this->state
);
3621 /* ?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 */
3622 /* ?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 */
3623 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_str_get
, 8)
3624 basic_string_char
* __thiscall
basic_stringbuf_char_str_get(const basic_stringbuf_char
*this, basic_string_char
*ret
)
3628 TRACE("(%p)\n", this);
3630 if(!(this->state
& STRINGBUF_no_write
) && basic_streambuf_char_pptr(&this->base
)) {
3633 ptr
= basic_streambuf_char_pbase(&this->base
);
3634 pptr
= basic_streambuf_char_pptr(&this->base
);
3636 return basic_string_char_ctor_cstr_len(ret
, ptr
, (this->seekhigh
< pptr
? pptr
: this->seekhigh
) - ptr
);
3639 if(!(this->state
& STRINGBUF_no_read
) && basic_streambuf_char_gptr(&this->base
)) {
3640 ptr
= basic_streambuf_char_eback(&this->base
);
3641 return basic_string_char_ctor_cstr_len(ret
, ptr
, basic_streambuf_char_egptr(&this->base
) - ptr
);
3644 return basic_string_char_ctor(ret
);
3647 /* ?_Getstate@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AAEHH@Z */
3648 /* ?_Getstate@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AEAAHH@Z */
3649 /* ?_Getstate@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AAEHH@Z */
3650 /* ?_Getstate@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AEAAHH@Z */
3651 /* ?_Mode@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AAEHH@Z */
3652 /* ?_Mode@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AEAAHH@Z */
3653 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar__Getstate
, 8)
3654 int __thiscall
basic_stringbuf_wchar__Getstate(basic_stringbuf_wchar
*this, IOSB_openmode mode
)
3658 if(!(mode
& OPENMODE_in
))
3659 state
|= STRINGBUF_no_read
;
3661 if(!(mode
& OPENMODE_out
))
3662 state
|= STRINGBUF_no_write
;
3664 if(mode
& OPENMODE_ate
)
3665 state
|= STRINGBUF_at_end
;
3667 if(mode
& OPENMODE_app
)
3668 state
|= STRINGBUF_append
;
3673 /* ?_Init@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXPB_WIH@Z */
3674 /* ?_Init@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAXPEB_W_KH@Z */
3675 /* ?_Init@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEXPBGIH@Z */
3676 /* ?_Init@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAXPEBG_KH@Z */
3677 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar__Init
, 16)
3678 void __thiscall
basic_stringbuf_wchar__Init(basic_stringbuf_wchar
*this, const wchar_t *str
, MSVCP_size_t count
, int state
)
3680 TRACE("(%p, %p, %lu, %d)\n", this, str
, count
, state
);
3682 basic_streambuf_wchar__Init_empty(&this->base
);
3684 this->state
= state
;
3685 this->seekhigh
= NULL
;
3688 wchar_t *buf
= MSVCRT_operator_new(count
*sizeof(wchar_t));
3690 ERR("Out of memory\n");
3691 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
3694 memcpy(buf
, str
, count
*sizeof(wchar_t));
3695 this->seekhigh
= buf
+ count
;
3697 this->state
|= STRINGBUF_allocated
;
3699 if(!(state
& STRINGBUF_no_read
))
3700 basic_streambuf_wchar_setg(&this->base
, buf
, buf
, buf
+ count
);
3702 if(!(state
& STRINGBUF_no_write
)) {
3703 basic_streambuf_wchar_setp_next(&this->base
, buf
, (state
& STRINGBUF_at_end
) ? buf
+ count
: buf
, buf
+ count
);
3705 if(!basic_streambuf_wchar_gptr(&this->base
))
3706 basic_streambuf_wchar_setg(&this->base
, buf
, 0, buf
);
3711 /* ??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 */
3712 /* ??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 */
3713 static basic_stringbuf_wchar
* basic_stringbuf_wchar_ctor_str(basic_stringbuf_wchar
*this,
3714 const basic_string_wchar
*str
, IOSB_openmode mode
)
3716 TRACE("(%p %p %d)\n", this, str
, mode
);
3718 basic_streambuf_wchar_ctor(&this->base
);
3719 this->base
.vtable
= &MSVCP_basic_stringbuf_wchar_vtable
;
3721 basic_stringbuf_wchar__Init(this, basic_string_wchar_c_str(str
),
3722 str
->size
, basic_stringbuf_wchar__Getstate(this, mode
));
3726 /* ??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 */
3727 /* ??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 */
3728 DEFINE_THISCALL_WRAPPER(basic_stringbuf_short_ctor_str
, 12)
3729 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_short_ctor_str(basic_stringbuf_wchar
*this,
3730 const basic_string_wchar
*str
, IOSB_openmode mode
)
3732 basic_stringbuf_wchar_ctor_str(this, str
, mode
);
3733 this->base
.vtable
= &MSVCP_basic_stringbuf_short_vtable
;
3737 /* ??0?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
3738 /* ??0?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
3739 static basic_stringbuf_wchar
* basic_stringbuf_wchar_ctor_mode(
3740 basic_stringbuf_wchar
*this, IOSB_openmode mode
)
3742 TRACE("(%p %d)\n", this, mode
);
3744 basic_streambuf_wchar_ctor(&this->base
);
3745 this->base
.vtable
= &MSVCP_basic_stringbuf_wchar_vtable
;
3747 basic_stringbuf_wchar__Init(this, NULL
, 0, basic_stringbuf_wchar__Getstate(this, mode
));
3751 /* ??0?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
3752 /* ??0?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
3753 DEFINE_THISCALL_WRAPPER(basic_stringbuf_short_ctor_mode
, 8)
3754 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_short_ctor_mode(
3755 basic_stringbuf_wchar
*this, IOSB_openmode mode
)
3757 basic_stringbuf_wchar_ctor_mode(this, mode
);
3758 this->base
.vtable
= &MSVCP_basic_stringbuf_short_vtable
;
3762 /* ??_F?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
3763 /* ??_F?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
3764 DEFINE_THISCALL_WRAPPER(basic_stringbuf_short_ctor
, 4)
3765 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_short_ctor(basic_stringbuf_wchar
*this)
3767 return basic_stringbuf_short_ctor_mode(this, OPENMODE_in
|OPENMODE_out
);
3770 /* ?_Tidy@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXXZ */
3771 /* ?_Tidy@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAXXZ */
3772 /* ?_Tidy@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEXXZ */
3773 /* ?_Tidy@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAXXZ */
3774 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar__Tidy
, 4)
3775 void __thiscall
basic_stringbuf_wchar__Tidy(basic_stringbuf_wchar
*this)
3777 TRACE("(%p)\n", this);
3779 if(this->state
& STRINGBUF_allocated
) {
3780 MSVCRT_operator_delete(basic_streambuf_wchar_eback(&this->base
));
3781 this->seekhigh
= NULL
;
3782 this->state
&= ~STRINGBUF_allocated
;
3785 basic_streambuf_wchar__Init_empty(&this->base
);
3788 /* ??1?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
3789 /* ??1?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
3790 /* ??1?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
3791 /* ??1?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
3792 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_dtor
, 4)
3793 void __thiscall
basic_stringbuf_wchar_dtor(basic_stringbuf_wchar
*this)
3795 TRACE("(%p)\n", this);
3797 basic_stringbuf_wchar__Tidy(this);
3798 basic_streambuf_wchar_dtor(&this->base
);
3801 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_vector_dtor
, 8)
3802 basic_stringbuf_wchar
* __thiscall
basic_stringbuf_wchar_vector_dtor(basic_stringbuf_wchar
*this, unsigned int flags
)
3804 TRACE("(%p %x)\n", this, flags
);
3807 /* we have an array, with the number of elements stored before the first object */
3808 INT_PTR i
, *ptr
= (INT_PTR
*) this - 1;
3810 for (i
= *ptr
- 1; i
>= 0; i
--)
3811 basic_stringbuf_wchar_dtor(this+i
);
3813 MSVCRT_operator_delete(ptr
);
3815 basic_stringbuf_wchar_dtor(this);
3818 MSVCRT_operator_delete(this);
3824 /* ?overflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAEGG@Z */
3825 /* ?overflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAAGG@Z */
3826 /* ?overflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAEGG@Z */
3827 /* ?overflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAAGG@Z */
3828 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_overflow
, 8)
3829 unsigned short __thiscall
basic_stringbuf_wchar_overflow(basic_stringbuf_wchar
*this, unsigned short meta
)
3831 MSVCP_size_t oldsize
, size
;
3834 TRACE("(%p %x)\n", this, meta
);
3838 if(this->state
& STRINGBUF_no_write
)
3841 ptr
= basic_streambuf_wchar_pptr(&this->base
);
3842 if((this->state
&STRINGBUF_append
) && ptr
<this->seekhigh
)
3843 basic_streambuf_wchar_setp_next(&this->base
, basic_streambuf_wchar_pbase(&this->base
),
3844 this->seekhigh
, basic_streambuf_wchar_epptr(&this->base
));
3846 if(ptr
&& ptr
<basic_streambuf_wchar_epptr(&this->base
))
3847 return (*basic_streambuf_wchar__Pninc(&this->base
) = meta
);
3849 oldsize
= (ptr
? basic_streambuf_wchar_epptr(&this->base
)-basic_streambuf_wchar_eback(&this->base
): 0);
3852 buf
= MSVCRT_operator_new(size
*sizeof(wchar_t));
3854 ERR("Out of memory\n");
3855 throw_exception(EXCEPTION_BAD_ALLOC
, NULL
);
3859 this->seekhigh
= buf
;
3860 basic_streambuf_wchar_setp(&this->base
, buf
, buf
+size
);
3861 if(this->state
& STRINGBUF_no_read
)
3862 basic_streambuf_wchar_setg(&this->base
, buf
, NULL
, buf
);
3864 basic_streambuf_wchar_setg(&this->base
, buf
, buf
, buf
+1);
3866 this->state
|= STRINGBUF_allocated
;
3868 ptr
= basic_streambuf_wchar_eback(&this->base
);
3869 memcpy(buf
, ptr
, oldsize
*sizeof(wchar_t));
3871 this->seekhigh
= buf
+(this->seekhigh
-ptr
);
3872 basic_streambuf_wchar_setp_next(&this->base
, buf
,
3873 buf
+(basic_streambuf_wchar_pptr(&this->base
)-ptr
), buf
+size
);
3874 if(this->state
& STRINGBUF_no_read
)
3875 basic_streambuf_wchar_setg(&this->base
, buf
, NULL
, buf
);
3877 basic_streambuf_wchar_setg(&this->base
, buf
,
3878 buf
+(basic_streambuf_wchar_gptr(&this->base
)-ptr
),
3879 basic_streambuf_wchar_pptr(&this->base
)+1);
3881 MSVCRT_operator_delete(ptr
);
3884 return (*basic_streambuf_wchar__Pninc(&this->base
) = meta
);
3887 /* ?pbackfail@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAEGG@Z */
3888 /* ?pbackfail@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAAGG@Z */
3889 /* ?pbackfail@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAEGG@Z */
3890 /* ?pbackfail@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAAGG@Z */
3891 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_pbackfail
, 8)
3892 unsigned short __thiscall
basic_stringbuf_wchar_pbackfail(basic_stringbuf_wchar
*this, unsigned short c
)
3896 TRACE("(%p %x)\n", this, c
);
3898 cur
= basic_streambuf_wchar_gptr(&this->base
);
3899 if(!cur
|| cur
==basic_streambuf_wchar_eback(&this->base
)
3900 || (c
!=WEOF
&& c
!=cur
[-1] && this->state
&STRINGBUF_no_write
))
3905 basic_streambuf_wchar_gbump(&this->base
, -1);
3906 return c
==WEOF
? !WEOF
: c
;
3909 /* ?underflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAEGXZ */
3910 /* ?underflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAAGXZ */
3911 /* ?underflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAEGXZ */
3912 /* ?underflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAAGXZ */
3913 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_underflow
, 4)
3914 unsigned short __thiscall
basic_stringbuf_wchar_underflow(basic_stringbuf_wchar
*this)
3918 TRACE("(%p)\n", this);
3920 cur
= basic_streambuf_wchar_gptr(&this->base
);
3921 if(!cur
|| this->state
&STRINGBUF_no_read
)
3924 ptr
= basic_streambuf_wchar_pptr(&this->base
);
3925 if(this->seekhigh
< ptr
)
3926 this->seekhigh
= ptr
;
3928 ptr
= basic_streambuf_wchar_egptr(&this->base
);
3929 if(this->seekhigh
> ptr
)
3930 basic_streambuf_wchar_setg(&this->base
, basic_streambuf_wchar_eback(&this->base
), cur
, this->seekhigh
);
3932 if(cur
< this->seekhigh
)
3937 /* ?seekoff@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
3938 /* ?seekoff@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
3939 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_seekoff
, 20)
3940 fpos_int
* __thiscall
basic_stringbuf_wchar_seekoff(basic_stringbuf_wchar
*this,
3941 fpos_int
*ret
, streamoff off
, int way
, int mode
)
3943 wchar_t *beg
, *cur_r
, *cur_w
;
3945 TRACE("(%p %p %ld %d %d)\n", this, ret
, off
, way
, mode
);
3947 cur_w
= basic_streambuf_wchar_pptr(&this->base
);
3948 if(cur_w
> this->seekhigh
)
3949 this->seekhigh
= cur_w
;
3955 beg
= basic_streambuf_wchar_eback(&this->base
);
3956 cur_r
= basic_streambuf_wchar_gptr(&this->base
);
3957 if((mode
& OPENMODE_in
) && cur_r
) {
3958 if(way
==SEEKDIR_cur
&& !(mode
& OPENMODE_out
))
3960 else if(way
== SEEKDIR_end
)
3961 off
+= this->seekhigh
-beg
;
3962 else if(way
!= SEEKDIR_beg
)
3965 if(off
<0 || off
>this->seekhigh
-beg
) {
3968 basic_streambuf_wchar_gbump(&this->base
, beg
-cur_r
+off
);
3969 if((mode
& OPENMODE_out
) && cur_w
) {
3970 basic_streambuf_wchar_setp_next(&this->base
, beg
,
3971 basic_streambuf_wchar_gptr(&this->base
),
3972 basic_streambuf_wchar_epptr(&this->base
));
3975 }else if((mode
& OPENMODE_out
) && cur_w
) {
3976 if(way
== SEEKDIR_cur
)
3978 else if(way
== SEEKDIR_end
)
3979 off
+= this->seekhigh
-beg
;
3980 else if(way
!= SEEKDIR_beg
)
3983 if(off
<0 || off
>this->seekhigh
-beg
)
3986 basic_streambuf_wchar_pbump(&this->base
, beg
-cur_w
+off
);
3995 /* ?seekpos@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
3996 /* ?seekpos@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
3997 /* ?seekpos@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
3998 /* ?seekpos@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
3999 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_seekpos
, 36)
4000 fpos_int
* __thiscall
basic_stringbuf_wchar_seekpos(basic_stringbuf_wchar
*this,
4001 fpos_int
*ret
, fpos_int pos
, int mode
)
4003 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_int(&pos
), mode
);
4005 if(pos
.off
==-1 && pos
.pos
==0 && pos
.state
==0) {
4010 return basic_stringbuf_wchar_seekoff(this, ret
, pos
.off
, SEEKDIR_beg
, mode
);
4013 /* ?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 */
4014 /* ?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 */
4015 /* ?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 */
4016 /* ?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 */
4017 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_str_set
, 8)
4018 void __thiscall
basic_stringbuf_wchar_str_set(basic_stringbuf_wchar
*this, const basic_string_wchar
*str
)
4020 TRACE("(%p %p)\n", this, str
);
4022 basic_stringbuf_wchar__Tidy(this);
4023 basic_stringbuf_wchar__Init(this, basic_string_wchar_c_str(str
), str
->size
, this->state
);
4026 /* ?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 */
4027 /* ?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 */
4028 /* ?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 */
4029 /* ?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 */
4030 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_str_get
, 8)
4031 basic_string_wchar
* __thiscall
basic_stringbuf_wchar_str_get(const basic_stringbuf_wchar
*this, basic_string_wchar
*ret
)
4035 TRACE("(%p)\n", this);
4037 if(!(this->state
& STRINGBUF_no_write
) && basic_streambuf_wchar_pptr(&this->base
)) {
4040 ptr
= basic_streambuf_wchar_pbase(&this->base
);
4041 pptr
= basic_streambuf_wchar_pptr(&this->base
);
4043 return basic_string_wchar_ctor_cstr_len(ret
, ptr
, (this->seekhigh
< pptr
? pptr
: this->seekhigh
) - ptr
);
4046 if(!(this->state
& STRINGBUF_no_read
) && basic_streambuf_wchar_gptr(&this->base
)) {
4047 ptr
= basic_streambuf_wchar_eback(&this->base
);
4048 return basic_string_wchar_ctor_cstr_len(ret
, ptr
, basic_streambuf_wchar_egptr(&this->base
) - ptr
);
4051 return basic_string_wchar_ctor(ret
);
4054 /* ??0ios_base@std@@IAE@XZ */
4055 /* ??0ios_base@std@@IEAA@XZ */
4056 DEFINE_THISCALL_WRAPPER(ios_base_ctor
, 4)
4057 ios_base
* __thiscall
ios_base_ctor(ios_base
*this)
4059 TRACE("(%p)\n", this);
4060 this->vtable
= &MSVCP_ios_base_vtable
;
4061 locale_ctor_uninitialized(&this->loc
, 0);
4065 /* ??0ios_base@std@@QAE@ABV01@@Z */
4066 /* ??0ios_base@std@@QEAA@AEBV01@@Z */
4067 DEFINE_THISCALL_WRAPPER(ios_base_copy_ctor
, 8)
4068 ios_base
* __thiscall
ios_base_copy_ctor(ios_base
*this, const ios_base
*copy
)
4070 TRACE("(%p %p)\n", this, copy
);
4072 this->vtable
= &MSVCP_ios_base_vtable
;
4076 /* ?_Callfns@ios_base@std@@AAEXW4event@12@@Z */
4077 /* ?_Callfns@ios_base@std@@AEAAXW4event@12@@Z */
4078 DEFINE_THISCALL_WRAPPER(ios_base_Callfns
, 8)
4079 void __thiscall
ios_base_Callfns(ios_base
*this, IOS_BASE_event event
)
4081 IOS_BASE_fnarray
*cur
;
4083 TRACE("(%p %x)\n", this, event
);
4085 for(cur
=this->calls
; cur
; cur
=cur
->next
)
4086 cur
->event_handler(event
, this, cur
->index
);
4089 /* ?_Tidy@ios_base@std@@AAAXXZ */
4090 /* ?_Tidy@ios_base@std@@AEAAXXZ */
4091 void CDECL
ios_base_Tidy(ios_base
*this)
4093 IOS_BASE_iosarray
*arr_cur
, *arr_next
;
4094 IOS_BASE_fnarray
*event_cur
, *event_next
;
4096 TRACE("(%p)\n", this);
4098 ios_base_Callfns(this, EVENT_erase_event
);
4100 for(arr_cur
=this->arr
; arr_cur
; arr_cur
=arr_next
) {
4101 arr_next
= arr_cur
->next
;
4102 MSVCRT_operator_delete(arr_cur
);
4106 for(event_cur
=this->calls
; event_cur
; event_cur
=event_next
) {
4107 event_next
= event_cur
->next
;
4108 MSVCRT_operator_delete(event_cur
);
4113 /* ?_Ios_base_dtor@ios_base@std@@CAXPAV12@@Z */
4114 /* ?_Ios_base_dtor@ios_base@std@@CAXPEAV12@@Z */
4115 static void ios_base_Ios_base_dtor(ios_base
*obj
)
4117 TRACE("(%p)\n", obj
);
4118 locale_dtor(&obj
->loc
);
4122 /* ??1ios_base@std@@UAE@XZ */
4123 /* ??1ios_base@std@@UEAA@XZ */
4124 DEFINE_THISCALL_WRAPPER(ios_base_dtor
, 4)
4125 void __thiscall
ios_base_dtor(ios_base
*this)
4127 ios_base_Ios_base_dtor(this);
4130 DEFINE_THISCALL_WRAPPER(ios_base_vector_dtor
, 8)
4131 ios_base
* __thiscall
ios_base_vector_dtor(ios_base
*this, unsigned int flags
)
4133 TRACE("(%p %x)\n", this, flags
);
4135 /* we have an array, with the number of elements stored before the first object */
4136 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
4138 for(i
=*ptr
-1; i
>=0; i
--)
4139 ios_base_dtor(this+i
);
4140 MSVCRT_operator_delete(ptr
);
4142 ios_base_dtor(this);
4144 MSVCRT_operator_delete(this);
4150 DEFINE_THISCALL_WRAPPER(iosb_vector_dtor
, 8)
4151 void* __thiscall
iosb_vector_dtor(void *this, unsigned int flags
)
4153 TRACE("(%p %x)\n", this, flags
);
4155 INT_PTR
*ptr
= (INT_PTR
*)this-1;
4156 MSVCRT_operator_delete(ptr
);
4159 MSVCRT_operator_delete(this);
4165 /* ?_Findarr@ios_base@std@@AAEAAU_Iosarray@12@H@Z */
4166 /* ?_Findarr@ios_base@std@@AEAAAEAU_Iosarray@12@H@Z */
4167 DEFINE_THISCALL_WRAPPER(ios_base_Findarr
, 8)
4168 IOS_BASE_iosarray
* __thiscall
ios_base_Findarr(ios_base
*this, int index
)
4170 IOS_BASE_iosarray
*p
;
4172 TRACE("(%p %d)\n", this, index
);
4174 for(p
=this->arr
; p
; p
=p
->next
) {
4175 if(p
->index
== index
)
4179 for(p
=this->arr
; p
; p
=p
->next
) {
4180 if(!p
->long_val
&& !p
->ptr_val
) {
4186 p
= MSVCRT_operator_new(sizeof(IOS_BASE_iosarray
));
4187 p
->next
= this->arr
;
4195 /* ?iword@ios_base@std@@QAEAAJH@Z */
4196 /* ?iword@ios_base@std@@QEAAAEAJH@Z */
4197 DEFINE_THISCALL_WRAPPER(ios_base_iword
, 8)
4198 LONG
* __thiscall
ios_base_iword(ios_base
*this, int index
)
4200 TRACE("(%p %d)\n", this, index
);
4201 return &ios_base_Findarr(this, index
)->long_val
;
4204 /* ?pword@ios_base@std@@QAEAAPAXH@Z */
4205 /* ?pword@ios_base@std@@QEAAAEAPEAXH@Z */
4206 DEFINE_THISCALL_WRAPPER(ios_base_pword
, 8)
4207 void** __thiscall
ios_base_pword(ios_base
*this, int index
)
4209 TRACE("(%p %d)\n", this, index
);
4210 return &ios_base_Findarr(this, index
)->ptr_val
;
4213 /* ?register_callback@ios_base@std@@QAEXP6AXW4event@12@AAV12@H@ZH@Z */
4214 /* ?register_callback@ios_base@std@@QEAAXP6AXW4event@12@AEAV12@H@ZH@Z */
4215 DEFINE_THISCALL_WRAPPER(ios_base_register_callback
, 12)
4216 void __thiscall
ios_base_register_callback(ios_base
*this, IOS_BASE_event_callback callback
, int index
)
4218 IOS_BASE_fnarray
*event
;
4220 TRACE("(%p %p %d)\n", this, callback
, index
);
4222 event
= MSVCRT_operator_new(sizeof(IOS_BASE_fnarray
));
4223 event
->next
= this->calls
;
4224 event
->index
= index
;
4225 event
->event_handler
= callback
;
4226 this->calls
= event
;
4229 /* ?clear@ios_base@std@@QAEXH_N@Z */
4230 /* ?clear@ios_base@std@@QEAAXH_N@Z */
4231 DEFINE_THISCALL_WRAPPER(ios_base_clear_reraise
, 12)
4232 void __thiscall
ios_base_clear_reraise(ios_base
*this, IOSB_iostate state
, MSVCP_bool reraise
)
4234 TRACE("(%p %x %x)\n", this, state
, reraise
);
4236 this->state
= state
& IOSTATE_mask
;
4237 if(!(this->state
& this->except
))
4241 throw_exception(EXCEPTION_RERAISE
, NULL
);
4242 else if(this->state
& this->except
& IOSTATE_eofbit
)
4243 throw_exception(EXCEPTION_FAILURE
, "eofbit is set");
4244 else if(this->state
& this->except
& IOSTATE_failbit
)
4245 throw_exception(EXCEPTION_FAILURE
, "failbit is set");
4246 else if(this->state
& this->except
& IOSTATE_badbit
)
4247 throw_exception(EXCEPTION_FAILURE
, "badbit is set");
4248 else if(this->state
& this->except
& IOSTATE__Hardfail
)
4249 throw_exception(EXCEPTION_FAILURE
, "_Hardfail is set");
4252 /* ?clear@ios_base@std@@QAEXH@Z */
4253 /* ?clear@ios_base@std@@QEAAXH@Z */
4254 static void ios_base_clear(ios_base
*this, IOSB_iostate state
)
4256 ios_base_clear_reraise(this, state
, FALSE
);
4259 /* ?exceptions@ios_base@std@@QAEXH@Z */
4260 /* ?exceptions@ios_base@std@@QEAAXH@Z */
4261 DEFINE_THISCALL_WRAPPER(ios_base_exceptions_set
, 8)
4262 void __thiscall
ios_base_exceptions_set(ios_base
*this, IOSB_iostate state
)
4264 TRACE("(%p %x)\n", this, state
);
4265 this->except
= state
& IOSTATE_mask
;
4266 ios_base_clear(this, this->state
);
4269 /* ?exceptions@ios_base@std@@QBEHXZ */
4270 /* ?exceptions@ios_base@std@@QEBAHXZ */
4271 DEFINE_THISCALL_WRAPPER(ios_base_exceptions_get
, 4)
4272 IOSB_iostate __thiscall
ios_base_exceptions_get(ios_base
*this)
4274 TRACE("(%p)\n", this);
4275 return this->except
;
4278 /* ?copyfmt@ios_base@std@@QAEAAV12@ABV12@@Z */
4279 /* ?copyfmt@ios_base@std@@QEAAAEAV12@AEBV12@@Z */
4280 DEFINE_THISCALL_WRAPPER(ios_base_copyfmt
, 8)
4281 ios_base
* __thiscall
ios_base_copyfmt(ios_base
*this, const ios_base
*rhs
)
4283 TRACE("(%p %p)\n", this, rhs
);
4286 IOS_BASE_iosarray
*arr_cur
;
4287 IOS_BASE_fnarray
*event_cur
;
4289 ios_base_Tidy(this);
4291 for(arr_cur
=rhs
->arr
; arr_cur
; arr_cur
=arr_cur
->next
) {
4292 if(arr_cur
->long_val
)
4293 *ios_base_iword(this, arr_cur
->index
) = arr_cur
->long_val
;
4294 if(arr_cur
->ptr_val
)
4295 *ios_base_pword(this, arr_cur
->index
) = arr_cur
->ptr_val
;
4297 this->stdstr
= rhs
->stdstr
;
4298 this->fmtfl
= rhs
->fmtfl
;
4299 this->prec
= rhs
->prec
;
4300 this->wide
= rhs
->wide
;
4301 locale_operator_assign(&this->loc
, &rhs
->loc
);
4303 for(event_cur
=rhs
->calls
; event_cur
; event_cur
=event_cur
->next
)
4304 ios_base_register_callback(this, event_cur
->event_handler
, event_cur
->index
);
4306 ios_base_Callfns(this, EVENT_copyfmt_event
);
4307 ios_base_exceptions_set(this, rhs
->except
);
4313 /* ??4ios_base@std@@QAEAAV01@ABV01@@Z */
4314 /* ??4ios_base@std@@QEAAAEAV01@AEBV01@@Z */
4315 DEFINE_THISCALL_WRAPPER(ios_base_assign
, 8)
4316 ios_base
* __thiscall
ios_base_assign(ios_base
*this, const ios_base
*right
)
4318 TRACE("(%p %p)\n", this, right
);
4321 this->state
= right
->state
;
4322 ios_base_copyfmt(this, right
);
4328 /* ?fail@ios_base@std@@QBE_NXZ */
4329 /* ?fail@ios_base@std@@QEBA_NXZ */
4330 DEFINE_THISCALL_WRAPPER(ios_base_fail
, 4)
4331 MSVCP_bool __thiscall
ios_base_fail(const ios_base
*this)
4333 TRACE("(%p)\n", this);
4334 return (this->state
& (IOSTATE_failbit
|IOSTATE_badbit
)) != 0;
4337 /* ??7ios_base@std@@QBE_NXZ */
4338 /* ??7ios_base@std@@QEBA_NXZ */
4339 DEFINE_THISCALL_WRAPPER(ios_base_op_succ
, 4)
4340 MSVCP_bool __thiscall
ios_base_op_succ(const ios_base
*this)
4342 TRACE("(%p)\n", this);
4343 return ios_base_fail(this);
4346 /* ??Bios_base@std@@QBEPAXXZ */
4347 /* ??Bios_base@std@@QEBAPEAXXZ */
4348 DEFINE_THISCALL_WRAPPER(ios_base_op_fail
, 4)
4349 void* __thiscall
ios_base_op_fail(const ios_base
*this)
4351 TRACE("(%p)\n", this);
4352 return ios_base_fail(this) ? NULL
: (void*)this;
4355 /* ?_Addstd@ios_base@std@@SAXPAV12@@Z */
4356 /* ?_Addstd@ios_base@std@@SAXPEAV12@@Z */
4357 static void ios_base_Addstd(ios_base
*add
)
4359 FIXME("(%p) stub\n", add
);
4362 /* ?_Init@ios_base@std@@IAEXXZ */
4363 /* ?_Init@ios_base@std@@IEAAXXZ */
4364 DEFINE_THISCALL_WRAPPER(ios_base__Init
, 4)
4365 void __thiscall
ios_base__Init(ios_base
*this)
4367 TRACE("(%p)\n", this);
4370 this->state
= this->except
= IOSTATE_goodbit
;
4371 this->fmtfl
= FMTFLAG_skipws
| FMTFLAG_dec
;
4376 locale_ctor(&this->loc
);
4379 /* ?bad@ios_base@std@@QBE_NXZ */
4380 /* ?bad@ios_base@std@@QEBA_NXZ */
4381 DEFINE_THISCALL_WRAPPER(ios_base_bad
, 4)
4382 MSVCP_bool __thiscall
ios_base_bad(const ios_base
*this)
4384 TRACE("(%p)\n", this);
4385 return (this->state
& IOSTATE_badbit
) != 0;
4388 /* ?eof@ios_base@std@@QBE_NXZ */
4389 /* ?eof@ios_base@std@@QEBA_NXZ */
4390 DEFINE_THISCALL_WRAPPER(ios_base_eof
, 4)
4391 MSVCP_bool __thiscall
ios_base_eof(const ios_base
*this)
4393 TRACE("(%p)\n", this);
4394 return (this->state
& IOSTATE_eofbit
) != 0;
4397 /* ?flags@ios_base@std@@QAEHH@Z */
4398 /* ?flags@ios_base@std@@QEAAHH@Z */
4399 DEFINE_THISCALL_WRAPPER(ios_base_flags_set
, 8)
4400 IOSB_fmtflags __thiscall
ios_base_flags_set(ios_base
*this, IOSB_fmtflags flags
)
4402 IOSB_fmtflags ret
= this->fmtfl
;
4404 TRACE("(%p %x)\n", this, flags
);
4406 this->fmtfl
= flags
& FMTFLAG_mask
;
4410 /* ?flags@ios_base@std@@QBEHXZ */
4411 /* ?flags@ios_base@std@@QEBAHXZ */
4412 DEFINE_THISCALL_WRAPPER(ios_base_flags_get
, 4)
4413 IOSB_fmtflags __thiscall
ios_base_flags_get(const ios_base
*this)
4415 TRACE("(%p)\n", this);
4419 /* ?getloc@ios_base@std@@QBE?AVlocale@2@XZ */
4420 /* ?getloc@ios_base@std@@QEBA?AVlocale@2@XZ */
4421 DEFINE_THISCALL_WRAPPER(ios_base_getloc
, 8)
4422 locale
* __thiscall
ios_base_getloc(const ios_base
*this, locale
*ret
)
4424 TRACE("(%p)\n", this);
4425 return locale_copy_ctor(ret
, &this->loc
);
4428 /* ?good@ios_base@std@@QBE_NXZ */
4429 /* ?good@ios_base@std@@QEBA_NXZ */
4430 DEFINE_THISCALL_WRAPPER(ios_base_good
, 4)
4431 MSVCP_bool __thiscall
ios_base_good(const ios_base
*this)
4433 TRACE("(%p)\n", this);
4434 return this->state
== IOSTATE_goodbit
;
4437 /* ?imbue@ios_base@std@@QAE?AVlocale@2@ABV32@@Z */
4438 /* ?imbue@ios_base@std@@QEAA?AVlocale@2@AEBV32@@Z */
4439 DEFINE_THISCALL_WRAPPER(ios_base_imbue
, 12)
4440 locale
* __thiscall
ios_base_imbue(ios_base
*this, locale
*ret
, const locale
*loc
)
4442 TRACE("(%p %p)\n", this, loc
);
4444 locale_copy_ctor(&this->loc
, loc
);
4448 /* ?precision@ios_base@std@@QAEHH@Z */
4449 /* ?precision@ios_base@std@@QEAA_J_J@Z */
4450 DEFINE_THISCALL_WRAPPER(ios_base_precision_set
, 8)
4451 streamsize __thiscall
ios_base_precision_set(ios_base
*this, streamsize precision
)
4453 streamsize ret
= this->prec
;
4455 TRACE("(%p %ld)\n", this, precision
);
4457 this->prec
= precision
;
4461 /* ?precision@ios_base@std@@QBEHXZ */
4462 /* ?precision@ios_base@std@@QEBA_JXZ */
4463 DEFINE_THISCALL_WRAPPER(ios_base_precision_get
, 4)
4464 streamsize __thiscall
ios_base_precision_get(const ios_base
*this)
4466 TRACE("(%p)\n", this);
4470 /* ?rdstate@ios_base@std@@QBEHXZ */
4471 /* ?rdstate@ios_base@std@@QEBAHXZ */
4472 DEFINE_THISCALL_WRAPPER(ios_base_rdstate
, 4)
4473 IOSB_iostate __thiscall
ios_base_rdstate(const ios_base
*this)
4475 TRACE("(%p)\n", this);
4479 /* ?setf@ios_base@std@@QAEHHH@Z */
4480 /* ?setf@ios_base@std@@QEAAHHH@Z */
4481 DEFINE_THISCALL_WRAPPER(ios_base_setf_mask
, 12)
4482 IOSB_fmtflags __thiscall
ios_base_setf_mask(ios_base
*this, IOSB_fmtflags flags
, IOSB_fmtflags mask
)
4484 IOSB_fmtflags ret
= this->fmtfl
;
4486 TRACE("(%p %x %x)\n", this, flags
, mask
);
4488 this->fmtfl
= (this->fmtfl
& (~mask
)) | (flags
& mask
& FMTFLAG_mask
);
4492 /* ?setf@ios_base@std@@QAEHH@Z */
4493 /* ?setf@ios_base@std@@QEAAHH@Z */
4494 DEFINE_THISCALL_WRAPPER(ios_base_setf
, 8)
4495 IOSB_fmtflags __thiscall
ios_base_setf(ios_base
*this, IOSB_fmtflags flags
)
4497 return ios_base_setf_mask(this, flags
, ~0);
4500 /* ?setstate@ios_base@std@@QAEXH_N@Z */
4501 /* ?setstate@ios_base@std@@QEAAXH_N@Z */
4502 DEFINE_THISCALL_WRAPPER(ios_base_setstate_reraise
, 12)
4503 void __thiscall
ios_base_setstate_reraise(ios_base
*this, IOSB_iostate state
, MSVCP_bool reraise
)
4505 TRACE("(%p %x %x)\n", this, state
, reraise
);
4507 if(state
!= IOSTATE_goodbit
)
4508 ios_base_clear_reraise(this, this->state
| state
, reraise
);
4511 /* ?setstate@ios_base@std@@QAEXH@Z */
4512 /* ?setstate@ios_base@std@@QEAAXH@Z */
4513 static void ios_base_setstate(ios_base
*this, IOSB_iostate state
)
4515 ios_base_setstate_reraise(this, state
, FALSE
);
4518 /* ?sync_with_stdio@ios_base@std@@SA_N_N@Z */
4519 MSVCP_bool CDECL
ios_base_sync_with_stdio(MSVCP_bool sync
)
4524 TRACE("(%x)\n", sync
);
4526 _Lockit_ctor_locktype(&lock
, _LOCK_STREAM
);
4527 ret
= ios_base_Sync
;
4528 ios_base_Sync
= sync
;
4529 _Lockit_dtor(&lock
);
4533 /* ?unsetf@ios_base@std@@QAEXH@Z */
4534 /* ?unsetf@ios_base@std@@QEAAXH@Z */
4535 DEFINE_THISCALL_WRAPPER(ios_base_unsetf
, 8)
4536 void __thiscall
ios_base_unsetf(ios_base
*this, IOSB_fmtflags flags
)
4538 TRACE("(%p %x)\n", this, flags
);
4539 this->fmtfl
&= ~flags
;
4542 /* ?width@ios_base@std@@QAEHH@Z */
4543 /* ?width@ios_base@std@@QEAA_J_J@Z */
4544 DEFINE_THISCALL_WRAPPER(ios_base_width_set
, 8)
4545 streamsize __thiscall
ios_base_width_set(ios_base
*this, streamsize width
)
4547 streamsize ret
= this->wide
;
4549 TRACE("(%p %ld)\n", this, width
);
4555 /* ?width@ios_base@std@@QBEHXZ */
4556 /* ?width@ios_base@std@@QEBA_JXZ */
4557 DEFINE_THISCALL_WRAPPER(ios_base_width_get
, 4)
4558 streamsize __thiscall
ios_base_width_get(ios_base
*this)
4560 TRACE("(%p)\n", this);
4564 /* ?xalloc@ios_base@std@@SAHXZ */
4565 int CDECL
ios_base_xalloc(void)
4572 _Lockit_ctor_locktype(&lock
, _LOCK_STREAM
);
4573 ret
= ios_base_Index
++;
4574 _Lockit_dtor(&lock
);
4578 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@IAE@XZ */
4579 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@IEAA@XZ */
4580 DEFINE_THISCALL_WRAPPER(basic_ios_char_ctor
, 4)
4581 basic_ios_char
* __thiscall
basic_ios_char_ctor(basic_ios_char
*this)
4583 TRACE("(%p)\n", this);
4585 ios_base_ctor(&this->base
);
4586 this->base
.vtable
= &MSVCP_basic_ios_char_vtable
;
4590 /* ?init@?$basic_ios@DU?$char_traits@D@std@@@std@@IAEXPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@_N@Z */
4591 /* ?init@?$basic_ios@DU?$char_traits@D@std@@@std@@IEAAXPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@_N@Z */
4592 DEFINE_THISCALL_WRAPPER(basic_ios_char_init
, 12)
4593 void __thiscall
basic_ios_char_init(basic_ios_char
*this, basic_streambuf_char
*streambuf
, MSVCP_bool isstd
)
4595 TRACE("(%p %p %x)\n", this, streambuf
, isstd
);
4596 ios_base__Init(&this->base
);
4597 this->strbuf
= streambuf
;
4598 this->stream
= NULL
;
4602 ios_base_setstate(&this->base
, IOSTATE_badbit
);
4605 FIXME("standard streams not handled yet\n");
4608 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
4609 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
4610 DEFINE_THISCALL_WRAPPER(basic_ios_char_ctor_streambuf
, 8)
4611 basic_ios_char
* __thiscall
basic_ios_char_ctor_streambuf(basic_ios_char
*this, basic_streambuf_char
*strbuf
)
4613 TRACE("(%p %p)\n", this, strbuf
);
4615 basic_ios_char_ctor(this);
4616 basic_ios_char_init(this, strbuf
, FALSE
);
4620 /* ??1?$basic_ios@DU?$char_traits@D@std@@@std@@UAE@XZ */
4621 /* ??1?$basic_ios@DU?$char_traits@D@std@@@std@@UEAA@XZ */
4622 DEFINE_THISCALL_WRAPPER(basic_ios_char_dtor
, 4)
4623 void __thiscall
basic_ios_char_dtor(basic_ios_char
*this)
4625 TRACE("(%p)\n", this);
4626 ios_base_dtor(&this->base
);
4629 DEFINE_THISCALL_WRAPPER(basic_ios_char_vector_dtor
, 8)
4630 basic_ios_char
* __thiscall
basic_ios_char_vector_dtor(basic_ios_char
*this, unsigned int flags
)
4632 TRACE("(%p %x)\n", this, flags
);
4634 /* we have an array, with the number of elements stored before the first object */
4635 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
4637 for(i
=*ptr
-1; i
>=0; i
--)
4638 basic_ios_char_dtor(this+i
);
4639 MSVCRT_operator_delete(ptr
);
4641 basic_ios_char_dtor(this);
4643 MSVCRT_operator_delete(this);
4649 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z */
4650 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXH_N@Z */
4651 DEFINE_THISCALL_WRAPPER(basic_ios_char_clear_reraise
, 12)
4652 void __thiscall
basic_ios_char_clear_reraise(basic_ios_char
*this, IOSB_iostate state
, MSVCP_bool reraise
)
4654 TRACE("(%p %x %x)\n", this, state
, reraise
);
4655 ios_base_clear_reraise(&this->base
, state
| (this->strbuf
? IOSTATE_goodbit
: IOSTATE_badbit
), reraise
);
4658 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXI@Z */
4659 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXI@Z */
4660 static void basic_ios_char_clear(basic_ios_char
*this, unsigned int state
)
4662 basic_ios_char_clear_reraise(this, (IOSB_iostate
)state
, FALSE
);
4665 /* ?copyfmt@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEAAV12@ABV12@@Z */
4666 /* ?copyfmt@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEBV12@@Z */
4667 DEFINE_THISCALL_WRAPPER(basic_ios_char_copyfmt
, 8)
4668 basic_ios_char
* __thiscall
basic_ios_char_copyfmt(basic_ios_char
*this, basic_ios_char
*copy
)
4670 TRACE("(%p %p)\n", this, copy
);
4674 this->stream
= copy
->stream
;
4675 this->fillch
= copy
->fillch
;
4676 ios_base_copyfmt(&this->base
, ©
->base
);
4680 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEDD@Z */
4681 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAADD@Z */
4682 DEFINE_THISCALL_WRAPPER(basic_ios_char_fill_set
, 8)
4683 char __thiscall
basic_ios_char_fill_set(basic_ios_char
*this, char fill
)
4685 char ret
= this->fillch
;
4687 TRACE("(%p %c)\n", this, fill
);
4689 this->fillch
= fill
;
4693 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDXZ */
4694 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBADXZ */
4695 DEFINE_THISCALL_WRAPPER(basic_ios_char_fill_get
, 4)
4696 char __thiscall
basic_ios_char_fill_get(basic_ios_char
*this)
4698 TRACE("(%p)\n", this);
4699 return this->fillch
;
4702 /* ?imbue@?$basic_ios@DU?$char_traits@D@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
4703 /* ?imbue@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
4704 DEFINE_THISCALL_WRAPPER(basic_ios_char_imbue
, 12)
4705 locale
*__thiscall
basic_ios_char_imbue(basic_ios_char
*this, locale
*ret
, const locale
*loc
)
4707 TRACE("(%p %p %p)\n", this, ret
, loc
);
4710 basic_streambuf_char_pubimbue(this->strbuf
, ret
, loc
);
4714 return ios_base_imbue(&this->base
, ret
, loc
);
4717 /* ?narrow@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDDD@Z */
4718 /* ?narrow@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBADDD@Z */
4719 DEFINE_THISCALL_WRAPPER(basic_ios_char_narrow
, 12)
4720 char __thiscall
basic_ios_char_narrow(basic_ios_char
*this, char ch
, char def
)
4722 TRACE("(%p %c %c)\n", this, ch
, def
);
4723 return ctype_char_narrow_ch(ctype_char_use_facet(&this->strbuf
->loc
), ch
, def
);
4726 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PAV32@@Z */
4727 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PEAV32@@Z */
4728 DEFINE_THISCALL_WRAPPER(basic_ios_char_rdbuf_set
, 8)
4729 basic_streambuf_char
* __thiscall
basic_ios_char_rdbuf_set(basic_ios_char
*this, basic_streambuf_char
*streambuf
)
4731 basic_streambuf_char
*ret
= this->strbuf
;
4733 TRACE("(%p %p)\n", this, streambuf
);
4735 this->strbuf
= streambuf
;
4736 basic_ios_char_clear(this, IOSTATE_goodbit
);
4740 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ */
4741 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ */
4742 DEFINE_THISCALL_WRAPPER(basic_ios_char_rdbuf_get
, 4)
4743 basic_streambuf_char
* __thiscall
basic_ios_char_rdbuf_get(const basic_ios_char
*this)
4745 TRACE("(%p)\n", this);
4746 return this->strbuf
;
4749 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z */
4750 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXH_N@Z */
4751 DEFINE_THISCALL_WRAPPER(basic_ios_char_setstate_reraise
, 12)
4752 void __thiscall
basic_ios_char_setstate_reraise(basic_ios_char
*this, IOSB_iostate state
, MSVCP_bool reraise
)
4754 TRACE("(%p %x %x)\n", this, state
, reraise
);
4756 if(state
!= IOSTATE_goodbit
)
4757 basic_ios_char_clear_reraise(this, this->base
.state
| state
, reraise
);
4760 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXI@Z */
4761 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXI@Z */
4762 static void basic_ios_char_setstate(basic_ios_char
*this, unsigned int state
)
4764 basic_ios_char_setstate_reraise(this, (IOSB_iostate
)state
, FALSE
);
4767 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEPAV?$basic_ostream@DU?$char_traits@D@std@@@2@PAV32@@Z */
4768 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAPEAV?$basic_ostream@DU?$char_traits@D@std@@@2@PEAV32@@Z */
4769 DEFINE_THISCALL_WRAPPER(basic_ios_char_tie_set
, 8)
4770 basic_ostream_char
* __thiscall
basic_ios_char_tie_set(basic_ios_char
*this, basic_ostream_char
*ostream
)
4772 basic_ostream_char
*ret
= this->stream
;
4774 TRACE("(%p %p)\n", this, ostream
);
4776 this->stream
= ostream
;
4780 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ */
4781 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ */
4782 DEFINE_THISCALL_WRAPPER(basic_ios_char_tie_get
, 4)
4783 basic_ostream_char
* __thiscall
basic_ios_char_tie_get(const basic_ios_char
*this)
4785 TRACE("(%p)\n", this);
4786 return this->stream
;
4789 /* ?widen@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDD@Z */
4790 /* ?widen@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBADD@Z */
4791 DEFINE_THISCALL_WRAPPER(basic_ios_char_widen
, 8)
4792 char __thiscall
basic_ios_char_widen(basic_ios_char
*this, char ch
)
4794 TRACE("(%p %c)\n", this, ch
);
4795 return ctype_char_widen_ch(ctype_char_use_facet(&this->strbuf
->loc
), ch
);
4799 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@IAE@XZ */
4800 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@IEAA@XZ */
4801 static basic_ios_wchar
* basic_ios_wchar_ctor(basic_ios_wchar
*this)
4803 TRACE("(%p)\n", this);
4805 ios_base_ctor(&this->base
);
4806 this->base
.vtable
= &MSVCP_basic_ios_wchar_vtable
;
4810 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@IAE@XZ */
4811 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@IEAA@XZ */
4812 DEFINE_THISCALL_WRAPPER(basic_ios_short_ctor
, 4)
4813 basic_ios_wchar
* __thiscall
basic_ios_short_ctor(basic_ios_wchar
*this)
4815 basic_ios_wchar_ctor(this);
4816 this->base
.vtable
= &MSVCP_basic_ios_short_vtable
;
4820 /* ?init@?$basic_ios@_WU?$char_traits@_W@std@@@std@@IAEXPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_N@Z */
4821 /* ?init@?$basic_ios@_WU?$char_traits@_W@std@@@std@@IEAAXPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_N@Z */
4822 /* ?init@?$basic_ios@GU?$char_traits@G@std@@@std@@IAEXPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@_N@Z */
4823 /* ?init@?$basic_ios@GU?$char_traits@G@std@@@std@@IEAAXPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@_N@Z */
4824 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_init
, 12)
4825 void __thiscall
basic_ios_wchar_init(basic_ios_wchar
*this, basic_streambuf_wchar
*streambuf
, MSVCP_bool isstd
)
4827 TRACE("(%p %p %x)\n", this, streambuf
, isstd
);
4828 ios_base__Init(&this->base
);
4829 this->strbuf
= streambuf
;
4830 this->stream
= NULL
;
4834 ios_base_setstate(&this->base
, IOSTATE_badbit
);
4837 FIXME("standard streams not handled yet\n");
4840 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
4841 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
4842 static basic_ios_wchar
* basic_ios_wchar_ctor_streambuf(basic_ios_wchar
*this, basic_streambuf_wchar
*strbuf
)
4844 TRACE("(%p %p)\n", this, strbuf
);
4846 basic_ios_wchar_ctor(this);
4847 basic_ios_wchar_init(this, strbuf
, FALSE
);
4851 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
4852 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
4853 DEFINE_THISCALL_WRAPPER(basic_ios_short_ctor_streambuf
, 8)
4854 basic_ios_wchar
* __thiscall
basic_ios_short_ctor_streambuf(basic_ios_wchar
*this, basic_streambuf_wchar
*strbuf
)
4856 basic_ios_wchar_ctor_streambuf(this, strbuf
);
4857 this->base
.vtable
= &MSVCP_basic_ios_short_vtable
;
4861 /* ??1?$basic_ios@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
4862 /* ??1?$basic_ios@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
4863 /* ??1?$basic_ios@GU?$char_traits@G@std@@@std@@UAE@XZ */
4864 /* ??1?$basic_ios@GU?$char_traits@G@std@@@std@@UEAA@XZ */
4865 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_dtor
, 4)
4866 void __thiscall
basic_ios_wchar_dtor(basic_ios_wchar
*this)
4868 TRACE("(%p)\n", this);
4869 ios_base_dtor(&this->base
);
4872 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_vector_dtor
, 8)
4873 basic_ios_wchar
* __thiscall
basic_ios_wchar_vector_dtor(basic_ios_wchar
*this, unsigned int flags
)
4875 TRACE("(%p %x)\n", this, flags
);
4877 /* we have an array, with the number of elements stored before the first object */
4878 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
4880 for(i
=*ptr
-1; i
>=0; i
--)
4881 basic_ios_wchar_dtor(this+i
);
4882 MSVCRT_operator_delete(ptr
);
4884 basic_ios_wchar_dtor(this);
4886 MSVCRT_operator_delete(this);
4892 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXH_N@Z */
4893 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXH_N@Z */
4894 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXH_N@Z */
4895 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXH_N@Z */
4896 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_clear_reraise
, 12)
4897 void __thiscall
basic_ios_wchar_clear_reraise(basic_ios_wchar
*this, IOSB_iostate state
, MSVCP_bool reraise
)
4899 TRACE("(%p %x %x)\n", this, state
, reraise
);
4900 ios_base_clear_reraise(&this->base
, state
| (this->strbuf
? IOSTATE_goodbit
: IOSTATE_badbit
), reraise
);
4903 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXI@Z */
4904 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXI@Z */
4905 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXI@Z */
4906 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXI@Z */
4907 static void basic_ios_wchar_clear(basic_ios_wchar
*this, unsigned int state
)
4909 basic_ios_wchar_clear_reraise(this, (IOSB_iostate
)state
, FALSE
);
4912 /* ?copyfmt@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEAAV12@ABV12@@Z */
4913 /* ?copyfmt@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEBV12@@Z */
4914 /* ?copyfmt@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEAAV12@ABV12@@Z */
4915 /* ?copyfmt@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEBV12@@Z */
4916 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_copyfmt
, 8)
4917 basic_ios_wchar
* __thiscall
basic_ios_wchar_copyfmt(basic_ios_wchar
*this, basic_ios_wchar
*copy
)
4919 TRACE("(%p %p)\n", this, copy
);
4923 this->stream
= copy
->stream
;
4924 this->fillch
= copy
->fillch
;
4925 ios_base_copyfmt(&this->base
, ©
->base
);
4929 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAE_W_W@Z */
4930 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAA_W_W@Z */
4931 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEGG@Z */
4932 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAGG@Z */
4933 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_fill_set
, 8)
4934 wchar_t __thiscall
basic_ios_wchar_fill_set(basic_ios_wchar
*this, wchar_t fill
)
4936 wchar_t ret
= this->fillch
;
4938 TRACE("(%p %c)\n", this, fill
);
4940 this->fillch
= fill
;
4944 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBE_WXZ */
4945 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBA_WXZ */
4946 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEGXZ */
4947 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAGXZ */
4948 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_fill_get
, 4)
4949 wchar_t __thiscall
basic_ios_wchar_fill_get(basic_ios_wchar
*this)
4951 TRACE("(%p)\n", this);
4952 return this->fillch
;
4955 /* ?imbue@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
4956 /* ?imbue@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
4957 /* ?imbue@?$basic_ios@GU?$char_traits@G@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
4958 /* ?imbue@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
4959 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_imbue
, 12)
4960 locale
*__thiscall
basic_ios_wchar_imbue(basic_ios_wchar
*this, locale
*ret
, const locale
*loc
)
4962 TRACE("(%p %p %p)\n", this, ret
, loc
);
4965 basic_streambuf_wchar_pubimbue(this->strbuf
, ret
, loc
);
4969 return ios_base_imbue(&this->base
, ret
, loc
);
4972 /* ?narrow@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBED_WD@Z */
4973 /* ?narrow@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBAD_WD@Z */
4974 /* ?narrow@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEDGD@Z */
4975 /* ?narrow@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBADGD@Z */
4976 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_narrow
, 12)
4977 char __thiscall
basic_ios_wchar_narrow(basic_ios_wchar
*this, wchar_t ch
, char def
)
4979 TRACE("(%p %c %c)\n", this, ch
, def
);
4980 return ctype_wchar_narrow_ch(ctype_wchar_use_facet(&this->strbuf
->loc
), ch
, def
);
4983 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PAV32@@Z */
4984 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PEAV32@@Z */
4985 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PAV32@@Z */
4986 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PEAV32@@Z */
4987 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_rdbuf_set
, 8)
4988 basic_streambuf_wchar
* __thiscall
basic_ios_wchar_rdbuf_set(basic_ios_wchar
*this, basic_streambuf_wchar
*streambuf
)
4990 basic_streambuf_wchar
*ret
= this->strbuf
;
4992 TRACE("(%p %p)\n", this, streambuf
);
4994 this->strbuf
= streambuf
;
4995 basic_ios_wchar_clear(this, IOSTATE_goodbit
);
4999 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@XZ */
5000 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@XZ */
5001 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@XZ */
5002 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@XZ */
5003 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_rdbuf_get
, 4)
5004 basic_streambuf_wchar
* __thiscall
basic_ios_wchar_rdbuf_get(const basic_ios_wchar
*this)
5006 TRACE("(%p)\n", this);
5007 return this->strbuf
;
5010 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXH_N@Z */
5011 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXH_N@Z */
5012 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXH_N@Z */
5013 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXH_N@Z */
5014 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_setstate_reraise
, 12)
5015 void __thiscall
basic_ios_wchar_setstate_reraise(basic_ios_wchar
*this, IOSB_iostate state
, MSVCP_bool reraise
)
5017 TRACE("(%p %x %x)\n", this, state
, reraise
);
5019 if(state
!= IOSTATE_goodbit
)
5020 basic_ios_wchar_clear_reraise(this, this->base
.state
| state
, reraise
);
5023 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXI@Z */
5024 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXI@Z */
5025 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXI@Z */
5026 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXI@Z */
5027 static void basic_ios_wchar_setstate(basic_ios_wchar
*this, IOSB_iostate state
)
5029 basic_ios_wchar_setstate_reraise(this, state
, FALSE
);
5032 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEPAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@PAV32@@Z */
5033 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAPEAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@PEAV32@@Z */
5034 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEPAV?$basic_ostream@GU?$char_traits@G@std@@@2@PAV32@@Z */
5035 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAPEAV?$basic_ostream@GU?$char_traits@G@std@@@2@PEAV32@@Z */
5036 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_tie_set
, 8)
5037 basic_ostream_wchar
* __thiscall
basic_ios_wchar_tie_set(basic_ios_wchar
*this, basic_ostream_wchar
*ostream
)
5039 basic_ostream_wchar
*ret
= this->stream
;
5041 TRACE("(%p %p)\n", this, ostream
);
5043 this->stream
= ostream
;
5047 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@XZ */
5048 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@XZ */
5049 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_ostream@GU?$char_traits@G@std@@@2@XZ */
5050 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_ostream@GU?$char_traits@G@std@@@2@XZ */
5051 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_tie_get
, 4)
5052 basic_ostream_wchar
* __thiscall
basic_ios_wchar_tie_get(const basic_ios_wchar
*this)
5054 TRACE("(%p)\n", this);
5055 return this->stream
;
5058 /* ?widen@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBE_WD@Z */
5059 /* ?widen@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBA_WD@Z */
5060 /* ?widen@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEGD@Z */
5061 /* ?widen@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAGD@Z */
5062 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_widen
, 8)
5063 wchar_t __thiscall
basic_ios_wchar_widen(basic_ios_wchar
*this, char ch
)
5065 TRACE("(%p %c)\n", this, ch
);
5066 return ctype_wchar_widen_ch(ctype_wchar_use_facet(&this->strbuf
->loc
), ch
);
5069 /* Caution: basic_ostream uses virtual inheritance.
5070 * All constructors have additional parameter that says if base class should be initialized.
5071 * Base class needs to be accessed using vbtable.
5073 static inline basic_ios_char
* basic_ostream_char_get_basic_ios(basic_ostream_char
*this)
5075 return (basic_ios_char
*)((char*)this+this->vbtable
[1]);
5078 static inline basic_ios_char
* basic_ostream_char_to_basic_ios(basic_ostream_char
*ptr
)
5080 return (basic_ios_char
*)((char*)ptr
+basic_ostream_char_vbtable
[1]);
5083 static inline basic_ostream_char
* basic_ostream_char_from_basic_ios(basic_ios_char
*ptr
)
5085 return (basic_ostream_char
*)((char*)ptr
-basic_ostream_char_vbtable
[1]);
5088 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N1@Z */
5089 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N1@Z */
5090 DEFINE_THISCALL_WRAPPER(basic_ostream_char_ctor
, 20)
5091 basic_ostream_char
* __thiscall
basic_ostream_char_ctor(basic_ostream_char
*this,
5092 basic_streambuf_char
*strbuf
, MSVCP_bool isstd
, MSVCP_bool init
, MSVCP_bool virt_init
)
5094 basic_ios_char
*base
;
5096 TRACE("(%p %p %d %d %d)\n", this, strbuf
, isstd
, init
, virt_init
);
5099 this->vbtable
= basic_ostream_char_vbtable
;
5100 base
= basic_ostream_char_get_basic_ios(this);
5101 basic_ios_char_ctor(base
);
5103 base
= basic_ostream_char_get_basic_ios(this);
5106 base
->base
.vtable
= &MSVCP_basic_ostream_char_vtable
;
5108 basic_ios_char_init(base
, strbuf
, isstd
);
5112 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@W4_Uninitialized@1@@Z */
5113 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
5114 DEFINE_THISCALL_WRAPPER(basic_ostream_char_ctor_uninitialized
, 12)
5115 basic_ostream_char
* __thiscall
basic_ostream_char_ctor_uninitialized(basic_ostream_char
*this,
5116 int uninitialized
, MSVCP_bool virt_init
)
5118 basic_ios_char
*base
;
5120 TRACE("(%p %d)\n", this, uninitialized
);
5123 this->vbtable
= basic_ostream_char_vbtable
;
5124 base
= basic_ostream_char_get_basic_ios(this);
5125 basic_ios_char_ctor(base
);
5127 base
= basic_ostream_char_get_basic_ios(this);
5130 base
->base
.vtable
= &MSVCP_basic_ostream_char_vtable
;
5131 ios_base_Addstd(&base
->base
);
5135 /* ??1?$basic_ostream@DU?$char_traits@D@std@@@std@@UAE@XZ */
5136 /* ??1?$basic_ostream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
5137 DEFINE_THISCALL_WRAPPER(basic_ostream_char_dtor
, 4)
5138 void __thiscall
basic_ostream_char_dtor(basic_ios_char
*base
)
5140 basic_ostream_char
*this = basic_ostream_char_from_basic_ios(base
);
5142 /* don't destroy virtual base here */
5143 TRACE("(%p)\n", this);
5146 /* ??_D?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
5147 /* ??_D?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
5148 DEFINE_THISCALL_WRAPPER(basic_ostream_char_vbase_dtor
, 4)
5149 void __thiscall
basic_ostream_char_vbase_dtor(basic_ostream_char
*this)
5151 TRACE("(%p)\n", this);
5152 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(this));
5153 basic_ios_char_dtor(basic_ostream_char_get_basic_ios(this));
5156 DEFINE_THISCALL_WRAPPER(basic_ostream_char_vector_dtor
, 8)
5157 basic_ostream_char
* __thiscall
basic_ostream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
5159 basic_ostream_char
*this = basic_ostream_char_from_basic_ios(base
);
5161 TRACE("(%p %x)\n", this, flags
);
5164 /* we have an array, with the number of elements stored before the first object */
5165 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
5167 for(i
=*ptr
-1; i
>=0; i
--)
5168 basic_ostream_char_vbase_dtor(this+i
);
5169 MSVCRT_operator_delete(ptr
);
5171 basic_ostream_char_vbase_dtor(this);
5173 MSVCRT_operator_delete(this);
5179 /* ?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ */
5180 /* ?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@XZ */
5181 DEFINE_THISCALL_WRAPPER(basic_ostream_char_flush
, 4)
5182 basic_ostream_char
* __thiscall
basic_ostream_char_flush(basic_ostream_char
*this)
5184 /* this function is not matching C++ specification */
5185 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
5187 TRACE("(%p)\n", this);
5189 if(basic_ios_char_rdbuf_get(base
) && ios_base_good(&base
->base
)
5190 && basic_streambuf_char_pubsync(basic_ios_char_rdbuf_get(base
))==-1)
5191 basic_ios_char_setstate(base
, IOSTATE_badbit
);
5195 /* ?flush@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z */
5196 /* ?flush@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@1@AEAV21@@Z */
5197 basic_ostream_char
* __cdecl
flush_ostream_char(basic_ostream_char
*ostream
)
5199 return basic_ostream_char_flush(ostream
);
5202 /* ?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
5203 /* ?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
5204 static void basic_ostream_char__Osfx(basic_ostream_char
*this)
5206 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
5208 TRACE("(%p)\n", this);
5210 if(base
->base
.fmtfl
& FMTFLAG_unitbuf
)
5211 basic_ostream_char_flush(this);
5214 /* ?osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
5215 /* ?osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
5216 DEFINE_THISCALL_WRAPPER(basic_ostream_char_osfx
, 4)
5217 void __thiscall
basic_ostream_char_osfx(basic_ostream_char
*this)
5219 TRACE("(%p)\n", this);
5220 basic_ostream_char__Osfx(this);
5223 static BOOL
basic_ostream_char_sentry_create(basic_ostream_char
*ostr
)
5225 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
5227 if(basic_ios_char_rdbuf_get(base
))
5228 basic_streambuf_char__Lock(base
->strbuf
);
5230 if(ios_base_good(&base
->base
) && base
->stream
)
5231 basic_ostream_char_flush(base
->stream
);
5233 return ios_base_good(&base
->base
);
5236 static void basic_ostream_char_sentry_destroy(basic_ostream_char
*ostr
)
5238 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
5240 if(ios_base_good(&base
->base
) && !__uncaught_exception())
5241 basic_ostream_char_osfx(ostr
);
5243 if(basic_ios_char_rdbuf_get(base
))
5244 basic_streambuf_char__Unlock(base
->strbuf
);
5247 /* ?opfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE_NXZ */
5248 /* ?opfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA_NXZ */
5249 DEFINE_THISCALL_WRAPPER(basic_ostream_char_opfx
, 4)
5250 MSVCP_bool __thiscall
basic_ostream_char_opfx(basic_ostream_char
*this)
5252 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
5254 TRACE("(%p)\n", this);
5256 if(ios_base_good(&base
->base
) && base
->stream
)
5257 basic_ostream_char_flush(base
->stream
);
5258 return ios_base_good(&base
->base
);
5261 /* ?put@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@D@Z */
5262 /* ?put@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@D@Z */
5263 DEFINE_THISCALL_WRAPPER(basic_ostream_char_put
, 8)
5264 basic_ostream_char
* __thiscall
basic_ostream_char_put(basic_ostream_char
*this, char ch
)
5266 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
5268 TRACE("(%p %c)\n", this, ch
);
5270 if(!basic_ostream_char_sentry_create(this)
5271 || basic_streambuf_char_sputc(base
->strbuf
, ch
)==EOF
) {
5272 basic_ostream_char_sentry_destroy(this);
5273 basic_ios_char_setstate(base
, IOSTATE_badbit
);
5277 basic_ostream_char_sentry_destroy(this);
5281 /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
5282 /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
5283 DEFINE_THISCALL_WRAPPER(basic_ostream_char_seekp_fpos
, 28)
5284 basic_ostream_char
* __thiscall
basic_ostream_char_seekp_fpos(basic_ostream_char
*this, fpos_int pos
)
5286 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
5288 TRACE("(%p %s)\n", this, debugstr_fpos_int(&pos
));
5290 if(!ios_base_fail(&base
->base
)) {
5293 basic_streambuf_char_pubseekpos(basic_ios_char_rdbuf_get(base
),
5294 &seek
, pos
, OPENMODE_out
);
5295 if(seek
.off
==-1 && seek
.pos
==0 && seek
.state
==0)
5296 basic_ios_char_setstate(base
, IOSTATE_failbit
);
5301 /* ?tellp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@XZ */
5302 /* ?tellp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
5303 DEFINE_THISCALL_WRAPPER(basic_ostream_char_tellp
, 8)
5304 fpos_int
* __thiscall
basic_ostream_char_tellp(basic_ostream_char
*this, fpos_int
*ret
)
5306 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
5308 TRACE("(%p)\n", this);
5310 if(!ios_base_fail(&base
->base
)) {
5311 basic_streambuf_char_pubseekoff(basic_ios_char_rdbuf_get(base
),
5312 ret
, 0, SEEKDIR_cur
, OPENMODE_out
);
5321 /* ?write@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@PBDH@Z */
5322 /* ?write@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEBD_J@Z */
5323 DEFINE_THISCALL_WRAPPER(basic_ostream_char_write
, 12)
5324 basic_ostream_char
* __thiscall
basic_ostream_char_write(basic_ostream_char
*this, const char *str
, streamsize count
)
5326 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
5328 TRACE("(%p %s %ld)\n", this, debugstr_a(str
), count
);
5330 if(!basic_ostream_char_sentry_create(this)
5331 || basic_streambuf_char_sputn(base
->strbuf
, str
, count
)!=count
) {
5332 basic_ostream_char_sentry_destroy(this);
5333 basic_ios_char_setstate(base
, IOSTATE_badbit
);
5337 basic_ostream_char_sentry_destroy(this);
5341 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@F@Z */
5342 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@F@Z */
5343 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_short
, 8)
5344 basic_ostream_char
* __thiscall
basic_ostream_char_print_short(basic_ostream_char
*this, short val
)
5346 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
5347 int state
= IOSTATE_goodbit
;
5349 TRACE("(%p %d)\n", this, val
);
5351 if(basic_ostream_char_sentry_create(this)) {
5352 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
5353 const num_put
*numput
= num_put_char_use_facet(&strbuf
->loc
);
5354 ostreambuf_iterator_char dest
= {0, strbuf
};
5356 num_put_char_put_long(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
),
5357 (ios_base_flags_get(&base
->base
) & FMTFLAG_basefield
& (FMTFLAG_oct
| FMTFLAG_hex
))
5358 ? (LONG
)((unsigned short)val
) : (LONG
)val
);
5360 basic_ostream_char_sentry_destroy(this);
5362 basic_ios_char_setstate(base
, state
);
5366 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@G@Z */
5367 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@G@Z */
5368 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_ushort
, 8)
5369 basic_ostream_char
* __thiscall
basic_ostream_char_print_ushort(basic_ostream_char
*this, unsigned short val
)
5371 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
5372 int state
= IOSTATE_goodbit
;
5374 TRACE("(%p %u)\n", this, val
);
5376 if(basic_ostream_char_sentry_create(this)) {
5377 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
5378 const num_put
*numput
= num_put_char_use_facet(&strbuf
->loc
);
5379 ostreambuf_iterator_char dest
= {0, strbuf
};
5381 num_put_char_put_ulong(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
5383 basic_ostream_char_sentry_destroy(this);
5385 basic_ios_char_setstate(base
, state
);
5389 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@H@Z */
5390 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@H@Z */
5391 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@J@Z */
5392 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@J@Z */
5393 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_int
, 8)
5394 basic_ostream_char
* __thiscall
basic_ostream_char_print_int(basic_ostream_char
*this, int val
)
5396 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
5397 int state
= IOSTATE_goodbit
;
5399 TRACE("(%p %d)\n", this, val
);
5401 if(basic_ostream_char_sentry_create(this)) {
5402 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
5403 const num_put
*numput
= num_put_char_use_facet(&strbuf
->loc
);
5404 ostreambuf_iterator_char dest
= {0, strbuf
};
5406 num_put_char_put_long(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
5408 basic_ostream_char_sentry_destroy(this);
5410 basic_ios_char_setstate(base
, state
);
5414 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@I@Z */
5415 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@I@Z */
5416 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@K@Z */
5417 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@K@Z */
5418 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_uint
, 8)
5419 basic_ostream_char
* __thiscall
basic_ostream_char_print_uint(basic_ostream_char
*this, unsigned int val
)
5421 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
5422 int state
= IOSTATE_goodbit
;
5424 TRACE("(%p %u)\n", this, val
);
5426 if(basic_ostream_char_sentry_create(this)) {
5427 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
5428 const num_put
*numput
= num_put_char_use_facet(&strbuf
->loc
);
5429 ostreambuf_iterator_char dest
= {0, strbuf
};
5431 num_put_char_put_ulong(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
5433 basic_ostream_char_sentry_destroy(this);
5435 basic_ios_char_setstate(base
, state
);
5439 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@M@Z */
5440 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@M@Z */
5441 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_float
, 8)
5442 basic_ostream_char
* __thiscall
basic_ostream_char_print_float(basic_ostream_char
*this, float val
)
5444 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
5445 int state
= IOSTATE_goodbit
;
5447 TRACE("(%p %f)\n", this, val
);
5449 if(basic_ostream_char_sentry_create(this)) {
5450 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
5451 const num_put
*numput
= num_put_char_use_facet(&strbuf
->loc
);
5452 ostreambuf_iterator_char dest
= {0, strbuf
};
5454 num_put_char_put_double(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
5456 basic_ostream_char_sentry_destroy(this);
5458 basic_ios_char_setstate(base
, state
);
5462 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@N@Z */
5463 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@N@Z */
5464 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_double
, 12)
5465 basic_ostream_char
* __thiscall
basic_ostream_char_print_double(basic_ostream_char
*this, double val
)
5467 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
5468 int state
= IOSTATE_goodbit
;
5470 TRACE("(%p %lf)\n", this, val
);
5472 if(basic_ostream_char_sentry_create(this)) {
5473 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
5474 const num_put
*numput
= num_put_char_use_facet(&strbuf
->loc
);
5475 ostreambuf_iterator_char dest
= {0, strbuf
};
5477 num_put_char_put_double(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
5479 basic_ostream_char_sentry_destroy(this);
5481 basic_ios_char_setstate(base
, state
);
5485 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@O@Z */
5486 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@O@Z */
5487 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_ldouble
, 12)
5488 basic_ostream_char
* __thiscall
basic_ostream_char_print_ldouble(basic_ostream_char
*this, double val
)
5490 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
5491 int state
= IOSTATE_goodbit
;
5493 TRACE("(%p %lf)\n", this, val
);
5495 if(basic_ostream_char_sentry_create(this)) {
5496 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
5497 const num_put
*numput
= num_put_char_use_facet(&strbuf
->loc
);
5498 ostreambuf_iterator_char dest
= {0, strbuf
};
5500 num_put_char_put_ldouble(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
5502 basic_ostream_char_sentry_destroy(this);
5504 basic_ios_char_setstate(base
, state
);
5508 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
5509 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
5510 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_streambuf
, 8)
5511 basic_ostream_char
* __thiscall
basic_ostream_char_print_streambuf(basic_ostream_char
*this, basic_streambuf_char
*val
)
5513 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
5514 IOSB_iostate state
= IOSTATE_badbit
;
5517 TRACE("(%p %p)\n", this, val
);
5519 if(basic_ostream_char_sentry_create(this)) {
5520 for(c
= basic_streambuf_char_sgetc(val
); c
!=EOF
;
5521 c
= basic_streambuf_char_snextc(val
)) {
5522 state
= IOSTATE_goodbit
;
5524 if(basic_streambuf_char_sputc(base
->strbuf
, c
) == EOF
) {
5525 state
= IOSTATE_badbit
;
5530 state
= IOSTATE_badbit
;
5532 basic_ostream_char_sentry_destroy(this);
5534 ios_base_width_set(&base
->base
, 0);
5535 basic_ios_char_setstate(base
, state
);
5539 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@PBX@Z */
5540 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@PEBX@Z */
5541 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_ptr
, 8)
5542 basic_ostream_char
* __thiscall
basic_ostream_char_print_ptr(basic_ostream_char
*this, const void *val
)
5544 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
5545 int state
= IOSTATE_goodbit
;
5547 TRACE("(%p %p)\n", this, val
);
5549 if(basic_ostream_char_sentry_create(this)) {
5550 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
5551 const num_put
*numput
= num_put_char_use_facet(&strbuf
->loc
);
5552 ostreambuf_iterator_char dest
= {0, strbuf
};
5554 num_put_char_put_ptr(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
5556 basic_ostream_char_sentry_destroy(this);
5558 basic_ios_char_setstate(base
, state
);
5562 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@_J@Z */
5563 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@_J@Z */
5564 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_int64
, 12)
5565 basic_ostream_char
* __thiscall
basic_ostream_char_print_int64(basic_ostream_char
*this, __int64 val
)
5567 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
5568 int state
= IOSTATE_goodbit
;
5570 TRACE("(%p)\n", this);
5572 if(basic_ostream_char_sentry_create(this)) {
5573 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
5574 const num_put
*numput
= num_put_char_use_facet(&strbuf
->loc
);
5575 ostreambuf_iterator_char dest
= {0, strbuf
};
5577 num_put_char_put_int64(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
5579 basic_ostream_char_sentry_destroy(this);
5581 basic_ios_char_setstate(base
, state
);
5585 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@_K@Z */
5586 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@_K@Z */
5587 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_uint64
, 12)
5588 basic_ostream_char
* __thiscall
basic_ostream_char_print_uint64(basic_ostream_char
*this, unsigned __int64 val
)
5590 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
5591 int state
= IOSTATE_goodbit
;
5593 TRACE("(%p)\n", this);
5595 if(basic_ostream_char_sentry_create(this)) {
5596 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
5597 const num_put
*numput
= num_put_char_use_facet(&strbuf
->loc
);
5598 ostreambuf_iterator_char dest
= {0, strbuf
};
5600 num_put_char_put_uint64(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
5602 basic_ostream_char_sentry_destroy(this);
5604 basic_ios_char_setstate(base
, state
);
5608 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@_N@Z */
5609 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@_N@Z */
5610 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_bool
, 8)
5611 basic_ostream_char
* __thiscall
basic_ostream_char_print_bool(basic_ostream_char
*this, MSVCP_bool val
)
5613 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(this);
5614 int state
= IOSTATE_goodbit
;
5616 TRACE("(%p %x)\n", this, val
);
5618 if(basic_ostream_char_sentry_create(this)) {
5619 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
5620 const num_put
*numput
= num_put_char_use_facet(&strbuf
->loc
);
5621 ostreambuf_iterator_char dest
= {0, strbuf
};
5623 num_put_char_put_bool(numput
, &dest
, dest
, &base
->base
, basic_ios_char_fill_get(base
), val
);
5625 basic_ostream_char_sentry_destroy(this);
5627 basic_ios_char_setstate(base
, state
);
5631 /* ?ends@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z */
5632 /* ?ends@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@1@AEAV21@@Z */
5633 basic_ostream_char
* __cdecl
basic_ostream_char_ends(basic_ostream_char
*ostr
)
5635 TRACE("(%p)\n", ostr
);
5637 basic_ostream_char_put(ostr
, 0);
5641 /* ?endl@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z */
5642 /* ?endl@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@1@AEAV21@@Z */
5643 basic_ostream_char
* __cdecl
basic_ostream_char_endl(basic_ostream_char
*ostr
)
5645 TRACE("(%p)\n", ostr
);
5647 basic_ostream_char_put(ostr
, '\n');
5648 basic_ostream_char_flush(ostr
);
5652 /* $?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 */
5653 /* ??$?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 */
5654 basic_ostream_char
* __cdecl
basic_ostream_char_print_bstr(basic_ostream_char
*ostr
, const basic_string_char
*str
)
5656 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
5657 IOSB_iostate state
= IOSTATE_goodbit
;
5659 TRACE("(%p %p)\n", ostr
, str
);
5661 if(basic_ostream_char_sentry_create(ostr
)) {
5662 MSVCP_size_t len
= basic_string_char_length(str
);
5663 streamsize pad
= (base
->base
.wide
>len
? base
->base
.wide
-len
: 0);
5665 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
5666 for(; pad
!=0; pad
--) {
5667 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
5668 state
= IOSTATE_badbit
;
5674 if(state
== IOSTATE_goodbit
) {
5675 if(basic_streambuf_char_sputn(base
->strbuf
, basic_string_char_c_str(str
), len
) != len
)
5676 state
= IOSTATE_badbit
;
5679 if(state
== IOSTATE_goodbit
) {
5680 for(; pad
!=0; pad
--) {
5681 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
5682 state
= IOSTATE_badbit
;
5688 base
->base
.wide
= 0;
5690 state
= IOSTATE_badbit
;
5692 basic_ostream_char_sentry_destroy(ostr
);
5694 basic_ios_char_setstate(base
, state
);
5698 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@C@Z */
5699 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@C@Z */
5700 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@D@Z */
5701 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@D@Z */
5702 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@E@Z */
5703 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@E@Z */
5704 basic_ostream_char
* __cdecl
basic_ostream_char_print_ch(basic_ostream_char
*ostr
, char ch
)
5706 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
5707 IOSB_iostate state
= IOSTATE_goodbit
;
5709 TRACE("(%p %d)\n", ostr
, ch
);
5711 if(basic_ostream_char_sentry_create(ostr
)) {
5712 streamsize pad
= (base
->base
.wide
>1 ? base
->base
.wide
-1 : 0);
5714 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
5715 for(; pad
!=0; pad
--) {
5716 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
5717 state
= IOSTATE_badbit
;
5723 if(state
== IOSTATE_goodbit
) {
5724 if(basic_streambuf_char_sputc(base
->strbuf
, ch
) == EOF
)
5725 state
= IOSTATE_badbit
;
5728 if(state
== IOSTATE_goodbit
) {
5729 for(; pad
!=0; pad
--) {
5730 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
5731 state
= IOSTATE_badbit
;
5737 base
->base
.wide
= 0;
5739 state
= IOSTATE_badbit
;
5741 basic_ostream_char_sentry_destroy(ostr
);
5743 basic_ios_char_setstate(base
, state
);
5747 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBC@Z */
5748 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBC@Z */
5749 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z */
5750 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBD@Z */
5751 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBE@Z */
5752 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBE@Z */
5753 basic_ostream_char
* __cdecl
basic_ostream_char_print_str(basic_ostream_char
*ostr
, const char *str
)
5755 basic_ios_char
*base
= basic_ostream_char_get_basic_ios(ostr
);
5756 IOSB_iostate state
= IOSTATE_goodbit
;
5758 TRACE("(%p %s)\n", ostr
, str
);
5760 if(basic_ostream_char_sentry_create(ostr
)) {
5761 MSVCP_size_t len
= strlen(str
);
5762 streamsize pad
= (base
->base
.wide
>len
? base
->base
.wide
-len
: 0);
5764 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
5765 for(; pad
!=0; pad
--) {
5766 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
5767 state
= IOSTATE_badbit
;
5773 if(state
== IOSTATE_goodbit
) {
5774 if(basic_streambuf_char_sputn(base
->strbuf
, str
, len
) != len
)
5775 state
= IOSTATE_badbit
;
5778 if(state
== IOSTATE_goodbit
) {
5779 for(; pad
!=0; pad
--) {
5780 if(basic_streambuf_char_sputc(base
->strbuf
, base
->fillch
) == EOF
) {
5781 state
= IOSTATE_badbit
;
5787 base
->base
.wide
= 0;
5789 state
= IOSTATE_badbit
;
5791 basic_ostream_char_sentry_destroy(ostr
);
5793 basic_ios_char_setstate(base
, state
);
5797 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
5798 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
5799 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_func
, 8)
5800 basic_ostream_char
* __thiscall
basic_ostream_char_print_func(basic_ostream_char
*this,
5801 basic_ostream_char
* (__cdecl
*pfunc
)(basic_ostream_char
*))
5803 TRACE("(%p %p)\n", this, pfunc
);
5808 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@DU?$char_traits@D@std@@@1@AAV21@@Z@Z */
5809 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@DU?$char_traits@D@std@@@1@AEAV21@@Z@Z */
5810 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_func_basic_ios
, 8)
5811 basic_ostream_char
* __thiscall
basic_ostream_char_print_func_basic_ios(basic_ostream_char
*this,
5812 basic_ios_char
* (__cdecl
*pfunc
)(basic_ios_char
*))
5814 TRACE("(%p %p)\n", this, pfunc
);
5815 pfunc(basic_ostream_char_get_basic_ios(this));
5819 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
5820 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
5821 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_func_ios_base
, 8)
5822 basic_ostream_char
* __thiscall
basic_ostream_char_print_func_ios_base(
5823 basic_ostream_char
*this, ios_base
* (__cdecl
*pfunc
)(ios_base
*))
5825 TRACE("(%p %p)\n", this, pfunc
);
5826 pfunc(&basic_ostream_char_get_basic_ios(this)->base
);
5830 /* Caution: basic_ostream uses virtual inheritance. */
5831 static inline basic_ios_wchar
* basic_ostream_wchar_get_basic_ios(basic_ostream_wchar
*this)
5833 return (basic_ios_wchar
*)((char*)this+this->vbtable
[1]);
5836 static inline basic_ios_wchar
* basic_ostream_wchar_to_basic_ios(basic_ostream_wchar
*ptr
)
5838 return (basic_ios_wchar
*)((char*)ptr
+basic_ostream_wchar_vbtable
[1]);
5841 static inline basic_ostream_wchar
* basic_ostream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
5843 return (basic_ostream_wchar
*)((char*)ptr
-basic_ostream_wchar_vbtable
[1]);
5846 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N1@Z */
5847 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N1@Z */
5848 DEFINE_THISCALL_WRAPPER(basic_ostream_short_ctor
, 20)
5849 basic_ostream_wchar
* __thiscall
basic_ostream_short_ctor(basic_ostream_wchar
*this,
5850 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool init
, MSVCP_bool virt_init
)
5852 basic_ios_wchar
*base
;
5854 TRACE("(%p %p %d %d %d)\n", this, strbuf
, isstd
, init
, virt_init
);
5857 this->vbtable
= basic_ostream_wchar_vbtable
;
5858 base
= basic_ostream_wchar_get_basic_ios(this);
5859 basic_ios_wchar_ctor(base
);
5861 base
= basic_ostream_wchar_get_basic_ios(this);
5864 base
->base
.vtable
= &MSVCP_basic_ostream_short_vtable
;
5866 basic_ios_wchar_init(base
, strbuf
, isstd
);
5870 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE@W4_Uninitialized@1@@Z */
5871 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
5872 DEFINE_THISCALL_WRAPPER(basic_ostream_short_ctor_uninitialized
, 12)
5873 basic_ostream_wchar
* __thiscall
basic_ostream_short_ctor_uninitialized(basic_ostream_wchar
*this,
5874 int uninitialized
, MSVCP_bool virt_init
)
5876 basic_ios_wchar
*base
;
5878 TRACE("(%p %d)\n", this, uninitialized
);
5881 this->vbtable
= basic_ostream_wchar_vbtable
;
5882 base
= basic_ostream_wchar_get_basic_ios(this);
5883 basic_ios_wchar_ctor(base
);
5885 base
= basic_ostream_wchar_get_basic_ios(this);
5888 base
->base
.vtable
= &MSVCP_basic_ostream_short_vtable
;
5889 ios_base_Addstd(&base
->base
);
5893 /* ??1?$basic_ostream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
5894 /* ??1?$basic_ostream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
5895 /* ??1?$basic_ostream@GU?$char_traits@G@std@@@std@@UAE@XZ */
5896 /* ??1?$basic_ostream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
5897 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_dtor
, 4)
5898 void __thiscall
basic_ostream_wchar_dtor(basic_ios_wchar
*base
)
5900 basic_ostream_wchar
*this = basic_ostream_wchar_from_basic_ios(base
);
5902 /* don't destroy virtual base here */
5903 TRACE("(%p)\n", this);
5906 /* ??_D?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
5907 /* ??_D?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
5908 /* ??_D?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
5909 /* ??_D?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
5910 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_vbase_dtor
, 4)
5911 void __thiscall
basic_ostream_wchar_vbase_dtor(basic_ostream_wchar
*this)
5913 TRACE("(%p)\n", this);
5914 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(this));
5915 basic_ios_wchar_dtor(basic_ostream_wchar_get_basic_ios(this));
5918 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_vector_dtor
, 8)
5919 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
5921 basic_ostream_wchar
*this = basic_ostream_wchar_from_basic_ios(base
);
5923 TRACE("(%p %x)\n", this, flags
);
5926 /* we have an array, with the number of elements stored before the first object */
5927 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
5929 for(i
=*ptr
-1; i
>=0; i
--)
5930 basic_ostream_wchar_vbase_dtor(this+i
);
5931 MSVCRT_operator_delete(ptr
);
5933 basic_ostream_wchar_vbase_dtor(this);
5935 MSVCRT_operator_delete(this);
5941 /* ?flush@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@XZ */
5942 /* ?flush@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@XZ */
5943 /* ?flush@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@XZ */
5944 /* ?flush@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@XZ */
5945 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_flush
, 4)
5946 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_flush(basic_ostream_wchar
*this)
5948 /* this function is not matching C++ specification */
5949 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
5951 TRACE("(%p)\n", this);
5953 if(basic_ios_wchar_rdbuf_get(base
) && ios_base_good(&base
->base
)
5954 && basic_streambuf_wchar_pubsync(basic_ios_wchar_rdbuf_get(base
))==-1)
5955 basic_ios_wchar_setstate(base
, IOSTATE_badbit
);
5959 /* ?flush@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AAV21@@Z */
5960 /* ?flush@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AEAV21@@Z */
5961 /* ?flush@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@1@AAV21@@Z */
5962 /* ?flush@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@1@AEAV21@@Z */
5963 basic_ostream_wchar
* __cdecl
flush_ostream_wchar(basic_ostream_wchar
*ostream
)
5965 return basic_ostream_wchar_flush(ostream
);
5968 /* ?_Osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
5969 /* ?_Osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
5970 /* ?_Osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
5971 /* ?_Osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
5972 static void basic_ostream_wchar__Osfx(basic_ostream_wchar
*this)
5974 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
5976 TRACE("(%p)\n", this);
5978 if(base
->base
.fmtfl
& FMTFLAG_unitbuf
)
5979 basic_ostream_wchar_flush(this);
5982 /* ?osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
5983 /* ?osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
5984 /* ?osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
5985 /* ?osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
5986 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_osfx
, 4)
5987 void __thiscall
basic_ostream_wchar_osfx(basic_ostream_wchar
*this)
5989 TRACE("(%p)\n", this);
5990 basic_ostream_wchar__Osfx(this);
5993 static BOOL
basic_ostream_wchar_sentry_create(basic_ostream_wchar
*ostr
)
5995 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
5997 if(basic_ios_wchar_rdbuf_get(base
))
5998 basic_streambuf_wchar__Lock(base
->strbuf
);
6000 if(ios_base_good(&base
->base
) && base
->stream
)
6001 basic_ostream_wchar_flush(base
->stream
);
6003 return ios_base_good(&base
->base
);
6006 static void basic_ostream_wchar_sentry_destroy(basic_ostream_wchar
*ostr
)
6008 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
6010 if(ios_base_good(&base
->base
) && !__uncaught_exception())
6011 basic_ostream_wchar_osfx(ostr
);
6013 if(basic_ios_wchar_rdbuf_get(base
))
6014 basic_streambuf_wchar__Unlock(base
->strbuf
);
6017 /* ?opfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAE_NXZ */
6018 /* ?opfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA_NXZ */
6019 /* ?opfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE_NXZ */
6020 /* ?opfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA_NXZ */
6021 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_opfx
, 4)
6022 MSVCP_bool __thiscall
basic_ostream_wchar_opfx(basic_ostream_wchar
*this)
6024 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6026 TRACE("(%p)\n", this);
6028 if(ios_base_good(&base
->base
) && base
->stream
)
6029 basic_ostream_wchar_flush(base
->stream
);
6030 return ios_base_good(&base
->base
);
6033 /* ?put@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@_W@Z */
6034 /* ?put@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_W@Z */
6035 /* ?put@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@G@Z */
6036 /* ?put@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@G@Z */
6037 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_put
, 8)
6038 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_put(basic_ostream_wchar
*this, wchar_t ch
)
6040 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6042 TRACE("(%p %c)\n", this, ch
);
6044 if(!basic_ostream_wchar_sentry_create(this)
6045 || basic_streambuf_wchar_sputc(base
->strbuf
, ch
)==WEOF
) {
6046 basic_ostream_wchar_sentry_destroy(this);
6047 basic_ios_wchar_setstate(base
, IOSTATE_badbit
);
6051 basic_ostream_wchar_sentry_destroy(this);
6055 /* ?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
6056 /* ?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
6057 /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
6058 /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
6059 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_seekp_fpos
, 28)
6060 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_seekp_fpos(basic_ostream_wchar
*this, fpos_int pos
)
6062 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6064 TRACE("(%p %s)\n", this, debugstr_fpos_int(&pos
));
6066 if(!ios_base_fail(&base
->base
)) {
6069 basic_streambuf_wchar_pubseekpos(basic_ios_wchar_rdbuf_get(base
),
6070 &seek
, pos
, OPENMODE_out
);
6071 if(seek
.off
==-1 && seek
.pos
==0 && seek
.state
==0)
6072 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
6077 /* ?tellp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@XZ */
6078 /* ?tellp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
6079 /* ?tellp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@XZ */
6080 /* ?tellp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
6081 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_tellp
, 8)
6082 fpos_int
* __thiscall
basic_ostream_wchar_tellp(basic_ostream_wchar
*this, fpos_int
*ret
)
6084 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6086 TRACE("(%p)\n", this);
6088 if(!ios_base_fail(&base
->base
)) {
6089 basic_streambuf_wchar_pubseekoff(basic_ios_wchar_rdbuf_get(base
),
6090 ret
, 0, SEEKDIR_cur
, OPENMODE_out
);
6099 /* ?write@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PB_WH@Z */
6100 /* ?write@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEB_W_J@Z */
6101 /* ?write@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@PBGH@Z */
6102 /* ?write@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEBG_J@Z */
6103 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_write
, 12)
6104 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_write(basic_ostream_wchar
*this, const wchar_t *str
, streamsize count
)
6106 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6108 TRACE("(%p %s %ld)\n", this, debugstr_w(str
), count
);
6110 if(!basic_ostream_wchar_sentry_create(this)
6111 || basic_streambuf_wchar_sputn(base
->strbuf
, str
, count
)!=count
) {
6112 basic_ostream_wchar_sentry_destroy(this);
6113 basic_ios_wchar_setstate(base
, IOSTATE_badbit
);
6117 basic_ostream_wchar_sentry_destroy(this);
6121 static basic_ostream_wchar
* basic_ostream_print_short(basic_ostream_wchar
*this, short val
, const num_put
*numput
)
6123 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6124 int state
= IOSTATE_goodbit
;
6126 TRACE("(%p %d)\n", this, val
);
6128 if(basic_ostream_wchar_sentry_create(this)) {
6129 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
6130 ostreambuf_iterator_wchar dest
= {0, strbuf
};
6132 num_put_wchar_put_long(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
),
6133 (ios_base_flags_get(&base
->base
) & FMTFLAG_basefield
& (FMTFLAG_oct
| FMTFLAG_hex
))
6134 ? (LONG
)((unsigned short)val
) : (LONG
)val
);
6136 basic_ostream_wchar_sentry_destroy(this);
6138 basic_ios_wchar_setstate(base
, state
);
6142 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@F@Z */
6143 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@F@Z */
6144 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_short
, 8)
6145 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_short(basic_ostream_wchar
*this, short val
)
6147 return basic_ostream_print_short(this, val
, num_put_short_use_facet(
6148 &basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
6151 static basic_ostream_wchar
* basic_ostream_print_ushort(basic_ostream_wchar
*this, unsigned short val
, const num_put
*numput
)
6153 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6154 int state
= IOSTATE_goodbit
;
6156 TRACE("(%p %d)\n", this, val
);
6158 if(basic_ostream_wchar_sentry_create(this)) {
6159 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
6160 ostreambuf_iterator_wchar dest
= {0, strbuf
};
6162 num_put_wchar_put_ulong(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
6164 basic_ostream_wchar_sentry_destroy(this);
6166 basic_ios_wchar_setstate(base
, state
);
6170 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@G@Z */
6171 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@G@Z */
6172 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_ushort
, 8)
6173 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_ushort(basic_ostream_wchar
*this, unsigned short val
)
6175 return basic_ostream_print_ushort(this, val
, num_put_short_use_facet(
6176 &basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
6179 static basic_ostream_wchar
* basic_ostream_print_int(basic_ostream_wchar
*this, int val
, const num_put
*numput
)
6181 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6182 int state
= IOSTATE_goodbit
;
6184 TRACE("(%p %d)\n", this, val
);
6186 if(basic_ostream_wchar_sentry_create(this)) {
6187 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
6188 ostreambuf_iterator_wchar dest
= {0, strbuf
};
6190 num_put_wchar_put_long(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
6192 basic_ostream_wchar_sentry_destroy(this);
6194 basic_ios_wchar_setstate(base
, state
);
6198 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@H@Z */
6199 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@H@Z */
6200 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@J@Z */
6201 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@J@Z */
6202 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_int
, 8)
6203 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_int(basic_ostream_wchar
*this, int val
)
6205 return basic_ostream_print_int(this, val
, num_put_short_use_facet(
6206 &basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
6209 static basic_ostream_wchar
* basic_ostream_print_uint(basic_ostream_wchar
*this, unsigned int val
, const num_put
*numput
)
6211 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6212 int state
= IOSTATE_goodbit
;
6214 TRACE("(%p %u)\n", this, val
);
6216 if(basic_ostream_wchar_sentry_create(this)) {
6217 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
6218 ostreambuf_iterator_wchar dest
= {0, strbuf
};
6220 num_put_wchar_put_ulong(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
6222 basic_ostream_wchar_sentry_destroy(this);
6224 basic_ios_wchar_setstate(base
, state
);
6228 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@I@Z */
6229 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@I@Z */
6230 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@K@Z */
6231 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@K@Z */
6232 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_uint
, 8)
6233 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_uint(basic_ostream_wchar
*this, unsigned int val
)
6235 return basic_ostream_print_uint(this, val
, num_put_short_use_facet(
6236 &basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
6239 static basic_ostream_wchar
* basic_ostream_print_float(basic_ostream_wchar
*this, float val
, const num_put
*numput
)
6241 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6242 int state
= IOSTATE_goodbit
;
6244 TRACE("(%p %f)\n", this, val
);
6246 if(basic_ostream_wchar_sentry_create(this)) {
6247 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
6248 ostreambuf_iterator_wchar dest
= {0, strbuf
};
6250 num_put_wchar_put_double(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
6252 basic_ostream_wchar_sentry_destroy(this);
6254 basic_ios_wchar_setstate(base
, state
);
6258 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@M@Z */
6259 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@M@Z */
6260 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_float
, 8)
6261 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_float(basic_ostream_wchar
*this, float val
)
6263 return basic_ostream_print_float(this, val
, num_put_short_use_facet(
6264 &basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
6267 static basic_ostream_wchar
* basic_ostream_print_double(basic_ostream_wchar
*this, double val
, const num_put
*numput
)
6269 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6270 int state
= IOSTATE_goodbit
;
6272 TRACE("(%p %lf)\n", this, val
);
6274 if(basic_ostream_wchar_sentry_create(this)) {
6275 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
6276 ostreambuf_iterator_wchar dest
= {0, strbuf
};
6278 num_put_wchar_put_double(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
6280 basic_ostream_wchar_sentry_destroy(this);
6282 basic_ios_wchar_setstate(base
, state
);
6286 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@N@Z */
6287 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@N@Z */
6288 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_double
, 12)
6289 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_double(basic_ostream_wchar
*this, double val
)
6291 return basic_ostream_print_double(this, val
, num_put_short_use_facet(
6292 &basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
6295 static basic_ostream_wchar
* basic_ostream_print_ldouble(basic_ostream_wchar
*this, double val
, const num_put
*numput
)
6297 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6298 int state
= IOSTATE_goodbit
;
6300 TRACE("(%p %lf)\n", this, val
);
6302 if(basic_ostream_wchar_sentry_create(this)) {
6303 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
6304 ostreambuf_iterator_wchar dest
= {0, strbuf
};
6306 num_put_wchar_put_ldouble(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
6308 basic_ostream_wchar_sentry_destroy(this);
6310 basic_ios_wchar_setstate(base
, state
);
6314 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@O@Z */
6315 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@O@Z */
6316 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_ldouble
, 12)
6317 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_ldouble(basic_ostream_wchar
*this, double val
)
6319 return basic_ostream_print_ldouble(this, val
, num_put_short_use_facet(
6320 &basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
6323 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
6324 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
6325 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
6326 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
6327 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_streambuf
, 8)
6328 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_streambuf(basic_ostream_wchar
*this, basic_streambuf_wchar
*val
)
6330 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6331 IOSB_iostate state
= IOSTATE_badbit
;
6332 unsigned short c
= '\n';
6334 TRACE("(%p %p)\n", this, val
);
6336 if(basic_ostream_wchar_sentry_create(this)) {
6337 for(c
= basic_streambuf_wchar_sgetc(val
); c
!=WEOF
;
6338 c
= basic_streambuf_wchar_snextc(val
)) {
6339 state
= IOSTATE_goodbit
;
6341 if(basic_streambuf_wchar_sputc(base
->strbuf
, c
) == WEOF
) {
6342 state
= IOSTATE_badbit
;
6347 state
= IOSTATE_badbit
;
6349 basic_ostream_wchar_sentry_destroy(this);
6351 ios_base_width_set(&base
->base
, 0);
6352 basic_ios_wchar_setstate(base
, state
);
6356 static basic_ostream_wchar
* basic_ostream_print_ptr(basic_ostream_wchar
*this, const void *val
, const num_put
*numput
)
6358 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6359 int state
= IOSTATE_goodbit
;
6361 TRACE("(%p %p)\n", this, val
);
6363 if(basic_ostream_wchar_sentry_create(this)) {
6364 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
6365 ostreambuf_iterator_wchar dest
= {0, strbuf
};
6367 num_put_wchar_put_ptr(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
6369 basic_ostream_wchar_sentry_destroy(this);
6371 basic_ios_wchar_setstate(base
, state
);
6375 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@PBX@Z */
6376 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@PEBX@Z */
6377 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_ptr
, 8)
6378 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_ptr(basic_ostream_wchar
*this, const void *val
)
6380 return basic_ostream_print_ptr(this, val
, num_put_short_use_facet(
6381 &basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
6384 static basic_ostream_wchar
* basic_ostream_print_int64(basic_ostream_wchar
*this, __int64 val
, const num_put
*numput
)
6386 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6387 int state
= IOSTATE_goodbit
;
6389 TRACE("(%p)\n", this);
6391 if(basic_ostream_wchar_sentry_create(this)) {
6392 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
6393 ostreambuf_iterator_wchar dest
= {0, strbuf
};
6395 num_put_wchar_put_int64(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
6397 basic_ostream_wchar_sentry_destroy(this);
6399 basic_ios_wchar_setstate(base
, state
);
6403 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@_J@Z */
6404 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@_J@Z */
6405 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_int64
, 12)
6406 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_int64(basic_ostream_wchar
*this, __int64 val
)
6408 return basic_ostream_print_int64(this, val
, num_put_short_use_facet(
6409 &basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
6412 static basic_ostream_wchar
* basic_ostream_print_uint64(basic_ostream_wchar
*this, unsigned __int64 val
, const num_put
*numput
)
6414 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6415 int state
= IOSTATE_goodbit
;
6417 TRACE("(%p)\n", this);
6419 if(basic_ostream_wchar_sentry_create(this)) {
6420 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
6421 ostreambuf_iterator_wchar dest
= {0, strbuf
};
6423 num_put_wchar_put_uint64(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
6425 basic_ostream_wchar_sentry_destroy(this);
6427 basic_ios_wchar_setstate(base
, state
);
6431 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@_K@Z */
6432 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@_K@Z */
6433 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_uint64
, 12)
6434 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_uint64(basic_ostream_wchar
*this, unsigned __int64 val
)
6436 return basic_ostream_print_uint64(this, val
, num_put_short_use_facet(
6437 &basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
6440 static basic_ostream_wchar
* basic_ostream_print_bool(basic_ostream_wchar
*this, MSVCP_bool val
, const num_put
*numput
)
6442 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(this);
6443 int state
= IOSTATE_goodbit
;
6445 TRACE("(%p %x)\n", this, val
);
6447 if(basic_ostream_wchar_sentry_create(this)) {
6448 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
6449 ostreambuf_iterator_wchar dest
= {0, strbuf
};
6451 num_put_wchar_put_bool(numput
, &dest
, dest
, &base
->base
, basic_ios_wchar_fill_get(base
), val
);
6453 basic_ostream_wchar_sentry_destroy(this);
6455 basic_ios_wchar_setstate(base
, state
);
6459 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@_N@Z */
6460 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@_N@Z */
6461 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_bool
, 8)
6462 basic_ostream_wchar
* __thiscall
basic_ostream_short_print_bool(basic_ostream_wchar
*this, MSVCP_bool val
)
6464 return basic_ostream_print_bool(this, val
, num_put_short_use_facet(
6465 &basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc
));
6468 /* ?ends@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AAV21@@Z */
6469 /* ?ends@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AEAV21@@Z */
6470 /* ?ends@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@1@AAV21@@Z */
6471 /* ?ends@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@1@AEAV21@@Z */
6472 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_ends(basic_ostream_wchar
*ostr
)
6474 TRACE("(%p)\n", ostr
);
6476 basic_ostream_wchar_put(ostr
, 0);
6480 /* ?endl@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AAV21@@Z */
6481 /* ?endl@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AEAV21@@Z */
6482 /* ?endl@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@1@AAV21@@Z */
6483 /* ?endl@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@1@AEAV21@@Z */
6484 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_endl(basic_ostream_wchar
*ostr
)
6486 TRACE("(%p)\n", ostr
);
6488 basic_ostream_wchar_put(ostr
, '\n');
6489 basic_ostream_wchar_flush(ostr
);
6493 /* ??$?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 */
6494 /* ??$?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 */
6495 /* ??$?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 */
6496 /* ??$?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 */
6497 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_print_bstr(basic_ostream_wchar
*ostr
, const basic_string_wchar
*str
)
6499 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
6500 IOSB_iostate state
= IOSTATE_goodbit
;
6502 TRACE("(%p %p)\n", ostr
, str
);
6504 if(basic_ostream_wchar_sentry_create(ostr
)) {
6505 MSVCP_size_t len
= basic_string_wchar_length(str
);
6506 streamsize pad
= (base
->base
.wide
>len
? base
->base
.wide
-len
: 0);
6508 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
6509 for(; pad
!=0; pad
--) {
6510 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
6511 state
= IOSTATE_badbit
;
6517 if(state
== IOSTATE_goodbit
) {
6518 if(basic_streambuf_wchar_sputn(base
->strbuf
, basic_string_wchar_c_str(str
), len
) != len
)
6519 state
= IOSTATE_badbit
;
6522 if(state
== IOSTATE_goodbit
) {
6523 for(; pad
!=0; pad
--) {
6524 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
6525 state
= IOSTATE_badbit
;
6531 base
->base
.wide
= 0;
6533 state
= IOSTATE_badbit
;
6535 basic_ostream_wchar_sentry_destroy(ostr
);
6537 basic_ios_wchar_setstate(base
, state
);
6541 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AAV10@_W@Z */
6542 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AEAV10@_W@Z */
6543 /* ??$?6GU?$char_traits@G@std@@@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@0@AAV10@G@Z */
6544 /* ??$?6GU?$char_traits@G@std@@@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@0@AEAV10@G@Z */
6545 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_print_ch(basic_ostream_wchar
*ostr
, wchar_t ch
)
6547 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
6548 IOSB_iostate state
= IOSTATE_goodbit
;
6550 TRACE("(%p %d)\n", ostr
, ch
);
6552 if(basic_ostream_wchar_sentry_create(ostr
)) {
6553 streamsize pad
= (base
->base
.wide
>1 ? base
->base
.wide
-1 : 0);
6555 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
6556 for(; pad
!=0; pad
--) {
6557 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
6558 state
= IOSTATE_badbit
;
6564 if(state
== IOSTATE_goodbit
) {
6565 if(basic_streambuf_wchar_sputc(base
->strbuf
, ch
) == WEOF
)
6566 state
= IOSTATE_badbit
;
6569 if(state
== IOSTATE_goodbit
) {
6570 for(; pad
!=0; pad
--) {
6571 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
6572 state
= IOSTATE_badbit
;
6578 base
->base
.wide
= 0;
6580 state
= IOSTATE_badbit
;
6582 basic_ostream_wchar_sentry_destroy(ostr
);
6584 basic_ios_wchar_setstate(base
, state
);
6588 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AAV10@PB_W@Z */
6589 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AEAV10@PEB_W@Z */
6590 /* ??$?6GU?$char_traits@G@std@@@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@0@AAV10@PBG@Z */
6591 /* ??$?6GU?$char_traits@G@std@@@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@0@AEAV10@PEBG@Z */
6592 basic_ostream_wchar
* __cdecl
basic_ostream_wchar_print_str(basic_ostream_wchar
*ostr
, const wchar_t *str
)
6594 basic_ios_wchar
*base
= basic_ostream_wchar_get_basic_ios(ostr
);
6595 IOSB_iostate state
= IOSTATE_goodbit
;
6597 TRACE("(%p %s)\n", ostr
, debugstr_w(str
));
6599 if(basic_ostream_wchar_sentry_create(ostr
)) {
6600 MSVCP_size_t len
= wcslen(str
);
6601 streamsize pad
= (base
->base
.wide
>len
? base
->base
.wide
-len
: 0);
6603 if((base
->base
.fmtfl
& FMTFLAG_adjustfield
) != FMTFLAG_left
) {
6604 for(; pad
!=0; pad
--) {
6605 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
6606 state
= IOSTATE_badbit
;
6612 if(state
== IOSTATE_goodbit
) {
6613 if(basic_streambuf_wchar_sputn(base
->strbuf
, str
, len
) != len
)
6614 state
= IOSTATE_badbit
;
6617 if(state
== IOSTATE_goodbit
) {
6618 for(; pad
!=0; pad
--) {
6619 if(basic_streambuf_wchar_sputc(base
->strbuf
, base
->fillch
) == WEOF
) {
6620 state
= IOSTATE_badbit
;
6626 base
->base
.wide
= 0;
6628 state
= IOSTATE_badbit
;
6630 basic_ostream_wchar_sentry_destroy(ostr
);
6632 basic_ios_wchar_setstate(base
, state
);
6636 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
6637 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
6638 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
6639 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
6640 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_func
, 8)
6641 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_func(basic_ostream_wchar
*this,
6642 basic_ostream_wchar
* (__cdecl
*pfunc
)(basic_ostream_wchar
*))
6644 TRACE("(%p %p)\n", this, pfunc
);
6649 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AAV21@@Z@Z */
6650 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AEAV21@@Z@Z */
6651 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@GU?$char_traits@G@std@@@1@AAV21@@Z@Z */
6652 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@GU?$char_traits@G@std@@@1@AEAV21@@Z@Z */
6653 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_func_basic_ios
, 8)
6654 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_func_basic_ios(basic_ostream_wchar
*this,
6655 basic_ios_wchar
* (__cdecl
*pfunc
)(basic_ios_wchar
*))
6657 TRACE("(%p %p)\n", this, pfunc
);
6658 pfunc(basic_ostream_wchar_get_basic_ios(this));
6662 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
6663 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
6664 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
6665 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
6666 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_func_ios_base
, 8)
6667 basic_ostream_wchar
* __thiscall
basic_ostream_wchar_print_func_ios_base(
6668 basic_ostream_wchar
*this, ios_base
* (__cdecl
*pfunc
)(ios_base
*))
6670 TRACE("(%p %p)\n", this, pfunc
);
6671 pfunc(&basic_ostream_wchar_get_basic_ios(this)->base
);
6675 /* Caution: basic_istream uses virtual inheritance. */
6676 static inline basic_ios_char
* basic_istream_char_get_basic_ios(basic_istream_char
*this)
6678 return (basic_ios_char
*)((char*)this+this->vbtable
[1]);
6681 static inline basic_ios_char
* basic_istream_char_to_basic_ios(basic_istream_char
*ptr
)
6683 return (basic_ios_char
*)((char*)ptr
+basic_istream_char_vbtable
[1]);
6686 static inline basic_istream_char
* basic_istream_char_from_basic_ios(basic_ios_char
*ptr
)
6688 return (basic_istream_char
*)((char*)ptr
-basic_istream_char_vbtable
[1]);
6691 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N1@Z */
6692 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N1@Z */
6693 static basic_istream_char
* basic_istream_char_ctor_init(basic_istream_char
*this, basic_streambuf_char
*strbuf
, MSVCP_bool isstd
, MSVCP_bool noinit
, MSVCP_bool virt_init
)
6695 basic_ios_char
*base
;
6697 TRACE("(%p %p %d %d %d)\n", this, strbuf
, isstd
, noinit
, virt_init
);
6700 this->vbtable
= basic_istream_char_vbtable
;
6701 base
= basic_istream_char_get_basic_ios(this);
6702 basic_ios_char_ctor(base
);
6704 base
= basic_istream_char_get_basic_ios(this);
6707 base
->base
.vtable
= &MSVCP_basic_istream_char_vtable
;
6710 basic_ios_char_init(base
, strbuf
, isstd
);
6714 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z */
6715 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z */
6716 DEFINE_THISCALL_WRAPPER(basic_istream_char_ctor
, 16)
6717 basic_istream_char
* __thiscall
basic_istream_char_ctor(basic_istream_char
*this, basic_streambuf_char
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
6719 return basic_istream_char_ctor_init(this, strbuf
, isstd
, FALSE
, virt_init
);
6722 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QAE@W4_Uninitialized@1@@Z */
6723 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
6724 DEFINE_THISCALL_WRAPPER(basic_istream_char_ctor_uninitialized
, 12)
6725 basic_istream_char
* __thiscall
basic_istream_char_ctor_uninitialized(basic_istream_char
*this, int uninitialized
, MSVCP_bool virt_init
)
6727 basic_ios_char
*base
;
6729 TRACE("(%p %d %d)\n", this, uninitialized
, virt_init
);
6732 this->vbtable
= basic_istream_char_vbtable
;
6733 base
= basic_istream_char_get_basic_ios(this);
6734 basic_ios_char_ctor(base
);
6736 base
= basic_istream_char_get_basic_ios(this);
6739 base
->base
.vtable
= &MSVCP_basic_istream_char_vtable
;
6740 ios_base_Addstd(&base
->base
);
6744 /* ??1?$basic_istream@DU?$char_traits@D@std@@@std@@UAE@XZ */
6745 /* ??1?$basic_istream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
6746 DEFINE_THISCALL_WRAPPER(basic_istream_char_dtor
, 4)
6747 void __thiscall
basic_istream_char_dtor(basic_ios_char
*base
)
6749 basic_istream_char
*this = basic_istream_char_from_basic_ios(base
);
6751 /* don't destroy virtual base here */
6752 TRACE("(%p)\n", this);
6755 /* ??_D?$basic_istream@DU?$char_traits@D@std@@@std@@QAEXXZ */
6756 /* ??_D?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
6757 DEFINE_THISCALL_WRAPPER(basic_istream_char_vbase_dtor
, 4)
6758 void __thiscall
basic_istream_char_vbase_dtor(basic_istream_char
*this)
6760 TRACE("(%p)\n", this);
6761 basic_istream_char_dtor(basic_istream_char_to_basic_ios(this));
6762 basic_ios_char_dtor(basic_istream_char_get_basic_ios(this));
6765 DEFINE_THISCALL_WRAPPER(basic_istream_char_vector_dtor
, 8)
6766 basic_istream_char
* __thiscall
basic_istream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
6768 basic_istream_char
*this = basic_istream_char_from_basic_ios(base
);
6770 TRACE("(%p %x)\n", this, flags
);
6773 /* we have an array, with the number of elements stored before the first object */
6774 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
6776 for(i
=*ptr
-1; i
>=0; i
--)
6777 basic_istream_char_vbase_dtor(this+i
);
6778 MSVCRT_operator_delete(ptr
);
6780 basic_istream_char_vbase_dtor(this);
6782 MSVCRT_operator_delete(this);
6788 /* ?_Ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QAE_N_N@Z */
6789 /* ?_Ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_N_N@Z */
6790 static MSVCP_bool
basic_istream_char__Ipfx(basic_istream_char
*this, MSVCP_bool noskip
)
6792 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
6794 TRACE("(%p %d)\n", this, noskip
);
6796 if(ios_base_good(&base
->base
)) {
6797 if(basic_ios_char_tie_get(base
))
6798 basic_ostream_char_flush(basic_ios_char_tie_get(base
));
6800 if(!noskip
&& (ios_base_flags_get(&base
->base
) & FMTFLAG_skipws
)) {
6801 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6802 const ctype_char
*ctype
= ctype_char_use_facet(&base
->strbuf
->loc
);
6805 for(ch
= basic_streambuf_char_sgetc(strbuf
); ;
6806 ch
= basic_streambuf_char_snextc(strbuf
)) {
6807 if(ch
==EOF
|| !ctype_char_is_ch(ctype
, _SPACE
|_BLANK
, ch
))
6813 if(!ios_base_good(&base
->base
)) {
6814 basic_ios_char_setstate(base
, IOSTATE_failbit
);
6821 /* ?ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QAE_N_N@Z */
6822 /* ?ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_N_N@Z */
6823 DEFINE_THISCALL_WRAPPER(basic_istream_char_ipfx
, 8)
6824 MSVCP_bool __thiscall
basic_istream_char_ipfx(basic_istream_char
*this, MSVCP_bool noskip
)
6826 return basic_istream_char__Ipfx(this, noskip
);
6829 /* ?isfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEXXZ */
6830 /* ?isfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
6831 DEFINE_THISCALL_WRAPPER(basic_istream_char_isfx
, 4)
6832 void __thiscall
basic_istream_char_isfx(basic_istream_char
*this)
6834 TRACE("(%p)\n", this);
6837 static BOOL
basic_istream_char_sentry_create(basic_istream_char
*istr
, MSVCP_bool noskip
)
6839 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istr
);
6841 if(basic_ios_char_rdbuf_get(base
))
6842 basic_streambuf_char__Lock(base
->strbuf
);
6844 return basic_istream_char_ipfx(istr
, noskip
);
6847 static void basic_istream_char_sentry_destroy(basic_istream_char
*istr
)
6849 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istr
);
6851 if(basic_ios_char_rdbuf_get(base
))
6852 basic_streambuf_char__Unlock(base
->strbuf
);
6855 /* ?gcount@?$basic_istream@DU?$char_traits@D@std@@@std@@QBEHXZ */
6856 /* ?gcount@?$basic_istream@DU?$char_traits@D@std@@@std@@QEBA_JXZ */
6857 DEFINE_THISCALL_WRAPPER(basic_istream_char_gcount
, 4)
6858 int __thiscall
basic_istream_char_gcount(const basic_istream_char
*this)
6860 TRACE("(%p)\n", this);
6864 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHXZ */
6865 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAHXZ */
6866 DEFINE_THISCALL_WRAPPER(basic_istream_char_get
, 4)
6867 int __thiscall
basic_istream_char_get(basic_istream_char
*this)
6869 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
6872 TRACE("(%p)\n", this);
6876 if(!basic_istream_char_sentry_create(this, TRUE
)) {
6877 basic_istream_char_sentry_destroy(this);
6881 ret
= basic_streambuf_char_sbumpc(basic_ios_char_rdbuf_get(base
));
6882 basic_istream_char_sentry_destroy(this);
6884 basic_ios_char_setstate(base
, IOSTATE_eofbit
|IOSTATE_failbit
);
6891 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@AAD@Z */
6892 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEAD@Z */
6893 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_ch
, 8)
6894 basic_istream_char
* __thiscall
basic_istream_char_get_ch(basic_istream_char
*this, char *ch
)
6898 TRACE("(%p %p)\n", this, ch
);
6900 ret
= basic_istream_char_get(this);
6906 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADHD@Z */
6907 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_JD@Z */
6908 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str_delim
, 16)
6909 basic_istream_char
* __thiscall
basic_istream_char_get_str_delim(basic_istream_char
*this, char *str
, streamsize count
, char delim
)
6911 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
6914 TRACE("(%p %p %ld %c)\n", this, str
, count
, delim
);
6918 if(basic_istream_char_sentry_create(this, TRUE
)) {
6919 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
6921 for(ch
= basic_streambuf_char_sgetc(strbuf
); count
>1;
6922 ch
= basic_streambuf_char_snextc(strbuf
)) {
6923 if(ch
==EOF
|| ch
==delim
)
6931 basic_istream_char_sentry_destroy(this);
6933 basic_ios_char_setstate(base
, (!this->count
? IOSTATE_failbit
: IOSTATE_goodbit
) |
6934 (ch
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
6940 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADH@Z */
6941 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z */
6942 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str
, 12)
6943 basic_istream_char
* __thiscall
basic_istream_char_get_str(basic_istream_char
*this, char *str
, streamsize count
)
6945 return basic_istream_char_get_str_delim(this, str
, count
, '\n');
6948 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@AAV?$basic_streambuf@DU?$char_traits@D@std@@@2@D@Z */
6949 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@D@Z */
6950 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_streambuf_delim
, 12)
6951 basic_istream_char
* __thiscall
basic_istream_char_get_streambuf_delim(basic_istream_char
*this, basic_streambuf_char
*strbuf
, char delim
)
6953 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
6956 TRACE("(%p %p %c)\n", this, strbuf
, delim
);
6960 if(basic_istream_char_sentry_create(this, TRUE
)) {
6961 basic_streambuf_char
*strbuf_read
= basic_ios_char_rdbuf_get(base
);
6963 for(ch
= basic_streambuf_char_sgetc(strbuf_read
); ;
6964 ch
= basic_streambuf_char_snextc(strbuf_read
)) {
6965 if(ch
==EOF
|| ch
==delim
)
6968 if(basic_streambuf_char_sputc(strbuf
, ch
) == EOF
)
6973 basic_istream_char_sentry_destroy(this);
6975 basic_ios_char_setstate(base
, (!this->count
? IOSTATE_failbit
: IOSTATE_goodbit
) |
6976 (ch
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
6980 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@AAV?$basic_streambuf@DU?$char_traits@D@std@@@2@@Z */
6981 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@@Z */
6982 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_streambuf
, 8)
6983 basic_istream_char
* __thiscall
basic_istream_char_get_streambuf(basic_istream_char
*this, basic_streambuf_char
*strbuf
)
6985 return basic_istream_char_get_streambuf_delim(this, strbuf
, '\n');
6988 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADHD@Z */
6989 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_JD@Z */
6990 DEFINE_THISCALL_WRAPPER(basic_istream_char_getline_delim
, 16)
6991 basic_istream_char
* __thiscall
basic_istream_char_getline_delim(basic_istream_char
*this, char *str
, streamsize count
, char delim
)
6993 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
6994 int ch
= (unsigned char)delim
;
6996 TRACE("(%p %p %ld %c)\n", this, str
, count
, delim
);
7000 if(basic_istream_char_sentry_create(this, TRUE
) && count
>0) {
7001 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7004 ch
= basic_streambuf_char_sbumpc(strbuf
);
7006 if(ch
==EOF
|| ch
==(unsigned char)delim
)
7014 if(ch
== (unsigned char)delim
)
7016 else if(ch
!= EOF
) {
7017 ch
= basic_streambuf_char_sgetc(strbuf
);
7019 if(ch
== (unsigned char)delim
) {
7020 basic_streambuf_char__Gninc(strbuf
);
7025 basic_istream_char_sentry_destroy(this);
7027 basic_ios_char_setstate(base
, (ch
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
) |
7028 (!this->count
|| (ch
!=(unsigned char)delim
&& ch
!=EOF
) ? IOSTATE_failbit
: IOSTATE_goodbit
));
7034 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADH@Z */
7035 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z */
7036 DEFINE_THISCALL_WRAPPER(basic_istream_char_getline
, 12)
7037 basic_istream_char
* __thiscall
basic_istream_char_getline(basic_istream_char
*this, char *str
, streamsize count
)
7039 return basic_istream_char_getline_delim(this, str
, count
, '\n');
7042 /* ?ignore@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@HH@Z */
7043 /* ?ignore@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JH@Z */
7044 DEFINE_THISCALL_WRAPPER(basic_istream_char_ignore
, 12)
7045 basic_istream_char
* __thiscall
basic_istream_char_ignore(basic_istream_char
*this, streamsize count
, int delim
)
7047 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7048 int ch
= (unsigned char)delim
;
7051 TRACE("(%p %ld %d)\n", this, count
, delim
);
7055 if(basic_istream_char_sentry_create(this, TRUE
)) {
7056 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7057 state
= IOSTATE_goodbit
;
7060 ch
= basic_streambuf_char_sbumpc(strbuf
);
7063 state
= IOSTATE_eofbit
;
7067 if(ch
==(unsigned char)delim
)
7071 if(count
!= INT_MAX
)
7075 state
= IOSTATE_failbit
;
7076 basic_istream_char_sentry_destroy(this);
7078 basic_ios_char_setstate(base
, state
);
7082 /* ?ws@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@1@AAV21@@Z */
7083 /* ?ws@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@1@AEAV21@@Z */
7084 basic_istream_char
* __cdecl
ws_basic_istream_char(basic_istream_char
*istream
)
7086 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istream
);
7089 TRACE("(%p)\n", istream
);
7091 if(basic_istream_char_sentry_create(istream
, TRUE
)) {
7092 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7093 const ctype_char
*ctype
= ctype_char_use_facet(&strbuf
->loc
);
7095 for(ch
= basic_streambuf_char_sgetc(strbuf
); ctype_char_is_ch(ctype
, _SPACE
, ch
);
7096 ch
= basic_streambuf_char_snextc(strbuf
)) {
7101 basic_istream_char_sentry_destroy(istream
);
7104 basic_ios_char_setstate(base
, IOSTATE_eofbit
);
7108 /* ?peek@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHXZ */
7109 /* ?peek@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAHXZ */
7110 DEFINE_THISCALL_WRAPPER(basic_istream_char_peek
, 4)
7111 int __thiscall
basic_istream_char_peek(basic_istream_char
*this)
7113 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7116 TRACE("(%p)\n", this);
7120 if(basic_istream_char_sentry_create(this, TRUE
))
7121 ret
= basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base
));
7122 basic_istream_char_sentry_destroy(this);
7125 basic_ios_char_setstate(base
, IOSTATE_eofbit
);
7130 /* ?_Read_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADIH@Z */
7131 /* ?_Read_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_K_J@Z */
7132 static basic_istream_char
* basic_istream_char__Read_s(basic_istream_char
*this, char *str
, MSVCP_size_t size
, streamsize count
)
7134 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7135 IOSB_iostate state
= IOSTATE_goodbit
;
7137 TRACE("(%p %p %lu %ld)\n", this, str
, size
, count
);
7139 if(basic_istream_char_sentry_create(this, TRUE
)) {
7140 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7142 this->count
= basic_streambuf_char__Sgetn_s(strbuf
, str
, size
, count
);
7143 if(this->count
!= count
)
7144 state
|= IOSTATE_failbit
| IOSTATE_eofbit
;
7148 basic_istream_char_sentry_destroy(this);
7150 basic_ios_char_setstate(base
, state
);
7154 /* ?read@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADH@Z */
7155 /* ?read@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z */
7156 DEFINE_THISCALL_WRAPPER(basic_istream_char_read
, 12)
7157 basic_istream_char
* __thiscall
basic_istream_char_read(basic_istream_char
*this, char *str
, streamsize count
)
7159 return basic_istream_char__Read_s(this, str
, count
, count
);
7162 /* ?_Readsome_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHPADIH@Z */
7163 /* ?_Readsome_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_K_J@Z */
7164 static streamsize
basic_istream_char__Readsome_s(basic_istream_char
*this, char *str
, MSVCP_size_t size
, streamsize count
)
7166 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7167 IOSB_iostate state
= IOSTATE_goodbit
;
7169 TRACE("(%p %p %lu %ld)\n", this, str
, size
, count
);
7173 if(basic_istream_char_sentry_create(this, TRUE
)) {
7174 streamsize avail
= basic_streambuf_char_in_avail(basic_ios_char_rdbuf_get(base
));
7179 state
|= IOSTATE_eofbit
;
7181 basic_istream_char__Read_s(this, str
, size
, avail
);
7183 state
|= IOSTATE_failbit
;
7185 basic_istream_char_sentry_destroy(this);
7187 basic_ios_char_setstate(base
, state
);
7191 /* ?readsome@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHPADH@Z */
7192 /* ?readsome@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_J@Z */
7193 DEFINE_THISCALL_WRAPPER(basic_istream_char_readsome
, 12)
7194 streamsize __thiscall
basic_istream_char_readsome(basic_istream_char
*this, char *str
, streamsize count
)
7196 return basic_istream_char__Readsome_s(this, str
, count
, count
);
7199 /* ?putback@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@D@Z */
7200 /* ?putback@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@D@Z */
7201 DEFINE_THISCALL_WRAPPER(basic_istream_char_putback
, 8)
7202 basic_istream_char
* __thiscall
basic_istream_char_putback(basic_istream_char
*this, char ch
)
7204 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7205 IOSB_iostate state
= IOSTATE_goodbit
;
7207 TRACE("(%p %c)\n", this, ch
);
7211 if(basic_istream_char_sentry_create(this, TRUE
)) {
7212 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7214 if(!ios_base_good(&base
->base
))
7215 state
|= IOSTATE_failbit
;
7216 else if(!strbuf
|| basic_streambuf_char_sputbackc(strbuf
, ch
)==EOF
)
7217 state
|= IOSTATE_badbit
;
7219 basic_istream_char_sentry_destroy(this);
7221 basic_ios_char_setstate(base
, state
);
7225 /* ?unget@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ */
7226 /* ?unget@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@XZ */
7227 DEFINE_THISCALL_WRAPPER(basic_istream_char_unget
, 4)
7228 basic_istream_char
* __thiscall
basic_istream_char_unget(basic_istream_char
*this)
7230 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7231 IOSB_iostate state
= IOSTATE_goodbit
;
7233 TRACE("(%p)\n", this);
7237 if(basic_istream_char_sentry_create(this, TRUE
)) {
7238 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7240 if(!ios_base_good(&base
->base
))
7241 state
|= IOSTATE_failbit
;
7242 else if(!strbuf
|| basic_streambuf_char_sungetc(strbuf
)==EOF
)
7243 state
|= IOSTATE_badbit
;
7245 basic_istream_char_sentry_destroy(this);
7247 basic_ios_char_setstate(base
, state
);
7251 /* ?sync@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHXZ */
7252 /* ?sync@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAHXZ */
7253 DEFINE_THISCALL_WRAPPER(basic_istream_char_sync
, 4)
7254 int __thiscall
basic_istream_char_sync(basic_istream_char
*this)
7256 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7257 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7259 TRACE("(%p)\n", this);
7264 if(basic_istream_char_sentry_create(this, TRUE
)) {
7265 if(basic_streambuf_char_pubsync(strbuf
) != -1) {
7266 basic_istream_char_sentry_destroy(this);
7270 basic_istream_char_sentry_destroy(this);
7272 basic_ios_char_setstate(base
, IOSTATE_badbit
);
7276 /* ?tellg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@XZ */
7277 /* ?tellg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
7278 DEFINE_THISCALL_WRAPPER(basic_istream_char_tellg
, 8)
7279 fpos_int
* __thiscall
basic_istream_char_tellg(basic_istream_char
*this, fpos_int
*ret
)
7281 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7283 TRACE("(%p %p)\n", this, ret
);
7285 if(ios_base_fail(&base
->base
)) {
7292 basic_streambuf_char_pubseekoff(basic_ios_char_rdbuf_get(base
),
7293 ret
, 0, SEEKDIR_cur
, OPENMODE_in
);
7295 if(ret
->off
==-1 && ret
->pos
==0 && ret
->state
==0)
7296 basic_ios_char_setstate(base
, IOSTATE_failbit
);
7301 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@JW4seekdir@ios_base@2@@Z */
7302 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JW4seekdir@ios_base@2@@Z */
7303 DEFINE_THISCALL_WRAPPER(basic_istream_char_seekg
, 12)
7304 basic_istream_char
* __thiscall
basic_istream_char_seekg(basic_istream_char
*this, streamoff off
, int dir
)
7306 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7308 TRACE("(%p %ld %d)\n", this, off
, dir
);
7310 if(!ios_base_fail(&base
->base
)) {
7311 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7314 basic_streambuf_char_pubseekoff(strbuf
, &ret
, off
, dir
, OPENMODE_in
);
7320 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
7321 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
7322 DEFINE_THISCALL_WRAPPER(basic_istream_char_seekg_fpos
, 28)
7323 basic_istream_char
* __thiscall
basic_istream_char_seekg_fpos(basic_istream_char
*this, fpos_int pos
)
7325 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7327 TRACE("(%p %s)\n", this, debugstr_fpos_int(&pos
));
7329 if(!ios_base_fail(&base
->base
)) {
7330 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7333 basic_streambuf_char_pubseekpos(strbuf
, &ret
, pos
, OPENMODE_in
);
7339 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAF@Z */
7340 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAF@Z */
7341 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_short
, 8)
7342 basic_istream_char
* __thiscall
basic_istream_char_read_short(basic_istream_char
*this, short *v
)
7344 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7345 int state
= IOSTATE_goodbit
;
7347 TRACE("(%p %p)\n", this, v
);
7349 if(basic_istream_char_sentry_create(this, FALSE
)) {
7350 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7351 const num_get
*numget
= num_get_char_use_facet(&strbuf
->loc
);
7352 istreambuf_iterator_char first
={0}, last
={0};
7355 first
.strbuf
= strbuf
;
7356 num_get_char_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, &tmp
);
7358 if(!(state
&IOSTATE_failbit
) && tmp
==(LONG
)((short)tmp
))
7361 state
|= IOSTATE_failbit
;
7363 basic_istream_char_sentry_destroy(this);
7365 basic_ios_char_setstate(base
, state
);
7369 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAG@Z */
7370 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAG@Z */
7371 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ushort
, 8)
7372 basic_istream_char
* __thiscall
basic_istream_char_read_ushort(basic_istream_char
*this, unsigned short *v
)
7374 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7375 int state
= IOSTATE_goodbit
;
7377 TRACE("(%p %p)\n", this, v
);
7379 if(basic_istream_char_sentry_create(this, FALSE
)) {
7380 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7381 const num_get
*numget
= num_get_char_use_facet(&strbuf
->loc
);
7382 istreambuf_iterator_char first
={0}, last
={0};
7384 first
.strbuf
= strbuf
;
7385 num_get_char_get_ushort(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
7387 basic_istream_char_sentry_destroy(this);
7389 basic_ios_char_setstate(base
, state
);
7393 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAH@Z */
7394 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAH@Z */
7395 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_int
, 8)
7396 basic_istream_char
* __thiscall
basic_istream_char_read_int(basic_istream_char
*this, int *v
)
7398 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7399 int state
= IOSTATE_goodbit
;
7401 TRACE("(%p %p)\n", this, v
);
7403 if(basic_istream_char_sentry_create(this, FALSE
)) {
7404 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7405 const num_get
*numget
= num_get_char_use_facet(&strbuf
->loc
);
7406 istreambuf_iterator_char first
={0}, last
={0};
7408 first
.strbuf
= strbuf
;
7409 num_get_char_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
7411 basic_istream_char_sentry_destroy(this);
7413 basic_ios_char_setstate(base
, state
);
7417 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAI@Z */
7418 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAI@Z */
7419 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_uint
, 8)
7420 basic_istream_char
* __thiscall
basic_istream_char_read_uint(basic_istream_char
*this, unsigned int *v
)
7422 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7423 int state
= IOSTATE_goodbit
;
7425 TRACE("(%p %p)\n", this, v
);
7427 if(basic_istream_char_sentry_create(this, FALSE
)) {
7428 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7429 const num_get
*numget
= num_get_char_use_facet(&strbuf
->loc
);
7430 istreambuf_iterator_char first
={0}, last
={0};
7432 first
.strbuf
= strbuf
;
7433 num_get_char_get_uint(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
7435 basic_istream_char_sentry_destroy(this);
7437 basic_ios_char_setstate(base
, state
);
7441 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAJ@Z */
7442 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAJ@Z */
7443 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_long
, 8)
7444 basic_istream_char
* __thiscall
basic_istream_char_read_long(basic_istream_char
*this, LONG
*v
)
7446 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7447 int state
= IOSTATE_goodbit
;
7449 TRACE("(%p %p)\n", this, v
);
7451 if(basic_istream_char_sentry_create(this, FALSE
)) {
7452 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7453 const num_get
*numget
= num_get_char_use_facet(&strbuf
->loc
);
7454 istreambuf_iterator_char first
={0}, last
={0};
7456 first
.strbuf
= strbuf
;
7457 num_get_char_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
7459 basic_istream_char_sentry_destroy(this);
7461 basic_ios_char_setstate(base
, state
);
7465 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAK@Z */
7466 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAK@Z */
7467 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ulong
, 8)
7468 basic_istream_char
* __thiscall
basic_istream_char_read_ulong(basic_istream_char
*this, ULONG
*v
)
7470 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7471 int state
= IOSTATE_goodbit
;
7473 TRACE("(%p %p)\n", this, v
);
7475 if(basic_istream_char_sentry_create(this, FALSE
)) {
7476 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7477 const num_get
*numget
= num_get_char_use_facet(&strbuf
->loc
);
7478 istreambuf_iterator_char first
={0}, last
={0};
7480 first
.strbuf
= strbuf
;
7481 num_get_char_get_ulong(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
7483 basic_istream_char_sentry_destroy(this);
7485 basic_ios_char_setstate(base
, state
);
7489 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAM@Z */
7490 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAM@Z */
7491 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_float
, 8)
7492 basic_istream_char
* __thiscall
basic_istream_char_read_float(basic_istream_char
*this, float *v
)
7494 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7495 int state
= IOSTATE_goodbit
;
7497 TRACE("(%p %p)\n", this, v
);
7499 if(basic_istream_char_sentry_create(this, FALSE
)) {
7500 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7501 const num_get
*numget
= num_get_char_use_facet(&strbuf
->loc
);
7502 istreambuf_iterator_char first
={0}, last
={0};
7504 first
.strbuf
= strbuf
;
7505 num_get_char_get_float(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
7507 basic_istream_char_sentry_destroy(this);
7509 basic_ios_char_setstate(base
, state
);
7513 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAN@Z */
7514 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAN@Z */
7515 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_double
, 8)
7516 basic_istream_char
* __thiscall
basic_istream_char_read_double(basic_istream_char
*this, double *v
)
7518 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7519 int state
= IOSTATE_goodbit
;
7521 TRACE("(%p %p)\n", this, v
);
7523 if(basic_istream_char_sentry_create(this, FALSE
)) {
7524 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7525 const num_get
*numget
= num_get_char_use_facet(&strbuf
->loc
);
7526 istreambuf_iterator_char first
={0}, last
={0};
7528 first
.strbuf
= strbuf
;
7529 num_get_char_get_double(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
7531 basic_istream_char_sentry_destroy(this);
7533 basic_ios_char_setstate(base
, state
);
7537 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAO@Z */
7538 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAO@Z */
7539 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ldouble
, 8)
7540 basic_istream_char
* __thiscall
basic_istream_char_read_ldouble(basic_istream_char
*this, double *v
)
7542 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7543 int state
= IOSTATE_goodbit
;
7545 TRACE("(%p %p)\n", this, v
);
7547 if(basic_istream_char_sentry_create(this, FALSE
)) {
7548 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7549 const num_get
*numget
= num_get_char_use_facet(&strbuf
->loc
);
7550 istreambuf_iterator_char first
={0}, last
={0};
7552 first
.strbuf
= strbuf
;
7553 num_get_char_get_ldouble(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
7555 basic_istream_char_sentry_destroy(this);
7557 basic_ios_char_setstate(base
, state
);
7561 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAPAX@Z */
7562 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAPEAX@Z */
7563 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ptr
, 8)
7564 basic_istream_char
* __thiscall
basic_istream_char_read_ptr(basic_istream_char
*this, void **v
)
7566 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7567 int state
= IOSTATE_goodbit
;
7569 TRACE("(%p %p)\n", this, v
);
7571 if(basic_istream_char_sentry_create(this, FALSE
)) {
7572 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7573 const num_get
*numget
= num_get_char_use_facet(&strbuf
->loc
);
7574 istreambuf_iterator_char first
={0}, last
={0};
7576 first
.strbuf
= strbuf
;
7577 num_get_char_get_void(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
7579 basic_istream_char_sentry_destroy(this);
7581 basic_ios_char_setstate(base
, state
);
7585 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AA_J@Z */
7586 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEA_J@Z */
7587 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_int64
, 8)
7588 basic_istream_char
* __thiscall
basic_istream_char_read_int64(basic_istream_char
*this, __int64
*v
)
7590 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7591 int state
= IOSTATE_goodbit
;
7593 TRACE("(%p %p)\n", this, v
);
7595 if(basic_istream_char_sentry_create(this, FALSE
)) {
7596 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7597 const num_get
*numget
= num_get_char_use_facet(&strbuf
->loc
);
7598 istreambuf_iterator_char first
={0}, last
={0};
7600 first
.strbuf
= strbuf
;
7601 num_get_char_get_int64(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
7603 basic_istream_char_sentry_destroy(this);
7605 basic_ios_char_setstate(base
, state
);
7609 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AA_K@Z */
7610 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEA_K@Z */
7611 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_uint64
, 8)
7612 basic_istream_char
* __thiscall
basic_istream_char_read_uint64(basic_istream_char
*this, unsigned __int64
*v
)
7614 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7615 int state
= IOSTATE_goodbit
;
7617 TRACE("(%p %p)\n", this, v
);
7619 if(basic_istream_char_sentry_create(this, FALSE
)) {
7620 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7621 const num_get
*numget
= num_get_char_use_facet(&strbuf
->loc
);
7622 istreambuf_iterator_char first
={0}, last
={0};
7624 first
.strbuf
= strbuf
;
7625 num_get_char_get_uint64(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
7627 basic_istream_char_sentry_destroy(this);
7629 basic_ios_char_setstate(base
, state
);
7633 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AA_N@Z */
7634 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEA_N@Z */
7635 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_bool
, 8)
7636 basic_istream_char
* __thiscall
basic_istream_char_read_bool(basic_istream_char
*this, MSVCP_bool
*v
)
7638 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7639 int state
= IOSTATE_goodbit
;
7641 TRACE("(%p %p)\n", this, v
);
7643 if(basic_istream_char_sentry_create(this, FALSE
)) {
7644 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7645 const num_get
*numget
= num_get_char_use_facet(&strbuf
->loc
);
7646 istreambuf_iterator_char first
={0}, last
={0};
7648 first
.strbuf
= strbuf
;
7649 num_get_char_get_bool(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
7651 basic_istream_char_sentry_destroy(this);
7653 basic_ios_char_setstate(base
, state
);
7657 /* ??$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 */
7658 /* ??$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 */
7659 basic_istream_char
* __cdecl
basic_istream_char_getline_bstr_delim(
7660 basic_istream_char
*istream
, basic_string_char
*str
, char delim
)
7662 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istream
);
7663 IOSB_iostate state
= IOSTATE_goodbit
;
7664 int c
= (unsigned char)delim
;
7666 TRACE("(%p %p %c)\n", istream
, str
, delim
);
7668 basic_string_char_clear(str
);
7669 if(basic_istream_char_sentry_create(istream
, TRUE
)) {
7670 basic_streambuf_char
*strbuf
= basic_ios_char_rdbuf_get(base
);
7672 c
= basic_streambuf_char_sgetc(strbuf
);
7673 for(; c
!=(unsigned char)delim
&& c
!=EOF
; c
= basic_streambuf_char_snextc(strbuf
))
7674 basic_string_char_append_ch(str
, c
);
7675 if(c
==EOF
) state
|= IOSTATE_eofbit
;
7676 else if(c
==(unsigned char)delim
) basic_streambuf_char_sbumpc(strbuf
);
7678 if(!basic_string_char_length(str
) && c
!=(unsigned char)delim
) state
|= IOSTATE_failbit
;
7680 basic_istream_char_sentry_destroy(istream
);
7682 basic_ios_char_setstate(basic_istream_char_get_basic_ios(istream
), state
);
7686 /* ??$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 */
7687 /* ??$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 */
7688 basic_istream_char
* __cdecl
basic_istream_char_getline_bstr(
7689 basic_istream_char
*istream
, basic_string_char
*str
)
7691 return basic_istream_char_getline_bstr_delim(istream
, str
, '\n');
7694 /* ??$?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 */
7695 /* ??$?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 */
7696 basic_istream_char
* __cdecl
basic_istream_char_read_bstr(
7697 basic_istream_char
*istream
, basic_string_char
*str
)
7699 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istream
);
7700 IOSB_iostate state
= IOSTATE_failbit
;
7703 TRACE("(%p %p)\n", istream
, str
);
7705 if(basic_istream_char_sentry_create(istream
, FALSE
)) {
7706 const ctype_char
*ctype
= ctype_char_use_facet(&base
->strbuf
->loc
);
7707 MSVCP_size_t count
= ios_base_width_get(&base
->base
);
7712 basic_string_char_clear(str
);
7714 for(c
= basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base
));
7715 c
!=EOF
&& !ctype_char_is_ch(ctype
, _SPACE
|_BLANK
, c
) && count
>0;
7716 c
= basic_streambuf_char_snextc(basic_ios_char_rdbuf_get(base
)), count
--) {
7717 state
= IOSTATE_goodbit
;
7718 basic_string_char_append_ch(str
, c
);
7721 basic_istream_char_sentry_destroy(istream
);
7723 ios_base_width_set(&base
->base
, 0);
7724 basic_ios_char_setstate(base
, state
| (c
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
7728 /* ??$?5DU?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@PAD@Z */
7729 /* ??$?5DU?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@PEAD@Z */
7730 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@PAC@Z */
7731 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@PEAC@Z */
7732 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@PAE@Z */
7733 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@PEAE@Z */
7734 basic_istream_char
* __cdecl
basic_istream_char_read_str(basic_istream_char
*istream
, char *str
)
7736 basic_ios_char
*base
= basic_istream_char_get_basic_ios(istream
);
7737 IOSB_iostate state
= IOSTATE_failbit
;
7740 TRACE("(%p %p)\n", istream
, str
);
7742 if(basic_istream_char_sentry_create(istream
, FALSE
)) {
7743 const ctype_char
*ctype
= ctype_char_use_facet(&base
->strbuf
->loc
);
7744 MSVCP_size_t count
= ios_base_width_get(&base
->base
)-1;
7746 for(c
= basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base
));
7747 c
!=EOF
&& !ctype_char_is_ch(ctype
, _SPACE
|_BLANK
, c
) && count
>0;
7748 c
= basic_streambuf_char_snextc(basic_ios_char_rdbuf_get(base
)), count
--) {
7749 state
= IOSTATE_goodbit
;
7753 basic_istream_char_sentry_destroy(istream
);
7756 ios_base_width_set(&base
->base
, 0);
7757 basic_ios_char_setstate(base
, state
| (c
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
7761 /* ??$?5DU?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAD@Z */
7762 /* ??$?5DU?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAD@Z */
7763 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAC@Z */
7764 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAC@Z */
7765 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAE@Z */
7766 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAE@Z */
7767 basic_istream_char
* __cdecl
basic_istream_char_read_ch(basic_istream_char
*istream
, char *ch
)
7769 IOSB_iostate state
= IOSTATE_failbit
;
7772 TRACE("(%p %p)\n", istream
, ch
);
7774 if(basic_istream_char_sentry_create(istream
, FALSE
)) {
7775 c
= basic_streambuf_char_sbumpc(basic_ios_char_rdbuf_get(
7776 basic_istream_char_get_basic_ios(istream
)));
7778 state
= IOSTATE_goodbit
;
7782 basic_istream_char_sentry_destroy(istream
);
7784 basic_ios_char_setstate(basic_istream_char_get_basic_ios(istream
),
7785 state
| (c
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
7789 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
7790 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
7791 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_streambuf
, 8)
7792 basic_istream_char
* __thiscall
basic_istream_char_read_streambuf(
7793 basic_istream_char
*this, basic_streambuf_char
*streambuf
)
7795 basic_ios_char
*base
= basic_istream_char_get_basic_ios(this);
7796 IOSB_iostate state
= IOSTATE_failbit
;
7799 TRACE("(%p %p)\n", this, streambuf
);
7801 if(basic_istream_char_sentry_create(this, FALSE
)) {
7802 for(c
= basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base
)); c
!=EOF
;
7803 c
= basic_streambuf_char_snextc(basic_ios_char_rdbuf_get(base
))) {
7804 state
= IOSTATE_goodbit
;
7805 if(basic_streambuf_char_sputc(streambuf
, c
) == EOF
)
7809 basic_istream_char_sentry_destroy(this);
7811 basic_ios_char_setstate(base
, state
| (c
==EOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
7815 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
7816 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
7817 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_func
, 8)
7818 basic_istream_char
* __thiscall
basic_istream_char_read_func(basic_istream_char
*this,
7819 basic_istream_char
* (__cdecl
*pfunc
)(basic_istream_char
*))
7821 TRACE("(%p %p)\n", this, pfunc
);
7826 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@DU?$char_traits@D@std@@@1@AAV21@@Z@Z */
7827 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@DU?$char_traits@D@std@@@1@AEAV21@@Z@Z */
7828 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_func_basic_ios
, 8)
7829 basic_istream_char
* __thiscall
basic_istream_char_read_func_basic_ios(basic_istream_char
*this,
7830 basic_ios_char
* (__cdecl
*pfunc
)(basic_ios_char
*))
7832 TRACE("(%p %p)\n", this, pfunc
);
7833 pfunc(basic_istream_char_get_basic_ios(this));
7837 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
7838 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
7839 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_func_ios_base
, 8)
7840 basic_istream_char
* __thiscall
basic_istream_char_read_func_ios_base(basic_istream_char
*this,
7841 ios_base
* (__cdecl
*pfunc
)(ios_base
*))
7843 TRACE("(%p %p)\n", this, pfunc
);
7844 pfunc(&basic_istream_char_get_basic_ios(this)->base
);
7848 /* Caution: basic_istream uses virtual inheritance. */
7849 static inline basic_ios_wchar
* basic_istream_wchar_get_basic_ios(basic_istream_wchar
*this)
7851 return (basic_ios_wchar
*)((char*)this+this->vbtable
[1]);
7854 static inline basic_ios_wchar
* basic_istream_wchar_to_basic_ios(basic_istream_wchar
*ptr
)
7856 return (basic_ios_wchar
*)((char*)ptr
+basic_istream_wchar_vbtable
[1]);
7859 static inline basic_istream_wchar
* basic_istream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
7861 return (basic_istream_wchar
*)((char*)ptr
-basic_istream_wchar_vbtable
[1]);
7864 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N1@Z */
7865 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N1@Z */
7866 static basic_istream_wchar
* basic_istream_wchar_ctor_init(basic_istream_wchar
*this,
7867 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool noinit
, MSVCP_bool virt_init
)
7869 basic_ios_wchar
*base
;
7871 TRACE("(%p %p %d %d %d)\n", this, strbuf
, isstd
, noinit
, virt_init
);
7874 this->vbtable
= basic_istream_wchar_vbtable
;
7875 base
= basic_istream_wchar_get_basic_ios(this);
7876 basic_ios_wchar_ctor(base
);
7878 base
= basic_istream_wchar_get_basic_ios(this);
7881 base
->base
.vtable
= &MSVCP_basic_istream_wchar_vtable
;
7884 basic_ios_wchar_init(base
, strbuf
, isstd
);
7888 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N1@Z */
7889 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N1@Z */
7890 static basic_istream_wchar
* basic_istream_short_ctor_init(basic_istream_wchar
*this,
7891 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool noinit
, MSVCP_bool virt_init
)
7893 basic_istream_wchar_ctor_init(this, strbuf
, isstd
, noinit
, virt_init
);
7894 basic_istream_wchar_get_basic_ios(this)->base
.vtable
= &MSVCP_basic_istream_short_vtable
;
7898 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N@Z */
7899 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N@Z */
7900 static basic_istream_wchar
* basic_istream_wchar_ctor(basic_istream_wchar
*this,
7901 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
7903 return basic_istream_wchar_ctor_init(this, strbuf
, isstd
, FALSE
, virt_init
);
7906 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N@Z */
7907 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N@Z */
7908 DEFINE_THISCALL_WRAPPER(basic_istream_short_ctor
, 16)
7909 basic_istream_wchar
* __thiscall
basic_istream_short_ctor(basic_istream_wchar
*this,
7910 basic_streambuf_wchar
*strbuf
, MSVCP_bool isstd
, MSVCP_bool virt_init
)
7912 return basic_istream_short_ctor_init(this, strbuf
, isstd
, FALSE
, virt_init
);
7915 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE@W4_Uninitialized@1@@Z */
7916 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
7917 static basic_istream_wchar
* basic_istream_wchar_ctor_uninitialized(
7918 basic_istream_wchar
*this, int uninitialized
, MSVCP_bool virt_init
)
7920 basic_ios_wchar
*base
;
7922 TRACE("(%p %d %d)\n", this, uninitialized
, virt_init
);
7925 this->vbtable
= basic_istream_wchar_vbtable
;
7926 base
= basic_istream_wchar_get_basic_ios(this);
7927 basic_ios_wchar_ctor(base
);
7929 base
= basic_istream_wchar_get_basic_ios(this);
7932 base
->base
.vtable
= &MSVCP_basic_istream_wchar_vtable
;
7933 ios_base_Addstd(&base
->base
);
7937 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QAE@W4_Uninitialized@1@@Z */
7938 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
7939 DEFINE_THISCALL_WRAPPER(basic_istream_short_ctor_uninitialized
, 12)
7940 basic_istream_wchar
* __thiscall
basic_istream_short_ctor_uninitialized(
7941 basic_istream_wchar
*this, int uninitialized
, MSVCP_bool virt_init
)
7943 basic_istream_wchar_ctor_uninitialized(this, uninitialized
, virt_init
);
7944 basic_istream_wchar_get_basic_ios(this)->base
.vtable
= &MSVCP_basic_istream_short_vtable
;
7948 /* ??1?$basic_istream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
7949 /* ??1?$basic_istream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
7950 /* ??1?$basic_istream@GU?$char_traits@G@std@@@std@@UAE@XZ */
7951 /* ??1?$basic_istream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
7952 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_dtor
, 4)
7953 void __thiscall
basic_istream_wchar_dtor(basic_ios_wchar
*base
)
7955 basic_istream_wchar
*this = basic_istream_wchar_from_basic_ios(base
);
7957 /* don't destroy virtual base here */
7958 TRACE("(%p)\n", this);
7961 /* ??_D?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
7962 /* ??_D?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
7963 /* ??_D?$basic_istream@GU?$char_traits@G@std@@@std@@QAEXXZ */
7964 /* ??_D?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
7965 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_vbase_dtor
, 4)
7966 void __thiscall
basic_istream_wchar_vbase_dtor(basic_istream_wchar
*this)
7968 TRACE("(%p)\n", this);
7969 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(this));
7970 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(this));
7973 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_vector_dtor
, 8)
7974 basic_istream_wchar
* __thiscall
basic_istream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
7976 basic_istream_wchar
*this = basic_istream_wchar_from_basic_ios(base
);
7978 TRACE("(%p %x)\n", this, flags
);
7981 /* we have an array, with the number of elements stored before the first object */
7982 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
7984 for(i
=*ptr
-1; i
>=0; i
--)
7985 basic_istream_wchar_vbase_dtor(this+i
);
7986 MSVCRT_operator_delete(ptr
);
7988 basic_istream_wchar_vbase_dtor(this);
7990 MSVCRT_operator_delete(this);
7996 /* ?_Ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE_N_N@Z */
7997 /* ?_Ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_N_N@Z */
7998 /* ?_Ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QAE_N_N@Z */
7999 /* ?_Ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_N_N@Z */
8000 static MSVCP_bool
basic_istream_wchar__Ipfx(basic_istream_wchar
*this, MSVCP_bool noskip
)
8002 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
8004 TRACE("(%p %d)\n", this, noskip
);
8006 if(ios_base_good(&base
->base
)) {
8007 if(basic_ios_wchar_tie_get(base
))
8008 basic_ostream_wchar_flush(basic_ios_wchar_tie_get(base
));
8010 if(!noskip
&& (ios_base_flags_get(&base
->base
) & FMTFLAG_skipws
)) {
8011 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
8012 const ctype_wchar
*ctype
= ctype_wchar_use_facet(&base
->strbuf
->loc
);
8015 for(ch
= basic_streambuf_wchar_sgetc(strbuf
); ;
8016 ch
= basic_streambuf_wchar_snextc(strbuf
)) {
8017 if(ch
==WEOF
|| !ctype_wchar_is_ch(ctype
, _SPACE
|_BLANK
, ch
))
8023 if(!ios_base_good(&base
->base
)) {
8024 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
8030 /* ?ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE_N_N@Z */
8031 /* ?ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_N_N@Z */
8032 /* ?ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QAE_N_N@Z */
8033 /* ?ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_N_N@Z */
8034 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ipfx
, 8)
8035 MSVCP_bool __thiscall
basic_istream_wchar_ipfx(basic_istream_wchar
*this, MSVCP_bool noskip
)
8037 return basic_istream_wchar__Ipfx(this, noskip
);
8040 /* ?isfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
8041 /* ?isfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
8042 /* ?isfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEXXZ */
8043 /* ?isfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
8044 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_isfx
, 4)
8045 void __thiscall
basic_istream_wchar_isfx(basic_istream_wchar
*this)
8047 TRACE("(%p)\n", this);
8050 static BOOL
basic_istream_wchar_sentry_create(basic_istream_wchar
*istr
, MSVCP_bool noskip
)
8052 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istr
);
8054 if(basic_ios_wchar_rdbuf_get(base
))
8055 basic_streambuf_wchar__Lock(base
->strbuf
);
8057 return basic_istream_wchar_ipfx(istr
, noskip
);
8060 static void basic_istream_wchar_sentry_destroy(basic_istream_wchar
*istr
)
8062 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istr
);
8064 if(basic_ios_wchar_rdbuf_get(base
))
8065 basic_streambuf_wchar__Unlock(base
->strbuf
);
8068 /* ?gcount@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QBEHXZ */
8069 /* ?gcount@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEBA_JXZ */
8070 /* ?gcount@?$basic_istream@GU?$char_traits@G@std@@@std@@QBEHXZ */
8071 /* ?gcount@?$basic_istream@GU?$char_traits@G@std@@@std@@QEBA_JXZ */
8072 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_gcount
, 4)
8073 int __thiscall
basic_istream_wchar_gcount(const basic_istream_wchar
*this)
8075 TRACE("(%p)\n", this);
8079 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
8080 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
8081 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEGXZ */
8082 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAGXZ */
8083 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get
, 4)
8084 unsigned short __thiscall
basic_istream_wchar_get(basic_istream_wchar
*this)
8086 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
8089 TRACE("(%p)\n", this);
8093 if(!basic_istream_wchar_sentry_create(this, TRUE
)) {
8094 basic_istream_wchar_sentry_destroy(this);
8098 ret
= basic_streambuf_wchar_sbumpc(basic_ios_wchar_rdbuf_get(base
));
8099 basic_istream_wchar_sentry_destroy(this);
8101 basic_ios_wchar_setstate(base
, IOSTATE_eofbit
|IOSTATE_failbit
);
8108 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@AA_W@Z */
8109 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEA_W@Z */
8110 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@AAG@Z */
8111 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEAG@Z */
8112 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_ch
, 8)
8113 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_ch(basic_istream_wchar
*this, wchar_t *ch
)
8117 TRACE("(%p %p)\n", this, ch
);
8119 ret
= basic_istream_wchar_get(this);
8125 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH_W@Z */
8126 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J_W@Z */
8127 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGHG@Z */
8128 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_JG@Z */
8129 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str_delim
, 16)
8130 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_str_delim(basic_istream_wchar
*this, wchar_t *str
, streamsize count
, wchar_t delim
)
8132 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
8133 unsigned short ch
= delim
;
8135 TRACE("(%p %p %ld %c)\n", this, str
, count
, delim
);
8139 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
8140 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
8142 for(ch
= basic_streambuf_wchar_sgetc(strbuf
); count
>1;
8143 ch
= basic_streambuf_wchar_snextc(strbuf
)) {
8144 if(ch
==WEOF
|| ch
==delim
)
8152 basic_istream_wchar_sentry_destroy(this);
8154 basic_ios_wchar_setstate(base
, (!this->count
? IOSTATE_failbit
: IOSTATE_goodbit
) |
8155 (ch
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
8161 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH@Z */
8162 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J@Z */
8163 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGH@Z */
8164 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_J@Z */
8165 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str
, 12)
8166 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_str(basic_istream_wchar
*this, wchar_t *str
, streamsize count
)
8168 return basic_istream_wchar_get_str_delim(this, str
, count
, '\n');
8171 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@AAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_W@Z */
8172 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_W@Z */
8173 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@AAV?$basic_streambuf@GU?$char_traits@G@std@@@2@G@Z */
8174 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@G@Z */
8175 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_streambuf_delim
, 12)
8176 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_streambuf_delim(basic_istream_wchar
*this, basic_streambuf_wchar
*strbuf
, wchar_t delim
)
8178 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
8179 unsigned short ch
= delim
;
8181 TRACE("(%p %p %c)\n", this, strbuf
, delim
);
8185 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
8186 basic_streambuf_wchar
*strbuf_read
= basic_ios_wchar_rdbuf_get(base
);
8188 for(ch
= basic_streambuf_wchar_sgetc(strbuf_read
); ;
8189 ch
= basic_streambuf_wchar_snextc(strbuf_read
)) {
8190 if(ch
==WEOF
|| ch
==delim
)
8193 if(basic_streambuf_wchar_sputc(strbuf
, ch
) == WEOF
)
8198 basic_istream_wchar_sentry_destroy(this);
8200 basic_ios_wchar_setstate(base
, (!this->count
? IOSTATE_failbit
: IOSTATE_goodbit
) |
8201 (ch
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
8205 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@AAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@@Z */
8206 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@@Z */
8207 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@AAV?$basic_streambuf@GU?$char_traits@G@std@@@2@@Z */
8208 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@@Z */
8209 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_streambuf
, 8)
8210 basic_istream_wchar
* __thiscall
basic_istream_wchar_get_streambuf(basic_istream_wchar
*this, basic_streambuf_wchar
*strbuf
)
8212 return basic_istream_wchar_get_streambuf_delim(this, strbuf
, '\n');
8215 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH_W@Z */
8216 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J_W@Z */
8217 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGHG@Z */
8218 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_JG@Z */
8219 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline_delim
, 16)
8220 basic_istream_wchar
* __thiscall
basic_istream_wchar_getline_delim(basic_istream_wchar
*this, wchar_t *str
, streamsize count
, wchar_t delim
)
8222 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
8223 unsigned short ch
= delim
;
8225 TRACE("(%p %p %ld %c)\n", this, str
, count
, delim
);
8229 if(basic_istream_wchar_sentry_create(this, TRUE
) && count
>0) {
8230 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
8233 ch
= basic_streambuf_wchar_sbumpc(strbuf
);
8235 if(ch
==WEOF
|| ch
==delim
)
8245 else if(ch
!= WEOF
) {
8246 ch
= basic_streambuf_wchar_sgetc(strbuf
);
8249 basic_streambuf_wchar__Gninc(strbuf
);
8254 basic_istream_wchar_sentry_destroy(this);
8256 basic_ios_wchar_setstate(base
, (ch
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
) |
8257 (!this->count
|| (ch
!=delim
&& ch
!=WEOF
) ? IOSTATE_failbit
: IOSTATE_goodbit
));
8263 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH@Z */
8264 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J@Z */
8265 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGH@Z */
8266 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_J@Z */
8267 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline
, 12)
8268 basic_istream_wchar
* __thiscall
basic_istream_wchar_getline(basic_istream_wchar
*this, wchar_t *str
, streamsize count
)
8270 return basic_istream_wchar_getline_delim(this, str
, count
, '\n');
8273 /* ?ignore@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@HG@Z */
8274 /* ?ignore@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_JG@Z */
8275 /* ?ignore@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@HG@Z */
8276 /* ?ignore@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JG@Z */
8277 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ignore
, 12)
8278 basic_istream_wchar
* __thiscall
basic_istream_wchar_ignore(basic_istream_wchar
*this, streamsize count
, unsigned short delim
)
8280 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
8281 unsigned short ch
= delim
;
8284 TRACE("(%p %ld %d)\n", this, count
, delim
);
8288 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
8289 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
8290 state
= IOSTATE_goodbit
;
8293 ch
= basic_streambuf_wchar_sbumpc(strbuf
);
8296 state
= IOSTATE_eofbit
;
8304 if(count
!= INT_MAX
)
8308 state
= IOSTATE_failbit
;
8309 basic_istream_wchar_sentry_destroy(this);
8311 basic_ios_wchar_setstate(base
, state
);
8315 /* ?ws@std@@YAAAV?$basic_istream@_WU?$char_traits@_W@std@@@1@AAV21@@Z */
8316 /* ?ws@std@@YAAEAV?$basic_istream@_WU?$char_traits@_W@std@@@1@AEAV21@@Z */
8317 /* ?ws@std@@YAAAV?$basic_istream@GU?$char_traits@G@std@@@1@AAV21@@Z */
8318 /* ?ws@std@@YAAEAV?$basic_istream@GU?$char_traits@G@std@@@1@AEAV21@@Z */
8319 basic_istream_wchar
* __cdecl
ws_basic_istream_wchar(basic_istream_wchar
*istream
)
8321 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istream
);
8322 unsigned short ch
= '\n';
8324 TRACE("(%p)\n", istream
);
8326 if(basic_istream_wchar_sentry_create(istream
, TRUE
)) {
8327 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
8328 const ctype_wchar
*ctype
= ctype_wchar_use_facet(&strbuf
->loc
);
8330 for(ch
= basic_streambuf_wchar_sgetc(strbuf
); ctype_wchar_is_ch(ctype
, _SPACE
, ch
);
8331 ch
= basic_streambuf_wchar_snextc(strbuf
)) {
8336 basic_istream_wchar_sentry_destroy(istream
);
8339 basic_ios_wchar_setstate(base
, IOSTATE_eofbit
);
8343 /* ?peek@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
8344 /* ?peek@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
8345 /* ?peek@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEGXZ */
8346 /* ?peek@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAGXZ */
8347 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_peek
, 4)
8348 unsigned short __thiscall
basic_istream_wchar_peek(basic_istream_wchar
*this)
8350 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
8351 unsigned short ret
= WEOF
;
8353 TRACE("(%p)\n", this);
8357 if(basic_istream_wchar_sentry_create(this, TRUE
))
8358 ret
= basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base
));
8359 basic_istream_wchar_sentry_destroy(this);
8362 basic_ios_wchar_setstate(base
, IOSTATE_eofbit
);
8367 /* ?_Read_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WIH@Z */
8368 /* ?_Read_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_K_J@Z */
8369 /* ?_Read_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGIH@Z */
8370 /* ?_Read_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_K_J@Z */
8371 static basic_istream_wchar
* basic_istream_wchar__Read_s(basic_istream_wchar
*this, wchar_t *str
, MSVCP_size_t size
, streamsize count
)
8373 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
8374 IOSB_iostate state
= IOSTATE_goodbit
;
8376 TRACE("(%p %p %lu %ld)\n", this, str
, size
, count
);
8378 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
8379 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
8381 this->count
= basic_streambuf_wchar__Sgetn_s(strbuf
, str
, size
, count
);
8382 if(this->count
!= count
)
8383 state
|= IOSTATE_failbit
| IOSTATE_eofbit
;
8387 basic_istream_wchar_sentry_destroy(this);
8389 basic_ios_wchar_setstate(base
, state
);
8393 /* ?read@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH@Z */
8394 /* ?read@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J@Z */
8395 /* ?read@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGH@Z */
8396 /* ?read@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_J@Z */
8397 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read
, 12)
8398 basic_istream_wchar
* __thiscall
basic_istream_wchar_read(basic_istream_wchar
*this, wchar_t *str
, streamsize count
)
8400 return basic_istream_wchar__Read_s(this, str
, count
, count
);
8403 /* ?_Readsome_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEHPA_WIH@Z */
8404 /* ?_Readsome_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_K_J@Z */
8405 /* ?_Readsome_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEHPAGIH@Z */
8406 /* ?_Readsome_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_K_J@Z */
8407 static streamsize
basic_istream_wchar__Readsome_s(basic_istream_wchar
*this, wchar_t *str
, MSVCP_size_t size
, streamsize count
)
8409 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
8410 IOSB_iostate state
= IOSTATE_goodbit
;
8412 TRACE("(%p %p %lu %ld)\n", this, str
, size
, count
);
8416 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
8417 streamsize avail
= basic_streambuf_wchar_in_avail(basic_ios_wchar_rdbuf_get(base
));
8422 state
|= IOSTATE_eofbit
;
8424 basic_istream_wchar__Read_s(this, str
, size
, avail
);
8426 state
|= IOSTATE_failbit
;
8428 basic_istream_wchar_sentry_destroy(this);
8430 basic_ios_wchar_setstate(base
, state
);
8434 /* ?readsome@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEHPA_WH@Z */
8435 /* ?readsome@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_J@Z */
8436 /* ?readsome@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEHPAGH@Z */
8437 /* ?readsome@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_J@Z */
8438 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_readsome
, 12)
8439 streamsize __thiscall
basic_istream_wchar_readsome(basic_istream_wchar
*this, wchar_t *str
, streamsize count
)
8441 return basic_istream_wchar__Readsome_s(this, str
, count
, count
);
8444 /* ?putback@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@_W@Z */
8445 /* ?putback@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_W@Z */
8446 /* ?putback@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@G@Z */
8447 /* ?putback@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@G@Z */
8448 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_putback
, 8)
8449 basic_istream_wchar
* __thiscall
basic_istream_wchar_putback(basic_istream_wchar
*this, wchar_t ch
)
8451 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
8452 IOSB_iostate state
= IOSTATE_goodbit
;
8454 TRACE("(%p %c)\n", this, ch
);
8458 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
8459 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
8461 if(!ios_base_good(&base
->base
))
8462 state
|= IOSTATE_failbit
;
8463 else if(!strbuf
|| basic_streambuf_wchar_sputbackc(strbuf
, ch
)==WEOF
)
8464 state
|= IOSTATE_badbit
;
8466 basic_istream_wchar_sentry_destroy(this);
8468 basic_ios_wchar_setstate(base
, state
);
8472 /* ?unget@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@XZ */
8473 /* ?unget@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@XZ */
8474 /* ?unget@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@XZ */
8475 /* ?unget@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@XZ */
8476 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_unget
, 4)
8477 basic_istream_wchar
* __thiscall
basic_istream_wchar_unget(basic_istream_wchar
*this)
8479 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
8480 IOSB_iostate state
= IOSTATE_goodbit
;
8482 TRACE("(%p)\n", this);
8486 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
8487 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
8489 if(!ios_base_good(&base
->base
))
8490 state
|= IOSTATE_failbit
;
8491 else if(!strbuf
|| basic_streambuf_wchar_sungetc(strbuf
)==WEOF
)
8492 state
|= IOSTATE_badbit
;
8494 basic_istream_wchar_sentry_destroy(this);
8496 basic_ios_wchar_setstate(base
, state
);
8500 /* ?sync@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEHXZ */
8501 /* ?sync@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAHXZ */
8502 /* ?sync@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEHXZ */
8503 /* ?sync@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAHXZ */
8504 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_sync
, 4)
8505 int __thiscall
basic_istream_wchar_sync(basic_istream_wchar
*this)
8507 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
8508 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
8510 TRACE("(%p)\n", this);
8515 if(basic_istream_wchar_sentry_create(this, TRUE
)) {
8516 if(basic_streambuf_wchar_pubsync(strbuf
) != -1) {
8517 basic_istream_wchar_sentry_destroy(this);
8521 basic_istream_wchar_sentry_destroy(this);
8523 basic_ios_wchar_setstate(base
, IOSTATE_badbit
);
8527 /* ?tellg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@XZ */
8528 /* ?tellg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
8529 /* ?tellg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@XZ */
8530 /* ?tellg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
8531 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_tellg
, 8)
8532 fpos_int
* __thiscall
basic_istream_wchar_tellg(basic_istream_wchar
*this, fpos_int
*ret
)
8534 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
8536 TRACE("(%p %p)\n", this, ret
);
8538 if(ios_base_fail(&base
->base
)) {
8545 basic_streambuf_wchar_pubseekoff(basic_ios_wchar_rdbuf_get(base
),
8546 ret
, 0, SEEKDIR_cur
, OPENMODE_in
);
8547 if(ret
->off
==-1 && ret
->pos
==0 && ret
->state
==0)
8548 basic_ios_wchar_setstate(base
, IOSTATE_failbit
);
8553 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@JW4seekdir@ios_base@2@@Z */
8554 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JW4seekdir@ios_base@2@@Z */
8555 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_seekg
, 12)
8556 basic_istream_wchar
* __thiscall
basic_istream_wchar_seekg(basic_istream_wchar
*this, streamoff off
, int dir
)
8558 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
8560 TRACE("(%p %ld %d)\n", this, off
, dir
);
8562 if(!ios_base_fail(&base
->base
)) {
8563 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
8566 basic_streambuf_wchar_pubseekoff(strbuf
, &ret
, off
, dir
, OPENMODE_in
);
8572 /* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
8573 /* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
8574 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
8575 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
8576 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_seekg_fpos
, 28)
8577 basic_istream_wchar
* __thiscall
basic_istream_wchar_seekg_fpos(basic_istream_wchar
*this, fpos_int pos
)
8579 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
8581 TRACE("(%p %s)\n", this, debugstr_fpos_int(&pos
));
8583 if(!ios_base_fail(&base
->base
)) {
8584 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
8587 basic_streambuf_wchar_pubseekpos(strbuf
, &ret
, pos
, OPENMODE_in
);
8593 static basic_istream_wchar
* basic_istream_read_short(basic_istream_wchar
*this, short *v
, const num_get
*numget
)
8595 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
8596 int state
= IOSTATE_goodbit
;
8598 TRACE("(%p %p)\n", this, v
);
8600 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
8601 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
8602 istreambuf_iterator_wchar first
={0}, last
={0};
8605 first
.strbuf
= strbuf
;
8606 num_get_wchar_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, &tmp
);
8608 if(!(state
&IOSTATE_failbit
) && tmp
==(LONG
)((short)tmp
))
8611 state
|= IOSTATE_failbit
;
8613 basic_istream_wchar_sentry_destroy(this);
8615 basic_ios_wchar_setstate(base
, state
);
8619 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAF@Z */
8620 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAF@Z */
8621 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_short
, 8)
8622 basic_istream_wchar
* __thiscall
basic_istream_short_read_short(basic_istream_wchar
*this, short *v
)
8624 return basic_istream_read_short(this, v
, num_get_short_use_facet(
8625 &basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
8628 static basic_istream_wchar
* basic_istream_read_int(basic_istream_wchar
*this, int *v
, const num_get
*numget
)
8630 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
8631 int state
= IOSTATE_goodbit
;
8633 TRACE("(%p %p)\n", this, v
);
8635 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
8636 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
8637 istreambuf_iterator_wchar first
={0}, last
={0};
8639 first
.strbuf
= strbuf
;
8640 num_get_wchar_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8642 basic_istream_wchar_sentry_destroy(this);
8644 basic_ios_wchar_setstate(base
, state
);
8648 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAH@Z */
8649 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAH@Z */
8650 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_int
, 8)
8651 basic_istream_wchar
* __thiscall
basic_istream_short_read_int(basic_istream_wchar
*this, int *v
)
8653 return basic_istream_read_int(this, v
, num_get_short_use_facet(
8654 &basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
8657 static basic_istream_wchar
* basic_istream_read_uint(basic_istream_wchar
*this, unsigned int *v
, const num_get
*numget
)
8659 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
8660 int state
= IOSTATE_goodbit
;
8662 TRACE("(%p %p)\n", this, v
);
8664 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
8665 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
8666 istreambuf_iterator_wchar first
={0}, last
={0};
8668 first
.strbuf
= strbuf
;
8669 num_get_wchar_get_uint(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8671 basic_istream_wchar_sentry_destroy(this);
8673 basic_ios_wchar_setstate(base
, state
);
8677 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAI@Z */
8678 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAI@Z */
8679 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_uint
, 8)
8680 basic_istream_wchar
* __thiscall
basic_istream_short_read_uint(basic_istream_wchar
*this, unsigned int *v
)
8682 return basic_istream_read_uint(this, v
, num_get_short_use_facet(
8683 &basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
8686 static basic_istream_wchar
* basic_istream_read_long(basic_istream_wchar
*this, LONG
*v
, const num_get
*numget
)
8688 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
8689 int state
= IOSTATE_goodbit
;
8691 TRACE("(%p %p)\n", this, v
);
8693 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
8694 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
8695 istreambuf_iterator_wchar first
={0}, last
={0};
8697 first
.strbuf
= strbuf
;
8698 num_get_wchar_get_long(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8700 basic_istream_wchar_sentry_destroy(this);
8702 basic_ios_wchar_setstate(base
, state
);
8706 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAJ@Z */
8707 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAJ@Z */
8708 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_long
, 8)
8709 basic_istream_wchar
* __thiscall
basic_istream_short_read_long(basic_istream_wchar
*this, LONG
*v
)
8711 return basic_istream_read_long(this, v
, num_get_short_use_facet(
8712 &basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
8715 static basic_istream_wchar
* basic_istream_read_ulong(basic_istream_wchar
*this, ULONG
*v
, const num_get
*numget
)
8717 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
8718 int state
= IOSTATE_goodbit
;
8720 TRACE("(%p %p)\n", this, v
);
8722 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
8723 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
8724 istreambuf_iterator_wchar first
={0}, last
={0};
8726 first
.strbuf
= strbuf
;
8727 num_get_wchar_get_ulong(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8729 basic_istream_wchar_sentry_destroy(this);
8731 basic_ios_wchar_setstate(base
, state
);
8735 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAK@Z */
8736 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAK@Z */
8737 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_ulong
, 8)
8738 basic_istream_wchar
* __thiscall
basic_istream_short_read_ulong(basic_istream_wchar
*this, ULONG
*v
)
8740 return basic_istream_read_ulong(this, v
, num_get_short_use_facet(
8741 &basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
8744 static basic_istream_wchar
* basic_istream_read_float(basic_istream_wchar
*this, float *v
, const num_get
*numget
)
8746 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
8747 int state
= IOSTATE_goodbit
;
8749 TRACE("(%p %p)\n", this, v
);
8751 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
8752 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
8753 istreambuf_iterator_wchar first
={0}, last
={0};
8755 first
.strbuf
= strbuf
;
8756 num_get_wchar_get_float(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8758 basic_istream_wchar_sentry_destroy(this);
8760 basic_ios_wchar_setstate(base
, state
);
8764 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAM@Z */
8765 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAM@Z */
8766 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_float
, 8)
8767 basic_istream_wchar
* __thiscall
basic_istream_short_read_float(basic_istream_wchar
*this, float *v
)
8769 return basic_istream_read_float(this, v
, num_get_short_use_facet(
8770 &basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
8773 static basic_istream_wchar
* basic_istream_read_double(basic_istream_wchar
*this, double *v
, const num_get
*numget
)
8775 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
8776 int state
= IOSTATE_goodbit
;
8778 TRACE("(%p %p)\n", this, v
);
8780 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
8781 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
8782 istreambuf_iterator_wchar first
={0}, last
={0};
8784 first
.strbuf
= strbuf
;
8785 num_get_wchar_get_double(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8787 basic_istream_wchar_sentry_destroy(this);
8789 basic_ios_wchar_setstate(base
, state
);
8793 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAN@Z */
8794 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAN@Z */
8795 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_double
, 8)
8796 basic_istream_wchar
* __thiscall
basic_istream_short_read_double(basic_istream_wchar
*this, double *v
)
8798 return basic_istream_read_double(this, v
, num_get_short_use_facet(
8799 &basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
8802 static basic_istream_wchar
* basic_istream_read_ldouble(basic_istream_wchar
*this, double *v
, const num_get
*numget
)
8804 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
8805 int state
= IOSTATE_goodbit
;
8807 TRACE("(%p %p)\n", this, v
);
8809 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
8810 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
8811 istreambuf_iterator_wchar first
={0}, last
={0};
8813 first
.strbuf
= strbuf
;
8814 num_get_wchar_get_ldouble(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8816 basic_istream_wchar_sentry_destroy(this);
8818 basic_ios_wchar_setstate(base
, state
);
8822 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAO@Z */
8823 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAO@Z */
8824 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_ldouble
, 8)
8825 basic_istream_wchar
* __thiscall
basic_istream_short_read_ldouble(basic_istream_wchar
*this, double *v
)
8827 return basic_istream_read_ldouble(this, v
, num_get_short_use_facet(
8828 &basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
8831 static basic_istream_wchar
* basic_istream_read_ptr(basic_istream_wchar
*this, void **v
, const num_get
*numget
)
8833 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
8834 int state
= IOSTATE_goodbit
;
8836 TRACE("(%p %p)\n", this, v
);
8838 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
8839 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
8840 istreambuf_iterator_wchar first
={0}, last
={0};
8842 first
.strbuf
= strbuf
;
8843 num_get_wchar_get_void(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8845 basic_istream_wchar_sentry_destroy(this);
8847 basic_ios_wchar_setstate(base
, state
);
8851 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAPAX@Z */
8852 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAPEAX@Z */
8853 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_ptr
, 8)
8854 basic_istream_wchar
* __thiscall
basic_istream_short_read_ptr(basic_istream_wchar
*this, void **v
)
8856 return basic_istream_read_ptr(this, v
, num_get_short_use_facet(
8857 &basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
8860 static basic_istream_wchar
* basic_istream_read_int64(basic_istream_wchar
*this, __int64
*v
, const num_get
*numget
)
8862 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
8863 int state
= IOSTATE_goodbit
;
8865 TRACE("(%p %p)\n", this, v
);
8867 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
8868 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
8869 istreambuf_iterator_wchar first
={0}, last
={0};
8871 first
.strbuf
= strbuf
;
8872 num_get_wchar_get_int64(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8874 basic_istream_wchar_sentry_destroy(this);
8876 basic_ios_wchar_setstate(base
, state
);
8880 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AA_J@Z */
8881 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEA_J@Z */
8882 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_int64
, 8)
8883 basic_istream_wchar
* __thiscall
basic_istream_short_read_int64(basic_istream_wchar
*this, __int64
*v
)
8885 return basic_istream_read_int64(this, v
, num_get_short_use_facet(
8886 &basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
8889 static basic_istream_wchar
* basic_istream_read_uint64(basic_istream_wchar
*this, unsigned __int64
*v
, const num_get
*numget
)
8891 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
8892 int state
= IOSTATE_goodbit
;
8894 TRACE("(%p %p)\n", this, v
);
8896 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
8897 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
8898 istreambuf_iterator_wchar first
={0}, last
={0};
8900 first
.strbuf
= strbuf
;
8901 num_get_wchar_get_uint64(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8903 basic_istream_wchar_sentry_destroy(this);
8905 basic_ios_wchar_setstate(base
, state
);
8909 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AA_K@Z */
8910 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEA_K@Z */
8911 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_uint64
, 8)
8912 basic_istream_wchar
* __thiscall
basic_istream_short_read_uint64(basic_istream_wchar
*this, unsigned __int64
*v
)
8914 return basic_istream_read_uint64(this, v
, num_get_short_use_facet(
8915 &basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
8918 static basic_istream_wchar
* basic_istream_read_bool(basic_istream_wchar
*this, MSVCP_bool
*v
, const num_get
*numget
)
8920 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
8921 int state
= IOSTATE_goodbit
;
8923 TRACE("(%p %p)\n", this, v
);
8925 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
8926 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
8927 istreambuf_iterator_wchar first
={0}, last
={0};
8929 first
.strbuf
= strbuf
;
8930 num_get_wchar_get_bool(numget
, &last
, first
, last
, &base
->base
, &state
, v
);
8932 basic_istream_wchar_sentry_destroy(this);
8934 basic_ios_wchar_setstate(base
, state
);
8938 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AA_N@Z */
8939 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEA_N@Z */
8940 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_bool
, 8)
8941 basic_istream_wchar
* __thiscall
basic_istream_short_read_bool(basic_istream_wchar
*this, MSVCP_bool
*v
)
8943 return basic_istream_read_bool(this, v
, num_get_short_use_facet(
8944 &basic_istream_wchar_get_basic_ios(this)->strbuf
->loc
));
8947 /* ??$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 */
8948 /* ??$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 */
8949 /* ??$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 */
8950 /* ??$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 */
8951 basic_istream_wchar
* __cdecl
basic_istream_wchar_getline_bstr_delim(
8952 basic_istream_wchar
*istream
, basic_string_wchar
*str
, wchar_t delim
)
8954 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istream
);
8955 IOSB_iostate state
= IOSTATE_goodbit
;
8958 TRACE("(%p %p %c)\n", istream
, str
, delim
);
8960 basic_string_wchar_clear(str
);
8961 if(basic_istream_wchar_sentry_create(istream
, TRUE
)) {
8962 basic_streambuf_wchar
*strbuf
= basic_ios_wchar_rdbuf_get(base
);
8964 c
= basic_streambuf_wchar_sgetc(strbuf
);
8965 for(; c
!=delim
&& c
!=WEOF
; c
= basic_streambuf_wchar_snextc(strbuf
))
8966 basic_string_wchar_append_ch(str
, c
);
8967 if(c
==delim
) basic_streambuf_wchar_sbumpc(strbuf
);
8968 else if(c
==WEOF
) state
|= IOSTATE_eofbit
;
8970 if(!basic_string_wchar_length(str
) && c
!=delim
) state
|= IOSTATE_failbit
;
8972 basic_istream_wchar_sentry_destroy(istream
);
8974 basic_ios_wchar_setstate(basic_istream_wchar_get_basic_ios(istream
), state
);
8978 /* ??$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 */
8979 /* ??$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 */
8980 /* ??$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 */
8981 /* ??$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 */
8982 basic_istream_wchar
* __cdecl
basic_istream_wchar_getline_bstr(
8983 basic_istream_wchar
*istream
, basic_string_wchar
*str
)
8985 return basic_istream_wchar_getline_bstr_delim(istream
, str
, '\n');
8988 static basic_istream_wchar
* basic_istream_read_bstr(basic_istream_wchar
*istream
,
8989 basic_string_wchar
*str
, const ctype_wchar
*ctype
)
8991 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istream
);
8992 IOSB_iostate state
= IOSTATE_failbit
;
8995 TRACE("(%p %p)\n", istream
, str
);
8997 if(basic_istream_wchar_sentry_create(istream
, FALSE
)) {
8998 MSVCP_size_t count
= ios_base_width_get(&base
->base
);
9003 basic_string_wchar_clear(str
);
9005 for(c
= basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base
));
9006 c
!=WEOF
&& !ctype_wchar_is_ch(ctype
, _SPACE
|_BLANK
, c
) && count
>0;
9007 c
= basic_streambuf_wchar_snextc(basic_ios_wchar_rdbuf_get(base
)), count
--) {
9008 state
= IOSTATE_goodbit
;
9009 basic_string_wchar_append_ch(str
, c
);
9012 basic_istream_wchar_sentry_destroy(istream
);
9014 ios_base_width_set(&base
->base
, 0);
9015 basic_ios_wchar_setstate(base
, state
| (c
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
9019 /* ??$?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 */
9020 /* ??$?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 */
9021 basic_istream_wchar
* __cdecl
basic_istream_wchar_read_bstr(
9022 basic_istream_wchar
*istream
, basic_string_wchar
*str
)
9024 return basic_istream_read_bstr(istream
, str
, ctype_wchar_use_facet(
9025 &basic_istream_wchar_get_basic_ios(istream
)->strbuf
->loc
));
9028 /* ??$?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 */
9029 /* ??$?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 */
9030 basic_istream_wchar
* __cdecl
basic_istream_short_read_bstr(
9031 basic_istream_wchar
*istream
, basic_string_wchar
*str
)
9033 return basic_istream_read_bstr(istream
, str
, ctype_short_use_facet(
9034 &basic_istream_wchar_get_basic_ios(istream
)->strbuf
->loc
));
9037 static basic_istream_wchar
* basic_istream_read_str(basic_istream_wchar
*istream
, wchar_t *str
, const ctype_wchar
*ctype
)
9039 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(istream
);
9040 IOSB_iostate state
= IOSTATE_failbit
;
9041 unsigned short c
= '\n';
9043 TRACE("(%p %p)\n", istream
, str
);
9045 if(basic_istream_wchar_sentry_create(istream
, FALSE
)) {
9046 MSVCP_size_t count
= ios_base_width_get(&base
->base
)-1;
9048 for(c
= basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base
));
9049 c
!=WEOF
&& !ctype_wchar_is_ch(ctype
, _SPACE
|_BLANK
, c
) && count
>0;
9050 c
= basic_streambuf_wchar_snextc(basic_ios_wchar_rdbuf_get(base
)), count
--) {
9051 state
= IOSTATE_goodbit
;
9055 basic_istream_wchar_sentry_destroy(istream
);
9058 ios_base_width_set(&base
->base
, 0);
9059 basic_ios_wchar_setstate(base
, state
| (c
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
9063 /* ??$?5GU?$char_traits@G@std@@@std@@YAAAV?$basic_istream@GU?$char_traits@G@std@@@0@AAV10@PAG@Z */
9064 /* ??$?5GU?$char_traits@G@std@@@std@@YAAEAV?$basic_istream@GU?$char_traits@G@std@@@0@AEAV10@PEAG@Z */
9065 basic_istream_wchar
* __cdecl
basic_istream_short_read_str(basic_istream_wchar
*istream
, wchar_t *str
)
9067 return basic_istream_read_str(istream
, str
, ctype_short_use_facet(
9068 &basic_istream_wchar_get_basic_ios(istream
)->strbuf
->loc
));
9071 /* ??$?5_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AAV10@AA_W@Z */
9072 /* ??$?5_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AEAV10@AEA_W@Z */
9073 /* ??$?5GU?$char_traits@G@std@@@std@@YAAAV?$basic_istream@GU?$char_traits@G@std@@@0@AAV10@AAG@Z */
9074 /* ??$?5GU?$char_traits@G@std@@@std@@YAAEAV?$basic_istream@GU?$char_traits@G@std@@@0@AEAV10@AEAG@Z */
9075 basic_istream_wchar
* __cdecl
basic_istream_wchar_read_ch(basic_istream_wchar
*istream
, wchar_t *ch
)
9077 IOSB_iostate state
= IOSTATE_failbit
;
9078 unsigned short c
= 0;
9080 TRACE("(%p %p)\n", istream
, ch
);
9082 if(basic_istream_wchar_sentry_create(istream
, FALSE
)) {
9083 c
= basic_streambuf_wchar_sbumpc(basic_ios_wchar_rdbuf_get(
9084 basic_istream_wchar_get_basic_ios(istream
)));
9086 state
= IOSTATE_goodbit
;
9090 basic_istream_wchar_sentry_destroy(istream
);
9092 basic_ios_wchar_setstate(basic_istream_wchar_get_basic_ios(istream
),
9093 state
| (c
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
9097 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
9098 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
9099 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
9100 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
9101 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_streambuf
, 8)
9102 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_streambuf(
9103 basic_istream_wchar
*this, basic_streambuf_wchar
*streambuf
)
9105 basic_ios_wchar
*base
= basic_istream_wchar_get_basic_ios(this);
9106 IOSB_iostate state
= IOSTATE_failbit
;
9107 unsigned short c
= '\n';
9109 TRACE("(%p %p)\n", this, streambuf
);
9111 if(basic_istream_wchar_sentry_create(this, FALSE
)) {
9112 for(c
= basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base
)); c
!=WEOF
;
9113 c
= basic_streambuf_wchar_snextc(basic_ios_wchar_rdbuf_get(base
))) {
9114 state
= IOSTATE_goodbit
;
9115 if(basic_streambuf_wchar_sputc(streambuf
, c
) == WEOF
)
9119 basic_istream_wchar_sentry_destroy(this);
9121 basic_ios_wchar_setstate(base
, state
| (c
==WEOF
? IOSTATE_eofbit
: IOSTATE_goodbit
));
9125 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
9126 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
9127 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
9128 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
9129 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_func
, 8)
9130 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_func(basic_istream_wchar
*this,
9131 basic_istream_wchar
* (__cdecl
*pfunc
)(basic_istream_wchar
*))
9133 TRACE("(%p %p)\n", this, pfunc
);
9138 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AAV21@@Z@Z */
9139 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AEAV21@@Z@Z */
9140 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@GU?$char_traits@G@std@@@1@AAV21@@Z@Z */
9141 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@GU?$char_traits@G@std@@@1@AEAV21@@Z@Z */
9142 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_func_basic_ios
, 8)
9143 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_func_basic_ios(basic_istream_wchar
*this,
9144 basic_ios_wchar
* (__cdecl
*pfunc
)(basic_ios_wchar
*))
9146 TRACE("(%p %p)\n", this, pfunc
);
9147 pfunc(basic_istream_wchar_get_basic_ios(this));
9151 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
9152 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
9153 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
9154 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
9155 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_func_ios_base
, 8)
9156 basic_istream_wchar
* __thiscall
basic_istream_wchar_read_func_ios_base(
9157 basic_istream_wchar
*this, ios_base
* (__cdecl
*pfunc
)(ios_base
*))
9159 TRACE("(%p %p)\n", this, pfunc
);
9160 pfunc(&basic_istream_wchar_get_basic_ios(this)->base
);
9164 static inline basic_ios_char
* basic_iostream_char_to_basic_ios(basic_iostream_char
*ptr
)
9166 return (basic_ios_char
*)((char*)ptr
+basic_iostream_char_vbtable1
[1]);
9169 static inline basic_iostream_char
* basic_iostream_char_from_basic_ios(basic_ios_char
*ptr
)
9171 return (basic_iostream_char
*)((char*)ptr
-basic_iostream_char_vbtable1
[1]);
9174 /* ??0?$basic_iostream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
9175 /* ??0?$basic_iostream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
9176 DEFINE_THISCALL_WRAPPER(basic_iostream_char_ctor
, 12)
9177 basic_iostream_char
* __thiscall
basic_iostream_char_ctor(basic_iostream_char
*this, basic_streambuf_char
*strbuf
, MSVCP_bool virt_init
)
9179 basic_ios_char
*basic_ios
;
9181 TRACE("(%p %p %d)\n", this, strbuf
, virt_init
);
9184 this->base1
.vbtable
= basic_iostream_char_vbtable1
;
9185 this->base2
.vbtable
= basic_iostream_char_vbtable2
;
9186 basic_ios
= basic_istream_char_get_basic_ios(&this->base1
);
9187 basic_ios_char_ctor(basic_ios
);
9189 basic_ios
= basic_istream_char_get_basic_ios(&this->base1
);
9192 basic_ios
->base
.vtable
= &MSVCP_basic_iostream_char_vtable
;
9194 basic_istream_char_ctor(&this->base1
, strbuf
, FALSE
, FALSE
);
9195 basic_ostream_char_ctor(&this->base2
, NULL
, FALSE
, FALSE
, FALSE
);
9199 /* ??1?$basic_iostream@DU?$char_traits@D@std@@@std@@UAE@XZ */
9200 /* ??1?$basic_iostream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
9201 DEFINE_THISCALL_WRAPPER(basic_iostream_char_dtor
, 4)
9202 void __thiscall
basic_iostream_char_dtor(basic_ios_char
*base
)
9204 basic_iostream_char
*this = basic_iostream_char_from_basic_ios(base
);
9206 TRACE("(%p)\n", this);
9207 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&this->base2
));
9208 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&this->base1
));
9211 /* ??_D?$basic_iostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
9212 /* ??_D?$basic_iostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
9213 DEFINE_THISCALL_WRAPPER(basic_iostream_char_vbase_dtor
, 4)
9214 void __thiscall
basic_iostream_char_vbase_dtor(basic_iostream_char
*this)
9216 TRACE("(%p)\n", this);
9217 basic_iostream_char_dtor(basic_iostream_char_to_basic_ios(this));
9218 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base1
));
9221 DEFINE_THISCALL_WRAPPER(basic_iostream_char_vector_dtor
, 8)
9222 basic_iostream_char
* __thiscall
basic_iostream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
9224 basic_iostream_char
*this = basic_iostream_char_from_basic_ios(base
);
9226 TRACE("(%p %x)\n", this, flags
);
9229 /* we have an array, with the number of elements stored before the first object */
9230 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
9232 for(i
=*ptr
-1; i
>=0; i
--)
9233 basic_iostream_char_vbase_dtor(this+i
);
9234 MSVCRT_operator_delete(ptr
);
9236 basic_iostream_char_vbase_dtor(this);
9238 MSVCRT_operator_delete(this);
9244 static inline basic_ios_wchar
* basic_iostream_wchar_to_basic_ios(basic_iostream_wchar
*ptr
)
9246 return (basic_ios_wchar
*)((char*)ptr
+basic_iostream_wchar_vbtable1
[1]);
9249 static inline basic_iostream_wchar
* basic_iostream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
9251 return (basic_iostream_wchar
*)((char*)ptr
-basic_iostream_wchar_vbtable1
[1]);
9254 /* ??0?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
9255 /* ??0?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
9256 static basic_iostream_wchar
* basic_iostream_wchar_ctor(basic_iostream_wchar
*this,
9257 basic_streambuf_wchar
*strbuf
, MSVCP_bool virt_init
)
9259 basic_ios_wchar
*basic_ios
;
9261 TRACE("(%p %p %d)\n", this, strbuf
, virt_init
);
9264 this->base1
.vbtable
= basic_iostream_wchar_vbtable1
;
9265 this->base2
.vbtable
= basic_iostream_wchar_vbtable2
;
9266 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base1
);
9267 basic_ios_wchar_ctor(basic_ios
);
9269 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base1
);
9272 basic_istream_wchar_ctor(&this->base1
, strbuf
, FALSE
, FALSE
);
9273 basic_ostream_short_ctor(&this->base2
, NULL
, FALSE
, FALSE
, FALSE
);
9275 basic_ios
->base
.vtable
= &MSVCP_basic_iostream_wchar_vtable
;
9279 /* ??0?$basic_iostream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
9280 /* ??0?$basic_iostream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
9281 DEFINE_THISCALL_WRAPPER(basic_iostream_short_ctor
, 12)
9282 basic_iostream_wchar
* __thiscall
basic_iostream_short_ctor(basic_iostream_wchar
*this,
9283 basic_streambuf_wchar
*strbuf
, MSVCP_bool virt_init
)
9285 basic_iostream_wchar_ctor(this, strbuf
, virt_init
);
9286 basic_istream_wchar_get_basic_ios(&this->base1
)->base
.vtable
= &MSVCP_basic_iostream_short_vtable
;
9290 /* ??1?$basic_iostream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
9291 /* ??1?$basic_iostream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
9292 /* ??1?$basic_iostream@GU?$char_traits@G@std@@@std@@UAE@XZ */
9293 /* ??1?$basic_iostream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
9294 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_dtor
, 4)
9295 void __thiscall
basic_iostream_wchar_dtor(basic_ios_wchar
*base
)
9297 basic_iostream_wchar
*this = basic_iostream_wchar_from_basic_ios(base
);
9299 TRACE("(%p)\n", this);
9300 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(&this->base2
));
9301 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(&this->base1
));
9304 /* ??_D?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
9305 /* ??_D?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
9306 /* ??_D?$basic_iostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
9307 /* ??_D?$basic_iostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
9308 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_vbase_dtor
, 4)
9309 void __thiscall
basic_iostream_wchar_vbase_dtor(basic_iostream_wchar
*this)
9311 TRACE("(%p)\n", this);
9312 basic_iostream_wchar_dtor(basic_iostream_wchar_to_basic_ios(this));
9313 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(&this->base1
));
9316 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_vector_dtor
, 8)
9317 basic_iostream_wchar
* __thiscall
basic_iostream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
9319 basic_iostream_wchar
*this = basic_iostream_wchar_from_basic_ios(base
);
9321 TRACE("(%p %x)\n", this, flags
);
9324 /* we have an array, with the number of elements stored before the first object */
9325 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
9327 for(i
=*ptr
-1; i
>=0; i
--)
9328 basic_iostream_wchar_vbase_dtor(this+i
);
9329 MSVCRT_operator_delete(ptr
);
9331 basic_iostream_wchar_vbase_dtor(this);
9333 MSVCRT_operator_delete(this);
9339 static inline basic_ios_char
* basic_ofstream_char_to_basic_ios(basic_ofstream_char
*ptr
)
9341 return (basic_ios_char
*)((char*)ptr
+basic_ofstream_char_vbtable
[1]);
9344 static inline basic_ofstream_char
* basic_ofstream_char_from_basic_ios(basic_ios_char
*ptr
)
9346 return (basic_ofstream_char
*)((char*)ptr
-basic_ofstream_char_vbtable
[1]);
9349 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@XZ */
9350 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@XZ */
9351 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_ctor
, 8)
9352 basic_ofstream_char
* __thiscall
basic_ofstream_char_ctor(basic_ofstream_char
*this, MSVCP_bool virt_init
)
9354 basic_ios_char
*basic_ios
;
9356 TRACE("(%p %d)\n", this, virt_init
);
9359 this->base
.vbtable
= basic_ofstream_char_vbtable
;
9360 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
9361 basic_ios_char_ctor(basic_ios
);
9363 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
9366 basic_filebuf_char_ctor(&this->filebuf
);
9367 basic_ostream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
, TRUE
, FALSE
);
9368 basic_ios
->base
.vtable
= &MSVCP_basic_ofstream_char_vtable
;
9372 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
9373 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
9374 static basic_ofstream_char
* basic_ofstream_char_ctor_file(
9375 basic_ofstream_char
*this, FILE *file
, MSVCP_bool virt_init
)
9377 basic_ios_char
*basic_ios
;
9379 TRACE("(%p %p %d)\n", this, file
, virt_init
);
9382 this->base
.vbtable
= basic_ofstream_char_vbtable
;
9383 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
9384 basic_ios_char_ctor(basic_ios
);
9386 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
9389 basic_filebuf_char_ctor_file(&this->filebuf
, file
);
9390 basic_ostream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
, TRUE
, FALSE
);
9391 basic_ios
->base
.vtable
= &MSVCP_basic_ofstream_char_vtable
;
9395 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@ABV01@@Z */
9396 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@AEBV01@@Z */
9397 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_copy_ctor
, 12)
9398 basic_ofstream_char
* __thiscall
basic_ofstream_char_copy_ctor(basic_ofstream_char
*this,
9399 basic_ofstream_char
*copy
, MSVCP_bool virt_init
)
9401 TRACE("(%p %p %d)\n", this, copy
, virt_init
);
9402 return basic_ofstream_char_ctor_file(this, copy
->filebuf
.file
, virt_init
);
9405 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@PBDH@Z */
9406 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDH@Z */
9407 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_ctor_name
, 16)
9408 basic_ofstream_char
* __thiscall
basic_ofstream_char_ctor_name(basic_ofstream_char
*this,
9409 const char *name
, int mode
, MSVCP_bool virt_init
)
9411 TRACE("(%p %s %d %d)\n", this, name
, mode
, virt_init
);
9413 basic_ofstream_char_ctor(this, virt_init
);
9415 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
|OPENMODE_out
, _SH_DENYNO
)) {
9416 basic_ios_char
*basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
9417 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
9422 /* ??1?$basic_ofstream@DU?$char_traits@D@std@@@std@@UAE@XZ */
9423 /* ??1?$basic_ofstream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
9424 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_dtor
, 4)
9425 void __thiscall
basic_ofstream_char_dtor(basic_ios_char
*base
)
9427 basic_ofstream_char
*this = basic_ofstream_char_from_basic_ios(base
);
9429 TRACE("(%p)\n", this);
9431 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&this->base
));
9432 basic_filebuf_char_dtor(&this->filebuf
);
9435 /* ??_D?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
9436 /* ??_D?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
9437 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_vbase_dtor
, 4)
9438 void __thiscall
basic_ofstream_char_vbase_dtor(basic_ofstream_char
*this)
9440 TRACE("(%p)\n", this);
9442 basic_ofstream_char_dtor(basic_ofstream_char_to_basic_ios(this));
9443 basic_ios_char_dtor(basic_ostream_char_get_basic_ios(&this->base
));
9446 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_vector_dtor
, 8)
9447 basic_ofstream_char
* __thiscall
basic_ofstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
9449 basic_ofstream_char
*this = basic_ofstream_char_from_basic_ios(base
);
9451 TRACE("(%p %x)\n", this, flags
);
9454 /* we have an array, with the number of elements stored before the first object */
9455 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
9457 for(i
=*ptr
-1; i
>=0; i
--)
9458 basic_ofstream_char_vbase_dtor(this+i
);
9459 MSVCRT_operator_delete(ptr
);
9461 basic_ofstream_char_vbase_dtor(this);
9463 MSVCRT_operator_delete(this);
9469 /* ?close@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
9470 /* ?close@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
9471 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_close
, 4)
9472 void __thiscall
basic_ofstream_char_close(basic_ofstream_char
*this)
9474 TRACE("(%p)\n", this);
9476 if(!basic_filebuf_char_close(&this->filebuf
)) {
9477 basic_ios_char
*basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
9478 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
9482 /* ?is_open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QBE_NXZ */
9483 /* ?is_open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
9484 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_is_open
, 4)
9485 MSVCP_bool __thiscall
basic_ofstream_char_is_open(const basic_ofstream_char
*this)
9487 TRACE("(%p)\n", this);
9488 return basic_filebuf_char_is_open(&this->filebuf
);
9491 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPBDH@Z */
9492 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDH@Z */
9493 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_open
, 12)
9494 void __thiscall
basic_ofstream_char_open(basic_ofstream_char
*this,
9495 const char *name
, int mode
)
9497 TRACE("(%p %s %d)\n", this, name
, mode
);
9499 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
|OPENMODE_out
, _SH_DENYNO
)) {
9500 basic_ios_char
*basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
9501 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
9505 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPBDF@Z */
9506 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDF@Z */
9507 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_open_old
, 12)
9508 void __thiscall
basic_ofstream_char_open_old(basic_ofstream_char
*this,
9509 const char *name
, short mode
)
9511 basic_ofstream_char_open(this, name
, mode
);
9514 /* ?rdbuf@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
9515 /* ?rdbuf@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
9516 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_rdbuf
, 4)
9517 basic_filebuf_char
* __thiscall
basic_ofstream_char_rdbuf(const basic_ofstream_char
*this)
9519 TRACE("(%p)\n", this);
9520 return (basic_filebuf_char
*)&this->filebuf
;
9523 static inline basic_ios_wchar
* basic_ofstream_wchar_to_basic_ios(basic_ofstream_wchar
*ptr
)
9525 return (basic_ios_wchar
*)((char*)ptr
+basic_ofstream_wchar_vbtable
[1]);
9528 static inline basic_ofstream_wchar
* basic_ofstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
9530 return (basic_ofstream_wchar
*)((char*)ptr
-basic_ofstream_wchar_vbtable
[1]);
9533 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@XZ */
9534 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@XZ */
9535 static basic_ofstream_wchar
* basic_ofstream_wchar_ctor(basic_ofstream_wchar
*this, MSVCP_bool virt_init
)
9537 basic_ios_wchar
*basic_ios
;
9539 TRACE("(%p %d)\n", this, virt_init
);
9542 this->base
.vbtable
= basic_ofstream_wchar_vbtable
;
9543 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
9544 basic_ios_wchar_ctor(basic_ios
);
9546 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
9549 basic_filebuf_wchar_ctor(&this->filebuf
);
9550 basic_ostream_short_ctor(&this->base
, &this->filebuf
.base
, FALSE
, TRUE
, FALSE
);
9551 basic_ios
->base
.vtable
= &MSVCP_basic_ofstream_wchar_vtable
;
9555 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@XZ */
9556 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@XZ */
9557 DEFINE_THISCALL_WRAPPER(basic_ofstream_short_ctor
, 8)
9558 basic_ofstream_wchar
* __thiscall
basic_ofstream_short_ctor(basic_ofstream_wchar
*this, MSVCP_bool virt_init
)
9560 basic_ofstream_wchar_ctor(this, virt_init
);
9561 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ofstream_short_vtable
;
9565 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
9566 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
9567 static basic_ofstream_wchar
* basic_ofstream_wchar_ctor_file(
9568 basic_ofstream_wchar
*this, FILE *file
, MSVCP_bool virt_init
)
9570 basic_ios_wchar
*basic_ios
;
9572 TRACE("(%p %p %d)\n", this, file
, virt_init
);
9575 this->base
.vbtable
= basic_ofstream_wchar_vbtable
;
9576 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
9577 basic_ios_wchar_ctor(basic_ios
);
9579 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
9582 basic_filebuf_wchar_ctor_file(&this->filebuf
, file
);
9583 basic_ostream_short_ctor(&this->base
, &this->filebuf
.base
, FALSE
, TRUE
, FALSE
);
9584 basic_ios
->base
.vtable
= &MSVCP_basic_ofstream_wchar_vtable
;
9588 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
9589 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
9590 static basic_ofstream_wchar
* basic_ofstream_short_ctor_file(
9591 basic_ofstream_wchar
*this, FILE *file
, MSVCP_bool virt_init
)
9593 basic_ofstream_wchar_ctor_file(this, file
, virt_init
);
9594 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ofstream_short_vtable
;
9598 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@ABV01@@Z */
9599 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@AEBV01@@Z */
9600 DEFINE_THISCALL_WRAPPER(basic_ofstream_short_copy_ctor
, 12)
9601 basic_ofstream_wchar
* __thiscall
basic_ofstream_short_copy_ctor(basic_ofstream_wchar
*this,
9602 basic_ofstream_wchar
*copy
, MSVCP_bool virt_init
)
9604 TRACE("(%p %p %d)\n", this, copy
, virt_init
);
9605 return basic_ofstream_short_ctor_file(this, copy
->filebuf
.file
, virt_init
);
9608 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@PBDH@Z */
9609 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@PEBDH@Z */
9610 DEFINE_THISCALL_WRAPPER(basic_ofstream_short_ctor_name
, 16)
9611 basic_ofstream_wchar
* __thiscall
basic_ofstream_short_ctor_name(basic_ofstream_wchar
*this,
9612 const char *name
, int mode
, MSVCP_bool virt_init
)
9614 TRACE("(%p %s %d %d)\n", this, name
, mode
, virt_init
);
9616 basic_ofstream_short_ctor(this, virt_init
);
9618 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
|OPENMODE_out
, _SH_DENYNO
)) {
9619 basic_ios_wchar
*basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
9620 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
9625 /* ??1?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
9626 /* ??1?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
9627 /* ??1?$basic_ofstream@GU?$char_traits@G@std@@@std@@UAE@XZ */
9628 /* ??1?$basic_ofstream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
9629 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_dtor
, 4)
9630 void __thiscall
basic_ofstream_wchar_dtor(basic_ios_wchar
*base
)
9632 basic_ofstream_wchar
*this = basic_ofstream_wchar_from_basic_ios(base
);
9634 TRACE("(%p)\n", this);
9636 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(&this->base
));
9637 basic_filebuf_wchar_dtor(&this->filebuf
);
9640 /* ??_D?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
9641 /* ??_D?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
9642 /* ??_D?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
9643 /* ??_D?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
9644 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_vbase_dtor
, 4)
9645 void __thiscall
basic_ofstream_wchar_vbase_dtor(basic_ofstream_wchar
*this)
9647 TRACE("(%p)\n", this);
9649 basic_ofstream_wchar_dtor(basic_ofstream_wchar_to_basic_ios(this));
9650 basic_ios_wchar_dtor(basic_ostream_wchar_get_basic_ios(&this->base
));
9653 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_vector_dtor
, 8)
9654 basic_ofstream_wchar
* __thiscall
basic_ofstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
9656 basic_ofstream_wchar
*this = basic_ofstream_wchar_from_basic_ios(base
);
9658 TRACE("(%p %x)\n", this, flags
);
9661 /* we have an array, with the number of elements stored before the first object */
9662 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
9664 for(i
=*ptr
-1; i
>=0; i
--)
9665 basic_ofstream_wchar_vbase_dtor(this+i
);
9666 MSVCRT_operator_delete(ptr
);
9668 basic_ofstream_wchar_vbase_dtor(this);
9670 MSVCRT_operator_delete(this);
9676 /* ?close@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
9677 /* ?close@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
9678 /* ?close@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
9679 /* ?close@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
9680 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_close
, 4)
9681 void __thiscall
basic_ofstream_wchar_close(basic_ofstream_wchar
*this)
9683 TRACE("(%p)\n", this);
9685 if(!basic_filebuf_wchar_close(&this->filebuf
)) {
9686 basic_ios_wchar
*basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
9687 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
9691 /* ?is_open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
9692 /* ?is_open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
9693 /* ?is_open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QBE_NXZ */
9694 /* ?is_open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
9695 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_is_open
, 4)
9696 MSVCP_bool __thiscall
basic_ofstream_wchar_is_open(const basic_ofstream_wchar
*this)
9698 TRACE("(%p)\n", this);
9699 return basic_filebuf_wchar_is_open(&this->filebuf
);
9702 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPBDH@Z */
9703 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDH@Z */
9704 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_open
, 12)
9705 void __thiscall
basic_ofstream_wchar_open(basic_ofstream_wchar
*this,
9706 const char *name
, int mode
)
9708 TRACE("(%p %s %d)\n", this, name
, mode
);
9710 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
|OPENMODE_out
, _SH_DENYNO
)) {
9711 basic_ios_wchar
*basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
9712 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
9716 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPBDF@Z */
9717 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDF@Z */
9718 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_open_old
, 12)
9719 void __thiscall
basic_ofstream_wchar_open_old(basic_ofstream_wchar
*this,
9720 const char *name
, int mode
)
9722 basic_ofstream_wchar_open(this, name
, mode
);
9725 /* ?rdbuf@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
9726 /* ?rdbuf@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
9727 /* ?rdbuf@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
9728 /* ?rdbuf@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
9729 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_rdbuf
, 4)
9730 basic_filebuf_wchar
* __thiscall
basic_ofstream_wchar_rdbuf(const basic_ofstream_wchar
*this)
9732 TRACE("(%p)\n", this);
9733 return (basic_filebuf_wchar
*)&this->filebuf
;
9736 static inline basic_ios_char
* basic_ifstream_char_to_basic_ios(basic_ifstream_char
*ptr
)
9738 return (basic_ios_char
*)((char*)ptr
+basic_ifstream_char_vbtable
[1]);
9741 static inline basic_ifstream_char
* basic_ifstream_char_from_basic_ios(basic_ios_char
*ptr
)
9743 return (basic_ifstream_char
*)((char*)ptr
-basic_ifstream_char_vbtable
[1]);
9746 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@XZ */
9747 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@XZ */
9748 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor
, 8)
9749 basic_ifstream_char
* __thiscall
basic_ifstream_char_ctor(basic_ifstream_char
*this, MSVCP_bool virt_init
)
9751 basic_ios_char
*basic_ios
;
9753 TRACE("(%p %d)\n", this, virt_init
);
9756 this->base
.vbtable
= basic_ifstream_char_vbtable
;
9757 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
9758 basic_ios_char_ctor(basic_ios
);
9760 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
9763 basic_filebuf_char_ctor(&this->filebuf
);
9764 basic_istream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
9765 basic_ios
->base
.vtable
= &MSVCP_basic_ifstream_char_vtable
;
9769 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
9770 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
9771 static basic_ifstream_char
* basic_ifstream_char_ctor_file(
9772 basic_ifstream_char
*this, FILE *file
, MSVCP_bool virt_init
)
9774 basic_ios_char
*basic_ios
;
9776 TRACE("(%p %p %d)\n", this, file
, virt_init
);
9779 this->base
.vbtable
= basic_ifstream_char_vbtable
;
9780 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
9781 basic_ios_char_ctor(basic_ios
);
9783 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
9786 basic_filebuf_char_ctor_file(&this->filebuf
, file
);
9787 basic_istream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
9788 basic_ios
->base
.vtable
= &MSVCP_basic_ifstream_char_vtable
;
9792 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@ABV01@@Z */
9793 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@AEBV01@@Z */
9794 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_copy_ctor
, 12)
9795 basic_ifstream_char
* __thiscall
basic_ifstream_char_copy_ctor(basic_ifstream_char
*this,
9796 const basic_ifstream_char
*copy
, MSVCP_bool virt_init
)
9798 TRACE("(%p %p %d)\n", this, copy
, virt_init
);
9799 return basic_ifstream_char_ctor_file(this, copy
->filebuf
.file
, virt_init
);
9802 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PBDH@Z */
9803 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDH@Z */
9804 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor_name
, 16)
9805 basic_ifstream_char
* __thiscall
basic_ifstream_char_ctor_name(basic_ifstream_char
*this,
9806 const char *name
, int mode
, MSVCP_bool virt_init
)
9808 TRACE("(%p %s %d %d)\n", this, name
, mode
, virt_init
);
9810 basic_ifstream_char_ctor(this, virt_init
);
9812 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
|OPENMODE_in
, _SH_DENYNO
)) {
9813 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
9814 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
9819 /* ??1?$basic_ifstream@DU?$char_traits@D@std@@@std@@UAE@XZ */
9820 /* ??1?$basic_ifstream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
9821 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_dtor
, 4)
9822 void __thiscall
basic_ifstream_char_dtor(basic_ios_char
*base
)
9824 basic_ifstream_char
*this = basic_ifstream_char_from_basic_ios(base
);
9826 TRACE("(%p)\n", this);
9828 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&this->base
));
9829 basic_filebuf_char_dtor(&this->filebuf
);
9832 /* ??_D?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
9833 /* ??_D?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
9834 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_vbase_dtor
, 4)
9835 void __thiscall
basic_ifstream_char_vbase_dtor(basic_ifstream_char
*this)
9837 TRACE("(%p)\n", this);
9839 basic_ifstream_char_dtor(basic_ifstream_char_to_basic_ios(this));
9840 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base
));
9843 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_vector_dtor
, 8)
9844 basic_ifstream_char
* __thiscall
basic_ifstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
9846 basic_ifstream_char
*this = basic_ifstream_char_from_basic_ios(base
);
9848 TRACE("(%p %x)\n", this, flags
);
9851 /* we have an array, with the number of elements stored before the first object */
9852 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
9854 for(i
=*ptr
-1; i
>=0; i
--)
9855 basic_ifstream_char_vbase_dtor(this+i
);
9856 MSVCRT_operator_delete(ptr
);
9858 basic_ifstream_char_vbase_dtor(this);
9860 MSVCRT_operator_delete(this);
9866 /* ?close@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
9867 /* ?close@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
9868 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_close
, 4)
9869 void __thiscall
basic_ifstream_char_close(basic_ifstream_char
*this)
9871 TRACE("(%p)\n", this);
9873 if(!basic_filebuf_char_close(&this->filebuf
)) {
9874 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
9875 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
9879 /* ?is_open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QBE_NXZ */
9880 /* ?is_open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
9881 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_is_open
, 4)
9882 MSVCP_bool __thiscall
basic_ifstream_char_is_open(const basic_ifstream_char
*this)
9884 TRACE("(%p)\n", this);
9885 return basic_filebuf_char_is_open(&this->filebuf
);
9888 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBDH@Z */
9889 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDH@Z */
9890 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_open
, 12)
9891 void __thiscall
basic_ifstream_char_open(basic_ifstream_char
*this,
9892 const char *name
, int mode
)
9894 TRACE("(%p %s %d)\n", this, name
, mode
);
9896 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
|OPENMODE_in
, _SH_DENYNO
)) {
9897 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
9898 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
9902 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBDF@Z */
9903 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDF@Z */
9904 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_open_old
, 12)
9905 void __thiscall
basic_ifstream_char_open_old(basic_ifstream_char
*this,
9906 const char *name
, short mode
)
9908 basic_ifstream_char_open(this, name
, mode
);
9911 /* ?rdbuf@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
9912 /* ?rdbuf@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
9913 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_rdbuf
, 4)
9914 basic_filebuf_char
* __thiscall
basic_ifstream_char_rdbuf(const basic_ifstream_char
*this)
9916 TRACE("(%p)\n", this);
9917 return (basic_filebuf_char
*)&this->filebuf
;
9920 static inline basic_ios_wchar
* basic_ifstream_wchar_to_basic_ios(basic_ifstream_wchar
*ptr
)
9922 return (basic_ios_wchar
*)((char*)ptr
+basic_ifstream_wchar_vbtable
[1]);
9925 static inline basic_ifstream_wchar
* basic_ifstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
9927 return (basic_ifstream_wchar
*)((char*)ptr
-basic_ifstream_wchar_vbtable
[1]);
9930 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@XZ */
9931 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@XZ */
9932 static basic_ifstream_wchar
* basic_ifstream_wchar_ctor(basic_ifstream_wchar
*this, MSVCP_bool virt_init
)
9934 basic_ios_wchar
*basic_ios
;
9936 TRACE("(%p %d)\n", this, virt_init
);
9939 this->base
.vbtable
= basic_ifstream_wchar_vbtable
;
9940 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
9941 basic_ios_wchar_ctor(basic_ios
);
9943 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
9946 basic_filebuf_wchar_ctor(&this->filebuf
);
9947 basic_istream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
9948 basic_ios
->base
.vtable
= &MSVCP_basic_ifstream_wchar_vtable
;
9952 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@XZ */
9953 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@XZ */
9954 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor
, 8)
9955 basic_ifstream_wchar
* __thiscall
basic_ifstream_short_ctor(basic_ifstream_wchar
*this, MSVCP_bool virt_init
)
9957 basic_ifstream_wchar_ctor(this, virt_init
);
9958 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ifstream_short_vtable
;
9962 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
9963 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
9964 static basic_ifstream_wchar
* basic_ifstream_wchar_ctor_file(
9965 basic_ifstream_wchar
*this, FILE *file
, MSVCP_bool virt_init
)
9967 basic_ios_wchar
*basic_ios
;
9969 TRACE("(%p %p %d)\n", this, file
, virt_init
);
9972 this->base
.vbtable
= basic_ifstream_wchar_vbtable
;
9973 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
9974 basic_ios_wchar_ctor(basic_ios
);
9976 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
9979 basic_filebuf_wchar_ctor_file(&this->filebuf
, file
);
9980 basic_istream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
, FALSE
);
9981 basic_ios
->base
.vtable
= &MSVCP_basic_ifstream_wchar_vtable
;
9985 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
9986 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
9987 static basic_ifstream_wchar
* basic_ifstream_short_ctor_file(
9988 basic_ifstream_wchar
*this, FILE *file
, MSVCP_bool virt_init
)
9990 basic_ifstream_wchar_ctor_file(this, file
, virt_init
);
9991 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ifstream_short_vtable
;
9995 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@ABV01@@Z */
9996 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@AEBV01@@Z */
9997 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_copy_ctor
, 12)
9998 basic_ifstream_wchar
* __thiscall
basic_ifstream_short_copy_ctor(basic_ifstream_wchar
*this,
9999 basic_ifstream_wchar
*copy
, MSVCP_bool virt_init
)
10001 TRACE("(%p %p %d)\n", this, copy
, virt_init
);
10002 return basic_ifstream_short_ctor_file(this, copy
->filebuf
.file
, virt_init
);
10005 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@PBDH@Z */
10006 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@PEBDH@Z */
10007 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor_name
, 16)
10008 basic_ifstream_wchar
* __thiscall
basic_ifstream_short_ctor_name(basic_ifstream_wchar
*this,
10009 const char *name
, int mode
, MSVCP_bool virt_init
)
10011 TRACE("(%p %s %d %d)\n", this, name
, mode
, virt_init
);
10013 basic_ifstream_short_ctor(this, virt_init
);
10015 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
|OPENMODE_in
, _SH_DENYNO
)) {
10016 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
10017 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
10022 /* ??1?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
10023 /* ??1?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
10024 /* ??1?$basic_ifstream@GU?$char_traits@G@std@@@std@@UAE@XZ */
10025 /* ??1?$basic_ifstream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
10026 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_dtor
, 4)
10027 void __thiscall
basic_ifstream_wchar_dtor(basic_ios_wchar
*base
)
10029 basic_ifstream_wchar
*this = basic_ifstream_wchar_from_basic_ios(base
);
10031 TRACE("(%p)\n", this);
10033 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(&this->base
));
10034 basic_filebuf_wchar_dtor(&this->filebuf
);
10037 /* ??_D?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
10038 /* ??_D?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
10039 /* ??_D?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
10040 /* ??_D?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
10041 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_vbase_dtor
, 4)
10042 void __thiscall
basic_ifstream_wchar_vbase_dtor(basic_ifstream_wchar
*this)
10044 TRACE("(%p)\n", this);
10046 basic_ifstream_wchar_dtor(basic_ifstream_wchar_to_basic_ios(this));
10047 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(&this->base
));
10050 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_vector_dtor
, 8)
10051 basic_ifstream_wchar
* __thiscall
basic_ifstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
10053 basic_ifstream_wchar
*this = basic_ifstream_wchar_from_basic_ios(base
);
10055 TRACE("(%p %x)\n", this, flags
);
10058 /* we have an array, with the number of elements stored before the first object */
10059 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
10061 for(i
=*ptr
-1; i
>=0; i
--)
10062 basic_ifstream_wchar_vbase_dtor(this+i
);
10063 MSVCRT_operator_delete(ptr
);
10065 basic_ifstream_wchar_vbase_dtor(this);
10067 MSVCRT_operator_delete(this);
10073 /* ?close@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
10074 /* ?close@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
10075 /* ?close@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
10076 /* ?close@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
10077 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_close
, 4)
10078 void __thiscall
basic_ifstream_wchar_close(basic_ifstream_wchar
*this)
10080 TRACE("(%p)\n", this);
10082 if(!basic_filebuf_wchar_close(&this->filebuf
)) {
10083 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
10084 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
10088 /* ?is_open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
10089 /* ?is_open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
10090 /* ?is_open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QBE_NXZ */
10091 /* ?is_open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
10092 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_is_open
, 4)
10093 MSVCP_bool __thiscall
basic_ifstream_wchar_is_open(const basic_ifstream_wchar
*this)
10095 TRACE("(%p)\n", this);
10096 return basic_filebuf_wchar_is_open(&this->filebuf
);
10099 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPBDH@Z */
10100 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDH@Z */
10101 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_open
, 12)
10102 void __thiscall
basic_ifstream_wchar_open(basic_ifstream_wchar
*this,
10103 const char *name
, int mode
)
10105 TRACE("(%p %s %d)\n", this, name
, mode
);
10107 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
|OPENMODE_in
, _SH_DENYNO
)) {
10108 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
10109 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
10113 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPBDF@Z */
10114 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDF@Z */
10115 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_open_old
, 12)
10116 void __thiscall
basic_ifstream_wchar_open_old(basic_ifstream_wchar
*this,
10117 const char *name
, short mode
)
10119 basic_ifstream_wchar_open(this, name
, mode
);
10122 /* ?rdbuf@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
10123 /* ?rdbuf@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
10124 /* ?rdbuf@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
10125 /* ?rdbuf@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
10126 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_rdbuf
, 4)
10127 basic_filebuf_wchar
* __thiscall
basic_ifstream_wchar_rdbuf(const basic_ifstream_wchar
*this)
10129 TRACE("(%p)\n", this);
10130 return (basic_filebuf_wchar
*)&this->filebuf
;
10133 static inline basic_ios_char
* basic_fstream_char_to_basic_ios(basic_fstream_char
*ptr
)
10135 return (basic_ios_char
*)((char*)ptr
+basic_fstream_char_vbtable1
[1]);
10138 static inline basic_fstream_char
* basic_fstream_char_from_basic_ios(basic_ios_char
*ptr
)
10140 return (basic_fstream_char
*)((char*)ptr
-basic_fstream_char_vbtable1
[1]);
10143 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@XZ */
10144 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@XZ */
10145 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor
, 8)
10146 basic_fstream_char
* __thiscall
basic_fstream_char_ctor(basic_fstream_char
*this, MSVCP_bool virt_init
)
10148 basic_ios_char
*basic_ios
;
10150 TRACE("(%p %d)\n", this, virt_init
);
10153 this->base
.base1
.vbtable
= basic_fstream_char_vbtable1
;
10154 this->base
.base2
.vbtable
= basic_fstream_char_vbtable2
;
10155 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
10156 basic_ios_char_ctor(basic_ios
);
10158 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
10161 basic_filebuf_char_ctor(&this->filebuf
);
10162 basic_iostream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
);
10163 basic_ios
->base
.vtable
= &MSVCP_basic_fstream_char_vtable
;
10167 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
10168 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
10169 static basic_fstream_char
* basic_fstream_char_ctor_file(basic_fstream_char
*this,
10170 FILE *file
, MSVCP_bool virt_init
)
10172 basic_ios_char
*basic_ios
;
10174 TRACE("(%p %p %d)\n", this, file
, virt_init
);
10177 this->base
.base1
.vbtable
= basic_fstream_char_vbtable1
;
10178 this->base
.base2
.vbtable
= basic_fstream_char_vbtable2
;
10179 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
10180 basic_ios_char_ctor(basic_ios
);
10182 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
10185 basic_filebuf_char_ctor_file(&this->filebuf
, file
);
10186 basic_iostream_char_ctor(&this->base
, &this->filebuf
.base
, FALSE
);
10187 basic_ios
->base
.vtable
= &MSVCP_basic_fstream_char_vtable
;
10191 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@ABV01@@Z */
10192 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@AEBV01@@Z */
10193 DEFINE_THISCALL_WRAPPER(basic_fstream_char_copy_ctor
, 12)
10194 basic_fstream_char
* __thiscall
basic_fstream_char_copy_ctor(basic_fstream_char
*this,
10195 basic_fstream_char
*copy
, MSVCP_bool virt_init
)
10197 TRACE("(%p %p %d)\n", this, copy
, virt_init
);
10198 return basic_fstream_char_ctor_file(this, copy
->filebuf
.file
, virt_init
);
10201 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PBDH@Z */
10202 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDH@Z */
10203 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor_name
, 16)
10204 basic_fstream_char
* __thiscall
basic_fstream_char_ctor_name(basic_fstream_char
*this,
10205 const char *name
, int mode
, MSVCP_bool virt_init
)
10207 TRACE("(%p %s %d %d)\n", this, name
, mode
, virt_init
);
10209 basic_fstream_char_ctor(this, virt_init
);
10211 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
, _SH_DENYNO
)) {
10212 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
10213 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
10218 /* ??1?$basic_fstream@DU?$char_traits@D@std@@@std@@UAE@XZ */
10219 /* ??1?$basic_fstream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
10220 DEFINE_THISCALL_WRAPPER(basic_fstream_char_dtor
, 4)
10221 void __thiscall
basic_fstream_char_dtor(basic_ios_char
*base
)
10223 basic_fstream_char
*this = basic_fstream_char_from_basic_ios(base
);
10225 TRACE("(%p)\n", this);
10227 basic_iostream_char_dtor(basic_iostream_char_to_basic_ios(&this->base
));
10228 basic_filebuf_char_dtor(&this->filebuf
);
10231 /* ??_D?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
10232 /* ??_D?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
10233 DEFINE_THISCALL_WRAPPER(basic_fstream_char_vbase_dtor
, 4)
10234 void __thiscall
basic_fstream_char_vbase_dtor(basic_fstream_char
*this)
10236 TRACE("(%p)\n", this);
10238 basic_fstream_char_dtor(basic_fstream_char_to_basic_ios(this));
10239 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base
.base1
));
10242 DEFINE_THISCALL_WRAPPER(basic_fstream_char_vector_dtor
, 8)
10243 basic_fstream_char
* __thiscall
basic_fstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
10245 basic_fstream_char
*this = basic_fstream_char_from_basic_ios(base
);
10247 TRACE("(%p %x)\n", this, flags
);
10250 /* we have an array, with the number of elements stored before the first object */
10251 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
10253 for(i
=*ptr
-1; i
>=0; i
--)
10254 basic_fstream_char_vbase_dtor(this+i
);
10255 MSVCRT_operator_delete(ptr
);
10257 basic_fstream_char_vbase_dtor(this);
10259 MSVCRT_operator_delete(this);
10265 /* ?close@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
10266 /* ?close@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
10267 DEFINE_THISCALL_WRAPPER(basic_fstream_char_close
, 4)
10268 void __thiscall
basic_fstream_char_close(basic_fstream_char
*this)
10270 TRACE("(%p)\n", this);
10272 if(!basic_filebuf_char_close(&this->filebuf
)) {
10273 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
10274 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
10278 /* ?is_open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QBE_NXZ */
10279 /* ?is_open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
10280 DEFINE_THISCALL_WRAPPER(basic_fstream_char_is_open
, 4)
10281 MSVCP_bool __thiscall
basic_fstream_char_is_open(const basic_fstream_char
*this)
10283 TRACE("(%p)\n", this);
10284 return basic_filebuf_char_is_open(&this->filebuf
);
10287 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPBDH@Z */
10288 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDH@Z */
10289 DEFINE_THISCALL_WRAPPER(basic_fstream_char_open
, 12)
10290 void __thiscall
basic_fstream_char_open(basic_fstream_char
*this,
10291 const char *name
, int mode
)
10293 TRACE("(%p %s %d)\n", this, name
, mode
);
10295 if(!basic_filebuf_char_open(&this->filebuf
, name
, mode
, _SH_DENYNO
)) {
10296 basic_ios_char
*basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
10297 basic_ios_char_setstate(basic_ios
, IOSTATE_failbit
);
10301 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPBDF@Z */
10302 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDF@Z */
10303 DEFINE_THISCALL_WRAPPER(basic_fstream_char_open_old
, 12)
10304 void __thiscall
basic_fstream_char_open_old(basic_fstream_char
*this,
10305 const char *name
, int mode
)
10307 basic_fstream_char_open(this, name
, mode
);
10310 /* ?rdbuf@?$basic_fstream@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
10311 /* ?rdbuf@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
10312 DEFINE_THISCALL_WRAPPER(basic_fstream_char_rdbuf
, 4)
10313 basic_filebuf_char
* __thiscall
basic_fstream_char_rdbuf(const basic_fstream_char
*this)
10315 TRACE("(%p)\n", this);
10316 return (basic_filebuf_char
*)&this->filebuf
;
10319 static inline basic_ios_wchar
* basic_fstream_wchar_to_basic_ios(basic_fstream_wchar
*ptr
)
10321 return (basic_ios_wchar
*)((char*)ptr
+basic_fstream_wchar_vbtable1
[1]);
10324 static inline basic_fstream_wchar
* basic_fstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
10326 return (basic_fstream_wchar
*)((char*)ptr
-basic_fstream_wchar_vbtable1
[1]);
10329 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@XZ */
10330 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@XZ */
10331 static basic_fstream_wchar
* basic_fstream_wchar_ctor(basic_fstream_wchar
*this, MSVCP_bool virt_init
)
10333 basic_ios_wchar
*basic_ios
;
10335 TRACE("(%p %d)\n", this, virt_init
);
10338 this->base
.base1
.vbtable
= basic_fstream_wchar_vbtable1
;
10339 this->base
.base2
.vbtable
= basic_fstream_wchar_vbtable2
;
10340 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
10341 basic_ios_wchar_ctor(basic_ios
);
10343 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
10346 basic_filebuf_wchar_ctor(&this->filebuf
);
10347 basic_iostream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
);
10348 basic_ios
->base
.vtable
= &MSVCP_basic_fstream_wchar_vtable
;
10352 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@XZ */
10353 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@XZ */
10354 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor
, 8)
10355 basic_fstream_wchar
* __thiscall
basic_fstream_short_ctor(basic_fstream_wchar
*this, MSVCP_bool virt_init
)
10357 basic_fstream_wchar_ctor(this, virt_init
);
10358 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_fstream_short_vtable
;
10362 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
10363 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
10364 static basic_fstream_wchar
* basic_fstream_wchar_ctor_file(basic_fstream_wchar
*this,
10365 FILE *file
, MSVCP_bool virt_init
)
10367 basic_ios_wchar
*basic_ios
;
10369 TRACE("(%p %p %d)\n", this, file
, virt_init
);
10372 this->base
.base1
.vbtable
= basic_fstream_wchar_vbtable1
;
10373 this->base
.base2
.vbtable
= basic_fstream_wchar_vbtable2
;
10374 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
10375 basic_ios_wchar_ctor(basic_ios
);
10377 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
10380 basic_filebuf_wchar_ctor_file(&this->filebuf
, file
);
10381 basic_iostream_wchar_ctor(&this->base
, &this->filebuf
.base
, FALSE
);
10382 basic_ios
->base
.vtable
= &MSVCP_basic_fstream_wchar_vtable
;
10386 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
10387 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
10388 static basic_fstream_wchar
* basic_fstream_short_ctor_file(basic_fstream_wchar
*this,
10389 FILE *file
, MSVCP_bool virt_init
)
10391 basic_fstream_wchar_ctor_file(this, file
, virt_init
);
10392 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_fstream_short_vtable
;
10396 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@ABV01@@Z */
10397 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@AEBV01@@Z */
10398 DEFINE_THISCALL_WRAPPER(basic_fstream_short_copy_ctor
, 12)
10399 basic_fstream_wchar
* __thiscall
basic_fstream_short_copy_ctor(basic_fstream_wchar
*this,
10400 basic_fstream_wchar
*copy
, MSVCP_bool virt_init
)
10402 TRACE("(%p %p %d)\n", this, copy
, virt_init
);
10403 return basic_fstream_short_ctor_file(this, copy
->filebuf
.file
, virt_init
);
10406 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PB_WHH@Z */
10407 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEB_WHH@Z */
10408 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor_name
, 16)
10409 basic_fstream_wchar
* __thiscall
basic_fstream_short_ctor_name(basic_fstream_wchar
*this,
10410 const char *name
, int mode
, MSVCP_bool virt_init
)
10412 TRACE("(%p %s %d %d)\n", this, name
, mode
, virt_init
);
10414 basic_fstream_short_ctor(this, virt_init
);
10416 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
, _SH_DENYNO
)) {
10417 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
10418 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
10423 /* ??1?$basic_fstream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
10424 /* ??1?$basic_fstream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
10425 /* ??1?$basic_fstream@GU?$char_traits@G@std@@@std@@UAE@XZ */
10426 /* ??1?$basic_fstream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
10427 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_dtor
, 4)
10428 void __thiscall
basic_fstream_wchar_dtor(basic_ios_wchar
*base
)
10430 basic_fstream_wchar
*this = basic_fstream_wchar_from_basic_ios(base
);
10432 TRACE("(%p)\n", this);
10434 basic_iostream_wchar_dtor(basic_iostream_wchar_to_basic_ios(&this->base
));
10435 basic_filebuf_wchar_dtor(&this->filebuf
);
10438 /* ??_D?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
10439 /* ??_D?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
10440 /* ??_D?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
10441 /* ??_D?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
10442 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_vbase_dtor
, 4)
10443 void __thiscall
basic_fstream_wchar_vbase_dtor(basic_fstream_wchar
*this)
10445 TRACE("(%p)\n", this);
10447 basic_fstream_wchar_dtor(basic_fstream_wchar_to_basic_ios(this));
10448 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(&this->base
.base1
));
10451 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_vector_dtor
, 8)
10452 basic_fstream_wchar
* __thiscall
basic_fstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
10454 basic_fstream_wchar
*this = basic_fstream_wchar_from_basic_ios(base
);
10456 TRACE("(%p %x)\n", this, flags
);
10459 /* we have an array, with the number of elements stored before the first object */
10460 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
10462 for(i
=*ptr
-1; i
>=0; i
--)
10463 basic_fstream_wchar_vbase_dtor(this+i
);
10464 MSVCRT_operator_delete(ptr
);
10466 basic_fstream_wchar_vbase_dtor(this);
10468 MSVCRT_operator_delete(this);
10474 /* ?close@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
10475 /* ?close@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
10476 /* ?close@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
10477 /* ?close@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
10478 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_close
, 4)
10479 void __thiscall
basic_fstream_wchar_close(basic_fstream_wchar
*this)
10481 TRACE("(%p)\n", this);
10483 if(!basic_filebuf_wchar_close(&this->filebuf
)) {
10484 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
10485 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
10489 /* ?is_open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
10490 /* ?is_open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
10491 /* ?is_open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QBE_NXZ */
10492 /* ?is_open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
10493 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_is_open
, 4)
10494 MSVCP_bool __thiscall
basic_fstream_wchar_is_open(const basic_fstream_wchar
*this)
10496 TRACE("(%p)\n", this);
10497 return basic_filebuf_wchar_is_open(&this->filebuf
);
10500 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDH@Z */
10501 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDH@Z */
10502 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_open
, 12)
10503 void __thiscall
basic_fstream_wchar_open(basic_fstream_wchar
*this,
10504 const char *name
, int mode
)
10506 TRACE("(%p %s %d)\n", this, name
, mode
);
10508 if(!basic_filebuf_wchar_open(&this->filebuf
, name
, mode
, _SH_DENYNO
)) {
10509 basic_ios_wchar
*basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
10510 basic_ios_wchar_setstate(basic_ios
, IOSTATE_failbit
);
10514 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDF@Z */
10515 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDF@Z */
10516 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_open_old
, 12)
10517 void __thiscall
basic_fstream_wchar_open_old(basic_fstream_wchar
*this,
10518 const char *name
, int mode
)
10520 basic_fstream_wchar_open(this, name
, mode
);
10523 /* ?rdbuf@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
10524 /* ?rdbuf@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
10525 /* ?rdbuf@?$basic_fstream@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
10526 /* ?rdbuf@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
10527 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_rdbuf
, 4)
10528 basic_filebuf_wchar
* __thiscall
basic_fstream_wchar_rdbuf(const basic_fstream_wchar
*this)
10530 TRACE("(%p)\n", this);
10531 return (basic_filebuf_wchar
*)&this->filebuf
;
10534 static inline basic_ios_char
* basic_ostringstream_char_to_basic_ios(basic_ostringstream_char
*ptr
)
10536 return (basic_ios_char
*)((char*)ptr
+basic_ostringstream_char_vbtable
[1]);
10539 static inline basic_ostringstream_char
* basic_ostringstream_char_from_basic_ios(basic_ios_char
*ptr
)
10541 return (basic_ostringstream_char
*)((char*)ptr
-basic_ostringstream_char_vbtable
[1]);
10544 /* ??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 */
10545 /* ??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 */
10546 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_ctor_str
, 16)
10547 basic_ostringstream_char
* __thiscall
basic_ostringstream_char_ctor_str(basic_ostringstream_char
*this,
10548 const basic_string_char
*str
, int mode
, MSVCP_bool virt_init
)
10550 basic_ios_char
*basic_ios
;
10552 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
10555 this->base
.vbtable
= basic_ostringstream_char_vbtable
;
10556 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
10557 basic_ios_char_ctor(basic_ios
);
10559 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
10562 basic_stringbuf_char_ctor_str(&this->strbuf
, str
, mode
|OPENMODE_out
);
10563 basic_ostream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
, TRUE
, FALSE
);
10564 basic_ios
->base
.vtable
= &MSVCP_basic_ostringstream_char_vtable
;
10568 /* ??0?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
10569 /* ??0?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
10570 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_ctor_mode
, 12)
10571 basic_ostringstream_char
* __thiscall
basic_ostringstream_char_ctor_mode(
10572 basic_ostringstream_char
*this, int mode
, MSVCP_bool virt_init
)
10574 basic_ios_char
*basic_ios
;
10576 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
10579 this->base
.vbtable
= basic_ostringstream_char_vbtable
;
10580 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
10581 basic_ios_char_ctor(basic_ios
);
10583 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
10586 basic_stringbuf_char_ctor_mode(&this->strbuf
, mode
|OPENMODE_out
);
10587 basic_ostream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
, TRUE
, FALSE
);
10588 basic_ios
->base
.vtable
= &MSVCP_basic_ostringstream_char_vtable
;
10592 /* ??_F?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
10593 /* ??_F?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
10594 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_ctor
, 4)
10595 basic_ostringstream_char
* __thiscall
basic_ostringstream_char_ctor(
10596 basic_ostringstream_char
*this)
10598 return basic_ostringstream_char_ctor_mode(this, 0, TRUE
);
10601 /* ??1?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
10602 /* ??1?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
10603 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_dtor
, 4)
10604 void __thiscall
basic_ostringstream_char_dtor(basic_ios_char
*base
)
10606 basic_ostringstream_char
*this = basic_ostringstream_char_from_basic_ios(base
);
10608 TRACE("(%p)\n", this);
10610 basic_stringbuf_char_dtor(&this->strbuf
);
10611 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&this->base
));
10614 /* ??_D?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
10615 /* ??_D?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
10616 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_vbase_dtor
, 4)
10617 void __thiscall
basic_ostringstream_char_vbase_dtor(basic_ostringstream_char
*this)
10619 TRACE("(%p)\n", this);
10621 basic_ostringstream_char_dtor(basic_ostringstream_char_to_basic_ios(this));
10622 basic_ios_char_dtor(basic_ostream_char_get_basic_ios(&this->base
));
10625 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_vector_dtor
, 8)
10626 basic_ostringstream_char
* __thiscall
basic_ostringstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
10628 basic_ostringstream_char
*this = basic_ostringstream_char_from_basic_ios(base
);
10630 TRACE("(%p %x)\n", this, flags
);
10633 /* we have an array, with the number of elements stored before the first object */
10634 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
10636 for(i
=*ptr
-1; i
>=0; i
--)
10637 basic_ostringstream_char_vbase_dtor(this+i
);
10638 MSVCRT_operator_delete(ptr
);
10640 basic_ostringstream_char_vbase_dtor(this);
10642 MSVCRT_operator_delete(this);
10648 /* ?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 */
10649 /* ?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 */
10650 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_rdbuf
, 4)
10651 basic_stringbuf_char
* __thiscall
basic_ostringstream_char_rdbuf(const basic_ostringstream_char
*this)
10653 TRACE("(%p)\n", this);
10654 return (basic_stringbuf_char
*)&this->strbuf
;
10657 /* ?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 */
10658 /* ?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 */
10659 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_str_set
, 8)
10660 void __thiscall
basic_ostringstream_char_str_set(basic_ostringstream_char
*this, const basic_string_char
*str
)
10662 TRACE("(%p %p)\n", this, str
);
10663 basic_stringbuf_char_str_set(&this->strbuf
, str
);
10666 /* ?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 */
10667 /* ?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 */
10668 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_str_get
, 8)
10669 basic_string_char
* __thiscall
basic_ostringstream_char_str_get(const basic_ostringstream_char
*this, basic_string_char
*ret
)
10671 TRACE("(%p %p)\n", this, ret
);
10672 return basic_stringbuf_char_str_get(&this->strbuf
, ret
);
10675 static inline basic_ios_wchar
* basic_ostringstream_wchar_to_basic_ios(basic_ostringstream_wchar
*ptr
)
10677 return (basic_ios_wchar
*)((char*)ptr
+basic_ostringstream_wchar_vbtable
[1]);
10680 static inline basic_ostringstream_wchar
* basic_ostringstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
10682 return (basic_ostringstream_wchar
*)((char*)ptr
-basic_ostringstream_wchar_vbtable
[1]);
10685 /* ??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 */
10686 /* ??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 */
10687 static basic_ostringstream_wchar
* basic_ostringstream_wchar_ctor_str(basic_ostringstream_wchar
*this,
10688 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
10690 basic_ios_wchar
*basic_ios
;
10692 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
10695 this->base
.vbtable
= basic_ostringstream_wchar_vbtable
;
10696 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
10697 basic_ios_wchar_ctor(basic_ios
);
10699 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
10702 basic_stringbuf_wchar_ctor_str(&this->strbuf
, str
, mode
|OPENMODE_out
);
10703 basic_ostream_short_ctor(&this->base
, &this->strbuf
.base
, FALSE
, TRUE
, FALSE
);
10704 basic_ios
->base
.vtable
= &MSVCP_basic_ostringstream_wchar_vtable
;
10708 /* ??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 */
10709 /* ??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 */
10710 DEFINE_THISCALL_WRAPPER(basic_ostringstream_short_ctor_str
, 16)
10711 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_short_ctor_str(basic_ostringstream_wchar
*this,
10712 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
10714 basic_ostringstream_wchar_ctor_str(this, str
, mode
, virt_init
);
10715 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ostringstream_short_vtable
;
10719 /* ??0?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
10720 /* ??0?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
10721 static basic_ostringstream_wchar
* basic_ostringstream_wchar_ctor_mode(
10722 basic_ostringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
10724 basic_ios_wchar
*basic_ios
;
10726 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
10729 this->base
.vbtable
= basic_ostringstream_wchar_vbtable
;
10730 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
10731 basic_ios_wchar_ctor(basic_ios
);
10733 basic_ios
= basic_ostream_wchar_get_basic_ios(&this->base
);
10736 basic_stringbuf_wchar_ctor_mode(&this->strbuf
, mode
|OPENMODE_out
);
10737 basic_ostream_short_ctor(&this->base
, &this->strbuf
.base
, FALSE
, TRUE
, FALSE
);
10738 basic_ios
->base
.vtable
= &MSVCP_basic_ostringstream_wchar_vtable
;
10742 /* ??0?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
10743 /* ??0?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
10744 DEFINE_THISCALL_WRAPPER(basic_ostringstream_short_ctor_mode
, 12)
10745 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_short_ctor_mode(
10746 basic_ostringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
10748 basic_ostringstream_wchar_ctor_mode(this, mode
, virt_init
);
10749 basic_ostream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_ostringstream_short_vtable
;
10753 /* ??_F?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
10754 /* ??_F?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
10755 DEFINE_THISCALL_WRAPPER(basic_ostringstream_short_ctor
, 4)
10756 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_short_ctor(
10757 basic_ostringstream_wchar
*this)
10759 return basic_ostringstream_short_ctor_mode(this, 0, TRUE
);
10762 /* ??1?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
10763 /* ??1?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
10764 /* ??1?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
10765 /* ??1?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
10766 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_dtor
, 4)
10767 void __thiscall
basic_ostringstream_wchar_dtor(basic_ios_wchar
*base
)
10769 basic_ostringstream_wchar
*this = basic_ostringstream_wchar_from_basic_ios(base
);
10771 TRACE("(%p)\n", this);
10773 basic_stringbuf_wchar_dtor(&this->strbuf
);
10774 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(&this->base
));
10777 /* ??_D?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
10778 /* ??_D?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
10779 /* ??_D?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
10780 /* ??_D?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
10781 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_vbase_dtor
, 4)
10782 void __thiscall
basic_ostringstream_wchar_vbase_dtor(basic_ostringstream_wchar
*this)
10784 TRACE("(%p)\n", this);
10786 basic_ostringstream_wchar_dtor(basic_ostringstream_wchar_to_basic_ios(this));
10787 basic_ios_wchar_dtor(basic_ostream_wchar_get_basic_ios(&this->base
));
10790 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_vector_dtor
, 8)
10791 basic_ostringstream_wchar
* __thiscall
basic_ostringstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
10793 basic_ostringstream_wchar
*this = basic_ostringstream_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_ostringstream_wchar_vbase_dtor(this+i
);
10803 MSVCRT_operator_delete(ptr
);
10805 basic_ostringstream_wchar_vbase_dtor(this);
10807 MSVCRT_operator_delete(this);
10813 /* ?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 */
10814 /* ?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 */
10815 /* ?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 */
10816 /* ?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 */
10817 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_rdbuf
, 4)
10818 basic_stringbuf_wchar
* __thiscall
basic_ostringstream_wchar_rdbuf(const basic_ostringstream_wchar
*this)
10820 TRACE("(%p)\n", this);
10821 return (basic_stringbuf_wchar
*)&this->strbuf
;
10824 /* ?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 */
10825 /* ?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 */
10826 /* ?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 */
10827 /* ?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 */
10828 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_str_set
, 8)
10829 void __thiscall
basic_ostringstream_wchar_str_set(basic_ostringstream_wchar
*this, const basic_string_wchar
*str
)
10831 TRACE("(%p %p)\n", this, str
);
10832 basic_stringbuf_wchar_str_set(&this->strbuf
, str
);
10835 /* ?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 */
10836 /* ?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 */
10837 /* ?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 */
10838 /* ?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 */
10839 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_str_get
, 8)
10840 basic_string_wchar
* __thiscall
basic_ostringstream_wchar_str_get(const basic_ostringstream_wchar
*this, basic_string_wchar
*ret
)
10842 TRACE("(%p %p)\n", this, ret
);
10843 return basic_stringbuf_wchar_str_get(&this->strbuf
, ret
);
10846 static inline basic_ios_char
* basic_istringstream_char_to_basic_ios(basic_istringstream_char
*ptr
)
10848 return (basic_ios_char
*)((char*)ptr
+basic_istringstream_char_vbtable
[1]);
10851 static inline basic_istringstream_char
* basic_istringstream_char_from_basic_ios(basic_ios_char
*ptr
)
10853 return (basic_istringstream_char
*)((char*)ptr
-basic_istringstream_char_vbtable
[1]);
10856 /* ??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 */
10857 /* ??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 */
10858 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_ctor_str
, 16)
10859 basic_istringstream_char
* __thiscall
basic_istringstream_char_ctor_str(basic_istringstream_char
*this,
10860 const basic_string_char
*str
, int mode
, MSVCP_bool virt_init
)
10862 basic_ios_char
*basic_ios
;
10864 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
10867 this->base
.vbtable
= basic_istringstream_char_vbtable
;
10868 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
10869 basic_ios_char_ctor(basic_ios
);
10871 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
10874 basic_stringbuf_char_ctor_str(&this->strbuf
, str
, mode
|OPENMODE_in
);
10875 basic_istream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
10876 basic_ios
->base
.vtable
= &MSVCP_basic_istringstream_char_vtable
;
10880 /* ??0?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
10881 /* ??0?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
10882 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_ctor_mode
, 12)
10883 basic_istringstream_char
* __thiscall
basic_istringstream_char_ctor_mode(
10884 basic_istringstream_char
*this, int mode
, MSVCP_bool virt_init
)
10886 basic_ios_char
*basic_ios
;
10888 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
10891 this->base
.vbtable
= basic_istringstream_char_vbtable
;
10892 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
10893 basic_ios_char_ctor(basic_ios
);
10895 basic_ios
= basic_istream_char_get_basic_ios(&this->base
);
10898 basic_stringbuf_char_ctor_mode(&this->strbuf
, mode
|OPENMODE_in
);
10899 basic_istream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
10900 basic_ios
->base
.vtable
= &MSVCP_basic_istringstream_char_vtable
;
10904 /* ??_F?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
10905 /* ??_F?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
10906 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_ctor
, 4)
10907 basic_istringstream_char
* __thiscall
basic_istringstream_char_ctor(
10908 basic_istringstream_char
*this)
10910 return basic_istringstream_char_ctor_mode(this, 0, TRUE
);
10913 /* ??1?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
10914 /* ??1?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
10915 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_dtor
, 4)
10916 void __thiscall
basic_istringstream_char_dtor(basic_ios_char
*base
)
10918 basic_istringstream_char
*this = basic_istringstream_char_from_basic_ios(base
);
10920 TRACE("(%p)\n", this);
10922 basic_stringbuf_char_dtor(&this->strbuf
);
10923 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&this->base
));
10926 /* ??_D?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
10927 /* ??_D?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
10928 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_vbase_dtor
, 4)
10929 void __thiscall
basic_istringstream_char_vbase_dtor(basic_istringstream_char
*this)
10931 TRACE("(%p)\n", this);
10933 basic_istringstream_char_dtor(basic_istringstream_char_to_basic_ios(this));
10934 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base
));
10937 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_vector_dtor
, 8)
10938 basic_istringstream_char
* __thiscall
basic_istringstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
10940 basic_istringstream_char
*this = basic_istringstream_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_istringstream_char_vbase_dtor(this+i
);
10950 MSVCRT_operator_delete(ptr
);
10952 basic_istringstream_char_vbase_dtor(this);
10954 MSVCRT_operator_delete(this);
10960 /* ?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 */
10961 /* ?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 */
10962 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_rdbuf
, 4)
10963 basic_stringbuf_char
* __thiscall
basic_istringstream_char_rdbuf(const basic_istringstream_char
*this)
10965 TRACE("(%p)\n", this);
10966 return (basic_stringbuf_char
*)&this->strbuf
;
10969 /* ?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 */
10970 /* ?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 */
10971 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_str_set
, 8)
10972 void __thiscall
basic_istringstream_char_str_set(basic_istringstream_char
*this, const basic_string_char
*str
)
10974 TRACE("(%p %p)\n", this, str
);
10975 basic_stringbuf_char_str_set(&this->strbuf
, str
);
10978 /* ?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 */
10979 /* ?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 */
10980 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_str_get
, 8)
10981 basic_string_char
* __thiscall
basic_istringstream_char_str_get(const basic_istringstream_char
*this, basic_string_char
*ret
)
10983 TRACE("(%p %p)\n", this, ret
);
10984 return basic_stringbuf_char_str_get(&this->strbuf
, ret
);
10987 static inline basic_ios_wchar
* basic_istringstream_wchar_to_basic_ios(basic_istringstream_wchar
*ptr
)
10989 return (basic_ios_wchar
*)((char*)ptr
+basic_istringstream_wchar_vbtable
[1]);
10992 static inline basic_istringstream_wchar
* basic_istringstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
10994 return (basic_istringstream_wchar
*)((char*)ptr
-basic_istringstream_wchar_vbtable
[1]);
10997 /* ??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 */
10998 /* ??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 */
10999 static basic_istringstream_wchar
* basic_istringstream_wchar_ctor_str(basic_istringstream_wchar
*this,
11000 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
11002 basic_ios_wchar
*basic_ios
;
11004 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
11007 this->base
.vbtable
= basic_istringstream_wchar_vbtable
;
11008 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
11009 basic_ios_wchar_ctor(basic_ios
);
11011 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
11014 basic_stringbuf_wchar_ctor_str(&this->strbuf
, str
, mode
|OPENMODE_in
);
11015 basic_istream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
11016 basic_ios
->base
.vtable
= &MSVCP_basic_istringstream_wchar_vtable
;
11020 /* ??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 */
11021 /* ??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 */
11022 DEFINE_THISCALL_WRAPPER(basic_istringstream_short_ctor_str
, 16)
11023 basic_istringstream_wchar
* __thiscall
basic_istringstream_short_ctor_str(basic_istringstream_wchar
*this,
11024 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
11026 basic_istringstream_wchar_ctor_str(this, str
, mode
, virt_init
);
11027 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_istringstream_short_vtable
;
11031 /* ??0?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
11032 /* ??0?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
11033 static basic_istringstream_wchar
* basic_istringstream_wchar_ctor_mode(
11034 basic_istringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
11036 basic_ios_wchar
*basic_ios
;
11038 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
11041 this->base
.vbtable
= basic_istringstream_wchar_vbtable
;
11042 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
11043 basic_ios_wchar_ctor(basic_ios
);
11045 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
);
11048 basic_stringbuf_wchar_ctor_mode(&this->strbuf
, mode
|OPENMODE_in
);
11049 basic_istream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
, FALSE
);
11050 basic_ios
->base
.vtable
= &MSVCP_basic_istringstream_wchar_vtable
;
11054 /* ??0?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
11055 /* ??0?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
11056 DEFINE_THISCALL_WRAPPER(basic_istringstream_short_ctor_mode
, 12)
11057 basic_istringstream_wchar
* __thiscall
basic_istringstream_short_ctor_mode(
11058 basic_istringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
11060 basic_istringstream_wchar_ctor_mode(this, mode
, virt_init
);
11061 basic_istream_wchar_get_basic_ios(&this->base
)->base
.vtable
= &MSVCP_basic_istringstream_short_vtable
;
11065 /* ??_F?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
11066 /* ??_F?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
11067 DEFINE_THISCALL_WRAPPER(basic_istringstream_short_ctor
, 4)
11068 basic_istringstream_wchar
* __thiscall
basic_istringstream_short_ctor(
11069 basic_istringstream_wchar
*this)
11071 return basic_istringstream_short_ctor_mode(this, 0, TRUE
);
11074 /* ??1?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
11075 /* ??1?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
11076 /* ??1?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
11077 /* ??1?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
11078 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_dtor
, 4)
11079 void __thiscall
basic_istringstream_wchar_dtor(basic_ios_wchar
*base
)
11081 basic_istringstream_wchar
*this = basic_istringstream_wchar_from_basic_ios(base
);
11083 TRACE("(%p)\n", this);
11085 basic_stringbuf_wchar_dtor(&this->strbuf
);
11086 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(&this->base
));
11089 /* ??_D?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
11090 /* ??_D?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
11091 /* ??_D?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
11092 /* ??_D?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
11093 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_vbase_dtor
, 4)
11094 void __thiscall
basic_istringstream_wchar_vbase_dtor(basic_istringstream_wchar
*this)
11096 TRACE("(%p)\n", this);
11098 basic_istringstream_wchar_dtor(basic_istringstream_wchar_to_basic_ios(this));
11099 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(&this->base
));
11102 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_vector_dtor
, 8)
11103 basic_istringstream_wchar
* __thiscall
basic_istringstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
11105 basic_istringstream_wchar
*this = basic_istringstream_wchar_from_basic_ios(base
);
11107 TRACE("(%p %x)\n", this, flags
);
11110 /* we have an array, with the number of elements stored before the first object */
11111 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11113 for(i
=*ptr
-1; i
>=0; i
--)
11114 basic_istringstream_wchar_vbase_dtor(this+i
);
11115 MSVCRT_operator_delete(ptr
);
11117 basic_istringstream_wchar_vbase_dtor(this);
11119 MSVCRT_operator_delete(this);
11125 /* ?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 */
11126 /* ?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 */
11127 /* ?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 */
11128 /* ?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 */
11129 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_rdbuf
, 4)
11130 basic_stringbuf_wchar
* __thiscall
basic_istringstream_wchar_rdbuf(const basic_istringstream_wchar
*this)
11132 TRACE("(%p)\n", this);
11133 return (basic_stringbuf_wchar
*)&this->strbuf
;
11136 /* ?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 */
11137 /* ?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 */
11138 /* ?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 */
11139 /* ?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 */
11140 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_str_set
, 8)
11141 void __thiscall
basic_istringstream_wchar_str_set(basic_istringstream_wchar
*this, const basic_string_wchar
*str
)
11143 TRACE("(%p %p)\n", this, str
);
11144 basic_stringbuf_wchar_str_set(&this->strbuf
, str
);
11147 /* ?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 */
11148 /* ?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 */
11149 /* ?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 */
11150 /* ?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 */
11151 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_str_get
, 8)
11152 basic_string_wchar
* __thiscall
basic_istringstream_wchar_str_get(const basic_istringstream_wchar
*this, basic_string_wchar
*ret
)
11154 TRACE("(%p %p)\n", this, ret
);
11155 return basic_stringbuf_wchar_str_get(&this->strbuf
, ret
);
11158 static inline basic_ios_char
* basic_stringstream_char_to_basic_ios(basic_stringstream_char
*ptr
)
11160 return (basic_ios_char
*)((char*)ptr
+basic_stringstream_char_vbtable1
[1]);
11163 static inline basic_stringstream_char
* basic_stringstream_char_from_basic_ios(basic_ios_char
*ptr
)
11165 return (basic_stringstream_char
*)((char*)ptr
-basic_stringstream_char_vbtable1
[1]);
11168 /* ??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 */
11169 /* ??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 */
11170 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_ctor_str
, 16)
11171 basic_stringstream_char
* __thiscall
basic_stringstream_char_ctor_str(basic_stringstream_char
*this,
11172 const basic_string_char
*str
, int mode
, MSVCP_bool virt_init
)
11174 basic_ios_char
*basic_ios
;
11176 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
11179 this->base
.base1
.vbtable
= basic_stringstream_char_vbtable1
;
11180 this->base
.base2
.vbtable
= basic_stringstream_char_vbtable2
;
11181 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
11182 basic_ios_char_ctor(basic_ios
);
11184 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
11187 basic_stringbuf_char_ctor_str(&this->strbuf
, str
, mode
);
11188 basic_iostream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
);
11189 basic_ios
->base
.vtable
= &MSVCP_basic_stringstream_char_vtable
;
11193 /* ??0?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
11194 /* ??0?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
11195 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_ctor_mode
, 12)
11196 basic_stringstream_char
* __thiscall
basic_stringstream_char_ctor_mode(
11197 basic_stringstream_char
*this, int mode
, MSVCP_bool virt_init
)
11199 basic_ios_char
*basic_ios
;
11201 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
11204 this->base
.base1
.vbtable
= basic_stringstream_char_vbtable1
;
11205 this->base
.base2
.vbtable
= basic_stringstream_char_vbtable2
;
11206 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
11207 basic_ios_char_ctor(basic_ios
);
11209 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
11212 basic_stringbuf_char_ctor_mode(&this->strbuf
, mode
);
11213 basic_iostream_char_ctor(&this->base
, &this->strbuf
.base
, FALSE
);
11214 basic_ios
->base
.vtable
= &MSVCP_basic_stringstream_char_vtable
;
11218 /* ??_F?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
11219 /* ??_F?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
11220 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_ctor
, 4)
11221 basic_stringstream_char
* __thiscall
basic_stringstream_char_ctor(
11222 basic_stringstream_char
*this)
11224 return basic_stringstream_char_ctor_mode(
11225 this, OPENMODE_out
|OPENMODE_in
, TRUE
);
11228 /* ??1?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
11229 /* ??1?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
11230 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_dtor
, 4)
11231 void __thiscall
basic_stringstream_char_dtor(basic_ios_char
*base
)
11233 basic_stringstream_char
*this = basic_stringstream_char_from_basic_ios(base
);
11235 TRACE("(%p)\n", this);
11237 basic_iostream_char_dtor(basic_iostream_char_to_basic_ios(&this->base
));
11238 basic_stringbuf_char_dtor(&this->strbuf
);
11241 /* ??_D?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
11242 /* ??_D?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
11243 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_vbase_dtor
, 4)
11244 void __thiscall
basic_stringstream_char_vbase_dtor(basic_stringstream_char
*this)
11246 TRACE("(%p)\n", this);
11248 basic_stringstream_char_dtor(basic_stringstream_char_to_basic_ios(this));
11249 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base
.base1
));
11252 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_vector_dtor
, 8)
11253 basic_stringstream_char
* __thiscall
basic_stringstream_char_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
11255 basic_stringstream_char
*this = basic_stringstream_char_from_basic_ios(base
);
11257 TRACE("(%p %x)\n", this, flags
);
11260 /* we have an array, with the number of elements stored before the first object */
11261 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11263 for(i
=*ptr
-1; i
>=0; i
--)
11264 basic_stringstream_char_vbase_dtor(this+i
);
11265 MSVCRT_operator_delete(ptr
);
11267 basic_stringstream_char_vbase_dtor(this);
11269 MSVCRT_operator_delete(this);
11275 /* ?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 */
11276 /* ?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 */
11277 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_rdbuf
, 4)
11278 basic_stringbuf_char
* __thiscall
basic_stringstream_char_rdbuf(const basic_stringstream_char
*this)
11280 TRACE("(%p)\n", this);
11281 return (basic_stringbuf_char
*)&this->strbuf
;
11284 /* ?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 */
11285 /* ?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 */
11286 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_str_set
, 8)
11287 void __thiscall
basic_stringstream_char_str_set(basic_stringstream_char
*this, const basic_string_char
*str
)
11289 TRACE("(%p %p)\n", this, str
);
11290 basic_stringbuf_char_str_set(&this->strbuf
, str
);
11293 /* ?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 */
11294 /* ?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 */
11295 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_str_get
, 8)
11296 basic_string_char
* __thiscall
basic_stringstream_char_str_get(const basic_stringstream_char
*this, basic_string_char
*ret
)
11298 TRACE("(%p %p)\n", this, ret
);
11299 return basic_stringbuf_char_str_get(&this->strbuf
, ret
);
11302 static inline basic_ios_wchar
* basic_stringstream_wchar_to_basic_ios(basic_stringstream_wchar
*ptr
)
11304 return (basic_ios_wchar
*)((char*)ptr
+basic_stringstream_wchar_vbtable1
[1]);
11307 static inline basic_stringstream_wchar
* basic_stringstream_wchar_from_basic_ios(basic_ios_wchar
*ptr
)
11309 return (basic_stringstream_wchar
*)((char*)ptr
-basic_stringstream_wchar_vbtable1
[1]);
11312 /* ??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 */
11313 /* ??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 */
11314 static basic_stringstream_wchar
* basic_stringstream_wchar_ctor_str(basic_stringstream_wchar
*this,
11315 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
11317 basic_ios_wchar
*basic_ios
;
11319 TRACE("(%p %p %d %d)\n", this, str
, mode
, virt_init
);
11322 this->base
.base1
.vbtable
= basic_stringstream_wchar_vbtable1
;
11323 this->base
.base2
.vbtable
= basic_stringstream_wchar_vbtable2
;
11324 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
11325 basic_ios_wchar_ctor(basic_ios
);
11327 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
11330 basic_stringbuf_wchar_ctor_str(&this->strbuf
, str
, mode
);
11331 basic_iostream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
);
11332 basic_ios
->base
.vtable
= &MSVCP_basic_stringstream_wchar_vtable
;
11336 /* ??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 */
11337 /* ??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 */
11338 DEFINE_THISCALL_WRAPPER(basic_stringstream_short_ctor_str
, 16)
11339 basic_stringstream_wchar
* __thiscall
basic_stringstream_short_ctor_str(basic_stringstream_wchar
*this,
11340 const basic_string_wchar
*str
, int mode
, MSVCP_bool virt_init
)
11342 basic_stringstream_wchar_ctor_str(this, str
, mode
, virt_init
);
11343 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_stringstream_short_vtable
;
11347 /* ??0?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
11348 /* ??0?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
11349 static basic_stringstream_wchar
* basic_stringstream_wchar_ctor_mode(
11350 basic_stringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
11352 basic_ios_wchar
*basic_ios
;
11354 TRACE("(%p %d %d)\n", this, mode
, virt_init
);
11357 this->base
.base1
.vbtable
= basic_stringstream_wchar_vbtable1
;
11358 this->base
.base2
.vbtable
= basic_stringstream_wchar_vbtable2
;
11359 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
11360 basic_ios_wchar_ctor(basic_ios
);
11362 basic_ios
= basic_istream_wchar_get_basic_ios(&this->base
.base1
);
11365 basic_stringbuf_wchar_ctor_mode(&this->strbuf
, mode
);
11366 basic_iostream_wchar_ctor(&this->base
, &this->strbuf
.base
, FALSE
);
11367 basic_ios
->base
.vtable
= &MSVCP_basic_stringstream_wchar_vtable
;
11371 /* ??0?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
11372 /* ??0?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
11373 DEFINE_THISCALL_WRAPPER(basic_stringstream_short_ctor_mode
, 12)
11374 basic_stringstream_wchar
* __thiscall
basic_stringstream_short_ctor_mode(
11375 basic_stringstream_wchar
*this, int mode
, MSVCP_bool virt_init
)
11377 basic_stringstream_wchar_ctor_mode(this, mode
, virt_init
);
11378 basic_istream_wchar_get_basic_ios(&this->base
.base1
)->base
.vtable
= &MSVCP_basic_stringstream_short_vtable
;
11382 /* ??_F?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
11383 /* ??_F?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
11384 DEFINE_THISCALL_WRAPPER(basic_stringstream_short_ctor
, 4)
11385 basic_stringstream_wchar
* __thiscall
basic_stringstream_short_ctor(
11386 basic_stringstream_wchar
*this)
11388 return basic_stringstream_short_ctor_mode(
11389 this, OPENMODE_out
|OPENMODE_in
, TRUE
);
11392 /* ??1?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
11393 /* ??1?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
11394 /* ??1?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
11395 /* ??1?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
11396 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_dtor
, 4)
11397 void __thiscall
basic_stringstream_wchar_dtor(basic_ios_wchar
*base
)
11399 basic_stringstream_wchar
*this = basic_stringstream_wchar_from_basic_ios(base
);
11401 TRACE("(%p)\n", this);
11403 basic_iostream_wchar_dtor(basic_iostream_wchar_to_basic_ios(&this->base
));
11404 basic_stringbuf_wchar_dtor(&this->strbuf
);
11407 /* ??_D?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
11408 /* ??_D?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
11409 /* ??_D?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
11410 /* ??_D?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
11411 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_vbase_dtor
, 4)
11412 void __thiscall
basic_stringstream_wchar_vbase_dtor(basic_stringstream_wchar
*this)
11414 TRACE("(%p)\n", this);
11416 basic_stringstream_wchar_dtor(basic_stringstream_wchar_to_basic_ios(this));
11417 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(&this->base
.base1
));
11420 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_vector_dtor
, 8)
11421 basic_stringstream_wchar
* __thiscall
basic_stringstream_wchar_vector_dtor(basic_ios_wchar
*base
, unsigned int flags
)
11423 basic_stringstream_wchar
*this = basic_stringstream_wchar_from_basic_ios(base
);
11425 TRACE("(%p %x)\n", this, flags
);
11428 /* we have an array, with the number of elements stored before the first object */
11429 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11431 for(i
=*ptr
-1; i
>=0; i
--)
11432 basic_stringstream_wchar_vbase_dtor(this+i
);
11433 MSVCRT_operator_delete(ptr
);
11435 basic_stringstream_wchar_vbase_dtor(this);
11437 MSVCRT_operator_delete(this);
11443 /* ?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 */
11444 /* ?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 */
11445 /* ?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 */
11446 /* ?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 */
11447 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_rdbuf
, 4)
11448 basic_stringbuf_wchar
* __thiscall
basic_stringstream_wchar_rdbuf(const basic_stringstream_wchar
*this)
11450 TRACE("(%p)\n", this);
11451 return (basic_stringbuf_wchar
*)&this->strbuf
;
11454 /* ?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 */
11455 /* ?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 */
11456 /* ?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 */
11457 /* ?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 */
11458 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_str_set
, 8)
11459 void __thiscall
basic_stringstream_wchar_str_set(basic_stringstream_wchar
*this, const basic_string_wchar
*str
)
11461 TRACE("(%p %p)\n", this, str
);
11462 basic_stringbuf_wchar_str_set(&this->strbuf
, str
);
11465 /* ?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 */
11466 /* ?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 */
11467 /* ?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 */
11468 /* ?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 */
11469 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_str_get
, 8)
11470 basic_string_wchar
* __thiscall
basic_stringstream_wchar_str_get(const basic_stringstream_wchar
*this, basic_string_wchar
*ret
)
11472 TRACE("(%p %p)\n", this, ret
);
11473 return basic_stringbuf_wchar_str_get(&this->strbuf
, ret
);
11476 /* ?_Init@strstreambuf@std@@IAEXHPAD0H@Z */
11477 /* ?_Init@strstreambuf@std@@IEAAX_JPEAD1H@Z */
11478 DEFINE_THISCALL_WRAPPER(strstreambuf__Init
, 20)
11479 void __thiscall
strstreambuf__Init(strstreambuf
*this, streamsize len
, char *g
, char *p
, int mode
)
11481 TRACE("(%p %ld %p %p %d)\n", this, len
, g
, p
, mode
);
11483 this->minsize
= 32;
11484 this->endsave
= NULL
;
11485 this->strmode
= mode
;
11486 this->palloc
= NULL
;
11487 this->pfree
= NULL
;
11490 this->strmode
|= STRSTATE_Dynamic
;
11491 if(len
> this->minsize
)
11492 this->minsize
= len
;
11493 this->seekhigh
= NULL
;
11502 this->seekhigh
= g
+len
;
11503 basic_streambuf_char_setg(&this->base
, g
, g
, p
? p
: this->seekhigh
);
11505 basic_streambuf_char_setp(&this->base
, p
, this->seekhigh
);
11508 /* ??0strstreambuf@std@@QAE@PACH0@Z */
11509 /* ??0strstreambuf@std@@QEAA@PEAC_J0@Z */
11510 /* ??0strstreambuf@std@@QAE@PADH0@Z */
11511 /* ??0strstreambuf@std@@QEAA@PEAD_J0@Z */
11512 /* ??0strstreambuf@std@@QAE@PAEH0@Z */
11513 /* ??0strstreambuf@std@@QEAA@PEAE_J0@Z */
11514 static strstreambuf
* strstreambuf_ctor_get_put(strstreambuf
*this, char *g
, streamsize len
, char *p
)
11516 TRACE("(%p %p %ld %p)\n", this, g
, len
, p
);
11518 basic_streambuf_char_ctor(&this->base
);
11519 this->base
.vtable
= &MSVCP_strstreambuf_vtable
;
11521 strstreambuf__Init(this, len
, g
, p
, 0);
11525 /* ?_Tidy@strstreambuf@std@@IAEXXZ */
11526 /* ?_Tidy@strstreambuf@std@@IEAAXXZ */
11527 DEFINE_THISCALL_WRAPPER(strstreambuf__Tidy
, 4)
11528 void __thiscall
strstreambuf__Tidy(strstreambuf
*this)
11530 TRACE("(%p)\n", this);
11532 if((this->strmode
& STRSTATE_Allocated
) && !(this->strmode
& STRSTATE_Frozen
)) {
11534 this->pfree(basic_streambuf_char_eback(&this->base
));
11536 MSVCRT_operator_delete(basic_streambuf_char_eback(&this->base
));
11539 this->endsave
= NULL
;
11540 this->seekhigh
= NULL
;
11541 this->strmode
&= ~(STRSTATE_Allocated
| STRSTATE_Frozen
);
11542 basic_streambuf_char_setg(&this->base
, NULL
, NULL
, NULL
);
11543 basic_streambuf_char_setp(&this->base
, NULL
, NULL
);
11546 /* ??1strstreambuf@std@@UAE@XZ */
11547 /* ??1strstreambuf@std@@UEAA@XZ */
11548 DEFINE_THISCALL_WRAPPER(strstreambuf_dtor
, 4)
11549 void __thiscall
strstreambuf_dtor(strstreambuf
*this)
11551 TRACE("(%p)\n", this);
11553 strstreambuf__Tidy(this);
11554 basic_streambuf_char_dtor(&this->base
);
11557 DEFINE_THISCALL_WRAPPER(strstreambuf_vector_dtor
, 8)
11558 strstreambuf
* __thiscall
strstreambuf_vector_dtor(strstreambuf
*this, unsigned int flags
)
11560 TRACE("(%p %x)\n", this, flags
);
11562 /* we have an array, with the number of elements stored before the first object */
11563 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11565 for(i
=*ptr
-1; i
>=0; i
--)
11566 strstreambuf_dtor(this+i
);
11567 MSVCRT_operator_delete(ptr
);
11569 strstreambuf_dtor(this);
11571 MSVCRT_operator_delete(this);
11577 /* ?freeze@strstreambuf@std@@QAEX_N@Z */
11578 /* ?freeze@strstreambuf@std@@QEAAX_N@Z */
11579 DEFINE_THISCALL_WRAPPER(strstreambuf_freeze
, 8)
11580 void __thiscall
strstreambuf_freeze(strstreambuf
*this, MSVCP_bool freeze
)
11582 TRACE("(%p %d)\n", this, freeze
);
11584 if(!freeze
== !(this->strmode
*STRSTATE_Frozen
))
11588 this->strmode
|= STRSTATE_Frozen
;
11589 this->endsave
= basic_streambuf_char_epptr(&this->base
);
11590 basic_streambuf_char_setp_next(&this->base
, basic_streambuf_char_pbase(&this->base
),
11591 basic_streambuf_char_pptr(&this->base
), basic_streambuf_char_eback(&this->base
));
11593 this->strmode
&= ~STRSTATE_Frozen
;
11594 basic_streambuf_char_setp_next(&this->base
, basic_streambuf_char_pbase(&this->base
),
11595 basic_streambuf_char_pptr(&this->base
), this->endsave
);
11599 /* ?overflow@strstreambuf@std@@MAEHH@Z */
11600 /* ?overflow@strstreambuf@std@@MEAAHH@Z */
11601 DEFINE_THISCALL_WRAPPER(strstreambuf_overflow
, 8)
11602 int __thiscall
strstreambuf_overflow(strstreambuf
*this, int c
)
11604 MSVCP_size_t old_size
, size
;
11607 TRACE("(%p %d)\n", this, c
);
11612 if(this->strmode
& STRSTATE_Frozen
)
11615 ptr
= basic_streambuf_char_pptr(&this->base
);
11616 if(ptr
&& ptr
<basic_streambuf_char_epptr(&this->base
))
11617 return (unsigned char)(*basic_streambuf_char__Pninc(&this->base
) = c
);
11619 if(!(this->strmode
& STRSTATE_Dynamic
) || (this->strmode
& STRSTATE_Constant
))
11622 ptr
= basic_streambuf_char_eback(&this->base
);
11623 old_size
= ptr
? basic_streambuf_char_epptr(&this->base
) - ptr
: 0;
11625 size
= old_size
+ old_size
/2;
11626 if(size
< this->minsize
)
11627 size
= this->minsize
;
11630 buf
= this->palloc(size
);
11632 buf
= MSVCRT_operator_new(size
);
11636 memcpy(buf
, ptr
, old_size
);
11637 if(this->strmode
& STRSTATE_Allocated
) {
11641 MSVCRT_operator_delete(ptr
);
11644 this->strmode
|= STRSTATE_Allocated
;
11646 this->seekhigh
= buf
;
11647 basic_streambuf_char_setp(&this->base
, buf
, buf
+size
);
11648 basic_streambuf_char_setg(&this->base
, buf
, buf
, buf
);
11650 this->seekhigh
= this->seekhigh
-ptr
+buf
;
11651 basic_streambuf_char_setp_next(&this->base
, basic_streambuf_char_pbase(&this->base
)-ptr
+buf
,
11652 basic_streambuf_char_pptr(&this->base
)-ptr
+buf
, buf
+size
);
11653 basic_streambuf_char_setg(&this->base
, buf
, basic_streambuf_char_gptr(&this->base
)-ptr
+buf
,
11654 basic_streambuf_char_pptr(&this->base
));
11657 return (unsigned char)(*basic_streambuf_char__Pninc(&this->base
) = c
);
11660 /* ?pbackfail@strstreambuf@std@@MAEHH@Z */
11661 /* ?pbackfail@strstreambuf@std@@MEAAHH@Z */
11662 DEFINE_THISCALL_WRAPPER(strstreambuf_pbackfail
, 8)
11663 int __thiscall
strstreambuf_pbackfail(strstreambuf
*this, int c
)
11665 char *ptr
= basic_streambuf_char_gptr(&this->base
);
11667 TRACE("(%p %d)\n", this, c
);
11669 if(ptr
<=basic_streambuf_char_eback(&this->base
)
11670 || ((this->strmode
& STRSTATE_Constant
) && c
!=ptr
[-1]))
11673 basic_streambuf_char_gbump(&this->base
, -1);
11676 if(this->strmode
& STRSTATE_Constant
)
11677 return (unsigned char)c
;
11679 return (unsigned char)(ptr
[0] = c
);
11682 /* ?seekoff@strstreambuf@std@@MAE?AV?$fpos@H@2@JW4seekdir@ios_base@2@H@Z */
11683 /* ?seekoff@strstreambuf@std@@MEAA?AV?$fpos@H@2@_JW4seekdir@ios_base@2@H@Z */
11684 DEFINE_THISCALL_WRAPPER(strstreambuf_seekoff
, 20)
11685 fpos_int
* __thiscall
strstreambuf_seekoff(strstreambuf
*this, fpos_int
*ret
, streamoff off
, int way
, int mode
)
11687 char *eback
= basic_streambuf_char_eback(&this->base
);
11688 char *pptr
= basic_streambuf_char_pptr(&this->base
);
11689 char *gptr
= basic_streambuf_char_gptr(&this->base
);
11691 TRACE("(%p %p %ld %d %d)\n", this, ret
, off
, way
, mode
);
11696 if(pptr
> this->seekhigh
)
11697 this->seekhigh
= pptr
;
11699 if((mode
& OPENMODE_in
) && gptr
) {
11700 if(way
==SEEKDIR_cur
&& !(mode
& OPENMODE_out
))
11702 else if(way
== SEEKDIR_end
)
11703 off
+= this->seekhigh
-eback
;
11704 else if(way
!= SEEKDIR_beg
)
11707 if(off
<0 || off
>this->seekhigh
-eback
) {
11710 basic_streambuf_char_gbump(&this->base
, eback
-gptr
+off
);
11711 if((mode
& OPENMODE_out
) && pptr
) {
11712 basic_streambuf_char_setp_next(&this->base
, eback
,
11713 gptr
, basic_streambuf_char_epptr(&this->base
));
11716 }else if((mode
& OPENMODE_out
) && pptr
) {
11717 if(way
== SEEKDIR_cur
)
11719 else if(way
== SEEKDIR_end
)
11720 off
+= this->seekhigh
-eback
;
11721 else if(way
!= SEEKDIR_beg
)
11724 if(off
<0 || off
>this->seekhigh
-eback
)
11727 basic_streambuf_char_pbump(&this->base
, eback
-pptr
+off
);
11736 /* ?seekpos@strstreambuf@std@@MAE?AV?$fpos@H@2@V32@H@Z */
11737 /* ?seekpos@strstreambuf@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
11738 DEFINE_THISCALL_WRAPPER(strstreambuf_seekpos
, 36)
11739 fpos_int
* __thiscall
strstreambuf_seekpos(strstreambuf
*this, fpos_int
*ret
, fpos_int pos
, int mode
)
11741 TRACE("(%p %p %s %d)\n", this, ret
, debugstr_fpos_int(&pos
), mode
);
11743 if(pos
.off
==-1 && pos
.pos
==0 && pos
.state
==0) {
11748 return strstreambuf_seekoff(this, ret
, pos
.off
, SEEKDIR_beg
, mode
);
11751 /* ?underflow@strstreambuf@std@@MAEHXZ */
11752 /* ?underflow@strstreambuf@std@@MEAAHXZ */
11753 DEFINE_THISCALL_WRAPPER(strstreambuf_underflow
, 4)
11754 int __thiscall
strstreambuf_underflow(strstreambuf
*this)
11756 char *gptr
= basic_streambuf_char_gptr(&this->base
);
11759 TRACE("(%p)\n", this);
11764 if(gptr
< basic_streambuf_char_egptr(&this->base
))
11765 return (unsigned char)(*gptr
);
11767 pptr
= basic_streambuf_char_gptr(&this->base
);
11768 if(pptr
> this->seekhigh
)
11769 this->seekhigh
= pptr
;
11771 if(this->seekhigh
<= gptr
)
11774 basic_streambuf_char_setg(&this->base
, basic_streambuf_char_eback(&this->base
),
11775 gptr
, this->seekhigh
);
11776 return (unsigned char)(*gptr
);
11779 static inline basic_ios_char
* ostrstream_to_basic_ios(ostrstream
*ptr
)
11781 return (basic_ios_char
*)((char*)ptr
+ostrstream_vbtable
[1]);
11784 static inline ostrstream
* ostrstream_from_basic_ios(basic_ios_char
*ptr
)
11786 return (ostrstream
*)((char*)ptr
-ostrstream_vbtable
[1]);
11789 /* ??0ostrstream@std@@QAE@PADHH@Z */
11790 DEFINE_THISCALL_WRAPPER(ostrstream_ctor
, 20)
11791 ostrstream
* __thiscall
ostrstream_ctor(ostrstream
*this, char *buf
, streamsize size
, int mode
, MSVCP_bool virt_init
)
11793 basic_ios_char
*basic_ios
;
11795 TRACE("(%p %p %ld %d %d)\n", this, buf
, size
, mode
, virt_init
);
11798 this->base
.vbtable
= ostrstream_vbtable
;
11799 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11800 basic_ios_char_ctor(basic_ios
);
11802 basic_ios
= basic_ostream_char_get_basic_ios(&this->base
);
11805 strstreambuf_ctor_get_put(&this->buf
, buf
, size
,
11806 buf
&& (mode
& OPENMODE_app
) ? buf
+strlen(buf
) : buf
);
11807 basic_ostream_char_ctor(&this->base
, &this->buf
.base
, FALSE
, TRUE
, FALSE
);
11808 basic_ios
->base
.vtable
= &MSVCP_ostrstream_vtable
;
11812 /* ??1ostrstream@std@@UAE@XZ */
11813 /* ??1ostrstream@std@@UEAA@XZ */
11814 DEFINE_THISCALL_WRAPPER(ostrstream_dtor
, 4)
11815 void __thiscall
ostrstream_dtor(basic_ios_char
*base
)
11817 ostrstream
*this = ostrstream_from_basic_ios(base
);
11819 TRACE("(%p)\n", this);
11821 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&this->base
));
11822 strstreambuf_dtor(&this->buf
);
11825 static void ostrstream_vbase_dtor(ostrstream
*this)
11827 TRACE("(%p)\n", this);
11829 ostrstream_dtor(ostrstream_to_basic_ios(this));
11830 basic_ios_char_dtor(basic_ostream_char_get_basic_ios(&this->base
));
11833 DEFINE_THISCALL_WRAPPER(ostrstream_vector_dtor
, 8)
11834 ostrstream
* __thiscall
ostrstream_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
11836 ostrstream
*this = ostrstream_from_basic_ios(base
);
11838 TRACE("(%p %x)\n", this, flags
);
11841 /* we have an array, with the number of elements stored before the first object */
11842 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11844 for(i
=*ptr
-1; i
>=0; i
--)
11845 ostrstream_vbase_dtor(this+i
);
11846 MSVCRT_operator_delete(ptr
);
11848 ostrstream_vbase_dtor(this);
11850 MSVCRT_operator_delete(this);
11856 static inline istrstream
* istrstream_from_basic_ios(basic_ios_char
*ptr
)
11858 return (istrstream
*)((char*)ptr
-istrstream_vbtable
[1]);
11861 /* ??1istrstream@std@@UAE@XZ */
11862 /* ??1istrstream@std@@UEAA@XZ */
11863 DEFINE_THISCALL_WRAPPER(istrstream_dtor
, 4)
11864 void __thiscall
istrstream_dtor(basic_ios_char
*base
)
11866 istrstream
*this = istrstream_from_basic_ios(base
);
11868 TRACE("(%p)\n", this);
11870 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&this->base
));
11871 strstreambuf_dtor(&this->buf
);
11874 static inline basic_ios_char
* strstream_to_basic_ios(strstream
*ptr
)
11876 return (basic_ios_char
*)((char*)ptr
+strstream_vbtable1
[1]);
11879 static inline strstream
* strstream_from_basic_ios(basic_ios_char
*ptr
)
11881 return (strstream
*)((char*)ptr
-strstream_vbtable1
[1]);
11884 /* ??0strstream@std@@QAE@PADHH@Z */
11885 /* ??0strstream@std@@QEAA@PEAD_JH@Z */
11886 DEFINE_THISCALL_WRAPPER(strstream_ctor
, 20)
11887 strstream
* __thiscall
strstream_ctor(strstream
*this, char *buf
, streamsize size
, int mode
, MSVCP_bool virt_init
)
11889 basic_ios_char
*basic_ios
;
11891 TRACE("(%p %p %ld %d %d)\n", this, buf
, size
, mode
, virt_init
);
11894 this->base
.base1
.vbtable
= strstream_vbtable1
;
11895 this->base
.base2
.vbtable
= strstream_vbtable2
;
11896 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
11897 basic_ios_char_ctor(basic_ios
);
11899 basic_ios
= basic_istream_char_get_basic_ios(&this->base
.base1
);
11902 strstreambuf_ctor_get_put(&this->buf
, buf
, size
,
11903 buf
&& (mode
& OPENMODE_app
) ? buf
+strlen(buf
) : buf
);
11904 basic_iostream_char_ctor(&this->base
, &this->buf
.base
, FALSE
);
11905 basic_ios
->base
.vtable
= &MSVCP_strstream_vtable
;
11909 /* ??1strstream@std@@UAE@XZ */
11910 /* ??1strstream@std@@UEAA@XZ */
11911 DEFINE_THISCALL_WRAPPER(strstream_dtor
, 4)
11912 void __thiscall
strstream_dtor(basic_ios_char
*base
)
11914 strstream
*this = strstream_from_basic_ios(base
);
11916 TRACE("(%p)\n", this);
11918 basic_iostream_char_dtor(basic_iostream_char_to_basic_ios(&this->base
));
11919 strstreambuf_dtor(&this->buf
);
11922 static void strstream_vbase_dtor(strstream
*this)
11924 TRACE("(%p)\n", this);
11926 strstream_dtor(strstream_to_basic_ios(this));
11927 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base
.base1
));
11930 DEFINE_THISCALL_WRAPPER(strstream_vector_dtor
, 8)
11931 strstream
* __thiscall
strstream_vector_dtor(basic_ios_char
*base
, unsigned int flags
)
11933 strstream
*this = strstream_from_basic_ios(base
);
11935 TRACE("(%p %x)\n", this, flags
);
11938 /* we have an array, with the number of elements stored before the first object */
11939 INT_PTR i
, *ptr
= (INT_PTR
*)this-1;
11941 for(i
=*ptr
-1; i
>=0; i
--)
11942 strstream_vbase_dtor(this+i
);
11943 MSVCRT_operator_delete(ptr
);
11945 strstream_vbase_dtor(this);
11947 MSVCRT_operator_delete(this);
11953 static void __cdecl
setprecision_func(ios_base
*base
, streamsize prec
)
11955 ios_base_precision_set(base
, prec
);
11958 /* ?setprecision@std@@YA?AU?$_Smanip@H@1@H@Z */
11959 /* ?setprecision@std@@YA?AU?$_Smanip@_J@1@_J@Z */
11960 manip_streamsize
* __cdecl
setprecision(manip_streamsize
*ret
, streamsize prec
)
11962 TRACE("(%p %ld)\n", ret
, prec
);
11964 ret
->pfunc
= setprecision_func
;
11969 static void __cdecl
setw_func(ios_base
*base
, streamsize width
)
11971 ios_base_width_set(base
, width
);
11974 /* ?setw@std@@YA?AU?$_Smanip@H@1@H@Z */
11975 /* ?setw@std@@YA?AU?$_Smanip@_J@1@_J@Z */
11976 manip_streamsize
* __cdecl
setw(manip_streamsize
*ret
, streamsize width
)
11978 TRACE("(%p %ld)\n", ret
, width
);
11980 ret
->pfunc
= setw_func
;
11985 static void __cdecl
resetioflags_func(ios_base
*base
, int mask
)
11987 ios_base_setf_mask(base
, 0, mask
);
11990 /* ?resetiosflags@std@@YA?AU?$_Smanip@H@1@H@Z */
11991 manip_int
* __cdecl
resetiosflags(manip_int
*ret
, int mask
)
11993 TRACE("(%p %d)\n", ret
, mask
);
11995 ret
->pfunc
= resetioflags_func
;
12000 static void __cdecl
setiosflags_func(ios_base
*base
, int mask
)
12002 ios_base_setf_mask(base
, FMTFLAG_mask
, mask
);
12005 /* ?setiosflags@std@@YA?AU?$_Smanip@H@1@H@Z */
12006 manip_int
* __cdecl
setiosflags(manip_int
*ret
, int mask
)
12008 TRACE("(%p %d)\n", ret
, mask
);
12010 ret
->pfunc
= setiosflags_func
;
12015 static void __cdecl
setbase_func(ios_base
*base
, int set_base
)
12018 set_base
= FMTFLAG_dec
;
12019 else if(set_base
== 8)
12020 set_base
= FMTFLAG_oct
;
12021 else if(set_base
== 16)
12022 set_base
= FMTFLAG_hex
;
12026 ios_base_setf_mask(base
, set_base
, FMTFLAG_basefield
);
12029 /* ?setbase@std@@YA?AU?$_Smanip@H@1@H@Z */
12030 manip_int
* __cdecl
setbase(manip_int
*ret
, int base
)
12032 TRACE("(%p %d)\n", ret
, base
);
12034 ret
->pfunc
= setbase_func
;
12039 static basic_filebuf_char filebuf_char_stdin
;
12040 /* ?cin@std@@3V?$basic_istream@DU?$char_traits@D@std@@@1@A */
12042 basic_istream_char obj
;
12043 basic_ios_char vbase
;
12045 /* ?_Ptr_cin@std@@3PAV?$basic_istream@DU?$char_traits@D@std@@@1@A */
12046 /* ?_Ptr_cin@std@@3PEAV?$basic_istream@DU?$char_traits@D@std@@@1@EA */
12047 basic_istream_char
*_Ptr_cin
= &cin
.obj
;
12049 static basic_filebuf_wchar filebuf_short_stdin
;
12050 /* ?wcin@std@@3V?$basic_istream@GU?$char_traits@G@std@@@1@A */
12052 basic_istream_wchar obj
;
12053 basic_ios_wchar vbase
;
12054 } ucin
= { { 0 } };
12055 /* ?_Ptr_wcin@std@@3PAV?$basic_istream@GU?$char_traits@G@std@@@1@A */
12056 /* ?_Ptr_wcin@std@@3PEAV?$basic_istream@GU?$char_traits@G@std@@@1@EA */
12057 basic_istream_wchar
*_Ptr_ucin
= &ucin
.obj
;
12059 static basic_filebuf_wchar filebuf_wchar_stdin
;
12060 /* ?wcin@std@@3V?$basic_istream@_WU?$char_traits@_W@std@@@1@A */
12062 basic_istream_wchar obj
;
12063 basic_ios_wchar vbase
;
12064 } wcin
= { { 0 } };
12065 /* ?_Ptr_wcin@std@@3PAV?$basic_istream@_WU?$char_traits@_W@std@@@1@A */
12066 /* ?_Ptr_wcin@std@@3PEAV?$basic_istream@_WU?$char_traits@_W@std@@@1@EA */
12067 basic_istream_wchar
*_Ptr_wcin
= &wcin
.obj
;
12069 static basic_filebuf_char filebuf_char_stdout
;
12070 /* ?cout@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A */
12072 basic_ostream_char obj
;
12073 basic_ios_char vbase
;
12074 } cout
= { { 0 } };
12075 /* ?_Ptr_cout@std@@3PAV?$basic_ostream@DU?$char_traits@D@std@@@1@A */
12076 /* ?_Ptr_cout@std@@3PEAV?$basic_ostream@DU?$char_traits@D@std@@@1@EA */
12077 basic_ostream_char
*_Ptr_cout
= &cout
.obj
;
12079 static basic_filebuf_wchar filebuf_short_stdout
;
12080 /* ?wcout@std@@3V?$basic_ostream@GU?$char_traits@G@std@@@1@A */
12082 basic_ostream_wchar obj
;
12083 basic_ios_wchar vbase
;
12084 } ucout
= { { 0 } };
12085 /* ?_Ptr_wcout@std@@3PAV?$basic_ostream@GU?$char_traits@G@std@@@1@A */
12086 /* ?_Ptr_wcout@std@@3PEAV?$basic_ostream@GU?$char_traits@G@std@@@1@EA */
12087 basic_ostream_wchar
*_Ptr_ucout
= &ucout
.obj
;
12089 static basic_filebuf_wchar filebuf_wchar_stdout
;
12090 /* ?wcout@std@@3V?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
12092 basic_ostream_wchar obj
;
12093 basic_ios_wchar vbase
;
12094 } wcout
= { { 0 } };
12095 /* ?_Ptr_wcout@std@@3PAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
12096 /* ?_Ptr_wcout@std@@3PEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@EA */
12097 basic_ostream_wchar
*_Ptr_wcout
= &wcout
.obj
;
12099 static basic_filebuf_char filebuf_char_stderr
;
12100 /* ?cerr@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A */
12102 basic_ostream_char obj
;
12103 basic_ios_char vbase
;
12104 } cerr
= { { 0 } };
12105 /* ?_Ptr_cerr@std@@3PAV?$basic_ostream@DU?$char_traits@D@std@@@1@A */
12106 /* ?_Ptr_cerr@std@@3PEAV?$basic_ostream@DU?$char_traits@D@std@@@1@EA */
12107 basic_ostream_char
*_Ptr_cerr
= &cerr
.obj
;
12109 static basic_filebuf_wchar filebuf_short_stderr
;
12110 /* ?wcerr@std@@3V?$basic_ostream@GU?$char_traits@G@std@@@1@A */
12112 basic_ostream_wchar obj
;
12113 basic_ios_wchar vbase
;
12114 } ucerr
= { { 0 } };
12115 /* ?_Ptr_wcerr@std@@3PAV?$basic_ostream@GU?$char_traits@G@std@@@1@A */
12116 /* ?_Ptr_wcerr@std@@3PEAV?$basic_ostream@GU?$char_traits@G@std@@@1@EA */
12117 basic_ostream_wchar
*_Ptr_ucerr
= &ucerr
.obj
;
12119 static basic_filebuf_wchar filebuf_wchar_stderr
;
12120 /* ?wcerr@std@@3V?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
12122 basic_ostream_wchar obj
;
12123 basic_ios_wchar vbase
;
12124 } wcerr
= { { 0 } };
12125 /* ?_Ptr_wcerr@std@@3PAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
12126 /* ?_Ptr_wcerr@std@@3PEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@EA */
12127 basic_ostream_wchar
*_Ptr_wcerr
= &wcerr
.obj
;
12129 static basic_filebuf_char filebuf_char_log
;
12130 /* ?clog@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A */
12132 basic_ostream_char obj
;
12133 basic_ios_char vbase
;
12134 } clog
= { { 0 } };
12135 /* ?_Ptr_clog@std@@3PAV?$basic_ostream@DU?$char_traits@D@std@@@1@A */
12136 /* ?_Ptr_clog@std@@3PEAV?$basic_ostream@DU?$char_traits@D@std@@@1@EA */
12137 basic_ostream_char
*_Ptr_clog
= &clog
.obj
;
12139 static basic_filebuf_wchar filebuf_short_log
;
12140 /* ?wclog@std@@3V?$basic_ostream@GU?$char_traits@G@std@@@1@A */
12142 basic_ostream_wchar obj
;
12143 basic_ios_wchar vbase
;
12144 } uclog
= { { 0 } };
12145 /* ?_Ptr_wclog@std@@3PAV?$basic_ostream@GU?$char_traits@G@std@@@1@A */
12146 /* ?_Ptr_wclog@std@@3PEAV?$basic_ostream@GU?$char_traits@G@std@@@1@EA */
12147 basic_ostream_wchar
*_Ptr_uclog
= &uclog
.obj
;
12149 static basic_filebuf_wchar filebuf_wchar_log
;
12150 /* ?wclog@std@@3V?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
12152 basic_ostream_wchar obj
;
12153 basic_ios_wchar vbase
;
12154 } wclog
= { { 0 } };
12155 /* ?_Ptr_wclog@std@@3PAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
12156 /* ?_Ptr_wclog@std@@3PEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@EA */
12157 basic_ostream_wchar
*_Ptr_wclog
= &wclog
.obj
;
12159 /* ?_Init_cnt@Init@ios_base@std@@0HA */
12160 int ios_base_Init__Init_cnt
= -1;
12162 /* ?_Init_ctor@Init@ios_base@std@@CAXPAV123@@Z */
12163 /* ?_Init_ctor@Init@ios_base@std@@CAXPEAV123@@Z */
12164 static void ios_base_Init__Init_ctor(void *this)
12166 TRACE("(%p)\n", this);
12168 if(ios_base_Init__Init_cnt
< 0)
12169 ios_base_Init__Init_cnt
= 1;
12171 ios_base_Init__Init_cnt
++;
12174 /* ??0Init@ios_base@std@@QAE@XZ */
12175 /* ??0Init@ios_base@std@@QEAA@XZ */
12176 DEFINE_THISCALL_WRAPPER(ios_base_Init_ctor
, 4)
12177 void* __thiscall
ios_base_Init_ctor(void *this)
12179 ios_base_Init__Init_ctor(this);
12183 /* ?_Init_dtor@Init@ios_base@std@@CAXPAV123@@Z */
12184 /* ?_Init_dtor@Init@ios_base@std@@CAXPEAV123@@Z */
12185 static void ios_base_Init__Init_dtor(void *this)
12187 TRACE("(%p)\n", this);
12189 ios_base_Init__Init_cnt
--;
12190 if(!ios_base_Init__Init_cnt
) {
12191 basic_ostream_char_flush(&cout
.obj
);
12192 basic_ostream_char_flush(&cerr
.obj
);
12193 basic_ostream_char_flush(&clog
.obj
);
12197 /* ??1Init@ios_base@std@@QAE@XZ */
12198 /* ??1Init@ios_base@std@@QEAA@XZ */
12199 DEFINE_THISCALL_WRAPPER(ios_base_Init_dtor
, 4)
12200 void __thiscall
ios_base_Init_dtor(void *this)
12202 ios_base_Init__Init_dtor(this);
12205 /* ??4Init@ios_base@std@@QAEAAV012@ABV012@@Z */
12206 /* ??4Init@ios_base@std@@QEAAAEAV012@AEBV012@@Z */
12207 DEFINE_THISCALL_WRAPPER(ios_base_Init_op_assign
, 8)
12208 void* __thiscall
ios_base_Init_op_assign(void *this, void *rhs
)
12210 TRACE("(%p %p)\n", this, rhs
);
12214 /* ?_Init_cnt@_Winit@std@@0HA */
12215 int _Winit__Init_cnt
= -1;
12217 /* ??0_Winit@std@@QAE@XZ */
12218 /* ??0_Winit@std@@QEAA@XZ */
12219 DEFINE_THISCALL_WRAPPER(_Winit_ctor
, 4)
12220 void* __thiscall
_Winit_ctor(void *this)
12222 TRACE("(%p)\n", this);
12224 if(_Winit__Init_cnt
< 0)
12225 _Winit__Init_cnt
= 1;
12227 _Winit__Init_cnt
++;
12232 /* ??1_Winit@std@@QAE@XZ */
12233 /* ??1_Winit@std@@QAE@XZ */
12234 DEFINE_THISCALL_WRAPPER(_Winit_dtor
, 4)
12235 void __thiscall
_Winit_dtor(void *this)
12237 TRACE("(%p)\n", this);
12239 _Winit__Init_cnt
--;
12240 if(!_Winit__Init_cnt
) {
12241 basic_ostream_wchar_flush(&wcout
.obj
);
12242 basic_ostream_wchar_flush(&wcerr
.obj
);
12243 basic_ostream_wchar_flush(&wclog
.obj
);
12247 /* ??4_Winit@std@@QAEAAV01@ABV01@@Z */
12248 /* ??4_Winit@std@@QEAAAEAV01@AEBV01@@Z */
12249 DEFINE_THISCALL_WRAPPER(_Winit_op_assign
, 8)
12250 void* __thiscall
_Winit_op_assign(void *this, void *rhs
)
12252 TRACE("(%p %p)\n", this, rhs
);
12256 void init_io(void *base
)
12259 init_iosb_rtti(base
);
12260 init_ios_base_rtti(base
);
12261 init_basic_ios_char_rtti(base
);
12262 init_basic_ios_wchar_rtti(base
);
12263 init_basic_ios_short_rtti(base
);
12264 init_basic_streambuf_char_rtti(base
);
12265 init_basic_streambuf_wchar_rtti(base
);
12266 init_basic_streambuf_short_rtti(base
);
12267 init_basic_filebuf_char_rtti(base
);
12268 init_basic_filebuf_wchar_rtti(base
);
12269 init_basic_filebuf_short_rtti(base
);
12270 init_basic_stringbuf_char_rtti(base
);
12271 init_basic_stringbuf_wchar_rtti(base
);
12272 init_basic_stringbuf_short_rtti(base
);
12273 init_basic_ostream_char_rtti(base
);
12274 init_basic_ostream_wchar_rtti(base
);
12275 init_basic_ostream_short_rtti(base
);
12276 init_basic_istream_char_rtti(base
);
12277 init_basic_istream_wchar_rtti(base
);
12278 init_basic_istream_short_rtti(base
);
12279 init_basic_iostream_char_rtti(base
);
12280 init_basic_iostream_wchar_rtti(base
);
12281 init_basic_iostream_short_rtti(base
);
12282 init_basic_ofstream_char_rtti(base
);
12283 init_basic_ofstream_wchar_rtti(base
);
12284 init_basic_ofstream_short_rtti(base
);
12285 init_basic_ifstream_char_rtti(base
);
12286 init_basic_ifstream_wchar_rtti(base
);
12287 init_basic_ifstream_short_rtti(base
);
12288 init_basic_fstream_char_rtti(base
);
12289 init_basic_fstream_wchar_rtti(base
);
12290 init_basic_fstream_short_rtti(base
);
12291 init_basic_ostringstream_char_rtti(base
);
12292 init_basic_ostringstream_wchar_rtti(base
);
12293 init_basic_ostringstream_short_rtti(base
);
12294 init_basic_istringstream_char_rtti(base
);
12295 init_basic_istringstream_wchar_rtti(base
);
12296 init_basic_istringstream_short_rtti(base
);
12297 init_basic_stringstream_char_rtti(base
);
12298 init_basic_stringstream_wchar_rtti(base
);
12299 init_basic_stringstream_short_rtti(base
);
12300 init_strstreambuf_rtti(base
);
12301 init_strstream_rtti(base
);
12302 init_ostrstream_rtti(base
);
12305 basic_filebuf_char_ctor_file(&filebuf_char_stdin
, stdin
);
12306 basic_istream_char_ctor(&cin
.obj
, &filebuf_char_stdin
.base
, FALSE
/*FIXME*/, TRUE
);
12308 basic_filebuf_short_ctor_file(&filebuf_short_stdin
, stdin
);
12309 basic_istream_short_ctor(&ucin
.obj
, &filebuf_short_stdin
.base
, FALSE
/*FIXME*/, TRUE
);
12311 basic_filebuf_wchar_ctor_file(&filebuf_wchar_stdin
, stdin
);
12312 basic_istream_wchar_ctor(&wcin
.obj
, &filebuf_wchar_stdin
.base
, FALSE
/*FIXME*/, TRUE
);
12314 basic_filebuf_char_ctor_file(&filebuf_char_stdout
, stdout
);
12315 basic_ostream_char_ctor(&cout
.obj
, &filebuf_char_stdout
.base
, FALSE
/*FIXME*/, TRUE
, TRUE
);
12317 basic_filebuf_short_ctor_file(&filebuf_short_stdout
, stdout
);
12318 basic_ostream_short_ctor(&ucout
.obj
, &filebuf_short_stdout
.base
, FALSE
/*FIXME*/, TRUE
, TRUE
);
12320 basic_filebuf_wchar_ctor_file(&filebuf_wchar_stdout
, stdout
);
12321 basic_ostream_short_ctor(&wcout
.obj
, &filebuf_wchar_stdout
.base
, FALSE
/*FIXME*/, TRUE
, TRUE
);
12323 basic_filebuf_char_ctor_file(&filebuf_char_stderr
, stderr
);
12324 basic_ostream_char_ctor(&cerr
.obj
, &filebuf_char_stderr
.base
, FALSE
/*FIXME*/, TRUE
, TRUE
);
12326 basic_filebuf_short_ctor_file(&filebuf_short_stderr
, stderr
);
12327 basic_ostream_short_ctor(&ucerr
.obj
, &filebuf_short_stderr
.base
, FALSE
/*FIXME*/, TRUE
, TRUE
);
12329 basic_filebuf_wchar_ctor_file(&filebuf_wchar_stderr
, stderr
);
12330 basic_ostream_short_ctor(&wcerr
.obj
, &filebuf_wchar_stderr
.base
, FALSE
/*FIXME*/, TRUE
, TRUE
);
12332 basic_filebuf_char_ctor_file(&filebuf_char_log
, stderr
);
12333 basic_ostream_char_ctor(&clog
.obj
, &filebuf_char_log
.base
, FALSE
/*FIXME*/, TRUE
, TRUE
);
12335 basic_filebuf_short_ctor_file(&filebuf_short_log
, stderr
);
12336 basic_ostream_short_ctor(&uclog
.obj
, &filebuf_short_log
.base
, FALSE
/*FIXME*/, TRUE
, TRUE
);
12338 basic_filebuf_wchar_ctor_file(&filebuf_wchar_log
, stderr
);
12339 basic_ostream_short_ctor(&wclog
.obj
, &filebuf_wchar_log
.base
, FALSE
/*FIXME*/, TRUE
, TRUE
);
12344 basic_istream_char_vbase_dtor(&cin
.obj
);
12345 basic_filebuf_char_dtor(&filebuf_char_stdin
);
12347 basic_istream_wchar_vbase_dtor(&ucin
.obj
);
12348 basic_filebuf_wchar_dtor(&filebuf_short_stdin
);
12350 basic_istream_wchar_vbase_dtor(&wcin
.obj
);
12351 basic_filebuf_wchar_dtor(&filebuf_wchar_stdin
);
12353 basic_ostream_char_vbase_dtor(&cout
.obj
);
12354 basic_filebuf_char_dtor(&filebuf_char_stdout
);
12356 basic_ostream_wchar_vbase_dtor(&ucout
.obj
);
12357 basic_filebuf_wchar_dtor(&filebuf_short_stdout
);
12359 basic_ostream_wchar_vbase_dtor(&wcout
.obj
);
12360 basic_filebuf_wchar_dtor(&filebuf_wchar_stdout
);
12362 basic_ostream_char_vbase_dtor(&cerr
.obj
);
12363 basic_filebuf_char_dtor(&filebuf_char_stderr
);
12365 basic_ostream_wchar_vbase_dtor(&ucerr
.obj
);
12366 basic_filebuf_wchar_dtor(&filebuf_short_stderr
);
12368 basic_ostream_wchar_vbase_dtor(&wcerr
.obj
);
12369 basic_filebuf_wchar_dtor(&filebuf_wchar_stderr
);
12371 basic_ostream_char_vbase_dtor(&clog
.obj
);
12372 basic_filebuf_char_dtor(&filebuf_char_log
);
12374 basic_ostream_wchar_vbase_dtor(&uclog
.obj
);
12375 basic_filebuf_wchar_dtor(&filebuf_short_log
);
12377 basic_ostream_wchar_vbase_dtor(&wclog
.obj
);
12378 basic_filebuf_wchar_dtor(&filebuf_wchar_log
);