2 * Copyright 2011 Piotr Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
29 #include "wine/debug.h"
30 WINE_DEFAULT_DEBUG_CHANNEL(msvcp);
32 /* ?_Index@ios_base@std@@0HA */
33 int ios_base_Index = 0;
34 /* ?_Sync@ios_base@std@@0_NA */
35 MSVCP_bool ios_base_Sync = FALSE;
39 __int64 DECLSPEC_ALIGN(8) pos;
43 static inline const char* debugstr_fpos_int(fpos_int *fpos)
45 return wine_dbg_sprintf("fpos(%ld %s %d)", fpos->off, wine_dbgstr_longlong(fpos->pos), fpos->state);
49 void (__cdecl *pfunc)(ios_base*, streamsize);
57 } basic_filebuf__Initfl;
60 basic_streambuf_char base;
70 basic_streambuf_wchar base;
77 } basic_filebuf_wchar;
80 STRINGBUF_allocated = 1,
81 STRINGBUF_no_write = 2,
82 STRINGBUF_no_read = 4,
85 } basic_stringbuf_state;
88 basic_streambuf_char base;
91 char allocator; /* empty struct */
92 } basic_stringbuf_char;
95 basic_streambuf_wchar base;
98 char allocator; /* empty struct */
99 } basic_stringbuf_wchar;
103 basic_streambuf_char *strbuf;
104 struct _basic_ostream_char *stream;
110 basic_streambuf_wchar *strbuf;
111 struct _basic_ostream_wchar *stream;
115 typedef struct _basic_ostream_char {
117 /* virtual inheritance
118 * basic_ios_char basic_ios;
120 } basic_ostream_char;
122 typedef struct _basic_ostream_wchar {
124 /* virtual inheritance
125 * basic_ios_wchar basic_ios;
127 } basic_ostream_wchar;
132 /* virtual inheritance
133 * basic_ios_char basic_ios;
135 } basic_istream_char;
140 /* virtual inheritance
141 * basic_ios_wchar basic_ios;
143 } basic_istream_wchar;
146 basic_istream_char base1;
147 basic_ostream_char base2;
148 /* virtual inheritance
149 * basic_ios_char basic_ios;
151 } basic_iostream_char;
154 basic_istream_wchar base1;
155 basic_ostream_wchar base2;
156 /* virtual inheritance
157 * basic_ios_wchar basic_ios;
159 } basic_iostream_wchar;
162 basic_ostream_char base;
163 basic_filebuf_char filebuf;
164 /* virtual inheritance
165 * basic_ios_char basic_ios;
167 } basic_ofstream_char;
170 basic_ostream_wchar base;
171 basic_filebuf_wchar filebuf;
172 /* virtual inheritance
173 * basic_ios_wchar basic_ios;
175 } basic_ofstream_wchar;
178 basic_istream_char base;
179 basic_filebuf_char filebuf;
180 /* virtual inheritance
181 * basic_ios_char basic_ios;
183 } basic_ifstream_char;
186 basic_istream_wchar base;
187 basic_filebuf_wchar filebuf;
188 /* virtual inheritance
189 * basic_ios_wchar basic_ios;
191 } basic_ifstream_wchar;
194 basic_iostream_char base;
195 basic_filebuf_char filebuf;
196 /* virtual inheritance
197 * basic_ios_char basic_ios;
199 } basic_fstream_char;
202 basic_iostream_wchar base;
203 basic_filebuf_wchar filebuf;
204 /* virtual inheritance
205 * basic_ios_char basic_ios;
207 } basic_fstream_wchar;
210 basic_ostream_char base;
211 basic_stringbuf_char strbuf;
212 /* virtual inheritance
213 * basic_ios_char basic_ios;
215 } basic_ostringstream_char;
218 basic_ostream_wchar base;
219 basic_stringbuf_wchar strbuf;
220 /* virtual inheritance
221 * basic_ios_wchar basic_ios;
223 } basic_ostringstream_wchar;
226 basic_istream_char base;
227 basic_stringbuf_char strbuf;
228 /* virtual inheritance
229 * basic_ios_char basic_ios;
231 } basic_istringstream_char;
234 basic_istream_wchar base;
235 basic_stringbuf_wchar strbuf;
236 /* virtual inheritance
237 * basic_ios_wchar basic_ios;
239 } basic_istringstream_wchar;
242 basic_iostream_char base;
243 basic_stringbuf_char strbuf;
244 /* virtual inheritance
245 * basic_ios_char basic_ios;
247 } basic_stringstream_char;
250 basic_iostream_wchar base;
251 basic_stringbuf_wchar strbuf;
252 /* virtual inheritance
253 * basic_ios_wchar basic_ios;
255 } basic_stringstream_wchar;
258 STRSTATE_Allocated = 1,
259 STRSTATE_Constant = 2,
260 STRSTATE_Dynamic = 4,
262 } strstreambuf__Strstate;
265 basic_streambuf_char base;
270 void* (__cdecl *palloc)(MSVCP_size_t);
271 void (__cdecl *pfree)(void*);
274 extern const vtable_ptr MSVCP_iosb_vtable;
276 /* ??_7ios_base@std@@6B@ */
277 extern const vtable_ptr MSVCP_ios_base_vtable;
279 /* ??_7?$basic_ios@DU?$char_traits@D@std@@@std@@6B@ */
280 extern const vtable_ptr MSVCP_basic_ios_char_vtable;
282 /* ??_7?$basic_ios@_WU?$char_traits@_W@std@@@std@@6B@ */
283 extern const vtable_ptr MSVCP_basic_ios_wchar_vtable;
285 /* ??_7?$basic_ios@GU?$char_traits@G@std@@@std@@6B@ */
286 extern const vtable_ptr MSVCP_basic_ios_short_vtable;
288 /* ??_7?$basic_streambuf@DU?$char_traits@D@std@@@std@@6B@ */
289 extern const vtable_ptr MSVCP_basic_streambuf_char_vtable;
291 /* ??_7?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@6B@ */
292 extern const vtable_ptr MSVCP_basic_streambuf_wchar_vtable;
294 /* ??_7?$basic_streambuf@GU?$char_traits@G@std@@@std@@6B@ */
295 extern const vtable_ptr MSVCP_basic_streambuf_short_vtable;
297 /* ??_7?$basic_filebuf@DU?$char_traits@D@std@@@std@@6B@ */
298 extern const vtable_ptr MSVCP_basic_filebuf_char_vtable;
300 /* ??_7?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@6B@ */
301 extern const vtable_ptr MSVCP_basic_filebuf_wchar_vtable;
303 /* ??_7?$basic_filebuf@GU?$char_traits@G@std@@@std@@6B@ */
304 extern const vtable_ptr MSVCP_basic_filebuf_short_vtable;
306 /* ??_7?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
307 extern const vtable_ptr MSVCP_basic_stringbuf_char_vtable;
309 /* ??_7?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
310 extern const vtable_ptr MSVCP_basic_stringbuf_wchar_vtable;
312 /* ??_7?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
313 extern const vtable_ptr MSVCP_basic_stringbuf_short_vtable;
315 /* ??_8?$basic_ostream@DU?$char_traits@D@std@@@std@@7B@ */
316 const int basic_ostream_char_vbtable[] = {0, sizeof(basic_ostream_char)};
317 /* ??_7?$basic_ostream@DU?$char_traits@D@std@@@std@@6B@ */
318 extern const vtable_ptr MSVCP_basic_ostream_char_vtable;
320 /* ??_8?$basic_ostream@_WU?$char_traits@_W@std@@@std@@7B@ */
321 const int basic_ostream_wchar_vbtable[] = {0, sizeof(basic_ostream_wchar)};
322 /* ??_7?$basic_ostream@_WU?$char_traits@_W@std@@@std@@6B@ */
323 extern const vtable_ptr MSVCP_basic_ostream_wchar_vtable;
325 /* ??_8?$basic_ostream@GU?$char_traits@G@std@@@std@@7B@ */
326 const int basic_ostream_short_vbtable[] = {0, sizeof(basic_ostream_wchar)};
327 /* ??_7?$basic_ostream@GU?$char_traits@G@std@@@std@@6B@ */
328 extern const vtable_ptr MSVCP_basic_ostream_short_vtable;
330 /* ??_8?$basic_istream@DU?$char_traits@D@std@@@std@@7B@ */
331 const int basic_istream_char_vbtable[] = {0, sizeof(basic_istream_char)};
332 /* ??_7?$basic_istream@DU?$char_traits@D@std@@@std@@6B@ */
333 extern const vtable_ptr MSVCP_basic_istream_char_vtable;
335 /* ??_8?$basic_istream@_WU?$char_traits@_W@std@@@std@@7B@ */
336 const int basic_istream_wchar_vbtable[] = {0, sizeof(basic_istream_wchar)};
337 /* ??_7?$basic_istream@_WU?$char_traits@_W@std@@@std@@6B@ */
338 extern const vtable_ptr MSVCP_basic_istream_wchar_vtable;
340 /* ??_8?$basic_istream@GU?$char_traits@G@std@@@std@@7B@ */
341 const int basic_istream_short_vbtable[] = {0, sizeof(basic_istream_wchar)};
342 /* ??_7?$basic_istream@GU?$char_traits@G@std@@@std@@6B@ */
343 extern const vtable_ptr MSVCP_basic_istream_short_vtable;
345 /* ??_8?$basic_iostream@DU?$char_traits@D@std@@@std@@7B?$basic_istream@DU?$char_traits@D@std@@@1@@ */
346 const int basic_iostream_char_vbtable1[] = {0, sizeof(basic_iostream_char)};
347 /* ??_8?$basic_iostream@DU?$char_traits@D@std@@@std@@7B?$basic_ostream@DU?$char_traits@D@std@@@1@@ */
348 const int basic_iostream_char_vbtable2[] = {0, sizeof(basic_iostream_char)-FIELD_OFFSET(basic_iostream_char, base2)};
349 /* ??_7?$basic_iostream@DU?$char_traits@D@std@@@std@@6B@ */
350 extern const vtable_ptr MSVCP_basic_iostream_char_vtable;
352 /* ??_8?$basic_iostream@_WU?$char_traits@_W@std@@@std@@7B?$basic_istream@_WU?$char_traits@_W@std@@@1@@ */
353 /* ??_8?$basic_iostream@GU?$char_traits@G@std@@@std@@7B?$basic_istream@GU?$char_traits@G@std@@@1@@ */
354 const int basic_iostream_wchar_vbtable1[] = {0, sizeof(basic_iostream_wchar)};
355 /* ??_8?$basic_iostream@_WU?$char_traits@_W@std@@@std@@7B?$basic_ostream@_WU?$char_traits@_W@std@@@1@@ */
356 /* ??_8?$basic_iostream@GU?$char_traits@G@std@@@std@@7B?$basic_ostream@GU?$char_traits@G@std@@@1@@ */
357 const int basic_iostream_wchar_vbtable2[] = {0, sizeof(basic_iostream_wchar)-FIELD_OFFSET(basic_iostream_wchar, base2)};
358 /* ??_7?$basic_iostream@_WU?$char_traits@_W@std@@@std@@6B@ */
359 extern const vtable_ptr MSVCP_basic_iostream_wchar_vtable;
360 /* ??_7?$basic_iostream@GU?$char_traits@G@std@@@std@@6B@ */
361 extern const vtable_ptr MSVCP_basic_iostream_short_vtable;
363 /* ??_8?$basic_ofstream@DU?$char_traits@D@std@@@std@@7B@ */
364 const int basic_ofstream_char_vbtable[] = {0, sizeof(basic_ofstream_char)};
365 /* ??_7?$basic_ofstream@DU?$char_traits@D@std@@@std@@6B@ */
366 extern const vtable_ptr MSVCP_basic_ofstream_char_vtable;
368 /* ??_8?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@7B@ */
369 const int basic_ofstream_wchar_vbtable[] = {0, sizeof(basic_ofstream_wchar)};
370 /* ??_7?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@6B@ */
371 extern const vtable_ptr MSVCP_basic_ofstream_wchar_vtable;
373 /* ??_8?$basic_ofstream@GU?$char_traits@G@std@@@std@@7B@ */
374 const int basic_ofstream_short_vbtable[] = {0, sizeof(basic_ofstream_wchar)};
375 /* ??_7?$basic_ofstream@GU?$char_traits@G@std@@@std@@6B@ */
376 extern const vtable_ptr MSVCP_basic_ofstream_short_vtable;
378 /* ??_8?$basic_ifstream@DU?$char_traits@D@std@@@std@@7B@ */
379 const int basic_ifstream_char_vbtable[] = {0, sizeof(basic_ifstream_char)};
380 /* ??_7?$basic_ifstream@DU?$char_traits@D@std@@@std@@6B@ */
381 extern const vtable_ptr MSVCP_basic_ifstream_char_vtable;
383 /* ??_8?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@7B@ */
384 const int basic_ifstream_wchar_vbtable[] = {0, sizeof(basic_ifstream_wchar)};
385 /* ??_7?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@6B@ */
386 extern const vtable_ptr MSVCP_basic_ifstream_wchar_vtable;
388 /* ??_8?$basic_ifstream@GU?$char_traits@G@std@@@std@@7B@ */
389 const int basic_ifstream_short_vbtable[] = {0, sizeof(basic_ifstream_wchar)};
390 /* ??_7?$basic_ifstream@GU?$char_traits@G@std@@@std@@6B@ */
391 extern const vtable_ptr MSVCP_basic_ifstream_short_vtable;
393 /* ??_8?$basic_fstream@DU?$char_traits@D@std@@@std@@7B?$basic_istream@DU?$char_traits@D@std@@@1@@ */
394 const int basic_fstream_char_vbtable1[] = {0, sizeof(basic_fstream_char)};
395 /* ??_8?$basic_fstream@DU?$char_traits@D@std@@@std@@7B?$basic_ostream@DU?$char_traits@D@std@@@1@@ */
396 const int basic_fstream_char_vbtable2[] = {0, sizeof(basic_fstream_char)-FIELD_OFFSET(basic_fstream_char, base.base2)};
397 /* ??_7?$basic_fstream@DU?$char_traits@D@std@@@std@@6B@ */
398 extern const vtable_ptr MSVCP_basic_fstream_char_vtable;
400 /* ??_8?$basic_fstream@_WU?$char_traits@_W@std@@@std@@7B?$basic_istream@_WU?$char_traits@_W@std@@@1@@ */
401 /* ??_8?$basic_fstream@GU?$char_traits@G@std@@@std@@7B?$basic_istream@GU?$char_traits@G@std@@@1@@ */
402 const int basic_fstream_wchar_vbtable1[] = {0, sizeof(basic_fstream_wchar)};
403 /* ??_8?$basic_fstream@_WU?$char_traits@_W@std@@@std@@7B?$basic_ostream@_WU?$char_traits@_W@std@@@1@@ */
404 /* ??_8?$basic_fstream@GU?$char_traits@G@std@@@std@@7B?$basic_ostream@GU?$char_traits@G@std@@@1@@ */
405 const int basic_fstream_wchar_vbtable2[] = {0, sizeof(basic_fstream_wchar)-FIELD_OFFSET(basic_fstream_wchar, base.base2)};
406 /* ??_7?$basic_fstream@_WU?$char_traits@_W@std@@@std@@6B@ */
407 extern const vtable_ptr MSVCP_basic_fstream_wchar_vtable;
408 /* ??_7?$basic_fstream@GU?$char_traits@G@std@@@std@@6B@ */
409 extern const vtable_ptr MSVCP_basic_fstream_short_vtable;
411 /* ??_8?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B@ */
412 const int basic_ostringstream_char_vbtable[] = {0, sizeof(basic_ostringstream_char)};
413 /* ??_7?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
414 extern const vtable_ptr MSVCP_basic_ostringstream_char_vtable;
416 /* ??_8?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B@ */
417 const int basic_ostringstream_wchar_vbtable[] = {0, sizeof(basic_ostringstream_wchar)};
418 /* ??_7?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
419 extern const vtable_ptr MSVCP_basic_ostringstream_wchar_vtable;
421 /* ??_8?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B@ */
422 const int basic_ostringstream_short_vbtable[] = {0, sizeof(basic_ostringstream_wchar)};
423 /* ??_7?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
424 extern const vtable_ptr MSVCP_basic_ostringstream_short_vtable;
426 /* ??_8?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B@ */
427 const int basic_istringstream_char_vbtable[] = {0, sizeof(basic_istringstream_char)};
428 /* ??_7?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
429 extern const vtable_ptr MSVCP_basic_istringstream_char_vtable;
431 /* ??_8?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B@ */
432 const int basic_istringstream_wchar_vbtable[] = {0, sizeof(basic_istringstream_wchar)};
433 /* ??_7?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
434 extern const vtable_ptr MSVCP_basic_istringstream_wchar_vtable;
436 /* ??_8?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B@ */
437 const int basic_istringstream_short_vbtable[] = {0, sizeof(basic_istringstream_wchar)};
438 /* ??_7?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
439 extern const vtable_ptr MSVCP_basic_istringstream_short_vtable;
441 /* ??_8?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B?$basic_istream@DU?$char_traits@D@std@@@1@@ */
442 const int basic_stringstream_char_vbtable1[] = {0, sizeof(basic_stringstream_char)};
443 /* ??_8?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@7B?$basic_ostream@DU?$char_traits@D@std@@@1@@ */
444 const int basic_stringstream_char_vbtable2[] = {0, sizeof(basic_stringstream_char)-FIELD_OFFSET(basic_stringstream_char, base.base2)};
445 /* ??_7?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@ */
446 extern const vtable_ptr MSVCP_basic_stringstream_char_vtable;
448 /* ??_8?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B?$basic_istream@_WU?$char_traits@_W@std@@@1@@ */
449 const int basic_stringstream_wchar_vbtable1[] = {0, sizeof(basic_stringstream_wchar)};
450 /* ??_8?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@7B?$basic_ostream@_WU?$char_traits@_W@std@@@1@@ */
451 const int basic_stringstream_wchar_vbtable2[] = {0, sizeof(basic_stringstream_wchar)-FIELD_OFFSET(basic_stringstream_wchar, base.base2)};
452 /* ??_7?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@6B@ */
453 extern const vtable_ptr MSVCP_basic_stringstream_wchar_vtable;
455 /* ??_8?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B?$basic_istream@GU?$char_traits@G@std@@@1@@ */
456 const int basic_stringstream_short_vbtable1[] = {0, sizeof(basic_stringstream_wchar)};
457 /* ??_8?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@7B?$basic_ostream@GU?$char_traits@G@std@@@1@@ */
458 const int basic_stringstream_short_vbtable2[] = {0, sizeof(basic_stringstream_wchar)-FIELD_OFFSET(basic_stringstream_wchar, base.base2)};
459 /* ??_7?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@6B@ */
460 extern const vtable_ptr MSVCP_basic_stringstream_short_vtable;
462 /* ??_7strstreambuf@std@@6B */
463 extern const vtable_ptr MSVCP_strstreambuf_vtable;
465 DEFINE_RTTI_DATA0(iosb, 0, ".?AV?$_Iosb@H@std@@");
466 DEFINE_RTTI_DATA1(ios_base, 0, &iosb_rtti_base_descriptor, ".?AV?$_Iosb@H@std@@");
467 DEFINE_RTTI_DATA2(basic_ios_char, 0, &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
468 ".?AV?$basic_ios@DU?$char_traits@D@std@@@std@@");
469 DEFINE_RTTI_DATA2(basic_ios_wchar, 0, &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
470 ".?AV?$basic_ios@_WU?$char_traits@_W@std@@@std@@");
471 DEFINE_RTTI_DATA2(basic_ios_short, 0, &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
472 ".?AV?$basic_ios@GU?$char_traits@G@std@@@std@@");
473 DEFINE_RTTI_DATA0(basic_streambuf_char, 0,
474 ".?AV?$basic_streambuf@DU?$char_traits@D@std@@@std@@");
475 DEFINE_RTTI_DATA0(basic_streambuf_wchar, 0,
476 ".?AV?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@");
477 DEFINE_RTTI_DATA0(basic_streambuf_short, 0,
478 ".?AV?$basic_streambuf@GU?$char_traits@G@std@@@std@@");
479 DEFINE_RTTI_DATA1(basic_filebuf_char, 0, &basic_streambuf_char_rtti_base_descriptor,
480 ".?AV?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@");
481 DEFINE_RTTI_DATA1(basic_filebuf_wchar, 0, &basic_streambuf_wchar_rtti_base_descriptor,
482 ".?AV?$basic_filebuf@GU?$char_traits@G@std@@@std@@");
483 DEFINE_RTTI_DATA1(basic_filebuf_short, 0, &basic_streambuf_short_rtti_base_descriptor,
484 ".?AV?$basic_filebuf@DU?$char_traits@D@std@@@std@@");
485 DEFINE_RTTI_DATA1(basic_stringbuf_char, 0, &basic_streambuf_char_rtti_base_descriptor,
486 ".?AV?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@");
487 DEFINE_RTTI_DATA1(basic_stringbuf_wchar, 0, &basic_streambuf_wchar_rtti_base_descriptor,
488 ".?AV?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@");
489 DEFINE_RTTI_DATA1(basic_stringbuf_short, 0, &basic_streambuf_short_rtti_base_descriptor,
490 ".?AV?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@");
491 DEFINE_RTTI_DATA3(basic_ostream_char, sizeof(basic_ostream_char), &basic_ios_char_rtti_base_descriptor,
492 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
493 ".?AV?$basic_ostream@DU?$char_traits@D@std@@@std@@");
494 DEFINE_RTTI_DATA3(basic_ostream_wchar, sizeof(basic_ostream_wchar), &basic_ios_wchar_rtti_base_descriptor,
495 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
496 ".?AV?$basic_ostream@_WU?$char_traits@_W@std@@@std@@");
497 DEFINE_RTTI_DATA3(basic_ostream_short, sizeof(basic_ostream_wchar), &basic_ios_short_rtti_base_descriptor,
498 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
499 ".?AV?$basic_ostream@GU?$char_traits@G@std@@@std@@");
500 DEFINE_RTTI_DATA3(basic_istream_char, sizeof(basic_istream_char), &basic_ios_char_rtti_base_descriptor,
501 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
502 ".?AV?$basic_istream@DU?$char_traits@D@std@@@std@@");
503 DEFINE_RTTI_DATA3(basic_istream_wchar, sizeof(basic_istream_wchar), &basic_ios_wchar_rtti_base_descriptor,
504 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
505 ".?AV?$basic_istream@_WU?$char_traits@_W@std@@@std@@");
506 DEFINE_RTTI_DATA3(basic_istream_short, sizeof(basic_istream_wchar), &basic_ios_short_rtti_base_descriptor,
507 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
508 ".?AV?$basic_istream@GU?$char_traits@G@std@@@std@@");
509 DEFINE_RTTI_DATA8(basic_iostream_char, sizeof(basic_iostream_char),
510 &basic_istream_char_rtti_base_descriptor, &basic_ios_char_rtti_base_descriptor,
511 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
512 &basic_ostream_char_rtti_base_descriptor, &basic_ios_char_rtti_base_descriptor,
513 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
514 ".?AV?$basic_iostream@DU?$char_traits@D@std@@@std@@");
515 DEFINE_RTTI_DATA8(basic_iostream_wchar, sizeof(basic_iostream_wchar),
516 &basic_istream_wchar_rtti_base_descriptor, &basic_ios_wchar_rtti_base_descriptor,
517 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
518 &basic_ostream_wchar_rtti_base_descriptor, &basic_ios_wchar_rtti_base_descriptor,
519 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
520 ".?AV?$basic_iostream@_WU?$char_traits@_W@std@@@std@@");
521 DEFINE_RTTI_DATA8(basic_iostream_short, sizeof(basic_iostream_wchar),
522 &basic_istream_short_rtti_base_descriptor, &basic_ios_short_rtti_base_descriptor,
523 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
524 &basic_ostream_short_rtti_base_descriptor, &basic_ios_short_rtti_base_descriptor,
525 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
526 ".?AV?$basic_iostream@GU?$char_traits@G@std@@@std@@");
527 DEFINE_RTTI_DATA4(basic_ofstream_char, sizeof(basic_ofstream_char),
528 &basic_ostream_char_rtti_base_descriptor, &basic_ios_char_rtti_base_descriptor,
529 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
530 ".?AV?$basic_ofstream@DU?$char_traits@D@std@@@std@@");
531 DEFINE_RTTI_DATA4(basic_ofstream_wchar, sizeof(basic_ofstream_wchar),
532 &basic_ostream_wchar_rtti_base_descriptor, &basic_ios_wchar_rtti_base_descriptor,
533 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
534 ".?AV?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@");
535 DEFINE_RTTI_DATA4(basic_ofstream_short, sizeof(basic_ofstream_wchar),
536 &basic_ostream_short_rtti_base_descriptor, &basic_ios_short_rtti_base_descriptor,
537 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
538 ".?AV?$basic_ofstream@GU?$char_traits@G@std@@@std@@");
539 DEFINE_RTTI_DATA4(basic_ifstream_char, sizeof(basic_ifstream_char),
540 &basic_istream_char_rtti_base_descriptor, &basic_ios_char_rtti_base_descriptor,
541 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
542 ".?AV?$basic_ifstream@DU?$char_traits@D@std@@@std@@");
543 DEFINE_RTTI_DATA4(basic_ifstream_wchar, sizeof(basic_ifstream_wchar),
544 &basic_istream_wchar_rtti_base_descriptor, &basic_ios_wchar_rtti_base_descriptor,
545 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
546 ".?AV?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@");
547 DEFINE_RTTI_DATA4(basic_ifstream_short, sizeof(basic_ifstream_wchar),
548 &basic_istream_short_rtti_base_descriptor, &basic_ios_short_rtti_base_descriptor,
549 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
550 ".?AV?$basic_ifstream@GU?$char_traits@G@std@@@std@@");
551 DEFINE_RTTI_DATA8(basic_fstream_char, sizeof(basic_fstream_char),
552 &basic_istream_char_rtti_base_descriptor, &basic_ios_char_rtti_base_descriptor,
553 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
554 &basic_ostream_char_rtti_base_descriptor, &basic_ios_char_rtti_base_descriptor,
555 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
556 ".?AV?$basic_fstream@DU?$char_traits@D@std@@@std@@");
557 DEFINE_RTTI_DATA8(basic_fstream_wchar, sizeof(basic_fstream_wchar),
558 &basic_istream_wchar_rtti_base_descriptor, &basic_ios_wchar_rtti_base_descriptor,
559 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
560 &basic_ostream_wchar_rtti_base_descriptor, &basic_ios_wchar_rtti_base_descriptor,
561 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
562 ".?AV?$basic_fstream@_WU?$char_traits@_W@std@@@std@@");
563 DEFINE_RTTI_DATA8(basic_fstream_short, sizeof(basic_fstream_wchar),
564 &basic_istream_short_rtti_base_descriptor, &basic_ios_short_rtti_base_descriptor,
565 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
566 &basic_ostream_short_rtti_base_descriptor, &basic_ios_short_rtti_base_descriptor,
567 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
568 ".?AV?$basic_fstream@GU?$char_traits@G@std@@@std@@");
569 DEFINE_RTTI_DATA4(basic_ostringstream_char, sizeof(basic_ostringstream_char),
570 &basic_ostream_char_rtti_base_descriptor, &basic_ios_char_rtti_base_descriptor,
571 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
572 ".?AV?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@");
573 DEFINE_RTTI_DATA4(basic_ostringstream_wchar, sizeof(basic_ostringstream_wchar),
574 &basic_ostream_wchar_rtti_base_descriptor, &basic_ios_wchar_rtti_base_descriptor,
575 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
576 ".?AV?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@");
577 DEFINE_RTTI_DATA4(basic_ostringstream_short, sizeof(basic_ostringstream_wchar),
578 &basic_ostream_short_rtti_base_descriptor, &basic_ios_short_rtti_base_descriptor,
579 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
580 ".?AV?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@");
581 DEFINE_RTTI_DATA4(basic_istringstream_char, sizeof(basic_istringstream_char),
582 &basic_ostream_char_rtti_base_descriptor, &basic_ios_char_rtti_base_descriptor,
583 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
584 ".?AV?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@");
585 DEFINE_RTTI_DATA4(basic_istringstream_wchar, sizeof(basic_istringstream_wchar),
586 &basic_ostream_wchar_rtti_base_descriptor, &basic_ios_wchar_rtti_base_descriptor,
587 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
588 ".?AV?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@");
589 DEFINE_RTTI_DATA4(basic_istringstream_short, sizeof(basic_istringstream_wchar),
590 &basic_ostream_short_rtti_base_descriptor, &basic_ios_short_rtti_base_descriptor,
591 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
592 ".?AV?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@");
593 DEFINE_RTTI_DATA8(basic_stringstream_char, sizeof(basic_stringstream_char),
594 &basic_istream_char_rtti_base_descriptor, &basic_ios_char_rtti_base_descriptor,
595 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
596 &basic_ostream_char_rtti_base_descriptor, &basic_ios_char_rtti_base_descriptor,
597 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
598 ".?AV?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@");
599 DEFINE_RTTI_DATA8(basic_stringstream_wchar, sizeof(basic_stringstream_wchar),
600 &basic_istream_wchar_rtti_base_descriptor, &basic_ios_wchar_rtti_base_descriptor,
601 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
602 &basic_ostream_wchar_rtti_base_descriptor, &basic_ios_wchar_rtti_base_descriptor,
603 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
604 ".?AV?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@");
605 DEFINE_RTTI_DATA8(basic_stringstream_short, sizeof(basic_stringstream_wchar),
606 &basic_istream_short_rtti_base_descriptor, &basic_ios_short_rtti_base_descriptor,
607 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
608 &basic_ostream_short_rtti_base_descriptor, &basic_ios_short_rtti_base_descriptor,
609 &ios_base_rtti_base_descriptor, &iosb_rtti_base_descriptor,
610 ".?AV?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@");
611 DEFINE_RTTI_DATA1(strstreambuf, sizeof(strstreambuf),
612 &basic_streambuf_char_rtti_base_descriptor, ".?AVstrstreambuf@std@@");
615 void __asm_dummy_vtables(void) {
618 VTABLE_ADD_FUNC(iosb_vector_dtor));
619 __ASM_VTABLE(ios_base,
620 VTABLE_ADD_FUNC(ios_base_vector_dtor));
621 __ASM_VTABLE(basic_ios_char,
622 VTABLE_ADD_FUNC(basic_ios_char_vector_dtor));
623 __ASM_VTABLE(basic_ios_wchar,
624 VTABLE_ADD_FUNC(basic_ios_wchar_vector_dtor));
625 __ASM_VTABLE(basic_ios_short,
626 VTABLE_ADD_FUNC(basic_ios_wchar_vector_dtor));
627 __ASM_VTABLE(basic_streambuf_char,
628 VTABLE_ADD_FUNC(basic_streambuf_char_vector_dtor)
629 VTABLE_ADD_FUNC(basic_streambuf_char_overflow)
630 VTABLE_ADD_FUNC(basic_streambuf_char_pbackfail)
631 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc)
632 VTABLE_ADD_FUNC(basic_streambuf_char_underflow)
633 VTABLE_ADD_FUNC(basic_streambuf_char_uflow)
634 VTABLE_ADD_FUNC(basic_streambuf_char_xsgetn)
635 VTABLE_ADD_FUNC(basic_streambuf_char__Xsgetn_s)
636 VTABLE_ADD_FUNC(basic_streambuf_char_xsputn)
637 VTABLE_ADD_FUNC(basic_streambuf_char_seekoff)
638 VTABLE_ADD_FUNC(basic_streambuf_char_seekpos)
639 VTABLE_ADD_FUNC(basic_streambuf_char_setbuf)
640 VTABLE_ADD_FUNC(basic_streambuf_char_sync)
641 VTABLE_ADD_FUNC(basic_streambuf_char_imbue));
642 __ASM_VTABLE(basic_streambuf_wchar,
643 VTABLE_ADD_FUNC(basic_streambuf_wchar_vector_dtor)
644 VTABLE_ADD_FUNC(basic_streambuf_wchar_overflow)
645 VTABLE_ADD_FUNC(basic_streambuf_wchar_pbackfail)
646 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc)
647 VTABLE_ADD_FUNC(basic_streambuf_wchar_underflow)
648 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow)
649 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn)
650 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s)
651 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn)
652 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekoff)
653 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekpos)
654 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf)
655 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync)
656 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue));
657 __ASM_VTABLE(basic_streambuf_short,
658 VTABLE_ADD_FUNC(basic_streambuf_wchar_vector_dtor)
659 VTABLE_ADD_FUNC(basic_streambuf_wchar_overflow)
660 VTABLE_ADD_FUNC(basic_streambuf_wchar_pbackfail)
661 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc)
662 VTABLE_ADD_FUNC(basic_streambuf_wchar_underflow)
663 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow)
664 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn)
665 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s)
666 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn)
667 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekoff)
668 VTABLE_ADD_FUNC(basic_streambuf_wchar_seekpos)
669 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf)
670 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync)
671 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue));
672 __ASM_VTABLE(basic_filebuf_char,
673 VTABLE_ADD_FUNC(basic_filebuf_char_vector_dtor)
674 VTABLE_ADD_FUNC(basic_filebuf_char_overflow)
675 VTABLE_ADD_FUNC(basic_filebuf_char_pbackfail)
676 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc)
677 VTABLE_ADD_FUNC(basic_filebuf_char_underflow)
678 VTABLE_ADD_FUNC(basic_filebuf_char_uflow)
679 VTABLE_ADD_FUNC(basic_streambuf_char_xsgetn)
680 VTABLE_ADD_FUNC(basic_streambuf_char__Xsgetn_s)
681 VTABLE_ADD_FUNC(basic_streambuf_char_xsputn)
682 VTABLE_ADD_FUNC(basic_filebuf_char_seekoff)
683 VTABLE_ADD_FUNC(basic_filebuf_char_seekpos)
684 VTABLE_ADD_FUNC(basic_filebuf_char_setbuf)
685 VTABLE_ADD_FUNC(basic_filebuf_char_sync)
686 VTABLE_ADD_FUNC(basic_filebuf_char_imbue));
687 __ASM_VTABLE(basic_filebuf_wchar,
688 VTABLE_ADD_FUNC(basic_filebuf_wchar_vector_dtor)
689 VTABLE_ADD_FUNC(basic_filebuf_wchar_overflow)
690 VTABLE_ADD_FUNC(basic_filebuf_wchar_pbackfail)
691 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc)
692 VTABLE_ADD_FUNC(basic_filebuf_wchar_underflow)
693 VTABLE_ADD_FUNC(basic_filebuf_wchar_uflow)
694 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn)
695 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s)
696 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn)
697 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekoff)
698 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekpos)
699 VTABLE_ADD_FUNC(basic_filebuf_wchar_setbuf)
700 VTABLE_ADD_FUNC(basic_filebuf_wchar_sync)
701 VTABLE_ADD_FUNC(basic_filebuf_wchar_imbue));
702 __ASM_VTABLE(basic_filebuf_short,
703 VTABLE_ADD_FUNC(basic_filebuf_wchar_vector_dtor)
704 VTABLE_ADD_FUNC(basic_filebuf_wchar_overflow)
705 VTABLE_ADD_FUNC(basic_filebuf_wchar_pbackfail)
706 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc)
707 VTABLE_ADD_FUNC(basic_filebuf_wchar_underflow)
708 VTABLE_ADD_FUNC(basic_filebuf_wchar_uflow)
709 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn)
710 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s)
711 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn)
712 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekoff)
713 VTABLE_ADD_FUNC(basic_filebuf_wchar_seekpos)
714 VTABLE_ADD_FUNC(basic_filebuf_short_setbuf)
715 VTABLE_ADD_FUNC(basic_filebuf_wchar_sync)
716 VTABLE_ADD_FUNC(basic_filebuf_short_imbue));
717 __ASM_VTABLE(basic_stringbuf_char,
718 VTABLE_ADD_FUNC(basic_stringbuf_char_vector_dtor)
719 VTABLE_ADD_FUNC(basic_stringbuf_char_overflow)
720 VTABLE_ADD_FUNC(basic_stringbuf_char_pbackfail)
721 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc)
722 VTABLE_ADD_FUNC(basic_stringbuf_char_underflow)
723 VTABLE_ADD_FUNC(basic_streambuf_char_uflow)
724 VTABLE_ADD_FUNC(basic_streambuf_char_xsgetn)
725 VTABLE_ADD_FUNC(basic_streambuf_char__Xsgetn_s)
726 VTABLE_ADD_FUNC(basic_streambuf_char_xsputn)
727 VTABLE_ADD_FUNC(basic_stringbuf_char_seekoff)
728 VTABLE_ADD_FUNC(basic_stringbuf_char_seekpos)
729 VTABLE_ADD_FUNC(basic_streambuf_char_setbuf)
730 VTABLE_ADD_FUNC(basic_streambuf_char_sync)
731 VTABLE_ADD_FUNC(basic_streambuf_char_imbue));
732 __ASM_VTABLE(basic_stringbuf_wchar,
733 VTABLE_ADD_FUNC(basic_stringbuf_wchar_vector_dtor)
734 VTABLE_ADD_FUNC(basic_stringbuf_wchar_overflow)
735 VTABLE_ADD_FUNC(basic_stringbuf_wchar_pbackfail)
736 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc)
737 VTABLE_ADD_FUNC(basic_stringbuf_wchar_underflow)
738 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow)
739 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn)
740 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s)
741 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn)
742 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekoff)
743 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekpos)
744 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf)
745 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync)
746 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue));
747 __ASM_VTABLE(basic_stringbuf_short,
748 VTABLE_ADD_FUNC(basic_stringbuf_wchar_vector_dtor)
749 VTABLE_ADD_FUNC(basic_stringbuf_wchar_overflow)
750 VTABLE_ADD_FUNC(basic_stringbuf_wchar_pbackfail)
751 VTABLE_ADD_FUNC(basic_streambuf_wchar_showmanyc)
752 VTABLE_ADD_FUNC(basic_stringbuf_wchar_underflow)
753 VTABLE_ADD_FUNC(basic_streambuf_wchar_uflow)
754 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsgetn)
755 VTABLE_ADD_FUNC(basic_streambuf_wchar__Xsgetn_s)
756 VTABLE_ADD_FUNC(basic_streambuf_wchar_xsputn)
757 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekoff)
758 VTABLE_ADD_FUNC(basic_stringbuf_wchar_seekpos)
759 VTABLE_ADD_FUNC(basic_streambuf_wchar_setbuf)
760 VTABLE_ADD_FUNC(basic_streambuf_wchar_sync)
761 VTABLE_ADD_FUNC(basic_streambuf_wchar_imbue));
762 __ASM_VTABLE(basic_ostream_char,
763 VTABLE_ADD_FUNC(basic_ostream_char_vector_dtor));
764 __ASM_VTABLE(basic_ostream_wchar,
765 VTABLE_ADD_FUNC(basic_ostream_wchar_vector_dtor));
766 __ASM_VTABLE(basic_ostream_short,
767 VTABLE_ADD_FUNC(basic_ostream_wchar_vector_dtor));
768 __ASM_VTABLE(basic_istream_char,
769 VTABLE_ADD_FUNC(basic_istream_char_vector_dtor));
770 __ASM_VTABLE(basic_istream_wchar,
771 VTABLE_ADD_FUNC(basic_istream_wchar_vector_dtor));
772 __ASM_VTABLE(basic_istream_short,
773 VTABLE_ADD_FUNC(basic_istream_wchar_vector_dtor));
774 __ASM_VTABLE(basic_iostream_char,
775 VTABLE_ADD_FUNC(basic_iostream_char_vector_dtor));
776 __ASM_VTABLE(basic_iostream_wchar,
777 VTABLE_ADD_FUNC(basic_iostream_wchar_vector_dtor));
778 __ASM_VTABLE(basic_iostream_short,
779 VTABLE_ADD_FUNC(basic_iostream_wchar_vector_dtor));
780 __ASM_VTABLE(basic_ofstream_char,
781 VTABLE_ADD_FUNC(basic_ofstream_char_vector_dtor));
782 __ASM_VTABLE(basic_ofstream_wchar,
783 VTABLE_ADD_FUNC(basic_ofstream_wchar_vector_dtor));
784 __ASM_VTABLE(basic_ofstream_short,
785 VTABLE_ADD_FUNC(basic_ofstream_wchar_vector_dtor));
786 __ASM_VTABLE(basic_ifstream_char,
787 VTABLE_ADD_FUNC(basic_ifstream_char_vector_dtor));
788 __ASM_VTABLE(basic_ifstream_wchar,
789 VTABLE_ADD_FUNC(basic_ifstream_wchar_vector_dtor));
790 __ASM_VTABLE(basic_ifstream_short,
791 VTABLE_ADD_FUNC(basic_ifstream_wchar_vector_dtor));
792 __ASM_VTABLE(basic_fstream_char,
793 VTABLE_ADD_FUNC(basic_fstream_char_vector_dtor));
794 __ASM_VTABLE(basic_fstream_wchar,
795 VTABLE_ADD_FUNC(basic_fstream_wchar_vector_dtor));
796 __ASM_VTABLE(basic_fstream_short,
797 VTABLE_ADD_FUNC(basic_fstream_wchar_vector_dtor));
798 __ASM_VTABLE(basic_ostringstream_char,
799 VTABLE_ADD_FUNC(basic_ostringstream_char_vector_dtor));
800 __ASM_VTABLE(basic_ostringstream_wchar,
801 VTABLE_ADD_FUNC(basic_ostringstream_wchar_vector_dtor));
802 __ASM_VTABLE(basic_ostringstream_short,
803 VTABLE_ADD_FUNC(basic_ostringstream_wchar_vector_dtor));
804 __ASM_VTABLE(basic_istringstream_char,
805 VTABLE_ADD_FUNC(basic_istringstream_char_vector_dtor));
806 __ASM_VTABLE(basic_istringstream_wchar,
807 VTABLE_ADD_FUNC(basic_istringstream_wchar_vector_dtor));
808 __ASM_VTABLE(basic_istringstream_short,
809 VTABLE_ADD_FUNC(basic_istringstream_wchar_vector_dtor));
810 __ASM_VTABLE(basic_stringstream_char,
811 VTABLE_ADD_FUNC(basic_stringstream_char_vector_dtor));
812 __ASM_VTABLE(basic_stringstream_wchar,
813 VTABLE_ADD_FUNC(basic_stringstream_wchar_vector_dtor));
814 __ASM_VTABLE(basic_stringstream_short,
815 VTABLE_ADD_FUNC(basic_stringstream_wchar_vector_dtor));
816 __ASM_VTABLE(strstreambuf,
817 VTABLE_ADD_FUNC(strstreambuf_vector_dtor)
818 VTABLE_ADD_FUNC(strstreambuf_overflow)
819 VTABLE_ADD_FUNC(strstreambuf_pbackfail)
820 VTABLE_ADD_FUNC(basic_streambuf_char_showmanyc)
821 VTABLE_ADD_FUNC(strstreambuf_underflow)
822 VTABLE_ADD_FUNC(basic_streambuf_char_uflow)
823 VTABLE_ADD_FUNC(basic_streambuf_char_xsgetn)
824 VTABLE_ADD_FUNC(basic_streambuf_char__Xsgetn_s)
825 VTABLE_ADD_FUNC(basic_streambuf_char_xsputn)
826 VTABLE_ADD_FUNC(strstreambuf_seekoff)
827 VTABLE_ADD_FUNC(strstreambuf_seekpos)
828 VTABLE_ADD_FUNC(basic_streambuf_char_setbuf)
829 VTABLE_ADD_FUNC(basic_streambuf_char_sync)
830 VTABLE_ADD_FUNC(basic_streambuf_char_imbue));
835 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD00@Z */
836 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD00@Z */
837 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setp_next, 16)
838 void __thiscall basic_streambuf_char_setp_next(basic_streambuf_char *this, char *first, char *next, char *last)
840 TRACE("(%p %p %p %p)\n", this, first, next, last);
844 this->wsize = last-next;
847 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD0@Z */
848 /* ?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD0@Z */
849 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setp, 12)
850 void __thiscall basic_streambuf_char_setp(basic_streambuf_char *this, char *first, char *last)
852 basic_streambuf_char_setp_next(this, first, first, last);
855 /* ?setg@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD00@Z */
856 /* ?setg@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAD00@Z */
857 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setg, 16)
858 void __thiscall basic_streambuf_char_setg(basic_streambuf_char *this, char *first, char *next, char *last)
860 TRACE("(%p %p %p %p)\n", this, first, next, last);
864 this->rsize = last-next;
867 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXXZ */
868 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXXZ */
869 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Init_empty, 4)
870 void __thiscall basic_streambuf_char__Init_empty(basic_streambuf_char *this)
872 TRACE("(%p)\n", this);
874 this->prbuf = &this->rbuf;
875 this->pwbuf = &this->wbuf;
876 this->prpos = &this->rpos;
877 this->pwpos = &this->wpos;
878 this->prsize = &this->rsize;
879 this->pwsize = &this->wsize;
881 basic_streambuf_char_setp(this, NULL, NULL);
882 basic_streambuf_char_setg(this, NULL, NULL, NULL);
885 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAE@W4_Uninitialized@1@@Z */
886 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAA@W4_Uninitialized@1@@Z */
887 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_ctor_uninitialized, 8)
888 basic_streambuf_char* __thiscall basic_streambuf_char_ctor_uninitialized(basic_streambuf_char *this, int uninitialized)
890 TRACE("(%p %d)\n", this, uninitialized);
891 this->vtable = &MSVCP_basic_streambuf_char_vtable;
892 mutex_ctor(&this->lock);
896 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAE@XZ */
897 /* ??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAA@XZ */
898 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_ctor, 4)
899 basic_streambuf_char* __thiscall basic_streambuf_char_ctor(basic_streambuf_char *this)
901 TRACE("(%p)\n", this);
903 this->vtable = &MSVCP_basic_streambuf_char_vtable;
904 mutex_ctor(&this->lock);
905 this->loc = MSVCRT_operator_new(sizeof(locale));
906 locale_ctor(this->loc);
907 basic_streambuf_char__Init_empty(this);
912 /* ??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UAE@XZ */
913 /* ??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UEAA@XZ */
914 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_dtor, 4)
915 void __thiscall basic_streambuf_char_dtor(basic_streambuf_char *this)
917 TRACE("(%p)\n", this);
919 mutex_dtor(&this->lock);
920 locale_dtor(this->loc);
921 MSVCRT_operator_delete(this->loc);
924 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_vector_dtor, 8)
925 basic_streambuf_char* __thiscall basic_streambuf_char_vector_dtor(basic_streambuf_char *this, unsigned int flags)
927 TRACE("(%p %x)\n", this, flags);
929 /* we have an array, with the number of elements stored before the first object */
930 INT_PTR i, *ptr = (INT_PTR *)this-1;
932 for(i=*ptr-1; i>=0; i--)
933 basic_streambuf_char_dtor(this+i);
934 MSVCRT_operator_delete(ptr);
936 basic_streambuf_char_dtor(this);
938 MSVCRT_operator_delete(this);
944 /* ?_Gnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEHXZ */
945 /* ?_Gnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBA_JXZ */
946 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Gnavail, 4)
947 streamsize __thiscall basic_streambuf_char__Gnavail(const basic_streambuf_char *this)
949 TRACE("(%p)\n", this);
950 return *this->prpos ? *this->prsize : 0;
953 /* ?_Gndec@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
954 /* ?_Gndec@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
955 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Gndec, 4)
956 char* __thiscall basic_streambuf_char__Gndec(basic_streambuf_char *this)
958 TRACE("(%p)\n", this);
964 /* ?_Gninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
965 /* ?_Gninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
966 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Gninc, 4)
967 char* __thiscall basic_streambuf_char__Gninc(basic_streambuf_char *this)
969 TRACE("(%p)\n", this);
971 return (*this->prpos)++;
974 /* ?_Gnpreinc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
975 /* ?_Gnpreinc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
976 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Gnpreinc, 4)
977 char* __thiscall basic_streambuf_char__Gnpreinc(basic_streambuf_char *this)
979 TRACE("(%p)\n", this);
985 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAPAD0PAH001@Z */
986 /* ?_Init@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXPEAPEAD0PEAH001@Z */
987 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Init, 28)
988 void __thiscall basic_streambuf_char__Init(basic_streambuf_char *this, char **gf, char **gn, int *gc, char **pf, char **pn, int *pc)
990 TRACE("(%p %p %p %p %p %p %p)\n", this, gf, gn, gc, pf, pn, pc);
1000 /* ?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
1001 /* ?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
1002 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Lock, 4)
1003 void __thiscall basic_streambuf_char__Lock(basic_streambuf_char *this)
1005 TRACE("(%p)\n", this);
1006 mutex_lock(&this->lock);
1009 /* ?_Pnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEHXZ */
1010 /* ?_Pnavail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBA_JXZ */
1011 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Pnavail, 4)
1012 streamsize __thiscall basic_streambuf_char__Pnavail(const basic_streambuf_char *this)
1014 TRACE("(%p)\n", this);
1015 return *this->pwpos ? *this->pwsize : 0;
1018 /* ?_Pninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ */
1019 /* ?_Pninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ */
1020 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Pninc, 4)
1021 char* __thiscall basic_streambuf_char__Pninc(basic_streambuf_char *this)
1023 TRACE("(%p)\n", this);
1025 return (*this->pwpos)++;
1028 /* ?underflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1029 /* ?underflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
1030 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_underflow, 4)
1031 #define call_basic_streambuf_char_underflow(this) CALL_VTBL_FUNC(this, 16, \
1032 int, (basic_streambuf_char*), (this))
1033 int __thiscall basic_streambuf_char_underflow(basic_streambuf_char *this)
1035 TRACE("(%p)\n", this);
1039 /* ?uflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1040 /* ?uflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
1041 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_uflow, 4)
1042 #define call_basic_streambuf_char_uflow(this) CALL_VTBL_FUNC(this, 20, \
1043 int, (basic_streambuf_char*), (this))
1044 int __thiscall basic_streambuf_char_uflow(basic_streambuf_char *this)
1048 TRACE("(%p)\n", this);
1050 if(call_basic_streambuf_char_underflow(this)==EOF)
1053 ret = **this->prpos;
1059 /* ?_Xsgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHPADIH@Z */
1060 /* ?_Xsgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEAD_K_J@Z */
1061 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Xsgetn_s, 16)
1062 #define call_basic_streambuf_char__Xsgetn_s(this, ptr, size, count) CALL_VTBL_FUNC(this, 28, \
1063 streamsize, (basic_streambuf_char*, char*, MSVCP_size_t, streamsize), (this, ptr, size, count))
1064 streamsize __thiscall basic_streambuf_char__Xsgetn_s(basic_streambuf_char *this, char *ptr, MSVCP_size_t size, streamsize count)
1066 streamsize copied, chunk;
1069 TRACE("(%p %p %lu %ld)\n", this, ptr, size, count);
1071 for(copied=0; copied<count && size;) {
1072 chunk = basic_streambuf_char__Gnavail(this);
1073 if(chunk > count-copied)
1074 chunk = count-copied;
1077 memcpy_s(ptr+copied, size, *this->prpos, chunk);
1078 *this->prpos += chunk;
1079 *this->prsize -= chunk;
1082 }else if((c = call_basic_streambuf_char_uflow(this)) != EOF) {
1094 /* ?_Sgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPADIH@Z */
1095 /* ?_Sgetn_s@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_K_J@Z */
1096 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Sgetn_s, 16)
1097 streamsize __thiscall basic_streambuf_char__Sgetn_s(basic_streambuf_char *this, char *ptr, MSVCP_size_t size, streamsize count)
1099 TRACE("(%p %p %lu %ld)\n", this, ptr, size, count);
1100 return call_basic_streambuf_char__Xsgetn_s(this, ptr, size, count);
1103 /* ?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
1104 /* ?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
1105 DEFINE_THISCALL_WRAPPER(basic_streambuf_char__Unlock, 4)
1106 void __thiscall basic_streambuf_char__Unlock(basic_streambuf_char *this)
1108 TRACE("(%p)\n", this);
1109 mutex_unlock(&this->lock);
1112 /* ?eback@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1113 /* ?eback@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1114 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_eback, 4)
1115 char* __thiscall basic_streambuf_char_eback(const basic_streambuf_char *this)
1117 TRACE("(%p)\n", this);
1118 return *this->prbuf;
1121 /* ?gptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1122 /* ?gptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1123 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_gptr, 4)
1124 char* __thiscall basic_streambuf_char_gptr(const basic_streambuf_char *this)
1126 TRACE("(%p)\n", this);
1127 return *this->prpos;
1130 /* ?egptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1131 /* ?egptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1132 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_egptr, 4)
1133 char* __thiscall basic_streambuf_char_egptr(const basic_streambuf_char *this)
1135 TRACE("(%p)\n", this);
1136 return *this->prpos+*this->prsize;
1139 /* ?epptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1140 /* ?epptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1141 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_epptr, 4)
1142 char* __thiscall basic_streambuf_char_epptr(const basic_streambuf_char *this)
1144 TRACE("(%p)\n", this);
1145 return *this->pwpos+*this->pwsize;
1148 /* ?gbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXH@Z */
1149 /* ?gbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXH@Z */
1150 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_gbump, 8)
1151 void __thiscall basic_streambuf_char_gbump(basic_streambuf_char *this, int off)
1153 TRACE("(%p %d)\n", this, off);
1154 *this->prpos += off;
1155 *this->prsize -= off;
1158 /* ?getloc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QBE?AVlocale@2@XZ */
1159 /* ?getloc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEBA?AVlocale@2@XZ */
1160 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_getloc, 8)
1161 locale* __thiscall basic_streambuf_char_getloc(const basic_streambuf_char *this, locale *ret)
1163 TRACE("(%p)\n", this);
1164 return locale_copy_ctor(ret, this->loc);
1167 /* ?imbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEXABVlocale@2@@Z */
1168 /* ?imbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAXAEBVlocale@2@@Z */
1169 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_imbue, 8)
1170 #define call_basic_streambuf_char_imbue(this, loc) CALL_VTBL_FUNC(this, 52, \
1171 void, (basic_streambuf_char*, const locale*), (this, loc))
1172 void __thiscall basic_streambuf_char_imbue(basic_streambuf_char *this, const locale *loc)
1174 TRACE("(%p %p)\n", this, loc);
1177 /* ?overflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHH@Z */
1178 /* ?overflow@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z */
1179 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_overflow, 8)
1180 #define call_basic_streambuf_char_overflow(this, ch) CALL_VTBL_FUNC(this, 4, \
1181 int, (basic_streambuf_char*, int), (this, ch))
1182 int __thiscall basic_streambuf_char_overflow(basic_streambuf_char *this, int ch)
1184 TRACE("(%p %d)\n", this, ch);
1188 /* ?pbackfail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHH@Z */
1189 /* ?pbackfail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z */
1190 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pbackfail, 8)
1191 #define call_basic_streambuf_char_pbackfail(this, ch) CALL_VTBL_FUNC(this, 8, \
1192 int, (basic_streambuf_char*, int), (this, ch))
1193 int __thiscall basic_streambuf_char_pbackfail(basic_streambuf_char *this, int ch)
1195 TRACE("(%p %d)\n", this, ch);
1199 /* ?pbase@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1200 /* ?pbase@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1201 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pbase, 4)
1202 char* __thiscall basic_streambuf_char_pbase(const basic_streambuf_char *this)
1204 TRACE("(%p)\n", this);
1205 return *this->pwbuf;
1208 /* ?pbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXH@Z */
1209 /* ?pbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAXH@Z */
1210 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pbump, 8)
1211 void __thiscall basic_streambuf_char_pbump(basic_streambuf_char *this, int off)
1213 TRACE("(%p %d)\n", this, off);
1214 *this->pwpos += off;
1215 *this->pwsize -= off;
1218 /* ?pptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ */
1219 /* ?pptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ */
1220 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pptr, 4)
1221 char* __thiscall basic_streambuf_char_pptr(const basic_streambuf_char *this)
1223 TRACE("(%p)\n", this);
1224 return *this->pwpos;
1227 /* ?pubimbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
1228 /* ?pubimbue@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
1229 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubimbue, 12)
1230 locale* __thiscall basic_streambuf_char_pubimbue(basic_streambuf_char *this, locale *ret, const locale *loc)
1232 TRACE("(%p %p)\n", this, loc);
1233 memcpy(ret, this->loc, sizeof(locale));
1234 call_basic_streambuf_char_imbue(this, loc);
1235 locale_copy_ctor(this->loc, loc);
1239 /* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
1240 /* ?seekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
1241 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_seekoff, 20)
1242 #define call_basic_streambuf_char_seekoff(this, ret, off, way, mode) CALL_VTBL_FUNC(this, 36, \
1243 fpos_int*, (basic_streambuf_char*, fpos_int*, streamoff, int, int), (this, ret, off, way, mode))
1244 fpos_int* __thiscall basic_streambuf_char_seekoff(basic_streambuf_char *this,
1245 fpos_int *ret, streamoff off, int way, int mode)
1247 TRACE("(%p %ld %d %d)\n", this, off, way, mode);
1254 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JHH@Z */
1255 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JHH@Z */
1256 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff, 20)
1257 fpos_int* __thiscall basic_streambuf_char_pubseekoff(basic_streambuf_char *this,
1258 fpos_int *ret, streamoff off, int way, int mode)
1260 TRACE("(%p %ld %d %d)\n", this, off, way, mode);
1261 return call_basic_streambuf_char_seekoff(this, ret, off, way, mode);
1264 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@JII@Z */
1265 /* ?pubseekoff@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@_JII@Z */
1266 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekoff_old, 20)
1267 fpos_int* __thiscall basic_streambuf_char_pubseekoff_old(basic_streambuf_char *this,
1268 fpos_int *ret, streamoff off, unsigned int way, unsigned int mode)
1270 TRACE("(%p %ld %d %d)\n", this, off, way, mode);
1271 return basic_streambuf_char_pubseekoff(this, ret, off, way, mode);
1274 /* ?seekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
1275 /* ?seekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
1276 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_seekpos, 36)
1277 #define call_basic_streambuf_char_seekpos(this, ret, pos, mode) CALL_VTBL_FUNC(this, 40, \
1278 fpos_int*, (basic_streambuf_char*, fpos_int*, fpos_int, int), (this, ret, pos, mode))
1279 fpos_int* __thiscall basic_streambuf_char_seekpos(basic_streambuf_char *this,
1280 fpos_int *ret, fpos_int pos, int mode)
1282 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos), mode);
1289 /* ?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@V32@H@Z */
1290 /* ?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@V32@H@Z */
1291 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekpos, 36)
1292 fpos_int* __thiscall basic_streambuf_char_pubseekpos(basic_streambuf_char *this,
1293 fpos_int *ret, fpos_int pos, int mode)
1295 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos), mode);
1296 return call_basic_streambuf_char_seekpos(this, ret, pos, mode);
1299 /* ?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@V32@I@Z */
1300 /* ?pubseekpos@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@V32@I@Z */
1301 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubseekpos_old, 36)
1302 fpos_int* __thiscall basic_streambuf_char_pubseekpos_old(basic_streambuf_char *this,
1303 fpos_int *ret, fpos_int pos, unsigned int mode)
1305 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos), mode);
1306 return basic_streambuf_char_pubseekpos(this, ret, pos, mode);
1309 /* ?setbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEPAV12@PADH@Z */
1310 /* ?setbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAPEAV12@PEAD_J@Z */
1311 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_setbuf, 12)
1312 #define call_basic_streambuf_char_setbuf(this, buf, count) CALL_VTBL_FUNC(this, 44, \
1313 basic_streambuf_char*, (basic_streambuf_char*, char*, streamsize), (this, buf, count))
1314 basic_streambuf_char* __thiscall basic_streambuf_char_setbuf(basic_streambuf_char *this, char *buf, streamsize count)
1316 TRACE("(%p %p %ld)\n", this, buf, count);
1320 /* ?pubsetbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PADH@Z */
1321 /* ?pubsetbuf@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEAD_J@Z */
1322 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubsetbuf, 12)
1323 basic_streambuf_char* __thiscall basic_streambuf_char_pubsetbuf(basic_streambuf_char *this, char *buf, streamsize count)
1325 TRACE("(%p %p %ld)\n", this, buf, count);
1326 return call_basic_streambuf_char_setbuf(this, buf, count);
1329 /* ?sync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1330 /* ?sync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
1331 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sync, 4)
1332 #define call_basic_streambuf_char_sync(this) CALL_VTBL_FUNC(this, 48, \
1333 int, (basic_streambuf_char*), (this))
1334 int __thiscall basic_streambuf_char_sync(basic_streambuf_char *this)
1336 TRACE("(%p)\n", this);
1340 /* ?pubsync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1341 /* ?pubsync@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1342 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_pubsync, 4)
1343 int __thiscall basic_streambuf_char_pubsync(basic_streambuf_char *this)
1345 TRACE("(%p)\n", this);
1346 return call_basic_streambuf_char_sync(this);
1349 /* ?sgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPADH@Z */
1350 /* ?sgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_J@Z */
1351 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sgetn, 12)
1352 streamsize __thiscall basic_streambuf_char_sgetn(basic_streambuf_char *this, char *ptr, streamsize count)
1354 TRACE("(%p %p %ld)\n", this, ptr, count);
1355 return call_basic_streambuf_char__Xsgetn_s(this, ptr, -1, count);
1358 /* ?showmanyc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
1359 /* ?showmanyc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JXZ */
1360 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_showmanyc, 4)
1361 #define call_basic_streambuf_char_showmanyc(this) CALL_VTBL_FUNC(this, 12, \
1362 streamsize, (basic_streambuf_char*), (this))
1363 streamsize __thiscall basic_streambuf_char_showmanyc(basic_streambuf_char *this)
1365 TRACE("(%p)\n", this);
1369 /* ?in_avail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1370 /* ?in_avail@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JXZ */
1371 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_in_avail, 4)
1372 streamsize __thiscall basic_streambuf_char_in_avail(basic_streambuf_char *this)
1376 TRACE("(%p)\n", this);
1378 ret = basic_streambuf_char__Gnavail(this);
1379 return ret ? ret : call_basic_streambuf_char_showmanyc(this);
1382 /* ?sputbackc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z */
1383 /* ?sputbackc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHD@Z */
1384 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputbackc, 8)
1385 int __thiscall basic_streambuf_char_sputbackc(basic_streambuf_char *this, char ch)
1387 TRACE("(%p %d)\n", this, ch);
1388 if(*this->prpos && *this->prpos>*this->prbuf && (*this->prpos)[-1]==ch) {
1394 return call_basic_streambuf_char_pbackfail(this, ch);
1397 /* ?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z */
1398 /* ?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHD@Z */
1399 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputc, 8)
1400 int __thiscall basic_streambuf_char_sputc(basic_streambuf_char *this, char ch)
1402 TRACE("(%p %d)\n", this, ch);
1403 return basic_streambuf_char__Pnavail(this) ?
1404 (*basic_streambuf_char__Pninc(this) = ch) :
1405 call_basic_streambuf_char_overflow(this, ch);
1408 /* ?sungetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1409 /* ?sungetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1410 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sungetc, 4)
1411 int __thiscall basic_streambuf_char_sungetc(basic_streambuf_char *this)
1413 TRACE("(%p)\n", this);
1414 if(*this->prpos && *this->prpos>*this->prbuf) {
1417 return **this->prpos;
1420 return call_basic_streambuf_char_pbackfail(this, EOF);
1423 /* ?stossc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
1424 /* ?stossc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
1425 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_stossc, 4)
1426 void __thiscall basic_streambuf_char_stossc(basic_streambuf_char *this)
1428 TRACE("(%p)\n", this);
1429 if(basic_streambuf_char__Gnavail(this))
1430 basic_streambuf_char__Gninc(this);
1432 call_basic_streambuf_char_uflow(this);
1435 /* ?sbumpc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1436 /* ?sbumpc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1437 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sbumpc, 4)
1438 int __thiscall basic_streambuf_char_sbumpc(basic_streambuf_char *this)
1440 TRACE("(%p)\n", this);
1441 return basic_streambuf_char__Gnavail(this) ?
1442 *basic_streambuf_char__Gninc(this) : call_basic_streambuf_char_uflow(this);
1445 /* ?sgetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1446 /* ?sgetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1447 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sgetc, 4)
1448 int __thiscall basic_streambuf_char_sgetc(basic_streambuf_char *this)
1450 TRACE("(%p)\n", this);
1451 return basic_streambuf_char__Gnavail(this) ?
1452 *basic_streambuf_char_gptr(this) : call_basic_streambuf_char_underflow(this);
1455 /* ?snextc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ */
1456 /* ?snextc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ */
1457 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_snextc, 4)
1458 int __thiscall basic_streambuf_char_snextc(basic_streambuf_char *this)
1460 TRACE("(%p)\n", this);
1462 if(basic_streambuf_char__Gnavail(this) > 1)
1463 return *basic_streambuf_char__Gnpreinc(this);
1464 return basic_streambuf_char_sbumpc(this)==EOF ?
1465 EOF : basic_streambuf_char_sgetc(this);
1468 /* ?xsgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHPADH@Z */
1469 /* ?xsgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEAD_J@Z */
1470 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsgetn, 12)
1471 #define call_basic_streambuf_char_xsgetn(this, ptr, count) CALL_VTBL_FUNC(this, 24, \
1472 streamsize, (basic_streambuf_char*, char*, streamsize), (this, ptr, count))
1473 streamsize __thiscall basic_streambuf_char_xsgetn(basic_streambuf_char *this, char *ptr, streamsize count)
1475 TRACE("(%p %p %ld)\n", this, ptr, count);
1476 return call_basic_streambuf_char__Xsgetn_s(this, ptr, -1, count);
1479 /* ?xsputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MAEHPBDH@Z */
1480 /* ?xsputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEBD_J@Z */
1481 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_xsputn, 12)
1482 #define call_basic_streambuf_char_xsputn(this, ptr, count) CALL_VTBL_FUNC(this, 32, \
1483 streamsize, (basic_streambuf_char*, const char*, streamsize), (this, ptr, count))
1484 streamsize __thiscall basic_streambuf_char_xsputn(basic_streambuf_char *this, const char *ptr, streamsize count)
1486 streamsize copied, chunk;
1488 TRACE("(%p %p %ld)\n", this, ptr, count);
1490 for(copied=0; copied<count;) {
1491 chunk = basic_streambuf_char__Pnavail(this);
1492 if(chunk > count-copied)
1493 chunk = count-copied;
1496 memcpy(*this->pwpos, ptr+copied, chunk);
1497 *this->pwpos += chunk;
1498 *this->pwsize -= chunk;
1500 }else if(call_basic_streambuf_char_overflow(this, ptr[copied]) != EOF) {
1510 /* ?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPBDH@Z */
1511 /* ?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEBD_J@Z */
1512 DEFINE_THISCALL_WRAPPER(basic_streambuf_char_sputn, 12)
1513 streamsize __thiscall basic_streambuf_char_sputn(basic_streambuf_char *this, const char *ptr, streamsize count)
1515 TRACE("(%p %p %ld)\n", this, ptr, count);
1516 return call_basic_streambuf_char_xsputn(this, ptr, count);
1519 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPA_W00@Z */
1520 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEA_W00@Z */
1521 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAG00@Z */
1522 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAG00@Z */
1523 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setp_next, 16)
1524 void __thiscall basic_streambuf_wchar_setp_next(basic_streambuf_wchar *this, wchar_t *first, wchar_t *next, wchar_t *last)
1526 TRACE("(%p %p %p %p)\n", this, first, next, last);
1530 this->wsize = last-next;
1533 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPA_W0@Z */
1534 /* ?setp@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEA_W0@Z */
1535 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAG0@Z */
1536 /* ?setp@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAG0@Z */
1537 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setp, 12)
1538 void __thiscall basic_streambuf_wchar_setp(basic_streambuf_wchar *this, wchar_t *first, wchar_t *last)
1540 basic_streambuf_wchar_setp_next(this, first, first, last);
1543 /* ?setg@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPA_W00@Z */
1544 /* ?setg@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEA_W00@Z */
1545 /* ?setg@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAG00@Z */
1546 /* ?setg@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAG00@Z */
1547 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setg, 16)
1548 void __thiscall basic_streambuf_wchar_setg(basic_streambuf_wchar *this, wchar_t *first, wchar_t *next, wchar_t *last)
1550 TRACE("(%p %p %p %p)\n", this, first, next, last);
1554 this->rsize = last-next;
1557 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXXZ */
1558 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXXZ */
1559 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXXZ */
1560 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXXZ */
1561 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Init_empty, 4)
1562 void __thiscall basic_streambuf_wchar__Init_empty(basic_streambuf_wchar *this)
1564 TRACE("(%p)\n", this);
1566 this->prbuf = &this->rbuf;
1567 this->pwbuf = &this->wbuf;
1568 this->prpos = &this->rpos;
1569 this->pwpos = &this->wpos;
1570 this->prsize = &this->rsize;
1571 this->pwsize = &this->wsize;
1573 basic_streambuf_wchar_setp(this, NULL, NULL);
1574 basic_streambuf_wchar_setg(this, NULL, NULL, NULL);
1577 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAE@W4_Uninitialized@1@@Z */
1578 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAA@W4_Uninitialized@1@@Z */
1579 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_ctor_uninitialized, 8)
1580 basic_streambuf_wchar* __thiscall basic_streambuf_wchar_ctor_uninitialized(basic_streambuf_wchar *this, int uninitialized)
1582 TRACE("(%p %d)\n", this, uninitialized);
1583 this->vtable = &MSVCP_basic_streambuf_wchar_vtable;
1584 mutex_ctor(&this->lock);
1588 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAE@W4_Uninitialized@1@@Z */
1589 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAA@W4_Uninitialized@1@@Z */
1590 DEFINE_THISCALL_WRAPPER(basic_streambuf_short_ctor_uninitialized, 8)
1591 basic_streambuf_wchar* __thiscall basic_streambuf_short_ctor_uninitialized(basic_streambuf_wchar *this, int uninitialized)
1593 TRACE("(%p %d)\n", this, uninitialized);
1594 basic_streambuf_wchar_ctor_uninitialized(this, uninitialized);
1595 this->vtable = &MSVCP_basic_streambuf_short_vtable;
1599 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAE@XZ */
1600 /* ??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAA@XZ */
1601 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_ctor, 4)
1602 basic_streambuf_wchar* __thiscall basic_streambuf_wchar_ctor(basic_streambuf_wchar *this)
1604 TRACE("(%p)\n", this);
1606 this->vtable = &MSVCP_basic_streambuf_wchar_vtable;
1607 mutex_ctor(&this->lock);
1608 this->loc = MSVCRT_operator_new(sizeof(locale));
1609 locale_ctor(this->loc);
1610 basic_streambuf_wchar__Init_empty(this);
1615 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAE@XZ */
1616 /* ??0?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAA@XZ */
1617 DEFINE_THISCALL_WRAPPER(basic_streambuf_short_ctor, 4)
1618 basic_streambuf_wchar* __thiscall basic_streambuf_short_ctor(basic_streambuf_wchar *this)
1620 TRACE("(%p)\n", this);
1621 basic_streambuf_wchar_ctor(this);
1622 this->vtable = &MSVCP_basic_streambuf_short_vtable;
1626 /* ??1?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
1627 /* ??1?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
1628 /* ??1?$basic_streambuf@GU?$char_traits@G@std@@@std@@UAE@XZ */
1629 /* ??1?$basic_streambuf@GU?$char_traits@G@std@@@std@@UEAA@XZ */
1630 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_dtor, 4)
1631 void __thiscall basic_streambuf_wchar_dtor(basic_streambuf_wchar *this)
1633 TRACE("(%p)\n", this);
1635 mutex_dtor(&this->lock);
1636 locale_dtor(this->loc);
1637 MSVCRT_operator_delete(this->loc);
1640 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_vector_dtor, 8)
1641 basic_streambuf_wchar* __thiscall basic_streambuf_wchar_vector_dtor(basic_streambuf_wchar *this, unsigned int flags)
1643 TRACE("(%p %x)\n", this, flags);
1645 /* we have an array, with the number of elements stored before the first object */
1646 INT_PTR i, *ptr = (INT_PTR *)this-1;
1648 for(i=*ptr-1; i>=0; i--)
1649 basic_streambuf_wchar_dtor(this+i);
1650 MSVCRT_operator_delete(ptr);
1652 basic_streambuf_wchar_dtor(this);
1654 MSVCRT_operator_delete(this);
1660 /* ?_Gnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEHXZ */
1661 /* ?_Gnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBA_JXZ */
1662 /* ?_Gnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEHXZ */
1663 /* ?_Gnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBA_JXZ */
1664 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Gnavail, 4)
1665 streamsize __thiscall basic_streambuf_wchar__Gnavail(const basic_streambuf_wchar *this)
1667 TRACE("(%p)\n", this);
1668 return *this->prpos ? *this->prsize : 0;
1671 /* ?_Gndec@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
1672 /* ?_Gndec@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
1673 /* ?_Gndec@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
1674 /* ?_Gndec@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
1675 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Gndec, 4)
1676 wchar_t* __thiscall basic_streambuf_wchar__Gndec(basic_streambuf_wchar *this)
1678 TRACE("(%p)\n", this);
1681 return *this->prpos;
1684 /* ?_Gninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
1685 /* ?_Gninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
1686 /* ?_Gninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
1687 /* ?_Gninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
1688 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Gninc, 4)
1689 wchar_t* __thiscall basic_streambuf_wchar__Gninc(basic_streambuf_wchar *this)
1691 TRACE("(%p)\n", this);
1693 return (*this->prpos)++;
1696 /* ?_Gnpreinc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
1697 /* ?_Gnpreinc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
1698 /* ?_Gnpreinc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
1699 /* ?_Gnpreinc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
1700 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Gnpreinc, 4)
1701 wchar_t* __thiscall basic_streambuf_wchar__Gnpreinc(basic_streambuf_wchar *this)
1703 TRACE("(%p)\n", this);
1706 return *this->prpos;
1709 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXPAPA_W0PAH001@Z */
1710 /* ?_Init@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEAPEA_W0PEAH001@Z */
1711 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXPAPAG0PAH001@Z */
1712 /* ?_Init@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXPEAPEAG0PEAH001@Z */
1713 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Init, 28)
1714 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)
1716 TRACE("(%p %p %p %p %p %p %p)\n", this, gf, gn, gc, pf, pn, pc);
1726 /* ?_Lock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
1727 /* ?_Lock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
1728 /* ?_Lock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
1729 /* ?_Lock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
1730 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Lock, 4)
1731 void __thiscall basic_streambuf_wchar__Lock(basic_streambuf_wchar *this)
1733 TRACE("(%p)\n", this);
1734 mutex_lock(&this->lock);
1737 /* ?_Pnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEHXZ */
1738 /* ?_Pnavail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBA_JXZ */
1739 /* ?_Pnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEHXZ */
1740 /* ?_Pnavail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBA_JXZ */
1741 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Pnavail, 4)
1742 streamsize __thiscall basic_streambuf_wchar__Pnavail(const basic_streambuf_wchar *this)
1744 TRACE("(%p)\n", this);
1745 return *this->pwpos ? *this->pwsize : 0;
1748 /* ?_Pninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEPA_WXZ */
1749 /* ?_Pninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ */
1750 /* ?_Pninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEPAGXZ */
1751 /* ?_Pninc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAPEAGXZ */
1752 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Pninc, 4)
1753 wchar_t* __thiscall basic_streambuf_wchar__Pninc(basic_streambuf_wchar *this)
1755 TRACE("(%p)\n", this);
1757 return (*this->pwpos)++;
1760 /* ?underflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
1761 /* ?underflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
1762 /* ?underflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
1763 /* ?underflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
1764 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_underflow, 4)
1765 #define call_basic_streambuf_wchar_underflow(this) CALL_VTBL_FUNC(this, 16, \
1766 unsigned short, (basic_streambuf_wchar*), (this))
1767 unsigned short __thiscall basic_streambuf_wchar_underflow(basic_streambuf_wchar *this)
1769 TRACE("(%p)\n", this);
1773 /* ?uflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
1774 /* ?uflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
1775 /* ?uflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
1776 /* ?uflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
1777 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_uflow, 4)
1778 #define call_basic_streambuf_wchar_uflow(this) CALL_VTBL_FUNC(this, 20, \
1779 unsigned short, (basic_streambuf_wchar*), (this))
1780 unsigned short __thiscall basic_streambuf_wchar_uflow(basic_streambuf_wchar *this)
1784 TRACE("(%p)\n", this);
1786 if(call_basic_streambuf_wchar_underflow(this)==WEOF)
1789 ret = **this->prpos;
1795 /* ?_Xsgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHPA_WIH@Z */
1796 /* ?_Xsgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEA_W_K_J@Z */
1797 /* ?_Xsgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHPAGIH@Z */
1798 /* ?_Xsgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JPEAG_K_J@Z */
1799 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Xsgetn_s, 16)
1800 #define call_basic_streambuf_wchar__Xsgetn_s(this, ptr, size, count) CALL_VTBL_FUNC(this, 28, \
1801 streamsize, (basic_streambuf_wchar*, wchar_t*, MSVCP_size_t, streamsize), (this, ptr, size, count))
1802 streamsize __thiscall basic_streambuf_wchar__Xsgetn_s(basic_streambuf_wchar *this, wchar_t *ptr, MSVCP_size_t size, streamsize count)
1804 streamsize copied, chunk;
1807 TRACE("(%p %p %lu %ld)\n", this, ptr, size, count);
1809 for(copied=0; copied<count && size;) {
1810 chunk = basic_streambuf_wchar__Gnavail(this);
1811 if(chunk > count-copied)
1812 chunk = count-copied;
1815 memcpy_s(ptr+copied, size, *this->prpos, chunk*sizeof(wchar_t));
1816 *this->prpos += chunk;
1817 *this->prsize -= chunk;
1819 size -= chunk*sizeof(wchar_t);
1820 }else if((c = call_basic_streambuf_wchar_uflow(this)) != WEOF) {
1832 /* ?_Sgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHPA_WIH@Z */
1833 /* ?_Sgetn_s@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_K_J@Z */
1834 /* ?_Sgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHPAGIH@Z */
1835 /* ?_Sgetn_s@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_K_J@Z */
1836 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Sgetn_s, 16)
1837 streamsize __thiscall basic_streambuf_wchar__Sgetn_s(basic_streambuf_wchar *this, wchar_t *ptr, MSVCP_size_t size, streamsize count)
1839 TRACE("(%p %p %lu %ld)\n", this, ptr, size, count);
1840 return call_basic_streambuf_wchar__Xsgetn_s(this, ptr, size, count);
1843 /* ?_Unlock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
1844 /* ?_Unlock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
1845 /* ?_Unlock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
1846 /* ?_Unlock@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
1847 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar__Unlock, 4)
1848 void __thiscall basic_streambuf_wchar__Unlock(basic_streambuf_wchar *this)
1850 TRACE("(%p)\n", this);
1851 mutex_unlock(&this->lock);
1854 /* ?eback@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
1855 /* ?eback@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
1856 /* ?eback@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
1857 /* ?eback@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
1858 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_eback, 4)
1859 wchar_t* __thiscall basic_streambuf_wchar_eback(const basic_streambuf_wchar *this)
1861 TRACE("(%p)\n", this);
1862 return *this->prbuf;
1865 /* ?gptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
1866 /* ?gptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
1867 /* ?gptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
1868 /* ?gptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
1869 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_gptr, 4)
1870 wchar_t* __thiscall basic_streambuf_wchar_gptr(const basic_streambuf_wchar *this)
1872 TRACE("(%p)\n", this);
1873 return *this->prpos;
1876 /* ?egptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
1877 /* ?egptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
1878 /* ?egptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
1879 /* ?egptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
1880 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_egptr, 4)
1881 wchar_t* __thiscall basic_streambuf_wchar_egptr(const basic_streambuf_wchar *this)
1883 TRACE("(%p)\n", this);
1884 return *this->prpos+*this->prsize;
1887 /* ?epptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
1888 /* ?epptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
1889 /* ?epptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
1890 /* ?epptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
1891 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_epptr, 4)
1892 wchar_t* __thiscall basic_streambuf_wchar_epptr(const basic_streambuf_wchar *this)
1894 TRACE("(%p)\n", this);
1895 return *this->pwpos+*this->pwsize;
1898 /* ?gbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXH@Z */
1899 /* ?gbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXH@Z */
1900 /* ?gbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXH@Z */
1901 /* ?gbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXH@Z */
1902 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_gbump, 8)
1903 void __thiscall basic_streambuf_wchar_gbump(basic_streambuf_wchar *this, int off)
1905 TRACE("(%p %d)\n", this, off);
1906 *this->prpos += off;
1907 *this->prsize -= off;
1910 /* ?getloc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QBE?AVlocale@2@XZ */
1911 /* ?getloc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEBA?AVlocale@2@XZ */
1912 /* ?getloc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QBE?AVlocale@2@XZ */
1913 /* ?getloc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEBA?AVlocale@2@XZ */
1914 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_getloc, 8)
1915 locale* __thiscall basic_streambuf_wchar_getloc(const basic_streambuf_wchar *this, locale *ret)
1917 TRACE("(%p)\n", this);
1918 return locale_copy_ctor(ret, this->loc);
1921 /* ?imbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEXABVlocale@2@@Z */
1922 /* ?imbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAXAEBVlocale@2@@Z */
1923 /* ?imbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEXABVlocale@2@@Z */
1924 /* ?imbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAXAEBVlocale@2@@Z */
1925 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_imbue, 8)
1926 #define call_basic_streambuf_wchar_imbue(this, loc) CALL_VTBL_FUNC(this, 52, \
1927 void, (basic_streambuf_wchar*, const locale*), (this, loc))
1928 void __thiscall basic_streambuf_wchar_imbue(basic_streambuf_wchar *this, const locale *loc)
1930 TRACE("(%p %p)\n", this, loc);
1933 /* ?overflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
1934 /* ?overflow@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
1935 /* ?overflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
1936 /* ?overflow@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
1937 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_overflow, 8)
1938 #define call_basic_streambuf_wchar_overflow(this, ch) CALL_VTBL_FUNC(this, 4, \
1939 unsigned short, (basic_streambuf_wchar*, unsigned short), (this, ch))
1940 unsigned short __thiscall basic_streambuf_wchar_overflow(basic_streambuf_wchar *this, unsigned short ch)
1942 TRACE("(%p %d)\n", this, ch);
1946 /* ?pbackfail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
1947 /* ?pbackfail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
1948 /* ?pbackfail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
1949 /* ?pbackfail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
1950 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pbackfail, 8)
1951 #define call_basic_streambuf_wchar_pbackfail(this, ch) CALL_VTBL_FUNC(this, 8, \
1952 unsigned short, (basic_streambuf_wchar*, unsigned short), (this, ch))
1953 unsigned short __thiscall basic_streambuf_wchar_pbackfail(basic_streambuf_wchar *this, unsigned short ch)
1955 TRACE("(%p %d)\n", this, ch);
1959 /* ?pbase@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
1960 /* ?pbase@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
1961 /* ?pbase@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
1962 /* ?pbase@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
1963 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pbase, 4)
1964 wchar_t* __thiscall basic_streambuf_wchar_pbase(const basic_streambuf_wchar *this)
1966 TRACE("(%p)\n", this);
1967 return *this->pwbuf;
1970 /* ?pbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IAEXH@Z */
1971 /* ?pbump@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAXH@Z */
1972 /* ?pbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IAEXH@Z */
1973 /* ?pbump@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEAAXH@Z */
1974 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pbump, 8)
1975 void __thiscall basic_streambuf_wchar_pbump(basic_streambuf_wchar *this, int off)
1977 TRACE("(%p %d)\n", this, off);
1978 *this->pwpos += off;
1979 *this->pwsize -= off;
1982 /* ?pptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IBEPA_WXZ */
1983 /* ?pptr@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEBAPEA_WXZ */
1984 /* ?pptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IBEPAGXZ */
1985 /* ?pptr@?$basic_streambuf@GU?$char_traits@G@std@@@std@@IEBAPEAGXZ */
1986 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pptr, 4)
1987 wchar_t* __thiscall basic_streambuf_wchar_pptr(const basic_streambuf_wchar *this)
1989 TRACE("(%p)\n", this);
1990 return *this->pwpos;
1993 /* ?pubimbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
1994 /* ?pubimbue@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
1995 /* ?pubimbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
1996 /* ?pubimbue@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
1997 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubimbue, 12)
1998 locale* __thiscall basic_streambuf_wchar_pubimbue(basic_streambuf_wchar *this, locale *ret, const locale *loc)
2000 TRACE("(%p %p)\n", this, loc);
2001 memcpy(ret, this->loc, sizeof(locale));
2002 call_basic_streambuf_wchar_imbue(this, loc);
2003 locale_copy_ctor(this->loc, loc);
2007 /* ?seekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
2008 /* ?seekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
2009 /* ?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
2010 /* ?seekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
2011 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_seekoff, 20)
2012 #define call_basic_streambuf_wchar_seekoff(this, ret, off, way, mode) CALL_VTBL_FUNC(this, 36, \
2013 fpos_int*, (basic_streambuf_wchar*, fpos_int*, streamoff, int, int), (this, ret, off, way, mode))
2014 fpos_int* __thiscall basic_streambuf_wchar_seekoff(basic_streambuf_wchar *this,
2015 fpos_int *ret, streamoff off, int way, int mode)
2017 TRACE("(%p %ld %d %d)\n", this, off, way, mode);
2024 /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@JHH@Z */
2025 /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@_JHH@Z */
2026 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JHH@Z */
2027 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JHH@Z */
2028 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff, 20)
2029 fpos_int* __thiscall basic_streambuf_wchar_pubseekoff(basic_streambuf_wchar *this,
2030 fpos_int *ret, streamoff off, int way, int mode)
2032 TRACE("(%p %ld %d %d)\n", this, off, way, mode);
2033 return call_basic_streambuf_wchar_seekoff(this, ret, off, way, mode);
2036 /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@JII@Z */
2037 /* ?pubseekoff@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@_JII@Z */
2038 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@JII@Z */
2039 /* ?pubseekoff@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@_JII@Z */
2040 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekoff_old, 20)
2041 fpos_int* __thiscall basic_streambuf_wchar_pubseekoff_old(basic_streambuf_wchar *this,
2042 fpos_int *ret, streamoff off, unsigned int way, unsigned int mode)
2044 TRACE("(%p %ld %d %d)\n", this, off, way, mode);
2045 return basic_streambuf_wchar_pubseekoff(this, ret, off, way, mode);
2048 /* ?seekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
2049 /* ?seekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
2050 /* ?seekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
2051 /* ?seekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
2052 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_seekpos, 36)
2053 #define call_basic_streambuf_wchar_seekpos(this, ret, pos, mode) CALL_VTBL_FUNC(this, 40, \
2054 fpos_int*, (basic_streambuf_wchar*, fpos_int*, fpos_int, int), (this, ret, pos, mode))
2055 fpos_int* __thiscall basic_streambuf_wchar_seekpos(basic_streambuf_wchar *this,
2056 fpos_int *ret, fpos_int pos, int mode)
2058 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos), mode);
2065 /* ?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@V32@H@Z */
2066 /* ?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@V32@H@Z */
2067 /* ?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@V32@H@Z */
2068 /* ?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@V32@H@Z */
2069 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekpos, 36)
2070 fpos_int* __thiscall basic_streambuf_wchar_pubseekpos(basic_streambuf_wchar *this,
2071 fpos_int *ret, fpos_int pos, int mode)
2073 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos), mode);
2074 return call_basic_streambuf_wchar_seekpos(this, ret, pos, mode);
2077 /* ?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@V32@I@Z */
2078 /* ?pubseekpos@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@V32@I@Z */
2079 /* ?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@V32@I@Z */
2080 /* ?pubseekpos@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@V32@I@Z */
2081 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubseekpos_old, 36)
2082 fpos_int* __thiscall basic_streambuf_wchar_pubseekpos_old(basic_streambuf_wchar *this,
2083 fpos_int *ret, fpos_int pos, unsigned int mode)
2085 TRACE("(%p %s %d)\n", this, debugstr_fpos_int(&pos), mode);
2086 return basic_streambuf_wchar_pubseekpos(this, ret, pos, mode);
2089 /* ?setbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEPAV12@PA_WH@Z */
2090 /* ?setbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAPEAV12@PEA_W_J@Z */
2091 /* ?setbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEPAV12@PAGH@Z */
2092 /* ?setbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAPEAV12@PEAG_J@Z */
2093 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_setbuf, 12)
2094 #define call_basic_streambuf_wchar_setbuf(this, buf, count) CALL_VTBL_FUNC(this, 44, \
2095 basic_streambuf_wchar*, (basic_streambuf_wchar*, wchar_t*, streamsize), (this, buf, count))
2096 basic_streambuf_wchar* __thiscall basic_streambuf_wchar_setbuf(basic_streambuf_wchar *this, wchar_t *buf, streamsize count)
2098 TRACE("(%p %p %ld)\n", this, buf, count);
2102 /* ?pubsetbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PA_WH@Z */
2103 /* ?pubsetbuf@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEA_W_J@Z */
2104 /* ?pubsetbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PAGH@Z */
2105 /* ?pubsetbuf@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEAG_J@Z */
2106 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubsetbuf, 12)
2107 basic_streambuf_wchar* __thiscall basic_streambuf_wchar_pubsetbuf(basic_streambuf_wchar *this, wchar_t *buf, streamsize count)
2109 TRACE("(%p %p %ld)\n", this, buf, count);
2110 return call_basic_streambuf_wchar_setbuf(this, buf, count);
2113 /* ?sync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHXZ */
2114 /* ?sync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAAHXZ */
2115 /* ?sync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHXZ */
2116 /* ?sync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAAHXZ */
2117 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sync, 4)
2118 #define call_basic_streambuf_wchar_sync(this) CALL_VTBL_FUNC(this, 48, \
2119 int, (basic_streambuf_wchar*), (this))
2120 int __thiscall basic_streambuf_wchar_sync(basic_streambuf_wchar *this)
2122 TRACE("(%p)\n", this);
2126 /* ?pubsync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHXZ */
2127 /* ?pubsync@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAHXZ */
2128 /* ?pubsync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHXZ */
2129 /* ?pubsync@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAHXZ */
2130 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_pubsync, 4)
2131 int __thiscall basic_streambuf_wchar_pubsync(basic_streambuf_wchar *this)
2133 TRACE("(%p)\n", this);
2134 return call_basic_streambuf_wchar_sync(this);
2137 /* ?sgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHPA_WH@Z */
2138 /* ?sgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_J@Z */
2139 /* ?sgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHPAGH@Z */
2140 /* ?sgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_J@Z */
2141 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sgetn, 12)
2142 streamsize __thiscall basic_streambuf_wchar_sgetn(basic_streambuf_wchar *this, wchar_t *ptr, streamsize count)
2144 TRACE("(%p %p %ld)\n", this, ptr, count);
2145 return call_basic_streambuf_wchar__Xsgetn_s(this, ptr, -1, count);
2148 /* ?showmanyc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHXZ */
2149 /* ?showmanyc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JXZ */
2150 /* ?showmanyc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHXZ */
2151 /* ?showmanyc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JXZ */
2152 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_showmanyc, 4)
2153 #define call_basic_streambuf_wchar_showmanyc(this) CALL_VTBL_FUNC(this, 12, \
2154 streamsize, (basic_streambuf_wchar*), (this))
2155 streamsize __thiscall basic_streambuf_wchar_showmanyc(basic_streambuf_wchar *this)
2157 TRACE("(%p)\n", this);
2161 /* ?in_avail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHXZ */
2162 /* ?in_avail@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JXZ */
2163 /* ?in_avail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHXZ */
2164 /* ?in_avail@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JXZ */
2165 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_in_avail, 4)
2166 streamsize __thiscall basic_streambuf_wchar_in_avail(basic_streambuf_wchar *this)
2170 TRACE("(%p)\n", this);
2172 ret = basic_streambuf_wchar__Gnavail(this);
2173 return ret ? ret : call_basic_streambuf_wchar_showmanyc(this);
2176 /* ?sputbackc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEG_W@Z */
2177 /* ?sputbackc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAG_W@Z */
2178 /* ?sputbackc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGG@Z */
2179 /* ?sputbackc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGG@Z */
2180 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputbackc, 8)
2181 unsigned short __thiscall basic_streambuf_wchar_sputbackc(basic_streambuf_wchar *this, wchar_t ch)
2183 TRACE("(%p %d)\n", this, ch);
2184 if(*this->prpos && *this->prpos>*this->prbuf && (*this->prpos)[-1]==ch) {
2190 return call_basic_streambuf_wchar_pbackfail(this, ch);
2193 /* ?sputc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEG_W@Z */
2194 /* ?sputc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAG_W@Z */
2195 /* ?sputc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGG@Z */
2196 /* ?sputc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAHG@Z */
2197 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputc, 8)
2198 unsigned short __thiscall basic_streambuf_wchar_sputc(basic_streambuf_wchar *this, wchar_t ch)
2200 TRACE("(%p %d)\n", this, ch);
2201 return basic_streambuf_wchar__Pnavail(this) ?
2202 (*basic_streambuf_wchar__Pninc(this) = ch) :
2203 call_basic_streambuf_wchar_overflow(this, ch);
2206 /* ?sungetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2207 /* ?sungetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2208 /* ?sungetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2209 /* ?sungetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2210 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sungetc, 4)
2211 unsigned short __thiscall basic_streambuf_wchar_sungetc(basic_streambuf_wchar *this)
2213 TRACE("(%p)\n", this);
2214 if(*this->prpos && *this->prpos>*this->prbuf) {
2217 return **this->prpos;
2220 return call_basic_streambuf_wchar_pbackfail(this, WEOF);
2223 /* ?stossc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
2224 /* ?stossc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
2225 /* ?stossc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
2226 /* ?stossc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
2227 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_stossc, 4)
2228 void __thiscall basic_streambuf_wchar_stossc(basic_streambuf_wchar *this)
2230 TRACE("(%p)\n", this);
2231 if(basic_streambuf_wchar__Gnavail(this))
2232 basic_streambuf_wchar__Gninc(this);
2234 call_basic_streambuf_wchar_uflow(this);
2237 /* ?sbumpc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2238 /* ?sbumpc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2239 /* ?sbumpc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2240 /* ?sbumpc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2241 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sbumpc, 4)
2242 unsigned short __thiscall basic_streambuf_wchar_sbumpc(basic_streambuf_wchar *this)
2244 TRACE("(%p)\n", this);
2245 return basic_streambuf_wchar__Gnavail(this) ?
2246 *basic_streambuf_wchar__Gninc(this) : call_basic_streambuf_wchar_uflow(this);
2249 /* ?sgetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2250 /* ?sgetc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2251 /* ?sgetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2252 /* ?sgetc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2253 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sgetc, 4)
2254 unsigned short __thiscall basic_streambuf_wchar_sgetc(basic_streambuf_wchar *this)
2256 TRACE("(%p)\n", this);
2257 return basic_streambuf_wchar__Gnavail(this) ?
2258 *basic_streambuf_wchar_gptr(this) : call_basic_streambuf_wchar_underflow(this);
2261 /* ?snextc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
2262 /* ?snextc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
2263 /* ?snextc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEGXZ */
2264 /* ?snextc@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAAGXZ */
2265 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_snextc, 4)
2266 unsigned short __thiscall basic_streambuf_wchar_snextc(basic_streambuf_wchar *this)
2268 TRACE("(%p)\n", this);
2270 if(basic_streambuf_wchar__Gnavail(this) > 1)
2271 return *basic_streambuf_wchar__Gnpreinc(this);
2272 return basic_streambuf_wchar_sbumpc(this)==WEOF ?
2273 WEOF : basic_streambuf_wchar_sgetc(this);
2276 /* ?xsgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHPA_WH@Z */
2277 /* ?xsgetn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEA_W_J@Z */
2278 /* ?xsgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHPAGH@Z */
2279 /* ?xsgetn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JPEAG_J@Z */
2280 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsgetn, 12)
2281 #define call_basic_streambuf_wchar_xsgetn(this, ptr, count) CALL_VTBL_FUNC(this, 24, \
2282 streamsize, (basic_streambuf_wchar*, wchar_t*, streamsize), (this, ptr, count))
2283 streamsize __thiscall basic_streambuf_wchar_xsgetn(basic_streambuf_wchar *this, wchar_t *ptr, streamsize count)
2285 TRACE("(%p %p %ld)\n", this, ptr, count);
2286 return call_basic_streambuf_wchar__Xsgetn_s(this, ptr, -1, count);
2289 /* ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHPB_WH@Z */
2290 /* ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEB_W_J@Z */
2291 /* ?xsputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHPBGH@Z */
2292 /* ?xsputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JPEBG_J@Z */
2293 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_xsputn, 12)
2294 #define call_basic_streambuf_wchar_xsputn(this, ptr, count) CALL_VTBL_FUNC(this, 32, \
2295 streamsize, (basic_streambuf_wchar*, const wchar_t*, streamsize), (this, ptr, count))
2296 streamsize __thiscall basic_streambuf_wchar_xsputn(basic_streambuf_wchar *this, const wchar_t *ptr, streamsize count)
2298 streamsize copied, chunk;
2300 TRACE("(%p %p %ld)\n", this, ptr, count);
2302 for(copied=0; copied<count;) {
2303 chunk = basic_streambuf_wchar__Pnavail(this);
2304 if(chunk > count-copied)
2305 chunk = count-copied;
2308 memcpy(*this->pwpos, ptr+copied, chunk*sizeof(wchar_t));
2309 *this->pwpos += chunk;
2310 *this->pwsize -= chunk;
2312 }else if(call_basic_streambuf_wchar_overflow(this, ptr[copied]) != WEOF) {
2322 /* ?sputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEHPB_WH@Z */
2323 /* ?sputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAA_JPEB_W_J@Z */
2324 /* ?sputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QAEHPBGH@Z */
2325 /* ?sputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@QEAA_JPEBG_J@Z */
2326 DEFINE_THISCALL_WRAPPER(basic_streambuf_wchar_sputn, 12)
2327 streamsize __thiscall basic_streambuf_wchar_sputn(basic_streambuf_wchar *this, const wchar_t *ptr, streamsize count)
2329 TRACE("(%p %p %ld)\n", this, ptr, count);
2330 return call_basic_streambuf_wchar_xsputn(this, ptr, count);
2333 /* ?_Stinit@?1??_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@23@@Z@4HA */
2334 /* ?_Stinit@?1??_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@23@@Z@4HA */
2335 int basic_filebuf_char__Init__Stinit = 0;
2337 /* ?_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@12@@Z */
2338 /* ?_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@12@@Z */
2339 DEFINE_THISCALL_WRAPPER(basic_filebuf_char__Init, 12)
2340 void __thiscall basic_filebuf_char__Init(basic_filebuf_char *this, FILE *file, basic_filebuf__Initfl which)
2342 TRACE("(%p %p %d)\n", this, file, which);
2345 this->wrotesome = FALSE;
2346 this->state = basic_filebuf_char__Init__Stinit;
2347 this->close = (which == INITFL_open);
2350 basic_streambuf_char__Init_empty(&this->base);
2352 basic_streambuf_char__Init(&this->base, &file->_base, &file->_ptr,
2353 &file->_cnt, &file->_base, &file->_ptr, &file->_cnt);
2356 /* ?_Initcvt@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAEXPAV?$codecvt@DDH@2@@Z */
2357 /* ?_Initcvt@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXPEAV?$codecvt@DDH@2@@Z */
2358 DEFINE_THISCALL_WRAPPER(basic_filebuf_char__Initcvt, 8)
2359 void __thiscall basic_filebuf_char__Initcvt(basic_filebuf_char *this, codecvt_char *cvt)
2361 TRACE("(%p %p)\n", this, cvt);
2363 if(codecvt_base_always_noconv(&cvt->base)) {
2366 basic_streambuf_char__Init_empty(&this->base);
2371 /* ?_Endwrite@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAE_NXZ */
2372 /* ?_Endwrite@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAA_NXZ */
2373 DEFINE_THISCALL_WRAPPER(basic_filebuf_char__Endwrite, 4)
2374 MSVCP_bool __thiscall basic_filebuf_char__Endwrite(basic_filebuf_char *this)
2376 TRACE("(%p)\n", this);
2378 if(!this->wrotesome || !this->cvt)
2382 if(call_basic_streambuf_char_overflow(&this->base, EOF) == EOF)
2386 /* TODO: check if we need a dynamic buffer here */
2391 ret = codecvt_char_unshift(this->cvt, &this->state, buf, buf+sizeof(buf), &next);
2394 this->wrotesome = FALSE;
2396 case CODECVT_partial:
2397 if(!fwrite(buf, next-buf, 1, this->file))
2402 case CODECVT_noconv:
2403 if(call_basic_streambuf_char_overflow(&this->base, EOF) == EOF)
2412 /* ?close@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@XZ */
2413 /* ?close@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@XZ */
2414 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_close, 4)
2415 basic_filebuf_char* __thiscall basic_filebuf_char_close(basic_filebuf_char *this)
2417 basic_filebuf_char *ret = this;
2419 TRACE("(%p)\n", this);
2424 /* TODO: handle exceptions */
2425 if(!basic_filebuf_char__Endwrite(this))
2427 if(!fclose(this->file))
2430 basic_filebuf_char__Init(this, NULL, INITFL_close);
2434 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
2435 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
2436 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_ctor_file, 8)
2437 basic_filebuf_char* __thiscall basic_filebuf_char_ctor_file(basic_filebuf_char *this, FILE *file)
2439 TRACE("(%p %p)\n", this, file);
2441 basic_streambuf_char_ctor(&this->base);
2442 this->base.vtable = &MSVCP_basic_filebuf_char_vtable;
2444 basic_filebuf_char__Init(this, file, INITFL_new);
2448 /* ??_F?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEXXZ */
2449 /* ??_F?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAXXZ */
2450 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_ctor, 4)
2451 basic_filebuf_char* __thiscall basic_filebuf_char_ctor(basic_filebuf_char *this)
2453 return basic_filebuf_char_ctor_file(this, NULL);
2456 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAE@W4_Uninitialized@1@@Z */
2457 /* ??0?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
2458 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_ctor_uninitialized, 8)
2459 basic_filebuf_char* __thiscall basic_filebuf_char_ctor_uninitialized(basic_filebuf_char *this, int uninitialized)
2461 TRACE("(%p %d)\n", this, uninitialized);
2463 basic_streambuf_char_ctor(&this->base);
2464 this->base.vtable = &MSVCP_basic_filebuf_char_vtable;
2468 /* ??1?$basic_filebuf@DU?$char_traits@D@std@@@std@@UAE@XZ */
2469 /* ??1?$basic_filebuf@DU?$char_traits@D@std@@@std@@UEAA@XZ */
2470 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_dtor, 4)
2471 void __thiscall basic_filebuf_char_dtor(basic_filebuf_char *this)
2473 TRACE("(%p)\n", this);
2476 basic_filebuf_char_close(this);
2477 basic_streambuf_char_dtor(&this->base);
2480 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_vector_dtor, 8)
2481 basic_filebuf_char* __thiscall basic_filebuf_char_vector_dtor(basic_filebuf_char *this, unsigned int flags)
2483 TRACE("(%p %x)\n", this, flags);
2485 /* we have an array, with the number of elements stored before the first object */
2486 INT_PTR i, *ptr = (INT_PTR *)this-1;
2488 for(i=*ptr-1; i>=0; i--)
2489 basic_filebuf_char_dtor(this+i);
2490 MSVCRT_operator_delete(ptr);
2492 basic_filebuf_char_dtor(this);
2494 MSVCRT_operator_delete(this);
2500 /* ?is_open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QBE_NXZ */
2501 /* ?is_open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
2502 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_is_open, 4)
2503 MSVCP_bool __thiscall basic_filebuf_char_is_open(const basic_filebuf_char *this)
2505 TRACE("(%p)\n", this);
2506 return this->file != NULL;
2509 /* ?_Fiopen@std@@YAPAU_iobuf@@PB_WHH@Z */
2510 /* ?_Fiopen@std@@YAPEAU_iobuf@@PEB_WHH@Z */
2511 FILE* __cdecl _Fiopen_wchar(const wchar_t *name, int mode, int prot)
2513 static const wchar_t rW[] = {'r',0};
2514 static const struct {
2516 const wchar_t str[4];
2517 const wchar_t str_bin[4];
2519 {OPENMODE_out, {'w',0}, {'w','b',0}},
2520 {OPENMODE_out|OPENMODE_app, {'a',0}, {'a','b',0}},
2521 {OPENMODE_app, {'a',0}, {'a','b',0}},
2522 {OPENMODE_out|OPENMODE_trunc, {'w',0}, {'w','b',0}},
2523 {OPENMODE_in, {'r',0}, {'r','b',0}},
2524 {OPENMODE_in|OPENMODE_out, {'r','+',0}, {'r','+','b',0}},
2525 {OPENMODE_in|OPENMODE_out|OPENMODE_trunc, {'w','+',0}, {'w','+','b',0}},
2526 {OPENMODE_in|OPENMODE_out|OPENMODE_app, {'a','+',0}, {'a','+','b',0}},
2527 {OPENMODE_in|OPENMODE_app, {'a','+',0}, {'a','+','b',0}}
2530 int real_mode = mode & ~(OPENMODE_ate|OPENMODE__Nocreate|OPENMODE__Noreplace|OPENMODE_binary);
2534 TRACE("(%s %d %d)\n", debugstr_w(name), mode, prot);
2536 for(mode_idx=0; mode_idx<sizeof(str_mode)/sizeof(str_mode[0]); mode_idx++)
2537 if(str_mode[mode_idx].mode == real_mode)
2539 if(mode_idx == sizeof(str_mode)/sizeof(str_mode[0]))
2542 if((mode & OPENMODE__Nocreate) && !(f = _wfopen(name, rW)))
2547 if((mode & OPENMODE__Noreplace) && (mode & (OPENMODE_out|OPENMODE_app))
2548 && (f = _wfopen(name, rW))) {
2553 f = _wfsopen(name, (mode & OPENMODE_binary) ? str_mode[mode_idx].str_bin
2554 : str_mode[mode_idx].str, prot);
2558 if((mode & OPENMODE_ate) && fseek(f, 0, SEEK_END)) {
2566 /* ?_Fiopen@std@@YAPAU_iobuf@@PBDHH@Z */
2567 /* ?_Fiopen@std@@YAPEAU_iobuf@@PEBDHH@Z */
2568 FILE* __cdecl _Fiopen(const char *name, int mode, int prot)
2570 wchar_t nameW[FILENAME_MAX];
2572 TRACE("(%s %d %d)\n", name, mode, prot);
2574 if(mbstowcs_s(NULL, nameW, FILENAME_MAX, name, FILENAME_MAX-1) != 0)
2576 return _Fiopen_wchar(nameW, mode, prot);
2579 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PB_WHH@Z */
2580 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEB_WHH@Z */
2581 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBGHH@Z */
2582 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBGHH@Z */
2583 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open_wchar, 16)
2584 basic_filebuf_char* __thiscall basic_filebuf_char_open_wchar(basic_filebuf_char *this, const wchar_t *name, int mode, int prot)
2588 TRACE("(%p %s %d %d)\n", this, debugstr_w(name), mode, prot);
2590 if(basic_filebuf_char_is_open(this))
2593 if(!(f = _Fiopen_wchar(name, mode, prot)))
2596 basic_filebuf_char__Init(this, f, INITFL_open);
2597 basic_filebuf_char__Initcvt(this, codecvt_char_use_facet(this->base.loc));
2601 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PB_WI@Z */
2602 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEB_WI@Z */
2603 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBGI@Z */
2604 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBGI@Z */
2605 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open_wchar_mode, 12)
2606 basic_filebuf_char* __thiscall basic_filebuf_char_open_wchar_mode(basic_filebuf_char *this, const wchar_t *name, unsigned int mode)
2608 return basic_filebuf_char_open_wchar(this, name, mode, SH_DENYNO);
2611 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDHH@Z */
2612 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDHH@Z */
2613 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open, 16)
2614 basic_filebuf_char* __thiscall basic_filebuf_char_open(basic_filebuf_char *this, const char *name, int mode, int prot)
2616 wchar_t nameW[FILENAME_MAX];
2618 TRACE("(%p %s %d %d)\n", this, name, mode, prot);
2620 if(mbstowcs_s(NULL, nameW, FILENAME_MAX, name, FILENAME_MAX-1) != 0)
2622 return basic_filebuf_char_open_wchar(this, nameW, mode, prot);
2625 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QAEPAV12@PBDI@Z */
2626 /* ?open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEAAPEAV12@PEBDI@Z */
2627 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_open_mode, 12)
2628 basic_filebuf_char* __thiscall basic_filebuf_char_open_mode(basic_filebuf_char *this, const char *name, unsigned int mode)
2630 return basic_filebuf_char_open(this, name, mode, SH_DENYNO);
2633 /* ?overflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHH@Z */
2634 /* ?overflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z */
2635 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_overflow, 8)
2636 int __thiscall basic_filebuf_char_overflow(basic_filebuf_char *this, int c)
2638 char buf[8], *dyn_buf;
2639 char ch = c, *to_next;
2640 const char *from_next;
2644 TRACE("(%p %d)\n", this, c);
2646 if(!basic_filebuf_char_is_open(this))
2652 return fwrite(&ch, sizeof(char), 1, this->file) ? c : EOF;
2656 ret = codecvt_char_out(this->cvt, &this->state, from_next, &ch+1,
2657 &from_next, buf, buf+sizeof(buf), &to_next);
2660 case CODECVT_partial:
2665 if(!fwrite(buf, to_next-buf, 1, this->file))
2667 if(ret == CODECVT_partial)
2670 case CODECVT_noconv:
2671 return fwrite(&ch, sizeof(char), 1, this->file) ? c : EOF;
2679 max_size = codecvt_base_max_length(&this->cvt->base);
2680 dyn_buf = malloc(max_size);
2684 ret = codecvt_char_out(this->cvt, &this->state, from_next, &ch+1,
2685 &from_next, dyn_buf, dyn_buf+max_size, &to_next);
2689 ret = fwrite(dyn_buf, to_next-dyn_buf, 1, this->file);
2691 return ret ? c : EOF;
2692 case CODECVT_partial:
2693 ERR("buffer should be big enough to store all output\n");
2701 /* ?pbackfail@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHH@Z */
2702 /* ?pbackfail@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHH@Z */
2703 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_pbackfail, 8)
2704 int __thiscall basic_filebuf_char_pbackfail(basic_filebuf_char *this, int c)
2706 TRACE("(%p %d)\n", this, c);
2708 if(!basic_filebuf_char_is_open(this))
2711 if(basic_streambuf_char_gptr(&this->base)>basic_streambuf_char_eback(&this->base)
2712 && (c==EOF || basic_streambuf_char_gptr(&this->base)[-1]==(char)c)) {
2713 basic_streambuf_char__Gndec(&this->base);
2714 return c==EOF ? !c : c;
2715 }else if(c!=EOF && !this->cvt) {
2716 return ungetc(c, this->file);
2722 /* ?uflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
2723 /* ?uflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
2724 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_uflow, 4)
2725 int __thiscall basic_filebuf_char_uflow(basic_filebuf_char *this)
2727 char ch, buf[128], *to_next;
2728 const char *buf_next;
2731 TRACE("(%p)\n", this);
2733 if(!basic_filebuf_char_is_open(this))
2736 if(basic_streambuf_char_gptr(&this->base) < basic_streambuf_char_egptr(&this->base))
2737 return *basic_streambuf_char__Gninc(&this->base);
2739 c = fgetc(this->file);
2740 if(!this->cvt || c==EOF)
2744 for(i=0; i < sizeof(buf)/sizeof(buf[0]); i++) {
2747 switch(codecvt_char_in(this->cvt, &this->state, buf_next,
2748 buf+i+1, &buf_next, &ch, &ch+1, &to_next)) {
2749 case CODECVT_partial:
2751 if(to_next == &ch) {
2752 c = fgetc(this->file);
2758 for(i--; i>=buf_next-buf; i--)
2759 ungetc(buf[i], this->file);
2761 case CODECVT_noconv:
2768 FIXME("buffer is too small\n");
2772 /* ?underflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
2773 /* ?underflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
2774 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_underflow, 4)
2775 int __thiscall basic_filebuf_char_underflow(basic_filebuf_char *this)
2779 TRACE("(%p)\n", this);
2781 if(basic_streambuf_char_gptr(&this->base) < basic_streambuf_char_egptr(&this->base))
2782 return *basic_streambuf_char_gptr(&this->base);
2784 ret = call_basic_streambuf_char_uflow(&this->base);
2786 ret = call_basic_streambuf_char_pbackfail(&this->base, ret);
2790 /* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
2791 /* ?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
2792 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_seekoff, 20)
2793 fpos_int* __thiscall basic_filebuf_char_seekoff(basic_filebuf_char *this,
2794 fpos_int *ret, streamoff off, int way, int mode)
2798 TRACE("(%p %p %ld %d %d)\n", this, ret, off, way, mode);
2800 if(!basic_filebuf_char_is_open(this) || !basic_filebuf_char__Endwrite(this)
2801 || fseek(this->file, off, way)) {
2808 fgetpos(this->file, &pos);
2811 ret->state = this->state;
2815 /* ?seekpos@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
2816 /* ?seekpos@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
2817 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_seekpos, 36)
2818 fpos_int* __thiscall basic_filebuf_char_seekpos(basic_filebuf_char *this,
2819 fpos_int *ret, fpos_int pos, int mode)
2823 TRACE("(%p %p %s %d)\n", this, ret, debugstr_fpos_int(&pos), mode);
2825 if(!basic_filebuf_char_is_open(this) || !basic_filebuf_char__Endwrite(this)
2826 || fseek(this->file, (LONG)pos.pos, SEEK_SET)
2827 || (pos.off && fseek(this->file, pos.off, SEEK_CUR))) {
2834 fgetpos(this->file, &fpos);
2837 ret->state = this->state;
2841 /* ?setbuf@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PADH@Z */
2842 /* ?setbuf@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PEAD_J@Z */
2843 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_setbuf, 12)
2844 basic_streambuf_char* __thiscall basic_filebuf_char_setbuf(basic_filebuf_char *this, char *buf, streamsize count)
2846 TRACE("(%p %p %ld)\n", this, buf, count);
2848 if(!basic_filebuf_char_is_open(this))
2851 if(setvbuf(this->file, buf, (buf==NULL && count==0) ? _IONBF : _IOFBF, count))
2854 basic_filebuf_char__Init(this, this->file, INITFL_open);
2858 /* ?sync@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHXZ */
2859 /* ?sync@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAHXZ */
2860 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_sync, 4)
2861 int __thiscall basic_filebuf_char_sync(basic_filebuf_char *this)
2863 TRACE("(%p)\n", this);
2865 if(!basic_filebuf_char_is_open(this))
2868 if(call_basic_streambuf_char_overflow(&this->base, EOF) == EOF)
2870 return fflush(this->file);
2873 /* ?imbue@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEXABVlocale@2@@Z */
2874 /* ?imbue@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MEAAXAEBVlocale@2@@Z */
2875 DEFINE_THISCALL_WRAPPER(basic_filebuf_char_imbue, 8)
2876 void __thiscall basic_filebuf_char_imbue(basic_filebuf_char *this, const locale *loc)
2878 TRACE("(%p %p)\n", this, loc);
2879 basic_filebuf_char__Initcvt(this, codecvt_char_use_facet(loc));
2882 /* ?_Stinit@?1??_Init@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@23@@Z@4HA */
2883 /* ?_Stinit@?1??_Init@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@23@@Z@4HA */
2884 int basic_filebuf_wchar__Init__Stinit = 0;
2886 /* ?_Stinit@?1??_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@23@@Z@4HA */
2887 /* ?_Stinit@?1??_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@23@@Z@4HA */
2888 int basic_filebuf_short__Init__Stinit = 0;
2890 /* ?_Init@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@12@@Z */
2891 /* ?_Init@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@12@@Z */
2892 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar__Init, 12)
2893 void __thiscall basic_filebuf_wchar__Init(basic_filebuf_wchar *this, FILE *file, basic_filebuf__Initfl which)
2895 TRACE("(%p %p %d)\n", this, file, which);
2898 this->wrotesome = FALSE;
2899 this->state = basic_filebuf_wchar__Init__Stinit;
2900 this->close = (which == INITFL_open);
2903 basic_streambuf_wchar__Init_empty(&this->base);
2906 /* ?_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAEXPAU_iobuf@@W4_Initfl@12@@Z */
2907 /* ?_Init@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@12@@Z */
2908 DEFINE_THISCALL_WRAPPER(basic_filebuf_short__Init, 12)
2909 void __thiscall basic_filebuf_short__Init(basic_filebuf_wchar *this, FILE *file, basic_filebuf__Initfl which)
2911 TRACE("(%p %p %d)\n", this, file, which);
2914 this->wrotesome = FALSE;
2915 this->state = basic_filebuf_short__Init__Stinit;
2916 this->close = (which == INITFL_open);
2919 basic_streambuf_wchar__Init_empty(&this->base);
2922 /* ?_Initcvt@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IAEXPAV?$codecvt@_WDH@2@@Z */
2923 /* ?_Initcvt@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IEAAXPEAV?$codecvt@_WDH@2@@Z */
2924 /* ?_Initcvt@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAEXPAV?$codecvt@GDH@2@@Z */
2925 /* ?_Initcvt@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAAXPEAV?$codecvt@GDH@2@@Z */
2926 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar__Initcvt, 8)
2927 void __thiscall basic_filebuf_wchar__Initcvt(basic_filebuf_wchar *this, codecvt_wchar *cvt)
2929 TRACE("(%p %p)\n", this, cvt);
2931 if(codecvt_base_always_noconv(&cvt->base)) {
2934 basic_streambuf_wchar__Init_empty(&this->base);
2939 /* ?_Endwrite@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IAE_NXZ */
2940 /* ?_Endwrite@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@IEAA_NXZ */
2941 /* ?_Endwrite@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IAE_NXZ */
2942 /* ?_Endwrite@?$basic_filebuf@GU?$char_traits@G@std@@@std@@IEAA_NXZ */
2943 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar__Endwrite, 4)
2944 MSVCP_bool __thiscall basic_filebuf_wchar__Endwrite(basic_filebuf_wchar *this)
2946 TRACE("(%p)\n", this);
2948 if(!this->wrotesome || !this->cvt)
2951 if(call_basic_streambuf_wchar_overflow(&this->base, WEOF) == WEOF)
2955 /* TODO: check if we need a dynamic buffer here */
2960 ret = codecvt_wchar_unshift(this->cvt, &this->state, buf, buf+sizeof(buf), &next);
2963 this->wrotesome = FALSE;
2965 case CODECVT_partial:
2966 if(!fwrite(buf, next-buf, 1, this->file))
2971 case CODECVT_noconv:
2972 if(call_basic_streambuf_wchar_overflow(&this->base, WEOF) == WEOF)
2981 /* ?close@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@XZ */
2982 /* ?close@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@XZ */
2983 /* ?close@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@XZ */
2984 /* ?close@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@XZ */
2985 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_close, 4)
2986 basic_filebuf_wchar* __thiscall basic_filebuf_wchar_close(basic_filebuf_wchar *this)
2988 basic_filebuf_wchar *ret = this;
2990 TRACE("(%p)\n", this);
2995 /* TODO: handle exceptions */
2996 if(!basic_filebuf_wchar__Endwrite(this))
2998 if(!fclose(this->file))
3001 basic_filebuf_wchar__Init(this, NULL, INITFL_close);
3005 /* ??0?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
3006 /* ??0?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
3007 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_ctor_file, 8)
3008 basic_filebuf_wchar* __thiscall basic_filebuf_wchar_ctor_file(basic_filebuf_wchar *this, FILE *file)
3010 TRACE("(%p %p)\n", this, file);
3012 basic_streambuf_wchar_ctor(&this->base);
3013 this->base.vtable = &MSVCP_basic_filebuf_wchar_vtable;
3015 basic_filebuf_wchar__Init(this, file, INITFL_new);
3019 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
3020 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
3021 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_ctor_file, 8)
3022 basic_filebuf_wchar* __thiscall basic_filebuf_short_ctor_file(basic_filebuf_wchar *this, FILE *file)
3024 TRACE("(%p %p)\n", this, file);
3026 basic_streambuf_short_ctor(&this->base);
3027 this->base.vtable = &MSVCP_basic_filebuf_short_vtable;
3029 basic_filebuf_short__Init(this, file, INITFL_new);
3033 /* ??_F?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
3034 /* ??_F?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
3035 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_ctor, 4)
3036 basic_filebuf_wchar* __thiscall basic_filebuf_wchar_ctor(basic_filebuf_wchar *this)
3038 return basic_filebuf_wchar_ctor_file(this, NULL);
3041 /* ??_F?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEXXZ */
3042 /* ??_F?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAXXZ */
3043 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_ctor, 4)
3044 basic_filebuf_wchar* __thiscall basic_filebuf_short_ctor(basic_filebuf_wchar *this)
3046 return basic_filebuf_short_ctor_file(this, NULL);
3049 /* ??0?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAE@W4_Uninitialized@1@@Z */
3050 /* ??0?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
3051 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_ctor_uninitialized, 8)
3052 basic_filebuf_wchar* __thiscall basic_filebuf_wchar_ctor_uninitialized(basic_filebuf_wchar *this, int uninitialized)
3054 TRACE("(%p %d)\n", this, uninitialized);
3056 basic_streambuf_wchar_ctor(&this->base);
3057 this->base.vtable = &MSVCP_basic_filebuf_wchar_vtable;
3061 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAE@W4_Uninitialized@1@@Z */
3062 /* ??0?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
3063 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_ctor_uninitialized, 8)
3064 basic_filebuf_wchar* __thiscall basic_filebuf_short_ctor_uninitialized(basic_filebuf_wchar *this, int uninitialized)
3066 TRACE("(%p %d)\n", this, uninitialized);
3068 basic_streambuf_short_ctor(&this->base);
3069 this->base.vtable = &MSVCP_basic_filebuf_short_vtable;
3073 /* ??1?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
3074 /* ??1?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
3075 /* ??1?$basic_filebuf@GU?$char_traits@G@std@@@std@@UAE@XZ */
3076 /* ??1?$basic_filebuf@GU?$char_traits@G@std@@@std@@UEAA@XZ */
3077 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_dtor, 4)
3078 void __thiscall basic_filebuf_wchar_dtor(basic_filebuf_wchar *this)
3080 TRACE("(%p)\n", this);
3083 basic_filebuf_wchar_close(this);
3084 basic_streambuf_wchar_dtor(&this->base);
3087 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_vector_dtor, 8)
3088 basic_filebuf_wchar* __thiscall basic_filebuf_wchar_vector_dtor(basic_filebuf_wchar *this, unsigned int flags)
3090 TRACE("(%p %x)\n", this, flags);
3092 /* we have an array, with the number of elements stored before the first object */
3093 INT_PTR i, *ptr = (INT_PTR *)this-1;
3095 for(i=*ptr-1; i>=0; i--)
3096 basic_filebuf_wchar_dtor(this+i);
3097 MSVCRT_operator_delete(ptr);
3099 basic_filebuf_wchar_dtor(this);
3101 MSVCRT_operator_delete(this);
3107 /* ?is_open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
3108 /* ?is_open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
3109 /* ?is_open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QBE_NXZ */
3110 /* ?is_open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
3111 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_is_open, 4)
3112 MSVCP_bool __thiscall basic_filebuf_wchar_is_open(const basic_filebuf_wchar *this)
3114 TRACE("(%p)\n", this);
3115 return this->file != NULL;
3118 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PB_WHH@Z */
3119 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEB_WHH@Z */
3120 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBGHH@Z */
3121 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBGHH@Z */
3122 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open_wchar, 16)
3123 basic_filebuf_wchar* __thiscall basic_filebuf_wchar_open_wchar(basic_filebuf_wchar *this, const wchar_t *name, int mode, int prot)
3127 TRACE("(%p %s %d %d)\n", this, debugstr_w(name), mode, prot);
3129 if(basic_filebuf_wchar_is_open(this))
3132 if(!(f = _Fiopen_wchar(name, mode, prot)))
3135 basic_filebuf_wchar__Init(this, f, INITFL_open);
3136 basic_filebuf_wchar__Initcvt(this, codecvt_wchar_use_facet(this->base.loc));
3140 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PB_WHH@Z */
3141 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEB_WHH@Z */
3142 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBGHH@Z */
3143 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBGHH@Z */
3144 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_open_wchar, 16)
3145 basic_filebuf_wchar* __thiscall basic_filebuf_short_open_wchar(basic_filebuf_wchar *this, const wchar_t *name, int mode, int prot)
3149 TRACE("(%p %s %d %d)\n", this, debugstr_w(name), mode, prot);
3151 if(basic_filebuf_wchar_is_open(this))
3154 if(!(f = _Fiopen_wchar(name, mode, prot)))
3157 basic_filebuf_short__Init(this, f, INITFL_open);
3158 basic_filebuf_wchar__Initcvt(this, codecvt_short_use_facet(this->base.loc));
3162 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PB_WI@Z */
3163 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEB_WI@Z */
3164 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBGI@Z */
3165 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBGI@Z */
3166 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open_wchar_mode, 12)
3167 basic_filebuf_wchar* __thiscall basic_filebuf_wchar_open_wchar_mode(basic_filebuf_wchar *this, const wchar_t *name, unsigned int mode)
3169 return basic_filebuf_wchar_open_wchar(this, name, mode, SH_DENYNO);
3172 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PB_WI@Z */
3173 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEB_WI@Z */
3174 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBGI@Z */
3175 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBGI@Z */
3176 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_open_wchar_mode, 12)
3177 basic_filebuf_wchar* __thiscall basic_filebuf_short_open_wchar_mode(basic_filebuf_wchar *this, const wchar_t *name, unsigned int mode)
3179 return basic_filebuf_short_open_wchar(this, name, mode, SH_DENYNO);
3182 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBDHH@Z */
3183 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBDHH@Z */
3184 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open, 16)
3185 basic_filebuf_wchar* __thiscall basic_filebuf_wchar_open(basic_filebuf_wchar *this, const char *name, int mode, int prot)
3187 wchar_t nameW[FILENAME_MAX];
3189 TRACE("(%p %s %d %d)\n", this, name, mode, prot);
3191 if(mbstowcs_s(NULL, nameW, FILENAME_MAX, name, FILENAME_MAX-1) != 0)
3193 return basic_filebuf_wchar_open_wchar(this, nameW, mode, prot);
3196 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDHH@Z */
3197 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDHH@Z */
3198 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_open, 16)
3199 basic_filebuf_wchar* __thiscall basic_filebuf_short_open(basic_filebuf_wchar *this, const char *name, int mode, int prot)
3201 wchar_t nameW[FILENAME_MAX];
3203 TRACE("(%p %s %d %d)\n", this, name, mode, prot);
3205 if(mbstowcs_s(NULL, nameW, FILENAME_MAX, name, FILENAME_MAX-1) != 0)
3207 return basic_filebuf_short_open_wchar(this, nameW, mode, prot);
3210 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QAEPAV12@PBDI@Z */
3211 /* ?open@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@QEAAPEAV12@PEBDI@Z */
3212 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_open_mode, 12)
3213 basic_filebuf_wchar* __thiscall basic_filebuf_wchar_open_mode(basic_filebuf_wchar *this, const char *name, unsigned int mode)
3215 return basic_filebuf_wchar_open(this, name, mode, SH_DENYNO);
3218 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QAEPAV12@PBDI@Z */
3219 /* ?open@?$basic_filebuf@GU?$char_traits@G@std@@@std@@QEAAPEAV12@PEBDI@Z */
3220 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_open_mode, 12)
3221 basic_filebuf_wchar* __thiscall basic_filebuf_short_open_mode(basic_filebuf_wchar *this, const char *name, unsigned int mode)
3223 return basic_filebuf_short_open(this, name, mode, SH_DENYNO);
3226 /* ?overflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
3227 /* ?overflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
3228 /* ?overflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
3229 /* ?overflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
3230 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_overflow, 8)
3231 unsigned short __thiscall basic_filebuf_wchar_overflow(basic_filebuf_wchar *this, unsigned short c)
3233 char buf[8], *dyn_buf, *to_next;
3235 const wchar_t *from_next;
3240 TRACE("(%p %d)\n", this, c);
3242 if(!basic_filebuf_wchar_is_open(this))
3248 return fwrite(&ch, sizeof(wchar_t), 1, this->file) ? c : WEOF;
3252 ret = codecvt_wchar_out(this->cvt, &this->state, from_next, &ch+1,
3253 &from_next, buf, buf+sizeof(buf), &to_next);
3256 case CODECVT_partial:
3261 if(!fwrite(buf, to_next-buf, 1, this->file))
3263 if(ret == CODECVT_partial)
3266 case CODECVT_noconv:
3267 return fwrite(&ch, sizeof(wchar_t), 1, this->file) ? c : WEOF;
3275 max_size = codecvt_base_max_length(&this->cvt->base);
3276 dyn_buf = malloc(max_size);
3280 ret = codecvt_wchar_out(this->cvt, &this->state, from_next, &ch+1,
3281 &from_next, dyn_buf, dyn_buf+max_size, &to_next);
3285 ret = fwrite(dyn_buf, to_next-dyn_buf, 1, this->file);
3287 return ret ? c : WEOF;
3288 case CODECVT_partial:
3289 ERR("buffer should be big enough to store all output\n");
3297 /* ?pbackfail@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGG@Z */
3298 /* ?pbackfail@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGG@Z */
3299 /* ?pbackfail@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGG@Z */
3300 /* ?pbackfail@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGG@Z */
3301 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_pbackfail, 8)
3302 unsigned short __thiscall basic_filebuf_wchar_pbackfail(basic_filebuf_wchar *this, unsigned short c)
3304 TRACE("(%p %d)\n", this, c);
3306 if(!basic_filebuf_wchar_is_open(this))
3309 if(basic_streambuf_wchar_gptr(&this->base)>basic_streambuf_wchar_eback(&this->base)
3310 && (c==WEOF || basic_streambuf_wchar_gptr(&this->base)[-1]==(wchar_t)c)) {
3311 basic_streambuf_wchar__Gndec(&this->base);
3312 return c==WEOF ? !c : c;
3313 }else if(c!=WEOF && !this->cvt) {
3314 return ungetwc(c, this->file);
3315 }else if(c!=WEOF && basic_streambuf_wchar_gptr(&this->base)!=&this->putback) {
3317 basic_streambuf_wchar_setg(&this->base, &this->putback, &this->putback, &this->putback+1);
3324 /* ?uflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
3325 /* ?uflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
3326 /* ?uflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
3327 /* ?uflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
3328 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_uflow, 4)
3329 unsigned short __thiscall basic_filebuf_wchar_uflow(basic_filebuf_wchar *this)
3331 wchar_t ch, *to_next;
3333 const char *buf_next;
3336 TRACE("(%p)\n", this);
3338 if(!basic_filebuf_wchar_is_open(this))
3341 if(basic_streambuf_wchar_gptr(&this->base) < basic_streambuf_wchar_egptr(&this->base))
3342 return *basic_streambuf_wchar__Gninc(&this->base);
3345 return fgetwc(this->file);
3348 for(i=0; i < sizeof(buf)/sizeof(buf[0]); i++) {
3349 if((c = fgetc(this->file)) == EOF)
3353 switch(codecvt_wchar_in(this->cvt, &this->state, buf_next,
3354 buf+i+1, &buf_next, &ch, &ch+1, &to_next)) {
3355 case CODECVT_partial:
3360 for(i--; i>=buf_next-buf; i--)
3361 ungetc(buf[i], this->file);
3363 case CODECVT_noconv:
3364 if(i+1 < sizeof(wchar_t))
3367 memcpy(&ch, buf, sizeof(wchar_t));
3374 FIXME("buffer is too small\n");
3378 /* ?underflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEGXZ */
3379 /* ?underflow@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAGXZ */
3380 /* ?underflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEGXZ */
3381 /* ?underflow@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAGXZ */
3382 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_underflow, 4)
3383 unsigned short __thiscall basic_filebuf_wchar_underflow(basic_filebuf_wchar *this)
3387 TRACE("(%p)\n", this);
3389 if(basic_streambuf_wchar_gptr(&this->base) < basic_streambuf_wchar_egptr(&this->base))
3390 return *basic_streambuf_wchar_gptr(&this->base);
3392 ret = call_basic_streambuf_wchar_uflow(&this->base);
3394 ret = call_basic_streambuf_wchar_pbackfail(&this->base, ret);
3398 /* ?seekoff@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
3399 /* ?seekoff@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
3400 /* ?seekoff@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z */
3401 /* ?seekoff@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
3402 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_seekoff, 20)
3403 fpos_int* __thiscall basic_filebuf_wchar_seekoff(basic_filebuf_wchar *this,
3404 fpos_int *ret, streamoff off, int way, int mode)
3408 TRACE("(%p %p %ld %d %d)\n", this, ret, off, way, mode);
3410 if(basic_streambuf_wchar_gptr(&this->base) == &this->putback) {
3411 if(way == SEEKDIR_cur)
3412 off -= sizeof(wchar_t);
3414 basic_streambuf_wchar_setg(&this->base, &this->putback, &this->putback+1, &this->putback+1);
3417 if(!basic_filebuf_wchar_is_open(this) || !basic_filebuf_wchar__Endwrite(this)
3418 || fseek(this->file, off, way)) {
3425 fgetpos(this->file, &pos);
3428 ret->state = this->state;
3432 /* ?seekpos@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
3433 /* ?seekpos@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
3434 /* ?seekpos@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
3435 /* ?seekpos@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
3436 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_seekpos, 36)
3437 fpos_int* __thiscall basic_filebuf_wchar_seekpos(basic_filebuf_wchar *this,
3438 fpos_int *ret, fpos_int pos, int mode)
3442 TRACE("(%p %p %s %d)\n", this, ret, debugstr_fpos_int(&pos), mode);
3444 if(!basic_filebuf_wchar_is_open(this) || !basic_filebuf_wchar__Endwrite(this)
3445 || fseek(this->file, (LONG)pos.pos, SEEK_SET)
3446 || (pos.off && fseek(this->file, pos.off, SEEK_CUR))) {
3453 if(basic_streambuf_wchar_gptr(&this->base) == &this->putback)
3454 basic_streambuf_wchar_setg(&this->base, &this->putback, &this->putback+1, &this->putback+1);
3456 fgetpos(this->file, &fpos);
3459 ret->state = this->state;
3463 /* ?setbuf@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PA_WH@Z */
3464 /* ?setbuf@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PEA_W_J@Z */
3465 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_setbuf, 12)
3466 basic_streambuf_wchar* __thiscall basic_filebuf_wchar_setbuf(basic_filebuf_wchar *this, wchar_t *buf, streamsize count)
3468 TRACE("(%p %p %ld)\n", this, buf, count);
3470 if(!basic_filebuf_wchar_is_open(this))
3473 if(setvbuf(this->file, (char*)buf, (buf==NULL && count==0) ? _IONBF : _IOFBF, count*sizeof(wchar_t)))
3476 basic_filebuf_wchar__Init(this, this->file, INITFL_open);
3480 /* ?setbuf@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PAGH@Z */
3481 /* ?setbuf@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PEAG_J@Z */
3482 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_setbuf, 12)
3483 basic_streambuf_wchar* __thiscall basic_filebuf_short_setbuf(basic_filebuf_wchar *this, wchar_t *buf, streamsize count)
3485 TRACE("(%p %p %ld)\n", this, buf, count);
3487 if(!basic_filebuf_wchar_is_open(this))
3490 if(setvbuf(this->file, (char*)buf, (buf==NULL && count==0) ? _IONBF : _IOFBF, count*sizeof(wchar_t)))
3493 basic_filebuf_short__Init(this, this->file, INITFL_open);
3497 /* ?sync@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEHXZ */
3498 /* ?sync@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAHXZ */
3499 /* ?sync@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEHXZ */
3500 /* ?sync@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAHXZ */
3501 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_sync, 4)
3502 int __thiscall basic_filebuf_wchar_sync(basic_filebuf_wchar *this)
3504 TRACE("(%p)\n", this);
3506 if(!basic_filebuf_wchar_is_open(this))
3509 if(call_basic_streambuf_wchar_overflow(&this->base, WEOF) == WEOF)
3511 return fflush(this->file);
3514 /* ?imbue@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MAEXABVlocale@2@@Z */
3515 /* ?imbue@?$basic_filebuf@_WU?$char_traits@_W@std@@@std@@MEAAXAEBVlocale@2@@Z */
3516 DEFINE_THISCALL_WRAPPER(basic_filebuf_wchar_imbue, 8)
3517 void __thiscall basic_filebuf_wchar_imbue(basic_filebuf_wchar *this, const locale *loc)
3519 TRACE("(%p %p)\n", this, loc);
3520 basic_filebuf_wchar__Initcvt(this, codecvt_wchar_use_facet(loc));
3523 /* ?imbue@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MAEXABVlocale@2@@Z */
3524 /* ?imbue@?$basic_filebuf@GU?$char_traits@G@std@@@std@@MEAAXAEBVlocale@2@@Z */
3525 DEFINE_THISCALL_WRAPPER(basic_filebuf_short_imbue, 8)
3526 void __thiscall basic_filebuf_short_imbue(basic_filebuf_wchar *this, const locale *loc)
3528 TRACE("(%p %p)\n", this, loc);
3529 basic_filebuf_wchar__Initcvt(this, codecvt_short_use_facet(loc));
3532 /* ?_Getstate@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEHH@Z */
3533 /* ?_Getstate@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAHH@Z */
3534 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char__Getstate, 8)
3535 int __thiscall basic_stringbuf_char__Getstate(basic_stringbuf_char *this, IOSB_openmode mode)
3539 if(!(mode & OPENMODE_in))
3540 state |= STRINGBUF_no_read;
3542 if(!(mode & OPENMODE_out))
3543 state |= STRINGBUF_no_write;
3545 if(mode & OPENMODE_ate)
3546 state |= STRINGBUF_at_end;
3548 if(mode & OPENMODE_app)
3549 state |= STRINGBUF_append;
3554 /* ?_Init@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXPBDIH@Z */
3555 /* ?_Init@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAXPEBD_KH@Z */
3556 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char__Init, 16)
3557 void __thiscall basic_stringbuf_char__Init(basic_stringbuf_char *this, const char *str, MSVCP_size_t count, int state)
3559 TRACE("(%p, %p, %ld, %d)\n", this, str, count, state);
3561 basic_streambuf_char__Init_empty(&this->base);
3563 this->state = state;
3564 this->seekhigh = NULL;
3567 char *buf = MSVCRT_operator_new(count);
3569 ERR("Out of memory\n");
3570 throw_exception(EXCEPTION_BAD_ALLOC, NULL);
3573 memcpy(buf, str, count);
3574 this->seekhigh = buf + count;
3576 this->state |= STRINGBUF_allocated;
3578 if(!(state & STRINGBUF_no_read))
3579 basic_streambuf_char_setg(&this->base, buf, buf, buf + count);
3581 if(!(state & STRINGBUF_no_write)) {
3582 basic_streambuf_char_setp_next(&this->base, buf, (state & STRINGBUF_at_end) ? buf + count : buf, buf + count);
3584 if(!basic_streambuf_char_gptr(&this->base))
3585 basic_streambuf_char_setg(&this->base, buf, 0, buf);
3590 /* ??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 */
3591 /* ??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 */
3592 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_ctor_str, 12)
3593 basic_stringbuf_char* __thiscall basic_stringbuf_char_ctor_str(basic_stringbuf_char *this,
3594 const basic_string_char *str, IOSB_openmode mode)
3596 TRACE("(%p %p %d)\n", this, str, mode);
3598 basic_streambuf_char_ctor(&this->base);
3599 this->base.vtable = &MSVCP_basic_stringbuf_char_vtable;
3601 basic_stringbuf_char__Init(this, MSVCP_basic_string_char_c_str(str),
3602 str->size, basic_stringbuf_char__Getstate(this, mode));
3606 /* ??0?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
3607 /* ??0?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
3608 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_ctor_mode, 8)
3609 basic_stringbuf_char* __thiscall basic_stringbuf_char_ctor_mode(
3610 basic_stringbuf_char *this, IOSB_openmode mode)
3612 TRACE("(%p %d)\n", this, mode);
3614 basic_streambuf_char_ctor(&this->base);
3615 this->base.vtable = &MSVCP_basic_stringbuf_char_vtable;
3617 basic_stringbuf_char__Init(this, NULL, 0, basic_stringbuf_char__Getstate(this, mode));
3621 /* ??_F?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
3622 /* ??_F?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
3623 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_ctor, 4)
3624 basic_stringbuf_char* __thiscall basic_stringbuf_char_ctor(basic_stringbuf_char *this)
3626 return basic_stringbuf_char_ctor_mode(this, OPENMODE_in|OPENMODE_out);
3629 /* ?_Tidy@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXXZ */
3630 /* ?_Tidy@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAXXZ */
3631 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char__Tidy, 4)
3632 void __thiscall basic_stringbuf_char__Tidy(basic_stringbuf_char *this)
3634 TRACE("(%p)\n", this);
3636 if(this->state & STRINGBUF_allocated) {
3637 MSVCRT_operator_delete(basic_streambuf_char_eback(&this->base));
3638 this->seekhigh = NULL;
3639 this->state &= ~STRINGBUF_allocated;
3642 basic_streambuf_char__Init_empty(&this->base);
3645 /* ??1?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
3646 /* ??1?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
3647 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_dtor, 4)
3648 void __thiscall basic_stringbuf_char_dtor(basic_stringbuf_char *this)
3650 TRACE("(%p)\n", this);
3652 basic_stringbuf_char__Tidy(this);
3653 basic_streambuf_char_dtor(&this->base);
3656 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_vector_dtor, 8)
3657 basic_stringbuf_char* __thiscall basic_stringbuf_char_vector_dtor(basic_stringbuf_char *this, unsigned int flags)
3659 TRACE("(%p %x)\n", this, flags);
3662 /* we have an array, with the number of elements stored before the first object */
3663 INT_PTR i, *ptr = (INT_PTR *) this - 1;
3665 for (i = *ptr - 1; i >= 0; i--)
3666 basic_stringbuf_char_dtor(this+i);
3668 MSVCRT_operator_delete(ptr);
3670 basic_stringbuf_char_dtor(this);
3673 MSVCRT_operator_delete(this);
3679 /* ?overflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHH@Z */
3680 /* ?overflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAAHH@Z */
3681 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_overflow, 8)
3682 int __thiscall basic_stringbuf_char_overflow(basic_stringbuf_char *this, int meta)
3684 MSVCP_size_t oldsize, size;
3687 TRACE("(%p %x)\n", this, meta);
3691 if(this->state & STRINGBUF_no_write)
3694 ptr = basic_streambuf_char_pptr(&this->base);
3695 if((this->state&STRINGBUF_append) && ptr<this->seekhigh)
3696 basic_streambuf_char_setp_next(&this->base, basic_streambuf_char_pbase(&this->base),
3697 this->seekhigh, basic_streambuf_char_epptr(&this->base));
3699 if(ptr && ptr<basic_streambuf_char_epptr(&this->base))
3700 return (*basic_streambuf_char__Pninc(&this->base) = meta);
3702 oldsize = (ptr ? basic_streambuf_char_epptr(&this->base)-basic_streambuf_char_eback(&this->base): 0);
3705 buf = MSVCRT_operator_new(size);
3707 ERR("Out of memory\n");
3708 throw_exception(EXCEPTION_BAD_ALLOC, NULL);
3712 this->seekhigh = buf;
3713 basic_streambuf_char_setp(&this->base, buf, buf+size);
3714 if(this->state & STRINGBUF_no_read)
3715 basic_streambuf_char_setg(&this->base, buf, NULL, buf);
3717 basic_streambuf_char_setg(&this->base, buf, buf, buf+1);
3719 this->state |= STRINGBUF_allocated;
3721 ptr = basic_streambuf_char_eback(&this->base);
3722 memcpy(buf, ptr, oldsize);
3724 this->seekhigh = buf+(this->seekhigh-ptr);
3725 basic_streambuf_char_setp_next(&this->base, buf,
3726 buf+(basic_streambuf_char_pptr(&this->base)-ptr), buf+size);
3727 if(this->state & STRINGBUF_no_read)
3728 basic_streambuf_char_setg(&this->base, buf, NULL, buf);
3730 basic_streambuf_char_setg(&this->base, buf,
3731 buf+(basic_streambuf_char_gptr(&this->base)-ptr),
3732 basic_streambuf_char_pptr(&this->base)+1);
3734 MSVCRT_operator_delete(ptr);
3737 return (*basic_streambuf_char__Pninc(&this->base) = meta);
3740 /* ?pbackfail@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHH@Z */
3741 /* ?pbackfail@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAAHH@Z */
3742 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_pbackfail, 8)
3743 int __thiscall basic_stringbuf_char_pbackfail(basic_stringbuf_char *this, int c)
3747 TRACE("(%p %x)\n", this, c);
3749 cur = basic_streambuf_char_gptr(&this->base);
3750 if(!cur || cur==basic_streambuf_char_eback(&this->base)
3751 || (c!=EOF && c!=cur[-1] && this->state&STRINGBUF_no_write))
3756 basic_streambuf_char_gbump(&this->base, -1);
3757 return c==EOF ? !EOF : c;
3760 /* ?underflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAEHXZ */
3761 /* ?underflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAAHXZ */
3762 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_underflow, 4)
3763 int __thiscall basic_stringbuf_char_underflow(basic_stringbuf_char *this)
3767 TRACE("(%p)\n", this);
3769 cur = basic_streambuf_char_gptr(&this->base);
3770 if(!cur || this->state&STRINGBUF_no_read)
3773 ptr = basic_streambuf_char_pptr(&this->base);
3774 if(this->seekhigh < ptr)
3775 this->seekhigh = ptr;
3777 ptr = basic_streambuf_char_egptr(&this->base);
3778 if(this->seekhigh > ptr)
3779 basic_streambuf_char_setg(&this->base, basic_streambuf_char_eback(&this->base), cur, this->seekhigh);
3781 if(cur < this->seekhigh)
3786 /* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAE?AV?$fpos@H@2@JHH@Z */
3787 /* ?seekoff@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
3788 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_seekoff, 20)
3789 fpos_int* __thiscall basic_stringbuf_char_seekoff(basic_stringbuf_char *this,
3790 fpos_int *ret, streamoff off, int way, int mode)
3792 char *beg, *cur_r, *cur_w;
3794 TRACE("(%p %p %ld %d %d)\n", this, ret, off, way, mode);
3796 cur_w = basic_streambuf_char_pptr(&this->base);
3797 if(cur_w > this->seekhigh)
3798 this->seekhigh = cur_w;
3803 beg = basic_streambuf_char_eback(&this->base);
3804 cur_r = basic_streambuf_char_gptr(&this->base);
3805 if((mode & OPENMODE_in) && cur_r) {
3806 if(way==SEEKDIR_cur && !(mode & OPENMODE_out))
3808 else if(way == SEEKDIR_end)
3809 off += this->seekhigh-beg;
3810 else if(way != SEEKDIR_beg)
3813 if(off<0 || off>this->seekhigh-beg) {
3816 basic_streambuf_char_gbump(&this->base, beg-cur_r+off);
3817 if((mode & OPENMODE_out) && cur_w) {
3818 basic_streambuf_char_setp_next(&this->base, beg,
3819 basic_streambuf_char_gptr(&this->base),
3820 basic_streambuf_char_epptr(&this->base));
3823 }else if((mode & OPENMODE_out) && cur_w) {
3824 if(way == SEEKDIR_cur)
3826 else if(way == SEEKDIR_end)
3827 off += this->seekhigh-beg;
3828 else if(way != SEEKDIR_beg)
3831 if(off<0 || off>this->seekhigh-beg)
3834 basic_streambuf_char_pbump(&this->base, beg-cur_w+off);
3843 /* ?seekpos@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
3844 /* ?seekpos@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
3845 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_seekpos, 36)
3846 fpos_int* __thiscall basic_stringbuf_char_seekpos(basic_stringbuf_char *this,
3847 fpos_int *ret, fpos_int pos, int mode)
3849 TRACE("(%p %p %s %d)\n", this, ret, debugstr_fpos_int(&pos), mode);
3851 if(pos.off==0 && pos.pos==-1 && pos.state==0) {
3856 return basic_stringbuf_char_seekoff(this, ret, pos.off, SEEKDIR_beg, mode);
3859 /* ?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 */
3860 /* ?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 */
3861 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_str_set, 8)
3862 void __thiscall basic_stringbuf_char_str_set(basic_stringbuf_char *this, const basic_string_char *str)
3864 TRACE("(%p %p)\n", this, str);
3866 basic_stringbuf_char__Tidy(this);
3867 basic_stringbuf_char__Init(this, MSVCP_basic_string_char_c_str(str), str->size, this->state);
3870 /* ?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 */
3871 /* ?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 */
3872 DEFINE_THISCALL_WRAPPER(basic_stringbuf_char_str_get, 8)
3873 basic_string_char* __thiscall basic_stringbuf_char_str_get(const basic_stringbuf_char *this, basic_string_char *ret)
3877 TRACE("(%p)\n", this);
3879 if(!(this->state & STRINGBUF_no_write) && basic_streambuf_char_pptr(&this->base)) {
3882 ptr = basic_streambuf_char_pbase(&this->base);
3883 pptr = basic_streambuf_char_pptr(&this->base);
3885 return MSVCP_basic_string_char_ctor_cstr_len(ret, ptr, (this->seekhigh < pptr ? pptr : this->seekhigh) - ptr);
3888 if(!(this->state & STRINGBUF_no_read) && basic_streambuf_char_gptr(&this->base)) {
3889 ptr = basic_streambuf_char_eback(&this->base);
3890 return MSVCP_basic_string_char_ctor_cstr_len(ret, ptr, basic_streambuf_char_egptr(&this->base) - ptr);
3893 return MSVCP_basic_string_char_ctor(ret);
3896 /* ?_Getstate@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AAEHH@Z */
3897 /* ?_Getstate@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AEAAHH@Z */
3898 /* ?_Getstate@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AAEHH@Z */
3899 /* ?_Getstate@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AEAAHH@Z */
3900 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar__Getstate, 8)
3901 int __thiscall basic_stringbuf_wchar__Getstate(basic_stringbuf_wchar *this, IOSB_openmode mode)
3905 if(!(mode & OPENMODE_in))
3906 state |= STRINGBUF_no_read;
3908 if(!(mode & OPENMODE_out))
3909 state |= STRINGBUF_no_write;
3911 if(mode & OPENMODE_ate)
3912 state |= STRINGBUF_at_end;
3914 if(mode & OPENMODE_app)
3915 state |= STRINGBUF_append;
3920 /* ?_Init@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXPB_WIH@Z */
3921 /* ?_Init@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAXPEB_W_KH@Z */
3922 /* ?_Init@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEXPBGIH@Z */
3923 /* ?_Init@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAXPEBG_KH@Z */
3924 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar__Init, 16)
3925 void __thiscall basic_stringbuf_wchar__Init(basic_stringbuf_wchar *this, const wchar_t *str, MSVCP_size_t count, int state)
3927 TRACE("(%p, %p, %lu, %d)\n", this, str, count, state);
3929 basic_streambuf_wchar__Init_empty(&this->base);
3931 this->state = state;
3932 this->seekhigh = NULL;
3935 wchar_t *buf = MSVCRT_operator_new(count*sizeof(wchar_t));
3937 ERR("Out of memory\n");
3938 throw_exception(EXCEPTION_BAD_ALLOC, NULL);
3941 memcpy(buf, str, count*sizeof(wchar_t));
3942 this->seekhigh = buf + count;
3944 this->state |= STRINGBUF_allocated;
3946 if(!(state & STRINGBUF_no_read))
3947 basic_streambuf_wchar_setg(&this->base, buf, buf, buf + count);
3949 if(!(state & STRINGBUF_no_write)) {
3950 basic_streambuf_wchar_setp_next(&this->base, buf, (state & STRINGBUF_at_end) ? buf + count : buf, buf + count);
3952 if(!basic_streambuf_wchar_gptr(&this->base))
3953 basic_streambuf_wchar_setg(&this->base, buf, 0, buf);
3958 /* ??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 */
3959 /* ??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 */
3960 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_ctor_str, 12)
3961 basic_stringbuf_wchar* __thiscall basic_stringbuf_wchar_ctor_str(basic_stringbuf_wchar *this,
3962 const basic_string_wchar *str, IOSB_openmode mode)
3964 TRACE("(%p %p %d)\n", this, str, mode);
3966 basic_streambuf_wchar_ctor(&this->base);
3967 this->base.vtable = &MSVCP_basic_stringbuf_wchar_vtable;
3969 basic_stringbuf_wchar__Init(this, MSVCP_basic_string_wchar_c_str(str),
3970 str->size, basic_stringbuf_wchar__Getstate(this, mode));
3974 /* ??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 */
3975 /* ??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 */
3976 DEFINE_THISCALL_WRAPPER(basic_stringbuf_short_ctor_str, 12)
3977 basic_stringbuf_wchar* __thiscall basic_stringbuf_short_ctor_str(basic_stringbuf_wchar *this,
3978 const basic_string_wchar *str, IOSB_openmode mode)
3980 basic_stringbuf_wchar_ctor_str(this, str, mode);
3981 this->base.vtable = &MSVCP_basic_stringbuf_short_vtable;
3985 /* ??0?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
3986 /* ??0?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
3987 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_ctor_mode, 8)
3988 basic_stringbuf_wchar* __thiscall basic_stringbuf_wchar_ctor_mode(
3989 basic_stringbuf_wchar *this, IOSB_openmode mode)
3991 TRACE("(%p %d)\n", this, mode);
3993 basic_streambuf_wchar_ctor(&this->base);
3994 this->base.vtable = &MSVCP_basic_stringbuf_wchar_vtable;
3996 basic_stringbuf_wchar__Init(this, NULL, 0, basic_stringbuf_wchar__Getstate(this, mode));
4000 /* ??0?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
4001 /* ??0?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
4002 DEFINE_THISCALL_WRAPPER(basic_stringbuf_short_ctor_mode, 8)
4003 basic_stringbuf_wchar* __thiscall basic_stringbuf_short_ctor_mode(
4004 basic_stringbuf_wchar *this, IOSB_openmode mode)
4006 basic_stringbuf_wchar_ctor_mode(this, mode);
4007 this->base.vtable = &MSVCP_basic_stringbuf_short_vtable;
4011 /* ??_F?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
4012 /* ??_F?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
4013 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_ctor, 4)
4014 basic_stringbuf_wchar* __thiscall basic_stringbuf_wchar_ctor(basic_stringbuf_wchar *this)
4016 return basic_stringbuf_wchar_ctor_mode(this, OPENMODE_in|OPENMODE_out);
4019 /* ??_F?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
4020 /* ??_F?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
4021 DEFINE_THISCALL_WRAPPER(basic_stringbuf_short_ctor, 4)
4022 basic_stringbuf_wchar* __thiscall basic_stringbuf_short_ctor(basic_stringbuf_wchar *this)
4024 return basic_stringbuf_short_ctor_mode(this, OPENMODE_in|OPENMODE_out);
4027 /* ?_Tidy@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXXZ */
4028 /* ?_Tidy@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAXXZ */
4029 /* ?_Tidy@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEXXZ */
4030 /* ?_Tidy@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAXXZ */
4031 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar__Tidy, 4)
4032 void __thiscall basic_stringbuf_wchar__Tidy(basic_stringbuf_wchar *this)
4034 TRACE("(%p)\n", this);
4036 if(this->state & STRINGBUF_allocated) {
4037 MSVCRT_operator_delete(basic_streambuf_wchar_eback(&this->base));
4038 this->seekhigh = NULL;
4039 this->state &= ~STRINGBUF_allocated;
4042 basic_streambuf_wchar__Init_empty(&this->base);
4045 /* ??1?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
4046 /* ??1?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
4047 /* ??1?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
4048 /* ??1?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
4049 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_dtor, 4)
4050 void __thiscall basic_stringbuf_wchar_dtor(basic_stringbuf_wchar *this)
4052 TRACE("(%p)\n", this);
4054 basic_stringbuf_wchar__Tidy(this);
4055 basic_streambuf_wchar_dtor(&this->base);
4058 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_vector_dtor, 8)
4059 basic_stringbuf_wchar* __thiscall basic_stringbuf_wchar_vector_dtor(basic_stringbuf_wchar *this, unsigned int flags)
4061 TRACE("(%p %x)\n", this, flags);
4064 /* we have an array, with the number of elements stored before the first object */
4065 INT_PTR i, *ptr = (INT_PTR *) this - 1;
4067 for (i = *ptr - 1; i >= 0; i--)
4068 basic_stringbuf_wchar_dtor(this+i);
4070 MSVCRT_operator_delete(ptr);
4072 basic_stringbuf_wchar_dtor(this);
4075 MSVCRT_operator_delete(this);
4081 /* ?overflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAEGG@Z */
4082 /* ?overflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAAGG@Z */
4083 /* ?overflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAEGG@Z */
4084 /* ?overflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAAGG@Z */
4085 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_overflow, 8)
4086 unsigned short __thiscall basic_stringbuf_wchar_overflow(basic_stringbuf_wchar *this, unsigned short meta)
4088 MSVCP_size_t oldsize, size;
4091 TRACE("(%p %x)\n", this, meta);
4095 if(this->state & STRINGBUF_no_write)
4098 ptr = basic_streambuf_wchar_pptr(&this->base);
4099 if((this->state&STRINGBUF_append) && ptr<this->seekhigh)
4100 basic_streambuf_wchar_setp_next(&this->base, basic_streambuf_wchar_pbase(&this->base),
4101 this->seekhigh, basic_streambuf_wchar_epptr(&this->base));
4103 if(ptr && ptr<basic_streambuf_wchar_epptr(&this->base))
4104 return (*basic_streambuf_wchar__Pninc(&this->base) = meta);
4106 oldsize = (ptr ? basic_streambuf_wchar_epptr(&this->base)-basic_streambuf_wchar_eback(&this->base): 0);
4109 buf = MSVCRT_operator_new(size*sizeof(wchar_t));
4111 ERR("Out of memory\n");
4112 throw_exception(EXCEPTION_BAD_ALLOC, NULL);
4116 this->seekhigh = buf;
4117 basic_streambuf_wchar_setp(&this->base, buf, buf+size);
4118 if(this->state & STRINGBUF_no_read)
4119 basic_streambuf_wchar_setg(&this->base, buf, NULL, buf);
4121 basic_streambuf_wchar_setg(&this->base, buf, buf, buf+1);
4123 this->state |= STRINGBUF_allocated;
4125 ptr = basic_streambuf_wchar_eback(&this->base);
4126 memcpy(buf, ptr, oldsize*sizeof(wchar_t));
4128 this->seekhigh = buf+(this->seekhigh-ptr);
4129 basic_streambuf_wchar_setp_next(&this->base, buf,
4130 buf+(basic_streambuf_wchar_pptr(&this->base)-ptr), buf+size);
4131 if(this->state & STRINGBUF_no_read)
4132 basic_streambuf_wchar_setg(&this->base, buf, NULL, buf);
4134 basic_streambuf_wchar_setg(&this->base, buf,
4135 buf+(basic_streambuf_wchar_gptr(&this->base)-ptr),
4136 basic_streambuf_wchar_pptr(&this->base)+1);
4138 MSVCRT_operator_delete(ptr);
4141 return (*basic_streambuf_wchar__Pninc(&this->base) = meta);
4144 /* ?pbackfail@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAEGG@Z */
4145 /* ?pbackfail@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAAGG@Z */
4146 /* ?pbackfail@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAEGG@Z */
4147 /* ?pbackfail@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAAGG@Z */
4148 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_pbackfail, 8)
4149 unsigned short __thiscall basic_stringbuf_wchar_pbackfail(basic_stringbuf_wchar *this, unsigned short c)
4153 TRACE("(%p %x)\n", this, c);
4155 cur = basic_streambuf_wchar_gptr(&this->base);
4156 if(!cur || cur==basic_streambuf_wchar_eback(&this->base)
4157 || (c!=WEOF && c!=cur[-1] && this->state&STRINGBUF_no_write))
4162 basic_streambuf_wchar_gbump(&this->base, -1);
4163 return c==WEOF ? !WEOF : c;
4166 /* ?underflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAEGXZ */
4167 /* ?underflow@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAAGXZ */
4168 /* ?underflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAEGXZ */
4169 /* ?underflow@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAAGXZ */
4170 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_underflow, 4)
4171 unsigned short __thiscall basic_stringbuf_wchar_underflow(basic_stringbuf_wchar *this)
4175 TRACE("(%p)\n", this);
4177 cur = basic_streambuf_wchar_gptr(&this->base);
4178 if(!cur || this->state&STRINGBUF_no_read)
4181 ptr = basic_streambuf_wchar_pptr(&this->base);
4182 if(this->seekhigh < ptr)
4183 this->seekhigh = ptr;
4185 ptr = basic_streambuf_wchar_egptr(&this->base);
4186 if(this->seekhigh > ptr)
4187 basic_streambuf_wchar_setg(&this->base, basic_streambuf_wchar_eback(&this->base), cur, this->seekhigh);
4189 if(cur < this->seekhigh)
4194 /* ?seekoff@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAE?AV?$fpos@H@2@JHH@Z */
4195 /* ?seekoff@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
4196 /* ?seekoff@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAE?AV?$fpos@H@2@JHH@Z */
4197 /* ?seekoff@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
4198 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_seekoff, 20)
4199 fpos_int* __thiscall basic_stringbuf_wchar_seekoff(basic_stringbuf_wchar *this,
4200 fpos_int *ret, streamoff off, int way, int mode)
4202 wchar_t *beg, *cur_r, *cur_w;
4204 TRACE("(%p %p %ld %d %d)\n", this, ret, off, way, mode);
4206 cur_w = basic_streambuf_wchar_pptr(&this->base);
4207 if(cur_w > this->seekhigh)
4208 this->seekhigh = cur_w;
4213 beg = basic_streambuf_wchar_eback(&this->base);
4214 cur_r = basic_streambuf_wchar_gptr(&this->base);
4215 if((mode & OPENMODE_in) && cur_r) {
4216 if(way==SEEKDIR_cur && !(mode & OPENMODE_out))
4218 else if(way == SEEKDIR_end)
4219 off += this->seekhigh-beg;
4220 else if(way != SEEKDIR_beg)
4223 if(off<0 || off>this->seekhigh-beg) {
4226 basic_streambuf_wchar_gbump(&this->base, beg-cur_r+off);
4227 if((mode & OPENMODE_out) && cur_w) {
4228 basic_streambuf_wchar_setp_next(&this->base, beg,
4229 basic_streambuf_wchar_gptr(&this->base),
4230 basic_streambuf_wchar_epptr(&this->base));
4233 }else if((mode & OPENMODE_out) && cur_w) {
4234 if(way == SEEKDIR_cur)
4236 else if(way == SEEKDIR_end)
4237 off += this->seekhigh-beg;
4238 else if(way != SEEKDIR_beg)
4241 if(off<0 || off>this->seekhigh-beg)
4244 basic_streambuf_wchar_pbump(&this->base, beg-cur_w+off);
4253 /* ?seekpos@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
4254 /* ?seekpos@?$basic_stringbuf@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
4255 /* ?seekpos@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MAE?AV?$fpos@H@2@V32@H@Z */
4256 /* ?seekpos@?$basic_stringbuf@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
4257 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_seekpos, 36)
4258 fpos_int* __thiscall basic_stringbuf_wchar_seekpos(basic_stringbuf_wchar *this,
4259 fpos_int *ret, fpos_int pos, int mode)
4261 TRACE("(%p %p %s %d)\n", this, ret, debugstr_fpos_int(&pos), mode);
4263 if(pos.off==0 && pos.pos==-1 && pos.state==0) {
4268 return basic_stringbuf_wchar_seekoff(this, ret, pos.off, SEEKDIR_beg, mode);
4271 /* ?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 */
4272 /* ?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 */
4273 /* ?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 */
4274 /* ?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 */
4275 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_str_set, 8)
4276 void __thiscall basic_stringbuf_wchar_str_set(basic_stringbuf_wchar *this, const basic_string_wchar *str)
4278 TRACE("(%p %p)\n", this, str);
4280 basic_stringbuf_wchar__Tidy(this);
4281 basic_stringbuf_wchar__Init(this, MSVCP_basic_string_wchar_c_str(str), str->size, this->state);
4284 /* ?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 */
4285 /* ?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 */
4286 /* ?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 */
4287 /* ?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 */
4288 DEFINE_THISCALL_WRAPPER(basic_stringbuf_wchar_str_get, 8)
4289 basic_string_wchar* __thiscall basic_stringbuf_wchar_str_get(const basic_stringbuf_wchar *this, basic_string_wchar *ret)
4293 TRACE("(%p)\n", this);
4295 if(!(this->state & STRINGBUF_no_write) && basic_streambuf_wchar_pptr(&this->base)) {
4298 ptr = basic_streambuf_wchar_pbase(&this->base);
4299 pptr = basic_streambuf_wchar_pptr(&this->base);
4301 return MSVCP_basic_string_wchar_ctor_cstr_len(ret, ptr, (this->seekhigh < pptr ? pptr : this->seekhigh) - ptr);
4304 if(!(this->state & STRINGBUF_no_read) && basic_streambuf_wchar_gptr(&this->base)) {
4305 ptr = basic_streambuf_wchar_eback(&this->base);
4306 return MSVCP_basic_string_wchar_ctor_cstr_len(ret, ptr, basic_streambuf_wchar_egptr(&this->base) - ptr);
4309 return MSVCP_basic_string_wchar_ctor(ret);
4312 /* ??0ios_base@std@@IAE@XZ */
4313 /* ??0ios_base@std@@IEAA@XZ */
4314 DEFINE_THISCALL_WRAPPER(ios_base_ctor, 4)
4315 ios_base* __thiscall ios_base_ctor(ios_base *this)
4317 TRACE("(%p)\n", this);
4318 this->vtable = &MSVCP_ios_base_vtable;
4322 /* ??0ios_base@std@@QAE@ABV01@@Z */
4323 /* ??0ios_base@std@@QEAA@AEBV01@@Z */
4324 DEFINE_THISCALL_WRAPPER(ios_base_copy_ctor, 8)
4325 ios_base* __thiscall ios_base_copy_ctor(ios_base *this, const ios_base *copy)
4327 TRACE("(%p %p)\n", this, copy);
4329 this->vtable = &MSVCP_ios_base_vtable;
4333 /* ?_Callfns@ios_base@std@@AAEXW4event@12@@Z */
4334 /* ?_Callfns@ios_base@std@@AEAAXW4event@12@@Z */
4335 DEFINE_THISCALL_WRAPPER(ios_base_Callfns, 8)
4336 void __thiscall ios_base_Callfns(ios_base *this, IOS_BASE_event event)
4338 IOS_BASE_fnarray *cur;
4340 TRACE("(%p %x)\n", this, event);
4342 for(cur=this->calls; cur; cur=cur->next)
4343 cur->event_handler(event, this, cur->index);
4346 /* ?_Tidy@ios_base@std@@AAAXXZ */
4347 /* ?_Tidy@ios_base@std@@AEAAXXZ */
4348 void CDECL ios_base_Tidy(ios_base *this)
4350 IOS_BASE_iosarray *arr_cur, *arr_next;
4351 IOS_BASE_fnarray *event_cur, *event_next;
4353 TRACE("(%p)\n", this);
4355 ios_base_Callfns(this, EVENT_erase_event);
4357 for(arr_cur=this->arr; arr_cur; arr_cur=arr_next) {
4358 arr_next = arr_cur->next;
4359 MSVCRT_operator_delete(arr_cur);
4363 for(event_cur=this->calls; event_cur; event_cur=event_next) {
4364 event_next = event_cur->next;
4365 MSVCRT_operator_delete(event_cur);
4370 /* ?_Ios_base_dtor@ios_base@std@@CAXPAV12@@Z */
4371 /* ?_Ios_base_dtor@ios_base@std@@CAXPEAV12@@Z */
4372 void CDECL ios_base_Ios_base_dtor(ios_base *obj)
4374 TRACE("(%p)\n", obj);
4376 locale_dtor(obj->loc);
4377 MSVCRT_operator_delete(obj->loc);
4382 /* ??1ios_base@std@@UAE@XZ */
4383 /* ??1ios_base@std@@UEAA@XZ */
4384 DEFINE_THISCALL_WRAPPER(ios_base_dtor, 4)
4385 void __thiscall ios_base_dtor(ios_base *this)
4387 ios_base_Ios_base_dtor(this);
4390 DEFINE_THISCALL_WRAPPER(ios_base_vector_dtor, 8)
4391 ios_base* __thiscall ios_base_vector_dtor(ios_base *this, unsigned int flags)
4393 TRACE("(%p %x)\n", this, flags);
4395 /* we have an array, with the number of elements stored before the first object */
4396 INT_PTR i, *ptr = (INT_PTR *)this-1;
4398 for(i=*ptr-1; i>=0; i--)
4399 ios_base_dtor(this+i);
4400 MSVCRT_operator_delete(ptr);
4402 ios_base_dtor(this);
4404 MSVCRT_operator_delete(this);
4410 DEFINE_THISCALL_WRAPPER(iosb_vector_dtor, 8)
4411 void* __thiscall iosb_vector_dtor(void *this, unsigned int flags)
4413 TRACE("(%p %x)\n", this, flags);
4415 INT_PTR *ptr = (INT_PTR *)this-1;
4416 MSVCRT_operator_delete(ptr);
4419 MSVCRT_operator_delete(this);
4425 /* ?_Findarr@ios_base@std@@AAEAAU_Iosarray@12@H@Z */
4426 /* ?_Findarr@ios_base@std@@AEAAAEAU_Iosarray@12@H@Z */
4427 DEFINE_THISCALL_WRAPPER(ios_base_Findarr, 8)
4428 IOS_BASE_iosarray* __thiscall ios_base_Findarr(ios_base *this, int index)
4430 IOS_BASE_iosarray *p;
4432 TRACE("(%p %d)\n", this, index);
4434 for(p=this->arr; p; p=p->next) {
4435 if(p->index == index)
4439 for(p=this->arr; p; p=p->next) {
4440 if(!p->long_val && !p->ptr_val) {
4446 p = MSVCRT_operator_new(sizeof(IOS_BASE_iosarray));
4447 p->next = this->arr;
4455 /* ?iword@ios_base@std@@QAEAAJH@Z */
4456 /* ?iword@ios_base@std@@QEAAAEAJH@Z */
4457 DEFINE_THISCALL_WRAPPER(ios_base_iword, 8)
4458 LONG* __thiscall ios_base_iword(ios_base *this, int index)
4460 TRACE("(%p %d)\n", this, index);
4461 return &ios_base_Findarr(this, index)->long_val;
4464 /* ?pword@ios_base@std@@QAEAAPAXH@Z */
4465 /* ?pword@ios_base@std@@QEAAAEAPEAXH@Z */
4466 DEFINE_THISCALL_WRAPPER(ios_base_pword, 8)
4467 void** __thiscall ios_base_pword(ios_base *this, int index)
4469 TRACE("(%p %d)\n", this, index);
4470 return &ios_base_Findarr(this, index)->ptr_val;
4473 /* ?register_callback@ios_base@std@@QAEXP6AXW4event@12@AAV12@H@ZH@Z */
4474 /* ?register_callback@ios_base@std@@QEAAXP6AXW4event@12@AEAV12@H@ZH@Z */
4475 DEFINE_THISCALL_WRAPPER(ios_base_register_callback, 12)
4476 void __thiscall ios_base_register_callback(ios_base *this, IOS_BASE_event_callback callback, int index)
4478 IOS_BASE_fnarray *event;
4480 TRACE("(%p %p %d)\n", this, callback, index);
4482 event = MSVCRT_operator_new(sizeof(IOS_BASE_fnarray));
4483 event->next = this->calls;
4484 event->index = index;
4485 event->event_handler = callback;
4486 this->calls = event;
4489 /* ?clear@ios_base@std@@QAEXH_N@Z */
4490 /* ?clear@ios_base@std@@QEAAXH_N@Z */
4491 DEFINE_THISCALL_WRAPPER(ios_base_clear_reraise, 12)
4492 void __thiscall ios_base_clear_reraise(ios_base *this, IOSB_iostate state, MSVCP_bool reraise)
4494 TRACE("(%p %x %x)\n", this, state, reraise);
4496 this->state = state & IOSTATE_mask;
4497 if(!(this->state & this->except))
4501 throw_exception(EXCEPTION_RERAISE, NULL);
4502 else if(this->state & this->except & IOSTATE_eofbit)
4503 throw_exception(EXCEPTION_FAILURE, "eofbit is set");
4504 else if(this->state & this->except & IOSTATE_failbit)
4505 throw_exception(EXCEPTION_FAILURE, "failbit is set");
4506 else if(this->state & this->except & IOSTATE_badbit)
4507 throw_exception(EXCEPTION_FAILURE, "badbit is set");
4508 else if(this->state & this->except & IOSTATE__Hardfail)
4509 throw_exception(EXCEPTION_FAILURE, "_Hardfail is set");
4512 /* ?clear@ios_base@std@@QAEXH@Z */
4513 /* ?clear@ios_base@std@@QEAAXH@Z */
4514 DEFINE_THISCALL_WRAPPER(ios_base_clear, 8)
4515 void __thiscall ios_base_clear(ios_base *this, IOSB_iostate state)
4517 ios_base_clear_reraise(this, state, FALSE);
4520 /* ?clear@ios_base@std@@QAEXI@Z */
4521 /* ?clear@ios_base@std@@QEAAXI@Z */
4522 DEFINE_THISCALL_WRAPPER(ios_base_clear_unsigned, 8)
4523 void __thiscall ios_base_clear_unsigned(ios_base *this, unsigned int state)
4525 ios_base_clear_reraise(this, (IOSB_iostate)state, FALSE);
4528 /* ?exceptions@ios_base@std@@QAEXH@Z */
4529 /* ?exceptions@ios_base@std@@QEAAXH@Z */
4530 DEFINE_THISCALL_WRAPPER(ios_base_exceptions_set, 8)
4531 void __thiscall ios_base_exceptions_set(ios_base *this, IOSB_iostate state)
4533 TRACE("(%p %x)\n", this, state);
4534 this->except = state & IOSTATE_mask;
4535 ios_base_clear(this, this->state);
4538 /* ?exceptions@ios_base@std@@QAEXI@Z */
4539 /* ?exceptions@ios_base@std@@QEAAXI@Z */
4540 DEFINE_THISCALL_WRAPPER(ios_base_exceptions_set_unsigned, 8)
4541 void __thiscall ios_base_exceptions_set_unsigned(ios_base *this, unsigned int state)
4543 TRACE("(%p %x)\n", this, state);
4544 ios_base_exceptions_set(this, state);
4547 /* ?exceptions@ios_base@std@@QBEHXZ */
4548 /* ?exceptions@ios_base@std@@QEBAHXZ */
4549 DEFINE_THISCALL_WRAPPER(ios_base_exceptions_get, 4)
4550 IOSB_iostate __thiscall ios_base_exceptions_get(ios_base *this)
4552 TRACE("(%p)\n", this);
4553 return this->except;
4556 /* ?copyfmt@ios_base@std@@QAEAAV12@ABV12@@Z */
4557 /* ?copyfmt@ios_base@std@@QEAAAEAV12@AEBV12@@Z */
4558 DEFINE_THISCALL_WRAPPER(ios_base_copyfmt, 8)
4559 ios_base* __thiscall ios_base_copyfmt(ios_base *this, const ios_base *rhs)
4561 TRACE("(%p %p)\n", this, rhs);
4564 IOS_BASE_iosarray *arr_cur;
4565 IOS_BASE_fnarray *event_cur;
4567 ios_base_Tidy(this);
4569 for(arr_cur=rhs->arr; arr_cur; arr_cur=arr_cur->next) {
4570 if(arr_cur->long_val)
4571 *ios_base_iword(this, arr_cur->index) = arr_cur->long_val;
4572 if(arr_cur->ptr_val)
4573 *ios_base_pword(this, arr_cur->index) = arr_cur->ptr_val;
4575 this->stdstr = rhs->stdstr;
4576 this->fmtfl = rhs->fmtfl;
4577 this->prec = rhs->prec;
4578 this->wide = rhs->wide;
4579 locale_operator_assign(this->loc, rhs->loc);
4581 for(event_cur=rhs->calls; event_cur; event_cur=event_cur->next)
4582 ios_base_register_callback(this, event_cur->event_handler, event_cur->index);
4584 ios_base_Callfns(this, EVENT_copyfmt_event);
4585 ios_base_exceptions_set(this, rhs->except);
4591 /* ??4ios_base@std@@QAEAAV01@ABV01@@Z */
4592 /* ??4ios_base@std@@QEAAAEAV01@AEBV01@@Z */
4593 DEFINE_THISCALL_WRAPPER(ios_base_assign, 8)
4594 ios_base* __thiscall ios_base_assign(ios_base *this, const ios_base *right)
4596 TRACE("(%p %p)\n", this, right);
4599 this->state = right->state;
4600 ios_base_copyfmt(this, right);
4606 /* ?fail@ios_base@std@@QBE_NXZ */
4607 /* ?fail@ios_base@std@@QEBA_NXZ */
4608 DEFINE_THISCALL_WRAPPER(ios_base_fail, 4)
4609 MSVCP_bool __thiscall ios_base_fail(const ios_base *this)
4611 TRACE("(%p)\n", this);
4612 return (this->state & (IOSTATE_failbit|IOSTATE_badbit)) != 0;
4615 /* ??7ios_base@std@@QBE_NXZ */
4616 /* ??7ios_base@std@@QEBA_NXZ */
4617 DEFINE_THISCALL_WRAPPER(ios_base_op_succ, 4)
4618 MSVCP_bool __thiscall ios_base_op_succ(const ios_base *this)
4620 TRACE("(%p)\n", this);
4621 return ios_base_fail(this);
4624 /* ??Bios_base@std@@QBEPAXXZ */
4625 /* ??Bios_base@std@@QEBAPEAXXZ */
4626 DEFINE_THISCALL_WRAPPER(ios_base_op_fail, 4)
4627 void* __thiscall ios_base_op_fail(const ios_base *this)
4629 TRACE("(%p)\n", this);
4630 return ios_base_fail(this) ? NULL : (void*)this;
4633 /* ?_Addstd@ios_base@std@@SAXPAV12@@Z */
4634 /* ?_Addstd@ios_base@std@@SAXPEAV12@@Z */
4635 void CDECL ios_base_Addstd(ios_base *add)
4637 FIXME("(%p) stub\n", add);
4640 /* ?_Index_func@ios_base@std@@CAAAHXZ */
4641 /* ?_Index_func@ios_base@std@@CAAEAHXZ */
4642 int* CDECL ios_base_Index_func(void)
4645 return &ios_base_Index;
4648 /* ?_Init@ios_base@std@@IAEXXZ */
4649 /* ?_Init@ios_base@std@@IEAAXXZ */
4650 DEFINE_THISCALL_WRAPPER(ios_base_Init, 4)
4651 void __thiscall ios_base_Init(ios_base *this)
4653 TRACE("(%p)\n", this);
4656 this->state = this->except = IOSTATE_goodbit;
4657 this->fmtfl = FMTFLAG_skipws | FMTFLAG_dec;
4662 this->loc = MSVCRT_operator_new(sizeof(locale));
4663 locale_ctor(this->loc);
4666 /* ?_Sync_func@ios_base@std@@CAAA_NXZ */
4667 /* ?_Sync_func@ios_base@std@@CAAEA_NXZ */
4668 MSVCP_bool* CDECL ios_base_Sync_func(void)
4671 return &ios_base_Sync;
4674 /* ?bad@ios_base@std@@QBE_NXZ */
4675 /* ?bad@ios_base@std@@QEBA_NXZ */
4676 DEFINE_THISCALL_WRAPPER(ios_base_bad, 4)
4677 MSVCP_bool __thiscall ios_base_bad(const ios_base *this)
4679 TRACE("(%p)\n", this);
4680 return (this->state & IOSTATE_badbit) != 0;
4683 /* ?eof@ios_base@std@@QBE_NXZ */
4684 /* ?eof@ios_base@std@@QEBA_NXZ */
4685 DEFINE_THISCALL_WRAPPER(ios_base_eof, 4)
4686 MSVCP_bool __thiscall ios_base_eof(const ios_base *this)
4688 TRACE("(%p)\n", this);
4689 return (this->state & IOSTATE_eofbit) != 0;
4692 /* ?flags@ios_base@std@@QAEHH@Z */
4693 /* ?flags@ios_base@std@@QEAAHH@Z */
4694 DEFINE_THISCALL_WRAPPER(ios_base_flags_set, 8)
4695 IOSB_fmtflags __thiscall ios_base_flags_set(ios_base *this, IOSB_fmtflags flags)
4697 IOSB_fmtflags ret = this->fmtfl;
4699 TRACE("(%p %x)\n", this, flags);
4701 this->fmtfl = flags & FMTFLAG_mask;
4705 /* ?flags@ios_base@std@@QBEHXZ */
4706 /* ?flags@ios_base@std@@QEBAHXZ */
4707 DEFINE_THISCALL_WRAPPER(ios_base_flags_get, 4)
4708 IOSB_fmtflags __thiscall ios_base_flags_get(const ios_base *this)
4710 TRACE("(%p)\n", this);
4714 /* ?getloc@ios_base@std@@QBE?AVlocale@2@XZ */
4715 /* ?getloc@ios_base@std@@QEBA?AVlocale@2@XZ */
4716 DEFINE_THISCALL_WRAPPER(ios_base_getloc, 8)
4717 locale* __thiscall ios_base_getloc(const ios_base *this, locale *ret)
4719 TRACE("(%p)\n", this);
4720 return locale_copy_ctor(ret, this->loc);
4723 /* ?good@ios_base@std@@QBE_NXZ */
4724 /* ?good@ios_base@std@@QEBA_NXZ */
4725 DEFINE_THISCALL_WRAPPER(ios_base_good, 4)
4726 MSVCP_bool __thiscall ios_base_good(const ios_base *this)
4728 TRACE("(%p)\n", this);
4729 return this->state == IOSTATE_goodbit;
4732 /* ?imbue@ios_base@std@@QAE?AVlocale@2@ABV32@@Z */
4733 /* ?imbue@ios_base@std@@QEAA?AVlocale@2@AEBV32@@Z */
4734 DEFINE_THISCALL_WRAPPER(ios_base_imbue, 12)
4735 locale* __thiscall ios_base_imbue(ios_base *this, locale *ret, const locale *loc)
4737 TRACE("(%p %p)\n", this, loc);
4739 locale_copy_ctor(this->loc, loc);
4743 /* ?precision@ios_base@std@@QAEHH@Z */
4744 /* ?precision@ios_base@std@@QEAA_J_J@Z */
4745 DEFINE_THISCALL_WRAPPER(ios_base_precision_set, 8)
4746 streamsize __thiscall ios_base_precision_set(ios_base *this, streamsize precision)
4748 streamsize ret = this->prec;
4750 TRACE("(%p %ld)\n", this, precision);
4752 this->prec = precision;
4756 /* ?precision@ios_base@std@@QBEHXZ */
4757 /* ?precision@ios_base@std@@QEBA_JXZ */
4758 DEFINE_THISCALL_WRAPPER(ios_base_precision_get, 4)
4759 streamsize __thiscall ios_base_precision_get(const ios_base *this)
4761 TRACE("(%p)\n", this);
4765 /* ?rdstate@ios_base@std@@QBEHXZ */
4766 /* ?rdstate@ios_base@std@@QEBAHXZ */
4767 DEFINE_THISCALL_WRAPPER(ios_base_rdstate, 4)
4768 IOSB_iostate __thiscall ios_base_rdstate(const ios_base *this)
4770 TRACE("(%p)\n", this);
4774 /* ?setf@ios_base@std@@QAEHHH@Z */
4775 /* ?setf@ios_base@std@@QEAAHHH@Z */
4776 DEFINE_THISCALL_WRAPPER(ios_base_setf_mask, 12)
4777 IOSB_fmtflags __thiscall ios_base_setf_mask(ios_base *this, IOSB_fmtflags flags, IOSB_fmtflags mask)
4779 IOSB_fmtflags ret = this->fmtfl;
4781 TRACE("(%p %x %x)\n", this, flags, mask);
4783 this->fmtfl = (this->fmtfl & (~mask)) | (flags & mask & FMTFLAG_mask);
4787 /* ?setf@ios_base@std@@QAEHH@Z */
4788 /* ?setf@ios_base@std@@QEAAHH@Z */
4789 DEFINE_THISCALL_WRAPPER(ios_base_setf, 8)
4790 IOSB_fmtflags __thiscall ios_base_setf(ios_base *this, IOSB_fmtflags flags)
4792 return ios_base_setf_mask(this, flags, ~0);
4795 /* ?setstate@ios_base@std@@QAEXH_N@Z */
4796 /* ?setstate@ios_base@std@@QEAAXH_N@Z */
4797 DEFINE_THISCALL_WRAPPER(ios_base_setstate_reraise, 12)
4798 void __thiscall ios_base_setstate_reraise(ios_base *this, IOSB_iostate state, MSVCP_bool reraise)
4800 TRACE("(%p %x %x)\n", this, state, reraise);
4802 if(state != IOSTATE_goodbit)
4803 ios_base_clear_reraise(this, this->state | state, reraise);
4806 /* ?setstate@ios_base@std@@QAEXH@Z */
4807 /* ?setstate@ios_base@std@@QEAAXH@Z */
4808 DEFINE_THISCALL_WRAPPER(ios_base_setstate, 8)
4809 void __thiscall ios_base_setstate(ios_base *this, IOSB_iostate state)
4811 ios_base_setstate_reraise(this, state, FALSE);
4814 /* ?setstate@ios_base@std@@QAEXI@Z */
4815 /* ?setstate@ios_base@std@@QEAAXI@Z */
4816 DEFINE_THISCALL_WRAPPER(ios_base_setstate_unsigned, 8)
4817 void __thiscall ios_base_setstate_unsigned(ios_base *this, unsigned int state)
4819 ios_base_setstate_reraise(this, (IOSB_iostate)state, FALSE);
4822 /* ?sync_with_stdio@ios_base@std@@SA_N_N@Z */
4823 MSVCP_bool CDECL ios_base_sync_with_stdio(MSVCP_bool sync)
4828 TRACE("(%x)\n", sync);
4830 _Lockit_ctor_locktype(&lock, _LOCK_STREAM);
4831 ret = ios_base_Sync;
4832 ios_base_Sync = sync;
4833 _Lockit_dtor(&lock);
4837 /* ?unsetf@ios_base@std@@QAEXH@Z */
4838 /* ?unsetf@ios_base@std@@QEAAXH@Z */
4839 DEFINE_THISCALL_WRAPPER(ios_base_unsetf, 8)
4840 void __thiscall ios_base_unsetf(ios_base *this, IOSB_fmtflags flags)
4842 TRACE("(%p %x)\n", this, flags);
4843 this->fmtfl &= ~flags;
4846 /* ?width@ios_base@std@@QAEHH@Z */
4847 /* ?width@ios_base@std@@QEAA_J_J@Z */
4848 DEFINE_THISCALL_WRAPPER(ios_base_width_set, 8)
4849 streamsize __thiscall ios_base_width_set(ios_base *this, streamsize width)
4851 streamsize ret = this->wide;
4853 TRACE("(%p %ld)\n", this, width);
4859 /* ?width@ios_base@std@@QBEHXZ */
4860 /* ?width@ios_base@std@@QEBA_JXZ */
4861 DEFINE_THISCALL_WRAPPER(ios_base_width_get, 4)
4862 streamsize __thiscall ios_base_width_get(ios_base *this)
4864 TRACE("(%p)\n", this);
4868 /* ?xalloc@ios_base@std@@SAHXZ */
4869 int CDECL ios_base_xalloc(void)
4876 _Lockit_ctor_locktype(&lock, _LOCK_STREAM);
4877 ret = ios_base_Index++;
4878 _Lockit_dtor(&lock);
4882 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@IAE@XZ */
4883 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@IEAA@XZ */
4884 DEFINE_THISCALL_WRAPPER(basic_ios_char_ctor, 4)
4885 basic_ios_char* __thiscall basic_ios_char_ctor(basic_ios_char *this)
4887 TRACE("(%p)\n", this);
4889 ios_base_ctor(&this->base);
4890 this->base.vtable = &MSVCP_basic_ios_char_vtable;
4894 /* ?init@?$basic_ios@DU?$char_traits@D@std@@@std@@IAEXPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@_N@Z */
4895 /* ?init@?$basic_ios@DU?$char_traits@D@std@@@std@@IEAAXPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@_N@Z */
4896 DEFINE_THISCALL_WRAPPER(basic_ios_char_init, 12)
4897 void __thiscall basic_ios_char_init(basic_ios_char *this, basic_streambuf_char *streambuf, MSVCP_bool isstd)
4899 TRACE("(%p %p %x)\n", this, streambuf, isstd);
4900 ios_base_Init(&this->base);
4901 this->strbuf = streambuf;
4902 this->stream = NULL;
4906 ios_base_setstate(&this->base, IOSTATE_badbit);
4909 FIXME("standard streams not handled yet\n");
4912 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
4913 /* ??0?$basic_ios@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
4914 DEFINE_THISCALL_WRAPPER(basic_ios_char_ctor_streambuf, 8)
4915 basic_ios_char* __thiscall basic_ios_char_ctor_streambuf(basic_ios_char *this, basic_streambuf_char *strbuf)
4917 TRACE("(%p %p)\n", this, strbuf);
4919 basic_ios_char_ctor(this);
4920 basic_ios_char_init(this, strbuf, FALSE);
4924 /* ??1?$basic_ios@DU?$char_traits@D@std@@@std@@UAE@XZ */
4925 /* ??1?$basic_ios@DU?$char_traits@D@std@@@std@@UEAA@XZ */
4926 DEFINE_THISCALL_WRAPPER(basic_ios_char_dtor, 4)
4927 void __thiscall basic_ios_char_dtor(basic_ios_char *this)
4929 TRACE("(%p)\n", this);
4930 ios_base_dtor(&this->base);
4933 DEFINE_THISCALL_WRAPPER(basic_ios_char_vector_dtor, 8)
4934 basic_ios_char* __thiscall basic_ios_char_vector_dtor(basic_ios_char *this, unsigned int flags)
4936 TRACE("(%p %x)\n", this, flags);
4938 /* we have an array, with the number of elements stored before the first object */
4939 INT_PTR i, *ptr = (INT_PTR *)this-1;
4941 for(i=*ptr-1; i>=0; i--)
4942 basic_ios_char_dtor(this+i);
4943 MSVCRT_operator_delete(ptr);
4945 basic_ios_char_dtor(this);
4947 MSVCRT_operator_delete(this);
4953 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z */
4954 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXH_N@Z */
4955 DEFINE_THISCALL_WRAPPER(basic_ios_char_clear_reraise, 12)
4956 void __thiscall basic_ios_char_clear_reraise(basic_ios_char *this, IOSB_iostate state, MSVCP_bool reraise)
4958 TRACE("(%p %x %x)\n", this, state, reraise);
4959 ios_base_clear_reraise(&this->base, state | (this->strbuf ? IOSTATE_goodbit : IOSTATE_badbit), reraise);
4962 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXI@Z */
4963 /* ?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXI@Z */
4964 DEFINE_THISCALL_WRAPPER(basic_ios_char_clear, 8)
4965 void __thiscall basic_ios_char_clear(basic_ios_char *this, unsigned int state)
4967 basic_ios_char_clear_reraise(this, (IOSB_iostate)state, FALSE);
4970 /* ?copyfmt@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEAAV12@ABV12@@Z */
4971 /* ?copyfmt@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEBV12@@Z */
4972 DEFINE_THISCALL_WRAPPER(basic_ios_char_copyfmt, 8)
4973 basic_ios_char* __thiscall basic_ios_char_copyfmt(basic_ios_char *this, basic_ios_char *copy)
4975 TRACE("(%p %p)\n", this, copy);
4979 this->stream = copy->stream;
4980 this->fillch = copy->fillch;
4981 ios_base_copyfmt(&this->base, ©->base);
4985 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEDD@Z */
4986 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAADD@Z */
4987 DEFINE_THISCALL_WRAPPER(basic_ios_char_fill_set, 8)
4988 char __thiscall basic_ios_char_fill_set(basic_ios_char *this, char fill)
4990 char ret = this->fillch;
4992 TRACE("(%p %c)\n", this, fill);
4994 this->fillch = fill;
4998 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDXZ */
4999 /* ?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBADXZ */
5000 DEFINE_THISCALL_WRAPPER(basic_ios_char_fill_get, 4)
5001 char __thiscall basic_ios_char_fill_get(basic_ios_char *this)
5003 TRACE("(%p)\n", this);
5004 return this->fillch;
5007 /* ?imbue@?$basic_ios@DU?$char_traits@D@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
5008 /* ?imbue@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
5009 DEFINE_THISCALL_WRAPPER(basic_ios_char_imbue, 12)
5010 locale *__thiscall basic_ios_char_imbue(basic_ios_char *this, locale *ret, const locale *loc)
5012 TRACE("(%p %p %p)\n", this, ret, loc);
5015 basic_streambuf_char_pubimbue(this->strbuf, ret, loc);
5019 return ios_base_imbue(&this->base, ret, loc);
5022 /* ?narrow@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDDD@Z */
5023 /* ?narrow@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBADDD@Z */
5024 DEFINE_THISCALL_WRAPPER(basic_ios_char_narrow, 12)
5025 char __thiscall basic_ios_char_narrow(basic_ios_char *this, char ch, char def)
5027 TRACE("(%p %c %c)\n", this, ch, def);
5028 return ctype_char_narrow_ch(ctype_char_use_facet(this->strbuf->loc), ch, def);
5031 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PAV32@@Z */
5032 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PEAV32@@Z */
5033 DEFINE_THISCALL_WRAPPER(basic_ios_char_rdbuf_set, 8)
5034 basic_streambuf_char* __thiscall basic_ios_char_rdbuf_set(basic_ios_char *this, basic_streambuf_char *streambuf)
5036 basic_streambuf_char *ret = this->strbuf;
5038 TRACE("(%p %p)\n", this, streambuf);
5040 this->strbuf = streambuf;
5041 basic_ios_char_clear(this, IOSTATE_goodbit);
5045 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ */
5046 /* ?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ */
5047 DEFINE_THISCALL_WRAPPER(basic_ios_char_rdbuf_get, 4)
5048 basic_streambuf_char* __thiscall basic_ios_char_rdbuf_get(const basic_ios_char *this)
5050 TRACE("(%p)\n", this);
5051 return this->strbuf;
5054 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z */
5055 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXH_N@Z */
5056 DEFINE_THISCALL_WRAPPER(basic_ios_char_setstate_reraise, 12)
5057 void __thiscall basic_ios_char_setstate_reraise(basic_ios_char *this, IOSB_iostate state, MSVCP_bool reraise)
5059 TRACE("(%p %x %x)\n", this, state, reraise);
5061 if(state != IOSTATE_goodbit)
5062 basic_ios_char_clear_reraise(this, this->base.state | state, reraise);
5065 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXI@Z */
5066 /* ?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXI@Z */
5067 DEFINE_THISCALL_WRAPPER(basic_ios_char_setstate, 8)
5068 void __thiscall basic_ios_char_setstate(basic_ios_char *this, unsigned int state)
5070 basic_ios_char_setstate_reraise(this, (IOSB_iostate)state, FALSE);
5073 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEPAV?$basic_ostream@DU?$char_traits@D@std@@@2@PAV32@@Z */
5074 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAPEAV?$basic_ostream@DU?$char_traits@D@std@@@2@PEAV32@@Z */
5075 DEFINE_THISCALL_WRAPPER(basic_ios_char_tie_set, 8)
5076 basic_ostream_char* __thiscall basic_ios_char_tie_set(basic_ios_char *this, basic_ostream_char *ostream)
5078 basic_ostream_char *ret = this->stream;
5080 TRACE("(%p %p)\n", this, ostream);
5082 this->stream = ostream;
5086 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ */
5087 /* ?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ */
5088 DEFINE_THISCALL_WRAPPER(basic_ios_char_tie_get, 4)
5089 basic_ostream_char* __thiscall basic_ios_char_tie_get(const basic_ios_char *this)
5091 TRACE("(%p)\n", this);
5092 return this->stream;
5095 /* ?widen@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDD@Z */
5096 /* ?widen@?$basic_ios@DU?$char_traits@D@std@@@std@@QEBADD@Z */
5097 DEFINE_THISCALL_WRAPPER(basic_ios_char_widen, 8)
5098 char __thiscall basic_ios_char_widen(basic_ios_char *this, char ch)
5100 TRACE("(%p %c)\n", this, ch);
5101 return ctype_char_widen_ch(ctype_char_use_facet(this->strbuf->loc), ch);
5105 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@IAE@XZ */
5106 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@IEAA@XZ */
5107 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_ctor, 4)
5108 basic_ios_wchar* __thiscall basic_ios_wchar_ctor(basic_ios_wchar *this)
5110 TRACE("(%p)\n", this);
5112 ios_base_ctor(&this->base);
5113 this->base.vtable = &MSVCP_basic_ios_wchar_vtable;
5117 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@IAE@XZ */
5118 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@IEAA@XZ */
5119 DEFINE_THISCALL_WRAPPER(basic_ios_short_ctor, 4)
5120 basic_ios_wchar* __thiscall basic_ios_short_ctor(basic_ios_wchar *this)
5122 basic_ios_wchar_ctor(this);
5123 this->base.vtable = &MSVCP_basic_ios_short_vtable;
5127 /* ?init@?$basic_ios@_WU?$char_traits@_W@std@@@std@@IAEXPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_N@Z */
5128 /* ?init@?$basic_ios@_WU?$char_traits@_W@std@@@std@@IEAAXPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_N@Z */
5129 /* ?init@?$basic_ios@GU?$char_traits@G@std@@@std@@IAEXPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@_N@Z */
5130 /* ?init@?$basic_ios@GU?$char_traits@G@std@@@std@@IEAAXPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@_N@Z */
5131 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_init, 12)
5132 void __thiscall basic_ios_wchar_init(basic_ios_wchar *this, basic_streambuf_wchar *streambuf, MSVCP_bool isstd)
5134 TRACE("(%p %p %x)\n", this, streambuf, isstd);
5135 ios_base_Init(&this->base);
5136 this->strbuf = streambuf;
5137 this->stream = NULL;
5141 ios_base_setstate(&this->base, IOSTATE_badbit);
5144 FIXME("standard streams not handled yet\n");
5147 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
5148 /* ??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
5149 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_ctor_streambuf, 8)
5150 basic_ios_wchar* __thiscall basic_ios_wchar_ctor_streambuf(basic_ios_wchar *this, basic_streambuf_wchar *strbuf)
5152 TRACE("(%p %p)\n", this, strbuf);
5154 basic_ios_wchar_ctor(this);
5155 basic_ios_wchar_init(this, strbuf, FALSE);
5159 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
5160 /* ??0?$basic_ios@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
5161 DEFINE_THISCALL_WRAPPER(basic_ios_short_ctor_streambuf, 8)
5162 basic_ios_wchar* __thiscall basic_ios_short_ctor_streambuf(basic_ios_wchar *this, basic_streambuf_wchar *strbuf)
5164 basic_ios_wchar_ctor_streambuf(this, strbuf);
5165 this->base.vtable = &MSVCP_basic_ios_short_vtable;
5169 /* ??1?$basic_ios@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
5170 /* ??1?$basic_ios@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
5171 /* ??1?$basic_ios@GU?$char_traits@G@std@@@std@@UAE@XZ */
5172 /* ??1?$basic_ios@GU?$char_traits@G@std@@@std@@UEAA@XZ */
5173 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_dtor, 4)
5174 void __thiscall basic_ios_wchar_dtor(basic_ios_wchar *this)
5176 TRACE("(%p)\n", this);
5177 ios_base_dtor(&this->base);
5180 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_vector_dtor, 8)
5181 basic_ios_wchar* __thiscall basic_ios_wchar_vector_dtor(basic_ios_wchar *this, unsigned int flags)
5183 TRACE("(%p %x)\n", this, flags);
5185 /* we have an array, with the number of elements stored before the first object */
5186 INT_PTR i, *ptr = (INT_PTR *)this-1;
5188 for(i=*ptr-1; i>=0; i--)
5189 basic_ios_wchar_dtor(this+i);
5190 MSVCRT_operator_delete(ptr);
5192 basic_ios_wchar_dtor(this);
5194 MSVCRT_operator_delete(this);
5200 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXH_N@Z */
5201 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXH_N@Z */
5202 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXH_N@Z */
5203 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXH_N@Z */
5204 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_clear_reraise, 12)
5205 void __thiscall basic_ios_wchar_clear_reraise(basic_ios_wchar *this, IOSB_iostate state, MSVCP_bool reraise)
5207 TRACE("(%p %x %x)\n", this, state, reraise);
5208 ios_base_clear_reraise(&this->base, state | (this->strbuf ? IOSTATE_goodbit : IOSTATE_badbit), reraise);
5211 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXI@Z */
5212 /* ?clear@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXI@Z */
5213 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXI@Z */
5214 /* ?clear@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXI@Z */
5215 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_clear, 8)
5216 void __thiscall basic_ios_wchar_clear(basic_ios_wchar *this, unsigned int state)
5218 basic_ios_wchar_clear_reraise(this, (IOSB_iostate)state, FALSE);
5221 /* ?copyfmt@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEAAV12@ABV12@@Z */
5222 /* ?copyfmt@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEBV12@@Z */
5223 /* ?copyfmt@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEAAV12@ABV12@@Z */
5224 /* ?copyfmt@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEBV12@@Z */
5225 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_copyfmt, 8)
5226 basic_ios_wchar* __thiscall basic_ios_wchar_copyfmt(basic_ios_wchar *this, basic_ios_wchar *copy)
5228 TRACE("(%p %p)\n", this, copy);
5232 this->stream = copy->stream;
5233 this->fillch = copy->fillch;
5234 ios_base_copyfmt(&this->base, ©->base);
5238 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAE_W_W@Z */
5239 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAA_W_W@Z */
5240 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEGG@Z */
5241 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAGG@Z */
5242 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_fill_set, 8)
5243 wchar_t __thiscall basic_ios_wchar_fill_set(basic_ios_wchar *this, wchar_t fill)
5245 wchar_t ret = this->fillch;
5247 TRACE("(%p %c)\n", this, fill);
5249 this->fillch = fill;
5253 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBE_WXZ */
5254 /* ?fill@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBA_WXZ */
5255 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEGXZ */
5256 /* ?fill@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAGXZ */
5257 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_fill_get, 4)
5258 wchar_t __thiscall basic_ios_wchar_fill_get(basic_ios_wchar *this)
5260 TRACE("(%p)\n", this);
5261 return this->fillch;
5264 /* ?imbue@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
5265 /* ?imbue@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
5266 /* ?imbue@?$basic_ios@GU?$char_traits@G@std@@@std@@QAE?AVlocale@2@ABV32@@Z */
5267 /* ?imbue@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAA?AVlocale@2@AEBV32@@Z */
5268 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_imbue, 12)
5269 locale *__thiscall basic_ios_wchar_imbue(basic_ios_wchar *this, locale *ret, const locale *loc)
5271 TRACE("(%p %p %p)\n", this, ret, loc);
5274 return basic_streambuf_wchar_pubimbue(this->strbuf, ret, loc);
5276 locale_copy_ctor(ret, loc);
5280 /* ?narrow@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBED_WD@Z */
5281 /* ?narrow@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBAD_WD@Z */
5282 /* ?narrow@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEDGD@Z */
5283 /* ?narrow@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBADGD@Z */
5284 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_narrow, 12)
5285 char __thiscall basic_ios_wchar_narrow(basic_ios_wchar *this, wchar_t ch, char def)
5287 TRACE("(%p %c %c)\n", this, ch, def);
5288 return ctype_wchar_narrow_ch(ctype_wchar_use_facet(this->strbuf->loc), ch, def);
5291 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PAV32@@Z */
5292 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@PEAV32@@Z */
5293 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PAV32@@Z */
5294 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@PEAV32@@Z */
5295 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_rdbuf_set, 8)
5296 basic_streambuf_wchar* __thiscall basic_ios_wchar_rdbuf_set(basic_ios_wchar *this, basic_streambuf_wchar *streambuf)
5298 basic_streambuf_wchar *ret = this->strbuf;
5300 TRACE("(%p %p)\n", this, streambuf);
5302 this->strbuf = streambuf;
5303 basic_ios_wchar_clear(this, IOSTATE_goodbit);
5307 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@XZ */
5308 /* ?rdbuf@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@XZ */
5309 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_streambuf@GU?$char_traits@G@std@@@2@XZ */
5310 /* ?rdbuf@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@XZ */
5311 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_rdbuf_get, 4)
5312 basic_streambuf_wchar* __thiscall basic_ios_wchar_rdbuf_get(const basic_ios_wchar *this)
5314 TRACE("(%p)\n", this);
5315 return this->strbuf;
5318 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXH_N@Z */
5319 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXH_N@Z */
5320 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXH_N@Z */
5321 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXH_N@Z */
5322 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_setstate_reraise, 12)
5323 void __thiscall basic_ios_wchar_setstate_reraise(basic_ios_wchar *this, IOSB_iostate state, MSVCP_bool reraise)
5325 TRACE("(%p %x %x)\n", this, state, reraise);
5327 if(state != IOSTATE_goodbit)
5328 basic_ios_wchar_clear_reraise(this, this->base.state | state, reraise);
5331 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEXI@Z */
5332 /* ?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXI@Z */
5333 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEXI@Z */
5334 /* ?setstate@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAXI@Z */
5335 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_setstate, 8)
5336 void __thiscall basic_ios_wchar_setstate(basic_ios_wchar *this, IOSB_iostate state)
5338 basic_ios_wchar_setstate_reraise(this, state, FALSE);
5341 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QAEPAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@PAV32@@Z */
5342 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAPEAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@PEAV32@@Z */
5343 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QAEPAV?$basic_ostream@GU?$char_traits@G@std@@@2@PAV32@@Z */
5344 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QEAAPEAV?$basic_ostream@GU?$char_traits@G@std@@@2@PEAV32@@Z */
5345 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_tie_set, 8)
5346 basic_ostream_wchar* __thiscall basic_ios_wchar_tie_set(basic_ios_wchar *this, basic_ostream_wchar *ostream)
5348 basic_ostream_wchar *ret = this->stream;
5350 TRACE("(%p %p)\n", this, ostream);
5352 this->stream = ostream;
5356 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@XZ */
5357 /* ?tie@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_ostream@_WU?$char_traits@_W@std@@@2@XZ */
5358 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_ostream@GU?$char_traits@G@std@@@2@XZ */
5359 /* ?tie@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_ostream@GU?$char_traits@G@std@@@2@XZ */
5360 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_tie_get, 4)
5361 basic_ostream_wchar* __thiscall basic_ios_wchar_tie_get(const basic_ios_wchar *this)
5363 TRACE("(%p)\n", this);
5364 return this->stream;
5367 /* ?widen@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QBE_WD@Z */
5368 /* ?widen@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEBA_WD@Z */
5369 /* ?widen@?$basic_ios@GU?$char_traits@G@std@@@std@@QBEGD@Z */
5370 /* ?widen@?$basic_ios@GU?$char_traits@G@std@@@std@@QEBAGD@Z */
5371 DEFINE_THISCALL_WRAPPER(basic_ios_wchar_widen, 8)
5372 wchar_t __thiscall basic_ios_wchar_widen(basic_ios_wchar *this, char ch)
5374 TRACE("(%p %c)\n", this, ch);
5375 return ctype_wchar_widen_ch(ctype_wchar_use_facet(this->strbuf->loc), ch);
5378 /* Caution: basic_ostream uses virtual inheritance.
5379 * All constructors have additional parameter that says if base class should be initialized.
5380 * Base class needs to be accessed using vbtable.
5382 static inline basic_ios_char* basic_ostream_char_get_basic_ios(basic_ostream_char *this)
5384 return (basic_ios_char*)((char*)this+this->vbtable[1]);
5387 static inline basic_ios_char* basic_ostream_char_to_basic_ios(basic_ostream_char *ptr)
5389 return (basic_ios_char*)((char*)ptr+basic_ostream_char_vbtable[1]);
5392 static inline basic_ostream_char* basic_ostream_char_from_basic_ios(basic_ios_char *ptr)
5394 return (basic_ostream_char*)((char*)ptr-basic_ostream_char_vbtable[1]);
5397 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z */
5398 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z */
5399 DEFINE_THISCALL_WRAPPER(basic_ostream_char_ctor, 16)
5400 basic_ostream_char* __thiscall basic_ostream_char_ctor(basic_ostream_char *this,
5401 basic_streambuf_char *strbuf, MSVCP_bool isstd, MSVCP_bool virt_init)
5403 basic_ios_char *base;
5405 TRACE("(%p %p %d %d)\n", this, strbuf, isstd, virt_init);
5408 this->vbtable = basic_ostream_char_vbtable;
5409 base = basic_ostream_char_get_basic_ios(this);
5410 basic_ios_char_ctor(base);
5412 base = basic_ostream_char_get_basic_ios(this);
5415 base->base.vtable = &MSVCP_basic_ostream_char_vtable;
5416 basic_ios_char_init(base, strbuf, isstd);
5420 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@W4_Uninitialized@1@_N@Z */
5421 /* ??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA@W4_Uninitialized@1@_N@Z */
5422 DEFINE_THISCALL_WRAPPER(basic_ostream_char_ctor_uninitialized, 16)
5423 basic_ostream_char* __thiscall basic_ostream_char_ctor_uninitialized(basic_ostream_char *this,
5424 int uninitialized, MSVCP_bool addstd, MSVCP_bool virt_init)
5426 basic_ios_char *base;
5428 TRACE("(%p %d %x)\n", this, uninitialized, addstd);
5431 this->vbtable = basic_ostream_char_vbtable;
5432 base = basic_ostream_char_get_basic_ios(this);
5433 basic_ios_char_ctor(base);
5435 base = basic_ostream_char_get_basic_ios(this);
5438 base->base.vtable = &MSVCP_basic_ostream_char_vtable;
5440 ios_base_Addstd(&base->base);
5444 /* ??1?$basic_ostream@DU?$char_traits@D@std@@@std@@UAE@XZ */
5445 /* ??1?$basic_ostream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
5446 DEFINE_THISCALL_WRAPPER(basic_ostream_char_dtor, 4)
5447 void __thiscall basic_ostream_char_dtor(basic_ios_char *base)
5449 basic_ostream_char *this = basic_ostream_char_from_basic_ios(base);
5451 /* don't destroy virtual base here */
5452 TRACE("(%p)\n", this);
5455 /* ??_D?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
5456 /* ??_D?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
5457 DEFINE_THISCALL_WRAPPER(basic_ostream_char_vbase_dtor, 4)
5458 void __thiscall basic_ostream_char_vbase_dtor(basic_ostream_char *this)
5460 TRACE("(%p)\n", this);
5461 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(this));
5462 basic_ios_char_dtor(basic_ostream_char_get_basic_ios(this));
5465 DEFINE_THISCALL_WRAPPER(basic_ostream_char_vector_dtor, 8)
5466 basic_ostream_char* __thiscall basic_ostream_char_vector_dtor(basic_ios_char *base, unsigned int flags)
5468 basic_ostream_char *this = basic_ostream_char_from_basic_ios(base);
5470 TRACE("(%p %x)\n", this, flags);
5473 /* we have an array, with the number of elements stored before the first object */
5474 INT_PTR i, *ptr = (INT_PTR *)this-1;
5476 for(i=*ptr-1; i>=0; i--)
5477 basic_ostream_char_vbase_dtor(this+i);
5478 MSVCRT_operator_delete(ptr);
5480 basic_ostream_char_vbase_dtor(this);
5482 MSVCRT_operator_delete(this);
5488 /* ?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ */
5489 /* ?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@XZ */
5490 DEFINE_THISCALL_WRAPPER(basic_ostream_char_flush, 4)
5491 basic_ostream_char* __thiscall basic_ostream_char_flush(basic_ostream_char *this)
5493 /* this function is not matching C++ specification */
5494 basic_ios_char *base = basic_ostream_char_get_basic_ios(this);
5496 TRACE("(%p)\n", this);
5498 if(basic_ios_char_rdbuf_get(base) && ios_base_good(&base->base)
5499 && basic_streambuf_char_pubsync(basic_ios_char_rdbuf_get(base))==-1)
5500 basic_ios_char_setstate(base, IOSTATE_badbit);
5504 /* ?flush@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z */
5505 /* ?flush@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@1@AEAV21@@Z */
5506 basic_ostream_char* __cdecl flush_ostream_char(basic_ostream_char *ostream)
5508 return basic_ostream_char_flush(ostream);
5511 /* ?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
5512 /* ?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
5513 DEFINE_THISCALL_WRAPPER(basic_ostream_char__Osfx, 4)
5514 void __thiscall basic_ostream_char__Osfx(basic_ostream_char *this)
5516 basic_ios_char *base = basic_ostream_char_get_basic_ios(this);
5518 TRACE("(%p)\n", this);
5520 if(base->base.fmtfl & FMTFLAG_unitbuf)
5521 basic_ostream_char_flush(this);
5524 /* ?osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
5525 /* ?osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
5526 DEFINE_THISCALL_WRAPPER(basic_ostream_char_osfx, 4)
5527 void __thiscall basic_ostream_char_osfx(basic_ostream_char *this)
5529 TRACE("(%p)\n", this);
5530 basic_ostream_char__Osfx(this);
5533 static BOOL basic_ostream_char_sentry_create(basic_ostream_char *ostr)
5535 basic_ios_char *base = basic_ostream_char_get_basic_ios(ostr);
5537 if(basic_ios_char_rdbuf_get(base))
5538 basic_streambuf_char__Lock(base->strbuf);
5540 if(ios_base_good(&base->base) && base->stream)
5541 basic_ostream_char_flush(base->stream);
5543 return ios_base_good(&base->base);
5546 static void basic_ostream_char_sentry_destroy(basic_ostream_char *ostr)
5548 basic_ios_char *base = basic_ostream_char_get_basic_ios(ostr);
5550 if(ios_base_good(&base->base) && !__uncaught_exception())
5551 basic_ostream_char_osfx(ostr);
5553 if(basic_ios_char_rdbuf_get(base))
5554 basic_streambuf_char__Unlock(base->strbuf);
5557 /* ?opfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE_NXZ */
5558 /* ?opfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA_NXZ */
5559 DEFINE_THISCALL_WRAPPER(basic_ostream_char_opfx, 4)
5560 MSVCP_bool __thiscall basic_ostream_char_opfx(basic_ostream_char *this)
5562 basic_ios_char *base = basic_ostream_char_get_basic_ios(this);
5564 TRACE("(%p)\n", this);
5566 if(ios_base_good(&base->base) && base->stream)
5567 basic_ostream_char_flush(base->stream);
5568 return ios_base_good(&base->base);
5571 /* ?put@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@D@Z */
5572 /* ?put@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@D@Z */
5573 DEFINE_THISCALL_WRAPPER(basic_ostream_char_put, 8)
5574 basic_ostream_char* __thiscall basic_ostream_char_put(basic_ostream_char *this, char ch)
5576 basic_ios_char *base = basic_ostream_char_get_basic_ios(this);
5578 TRACE("(%p %c)\n", this, ch);
5580 if(!basic_ostream_char_sentry_create(this)
5581 || basic_streambuf_char_sputc(base->strbuf, ch)==EOF) {
5582 basic_ostream_char_sentry_destroy(this);
5583 basic_ios_char_setstate(base, IOSTATE_badbit);
5587 basic_ostream_char_sentry_destroy(this);
5591 /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@JH@Z */
5592 /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JH@Z */
5593 DEFINE_THISCALL_WRAPPER(basic_ostream_char_seekp, 12)
5594 basic_ostream_char* __thiscall basic_ostream_char_seekp(basic_ostream_char *this, streamoff off, int way)
5596 basic_ios_char *base = basic_ostream_char_get_basic_ios(this);
5598 TRACE("(%p %ld %d)\n", this, off, way);
5600 if(!ios_base_fail(&base->base)) {
5603 basic_streambuf_char_pubseekoff(basic_ios_char_rdbuf_get(base),
5604 &seek, off, way, OPENMODE_out);
5605 if(seek.off==0 && seek.pos==-1 && seek.state==0)
5606 basic_ios_char_setstate(base, IOSTATE_failbit);
5611 /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
5612 /* ?seekp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
5613 DEFINE_THISCALL_WRAPPER(basic_ostream_char_seekp_fpos, 28)
5614 basic_ostream_char* __thiscall basic_ostream_char_seekp_fpos(basic_ostream_char *this, fpos_int pos)
5616 basic_ios_char *base = basic_ostream_char_get_basic_ios(this);
5618 TRACE("(%p %s)\n", this, debugstr_fpos_int(&pos));
5620 if(!ios_base_fail(&base->base)) {
5623 basic_streambuf_char_pubseekpos(basic_ios_char_rdbuf_get(base),
5624 &seek, pos, OPENMODE_out);
5625 if(seek.off==0 && seek.pos==-1 && seek.state==0)
5626 basic_ios_char_setstate(base, IOSTATE_failbit);
5631 /* ?tellp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@XZ */
5632 /* ?tellp@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
5633 DEFINE_THISCALL_WRAPPER(basic_ostream_char_tellp, 8)
5634 fpos_int* __thiscall basic_ostream_char_tellp(basic_ostream_char *this, fpos_int *ret)
5636 basic_ios_char *base = basic_ostream_char_get_basic_ios(this);
5638 TRACE("(%p)\n", this);
5640 if(!ios_base_fail(&base->base)) {
5641 basic_streambuf_char_pubseekoff(basic_ios_char_rdbuf_get(base),
5642 ret, 0, SEEKDIR_cur, OPENMODE_out);
5651 /* ?write@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@PBDH@Z */
5652 /* ?write@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEBD_J@Z */
5653 DEFINE_THISCALL_WRAPPER(basic_ostream_char_write, 12)
5654 basic_ostream_char* __thiscall basic_ostream_char_write(basic_ostream_char *this, const char *str, streamsize count)
5656 basic_ios_char *base = basic_ostream_char_get_basic_ios(this);
5658 TRACE("(%p %s %ld)\n", this, debugstr_a(str), count);
5660 if(!basic_ostream_char_sentry_create(this)
5661 || basic_streambuf_char_sputn(base->strbuf, str, count)!=count) {
5662 basic_ostream_char_sentry_destroy(this);
5663 basic_ios_char_setstate(base, IOSTATE_badbit);
5667 basic_ostream_char_sentry_destroy(this);
5671 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@F@Z */
5672 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@F@Z */
5673 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_short, 8)
5674 basic_ostream_char* __thiscall basic_ostream_char_print_short(basic_ostream_char *this, short val)
5676 basic_ios_char *base = basic_ostream_char_get_basic_ios(this);
5677 int state = IOSTATE_goodbit;
5679 TRACE("(%p %d)\n", this, val);
5681 if(basic_ostream_char_sentry_create(this)) {
5682 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
5683 const num_put *numput = num_put_char_use_facet(strbuf->loc);
5684 ostreambuf_iterator_char dest = {0, strbuf};
5686 num_put_char_put_long(numput, &dest, dest, &base->base, basic_ios_char_fill_get(base),
5687 (ios_base_flags_get(&base->base) & FMTFLAG_basefield & (FMTFLAG_oct | FMTFLAG_hex))
5688 ? (LONG)((unsigned short)val) : (LONG)val);
5690 basic_ostream_char_sentry_destroy(this);
5692 basic_ios_char_setstate(base, state);
5696 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@G@Z */
5697 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@G@Z */
5698 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_ushort, 8)
5699 basic_ostream_char* __thiscall basic_ostream_char_print_ushort(basic_ostream_char *this, unsigned short val)
5701 basic_ios_char *base = basic_ostream_char_get_basic_ios(this);
5702 int state = IOSTATE_goodbit;
5704 TRACE("(%p %u)\n", this, val);
5706 if(basic_ostream_char_sentry_create(this)) {
5707 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
5708 const num_put *numput = num_put_char_use_facet(strbuf->loc);
5709 ostreambuf_iterator_char dest = {0, strbuf};
5711 num_put_char_put_ulong(numput, &dest, dest, &base->base, basic_ios_char_fill_get(base), val);
5713 basic_ostream_char_sentry_destroy(this);
5715 basic_ios_char_setstate(base, state);
5719 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@H@Z */
5720 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@H@Z */
5721 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@J@Z */
5722 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@J@Z */
5723 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_int, 8)
5724 basic_ostream_char* __thiscall basic_ostream_char_print_int(basic_ostream_char *this, int val)
5726 basic_ios_char *base = basic_ostream_char_get_basic_ios(this);
5727 int state = IOSTATE_goodbit;
5729 TRACE("(%p %d)\n", this, val);
5731 if(basic_ostream_char_sentry_create(this)) {
5732 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
5733 const num_put *numput = num_put_char_use_facet(strbuf->loc);
5734 ostreambuf_iterator_char dest = {0, strbuf};
5736 num_put_char_put_long(numput, &dest, dest, &base->base, basic_ios_char_fill_get(base), val);
5738 basic_ostream_char_sentry_destroy(this);
5740 basic_ios_char_setstate(base, state);
5744 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@I@Z */
5745 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@I@Z */
5746 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@K@Z */
5747 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@K@Z */
5748 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_uint, 8)
5749 basic_ostream_char* __thiscall basic_ostream_char_print_uint(basic_ostream_char *this, unsigned int val)
5751 basic_ios_char *base = basic_ostream_char_get_basic_ios(this);
5752 int state = IOSTATE_goodbit;
5754 TRACE("(%p %u)\n", this, val);
5756 if(basic_ostream_char_sentry_create(this)) {
5757 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
5758 const num_put *numput = num_put_char_use_facet(strbuf->loc);
5759 ostreambuf_iterator_char dest = {0, strbuf};
5761 num_put_char_put_ulong(numput, &dest, dest, &base->base, basic_ios_char_fill_get(base), val);
5763 basic_ostream_char_sentry_destroy(this);
5765 basic_ios_char_setstate(base, state);
5769 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@M@Z */
5770 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@M@Z */
5771 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_float, 8)
5772 basic_ostream_char* __thiscall basic_ostream_char_print_float(basic_ostream_char *this, float val)
5774 basic_ios_char *base = basic_ostream_char_get_basic_ios(this);
5775 int state = IOSTATE_goodbit;
5777 TRACE("(%p %f)\n", this, val);
5779 if(basic_ostream_char_sentry_create(this)) {
5780 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
5781 const num_put *numput = num_put_char_use_facet(strbuf->loc);
5782 ostreambuf_iterator_char dest = {0, strbuf};
5784 num_put_char_put_double(numput, &dest, dest, &base->base, basic_ios_char_fill_get(base), val);
5786 basic_ostream_char_sentry_destroy(this);
5788 basic_ios_char_setstate(base, state);
5792 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@N@Z */
5793 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@N@Z */
5794 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_double, 12)
5795 basic_ostream_char* __thiscall basic_ostream_char_print_double(basic_ostream_char *this, double val)
5797 basic_ios_char *base = basic_ostream_char_get_basic_ios(this);
5798 int state = IOSTATE_goodbit;
5800 TRACE("(%p %lf)\n", this, val);
5802 if(basic_ostream_char_sentry_create(this)) {
5803 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
5804 const num_put *numput = num_put_char_use_facet(strbuf->loc);
5805 ostreambuf_iterator_char dest = {0, strbuf};
5807 num_put_char_put_double(numput, &dest, dest, &base->base, basic_ios_char_fill_get(base), val);
5809 basic_ostream_char_sentry_destroy(this);
5811 basic_ios_char_setstate(base, state);
5815 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@O@Z */
5816 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@O@Z */
5817 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_ldouble, 12)
5818 basic_ostream_char* __thiscall basic_ostream_char_print_ldouble(basic_ostream_char *this, double val)
5820 basic_ios_char *base = basic_ostream_char_get_basic_ios(this);
5821 int state = IOSTATE_goodbit;
5823 TRACE("(%p %lf)\n", this, val);
5825 if(basic_ostream_char_sentry_create(this)) {
5826 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
5827 const num_put *numput = num_put_char_use_facet(strbuf->loc);
5828 ostreambuf_iterator_char dest = {0, strbuf};
5830 num_put_char_put_ldouble(numput, &dest, dest, &base->base, basic_ios_char_fill_get(base), val);
5832 basic_ostream_char_sentry_destroy(this);
5834 basic_ios_char_setstate(base, state);
5838 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
5839 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
5840 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_streambuf, 8)
5841 basic_ostream_char* __thiscall basic_ostream_char_print_streambuf(basic_ostream_char *this, basic_streambuf_char *val)
5843 basic_ios_char *base = basic_ostream_char_get_basic_ios(this);
5844 IOSB_iostate state = IOSTATE_badbit;
5847 TRACE("(%p %p)\n", this, val);
5849 if(basic_ostream_char_sentry_create(this)) {
5850 for(c = basic_streambuf_char_sgetc(val); c!=EOF;
5851 c = basic_streambuf_char_snextc(val)) {
5852 state = IOSTATE_goodbit;
5854 if(basic_streambuf_char_sputc(base->strbuf, c) == EOF) {
5855 state = IOSTATE_badbit;
5860 state = IOSTATE_badbit;
5862 basic_ostream_char_sentry_destroy(this);
5864 ios_base_width_set(&base->base, 0);
5865 basic_ios_char_setstate(base, state);
5869 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@PBX@Z */
5870 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@PEBX@Z */
5871 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_ptr, 8)
5872 basic_ostream_char* __thiscall basic_ostream_char_print_ptr(basic_ostream_char *this, const void *val)
5874 basic_ios_char *base = basic_ostream_char_get_basic_ios(this);
5875 int state = IOSTATE_goodbit;
5877 TRACE("(%p %p)\n", this, val);
5879 if(basic_ostream_char_sentry_create(this)) {
5880 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
5881 const num_put *numput = num_put_char_use_facet(strbuf->loc);
5882 ostreambuf_iterator_char dest = {0, strbuf};
5884 num_put_char_put_ptr(numput, &dest, dest, &base->base, basic_ios_char_fill_get(base), val);
5886 basic_ostream_char_sentry_destroy(this);
5888 basic_ios_char_setstate(base, state);
5892 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@_J@Z */
5893 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@_J@Z */
5894 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_int64, 12)
5895 basic_ostream_char* __thiscall basic_ostream_char_print_int64(basic_ostream_char *this, __int64 val)
5897 basic_ios_char *base = basic_ostream_char_get_basic_ios(this);
5898 int state = IOSTATE_goodbit;
5900 TRACE("(%p)\n", this);
5902 if(basic_ostream_char_sentry_create(this)) {
5903 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
5904 const num_put *numput = num_put_char_use_facet(strbuf->loc);
5905 ostreambuf_iterator_char dest = {0, strbuf};
5907 num_put_char_put_int64(numput, &dest, dest, &base->base, basic_ios_char_fill_get(base), val);
5909 basic_ostream_char_sentry_destroy(this);
5911 basic_ios_char_setstate(base, state);
5915 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@_K@Z */
5916 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@_K@Z */
5917 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_uint64, 12)
5918 basic_ostream_char* __thiscall basic_ostream_char_print_uint64(basic_ostream_char *this, unsigned __int64 val)
5920 basic_ios_char *base = basic_ostream_char_get_basic_ios(this);
5921 int state = IOSTATE_goodbit;
5923 TRACE("(%p)\n", this);
5925 if(basic_ostream_char_sentry_create(this)) {
5926 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
5927 const num_put *numput = num_put_char_use_facet(strbuf->loc);
5928 ostreambuf_iterator_char dest = {0, strbuf};
5930 num_put_char_put_uint64(numput, &dest, dest, &base->base, basic_ios_char_fill_get(base), val);
5932 basic_ostream_char_sentry_destroy(this);
5934 basic_ios_char_setstate(base, state);
5938 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@_N@Z */
5939 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@_N@Z */
5940 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_bool, 8)
5941 basic_ostream_char* __thiscall basic_ostream_char_print_bool(basic_ostream_char *this, MSVCP_bool val)
5943 basic_ios_char *base = basic_ostream_char_get_basic_ios(this);
5944 int state = IOSTATE_goodbit;
5946 TRACE("(%p %x)\n", this, val);
5948 if(basic_ostream_char_sentry_create(this)) {
5949 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
5950 const num_put *numput = num_put_char_use_facet(strbuf->loc);
5951 ostreambuf_iterator_char dest = {0, strbuf};
5953 num_put_char_put_bool(numput, &dest, dest, &base->base, basic_ios_char_fill_get(base), val);
5955 basic_ostream_char_sentry_destroy(this);
5957 basic_ios_char_setstate(base, state);
5961 /* ?endl@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z */
5962 /* ?endl@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@1@AEAV21@@Z */
5963 basic_ostream_char* __cdecl basic_ostream_char_endl(basic_ostream_char *ostr)
5965 TRACE("(%p)\n", ostr);
5967 basic_ostream_char_put(ostr, '\n');
5968 basic_ostream_char_flush(ostr);
5972 /* $?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 */
5973 /* ??$?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 */
5974 basic_ostream_char* __cdecl basic_ostream_char_print_bstr(basic_ostream_char *ostr, const basic_string_char *str)
5976 basic_ios_char *base = basic_ostream_char_get_basic_ios(ostr);
5977 IOSB_iostate state = IOSTATE_goodbit;
5979 TRACE("(%p %p)\n", ostr, str);
5981 if(basic_ostream_char_sentry_create(ostr)) {
5982 MSVCP_size_t len = MSVCP_basic_string_char_length(str);
5983 streamsize pad = (base->base.wide>len ? base->base.wide-len : 0);
5985 if((base->base.fmtfl & FMTFLAG_adjustfield) != FMTFLAG_left) {
5986 for(; pad!=0; pad--) {
5987 if(basic_streambuf_char_sputc(base->strbuf, base->fillch) == EOF) {
5988 state = IOSTATE_badbit;
5994 if(state == IOSTATE_goodbit) {
5995 if(basic_streambuf_char_sputn(base->strbuf, MSVCP_basic_string_char_c_str(str), len) != len)
5996 state = IOSTATE_badbit;
5999 if(state == IOSTATE_goodbit) {
6000 for(; pad!=0; pad--) {
6001 if(basic_streambuf_char_sputc(base->strbuf, base->fillch) == EOF) {
6002 state = IOSTATE_badbit;
6008 base->base.wide = 0;
6010 state = IOSTATE_badbit;
6012 basic_ostream_char_sentry_destroy(ostr);
6014 basic_ios_char_setstate(base, state);
6018 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@C@Z */
6019 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@C@Z */
6020 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@D@Z */
6021 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@D@Z */
6022 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@E@Z */
6023 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@E@Z */
6024 basic_ostream_char* __cdecl basic_ostream_char_print_ch(basic_ostream_char *ostr, char ch)
6026 basic_ios_char *base = basic_ostream_char_get_basic_ios(ostr);
6027 IOSB_iostate state = IOSTATE_goodbit;
6029 TRACE("(%p %d)\n", ostr, ch);
6031 if(basic_ostream_char_sentry_create(ostr)) {
6032 streamsize pad = (base->base.wide>1 ? base->base.wide-1 : 0);
6034 if((base->base.fmtfl & FMTFLAG_adjustfield) != FMTFLAG_left) {
6035 for(; pad!=0; pad--) {
6036 if(basic_streambuf_char_sputc(base->strbuf, base->fillch) == EOF) {
6037 state = IOSTATE_badbit;
6043 if(state == IOSTATE_goodbit) {
6044 if(basic_streambuf_char_sputc(base->strbuf, ch) == EOF)
6045 state = IOSTATE_badbit;
6048 if(state == IOSTATE_goodbit) {
6049 for(; pad!=0; pad--) {
6050 if(basic_streambuf_char_sputc(base->strbuf, base->fillch) == EOF) {
6051 state = IOSTATE_badbit;
6057 base->base.wide = 0;
6059 state = IOSTATE_badbit;
6061 basic_ostream_char_sentry_destroy(ostr);
6063 basic_ios_char_setstate(base, state);
6067 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBC@Z */
6068 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBC@Z */
6069 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z */
6070 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBD@Z */
6071 /* ??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBE@Z */
6072 /* ??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBE@Z */
6073 basic_ostream_char* __cdecl basic_ostream_char_print_str(basic_ostream_char *ostr, const char *str)
6075 basic_ios_char *base = basic_ostream_char_get_basic_ios(ostr);
6076 IOSB_iostate state = IOSTATE_goodbit;
6078 TRACE("(%p %s)\n", ostr, str);
6080 if(basic_ostream_char_sentry_create(ostr)) {
6081 MSVCP_size_t len = strlen(str);
6082 streamsize pad = (base->base.wide>len ? base->base.wide-len : 0);
6084 if((base->base.fmtfl & FMTFLAG_adjustfield) != FMTFLAG_left) {
6085 for(; pad!=0; pad--) {
6086 if(basic_streambuf_char_sputc(base->strbuf, base->fillch) == EOF) {
6087 state = IOSTATE_badbit;
6093 if(state == IOSTATE_goodbit) {
6094 if(basic_streambuf_char_sputn(base->strbuf, str, len) != len)
6095 state = IOSTATE_badbit;
6098 if(state == IOSTATE_goodbit) {
6099 for(; pad!=0; pad--) {
6100 if(basic_streambuf_char_sputc(base->strbuf, base->fillch) == EOF) {
6101 state = IOSTATE_badbit;
6107 base->base.wide = 0;
6109 state = IOSTATE_badbit;
6111 basic_ostream_char_sentry_destroy(ostr);
6113 basic_ios_char_setstate(base, state);
6117 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
6118 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
6119 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_func, 8)
6120 basic_ostream_char* __thiscall basic_ostream_char_print_func(basic_ostream_char *this,
6121 basic_ostream_char* (__cdecl *pfunc)(basic_ostream_char*))
6123 TRACE("(%p %p)\n", this, pfunc);
6128 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@DU?$char_traits@D@std@@@1@AAV21@@Z@Z */
6129 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@DU?$char_traits@D@std@@@1@AEAV21@@Z@Z */
6130 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_func_basic_ios, 8)
6131 basic_ostream_char* __thiscall basic_ostream_char_print_func_basic_ios(basic_ostream_char *this,
6132 basic_ios_char* (__cdecl *pfunc)(basic_ios_char*))
6134 TRACE("(%p %p)\n", this, pfunc);
6135 pfunc(basic_ostream_char_get_basic_ios(this));
6139 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
6140 /* ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
6141 DEFINE_THISCALL_WRAPPER(basic_ostream_char_print_func_ios_base, 8)
6142 basic_ostream_char* __thiscall basic_ostream_char_print_func_ios_base(
6143 basic_ostream_char *this, ios_base* (__cdecl *pfunc)(ios_base*))
6145 TRACE("(%p %p)\n", this, pfunc);
6146 pfunc(&basic_ostream_char_get_basic_ios(this)->base);
6150 /* Caution: basic_ostream uses virtual inheritance. */
6151 static inline basic_ios_wchar* basic_ostream_wchar_get_basic_ios(basic_ostream_wchar *this)
6153 return (basic_ios_wchar*)((char*)this+this->vbtable[1]);
6156 static inline basic_ios_wchar* basic_ostream_wchar_to_basic_ios(basic_ostream_wchar *ptr)
6158 return (basic_ios_wchar*)((char*)ptr+basic_ostream_wchar_vbtable[1]);
6161 static inline basic_ostream_wchar* basic_ostream_wchar_from_basic_ios(basic_ios_wchar *ptr)
6163 return (basic_ostream_wchar*)((char*)ptr-basic_ostream_wchar_vbtable[1]);
6166 /* ??0?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N@Z */
6167 /* ??0?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N@Z */
6168 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_ctor, 16)
6169 basic_ostream_wchar* __thiscall basic_ostream_wchar_ctor(basic_ostream_wchar *this,
6170 basic_streambuf_wchar *strbuf, MSVCP_bool isstd, MSVCP_bool virt_init)
6172 basic_ios_wchar *base;
6174 TRACE("(%p %p %d %d)\n", this, strbuf, isstd, virt_init);
6177 this->vbtable = basic_ostream_wchar_vbtable;
6178 base = basic_ostream_wchar_get_basic_ios(this);
6179 basic_ios_wchar_ctor(base);
6181 base = basic_ostream_wchar_get_basic_ios(this);
6184 base->base.vtable = &MSVCP_basic_ostream_wchar_vtable;
6185 basic_ios_wchar_init(base, strbuf, isstd);
6189 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N@Z */
6190 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N@Z */
6191 DEFINE_THISCALL_WRAPPER(basic_ostream_short_ctor, 16)
6192 basic_ostream_wchar* __thiscall basic_ostream_short_ctor(basic_ostream_wchar *this,
6193 basic_streambuf_wchar *strbuf, MSVCP_bool isstd, MSVCP_bool virt_init)
6195 basic_ostream_wchar_ctor(this, strbuf, isstd, virt_init);
6196 basic_ostream_wchar_get_basic_ios(this)->base.vtable = &MSVCP_basic_ostream_short_vtable;
6200 /* ??0?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAE@W4_Uninitialized@1@_N@Z */
6201 /* ??0?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA@W4_Uninitialized@1@_N@Z */
6202 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_ctor_uninitialized, 16)
6203 basic_ostream_wchar* __thiscall basic_ostream_wchar_ctor_uninitialized(basic_ostream_wchar *this,
6204 int uninitialized, MSVCP_bool addstd, MSVCP_bool virt_init)
6206 basic_ios_wchar *base;
6208 TRACE("(%p %d %x)\n", this, uninitialized, addstd);
6211 this->vbtable = basic_ostream_wchar_vbtable;
6212 base = basic_ostream_wchar_get_basic_ios(this);
6213 basic_ios_wchar_ctor(base);
6215 base = basic_ostream_wchar_get_basic_ios(this);
6218 base->base.vtable = &MSVCP_basic_ostream_wchar_vtable;
6220 ios_base_Addstd(&base->base);
6224 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE@W4_Uninitialized@1@_N@Z */
6225 /* ??0?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA@W4_Uninitialized@1@_N@Z */
6226 DEFINE_THISCALL_WRAPPER(basic_ostream_short_ctor_uninitialized, 16)
6227 basic_ostream_wchar* __thiscall basic_ostream_short_ctor_uninitialized(basic_ostream_wchar *this,
6228 int uninitialized, MSVCP_bool addstd, MSVCP_bool virt_init)
6230 basic_ostream_wchar_ctor_uninitialized(this, uninitialized, addstd, virt_init);
6231 basic_ostream_wchar_get_basic_ios(this)->base.vtable = &MSVCP_basic_ostream_short_vtable;
6235 /* ??1?$basic_ostream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
6236 /* ??1?$basic_ostream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
6237 /* ??1?$basic_ostream@GU?$char_traits@G@std@@@std@@UAE@XZ */
6238 /* ??1?$basic_ostream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
6239 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_dtor, 4)
6240 void __thiscall basic_ostream_wchar_dtor(basic_ios_wchar *base)
6242 basic_ostream_wchar *this = basic_ostream_wchar_from_basic_ios(base);
6244 /* don't destroy virtual base here */
6245 TRACE("(%p)\n", this);
6248 /* ??_D?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
6249 /* ??_D?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
6250 /* ??_D?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
6251 /* ??_D?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
6252 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_vbase_dtor, 4)
6253 void __thiscall basic_ostream_wchar_vbase_dtor(basic_ostream_wchar *this)
6255 TRACE("(%p)\n", this);
6256 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(this));
6257 basic_ios_wchar_dtor(basic_ostream_wchar_get_basic_ios(this));
6260 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_vector_dtor, 8)
6261 basic_ostream_wchar* __thiscall basic_ostream_wchar_vector_dtor(basic_ios_wchar *base, unsigned int flags)
6263 basic_ostream_wchar *this = basic_ostream_wchar_from_basic_ios(base);
6265 TRACE("(%p %x)\n", this, flags);
6268 /* we have an array, with the number of elements stored before the first object */
6269 INT_PTR i, *ptr = (INT_PTR *)this-1;
6271 for(i=*ptr-1; i>=0; i--)
6272 basic_ostream_wchar_vbase_dtor(this+i);
6273 MSVCRT_operator_delete(ptr);
6275 basic_ostream_wchar_vbase_dtor(this);
6277 MSVCRT_operator_delete(this);
6283 /* ?flush@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@XZ */
6284 /* ?flush@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@XZ */
6285 /* ?flush@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@XZ */
6286 /* ?flush@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@XZ */
6287 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_flush, 4)
6288 basic_ostream_wchar* __thiscall basic_ostream_wchar_flush(basic_ostream_wchar *this)
6290 /* this function is not matching C++ specification */
6291 basic_ios_wchar *base = basic_ostream_wchar_get_basic_ios(this);
6293 TRACE("(%p)\n", this);
6295 if(basic_ios_wchar_rdbuf_get(base) && ios_base_good(&base->base)
6296 && basic_streambuf_wchar_pubsync(basic_ios_wchar_rdbuf_get(base))==-1)
6297 basic_ios_wchar_setstate(base, IOSTATE_badbit);
6301 /* ?flush@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AAV21@@Z */
6302 /* ?flush@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AEAV21@@Z */
6303 /* ?flush@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@1@AAV21@@Z */
6304 /* ?flush@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@1@AEAV21@@Z */
6305 basic_ostream_wchar* __cdecl flush_ostream_wchar(basic_ostream_wchar *ostream)
6307 return basic_ostream_wchar_flush(ostream);
6310 /* ?_Osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
6311 /* ?_Osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
6312 /* ?_Osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
6313 /* ?_Osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
6314 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar__Osfx, 4)
6315 void __thiscall basic_ostream_wchar__Osfx(basic_ostream_wchar *this)
6317 basic_ios_wchar *base = basic_ostream_wchar_get_basic_ios(this);
6319 TRACE("(%p)\n", this);
6321 if(base->base.fmtfl & FMTFLAG_unitbuf)
6322 basic_ostream_wchar_flush(this);
6325 /* ?osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
6326 /* ?osfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
6327 /* ?osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
6328 /* ?osfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
6329 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_osfx, 4)
6330 void __thiscall basic_ostream_wchar_osfx(basic_ostream_wchar *this)
6332 TRACE("(%p)\n", this);
6333 basic_ostream_wchar__Osfx(this);
6336 static BOOL basic_ostream_wchar_sentry_create(basic_ostream_wchar *ostr)
6338 basic_ios_wchar *base = basic_ostream_wchar_get_basic_ios(ostr);
6340 if(basic_ios_wchar_rdbuf_get(base))
6341 basic_streambuf_wchar__Lock(base->strbuf);
6343 if(ios_base_good(&base->base) && base->stream)
6344 basic_ostream_wchar_flush(base->stream);
6346 return ios_base_good(&base->base);
6349 static void basic_ostream_wchar_sentry_destroy(basic_ostream_wchar *ostr)
6351 basic_ios_wchar *base = basic_ostream_wchar_get_basic_ios(ostr);
6353 if(ios_base_good(&base->base) && !__uncaught_exception())
6354 basic_ostream_wchar_osfx(ostr);
6356 if(basic_ios_wchar_rdbuf_get(base))
6357 basic_streambuf_wchar__Unlock(base->strbuf);
6360 /* ?opfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAE_NXZ */
6361 /* ?opfx@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA_NXZ */
6362 /* ?opfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE_NXZ */
6363 /* ?opfx@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA_NXZ */
6364 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_opfx, 4)
6365 MSVCP_bool __thiscall basic_ostream_wchar_opfx(basic_ostream_wchar *this)
6367 basic_ios_wchar *base = basic_ostream_wchar_get_basic_ios(this);
6369 TRACE("(%p)\n", this);
6371 if(ios_base_good(&base->base) && base->stream)
6372 basic_ostream_wchar_flush(base->stream);
6373 return ios_base_good(&base->base);
6376 /* ?put@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@_W@Z */
6377 /* ?put@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_W@Z */
6378 /* ?put@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@G@Z */
6379 /* ?put@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@G@Z */
6380 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_put, 8)
6381 basic_ostream_wchar* __thiscall basic_ostream_wchar_put(basic_ostream_wchar *this, wchar_t ch)
6383 basic_ios_wchar *base = basic_ostream_wchar_get_basic_ios(this);
6385 TRACE("(%p %c)\n", this, ch);
6387 if(!basic_ostream_wchar_sentry_create(this)
6388 || basic_streambuf_wchar_sputc(base->strbuf, ch)==WEOF) {
6389 basic_ostream_wchar_sentry_destroy(this);
6390 basic_ios_wchar_setstate(base, IOSTATE_badbit);
6394 basic_ostream_wchar_sentry_destroy(this);
6398 /* ?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@JH@Z */
6399 /* ?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_JH@Z */
6400 /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@JH@Z */
6401 /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JH@Z */
6402 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_seekp, 12)
6403 basic_ostream_wchar* __thiscall basic_ostream_wchar_seekp(basic_ostream_wchar *this, streamoff off, int way)
6405 basic_ios_wchar *base = basic_ostream_wchar_get_basic_ios(this);
6407 TRACE("(%p %ld %d)\n", this, off, way);
6409 if(!ios_base_fail(&base->base)) {
6412 basic_streambuf_wchar_pubseekoff(basic_ios_wchar_rdbuf_get(base),
6413 &seek, off, way, OPENMODE_out);
6414 if(seek.off==0 && seek.pos==-1 && seek.state==0)
6415 basic_ios_wchar_setstate(base, IOSTATE_failbit);
6420 /* ?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
6421 /* ?seekp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
6422 /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
6423 /* ?seekp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
6424 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_seekp_fpos, 28)
6425 basic_ostream_wchar* __thiscall basic_ostream_wchar_seekp_fpos(basic_ostream_wchar *this, fpos_int pos)
6427 basic_ios_wchar *base = basic_ostream_wchar_get_basic_ios(this);
6429 TRACE("(%p %s)\n", this, debugstr_fpos_int(&pos));
6431 if(!ios_base_fail(&base->base)) {
6434 basic_streambuf_wchar_pubseekpos(basic_ios_wchar_rdbuf_get(base),
6435 &seek, pos, OPENMODE_out);
6436 if(seek.off==0 && seek.pos==-1 && seek.state==0)
6437 basic_ios_wchar_setstate(base, IOSTATE_failbit);
6442 /* ?tellp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@XZ */
6443 /* ?tellp@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
6444 /* ?tellp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@XZ */
6445 /* ?tellp@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
6446 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_tellp, 8)
6447 fpos_int* __thiscall basic_ostream_wchar_tellp(basic_ostream_wchar *this, fpos_int *ret)
6449 basic_ios_wchar *base = basic_ostream_wchar_get_basic_ios(this);
6451 TRACE("(%p)\n", this);
6453 if(!ios_base_fail(&base->base)) {
6454 basic_streambuf_wchar_pubseekoff(basic_ios_wchar_rdbuf_get(base),
6455 ret, 0, SEEKDIR_cur, OPENMODE_out);
6464 /* ?write@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PB_WH@Z */
6465 /* ?write@?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEB_W_J@Z */
6466 /* ?write@?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV12@PBGH@Z */
6467 /* ?write@?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEBG_J@Z */
6468 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_write, 12)
6469 basic_ostream_wchar* __thiscall basic_ostream_wchar_write(basic_ostream_wchar *this, const wchar_t *str, streamsize count)
6471 basic_ios_wchar *base = basic_ostream_wchar_get_basic_ios(this);
6473 TRACE("(%p %s %ld)\n", this, debugstr_w(str), count);
6475 if(!basic_ostream_wchar_sentry_create(this)
6476 || basic_streambuf_wchar_sputn(base->strbuf, str, count)!=count) {
6477 basic_ostream_wchar_sentry_destroy(this);
6478 basic_ios_wchar_setstate(base, IOSTATE_badbit);
6482 basic_ostream_wchar_sentry_destroy(this);
6486 static basic_ostream_wchar* basic_ostream_print_short(basic_ostream_wchar *this, short val, const num_put *numput)
6488 basic_ios_wchar *base = basic_ostream_wchar_get_basic_ios(this);
6489 int state = IOSTATE_goodbit;
6491 TRACE("(%p %d)\n", this, val);
6493 if(basic_ostream_wchar_sentry_create(this)) {
6494 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
6495 ostreambuf_iterator_wchar dest = {0, strbuf};
6497 num_put_wchar_put_long(numput, &dest, dest, &base->base, basic_ios_wchar_fill_get(base),
6498 (ios_base_flags_get(&base->base) & FMTFLAG_basefield & (FMTFLAG_oct | FMTFLAG_hex))
6499 ? (LONG)((unsigned short)val) : (LONG)val);
6501 basic_ostream_wchar_sentry_destroy(this);
6503 basic_ios_wchar_setstate(base, state);
6507 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@F@Z */
6508 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@F@Z */
6509 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_short, 8)
6510 basic_ostream_wchar* __thiscall basic_ostream_wchar_print_short(basic_ostream_wchar *this, short val)
6512 return basic_ostream_print_short(this, val, num_put_wchar_use_facet(
6513 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc));
6516 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@F@Z */
6517 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@F@Z */
6518 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_short, 8)
6519 basic_ostream_wchar* __thiscall basic_ostream_short_print_short(basic_ostream_wchar *this, short val)
6521 return basic_ostream_print_short(this, val, num_put_short_use_facet(
6522 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc));
6525 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@G@Z */
6526 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@G@Z */
6527 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_ushort, 8)
6528 basic_ostream_wchar* __thiscall basic_ostream_wchar_print_ushort(basic_ostream_wchar *this, unsigned short val)
6530 basic_ios_wchar *base = basic_ostream_wchar_get_basic_ios(this);
6531 int state = IOSTATE_goodbit;
6533 TRACE("(%p %u)\n", this, val);
6535 if(basic_ostream_wchar_sentry_create(this)) {
6536 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
6537 const num_put *numput = num_put_wchar_use_facet(strbuf->loc);
6538 ostreambuf_iterator_wchar dest = {0, strbuf};
6540 num_put_wchar_put_ulong(numput, &dest, dest, &base->base, basic_ios_wchar_fill_get(base), val);
6542 basic_ostream_wchar_sentry_destroy(this);
6544 basic_ios_wchar_setstate(base, state);
6548 static basic_ostream_wchar* basic_ostream_print_int(basic_ostream_wchar *this, int val, const num_put *numput)
6550 basic_ios_wchar *base = basic_ostream_wchar_get_basic_ios(this);
6551 int state = IOSTATE_goodbit;
6553 TRACE("(%p %d)\n", this, val);
6555 if(basic_ostream_wchar_sentry_create(this)) {
6556 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
6557 ostreambuf_iterator_wchar dest = {0, strbuf};
6559 num_put_wchar_put_long(numput, &dest, dest, &base->base, basic_ios_wchar_fill_get(base), val);
6561 basic_ostream_wchar_sentry_destroy(this);
6563 basic_ios_wchar_setstate(base, state);
6567 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@H@Z */
6568 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@H@Z */
6569 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@J@Z */
6570 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@J@Z */
6571 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_int, 8)
6572 basic_ostream_wchar* __thiscall basic_ostream_wchar_print_int(basic_ostream_wchar *this, int val)
6574 return basic_ostream_print_int(this, val, num_put_wchar_use_facet(
6575 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc));
6578 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@H@Z */
6579 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@H@Z */
6580 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@J@Z */
6581 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@J@Z */
6582 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_int, 8)
6583 basic_ostream_wchar* __thiscall basic_ostream_short_print_int(basic_ostream_wchar *this, int val)
6585 return basic_ostream_print_int(this, val, num_put_short_use_facet(
6586 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc));
6589 static basic_ostream_wchar* basic_ostream_print_uint(basic_ostream_wchar *this, unsigned int val, const num_put *numput)
6591 basic_ios_wchar *base = basic_ostream_wchar_get_basic_ios(this);
6592 int state = IOSTATE_goodbit;
6594 TRACE("(%p %u)\n", this, val);
6596 if(basic_ostream_wchar_sentry_create(this)) {
6597 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
6598 ostreambuf_iterator_wchar dest = {0, strbuf};
6600 num_put_wchar_put_ulong(numput, &dest, dest, &base->base, basic_ios_wchar_fill_get(base), val);
6602 basic_ostream_wchar_sentry_destroy(this);
6604 basic_ios_wchar_setstate(base, state);
6608 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@I@Z */
6609 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@I@Z */
6610 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@K@Z */
6611 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@K@Z */
6612 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_uint, 8)
6613 basic_ostream_wchar* __thiscall basic_ostream_wchar_print_uint(basic_ostream_wchar *this, unsigned int val)
6615 return basic_ostream_print_uint(this, val, num_put_wchar_use_facet(
6616 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc));
6619 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@I@Z */
6620 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@I@Z */
6621 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@K@Z */
6622 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@K@Z */
6623 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_uint, 8)
6624 basic_ostream_wchar* __thiscall basic_ostream_short_print_uint(basic_ostream_wchar *this, unsigned int val)
6626 return basic_ostream_print_uint(this, val, num_put_short_use_facet(
6627 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc));
6630 static basic_ostream_wchar* basic_ostream_print_float(basic_ostream_wchar *this, float val, const num_put *numput)
6632 basic_ios_wchar *base = basic_ostream_wchar_get_basic_ios(this);
6633 int state = IOSTATE_goodbit;
6635 TRACE("(%p %f)\n", this, val);
6637 if(basic_ostream_wchar_sentry_create(this)) {
6638 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
6639 ostreambuf_iterator_wchar dest = {0, strbuf};
6641 num_put_wchar_put_double(numput, &dest, dest, &base->base, basic_ios_wchar_fill_get(base), val);
6643 basic_ostream_wchar_sentry_destroy(this);
6645 basic_ios_wchar_setstate(base, state);
6649 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@M@Z */
6650 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@M@Z */
6651 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_float, 8)
6652 basic_ostream_wchar* __thiscall basic_ostream_wchar_print_float(basic_ostream_wchar *this, float val)
6654 return basic_ostream_print_float(this, val, num_put_wchar_use_facet(
6655 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc));
6658 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@M@Z */
6659 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@M@Z */
6660 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_float, 8)
6661 basic_ostream_wchar* __thiscall basic_ostream_short_print_float(basic_ostream_wchar *this, float val)
6663 return basic_ostream_print_float(this, val, num_put_short_use_facet(
6664 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc));
6667 static basic_ostream_wchar* basic_ostream_print_double(basic_ostream_wchar *this, double val, const num_put *numput)
6669 basic_ios_wchar *base = basic_ostream_wchar_get_basic_ios(this);
6670 int state = IOSTATE_goodbit;
6672 TRACE("(%p %lf)\n", this, val);
6674 if(basic_ostream_wchar_sentry_create(this)) {
6675 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
6676 ostreambuf_iterator_wchar dest = {0, strbuf};
6678 num_put_wchar_put_double(numput, &dest, dest, &base->base, basic_ios_wchar_fill_get(base), val);
6680 basic_ostream_wchar_sentry_destroy(this);
6682 basic_ios_wchar_setstate(base, state);
6686 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@N@Z */
6687 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@N@Z */
6688 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_double, 12)
6689 basic_ostream_wchar* __thiscall basic_ostream_wchar_print_double(basic_ostream_wchar *this, double val)
6691 return basic_ostream_print_double(this, val, num_put_wchar_use_facet(
6692 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc));
6695 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@N@Z */
6696 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@N@Z */
6697 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_double, 12)
6698 basic_ostream_wchar* __thiscall basic_ostream_short_print_double(basic_ostream_wchar *this, double val)
6700 return basic_ostream_print_double(this, val, num_put_short_use_facet(
6701 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc));
6704 static basic_ostream_wchar* basic_ostream_print_ldouble(basic_ostream_wchar *this, double val, const num_put *numput)
6706 basic_ios_wchar *base = basic_ostream_wchar_get_basic_ios(this);
6707 int state = IOSTATE_goodbit;
6709 TRACE("(%p %lf)\n", this, val);
6711 if(basic_ostream_wchar_sentry_create(this)) {
6712 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
6713 ostreambuf_iterator_wchar dest = {0, strbuf};
6715 num_put_wchar_put_ldouble(numput, &dest, dest, &base->base, basic_ios_wchar_fill_get(base), val);
6717 basic_ostream_wchar_sentry_destroy(this);
6719 basic_ios_wchar_setstate(base, state);
6723 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@O@Z */
6724 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@O@Z */
6725 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_ldouble, 12)
6726 basic_ostream_wchar* __thiscall basic_ostream_wchar_print_ldouble(basic_ostream_wchar *this, double val)
6728 return basic_ostream_print_ldouble(this, val, num_put_wchar_use_facet(
6729 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc));
6732 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@O@Z */
6733 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@O@Z */
6734 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_ldouble, 12)
6735 basic_ostream_wchar* __thiscall basic_ostream_short_print_ldouble(basic_ostream_wchar *this, double val)
6737 return basic_ostream_print_ldouble(this, val, num_put_short_use_facet(
6738 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc));
6741 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
6742 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
6743 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
6744 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
6745 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_streambuf, 8)
6746 basic_ostream_wchar* __thiscall basic_ostream_wchar_print_streambuf(basic_ostream_wchar *this, basic_streambuf_wchar *val)
6748 basic_ios_wchar *base = basic_ostream_wchar_get_basic_ios(this);
6749 IOSB_iostate state = IOSTATE_badbit;
6750 unsigned short c = '\n';
6752 TRACE("(%p %p)\n", this, val);
6754 if(basic_ostream_wchar_sentry_create(this)) {
6755 for(c = basic_streambuf_wchar_sgetc(val); c!=WEOF;
6756 c = basic_streambuf_wchar_snextc(val)) {
6757 state = IOSTATE_goodbit;
6759 if(basic_streambuf_wchar_sputc(base->strbuf, c) == WEOF) {
6760 state = IOSTATE_badbit;
6765 state = IOSTATE_badbit;
6767 basic_ostream_wchar_sentry_destroy(this);
6769 ios_base_width_set(&base->base, 0);
6770 basic_ios_wchar_setstate(base, state);
6774 static basic_ostream_wchar* basic_ostream_print_ptr(basic_ostream_wchar *this, const void *val, const num_put *numput)
6776 basic_ios_wchar *base = basic_ostream_wchar_get_basic_ios(this);
6777 int state = IOSTATE_goodbit;
6779 TRACE("(%p %p)\n", this, val);
6781 if(basic_ostream_wchar_sentry_create(this)) {
6782 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
6783 ostreambuf_iterator_wchar dest = {0, strbuf};
6785 num_put_wchar_put_ptr(numput, &dest, dest, &base->base, basic_ios_wchar_fill_get(base), val);
6787 basic_ostream_wchar_sentry_destroy(this);
6789 basic_ios_wchar_setstate(base, state);
6793 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@PBX@Z */
6794 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@PEBX@Z */
6795 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_ptr, 8)
6796 basic_ostream_wchar* __thiscall basic_ostream_wchar_print_ptr(basic_ostream_wchar *this, const void *val)
6798 return basic_ostream_print_ptr(this, val, num_put_wchar_use_facet(
6799 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc));
6802 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@PBX@Z */
6803 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@PEBX@Z */
6804 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_ptr, 8)
6805 basic_ostream_wchar* __thiscall basic_ostream_short_print_ptr(basic_ostream_wchar *this, const void *val)
6807 return basic_ostream_print_ptr(this, val, num_put_short_use_facet(
6808 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc));
6811 static basic_ostream_wchar* basic_ostream_print_int64(basic_ostream_wchar *this, __int64 val, const num_put *numput)
6813 basic_ios_wchar *base = basic_ostream_wchar_get_basic_ios(this);
6814 int state = IOSTATE_goodbit;
6816 TRACE("(%p)\n", this);
6818 if(basic_ostream_wchar_sentry_create(this)) {
6819 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
6820 ostreambuf_iterator_wchar dest = {0, strbuf};
6822 num_put_wchar_put_int64(numput, &dest, dest, &base->base, basic_ios_wchar_fill_get(base), val);
6824 basic_ostream_wchar_sentry_destroy(this);
6826 basic_ios_wchar_setstate(base, state);
6830 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@_J@Z */
6831 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@_J@Z */
6832 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_int64, 12)
6833 basic_ostream_wchar* __thiscall basic_ostream_wchar_print_int64(basic_ostream_wchar *this, __int64 val)
6835 return basic_ostream_print_int64(this, val, num_put_wchar_use_facet(
6836 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc));
6839 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@_J@Z */
6840 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@_J@Z */
6841 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_int64, 12)
6842 basic_ostream_wchar* __thiscall basic_ostream_short_print_int64(basic_ostream_wchar *this, __int64 val)
6844 return basic_ostream_print_int64(this, val, num_put_short_use_facet(
6845 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc));
6848 static basic_ostream_wchar* basic_ostream_print_uint64(basic_ostream_wchar *this, unsigned __int64 val, const num_put *numput)
6850 basic_ios_wchar *base = basic_ostream_wchar_get_basic_ios(this);
6851 int state = IOSTATE_goodbit;
6853 TRACE("(%p)\n", this);
6855 if(basic_ostream_wchar_sentry_create(this)) {
6856 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
6857 ostreambuf_iterator_wchar dest = {0, strbuf};
6859 num_put_wchar_put_uint64(numput, &dest, dest, &base->base, basic_ios_wchar_fill_get(base), val);
6861 basic_ostream_wchar_sentry_destroy(this);
6863 basic_ios_wchar_setstate(base, state);
6867 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@_K@Z */
6868 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@_K@Z */
6869 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_uint64, 12)
6870 basic_ostream_wchar* __thiscall basic_ostream_wchar_print_uint64(basic_ostream_wchar *this, unsigned __int64 val)
6872 return basic_ostream_print_uint64(this, val, num_put_wchar_use_facet(
6873 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc));
6876 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@_K@Z */
6877 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@_K@Z */
6878 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_uint64, 12)
6879 basic_ostream_wchar* __thiscall basic_ostream_short_print_uint64(basic_ostream_wchar *this, unsigned __int64 val)
6881 return basic_ostream_print_uint64(this, val, num_put_short_use_facet(
6882 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc));
6885 static basic_ostream_wchar* basic_ostream_print_bool(basic_ostream_wchar *this, MSVCP_bool val, const num_put *numput)
6887 basic_ios_wchar *base = basic_ostream_wchar_get_basic_ios(this);
6888 int state = IOSTATE_goodbit;
6890 TRACE("(%p %x)\n", this, val);
6892 if(basic_ostream_wchar_sentry_create(this)) {
6893 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
6894 ostreambuf_iterator_wchar dest = {0, strbuf};
6896 num_put_wchar_put_bool(numput, &dest, dest, &base->base, basic_ios_wchar_fill_get(base), val);
6898 basic_ostream_wchar_sentry_destroy(this);
6900 basic_ios_wchar_setstate(base, state);
6904 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@_N@Z */
6905 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@_N@Z */
6906 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_bool, 8)
6907 basic_ostream_wchar* __thiscall basic_ostream_wchar_print_bool(basic_ostream_wchar *this, MSVCP_bool val)
6909 return basic_ostream_print_bool(this, val, num_put_wchar_use_facet(
6910 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc));
6913 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@_N@Z */
6914 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@_N@Z */
6915 DEFINE_THISCALL_WRAPPER(basic_ostream_short_print_bool, 8)
6916 basic_ostream_wchar* __thiscall basic_ostream_short_print_bool(basic_ostream_wchar *this, MSVCP_bool val)
6918 return basic_ostream_print_bool(this, val, num_put_short_use_facet(
6919 basic_ios_wchar_rdbuf_get(basic_ostream_wchar_get_basic_ios(this))->loc));
6922 /* ?endl@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AAV21@@Z */
6923 /* ?endl@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@AEAV21@@Z */
6924 /* ?endl@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@1@AAV21@@Z */
6925 /* ?endl@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@1@AEAV21@@Z */
6926 basic_ostream_wchar* __cdecl basic_ostream_wchar_endl(basic_ostream_wchar *ostr)
6928 TRACE("(%p)\n", ostr);
6930 basic_ostream_wchar_put(ostr, '\n');
6931 basic_ostream_wchar_flush(ostr);
6935 /* ??$?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 */
6936 /* ??$?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 */
6937 /* ??$?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 */
6938 /* ??$?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 */
6939 basic_ostream_wchar* __cdecl basic_ostream_wchar_print_bstr(basic_ostream_wchar *ostr, const basic_string_wchar *str)
6941 basic_ios_wchar *base = basic_ostream_wchar_get_basic_ios(ostr);
6942 IOSB_iostate state = IOSTATE_goodbit;
6944 TRACE("(%p %p)\n", ostr, str);
6946 if(basic_ostream_wchar_sentry_create(ostr)) {
6947 MSVCP_size_t len = MSVCP_basic_string_wchar_length(str);
6948 streamsize pad = (base->base.wide>len ? base->base.wide-len : 0);
6950 if((base->base.fmtfl & FMTFLAG_adjustfield) != FMTFLAG_left) {
6951 for(; pad!=0; pad--) {
6952 if(basic_streambuf_wchar_sputc(base->strbuf, base->fillch) == WEOF) {
6953 state = IOSTATE_badbit;
6959 if(state == IOSTATE_goodbit) {
6960 if(basic_streambuf_wchar_sputn(base->strbuf, MSVCP_basic_string_wchar_c_str(str), len) != len)
6961 state = IOSTATE_badbit;
6964 if(state == IOSTATE_goodbit) {
6965 for(; pad!=0; pad--) {
6966 if(basic_streambuf_wchar_sputc(base->strbuf, base->fillch) == WEOF) {
6967 state = IOSTATE_badbit;
6973 base->base.wide = 0;
6975 state = IOSTATE_badbit;
6977 basic_ostream_wchar_sentry_destroy(ostr);
6979 basic_ios_wchar_setstate(base, state);
6983 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AAV10@_W@Z */
6984 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AEAV10@_W@Z */
6985 /* ??$?6GU?$char_traits@G@std@@@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@0@AAV10@G@Z */
6986 /* ??$?6GU?$char_traits@G@std@@@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@0@AEAV10@G@Z */
6987 basic_ostream_wchar* __cdecl basic_ostream_wchar_print_ch(basic_ostream_wchar *ostr, wchar_t ch)
6989 basic_ios_wchar *base = basic_ostream_wchar_get_basic_ios(ostr);
6990 IOSB_iostate state = IOSTATE_goodbit;
6992 TRACE("(%p %d)\n", ostr, ch);
6994 if(basic_ostream_wchar_sentry_create(ostr)) {
6995 streamsize pad = (base->base.wide>1 ? base->base.wide-1 : 0);
6997 if((base->base.fmtfl & FMTFLAG_adjustfield) != FMTFLAG_left) {
6998 for(; pad!=0; pad--) {
6999 if(basic_streambuf_wchar_sputc(base->strbuf, base->fillch) == WEOF) {
7000 state = IOSTATE_badbit;
7006 if(state == IOSTATE_goodbit) {
7007 if(basic_streambuf_wchar_sputc(base->strbuf, ch) == WEOF)
7008 state = IOSTATE_badbit;
7011 if(state == IOSTATE_goodbit) {
7012 for(; pad!=0; pad--) {
7013 if(basic_streambuf_wchar_sputc(base->strbuf, base->fillch) == WEOF) {
7014 state = IOSTATE_badbit;
7020 base->base.wide = 0;
7022 state = IOSTATE_badbit;
7024 basic_ostream_wchar_sentry_destroy(ostr);
7026 basic_ios_wchar_setstate(base, state);
7030 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AAV10@PB_W@Z */
7031 /* ??$?6_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_ostream@_WU?$char_traits@_W@std@@@0@AEAV10@PEB_W@Z */
7032 /* ??$?6GU?$char_traits@G@std@@@std@@YAAAV?$basic_ostream@GU?$char_traits@G@std@@@0@AAV10@PBG@Z */
7033 /* ??$?6GU?$char_traits@G@std@@@std@@YAAEAV?$basic_ostream@GU?$char_traits@G@std@@@0@AEAV10@PEBG@Z */
7034 basic_ostream_wchar* __cdecl basic_ostream_wchar_print_str(basic_ostream_wchar *ostr, const wchar_t *str)
7036 basic_ios_wchar *base = basic_ostream_wchar_get_basic_ios(ostr);
7037 IOSB_iostate state = IOSTATE_goodbit;
7039 TRACE("(%p %s)\n", ostr, debugstr_w(str));
7041 if(basic_ostream_wchar_sentry_create(ostr)) {
7042 MSVCP_size_t len = wcslen(str);
7043 streamsize pad = (base->base.wide>len ? base->base.wide-len : 0);
7045 if((base->base.fmtfl & FMTFLAG_adjustfield) != FMTFLAG_left) {
7046 for(; pad!=0; pad--) {
7047 if(basic_streambuf_wchar_sputc(base->strbuf, base->fillch) == WEOF) {
7048 state = IOSTATE_badbit;
7054 if(state == IOSTATE_goodbit) {
7055 if(basic_streambuf_wchar_sputn(base->strbuf, str, len) != len)
7056 state = IOSTATE_badbit;
7059 if(state == IOSTATE_goodbit) {
7060 for(; pad!=0; pad--) {
7061 if(basic_streambuf_wchar_sputc(base->strbuf, base->fillch) == WEOF) {
7062 state = IOSTATE_badbit;
7068 base->base.wide = 0;
7070 state = IOSTATE_badbit;
7072 basic_ostream_wchar_sentry_destroy(ostr);
7074 basic_ios_wchar_setstate(base, state);
7078 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
7079 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
7080 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
7081 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
7082 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_func, 8)
7083 basic_ostream_wchar* __thiscall basic_ostream_wchar_print_func(basic_ostream_wchar *this,
7084 basic_ostream_wchar* (__cdecl *pfunc)(basic_ostream_wchar*))
7086 TRACE("(%p %p)\n", this, pfunc);
7091 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AAV21@@Z@Z */
7092 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AEAV21@@Z@Z */
7093 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@GU?$char_traits@G@std@@@1@AAV21@@Z@Z */
7094 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@GU?$char_traits@G@std@@@1@AEAV21@@Z@Z */
7095 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_func_basic_ios, 8)
7096 basic_ostream_wchar* __thiscall basic_ostream_wchar_print_func_basic_ios(basic_ostream_wchar *this,
7097 basic_ios_wchar* (__cdecl *pfunc)(basic_ios_wchar*))
7099 TRACE("(%p %p)\n", this, pfunc);
7100 pfunc(basic_ostream_wchar_get_basic_ios(this));
7104 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
7105 /* ??6?$basic_ostream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
7106 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
7107 /* ??6?$basic_ostream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
7108 DEFINE_THISCALL_WRAPPER(basic_ostream_wchar_print_func_ios_base, 8)
7109 basic_ostream_wchar* __thiscall basic_ostream_wchar_print_func_ios_base(
7110 basic_ostream_wchar *this, ios_base* (__cdecl *pfunc)(ios_base*))
7112 TRACE("(%p %p)\n", this, pfunc);
7113 pfunc(&basic_ostream_wchar_get_basic_ios(this)->base);
7117 /* Caution: basic_istream uses virtual inheritance. */
7118 static inline basic_ios_char* basic_istream_char_get_basic_ios(basic_istream_char *this)
7120 return (basic_ios_char*)((char*)this+this->vbtable[1]);
7123 static inline basic_ios_char* basic_istream_char_to_basic_ios(basic_istream_char *ptr)
7125 return (basic_ios_char*)((char*)ptr+basic_istream_char_vbtable[1]);
7128 static inline basic_istream_char* basic_istream_char_from_basic_ios(basic_ios_char *ptr)
7130 return (basic_istream_char*)((char*)ptr-basic_istream_char_vbtable[1]);
7133 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N1@Z */
7134 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N1@Z */
7135 DEFINE_THISCALL_WRAPPER(basic_istream_char_ctor_init, 20)
7136 basic_istream_char* __thiscall basic_istream_char_ctor_init(basic_istream_char *this, basic_streambuf_char *strbuf, MSVCP_bool isstd, MSVCP_bool noinit, MSVCP_bool virt_init)
7138 basic_ios_char *base;
7140 TRACE("(%p %p %d %d %d)\n", this, strbuf, isstd, noinit, virt_init);
7143 this->vbtable = basic_istream_char_vbtable;
7144 base = basic_istream_char_get_basic_ios(this);
7145 basic_ios_char_ctor(base);
7147 base = basic_istream_char_get_basic_ios(this);
7150 base->base.vtable = &MSVCP_basic_istream_char_vtable;
7153 basic_ios_char_init(base, strbuf, isstd);
7157 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z */
7158 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z */
7159 DEFINE_THISCALL_WRAPPER(basic_istream_char_ctor, 16)
7160 basic_istream_char* __thiscall basic_istream_char_ctor(basic_istream_char *this, basic_streambuf_char *strbuf, MSVCP_bool isstd, MSVCP_bool virt_init)
7162 return basic_istream_char_ctor_init(this, strbuf, isstd, FALSE, virt_init);
7165 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QAE@W4_Uninitialized@1@@Z */
7166 /* ??0?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
7167 DEFINE_THISCALL_WRAPPER(basic_istream_char_ctor_uninitialized, 12)
7168 basic_istream_char* __thiscall basic_istream_char_ctor_uninitialized(basic_istream_char *this, int uninitialized, MSVCP_bool virt_init)
7170 basic_ios_char *base;
7172 TRACE("(%p %d %d)\n", this, uninitialized, virt_init);
7175 this->vbtable = basic_istream_char_vbtable;
7176 base = basic_istream_char_get_basic_ios(this);
7177 basic_ios_char_ctor(base);
7179 base = basic_istream_char_get_basic_ios(this);
7182 base->base.vtable = &MSVCP_basic_istream_char_vtable;
7183 ios_base_Addstd(&base->base);
7187 /* ??1?$basic_istream@DU?$char_traits@D@std@@@std@@UAE@XZ */
7188 /* ??1?$basic_istream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
7189 DEFINE_THISCALL_WRAPPER(basic_istream_char_dtor, 4)
7190 void __thiscall basic_istream_char_dtor(basic_ios_char *base)
7192 basic_istream_char *this = basic_istream_char_from_basic_ios(base);
7194 /* don't destroy virtual base here */
7195 TRACE("(%p)\n", this);
7198 /* ??_D?$basic_istream@DU?$char_traits@D@std@@@std@@QAEXXZ */
7199 /* ??_D?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
7200 DEFINE_THISCALL_WRAPPER(basic_istream_char_vbase_dtor, 4)
7201 void __thiscall basic_istream_char_vbase_dtor(basic_istream_char *this)
7203 TRACE("(%p)\n", this);
7204 basic_istream_char_dtor(basic_istream_char_to_basic_ios(this));
7205 basic_ios_char_dtor(basic_istream_char_get_basic_ios(this));
7208 DEFINE_THISCALL_WRAPPER(basic_istream_char_vector_dtor, 8)
7209 basic_istream_char* __thiscall basic_istream_char_vector_dtor(basic_ios_char *base, unsigned int flags)
7211 basic_istream_char *this = basic_istream_char_from_basic_ios(base);
7213 TRACE("(%p %x)\n", this, flags);
7216 /* we have an array, with the number of elements stored before the first object */
7217 INT_PTR i, *ptr = (INT_PTR *)this-1;
7219 for(i=*ptr-1; i>=0; i--)
7220 basic_istream_char_vbase_dtor(this+i);
7221 MSVCRT_operator_delete(ptr);
7223 basic_istream_char_vbase_dtor(this);
7225 MSVCRT_operator_delete(this);
7231 /* ?_Ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QAE_N_N@Z */
7232 /* ?_Ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_N_N@Z */
7233 DEFINE_THISCALL_WRAPPER(basic_istream_char__Ipfx, 8)
7234 MSVCP_bool __thiscall basic_istream_char__Ipfx(basic_istream_char *this, MSVCP_bool noskip)
7236 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
7238 TRACE("(%p %d)\n", this, noskip);
7240 if(!ios_base_good(&base->base)) {
7241 basic_ios_char_setstate(base, IOSTATE_failbit);
7245 if(basic_ios_char_tie_get(base))
7246 basic_ostream_char_flush(basic_ios_char_tie_get(base));
7248 if(!noskip && (ios_base_flags_get(&base->base) & FMTFLAG_skipws)) {
7249 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
7250 const ctype_char *ctype = ctype_char_use_facet(base->strbuf->loc);
7253 for(ch = basic_streambuf_char_sgetc(strbuf); ;
7254 ch = basic_streambuf_char_snextc(strbuf)) {
7256 basic_ios_char_setstate(base, IOSTATE_eofbit);
7260 if(!ctype_char_is_ch(ctype, _SPACE|_BLANK, ch))
7268 /* ?ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QAE_N_N@Z */
7269 /* ?ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_N_N@Z */
7270 DEFINE_THISCALL_WRAPPER(basic_istream_char_ipfx, 8)
7271 MSVCP_bool __thiscall basic_istream_char_ipfx(basic_istream_char *this, MSVCP_bool noskip)
7273 return basic_istream_char__Ipfx(this, noskip);
7276 /* ?isfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEXXZ */
7277 /* ?isfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
7278 DEFINE_THISCALL_WRAPPER(basic_istream_char_isfx, 4)
7279 void __thiscall basic_istream_char_isfx(basic_istream_char *this)
7281 TRACE("(%p)\n", this);
7284 static BOOL basic_istream_char_sentry_create(basic_istream_char *istr, MSVCP_bool noskip)
7286 basic_ios_char *base = basic_istream_char_get_basic_ios(istr);
7288 if(basic_ios_char_rdbuf_get(base))
7289 basic_streambuf_char__Lock(base->strbuf);
7291 return basic_istream_char_ipfx(istr, noskip);
7294 static void basic_istream_char_sentry_destroy(basic_istream_char *istr)
7296 basic_ios_char *base = basic_istream_char_get_basic_ios(istr);
7298 if(basic_ios_char_rdbuf_get(base))
7299 basic_streambuf_char__Unlock(base->strbuf);
7302 /* ?gcount@?$basic_istream@DU?$char_traits@D@std@@@std@@QBEHXZ */
7303 /* ?gcount@?$basic_istream@DU?$char_traits@D@std@@@std@@QEBA_JXZ */
7304 DEFINE_THISCALL_WRAPPER(basic_istream_char_gcount, 4)
7305 int __thiscall basic_istream_char_gcount(const basic_istream_char *this)
7307 TRACE("(%p)\n", this);
7311 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHXZ */
7312 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAHXZ */
7313 DEFINE_THISCALL_WRAPPER(basic_istream_char_get, 4)
7314 int __thiscall basic_istream_char_get(basic_istream_char *this)
7316 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
7319 TRACE("(%p)\n", this);
7323 if(!basic_istream_char_sentry_create(this, TRUE)) {
7324 basic_istream_char_sentry_destroy(this);
7328 ret = basic_streambuf_char_sbumpc(basic_ios_char_rdbuf_get(base));
7329 basic_istream_char_sentry_destroy(this);
7331 basic_ios_char_setstate(base, IOSTATE_eofbit|IOSTATE_failbit);
7338 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@AAD@Z */
7339 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEAD@Z */
7340 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_ch, 8)
7341 basic_istream_char* __thiscall basic_istream_char_get_ch(basic_istream_char *this, char *ch)
7345 TRACE("(%p %p)\n", this, ch);
7347 ret = basic_istream_char_get(this);
7353 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADHD@Z */
7354 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_JD@Z */
7355 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str_delim, 16)
7356 basic_istream_char* __thiscall basic_istream_char_get_str_delim(basic_istream_char *this, char *str, streamsize count, char delim)
7358 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
7361 TRACE("(%p %p %ld %c)\n", this, str, count, delim);
7365 if(basic_istream_char_sentry_create(this, TRUE)) {
7366 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
7368 for(ch = basic_streambuf_char_sgetc(strbuf); count>1;
7369 ch = basic_streambuf_char_snextc(strbuf)) {
7370 if(ch==EOF || ch==delim)
7378 basic_istream_char_sentry_destroy(this);
7380 basic_ios_char_setstate(base, (!this->count ? IOSTATE_failbit : IOSTATE_goodbit) |
7381 (ch==EOF ? IOSTATE_eofbit : IOSTATE_goodbit));
7387 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADH@Z */
7388 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z */
7389 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_str, 12)
7390 basic_istream_char* __thiscall basic_istream_char_get_str(basic_istream_char *this, char *str, streamsize count)
7392 return basic_istream_char_get_str_delim(this, str, count, '\n');
7395 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@AAV?$basic_streambuf@DU?$char_traits@D@std@@@2@D@Z */
7396 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@D@Z */
7397 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_streambuf_delim, 12)
7398 basic_istream_char* __thiscall basic_istream_char_get_streambuf_delim(basic_istream_char *this, basic_streambuf_char *strbuf, char delim)
7400 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
7403 TRACE("(%p %p %c)\n", this, strbuf, delim);
7407 if(basic_istream_char_sentry_create(this, TRUE)) {
7408 basic_streambuf_char *strbuf_read = basic_ios_char_rdbuf_get(base);
7410 for(ch = basic_streambuf_char_sgetc(strbuf_read); ;
7411 ch = basic_streambuf_char_snextc(strbuf_read)) {
7412 if(ch==EOF || ch==delim)
7415 if(basic_streambuf_char_sputc(strbuf, ch) == EOF)
7420 basic_istream_char_sentry_destroy(this);
7422 basic_ios_char_setstate(base, (!this->count ? IOSTATE_failbit : IOSTATE_goodbit) |
7423 (ch==EOF ? IOSTATE_eofbit : IOSTATE_goodbit));
7427 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@AAV?$basic_streambuf@DU?$char_traits@D@std@@@2@@Z */
7428 /* ?get@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@@Z */
7429 DEFINE_THISCALL_WRAPPER(basic_istream_char_get_streambuf, 8)
7430 basic_istream_char* __thiscall basic_istream_char_get_streambuf(basic_istream_char *this, basic_streambuf_char *strbuf)
7432 return basic_istream_char_get_streambuf_delim(this, strbuf, '\n');
7435 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADHD@Z */
7436 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_JD@Z */
7437 DEFINE_THISCALL_WRAPPER(basic_istream_char_getline_delim, 16)
7438 basic_istream_char* __thiscall basic_istream_char_getline_delim(basic_istream_char *this, char *str, streamsize count, char delim)
7440 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
7443 TRACE("(%p %p %ld %c)\n", this, str, count, delim);
7447 if(basic_istream_char_sentry_create(this, TRUE) && count>0) {
7448 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
7451 ch = basic_streambuf_char_sbumpc(strbuf);
7453 if(ch==EOF || ch==delim)
7463 else if(ch != EOF) {
7464 ch = basic_streambuf_char_sgetc(strbuf);
7467 basic_streambuf_char__Gninc(strbuf);
7472 basic_istream_char_sentry_destroy(this);
7474 basic_ios_char_setstate(base, (ch==EOF ? IOSTATE_eofbit : IOSTATE_goodbit) |
7475 (!this->count || (ch!=delim && ch!=EOF) ? IOSTATE_failbit : IOSTATE_goodbit));
7481 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADH@Z */
7482 /* ?getline@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z */
7483 DEFINE_THISCALL_WRAPPER(basic_istream_char_getline, 12)
7484 basic_istream_char* __thiscall basic_istream_char_getline(basic_istream_char *this, char *str, streamsize count)
7486 return basic_istream_char_getline_delim(this, str, count, '\n');
7489 /* ?ignore@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@HH@Z */
7490 /* ?ignore@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JH@Z */
7491 DEFINE_THISCALL_WRAPPER(basic_istream_char_ignore, 12)
7492 basic_istream_char* __thiscall basic_istream_char_ignore(basic_istream_char *this, streamsize count, int delim)
7494 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
7497 TRACE("(%p %ld %d)\n", this, count, delim);
7501 if(basic_istream_char_sentry_create(this, TRUE)) {
7502 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
7505 ch = basic_streambuf_char_sbumpc(strbuf);
7507 if(ch==EOF || ch==delim)
7511 if(count != INT_MAX)
7515 basic_istream_char_sentry_destroy(this);
7518 basic_ios_char_setstate(base, IOSTATE_eofbit);
7522 /* ?ws@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@1@AAV21@@Z */
7523 /* ?ws@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@1@AEAV21@@Z */
7524 basic_istream_char* __cdecl ws_basic_istream_char(basic_istream_char *istream)
7526 basic_ios_char *base = basic_istream_char_get_basic_ios(istream);
7529 TRACE("(%p)\n", istream);
7531 if(basic_istream_char_sentry_create(istream, TRUE)) {
7532 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
7533 const ctype_char *ctype = ctype_char_use_facet(strbuf->loc);
7535 for(ch = basic_streambuf_char_sgetc(strbuf); ctype_char_is_ch(ctype, _SPACE, ch);
7536 ch = basic_streambuf_char_snextc(strbuf)) {
7541 basic_istream_char_sentry_destroy(istream);
7544 basic_ios_char_setstate(base, IOSTATE_eofbit);
7548 /* ?peek@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHXZ */
7549 /* ?peek@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAHXZ */
7550 DEFINE_THISCALL_WRAPPER(basic_istream_char_peek, 4)
7551 int __thiscall basic_istream_char_peek(basic_istream_char *this)
7553 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
7556 TRACE("(%p)\n", this);
7560 if(basic_istream_char_sentry_create(this, TRUE))
7561 ret = basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base));
7562 basic_istream_char_sentry_destroy(this);
7566 /* ?_Read_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADIH@Z */
7567 /* ?_Read_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_K_J@Z */
7568 DEFINE_THISCALL_WRAPPER(basic_istream_char__Read_s, 16)
7569 basic_istream_char* __thiscall basic_istream_char__Read_s(basic_istream_char *this, char *str, MSVCP_size_t size, streamsize count)
7571 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
7572 IOSB_iostate state = IOSTATE_goodbit;
7574 TRACE("(%p %p %lu %ld)\n", this, str, size, count);
7576 if(basic_istream_char_sentry_create(this, TRUE)) {
7577 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
7579 this->count = basic_streambuf_char__Sgetn_s(strbuf, str, size, count);
7580 if(this->count != count)
7581 state |= IOSTATE_failbit | IOSTATE_eofbit;
7585 basic_istream_char_sentry_destroy(this);
7587 basic_ios_char_setstate(base, state);
7591 /* ?read@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@PADH@Z */
7592 /* ?read@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z */
7593 DEFINE_THISCALL_WRAPPER(basic_istream_char_read, 12)
7594 basic_istream_char* __thiscall basic_istream_char_read(basic_istream_char *this, char *str, streamsize count)
7596 return basic_istream_char__Read_s(this, str, count, count);
7599 /* ?_Readsome_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHPADIH@Z */
7600 /* ?_Readsome_s@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_K_J@Z */
7601 DEFINE_THISCALL_WRAPPER(basic_istream_char__Readsome_s, 16)
7602 streamsize __thiscall basic_istream_char__Readsome_s(basic_istream_char *this, char *str, MSVCP_size_t size, streamsize count)
7604 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
7605 IOSB_iostate state = IOSTATE_goodbit;
7607 TRACE("(%p %p %lu %ld)\n", this, str, size, count);
7611 if(basic_istream_char_sentry_create(this, TRUE)) {
7612 streamsize avail = basic_streambuf_char_in_avail(basic_ios_char_rdbuf_get(base));
7617 state |= IOSTATE_eofbit;
7619 basic_istream_char__Read_s(this, str, size, avail);
7621 state |= IOSTATE_failbit;
7623 basic_istream_char_sentry_destroy(this);
7625 basic_ios_char_setstate(base, state);
7629 /* ?readsome@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHPADH@Z */
7630 /* ?readsome@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_JPEAD_J@Z */
7631 DEFINE_THISCALL_WRAPPER(basic_istream_char_readsome, 12)
7632 streamsize __thiscall basic_istream_char_readsome(basic_istream_char *this, char *str, streamsize count)
7634 return basic_istream_char__Readsome_s(this, str, count, count);
7637 /* ?putback@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@D@Z */
7638 /* ?putback@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@D@Z */
7639 DEFINE_THISCALL_WRAPPER(basic_istream_char_putback, 8)
7640 basic_istream_char* __thiscall basic_istream_char_putback(basic_istream_char *this, char ch)
7642 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
7643 IOSB_iostate state = IOSTATE_goodbit;
7645 TRACE("(%p %c)\n", this, ch);
7649 if(basic_istream_char_sentry_create(this, TRUE)) {
7650 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
7652 if(!ios_base_good(&base->base))
7653 state |= IOSTATE_failbit;
7654 else if(!strbuf || basic_streambuf_char_sputbackc(strbuf, ch)==EOF)
7655 state |= IOSTATE_badbit;
7657 basic_istream_char_sentry_destroy(this);
7659 basic_ios_char_setstate(base, state);
7663 /* ?unget@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ */
7664 /* ?unget@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@XZ */
7665 DEFINE_THISCALL_WRAPPER(basic_istream_char_unget, 4)
7666 basic_istream_char* __thiscall basic_istream_char_unget(basic_istream_char *this)
7668 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
7669 IOSB_iostate state = IOSTATE_goodbit;
7671 TRACE("(%p)\n", this);
7675 if(basic_istream_char_sentry_create(this, TRUE)) {
7676 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
7678 if(!ios_base_good(&base->base))
7679 state |= IOSTATE_failbit;
7680 else if(!strbuf || basic_streambuf_char_sungetc(strbuf)==EOF)
7681 state |= IOSTATE_badbit;
7683 basic_istream_char_sentry_destroy(this);
7685 basic_ios_char_setstate(base, state);
7689 /* ?sync@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEHXZ */
7690 /* ?sync@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAHXZ */
7691 DEFINE_THISCALL_WRAPPER(basic_istream_char_sync, 4)
7692 int __thiscall basic_istream_char_sync(basic_istream_char *this)
7694 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
7695 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
7697 TRACE("(%p)\n", this);
7702 if(basic_istream_char_sentry_create(this, TRUE)) {
7703 if(basic_streambuf_char_pubsync(strbuf) != -1) {
7704 basic_istream_char_sentry_destroy(this);
7708 basic_istream_char_sentry_destroy(this);
7710 basic_ios_char_setstate(base, IOSTATE_badbit);
7714 /* ?tellg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAE?AV?$fpos@H@2@XZ */
7715 /* ?tellg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
7716 DEFINE_THISCALL_WRAPPER(basic_istream_char_tellg, 8)
7717 fpos_int* __thiscall basic_istream_char_tellg(basic_istream_char *this, fpos_int *ret)
7719 TRACE("(%p %p)\n", this, ret);
7721 if(basic_istream_char_sentry_create(this, TRUE)) {
7722 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
7723 if(!ios_base_fail(&base->base)) {
7724 basic_streambuf_char_pubseekoff(basic_ios_char_rdbuf_get(base),
7725 ret, 0, SEEKDIR_cur, OPENMODE_in);
7726 basic_istream_char_sentry_destroy(this);
7728 if(ret->off==0 && ret->pos==-1 && ret->state==0)
7729 basic_ios_char_setstate(base, IOSTATE_failbit);
7733 basic_istream_char_sentry_destroy(this);
7741 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@JH@Z */
7742 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@_JH@Z */
7743 DEFINE_THISCALL_WRAPPER(basic_istream_char_seekg, 12)
7744 basic_istream_char* __thiscall basic_istream_char_seekg(basic_istream_char *this, streamoff off, int dir)
7746 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
7748 TRACE("(%p %ld %d)\n", this, off, dir);
7750 if(basic_istream_char_sentry_create(this, TRUE)) {
7751 if(!ios_base_fail(&base->base)) {
7752 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
7755 basic_streambuf_char_pubseekoff(strbuf, &ret, off, dir, OPENMODE_in);
7756 basic_istream_char_sentry_destroy(this);
7758 if(ret.off==0 && ret.pos==-1 && ret.state==0)
7759 basic_ios_char_setstate(base, IOSTATE_failbit);
7761 basic_ios_char_clear(base, IOSTATE_goodbit);
7765 basic_istream_char_sentry_destroy(this);
7767 basic_ios_char_setstate(base, IOSTATE_failbit);
7771 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
7772 /* ?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
7773 DEFINE_THISCALL_WRAPPER(basic_istream_char_seekg_fpos, 28)
7774 basic_istream_char* __thiscall basic_istream_char_seekg_fpos(basic_istream_char *this, fpos_int pos)
7776 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
7778 TRACE("(%p %s)\n", this, debugstr_fpos_int(&pos));
7780 if(basic_istream_char_sentry_create(this, TRUE)) {
7781 if(!ios_base_fail(&base->base)) {
7782 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
7785 basic_streambuf_char_pubseekpos(strbuf, &ret, pos, OPENMODE_in);
7786 basic_istream_char_sentry_destroy(this);
7788 if(ret.off==0 && ret.pos==-1 && ret.state==0)
7789 basic_ios_char_setstate(base, IOSTATE_failbit);
7791 basic_ios_char_clear(base, IOSTATE_goodbit);
7795 basic_istream_char_sentry_destroy(this);
7797 basic_ios_char_setstate(base, IOSTATE_failbit);
7801 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAF@Z */
7802 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAF@Z */
7803 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_short, 8)
7804 basic_istream_char* __thiscall basic_istream_char_read_short(basic_istream_char *this, short *v)
7806 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
7807 int state = IOSTATE_goodbit;
7809 TRACE("(%p %p)\n", this, v);
7811 if(basic_istream_char_sentry_create(this, FALSE)) {
7812 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
7813 const num_get *numget = num_get_char_use_facet(strbuf->loc);
7814 istreambuf_iterator_char first={0}, last={0};
7817 first.strbuf = strbuf;
7818 num_get_char_get_long(numget, &last, first, last, &base->base, &state, &tmp);
7820 if(!(state&IOSTATE_failbit) && tmp==(LONG)((short)tmp))
7823 state |= IOSTATE_failbit;
7825 basic_istream_char_sentry_destroy(this);
7827 basic_ios_char_setstate(base, state);
7831 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAG@Z */
7832 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAG@Z */
7833 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ushort, 8)
7834 basic_istream_char* __thiscall basic_istream_char_read_ushort(basic_istream_char *this, unsigned short *v)
7836 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
7837 int state = IOSTATE_goodbit;
7839 TRACE("(%p %p)\n", this, v);
7841 if(basic_istream_char_sentry_create(this, FALSE)) {
7842 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
7843 const num_get *numget = num_get_char_use_facet(strbuf->loc);
7844 istreambuf_iterator_char first={0}, last={0};
7846 first.strbuf = strbuf;
7847 num_get_char_get_ushort(numget, &last, first, last, &base->base, &state, v);
7849 basic_istream_char_sentry_destroy(this);
7851 basic_ios_char_setstate(base, state);
7855 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAH@Z */
7856 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAH@Z */
7857 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_int, 8)
7858 basic_istream_char* __thiscall basic_istream_char_read_int(basic_istream_char *this, int *v)
7860 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
7861 int state = IOSTATE_goodbit;
7863 TRACE("(%p %p)\n", this, v);
7865 if(basic_istream_char_sentry_create(this, FALSE)) {
7866 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
7867 const num_get *numget = num_get_char_use_facet(strbuf->loc);
7868 istreambuf_iterator_char first={0}, last={0};
7870 first.strbuf = strbuf;
7871 num_get_char_get_long(numget, &last, first, last, &base->base, &state, v);
7873 basic_istream_char_sentry_destroy(this);
7875 basic_ios_char_setstate(base, state);
7879 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAI@Z */
7880 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAI@Z */
7881 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_uint, 8)
7882 basic_istream_char* __thiscall basic_istream_char_read_uint(basic_istream_char *this, unsigned int *v)
7884 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
7885 int state = IOSTATE_goodbit;
7887 TRACE("(%p %p)\n", this, v);
7889 if(basic_istream_char_sentry_create(this, FALSE)) {
7890 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
7891 const num_get *numget = num_get_char_use_facet(strbuf->loc);
7892 istreambuf_iterator_char first={0}, last={0};
7894 first.strbuf = strbuf;
7895 num_get_char_get_uint(numget, &last, first, last, &base->base, &state, v);
7897 basic_istream_char_sentry_destroy(this);
7899 basic_ios_char_setstate(base, state);
7903 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAJ@Z */
7904 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAJ@Z */
7905 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_long, 8)
7906 basic_istream_char* __thiscall basic_istream_char_read_long(basic_istream_char *this, LONG *v)
7908 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
7909 int state = IOSTATE_goodbit;
7911 TRACE("(%p %p)\n", this, v);
7913 if(basic_istream_char_sentry_create(this, FALSE)) {
7914 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
7915 const num_get *numget = num_get_char_use_facet(strbuf->loc);
7916 istreambuf_iterator_char first={0}, last={0};
7918 first.strbuf = strbuf;
7919 num_get_char_get_long(numget, &last, first, last, &base->base, &state, v);
7921 basic_istream_char_sentry_destroy(this);
7923 basic_ios_char_setstate(base, state);
7927 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAK@Z */
7928 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAK@Z */
7929 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ulong, 8)
7930 basic_istream_char* __thiscall basic_istream_char_read_ulong(basic_istream_char *this, ULONG *v)
7932 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
7933 int state = IOSTATE_goodbit;
7935 TRACE("(%p %p)\n", this, v);
7937 if(basic_istream_char_sentry_create(this, FALSE)) {
7938 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
7939 const num_get *numget = num_get_char_use_facet(strbuf->loc);
7940 istreambuf_iterator_char first={0}, last={0};
7942 first.strbuf = strbuf;
7943 num_get_char_get_ulong(numget, &last, first, last, &base->base, &state, v);
7945 basic_istream_char_sentry_destroy(this);
7947 basic_ios_char_setstate(base, state);
7951 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAM@Z */
7952 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAM@Z */
7953 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_float, 8)
7954 basic_istream_char* __thiscall basic_istream_char_read_float(basic_istream_char *this, float *v)
7956 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
7957 int state = IOSTATE_goodbit;
7959 TRACE("(%p %p)\n", this, v);
7961 if(basic_istream_char_sentry_create(this, FALSE)) {
7962 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
7963 const num_get *numget = num_get_char_use_facet(strbuf->loc);
7964 istreambuf_iterator_char first={0}, last={0};
7966 first.strbuf = strbuf;
7967 num_get_char_get_float(numget, &last, first, last, &base->base, &state, v);
7969 basic_istream_char_sentry_destroy(this);
7971 basic_ios_char_setstate(base, state);
7975 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAN@Z */
7976 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAN@Z */
7977 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_double, 8)
7978 basic_istream_char* __thiscall basic_istream_char_read_double(basic_istream_char *this, double *v)
7980 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
7981 int state = IOSTATE_goodbit;
7983 TRACE("(%p %p)\n", this, v);
7985 if(basic_istream_char_sentry_create(this, FALSE)) {
7986 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
7987 const num_get *numget = num_get_char_use_facet(strbuf->loc);
7988 istreambuf_iterator_char first={0}, last={0};
7990 first.strbuf = strbuf;
7991 num_get_char_get_double(numget, &last, first, last, &base->base, &state, v);
7993 basic_istream_char_sentry_destroy(this);
7995 basic_ios_char_setstate(base, state);
7999 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAO@Z */
8000 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAO@Z */
8001 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ldouble, 8)
8002 basic_istream_char* __thiscall basic_istream_char_read_ldouble(basic_istream_char *this, double *v)
8004 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
8005 int state = IOSTATE_goodbit;
8007 TRACE("(%p %p)\n", this, v);
8009 if(basic_istream_char_sentry_create(this, FALSE)) {
8010 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
8011 const num_get *numget = num_get_char_use_facet(strbuf->loc);
8012 istreambuf_iterator_char first={0}, last={0};
8014 first.strbuf = strbuf;
8015 num_get_char_get_ldouble(numget, &last, first, last, &base->base, &state, v);
8017 basic_istream_char_sentry_destroy(this);
8019 basic_ios_char_setstate(base, state);
8023 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAPAX@Z */
8024 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEAPEAX@Z */
8025 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_ptr, 8)
8026 basic_istream_char* __thiscall basic_istream_char_read_ptr(basic_istream_char *this, void **v)
8028 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
8029 int state = IOSTATE_goodbit;
8031 TRACE("(%p %p)\n", this, v);
8033 if(basic_istream_char_sentry_create(this, FALSE)) {
8034 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
8035 const num_get *numget = num_get_char_use_facet(strbuf->loc);
8036 istreambuf_iterator_char first={0}, last={0};
8038 first.strbuf = strbuf;
8039 num_get_char_get_void(numget, &last, first, last, &base->base, &state, v);
8041 basic_istream_char_sentry_destroy(this);
8043 basic_ios_char_setstate(base, state);
8047 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AA_J@Z */
8048 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEA_J@Z */
8049 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_int64, 8)
8050 basic_istream_char* __thiscall basic_istream_char_read_int64(basic_istream_char *this, __int64 *v)
8052 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
8053 int state = IOSTATE_goodbit;
8055 TRACE("(%p %p)\n", this, v);
8057 if(basic_istream_char_sentry_create(this, FALSE)) {
8058 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
8059 const num_get *numget = num_get_char_use_facet(strbuf->loc);
8060 istreambuf_iterator_char first={0}, last={0};
8062 first.strbuf = strbuf;
8063 num_get_char_get_int64(numget, &last, first, last, &base->base, &state, v);
8065 basic_istream_char_sentry_destroy(this);
8067 basic_ios_char_setstate(base, state);
8071 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AA_K@Z */
8072 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEA_K@Z */
8073 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_uint64, 8)
8074 basic_istream_char* __thiscall basic_istream_char_read_uint64(basic_istream_char *this, unsigned __int64 *v)
8076 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
8077 int state = IOSTATE_goodbit;
8079 TRACE("(%p %p)\n", this, v);
8081 if(basic_istream_char_sentry_create(this, FALSE)) {
8082 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
8083 const num_get *numget = num_get_char_use_facet(strbuf->loc);
8084 istreambuf_iterator_char first={0}, last={0};
8086 first.strbuf = strbuf;
8087 num_get_char_get_uint64(numget, &last, first, last, &base->base, &state, v);
8089 basic_istream_char_sentry_destroy(this);
8091 basic_ios_char_setstate(base, state);
8095 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AA_N@Z */
8096 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@AEA_N@Z */
8097 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_bool, 8)
8098 basic_istream_char* __thiscall basic_istream_char_read_bool(basic_istream_char *this, MSVCP_bool *v)
8100 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
8101 int state = IOSTATE_goodbit;
8103 TRACE("(%p %p)\n", this, v);
8105 if(basic_istream_char_sentry_create(this, FALSE)) {
8106 basic_streambuf_char *strbuf = basic_ios_char_rdbuf_get(base);
8107 const num_get *numget = num_get_char_use_facet(strbuf->loc);
8108 istreambuf_iterator_char first={0}, last={0};
8110 first.strbuf = strbuf;
8111 num_get_char_get_bool(numget, &last, first, last, &base->base, &state, v);
8113 basic_istream_char_sentry_destroy(this);
8115 basic_ios_char_setstate(base, state);
8119 /* ??$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 */
8120 /* ??$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 */
8121 basic_istream_char* __cdecl basic_istream_char_getline_bstr_delim(
8122 basic_istream_char *istream, basic_string_char *str, char delim)
8124 IOSB_iostate state = IOSTATE_failbit;
8127 TRACE("(%p %p %c)\n", istream, str, delim);
8129 if(basic_istream_char_sentry_create(istream, TRUE)) {
8130 MSVCP_basic_string_char_clear(str);
8132 c = basic_istream_char_get(istream);
8134 state = IOSTATE_goodbit;
8136 for(; c!=delim && c!=EOF; c = basic_istream_char_get(istream)) {
8137 state = IOSTATE_goodbit;
8138 MSVCP_basic_string_char_append_ch(str, c);
8141 basic_istream_char_sentry_destroy(istream);
8143 basic_ios_char_setstate(basic_istream_char_get_basic_ios(istream),
8144 state | (c==EOF ? IOSTATE_eofbit : IOSTATE_goodbit));
8148 /* ??$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 */
8149 /* ??$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 */
8150 basic_istream_char* __cdecl basic_istream_char_getline_bstr(
8151 basic_istream_char *istream, basic_string_char *str)
8153 return basic_istream_char_getline_bstr_delim(istream, str, '\n');
8156 /* ??$?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 */
8157 /* ??$?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 */
8158 basic_istream_char* __cdecl basic_istream_char_read_bstr(
8159 basic_istream_char *istream, basic_string_char *str)
8161 basic_ios_char *base = basic_istream_char_get_basic_ios(istream);
8162 IOSB_iostate state = IOSTATE_failbit;
8165 TRACE("(%p %p)\n", istream, str);
8167 if(basic_istream_char_sentry_create(istream, FALSE)) {
8168 const ctype_char *ctype = ctype_char_use_facet(base->strbuf->loc);
8169 MSVCP_size_t count = ios_base_width_get(&base->base);
8174 MSVCP_basic_string_char_clear(str);
8176 for(c = basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base));
8177 c!=EOF && !ctype_char_is_ch(ctype, _SPACE|_BLANK, c) && count>0;
8178 c = basic_streambuf_char_snextc(basic_ios_char_rdbuf_get(base)), count--) {
8179 state = IOSTATE_goodbit;
8180 MSVCP_basic_string_char_append_ch(str, c);
8183 basic_istream_char_sentry_destroy(istream);
8185 ios_base_width_set(&base->base, 0);
8186 basic_ios_char_setstate(base, state | (c==EOF ? IOSTATE_eofbit : IOSTATE_goodbit));
8190 /* ??$?5DU?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@PAD@Z */
8191 /* ??$?5DU?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@PEAD@Z */
8192 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@PAC@Z */
8193 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@PEAC@Z */
8194 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@PAE@Z */
8195 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@PEAE@Z */
8196 basic_istream_char* __cdecl basic_istream_char_read_str(basic_istream_char *istream, char *str)
8198 basic_ios_char *base = basic_istream_char_get_basic_ios(istream);
8199 IOSB_iostate state = IOSTATE_failbit;
8202 TRACE("(%p %p)\n", istream, str);
8204 if(basic_istream_char_sentry_create(istream, FALSE)) {
8205 const ctype_char *ctype = ctype_char_use_facet(base->strbuf->loc);
8206 MSVCP_size_t count = ios_base_width_get(&base->base)-1;
8208 for(c = basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base));
8209 c!=EOF && !ctype_char_is_ch(ctype, _SPACE|_BLANK, c) && count>0;
8210 c = basic_streambuf_char_snextc(basic_ios_char_rdbuf_get(base)), count--) {
8211 state = IOSTATE_goodbit;
8215 basic_istream_char_sentry_destroy(istream);
8218 ios_base_width_set(&base->base, 0);
8219 basic_ios_char_setstate(base, state | (c==EOF ? IOSTATE_eofbit : IOSTATE_goodbit));
8223 /* ??$?5DU?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAD@Z */
8224 /* ??$?5DU?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAD@Z */
8225 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAC@Z */
8226 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAC@Z */
8227 /* ??$?5U?$char_traits@D@std@@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAE@Z */
8228 /* ??$?5U?$char_traits@D@std@@@std@@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@0@AEAV10@AEAE@Z */
8229 basic_istream_char* __cdecl basic_istream_char_read_ch(basic_istream_char *istream, char *ch)
8231 IOSB_iostate state = IOSTATE_failbit;
8234 TRACE("(%p %p)\n", istream, ch);
8236 if(basic_istream_char_sentry_create(istream, FALSE)) {
8237 c = basic_streambuf_char_sbumpc(basic_ios_char_rdbuf_get(
8238 basic_istream_char_get_basic_ios(istream)));
8240 state = IOSTATE_goodbit;
8244 basic_istream_char_sentry_destroy(istream);
8246 basic_ios_char_setstate(basic_istream_char_get_basic_ios(istream),
8247 state | (c==EOF ? IOSTATE_eofbit : IOSTATE_goodbit));
8251 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
8252 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
8253 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_streambuf, 8)
8254 basic_istream_char* __thiscall basic_istream_char_read_streambuf(
8255 basic_istream_char *this, basic_streambuf_char *streambuf)
8257 basic_ios_char *base = basic_istream_char_get_basic_ios(this);
8258 IOSB_iostate state = IOSTATE_failbit;
8261 TRACE("(%p %p)\n", this, streambuf);
8263 if(basic_istream_char_sentry_create(this, FALSE)) {
8264 for(c = basic_streambuf_char_sgetc(basic_ios_char_rdbuf_get(base)); c!=EOF;
8265 c = basic_streambuf_char_snextc(basic_ios_char_rdbuf_get(base))) {
8266 state = IOSTATE_goodbit;
8267 if(basic_streambuf_char_sputc(streambuf, c) == EOF)
8271 basic_istream_char_sentry_destroy(this);
8273 basic_ios_char_setstate(base, state | (c==EOF ? IOSTATE_eofbit : IOSTATE_goodbit));
8277 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
8278 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
8279 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_func, 8)
8280 basic_istream_char* __thiscall basic_istream_char_read_func(basic_istream_char *this,
8281 basic_istream_char* (__cdecl *pfunc)(basic_istream_char*))
8283 TRACE("(%p %p)\n", this, pfunc);
8288 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@DU?$char_traits@D@std@@@1@AAV21@@Z@Z */
8289 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@DU?$char_traits@D@std@@@1@AEAV21@@Z@Z */
8290 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_func_basic_ios, 8)
8291 basic_istream_char* __thiscall basic_istream_char_read_func_basic_ios(basic_istream_char *this,
8292 basic_ios_char* (__cdecl *pfunc)(basic_ios_char*))
8294 TRACE("(%p %p)\n", this, pfunc);
8295 pfunc(basic_istream_char_get_basic_ios(this));
8299 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
8300 /* ??5?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
8301 DEFINE_THISCALL_WRAPPER(basic_istream_char_read_func_ios_base, 8)
8302 basic_istream_char* __thiscall basic_istream_char_read_func_ios_base(basic_istream_char *this,
8303 ios_base* (__cdecl *pfunc)(ios_base*))
8305 TRACE("(%p %p)\n", this, pfunc);
8306 pfunc(&basic_istream_char_get_basic_ios(this)->base);
8310 /* Caution: basic_istream uses virtual inheritance. */
8311 static inline basic_ios_wchar* basic_istream_wchar_get_basic_ios(basic_istream_wchar *this)
8313 return (basic_ios_wchar*)((char*)this+this->vbtable[1]);
8316 static inline basic_ios_wchar* basic_istream_wchar_to_basic_ios(basic_istream_wchar *ptr)
8318 return (basic_ios_wchar*)((char*)ptr+basic_istream_wchar_vbtable[1]);
8321 static inline basic_istream_wchar* basic_istream_wchar_from_basic_ios(basic_ios_wchar *ptr)
8323 return (basic_istream_wchar*)((char*)ptr-basic_istream_wchar_vbtable[1]);
8326 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N1@Z */
8327 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N1@Z */
8328 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ctor_init, 20)
8329 basic_istream_wchar* __thiscall basic_istream_wchar_ctor_init(basic_istream_wchar *this,
8330 basic_streambuf_wchar *strbuf, MSVCP_bool isstd, MSVCP_bool noinit, MSVCP_bool virt_init)
8332 basic_ios_wchar *base;
8334 TRACE("(%p %p %d %d %d)\n", this, strbuf, isstd, noinit, virt_init);
8337 this->vbtable = basic_istream_wchar_vbtable;
8338 base = basic_istream_wchar_get_basic_ios(this);
8339 basic_ios_wchar_ctor(base);
8341 base = basic_istream_wchar_get_basic_ios(this);
8344 base->base.vtable = &MSVCP_basic_istream_wchar_vtable;
8347 basic_ios_wchar_init(base, strbuf, isstd);
8351 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N1@Z */
8352 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N1@Z */
8353 DEFINE_THISCALL_WRAPPER(basic_istream_short_ctor_init, 20)
8354 basic_istream_wchar* __thiscall basic_istream_short_ctor_init(basic_istream_wchar *this,
8355 basic_streambuf_wchar *strbuf, MSVCP_bool isstd, MSVCP_bool noinit, MSVCP_bool virt_init)
8357 basic_istream_wchar_ctor_init(this, strbuf, isstd, noinit, virt_init);
8358 basic_istream_wchar_get_basic_ios(this)->base.vtable = &MSVCP_basic_istream_short_vtable;
8362 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N@Z */
8363 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@_N@Z */
8364 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ctor, 16)
8365 basic_istream_wchar* __thiscall basic_istream_wchar_ctor(basic_istream_wchar *this,
8366 basic_streambuf_wchar *strbuf, MSVCP_bool isstd, MSVCP_bool virt_init)
8368 return basic_istream_wchar_ctor_init(this, strbuf, isstd, FALSE, virt_init);
8371 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N@Z */
8372 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@_N@Z */
8373 DEFINE_THISCALL_WRAPPER(basic_istream_short_ctor, 16)
8374 basic_istream_wchar* __thiscall basic_istream_short_ctor(basic_istream_wchar *this,
8375 basic_streambuf_wchar *strbuf, MSVCP_bool isstd, MSVCP_bool virt_init)
8377 return basic_istream_short_ctor_init(this, strbuf, isstd, FALSE, virt_init);
8380 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE@W4_Uninitialized@1@@Z */
8381 /* ??0?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
8382 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ctor_uninitialized, 12)
8383 basic_istream_wchar* __thiscall basic_istream_wchar_ctor_uninitialized(
8384 basic_istream_wchar *this, int uninitialized, MSVCP_bool virt_init)
8386 basic_ios_wchar *base;
8388 TRACE("(%p %d %d)\n", this, uninitialized, virt_init);
8391 this->vbtable = basic_istream_wchar_vbtable;
8392 base = basic_istream_wchar_get_basic_ios(this);
8393 basic_ios_wchar_ctor(base);
8395 base = basic_istream_wchar_get_basic_ios(this);
8398 base->base.vtable = &MSVCP_basic_istream_wchar_vtable;
8399 ios_base_Addstd(&base->base);
8403 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QAE@W4_Uninitialized@1@@Z */
8404 /* ??0?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA@W4_Uninitialized@1@@Z */
8405 DEFINE_THISCALL_WRAPPER(basic_istream_short_ctor_uninitialized, 12)
8406 basic_istream_wchar* __thiscall basic_istream_short_ctor_uninitialized(
8407 basic_istream_wchar *this, int uninitialized, MSVCP_bool virt_init)
8409 basic_istream_wchar_ctor_uninitialized(this, uninitialized, virt_init);
8410 basic_istream_wchar_get_basic_ios(this)->base.vtable = &MSVCP_basic_istream_short_vtable;
8414 /* ??1?$basic_istream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
8415 /* ??1?$basic_istream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
8416 /* ??1?$basic_istream@GU?$char_traits@G@std@@@std@@UAE@XZ */
8417 /* ??1?$basic_istream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
8418 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_dtor, 4)
8419 void __thiscall basic_istream_wchar_dtor(basic_ios_wchar *base)
8421 basic_istream_wchar *this = basic_istream_wchar_from_basic_ios(base);
8423 /* don't destroy virtual base here */
8424 TRACE("(%p)\n", this);
8427 /* ??_D?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
8428 /* ??_D?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
8429 /* ??_D?$basic_istream@GU?$char_traits@G@std@@@std@@QAEXXZ */
8430 /* ??_D?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
8431 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_vbase_dtor, 4)
8432 void __thiscall basic_istream_wchar_vbase_dtor(basic_istream_wchar *this)
8434 TRACE("(%p)\n", this);
8435 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(this));
8436 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(this));
8439 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_vector_dtor, 8)
8440 basic_istream_wchar* __thiscall basic_istream_wchar_vector_dtor(basic_ios_wchar *base, unsigned int flags)
8442 basic_istream_wchar *this = basic_istream_wchar_from_basic_ios(base);
8444 TRACE("(%p %x)\n", this, flags);
8447 /* we have an array, with the number of elements stored before the first object */
8448 INT_PTR i, *ptr = (INT_PTR *)this-1;
8450 for(i=*ptr-1; i>=0; i--)
8451 basic_istream_wchar_vbase_dtor(this+i);
8452 MSVCRT_operator_delete(ptr);
8454 basic_istream_wchar_vbase_dtor(this);
8456 MSVCRT_operator_delete(this);
8462 /* ?_Ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE_N_N@Z */
8463 /* ?_Ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_N_N@Z */
8464 /* ?_Ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QAE_N_N@Z */
8465 /* ?_Ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_N_N@Z */
8466 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Ipfx, 8)
8467 MSVCP_bool __thiscall basic_istream_wchar__Ipfx(basic_istream_wchar *this, MSVCP_bool noskip)
8469 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
8471 TRACE("(%p %d)\n", this, noskip);
8473 if(!ios_base_good(&base->base)) {
8474 basic_ios_wchar_setstate(base, IOSTATE_failbit);
8478 if(basic_ios_wchar_tie_get(base))
8479 basic_ostream_wchar_flush(basic_ios_wchar_tie_get(base));
8481 if(!noskip && (ios_base_flags_get(&base->base) & FMTFLAG_skipws)) {
8482 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
8483 const ctype_wchar *ctype = ctype_wchar_use_facet(base->strbuf->loc);
8486 for(ch = basic_streambuf_wchar_sgetc(strbuf); ;
8487 ch = basic_streambuf_wchar_snextc(strbuf)) {
8489 basic_ios_wchar_setstate(base, IOSTATE_eofbit);
8493 if(!ctype_wchar_is_ch(ctype, _SPACE|_BLANK, ch))
8501 /* ?ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE_N_N@Z */
8502 /* ?ipfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_N_N@Z */
8503 /* ?ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QAE_N_N@Z */
8504 /* ?ipfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_N_N@Z */
8505 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ipfx, 8)
8506 MSVCP_bool __thiscall basic_istream_wchar_ipfx(basic_istream_wchar *this, MSVCP_bool noskip)
8508 return basic_istream_wchar__Ipfx(this, noskip);
8511 /* ?isfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
8512 /* ?isfx@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
8513 /* ?isfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEXXZ */
8514 /* ?isfx@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
8515 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_isfx, 4)
8516 void __thiscall basic_istream_wchar_isfx(basic_istream_wchar *this)
8518 TRACE("(%p)\n", this);
8521 static BOOL basic_istream_wchar_sentry_create(basic_istream_wchar *istr, MSVCP_bool noskip)
8523 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(istr);
8525 if(basic_ios_wchar_rdbuf_get(base))
8526 basic_streambuf_wchar__Lock(base->strbuf);
8528 return basic_istream_wchar_ipfx(istr, noskip);
8531 static void basic_istream_wchar_sentry_destroy(basic_istream_wchar *istr)
8533 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(istr);
8535 if(basic_ios_wchar_rdbuf_get(base))
8536 basic_streambuf_wchar__Unlock(base->strbuf);
8539 /* ?gcount@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QBEHXZ */
8540 /* ?gcount@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEBA_JXZ */
8541 /* ?gcount@?$basic_istream@GU?$char_traits@G@std@@@std@@QBEHXZ */
8542 /* ?gcount@?$basic_istream@GU?$char_traits@G@std@@@std@@QEBA_JXZ */
8543 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_gcount, 4)
8544 int __thiscall basic_istream_wchar_gcount(const basic_istream_wchar *this)
8546 TRACE("(%p)\n", this);
8550 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
8551 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
8552 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEGXZ */
8553 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAGXZ */
8554 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get, 4)
8555 unsigned short __thiscall basic_istream_wchar_get(basic_istream_wchar *this)
8557 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
8560 TRACE("(%p)\n", this);
8564 if(!basic_istream_wchar_sentry_create(this, TRUE)) {
8565 basic_istream_wchar_sentry_destroy(this);
8569 ret = basic_streambuf_wchar_sbumpc(basic_ios_wchar_rdbuf_get(base));
8570 basic_istream_wchar_sentry_destroy(this);
8572 basic_ios_wchar_setstate(base, IOSTATE_eofbit|IOSTATE_failbit);
8579 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@AA_W@Z */
8580 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEA_W@Z */
8581 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@AAG@Z */
8582 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEAG@Z */
8583 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_ch, 8)
8584 basic_istream_wchar* __thiscall basic_istream_wchar_get_ch(basic_istream_wchar *this, wchar_t *ch)
8588 TRACE("(%p %p)\n", this, ch);
8590 ret = basic_istream_wchar_get(this);
8596 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH_W@Z */
8597 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J_W@Z */
8598 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGHG@Z */
8599 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_JG@Z */
8600 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str_delim, 16)
8601 basic_istream_wchar* __thiscall basic_istream_wchar_get_str_delim(basic_istream_wchar *this, wchar_t *str, streamsize count, wchar_t delim)
8603 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
8604 unsigned short ch = delim;
8606 TRACE("(%p %p %ld %c)\n", this, str, count, delim);
8610 if(basic_istream_wchar_sentry_create(this, TRUE)) {
8611 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
8613 for(ch = basic_streambuf_wchar_sgetc(strbuf); count>1;
8614 ch = basic_streambuf_wchar_snextc(strbuf)) {
8615 if(ch==WEOF || ch==delim)
8623 basic_istream_wchar_sentry_destroy(this);
8625 basic_ios_wchar_setstate(base, (!this->count ? IOSTATE_failbit : IOSTATE_goodbit) |
8626 (ch==WEOF ? IOSTATE_eofbit : IOSTATE_goodbit));
8632 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH@Z */
8633 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J@Z */
8634 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGH@Z */
8635 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_J@Z */
8636 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_str, 12)
8637 basic_istream_wchar* __thiscall basic_istream_wchar_get_str(basic_istream_wchar *this, wchar_t *str, streamsize count)
8639 return basic_istream_wchar_get_str_delim(this, str, count, '\n');
8642 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@AAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_W@Z */
8643 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@_W@Z */
8644 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@AAV?$basic_streambuf@GU?$char_traits@G@std@@@2@G@Z */
8645 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@G@Z */
8646 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_streambuf_delim, 12)
8647 basic_istream_wchar* __thiscall basic_istream_wchar_get_streambuf_delim(basic_istream_wchar *this, basic_streambuf_wchar *strbuf, wchar_t delim)
8649 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
8650 unsigned short ch = delim;
8652 TRACE("(%p %p %c)\n", this, strbuf, delim);
8656 if(basic_istream_wchar_sentry_create(this, TRUE)) {
8657 basic_streambuf_wchar *strbuf_read = basic_ios_wchar_rdbuf_get(base);
8659 for(ch = basic_streambuf_wchar_sgetc(strbuf_read); ;
8660 ch = basic_streambuf_wchar_snextc(strbuf_read)) {
8661 if(ch==WEOF || ch==delim)
8664 if(basic_streambuf_wchar_sputc(strbuf, ch) == WEOF)
8669 basic_istream_wchar_sentry_destroy(this);
8671 basic_ios_wchar_setstate(base, (!this->count ? IOSTATE_failbit : IOSTATE_goodbit) |
8672 (ch==WEOF ? IOSTATE_eofbit : IOSTATE_goodbit));
8676 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@AAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@@Z */
8677 /* ?get@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@2@@Z */
8678 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@AAV?$basic_streambuf@GU?$char_traits@G@std@@@2@@Z */
8679 /* ?get@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@AEAV?$basic_streambuf@GU?$char_traits@G@std@@@2@@Z */
8680 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_get_streambuf, 8)
8681 basic_istream_wchar* __thiscall basic_istream_wchar_get_streambuf(basic_istream_wchar *this, basic_streambuf_wchar *strbuf)
8683 return basic_istream_wchar_get_streambuf_delim(this, strbuf, '\n');
8686 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH_W@Z */
8687 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J_W@Z */
8688 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGHG@Z */
8689 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_JG@Z */
8690 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline_delim, 16)
8691 basic_istream_wchar* __thiscall basic_istream_wchar_getline_delim(basic_istream_wchar *this, wchar_t *str, streamsize count, wchar_t delim)
8693 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
8694 unsigned short ch = delim;
8696 TRACE("(%p %p %ld %c)\n", this, str, count, delim);
8700 if(basic_istream_wchar_sentry_create(this, TRUE) && count>0) {
8701 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
8704 ch = basic_streambuf_wchar_sbumpc(strbuf);
8706 if(ch==WEOF || ch==delim)
8716 else if(ch != WEOF) {
8717 ch = basic_streambuf_wchar_sgetc(strbuf);
8720 basic_streambuf_wchar__Gninc(strbuf);
8725 basic_istream_wchar_sentry_destroy(this);
8727 basic_ios_wchar_setstate(base, (ch==WEOF ? IOSTATE_eofbit : IOSTATE_goodbit) |
8728 (!this->count || (ch!=delim && ch!=WEOF) ? IOSTATE_failbit : IOSTATE_goodbit));
8734 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH@Z */
8735 /* ?getline@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J@Z */
8736 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGH@Z */
8737 /* ?getline@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_J@Z */
8738 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_getline, 12)
8739 basic_istream_wchar* __thiscall basic_istream_wchar_getline(basic_istream_wchar *this, wchar_t *str, streamsize count)
8741 return basic_istream_wchar_getline_delim(this, str, count, '\n');
8744 /* ?ignore@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@HG@Z */
8745 /* ?ignore@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_JG@Z */
8746 /* ?ignore@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@HG@Z */
8747 /* ?ignore@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JG@Z */
8748 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_ignore, 12)
8749 basic_istream_wchar* __thiscall basic_istream_wchar_ignore(basic_istream_wchar *this, streamsize count, unsigned short delim)
8751 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
8752 unsigned short ch = delim;
8754 TRACE("(%p %ld %d)\n", this, count, delim);
8758 if(basic_istream_wchar_sentry_create(this, TRUE)) {
8759 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
8762 ch = basic_streambuf_wchar_sbumpc(strbuf);
8764 if(ch==WEOF || ch==delim)
8768 if(count != INT_MAX)
8772 basic_istream_wchar_sentry_destroy(this);
8775 basic_ios_wchar_setstate(base, IOSTATE_eofbit);
8779 /* ?ws@std@@YAAAV?$basic_istream@_WU?$char_traits@_W@std@@@1@AAV21@@Z */
8780 /* ?ws@std@@YAAEAV?$basic_istream@_WU?$char_traits@_W@std@@@1@AEAV21@@Z */
8781 /* ?ws@std@@YAAAV?$basic_istream@GU?$char_traits@G@std@@@1@AAV21@@Z */
8782 /* ?ws@std@@YAAEAV?$basic_istream@GU?$char_traits@G@std@@@1@AEAV21@@Z */
8783 basic_istream_wchar* __cdecl ws_basic_istream_wchar(basic_istream_wchar *istream)
8785 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(istream);
8786 unsigned short ch = '\n';
8788 TRACE("(%p)\n", istream);
8790 if(basic_istream_wchar_sentry_create(istream, TRUE)) {
8791 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
8792 const ctype_wchar *ctype = ctype_wchar_use_facet(strbuf->loc);
8794 for(ch = basic_streambuf_wchar_sgetc(strbuf); ctype_wchar_is_ch(ctype, _SPACE, ch);
8795 ch = basic_streambuf_wchar_snextc(strbuf)) {
8800 basic_istream_wchar_sentry_destroy(istream);
8803 basic_ios_wchar_setstate(base, IOSTATE_eofbit);
8807 /* ?peek@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEGXZ */
8808 /* ?peek@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAGXZ */
8809 /* ?peek@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEGXZ */
8810 /* ?peek@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAGXZ */
8811 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_peek, 4)
8812 unsigned short __thiscall basic_istream_wchar_peek(basic_istream_wchar *this)
8814 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
8815 unsigned short ret = WEOF;
8817 TRACE("(%p)\n", this);
8821 if(basic_istream_wchar_sentry_create(this, TRUE))
8822 ret = basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base));
8823 basic_istream_wchar_sentry_destroy(this);
8827 /* ?_Read_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WIH@Z */
8828 /* ?_Read_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_K_J@Z */
8829 /* ?_Read_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGIH@Z */
8830 /* ?_Read_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_K_J@Z */
8831 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Read_s, 16)
8832 basic_istream_wchar* __thiscall basic_istream_wchar__Read_s(basic_istream_wchar *this, wchar_t *str, MSVCP_size_t size, streamsize count)
8834 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
8835 IOSB_iostate state = IOSTATE_goodbit;
8837 TRACE("(%p %p %lu %ld)\n", this, str, size, count);
8839 if(basic_istream_wchar_sentry_create(this, TRUE)) {
8840 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
8842 this->count = basic_streambuf_wchar__Sgetn_s(strbuf, str, size, count);
8843 if(this->count != count)
8844 state |= IOSTATE_failbit | IOSTATE_eofbit;
8848 basic_istream_wchar_sentry_destroy(this);
8850 basic_ios_wchar_setstate(base, state);
8854 /* ?read@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@PA_WH@Z */
8855 /* ?read@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@PEA_W_J@Z */
8856 /* ?read@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@PAGH@Z */
8857 /* ?read@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@PEAG_J@Z */
8858 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read, 12)
8859 basic_istream_wchar* __thiscall basic_istream_wchar_read(basic_istream_wchar *this, wchar_t *str, streamsize count)
8861 return basic_istream_wchar__Read_s(this, str, count, count);
8864 /* ?_Readsome_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEHPA_WIH@Z */
8865 /* ?_Readsome_s@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_K_J@Z */
8866 /* ?_Readsome_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEHPAGIH@Z */
8867 /* ?_Readsome_s@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_K_J@Z */
8868 DEFINE_THISCALL_WRAPPER(basic_istream_wchar__Readsome_s, 16)
8869 streamsize __thiscall basic_istream_wchar__Readsome_s(basic_istream_wchar *this, wchar_t *str, MSVCP_size_t size, streamsize count)
8871 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
8872 IOSB_iostate state = IOSTATE_goodbit;
8874 TRACE("(%p %p %lu %ld)\n", this, str, size, count);
8878 if(basic_istream_wchar_sentry_create(this, TRUE)) {
8879 streamsize avail = basic_streambuf_wchar_in_avail(basic_ios_wchar_rdbuf_get(base));
8884 state |= IOSTATE_eofbit;
8886 basic_istream_wchar__Read_s(this, str, size, avail);
8888 state |= IOSTATE_failbit;
8890 basic_istream_wchar_sentry_destroy(this);
8892 basic_ios_wchar_setstate(base, state);
8896 /* ?readsome@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEHPA_WH@Z */
8897 /* ?readsome@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA_JPEA_W_J@Z */
8898 /* ?readsome@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEHPAGH@Z */
8899 /* ?readsome@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA_JPEAG_J@Z */
8900 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_readsome, 12)
8901 streamsize __thiscall basic_istream_wchar_readsome(basic_istream_wchar *this, wchar_t *str, streamsize count)
8903 return basic_istream_wchar__Readsome_s(this, str, count, count);
8906 /* ?putback@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@_W@Z */
8907 /* ?putback@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_W@Z */
8908 /* ?putback@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@G@Z */
8909 /* ?putback@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@G@Z */
8910 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_putback, 8)
8911 basic_istream_wchar* __thiscall basic_istream_wchar_putback(basic_istream_wchar *this, wchar_t ch)
8913 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
8914 IOSB_iostate state = IOSTATE_goodbit;
8916 TRACE("(%p %c)\n", this, ch);
8920 if(basic_istream_wchar_sentry_create(this, TRUE)) {
8921 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
8923 if(!ios_base_good(&base->base))
8924 state |= IOSTATE_failbit;
8925 else if(!strbuf || basic_streambuf_wchar_sputbackc(strbuf, ch)==WEOF)
8926 state |= IOSTATE_badbit;
8928 basic_istream_wchar_sentry_destroy(this);
8930 basic_ios_wchar_setstate(base, state);
8934 /* ?unget@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@XZ */
8935 /* ?unget@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@XZ */
8936 /* ?unget@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@XZ */
8937 /* ?unget@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@XZ */
8938 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_unget, 4)
8939 basic_istream_wchar* __thiscall basic_istream_wchar_unget(basic_istream_wchar *this)
8941 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
8942 IOSB_iostate state = IOSTATE_goodbit;
8944 TRACE("(%p)\n", this);
8948 if(basic_istream_wchar_sentry_create(this, TRUE)) {
8949 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
8951 if(!ios_base_good(&base->base))
8952 state |= IOSTATE_failbit;
8953 else if(!strbuf || basic_streambuf_wchar_sungetc(strbuf)==WEOF)
8954 state |= IOSTATE_badbit;
8956 basic_istream_wchar_sentry_destroy(this);
8958 basic_ios_wchar_setstate(base, state);
8962 /* ?sync@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEHXZ */
8963 /* ?sync@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAHXZ */
8964 /* ?sync@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEHXZ */
8965 /* ?sync@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAHXZ */
8966 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_sync, 4)
8967 int __thiscall basic_istream_wchar_sync(basic_istream_wchar *this)
8969 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
8970 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
8972 TRACE("(%p)\n", this);
8977 if(basic_istream_wchar_sentry_create(this, TRUE)) {
8978 if(basic_streambuf_wchar_pubsync(strbuf) != -1) {
8979 basic_istream_wchar_sentry_destroy(this);
8983 basic_istream_wchar_sentry_destroy(this);
8985 basic_ios_wchar_setstate(base, IOSTATE_badbit);
8989 /* ?tellg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAE?AV?$fpos@H@2@XZ */
8990 /* ?tellg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
8991 /* ?tellg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAE?AV?$fpos@H@2@XZ */
8992 /* ?tellg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAA?AV?$fpos@H@2@XZ */
8993 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_tellg, 8)
8994 fpos_int* __thiscall basic_istream_wchar_tellg(basic_istream_wchar *this, fpos_int *ret)
8996 TRACE("(%p %p)\n", this, ret);
8998 if(basic_istream_wchar_sentry_create(this, TRUE)) {
8999 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
9000 if(!ios_base_fail(&base->base)) {
9001 basic_streambuf_wchar_pubseekoff(basic_ios_wchar_rdbuf_get(base),
9002 ret, 0, SEEKDIR_cur, OPENMODE_in);
9003 basic_istream_wchar_sentry_destroy(this);
9005 if(ret->off==0 && ret->pos==-1 && ret->state==0)
9006 basic_ios_wchar_setstate(base, IOSTATE_failbit);
9010 basic_istream_wchar_sentry_destroy(this);
9018 /* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@JH@Z */
9019 /* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@_JH@Z */
9020 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@JH@Z */
9021 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@_JH@Z */
9022 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_seekg, 12)
9023 basic_istream_wchar* __thiscall basic_istream_wchar_seekg(basic_istream_wchar *this, streamoff off, int dir)
9025 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
9027 TRACE("(%p %ld %d)\n", this, off, dir);
9029 if(basic_istream_wchar_sentry_create(this, TRUE)) {
9030 if(!ios_base_fail(&base->base)) {
9031 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
9034 basic_streambuf_wchar_pubseekoff(strbuf, &ret, off, dir, OPENMODE_in);
9035 basic_istream_wchar_sentry_destroy(this);
9037 if(ret.off==0 && ret.pos==-1 && ret.state==0)
9038 basic_ios_wchar_setstate(base, IOSTATE_failbit);
9040 basic_ios_wchar_clear(base, IOSTATE_goodbit);
9044 basic_istream_wchar_sentry_destroy(this);
9046 basic_ios_wchar_setstate(base, IOSTATE_failbit);
9050 /* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
9051 /* ?seekg@?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
9052 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV12@V?$fpos@H@2@@Z */
9053 /* ?seekg@?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV12@V?$fpos@H@2@@Z */
9054 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_seekg_fpos, 28)
9055 basic_istream_wchar* __thiscall basic_istream_wchar_seekg_fpos(basic_istream_wchar *this, fpos_int pos)
9057 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
9059 TRACE("(%p %s)\n", this, debugstr_fpos_int(&pos));
9061 if(basic_istream_wchar_sentry_create(this, TRUE)) {
9062 if(!ios_base_fail(&base->base)) {
9063 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
9066 basic_streambuf_wchar_pubseekpos(strbuf, &ret, pos, OPENMODE_in);
9067 basic_istream_wchar_sentry_destroy(this);
9069 if(ret.off==0 && ret.pos==-1 && ret.state==0)
9070 basic_ios_wchar_setstate(base, IOSTATE_failbit);
9072 basic_ios_wchar_clear(base, IOSTATE_goodbit);
9076 basic_istream_wchar_sentry_destroy(this);
9078 basic_ios_wchar_setstate(base, IOSTATE_failbit);
9082 static basic_istream_wchar* basic_istream_read_short(basic_istream_wchar *this, short *v, const num_get *numget)
9084 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
9085 int state = IOSTATE_goodbit;
9087 TRACE("(%p %p)\n", this, v);
9089 if(basic_istream_wchar_sentry_create(this, FALSE)) {
9090 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
9091 istreambuf_iterator_wchar first={0}, last={0};
9094 first.strbuf = strbuf;
9095 num_get_wchar_get_long(numget, &last, first, last, &base->base, &state, &tmp);
9097 if(!(state&IOSTATE_failbit) && tmp==(LONG)((short)tmp))
9100 state |= IOSTATE_failbit;
9102 basic_istream_wchar_sentry_destroy(this);
9104 basic_ios_wchar_setstate(base, state);
9108 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAF@Z */
9109 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAF@Z */
9110 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_short, 8)
9111 basic_istream_wchar* __thiscall basic_istream_wchar_read_short(basic_istream_wchar *this, short *v)
9113 return basic_istream_read_short(this, v, num_get_wchar_use_facet(
9114 basic_istream_wchar_get_basic_ios(this)->strbuf->loc));
9117 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAF@Z */
9118 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAF@Z */
9119 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_short, 8)
9120 basic_istream_wchar* __thiscall basic_istream_short_read_short(basic_istream_wchar *this, short *v)
9122 return basic_istream_read_short(this, v, num_get_short_use_facet(
9123 basic_istream_wchar_get_basic_ios(this)->strbuf->loc));
9126 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAG@Z */
9127 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAG@Z */
9128 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_ushort, 8)
9129 basic_istream_wchar* __thiscall basic_istream_wchar_read_ushort(basic_istream_wchar *this, unsigned short *v)
9131 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
9132 int state = IOSTATE_goodbit;
9134 TRACE("(%p %p)\n", this, v);
9136 if(basic_istream_wchar_sentry_create(this, FALSE)) {
9137 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
9138 const num_get *numget = num_get_wchar_use_facet(strbuf->loc);
9139 istreambuf_iterator_wchar first={0}, last={0};
9141 first.strbuf = strbuf;
9142 num_get_wchar_get_ushort(numget, &last, first, last, &base->base, &state, v);
9144 basic_istream_wchar_sentry_destroy(this);
9146 basic_ios_wchar_setstate(base, state);
9150 static basic_istream_wchar* basic_istream_read_int(basic_istream_wchar *this, int *v, const num_get *numget)
9152 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
9153 int state = IOSTATE_goodbit;
9155 TRACE("(%p %p)\n", this, v);
9157 if(basic_istream_wchar_sentry_create(this, FALSE)) {
9158 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
9159 istreambuf_iterator_wchar first={0}, last={0};
9161 first.strbuf = strbuf;
9162 num_get_wchar_get_long(numget, &last, first, last, &base->base, &state, v);
9164 basic_istream_wchar_sentry_destroy(this);
9166 basic_ios_wchar_setstate(base, state);
9170 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAH@Z */
9171 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAH@Z */
9172 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_int, 8)
9173 basic_istream_wchar* __thiscall basic_istream_wchar_read_int(basic_istream_wchar *this, int *v)
9175 return basic_istream_read_int(this, v, num_get_wchar_use_facet(
9176 basic_istream_wchar_get_basic_ios(this)->strbuf->loc));
9179 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAH@Z */
9180 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAH@Z */
9181 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_int, 8)
9182 basic_istream_wchar* __thiscall basic_istream_short_read_int(basic_istream_wchar *this, int *v)
9184 return basic_istream_read_int(this, v, num_get_short_use_facet(
9185 basic_istream_wchar_get_basic_ios(this)->strbuf->loc));
9188 static basic_istream_wchar* basic_istream_read_uint(basic_istream_wchar *this, unsigned int *v, const num_get *numget)
9190 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
9191 int state = IOSTATE_goodbit;
9193 TRACE("(%p %p)\n", this, v);
9195 if(basic_istream_wchar_sentry_create(this, FALSE)) {
9196 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
9197 istreambuf_iterator_wchar first={0}, last={0};
9199 first.strbuf = strbuf;
9200 num_get_wchar_get_uint(numget, &last, first, last, &base->base, &state, v);
9202 basic_istream_wchar_sentry_destroy(this);
9204 basic_ios_wchar_setstate(base, state);
9208 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAI@Z */
9209 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAI@Z */
9210 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_uint, 8)
9211 basic_istream_wchar* __thiscall basic_istream_wchar_read_uint(basic_istream_wchar *this, unsigned int *v)
9213 return basic_istream_read_uint(this, v, num_get_wchar_use_facet(
9214 basic_istream_wchar_get_basic_ios(this)->strbuf->loc));
9217 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAI@Z */
9218 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAI@Z */
9219 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_uint, 8)
9220 basic_istream_wchar* __thiscall basic_istream_short_read_uint(basic_istream_wchar *this, unsigned int *v)
9222 return basic_istream_read_uint(this, v, num_get_short_use_facet(
9223 basic_istream_wchar_get_basic_ios(this)->strbuf->loc));
9226 static basic_istream_wchar* basic_istream_read_long(basic_istream_wchar *this, LONG *v, const num_get *numget)
9228 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
9229 int state = IOSTATE_goodbit;
9231 TRACE("(%p %p)\n", this, v);
9233 if(basic_istream_wchar_sentry_create(this, FALSE)) {
9234 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
9235 istreambuf_iterator_wchar first={0}, last={0};
9237 first.strbuf = strbuf;
9238 num_get_wchar_get_long(numget, &last, first, last, &base->base, &state, v);
9240 basic_istream_wchar_sentry_destroy(this);
9242 basic_ios_wchar_setstate(base, state);
9246 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAJ@Z */
9247 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAJ@Z */
9248 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_long, 8)
9249 basic_istream_wchar* __thiscall basic_istream_wchar_read_long(basic_istream_wchar *this, LONG *v)
9251 return basic_istream_read_long(this, v, num_get_wchar_use_facet(
9252 basic_istream_wchar_get_basic_ios(this)->strbuf->loc));
9255 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAJ@Z */
9256 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAJ@Z */
9257 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_long, 8)
9258 basic_istream_wchar* __thiscall basic_istream_short_read_long(basic_istream_wchar *this, LONG *v)
9260 return basic_istream_read_long(this, v, num_get_short_use_facet(
9261 basic_istream_wchar_get_basic_ios(this)->strbuf->loc));
9264 static basic_istream_wchar* basic_istream_read_ulong(basic_istream_wchar *this, ULONG *v, const num_get *numget)
9266 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
9267 int state = IOSTATE_goodbit;
9269 TRACE("(%p %p)\n", this, v);
9271 if(basic_istream_wchar_sentry_create(this, FALSE)) {
9272 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
9273 istreambuf_iterator_wchar first={0}, last={0};
9275 first.strbuf = strbuf;
9276 num_get_wchar_get_ulong(numget, &last, first, last, &base->base, &state, v);
9278 basic_istream_wchar_sentry_destroy(this);
9280 basic_ios_wchar_setstate(base, state);
9284 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAK@Z */
9285 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAK@Z */
9286 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_ulong, 8)
9287 basic_istream_wchar* __thiscall basic_istream_wchar_read_ulong(basic_istream_wchar *this, ULONG *v)
9289 return basic_istream_read_ulong(this, v, num_get_wchar_use_facet(
9290 basic_istream_wchar_get_basic_ios(this)->strbuf->loc));
9293 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAK@Z */
9294 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAK@Z */
9295 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_ulong, 8)
9296 basic_istream_wchar* __thiscall basic_istream_short_read_ulong(basic_istream_wchar *this, ULONG *v)
9298 return basic_istream_read_ulong(this, v, num_get_short_use_facet(
9299 basic_istream_wchar_get_basic_ios(this)->strbuf->loc));
9302 static basic_istream_wchar* basic_istream_read_float(basic_istream_wchar *this, float *v, const num_get *numget)
9304 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
9305 int state = IOSTATE_goodbit;
9307 TRACE("(%p %p)\n", this, v);
9309 if(basic_istream_wchar_sentry_create(this, FALSE)) {
9310 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
9311 istreambuf_iterator_wchar first={0}, last={0};
9313 first.strbuf = strbuf;
9314 num_get_wchar_get_float(numget, &last, first, last, &base->base, &state, v);
9316 basic_istream_wchar_sentry_destroy(this);
9318 basic_ios_wchar_setstate(base, state);
9322 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAM@Z */
9323 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAM@Z */
9324 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_float, 8)
9325 basic_istream_wchar* __thiscall basic_istream_wchar_read_float(basic_istream_wchar *this, float *v)
9327 return basic_istream_read_float(this, v, num_get_wchar_use_facet(
9328 basic_istream_wchar_get_basic_ios(this)->strbuf->loc));
9331 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAM@Z */
9332 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAM@Z */
9333 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_float, 8)
9334 basic_istream_wchar* __thiscall basic_istream_short_read_float(basic_istream_wchar *this, float *v)
9336 return basic_istream_read_float(this, v, num_get_short_use_facet(
9337 basic_istream_wchar_get_basic_ios(this)->strbuf->loc));
9340 static basic_istream_wchar* basic_istream_read_double(basic_istream_wchar *this, double *v, const num_get *numget)
9342 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
9343 int state = IOSTATE_goodbit;
9345 TRACE("(%p %p)\n", this, v);
9347 if(basic_istream_wchar_sentry_create(this, FALSE)) {
9348 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
9349 istreambuf_iterator_wchar first={0}, last={0};
9351 first.strbuf = strbuf;
9352 num_get_wchar_get_double(numget, &last, first, last, &base->base, &state, v);
9354 basic_istream_wchar_sentry_destroy(this);
9356 basic_ios_wchar_setstate(base, state);
9360 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAN@Z */
9361 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAN@Z */
9362 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_double, 8)
9363 basic_istream_wchar* __thiscall basic_istream_wchar_read_double(basic_istream_wchar *this, double *v)
9365 return basic_istream_read_double(this, v, num_get_wchar_use_facet(
9366 basic_istream_wchar_get_basic_ios(this)->strbuf->loc));
9369 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAN@Z */
9370 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAN@Z */
9371 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_double, 8)
9372 basic_istream_wchar* __thiscall basic_istream_short_read_double(basic_istream_wchar *this, double *v)
9374 return basic_istream_read_double(this, v, num_get_short_use_facet(
9375 basic_istream_wchar_get_basic_ios(this)->strbuf->loc));
9378 static basic_istream_wchar* basic_istream_read_ldouble(basic_istream_wchar *this, double *v, const num_get *numget)
9380 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
9381 int state = IOSTATE_goodbit;
9383 TRACE("(%p %p)\n", this, v);
9385 if(basic_istream_wchar_sentry_create(this, FALSE)) {
9386 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
9387 istreambuf_iterator_wchar first={0}, last={0};
9389 first.strbuf = strbuf;
9390 num_get_wchar_get_ldouble(numget, &last, first, last, &base->base, &state, v);
9392 basic_istream_wchar_sentry_destroy(this);
9394 basic_ios_wchar_setstate(base, state);
9398 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAO@Z */
9399 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAO@Z */
9400 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_ldouble, 8)
9401 basic_istream_wchar* __thiscall basic_istream_wchar_read_ldouble(basic_istream_wchar *this, double *v)
9403 return basic_istream_read_ldouble(this, v, num_get_wchar_use_facet(
9404 basic_istream_wchar_get_basic_ios(this)->strbuf->loc));
9407 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAO@Z */
9408 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAO@Z */
9409 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_ldouble, 8)
9410 basic_istream_wchar* __thiscall basic_istream_short_read_ldouble(basic_istream_wchar *this, double *v)
9412 return basic_istream_read_ldouble(this, v, num_get_short_use_facet(
9413 basic_istream_wchar_get_basic_ios(this)->strbuf->loc));
9416 static basic_istream_wchar* basic_istream_read_ptr(basic_istream_wchar *this, void **v, const num_get *numget)
9418 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
9419 int state = IOSTATE_goodbit;
9421 TRACE("(%p %p)\n", this, v);
9423 if(basic_istream_wchar_sentry_create(this, FALSE)) {
9424 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
9425 istreambuf_iterator_wchar first={0}, last={0};
9427 first.strbuf = strbuf;
9428 num_get_wchar_get_void(numget, &last, first, last, &base->base, &state, v);
9430 basic_istream_wchar_sentry_destroy(this);
9432 basic_ios_wchar_setstate(base, state);
9436 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AAPAX@Z */
9437 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEAPEAX@Z */
9438 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_ptr, 8)
9439 basic_istream_wchar* __thiscall basic_istream_wchar_read_ptr(basic_istream_wchar *this, void **v)
9441 return basic_istream_read_ptr(this, v, num_get_wchar_use_facet(
9442 basic_istream_wchar_get_basic_ios(this)->strbuf->loc));
9445 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AAPAX@Z */
9446 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEAPEAX@Z */
9447 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_ptr, 8)
9448 basic_istream_wchar* __thiscall basic_istream_short_read_ptr(basic_istream_wchar *this, void **v)
9450 return basic_istream_read_ptr(this, v, num_get_short_use_facet(
9451 basic_istream_wchar_get_basic_ios(this)->strbuf->loc));
9454 static basic_istream_wchar* basic_istream_read_int64(basic_istream_wchar *this, __int64 *v, const num_get *numget)
9456 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
9457 int state = IOSTATE_goodbit;
9459 TRACE("(%p %p)\n", this, v);
9461 if(basic_istream_wchar_sentry_create(this, FALSE)) {
9462 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
9463 istreambuf_iterator_wchar first={0}, last={0};
9465 first.strbuf = strbuf;
9466 num_get_wchar_get_int64(numget, &last, first, last, &base->base, &state, v);
9468 basic_istream_wchar_sentry_destroy(this);
9470 basic_ios_wchar_setstate(base, state);
9474 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AA_J@Z */
9475 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEA_J@Z */
9476 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_int64, 8)
9477 basic_istream_wchar* __thiscall basic_istream_wchar_read_int64(basic_istream_wchar *this, __int64 *v)
9479 return basic_istream_read_int64(this, v, num_get_wchar_use_facet(
9480 basic_istream_wchar_get_basic_ios(this)->strbuf->loc));
9483 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AA_J@Z */
9484 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEA_J@Z */
9485 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_int64, 8)
9486 basic_istream_wchar* __thiscall basic_istream_short_read_int64(basic_istream_wchar *this, __int64 *v)
9488 return basic_istream_read_int64(this, v, num_get_short_use_facet(
9489 basic_istream_wchar_get_basic_ios(this)->strbuf->loc));
9492 static basic_istream_wchar* basic_istream_read_uint64(basic_istream_wchar *this, unsigned __int64 *v, const num_get *numget)
9494 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
9495 int state = IOSTATE_goodbit;
9497 TRACE("(%p %p)\n", this, v);
9499 if(basic_istream_wchar_sentry_create(this, FALSE)) {
9500 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
9501 istreambuf_iterator_wchar first={0}, last={0};
9503 first.strbuf = strbuf;
9504 num_get_wchar_get_uint64(numget, &last, first, last, &base->base, &state, v);
9506 basic_istream_wchar_sentry_destroy(this);
9508 basic_ios_wchar_setstate(base, state);
9512 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AA_K@Z */
9513 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEA_K@Z */
9514 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_uint64, 8)
9515 basic_istream_wchar* __thiscall basic_istream_wchar_read_uint64(basic_istream_wchar *this, unsigned __int64 *v)
9517 return basic_istream_read_uint64(this, v, num_get_wchar_use_facet(
9518 basic_istream_wchar_get_basic_ios(this)->strbuf->loc));
9521 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AA_K@Z */
9522 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEA_K@Z */
9523 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_uint64, 8)
9524 basic_istream_wchar* __thiscall basic_istream_short_read_uint64(basic_istream_wchar *this, unsigned __int64 *v)
9526 return basic_istream_read_uint64(this, v, num_get_short_use_facet(
9527 basic_istream_wchar_get_basic_ios(this)->strbuf->loc));
9530 static basic_istream_wchar* basic_istream_read_bool(basic_istream_wchar *this, MSVCP_bool *v, const num_get *numget)
9532 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
9533 int state = IOSTATE_goodbit;
9535 TRACE("(%p %p)\n", this, v);
9537 if(basic_istream_wchar_sentry_create(this, FALSE)) {
9538 basic_streambuf_wchar *strbuf = basic_ios_wchar_rdbuf_get(base);
9539 istreambuf_iterator_wchar first={0}, last={0};
9541 first.strbuf = strbuf;
9542 num_get_wchar_get_bool(numget, &last, first, last, &base->base, &state, v);
9544 basic_istream_wchar_sentry_destroy(this);
9546 basic_ios_wchar_setstate(base, state);
9550 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@AA_N@Z */
9551 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@AEA_N@Z */
9552 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_bool, 8)
9553 basic_istream_wchar* __thiscall basic_istream_wchar_read_bool(basic_istream_wchar *this, MSVCP_bool *v)
9555 return basic_istream_read_bool(this, v, num_get_wchar_use_facet(
9556 basic_istream_wchar_get_basic_ios(this)->strbuf->loc));
9559 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@AA_N@Z */
9560 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@AEA_N@Z */
9561 DEFINE_THISCALL_WRAPPER(basic_istream_short_read_bool, 8)
9562 basic_istream_wchar* __thiscall basic_istream_short_read_bool(basic_istream_wchar *this, MSVCP_bool *v)
9564 return basic_istream_read_bool(this, v, num_get_short_use_facet(
9565 basic_istream_wchar_get_basic_ios(this)->strbuf->loc));
9568 /* ??$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 */
9569 /* ??$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 */
9570 /* ??$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 */
9571 /* ??$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 */
9572 basic_istream_wchar* __cdecl basic_istream_wchar_getline_bstr_delim(
9573 basic_istream_wchar *istream, basic_string_wchar *str, wchar_t delim)
9575 IOSB_iostate state = IOSTATE_failbit;
9578 TRACE("(%p %p %c)\n", istream, str, delim);
9580 if(basic_istream_wchar_sentry_create(istream, TRUE)) {
9581 MSVCP_basic_string_wchar_clear(str);
9583 c = basic_istream_wchar_get(istream);
9585 state = IOSTATE_goodbit;
9587 for(; c!=delim && c!=WEOF; c = basic_istream_wchar_get(istream)) {
9588 state = IOSTATE_goodbit;
9589 MSVCP_basic_string_wchar_append_ch(str, c);
9592 basic_istream_wchar_sentry_destroy(istream);
9594 basic_ios_wchar_setstate(basic_istream_wchar_get_basic_ios(istream),
9595 state | (c==WEOF ? IOSTATE_eofbit : IOSTATE_goodbit));
9599 /* ??$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 */
9600 /* ??$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 */
9601 /* ??$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 */
9602 /* ??$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 */
9603 basic_istream_wchar* __cdecl basic_istream_wchar_getline_bstr(
9604 basic_istream_wchar *istream, basic_string_wchar *str)
9606 return basic_istream_wchar_getline_bstr_delim(istream, str, '\n');
9609 static basic_istream_wchar* basic_istream_read_bstr(basic_istream_wchar *istream,
9610 basic_string_wchar *str, const ctype_wchar *ctype)
9612 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(istream);
9613 IOSB_iostate state = IOSTATE_failbit;
9616 TRACE("(%p %p)\n", istream, str);
9618 if(basic_istream_wchar_sentry_create(istream, FALSE)) {
9619 MSVCP_size_t count = ios_base_width_get(&base->base);
9624 MSVCP_basic_string_wchar_clear(str);
9626 for(c = basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base));
9627 c!=WEOF && !ctype_wchar_is_ch(ctype, _SPACE|_BLANK, c) && count>0;
9628 c = basic_streambuf_wchar_snextc(basic_ios_wchar_rdbuf_get(base)), count--) {
9629 state = IOSTATE_goodbit;
9630 MSVCP_basic_string_wchar_append_ch(str, c);
9633 basic_istream_wchar_sentry_destroy(istream);
9635 ios_base_width_set(&base->base, 0);
9636 basic_ios_wchar_setstate(base, state | (c==WEOF ? IOSTATE_eofbit : IOSTATE_goodbit));
9640 /* ??$?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 */
9641 /* ??$?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 */
9642 basic_istream_wchar* __cdecl basic_istream_wchar_read_bstr(
9643 basic_istream_wchar *istream, basic_string_wchar *str)
9645 return basic_istream_read_bstr(istream, str, ctype_wchar_use_facet(
9646 basic_istream_wchar_get_basic_ios(istream)->strbuf->loc));
9649 /* ??$?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 */
9650 /* ??$?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 */
9651 basic_istream_wchar* __cdecl basic_istream_short_read_bstr(
9652 basic_istream_wchar *istream, basic_string_wchar *str)
9654 return basic_istream_read_bstr(istream, str, ctype_short_use_facet(
9655 basic_istream_wchar_get_basic_ios(istream)->strbuf->loc));
9658 static basic_istream_wchar* basic_istream_read_str(basic_istream_wchar *istream, wchar_t *str, const ctype_wchar *ctype)
9660 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(istream);
9661 IOSB_iostate state = IOSTATE_failbit;
9662 unsigned short c = '\n';
9664 TRACE("(%p %p)\n", istream, str);
9666 if(basic_istream_wchar_sentry_create(istream, FALSE)) {
9667 MSVCP_size_t count = ios_base_width_get(&base->base)-1;
9669 for(c = basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base));
9670 c!=WEOF && !ctype_wchar_is_ch(ctype, _SPACE|_BLANK, c) && count>0;
9671 c = basic_streambuf_wchar_snextc(basic_ios_wchar_rdbuf_get(base)), count--) {
9672 state = IOSTATE_goodbit;
9676 basic_istream_wchar_sentry_destroy(istream);
9679 ios_base_width_set(&base->base, 0);
9680 basic_ios_wchar_setstate(base, state | (c==WEOF ? IOSTATE_eofbit : IOSTATE_goodbit));
9684 /* ??$?5_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AAV10@PA_W@Z */
9685 /* ??$?5_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AEAV10@PEA_W@Z */
9686 basic_istream_wchar* __cdecl basic_istream_wchar_read_str(basic_istream_wchar *istream, wchar_t *str)
9688 return basic_istream_read_str(istream, str, ctype_wchar_use_facet(
9689 basic_istream_wchar_get_basic_ios(istream)->strbuf->loc));
9692 /* ??$?5GU?$char_traits@G@std@@@std@@YAAAV?$basic_istream@GU?$char_traits@G@std@@@0@AAV10@PAG@Z */
9693 /* ??$?5GU?$char_traits@G@std@@@std@@YAAEAV?$basic_istream@GU?$char_traits@G@std@@@0@AEAV10@PEAG@Z */
9694 basic_istream_wchar* __cdecl basic_istream_short_read_str(basic_istream_wchar *istream, wchar_t *str)
9696 return basic_istream_read_str(istream, str, ctype_short_use_facet(
9697 basic_istream_wchar_get_basic_ios(istream)->strbuf->loc));
9700 /* ??$?5_WU?$char_traits@_W@std@@@std@@YAAAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AAV10@AA_W@Z */
9701 /* ??$?5_WU?$char_traits@_W@std@@@std@@YAAEAV?$basic_istream@_WU?$char_traits@_W@std@@@0@AEAV10@AEA_W@Z */
9702 /* ??$?5GU?$char_traits@G@std@@@std@@YAAAV?$basic_istream@GU?$char_traits@G@std@@@0@AAV10@AAG@Z */
9703 /* ??$?5GU?$char_traits@G@std@@@std@@YAAEAV?$basic_istream@GU?$char_traits@G@std@@@0@AEAV10@AEAG@Z */
9704 basic_istream_wchar* __cdecl basic_istream_wchar_read_ch(basic_istream_wchar *istream, wchar_t *ch)
9706 IOSB_iostate state = IOSTATE_failbit;
9707 unsigned short c = 0;
9709 TRACE("(%p %p)\n", istream, ch);
9711 if(basic_istream_wchar_sentry_create(istream, FALSE)) {
9712 c = basic_streambuf_wchar_sbumpc(basic_ios_wchar_rdbuf_get(
9713 basic_istream_wchar_get_basic_ios(istream)));
9715 state = IOSTATE_goodbit;
9719 basic_istream_wchar_sentry_destroy(istream);
9721 basic_ios_wchar_setstate(basic_istream_wchar_get_basic_ios(istream),
9722 state | (c==WEOF ? IOSTATE_eofbit : IOSTATE_goodbit));
9726 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
9727 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
9728 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
9729 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
9730 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_streambuf, 8)
9731 basic_istream_wchar* __thiscall basic_istream_wchar_read_streambuf(
9732 basic_istream_wchar *this, basic_streambuf_wchar *streambuf)
9734 basic_ios_wchar *base = basic_istream_wchar_get_basic_ios(this);
9735 IOSB_iostate state = IOSTATE_failbit;
9736 unsigned short c = '\n';
9738 TRACE("(%p %p)\n", this, streambuf);
9740 if(basic_istream_wchar_sentry_create(this, FALSE)) {
9741 for(c = basic_streambuf_wchar_sgetc(basic_ios_wchar_rdbuf_get(base)); c!=WEOF;
9742 c = basic_streambuf_wchar_snextc(basic_ios_wchar_rdbuf_get(base))) {
9743 state = IOSTATE_goodbit;
9744 if(basic_streambuf_wchar_sputc(streambuf, c) == WEOF)
9748 basic_istream_wchar_sentry_destroy(this);
9750 basic_ios_wchar_setstate(base, state | (c==WEOF ? IOSTATE_eofbit : IOSTATE_goodbit));
9754 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
9755 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
9756 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z */
9757 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z */
9758 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_func, 8)
9759 basic_istream_wchar* __thiscall basic_istream_wchar_read_func(basic_istream_wchar *this,
9760 basic_istream_wchar* (__cdecl *pfunc)(basic_istream_wchar*))
9762 TRACE("(%p %p)\n", this, pfunc);
9767 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AAV21@@Z@Z */
9768 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@_WU?$char_traits@_W@std@@@1@AEAV21@@Z@Z */
9769 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAV?$basic_ios@GU?$char_traits@G@std@@@1@AAV21@@Z@Z */
9770 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAV?$basic_ios@GU?$char_traits@G@std@@@1@AEAV21@@Z@Z */
9771 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_func_basic_ios, 8)
9772 basic_istream_wchar* __thiscall basic_istream_wchar_read_func_basic_ios(basic_istream_wchar *this,
9773 basic_ios_wchar* (__cdecl *pfunc)(basic_ios_wchar*))
9775 TRACE("(%p %p)\n", this, pfunc);
9776 pfunc(basic_istream_wchar_get_basic_ios(this));
9780 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
9781 /* ??5?$basic_istream@_WU?$char_traits@_W@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
9782 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z */
9783 /* ??5?$basic_istream@GU?$char_traits@G@std@@@std@@QEAAAEAV01@P6AAEAVios_base@1@AEAV21@@Z@Z */
9784 DEFINE_THISCALL_WRAPPER(basic_istream_wchar_read_func_ios_base, 8)
9785 basic_istream_wchar* __thiscall basic_istream_wchar_read_func_ios_base(
9786 basic_istream_wchar *this, ios_base* (__cdecl *pfunc)(ios_base*))
9788 TRACE("(%p %p)\n", this, pfunc);
9789 pfunc(&basic_istream_wchar_get_basic_ios(this)->base);
9793 static inline basic_ios_char* basic_iostream_char_to_basic_ios(basic_iostream_char *ptr)
9795 return (basic_ios_char*)((char*)ptr+basic_iostream_char_vbtable1[1]);
9798 static inline basic_iostream_char* basic_iostream_char_from_basic_ios(basic_ios_char *ptr)
9800 return (basic_iostream_char*)((char*)ptr-basic_iostream_char_vbtable1[1]);
9803 /* ??0?$basic_iostream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
9804 /* ??0?$basic_iostream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z */
9805 DEFINE_THISCALL_WRAPPER(basic_iostream_char_ctor, 12)
9806 basic_iostream_char* __thiscall basic_iostream_char_ctor(basic_iostream_char *this, basic_streambuf_char *strbuf, MSVCP_bool virt_init)
9808 basic_ios_char *basic_ios;
9810 TRACE("(%p %p %d)\n", this, strbuf, virt_init);
9813 this->base1.vbtable = basic_iostream_char_vbtable1;
9814 this->base2.vbtable = basic_iostream_char_vbtable2;
9815 basic_ios = basic_istream_char_get_basic_ios(&this->base1);
9816 basic_ios_char_ctor(basic_ios);
9818 basic_ios = basic_istream_char_get_basic_ios(&this->base1);
9821 basic_ios->base.vtable = &MSVCP_basic_iostream_char_vtable;
9823 basic_istream_char_ctor(&this->base1, strbuf, FALSE, FALSE);
9824 basic_ostream_char_ctor_uninitialized(&this->base2, 0, FALSE, FALSE);
9828 /* ??1?$basic_iostream@DU?$char_traits@D@std@@@std@@UAE@XZ */
9829 /* ??1?$basic_iostream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
9830 DEFINE_THISCALL_WRAPPER(basic_iostream_char_dtor, 4)
9831 void __thiscall basic_iostream_char_dtor(basic_ios_char *base)
9833 basic_iostream_char *this = basic_iostream_char_from_basic_ios(base);
9835 TRACE("(%p)\n", this);
9836 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&this->base2));
9837 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&this->base1));
9840 /* ??_D?$basic_iostream@DU?$char_traits@D@std@@@std@@QAEXXZ */
9841 /* ??_D?$basic_iostream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
9842 DEFINE_THISCALL_WRAPPER(basic_iostream_char_vbase_dtor, 4)
9843 void __thiscall basic_iostream_char_vbase_dtor(basic_iostream_char *this)
9845 TRACE("(%p)\n", this);
9846 basic_iostream_char_dtor(basic_iostream_char_to_basic_ios(this));
9847 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base1));
9850 DEFINE_THISCALL_WRAPPER(basic_iostream_char_vector_dtor, 8)
9851 basic_iostream_char* __thiscall basic_iostream_char_vector_dtor(basic_ios_char *base, unsigned int flags)
9853 basic_iostream_char *this = basic_iostream_char_from_basic_ios(base);
9855 TRACE("(%p %x)\n", this, flags);
9858 /* we have an array, with the number of elements stored before the first object */
9859 INT_PTR i, *ptr = (INT_PTR *)this-1;
9861 for(i=*ptr-1; i>=0; i--)
9862 basic_iostream_char_vbase_dtor(this+i);
9863 MSVCRT_operator_delete(ptr);
9865 basic_iostream_char_vbase_dtor(this);
9867 MSVCRT_operator_delete(this);
9873 static inline basic_ios_wchar* basic_iostream_wchar_to_basic_ios(basic_iostream_wchar *ptr)
9875 return (basic_ios_wchar*)((char*)ptr+basic_iostream_wchar_vbtable1[1]);
9878 static inline basic_iostream_wchar* basic_iostream_wchar_from_basic_ios(basic_ios_wchar *ptr)
9880 return (basic_iostream_wchar*)((char*)ptr-basic_iostream_wchar_vbtable1[1]);
9883 /* ??0?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QAE@PAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
9884 /* ??0?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAV?$basic_streambuf@_WU?$char_traits@_W@std@@@1@@Z */
9885 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_ctor, 12)
9886 basic_iostream_wchar* __thiscall basic_iostream_wchar_ctor(basic_iostream_wchar *this,
9887 basic_streambuf_wchar *strbuf, MSVCP_bool virt_init)
9889 basic_ios_wchar *basic_ios;
9891 TRACE("(%p %p %d)\n", this, strbuf, virt_init);
9894 this->base1.vbtable = basic_iostream_wchar_vbtable1;
9895 this->base2.vbtable = basic_iostream_wchar_vbtable2;
9896 basic_ios = basic_istream_wchar_get_basic_ios(&this->base1);
9897 basic_ios_wchar_ctor(basic_ios);
9899 basic_ios = basic_istream_wchar_get_basic_ios(&this->base1);
9902 basic_istream_wchar_ctor(&this->base1, strbuf, FALSE, FALSE);
9903 basic_ostream_wchar_ctor_uninitialized(&this->base2, 0, FALSE, FALSE);
9905 basic_ios->base.vtable = &MSVCP_basic_iostream_wchar_vtable;
9909 /* ??0?$basic_iostream@GU?$char_traits@G@std@@@std@@QAE@PAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
9910 /* ??0?$basic_iostream@GU?$char_traits@G@std@@@std@@QEAA@PEAV?$basic_streambuf@GU?$char_traits@G@std@@@1@@Z */
9911 DEFINE_THISCALL_WRAPPER(basic_iostream_short_ctor, 12)
9912 basic_iostream_wchar* __thiscall basic_iostream_short_ctor(basic_iostream_wchar *this,
9913 basic_streambuf_wchar *strbuf, MSVCP_bool virt_init)
9915 basic_iostream_wchar_ctor(this, strbuf, virt_init);
9916 basic_istream_wchar_get_basic_ios(&this->base1)->base.vtable = &MSVCP_basic_iostream_short_vtable;
9920 /* ??1?$basic_iostream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
9921 /* ??1?$basic_iostream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
9922 /* ??1?$basic_iostream@GU?$char_traits@G@std@@@std@@UAE@XZ */
9923 /* ??1?$basic_iostream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
9924 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_dtor, 4)
9925 void __thiscall basic_iostream_wchar_dtor(basic_ios_wchar *base)
9927 basic_iostream_wchar *this = basic_iostream_wchar_from_basic_ios(base);
9929 TRACE("(%p)\n", this);
9930 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(&this->base2));
9931 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(&this->base1));
9934 /* ??_D?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
9935 /* ??_D?$basic_iostream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
9936 /* ??_D?$basic_iostream@GU?$char_traits@G@std@@@std@@QAEXXZ */
9937 /* ??_D?$basic_iostream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
9938 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_vbase_dtor, 4)
9939 void __thiscall basic_iostream_wchar_vbase_dtor(basic_iostream_wchar *this)
9941 TRACE("(%p)\n", this);
9942 basic_iostream_wchar_dtor(basic_iostream_wchar_to_basic_ios(this));
9943 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(&this->base1));
9946 DEFINE_THISCALL_WRAPPER(basic_iostream_wchar_vector_dtor, 8)
9947 basic_iostream_wchar* __thiscall basic_iostream_wchar_vector_dtor(basic_ios_wchar *base, unsigned int flags)
9949 basic_iostream_wchar *this = basic_iostream_wchar_from_basic_ios(base);
9951 TRACE("(%p %x)\n", this, flags);
9954 /* we have an array, with the number of elements stored before the first object */
9955 INT_PTR i, *ptr = (INT_PTR *)this-1;
9957 for(i=*ptr-1; i>=0; i--)
9958 basic_iostream_wchar_vbase_dtor(this+i);
9959 MSVCRT_operator_delete(ptr);
9961 basic_iostream_wchar_vbase_dtor(this);
9963 MSVCRT_operator_delete(this);
9969 static inline basic_ios_char* basic_ofstream_char_to_basic_ios(basic_ofstream_char *ptr)
9971 return (basic_ios_char*)((char*)ptr+basic_ofstream_char_vbtable[1]);
9974 static inline basic_ofstream_char* basic_ofstream_char_from_basic_ios(basic_ios_char *ptr)
9976 return (basic_ofstream_char*)((char*)ptr-basic_ofstream_char_vbtable[1]);
9979 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@XZ */
9980 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@XZ */
9981 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_ctor, 8)
9982 basic_ofstream_char* __thiscall basic_ofstream_char_ctor(basic_ofstream_char *this, MSVCP_bool virt_init)
9984 basic_ios_char *basic_ios;
9986 TRACE("(%p %d)\n", this, virt_init);
9989 this->base.vbtable = basic_ofstream_char_vbtable;
9990 basic_ios = basic_ostream_char_get_basic_ios(&this->base);
9991 basic_ios_char_ctor(basic_ios);
9993 basic_ios = basic_ostream_char_get_basic_ios(&this->base);
9996 basic_filebuf_char_ctor(&this->filebuf);
9997 basic_ostream_char_ctor(&this->base, &this->filebuf.base, FALSE, FALSE);
9998 basic_ios->base.vtable = &MSVCP_basic_ofstream_char_vtable;
10002 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
10003 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
10004 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_ctor_file, 12)
10005 basic_ofstream_char* __thiscall basic_ofstream_char_ctor_file(
10006 basic_ofstream_char *this, FILE *file, MSVCP_bool virt_init)
10008 basic_ios_char *basic_ios;
10010 TRACE("(%p %p %d)\n", this, file, virt_init);
10013 this->base.vbtable = basic_ofstream_char_vbtable;
10014 basic_ios = basic_ostream_char_get_basic_ios(&this->base);
10015 basic_ios_char_ctor(basic_ios);
10017 basic_ios = basic_ostream_char_get_basic_ios(&this->base);
10020 basic_filebuf_char_ctor_file(&this->filebuf, file);
10021 basic_ostream_char_ctor(&this->base, &this->filebuf.base, FALSE, FALSE);
10022 basic_ios->base.vtable = &MSVCP_basic_ofstream_char_vtable;
10026 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@PBDHH@Z */
10027 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDHH@Z */
10028 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_ctor_name, 20)
10029 basic_ofstream_char* __thiscall basic_ofstream_char_ctor_name(basic_ofstream_char *this,
10030 const char *name, int mode, int prot, MSVCP_bool virt_init)
10032 TRACE("(%p %s %d %d %d)\n", this, name, mode, prot, virt_init);
10034 basic_ofstream_char_ctor(this, virt_init);
10036 if(!basic_filebuf_char_open(&this->filebuf, name, mode|OPENMODE_out, prot)) {
10037 basic_ios_char *basic_ios = basic_ostream_char_get_basic_ios(&this->base);
10038 basic_ios_char_setstate(basic_ios, IOSTATE_failbit);
10043 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@PBGHH@Z */
10044 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@PEBGHH@Z */
10045 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@PB_WHH@Z */
10046 /* ??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAA@PEB_WHH@Z */
10047 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_ctor_name_wchar, 20)
10048 basic_ofstream_char* __thiscall basic_ofstream_char_ctor_name_wchar(basic_ofstream_char *this,
10049 const wchar_t *name, int mode, int prot, MSVCP_bool virt_init)
10051 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name), mode, prot, virt_init);
10053 basic_ofstream_char_ctor(this, virt_init);
10055 if(!basic_filebuf_char_open_wchar(&this->filebuf, name, mode|OPENMODE_out, prot)) {
10056 basic_ios_char *basic_ios = basic_ostream_char_get_basic_ios(&this->base);
10057 basic_ios_char_setstate(basic_ios, IOSTATE_failbit);
10062 /* ??1?$basic_ofstream@DU?$char_traits@D@std@@@std@@UAE@XZ */
10063 /* ??1?$basic_ofstream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
10064 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_dtor, 4)
10065 void __thiscall basic_ofstream_char_dtor(basic_ios_char *base)
10067 basic_ofstream_char *this = basic_ofstream_char_from_basic_ios(base);
10069 TRACE("(%p)\n", this);
10071 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&this->base));
10072 basic_filebuf_char_dtor(&this->filebuf);
10075 /* ??_D?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
10076 /* ??_D?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
10077 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_vbase_dtor, 4)
10078 void __thiscall basic_ofstream_char_vbase_dtor(basic_ofstream_char *this)
10080 TRACE("(%p)\n", this);
10082 basic_ofstream_char_dtor(basic_ofstream_char_to_basic_ios(this));
10083 basic_ios_char_dtor(basic_ostream_char_get_basic_ios(&this->base));
10086 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_vector_dtor, 8)
10087 basic_ofstream_char* __thiscall basic_ofstream_char_vector_dtor(basic_ios_char *base, unsigned int flags)
10089 basic_ofstream_char *this = basic_ofstream_char_from_basic_ios(base);
10091 TRACE("(%p %x)\n", this, flags);
10094 /* we have an array, with the number of elements stored before the first object */
10095 INT_PTR i, *ptr = (INT_PTR *)this-1;
10097 for(i=*ptr-1; i>=0; i--)
10098 basic_ofstream_char_vbase_dtor(this+i);
10099 MSVCRT_operator_delete(ptr);
10101 basic_ofstream_char_vbase_dtor(this);
10103 MSVCRT_operator_delete(this);
10109 /* ?close@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
10110 /* ?close@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
10111 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_close, 4)
10112 void __thiscall basic_ofstream_char_close(basic_ofstream_char *this)
10114 TRACE("(%p)\n", this);
10116 if(!basic_filebuf_char_close(&this->filebuf)) {
10117 basic_ios_char *basic_ios = basic_ostream_char_get_basic_ios(&this->base);
10118 basic_ios_char_setstate(basic_ios, IOSTATE_failbit);
10122 /* ?is_open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QBE_NXZ */
10123 /* ?is_open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
10124 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_is_open, 4)
10125 MSVCP_bool __thiscall basic_ofstream_char_is_open(const basic_ofstream_char *this)
10127 TRACE("(%p)\n", this);
10128 return basic_filebuf_char_is_open(&this->filebuf);
10131 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPBDHH@Z */
10132 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDHH@Z */
10133 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_open, 16)
10134 void __thiscall basic_ofstream_char_open(basic_ofstream_char *this,
10135 const char *name, int mode, int prot)
10137 TRACE("(%p %s %d %d)\n", this, name, mode, prot);
10139 if(!basic_filebuf_char_open(&this->filebuf, name, mode|OPENMODE_out, prot)) {
10140 basic_ios_char *basic_ios = basic_ostream_char_get_basic_ios(&this->base);
10141 basic_ios_char_setstate(basic_ios, IOSTATE_failbit);
10145 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPBDI@Z */
10146 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDI@Z */
10147 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_open_old, 12)
10148 void __thiscall basic_ofstream_char_open_old(basic_ofstream_char *this,
10149 const char *name, unsigned int mode)
10151 basic_ofstream_char_open(this, name, mode, _SH_DENYNO);
10154 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPBGHH@Z */
10155 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGHH@Z */
10156 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPB_WHH@Z */
10157 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WHH@Z */
10158 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_open_wchar, 16)
10159 void __thiscall basic_ofstream_char_open_wchar(basic_ofstream_char *this,
10160 const wchar_t *name, int mode, int prot)
10162 TRACE("(%p %s %d %d)\n", this, debugstr_w(name), mode, prot);
10164 if(!basic_filebuf_char_open_wchar(&this->filebuf, name, mode|OPENMODE_out, prot)) {
10165 basic_ios_char *basic_ios = basic_ostream_char_get_basic_ios(&this->base);
10166 basic_ios_char_setstate(basic_ios, IOSTATE_failbit);
10170 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPBGI@Z */
10171 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGI@Z */
10172 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXPB_WI@Z */
10173 /* ?open@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WI@Z */
10174 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_open_wchar_old, 12)
10175 void __thiscall basic_ofstream_char_open_wchar_old(basic_ofstream_char *this,
10176 const wchar_t *name, unsigned int mode)
10178 basic_ofstream_char_open_wchar(this, name, mode, _SH_DENYNO);
10181 /* ?rdbuf@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
10182 /* ?rdbuf@?$basic_ofstream@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
10183 DEFINE_THISCALL_WRAPPER(basic_ofstream_char_rdbuf, 4)
10184 basic_filebuf_char* __thiscall basic_ofstream_char_rdbuf(const basic_ofstream_char *this)
10186 TRACE("(%p)\n", this);
10187 return (basic_filebuf_char*)&this->filebuf;
10190 static inline basic_ios_wchar* basic_ofstream_wchar_to_basic_ios(basic_ofstream_wchar *ptr)
10192 return (basic_ios_wchar*)((char*)ptr+basic_ofstream_wchar_vbtable[1]);
10195 static inline basic_ofstream_wchar* basic_ofstream_wchar_from_basic_ios(basic_ios_wchar *ptr)
10197 return (basic_ofstream_wchar*)((char*)ptr-basic_ofstream_wchar_vbtable[1]);
10200 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@XZ */
10201 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@XZ */
10202 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_ctor, 8)
10203 basic_ofstream_wchar* __thiscall basic_ofstream_wchar_ctor(basic_ofstream_wchar *this, MSVCP_bool virt_init)
10205 basic_ios_wchar *basic_ios;
10207 TRACE("(%p %d)\n", this, virt_init);
10210 this->base.vbtable = basic_ofstream_wchar_vbtable;
10211 basic_ios = basic_ostream_wchar_get_basic_ios(&this->base);
10212 basic_ios_wchar_ctor(basic_ios);
10214 basic_ios = basic_ostream_wchar_get_basic_ios(&this->base);
10217 basic_filebuf_wchar_ctor(&this->filebuf);
10218 basic_ostream_wchar_ctor(&this->base, &this->filebuf.base, FALSE, FALSE);
10219 basic_ios->base.vtable = &MSVCP_basic_ofstream_wchar_vtable;
10223 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@XZ */
10224 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@XZ */
10225 DEFINE_THISCALL_WRAPPER(basic_ofstream_short_ctor, 8)
10226 basic_ofstream_wchar* __thiscall basic_ofstream_short_ctor(basic_ofstream_wchar *this, MSVCP_bool virt_init)
10228 basic_ofstream_wchar_ctor(this, virt_init);
10229 basic_ostream_wchar_get_basic_ios(&this->base)->base.vtable = &MSVCP_basic_ofstream_short_vtable;
10233 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
10234 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
10235 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_ctor_file, 12)
10236 basic_ofstream_wchar* __thiscall basic_ofstream_wchar_ctor_file(
10237 basic_ofstream_wchar *this, FILE *file, MSVCP_bool virt_init)
10239 basic_ios_wchar *basic_ios;
10241 TRACE("(%p %p %d)\n", this, file, virt_init);
10244 this->base.vbtable = basic_ofstream_wchar_vbtable;
10245 basic_ios = basic_ostream_wchar_get_basic_ios(&this->base);
10246 basic_ios_wchar_ctor(basic_ios);
10248 basic_ios = basic_ostream_wchar_get_basic_ios(&this->base);
10251 basic_filebuf_wchar_ctor_file(&this->filebuf, file);
10252 basic_ostream_wchar_ctor(&this->base, &this->filebuf.base, FALSE, FALSE);
10253 basic_ios->base.vtable = &MSVCP_basic_ofstream_wchar_vtable;
10257 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
10258 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
10259 DEFINE_THISCALL_WRAPPER(basic_ofstream_short_ctor_file, 12)
10260 basic_ofstream_wchar* __thiscall basic_ofstream_short_ctor_file(
10261 basic_ofstream_wchar *this, FILE *file, MSVCP_bool virt_init)
10263 basic_ofstream_wchar_ctor_file(this, file, virt_init);
10264 basic_ostream_wchar_get_basic_ios(&this->base)->base.vtable = &MSVCP_basic_ofstream_short_vtable;
10268 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@PBDHH@Z */
10269 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBDHH@Z */
10270 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_ctor_name, 20)
10271 basic_ofstream_wchar* __thiscall basic_ofstream_wchar_ctor_name(basic_ofstream_wchar *this,
10272 const char *name, int mode, int prot, MSVCP_bool virt_init)
10274 TRACE("(%p %s %d %d %d)\n", this, name, mode, prot, virt_init);
10276 basic_ofstream_wchar_ctor(this, virt_init);
10278 if(!basic_filebuf_wchar_open(&this->filebuf, name, mode|OPENMODE_out, prot)) {
10279 basic_ios_wchar *basic_ios = basic_ostream_wchar_get_basic_ios(&this->base);
10280 basic_ios_wchar_setstate(basic_ios, IOSTATE_failbit);
10285 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@PBDHH@Z */
10286 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@PEBDHH@Z */
10287 DEFINE_THISCALL_WRAPPER(basic_ofstream_short_ctor_name, 20)
10288 basic_ofstream_wchar* __thiscall basic_ofstream_short_ctor_name(basic_ofstream_wchar *this,
10289 const char *name, int mode, int prot, MSVCP_bool virt_init)
10291 basic_ofstream_wchar_ctor_name(this, name, mode, prot, virt_init);
10292 basic_ostream_wchar_get_basic_ios(&this->base)->base.vtable = &MSVCP_basic_ofstream_short_vtable;
10296 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@PBGHH@Z */
10297 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBGHH@Z */
10298 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAE@PB_WHH@Z */
10299 /* ??0?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEB_WHH@Z */
10300 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_ctor_name_wchar, 20)
10301 basic_ofstream_wchar* __thiscall basic_ofstream_wchar_ctor_name_wchar(basic_ofstream_wchar *this,
10302 const wchar_t *name, int mode, int prot, MSVCP_bool virt_init)
10304 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name), mode, prot, virt_init);
10306 basic_ofstream_wchar_ctor(this, virt_init);
10308 if(!basic_filebuf_wchar_open_wchar(&this->filebuf, name, mode|OPENMODE_out, prot)) {
10309 basic_ios_wchar *basic_ios = basic_ostream_wchar_get_basic_ios(&this->base);
10310 basic_ios_wchar_setstate(basic_ios, IOSTATE_failbit);
10315 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@PBGHH@Z */
10316 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@PEBGHH@Z */
10317 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAE@PB_WHH@Z */
10318 /* ??0?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAA@PEB_WHH@Z */
10319 DEFINE_THISCALL_WRAPPER(basic_ofstream_short_ctor_name_wchar, 20)
10320 basic_ofstream_wchar* __thiscall basic_ofstream_short_ctor_name_wchar(basic_ofstream_wchar *this,
10321 const wchar_t *name, int mode, int prot, MSVCP_bool virt_init)
10323 basic_ofstream_wchar_ctor_name_wchar(this, name, mode, prot, virt_init);
10324 basic_ostream_wchar_get_basic_ios(&this->base)->base.vtable = &MSVCP_basic_ofstream_short_vtable;
10328 /* ??1?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
10329 /* ??1?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
10330 /* ??1?$basic_ofstream@GU?$char_traits@G@std@@@std@@UAE@XZ */
10331 /* ??1?$basic_ofstream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
10332 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_dtor, 4)
10333 void __thiscall basic_ofstream_wchar_dtor(basic_ios_wchar *base)
10335 basic_ofstream_wchar *this = basic_ofstream_wchar_from_basic_ios(base);
10337 TRACE("(%p)\n", this);
10339 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(&this->base));
10340 basic_filebuf_wchar_dtor(&this->filebuf);
10343 /* ??_D?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
10344 /* ??_D?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
10345 /* ??_D?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
10346 /* ??_D?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
10347 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_vbase_dtor, 4)
10348 void __thiscall basic_ofstream_wchar_vbase_dtor(basic_ofstream_wchar *this)
10350 TRACE("(%p)\n", this);
10352 basic_ofstream_wchar_dtor(basic_ofstream_wchar_to_basic_ios(this));
10353 basic_ios_wchar_dtor(basic_ostream_wchar_get_basic_ios(&this->base));
10356 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_vector_dtor, 8)
10357 basic_ofstream_wchar* __thiscall basic_ofstream_wchar_vector_dtor(basic_ios_wchar *base, unsigned int flags)
10359 basic_ofstream_wchar *this = basic_ofstream_wchar_from_basic_ios(base);
10361 TRACE("(%p %x)\n", this, flags);
10364 /* we have an array, with the number of elements stored before the first object */
10365 INT_PTR i, *ptr = (INT_PTR *)this-1;
10367 for(i=*ptr-1; i>=0; i--)
10368 basic_ofstream_wchar_vbase_dtor(this+i);
10369 MSVCRT_operator_delete(ptr);
10371 basic_ofstream_wchar_vbase_dtor(this);
10373 MSVCRT_operator_delete(this);
10379 /* ?close@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
10380 /* ?close@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
10381 /* ?close@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
10382 /* ?close@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
10383 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_close, 4)
10384 void __thiscall basic_ofstream_wchar_close(basic_ofstream_wchar *this)
10386 TRACE("(%p)\n", this);
10388 if(!basic_filebuf_wchar_close(&this->filebuf)) {
10389 basic_ios_wchar *basic_ios = basic_ostream_wchar_get_basic_ios(&this->base);
10390 basic_ios_wchar_setstate(basic_ios, IOSTATE_failbit);
10394 /* ?is_open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
10395 /* ?is_open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
10396 /* ?is_open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QBE_NXZ */
10397 /* ?is_open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
10398 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_is_open, 4)
10399 MSVCP_bool __thiscall basic_ofstream_wchar_is_open(const basic_ofstream_wchar *this)
10401 TRACE("(%p)\n", this);
10402 return basic_filebuf_wchar_is_open(&this->filebuf);
10405 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDHH@Z */
10406 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDHH@Z */
10407 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPBDHH@Z */
10408 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDHH@Z */
10409 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_open, 16)
10410 void __thiscall basic_ofstream_wchar_open(basic_ofstream_wchar *this,
10411 const char *name, int mode, int prot)
10413 TRACE("(%p %s %d %d)\n", this, name, mode, prot);
10415 if(!basic_filebuf_wchar_open(&this->filebuf, name, mode|OPENMODE_out, prot)) {
10416 basic_ios_wchar *basic_ios = basic_ostream_wchar_get_basic_ios(&this->base);
10417 basic_ios_wchar_setstate(basic_ios, IOSTATE_failbit);
10421 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDI@Z */
10422 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDI@Z */
10423 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPBDI@Z */
10424 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDI@Z */
10425 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_open_old, 12)
10426 void __thiscall basic_ofstream_wchar_open_old(basic_ofstream_wchar *this,
10427 const char *name, unsigned int mode)
10429 basic_ofstream_wchar_open(this, name, mode, _SH_DENYNO);
10432 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGHH@Z */
10433 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGHH@Z */
10434 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WHH@Z */
10435 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WHH@Z */
10436 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPBGHH@Z */
10437 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGHH@Z */
10438 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPB_WHH@Z */
10439 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WHH@Z */
10440 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_open_wchar, 16)
10441 void __thiscall basic_ofstream_wchar_open_wchar(basic_ofstream_wchar *this,
10442 const wchar_t *name, int mode, int prot)
10444 TRACE("(%p %s %d %d)\n", this, debugstr_w(name), mode, prot);
10446 if(!basic_filebuf_wchar_open_wchar(&this->filebuf, name, mode|OPENMODE_out, prot)) {
10447 basic_ios_wchar *basic_ios = basic_ostream_wchar_get_basic_ios(&this->base);
10448 basic_ios_wchar_setstate(basic_ios, IOSTATE_failbit);
10452 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGI@Z */
10453 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGI@Z */
10454 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WI@Z */
10455 /* ?open@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WI@Z */
10456 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPBGI@Z */
10457 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGI@Z */
10458 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QAEXPB_WI@Z */
10459 /* ?open@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WI@Z */
10460 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_open_wchar_old, 12)
10461 void __thiscall basic_ofstream_wchar_open_wchar_old(basic_ofstream_wchar *this,
10462 const wchar_t *name, unsigned int mode)
10464 basic_ofstream_wchar_open_wchar(this, name, mode, _SH_DENYNO);
10467 /* ?rdbuf@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
10468 /* ?rdbuf@?$basic_ofstream@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
10469 /* ?rdbuf@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
10470 /* ?rdbuf@?$basic_ofstream@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
10471 DEFINE_THISCALL_WRAPPER(basic_ofstream_wchar_rdbuf, 4)
10472 basic_filebuf_wchar* __thiscall basic_ofstream_wchar_rdbuf(const basic_ofstream_wchar *this)
10474 TRACE("(%p)\n", this);
10475 return (basic_filebuf_wchar*)&this->filebuf;
10478 static inline basic_ios_char* basic_ifstream_char_to_basic_ios(basic_ifstream_char *ptr)
10480 return (basic_ios_char*)((char*)ptr+basic_ifstream_char_vbtable[1]);
10483 static inline basic_ifstream_char* basic_ifstream_char_from_basic_ios(basic_ios_char *ptr)
10485 return (basic_ifstream_char*)((char*)ptr-basic_ifstream_char_vbtable[1]);
10488 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@XZ */
10489 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@XZ */
10490 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor, 8)
10491 basic_ifstream_char* __thiscall basic_ifstream_char_ctor(basic_ifstream_char *this, MSVCP_bool virt_init)
10493 basic_ios_char *basic_ios;
10495 TRACE("(%p %d)\n", this, virt_init);
10498 this->base.vbtable = basic_ifstream_char_vbtable;
10499 basic_ios = basic_istream_char_get_basic_ios(&this->base);
10500 basic_ios_char_ctor(basic_ios);
10502 basic_ios = basic_istream_char_get_basic_ios(&this->base);
10505 basic_filebuf_char_ctor(&this->filebuf);
10506 basic_istream_char_ctor(&this->base, &this->filebuf.base, FALSE, FALSE);
10507 basic_ios->base.vtable = &MSVCP_basic_ifstream_char_vtable;
10511 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
10512 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
10513 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor_file, 12)
10514 basic_ifstream_char* __thiscall basic_ifstream_char_ctor_file(
10515 basic_ifstream_char *this, FILE *file, MSVCP_bool virt_init)
10517 basic_ios_char *basic_ios;
10519 TRACE("(%p %p %d)\n", this, file, virt_init);
10522 this->base.vbtable = basic_ifstream_char_vbtable;
10523 basic_ios = basic_istream_char_get_basic_ios(&this->base);
10524 basic_ios_char_ctor(basic_ios);
10526 basic_ios = basic_istream_char_get_basic_ios(&this->base);
10529 basic_filebuf_char_ctor_file(&this->filebuf, file);
10530 basic_istream_char_ctor(&this->base, &this->filebuf.base, FALSE, FALSE);
10531 basic_ios->base.vtable = &MSVCP_basic_ifstream_char_vtable;
10535 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PBDHH@Z */
10536 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDHH@Z */
10537 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor_name, 20)
10538 basic_ifstream_char* __thiscall basic_ifstream_char_ctor_name(basic_ifstream_char *this,
10539 const char *name, int mode, int prot, MSVCP_bool virt_init)
10541 TRACE("(%p %s %d %d %d)\n", this, name, mode, prot, virt_init);
10543 basic_ifstream_char_ctor(this, virt_init);
10545 if(!basic_filebuf_char_open(&this->filebuf, name, mode|OPENMODE_in, prot)) {
10546 basic_ios_char *basic_ios = basic_istream_char_get_basic_ios(&this->base);
10547 basic_ios_char_setstate(basic_ios, IOSTATE_failbit);
10552 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PBGHH@Z */
10553 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEBGHH@Z */
10554 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PB_WHH@Z */
10555 /* ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@PEB_WHH@Z */
10556 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_ctor_name_wchar, 20)
10557 basic_ifstream_char* __thiscall basic_ifstream_char_ctor_name_wchar(basic_ifstream_char *this,
10558 const wchar_t *name, int mode, int prot, MSVCP_bool virt_init)
10560 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name), mode, prot, virt_init);
10562 basic_ifstream_char_ctor(this, virt_init);
10564 if(!basic_filebuf_char_open_wchar(&this->filebuf, name, mode|OPENMODE_in, prot)) {
10565 basic_ios_char *basic_ios = basic_istream_char_get_basic_ios(&this->base);
10566 basic_ios_char_setstate(basic_ios, IOSTATE_failbit);
10571 /* ??1?$basic_ifstream@DU?$char_traits@D@std@@@std@@UAE@XZ */
10572 /* ??1?$basic_ifstream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
10573 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_dtor, 4)
10574 void __thiscall basic_ifstream_char_dtor(basic_ios_char *base)
10576 basic_ifstream_char *this = basic_ifstream_char_from_basic_ios(base);
10578 TRACE("(%p)\n", this);
10580 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&this->base));
10581 basic_filebuf_char_dtor(&this->filebuf);
10584 /* ??_D?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
10585 /* ??_D?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
10586 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_vbase_dtor, 4)
10587 void __thiscall basic_ifstream_char_vbase_dtor(basic_ifstream_char *this)
10589 TRACE("(%p)\n", this);
10591 basic_ifstream_char_dtor(basic_ifstream_char_to_basic_ios(this));
10592 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base));
10595 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_vector_dtor, 8)
10596 basic_ifstream_char* __thiscall basic_ifstream_char_vector_dtor(basic_ios_char *base, unsigned int flags)
10598 basic_ifstream_char *this = basic_ifstream_char_from_basic_ios(base);
10600 TRACE("(%p %x)\n", this, flags);
10603 /* we have an array, with the number of elements stored before the first object */
10604 INT_PTR i, *ptr = (INT_PTR *)this-1;
10606 for(i=*ptr-1; i>=0; i--)
10607 basic_ifstream_char_vbase_dtor(this+i);
10608 MSVCRT_operator_delete(ptr);
10610 basic_ifstream_char_vbase_dtor(this);
10612 MSVCRT_operator_delete(this);
10618 /* ?close@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
10619 /* ?close@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
10620 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_close, 4)
10621 void __thiscall basic_ifstream_char_close(basic_ifstream_char *this)
10623 TRACE("(%p)\n", this);
10625 if(!basic_filebuf_char_close(&this->filebuf)) {
10626 basic_ios_char *basic_ios = basic_istream_char_get_basic_ios(&this->base);
10627 basic_ios_char_setstate(basic_ios, IOSTATE_failbit);
10631 /* ?is_open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QBE_NXZ */
10632 /* ?is_open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
10633 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_is_open, 4)
10634 MSVCP_bool __thiscall basic_ifstream_char_is_open(const basic_ifstream_char *this)
10636 TRACE("(%p)\n", this);
10637 return basic_filebuf_char_is_open(&this->filebuf);
10640 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBDHH@Z */
10641 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDHH@Z */
10642 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_open, 16)
10643 void __thiscall basic_ifstream_char_open(basic_ifstream_char *this,
10644 const char *name, int mode, int prot)
10646 TRACE("(%p %s %d %d)\n", this, name, mode, prot);
10648 if(!basic_filebuf_char_open(&this->filebuf, name, mode|OPENMODE_in, prot)) {
10649 basic_ios_char *basic_ios = basic_istream_char_get_basic_ios(&this->base);
10650 basic_ios_char_setstate(basic_ios, IOSTATE_failbit);
10654 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBDI@Z */
10655 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDI@Z */
10656 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_open_old, 12)
10657 void __thiscall basic_ifstream_char_open_old(basic_ifstream_char *this,
10658 const char *name, unsigned int mode)
10660 basic_ifstream_char_open(this, name, mode, _SH_DENYNO);
10663 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBGHH@Z */
10664 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGHH@Z */
10665 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPB_WHH@Z */
10666 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WHH@Z */
10667 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_open_wchar, 16)
10668 void __thiscall basic_ifstream_char_open_wchar(basic_ifstream_char *this,
10669 const wchar_t *name, int mode, int prot)
10671 TRACE("(%p %s %d %d)\n", this, debugstr_w(name), mode, prot);
10673 if(!basic_filebuf_char_open_wchar(&this->filebuf, name, mode|OPENMODE_in, prot)) {
10674 basic_ios_char *basic_ios = basic_istream_char_get_basic_ios(&this->base);
10675 basic_ios_char_setstate(basic_ios, IOSTATE_failbit);
10679 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBGI@Z */
10680 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGI@Z */
10681 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPB_WI@Z */
10682 /* ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WI@Z */
10683 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_open_wchar_old, 12)
10684 void __thiscall basic_ifstream_char_open_wchar_old(basic_ifstream_char *this,
10685 const wchar_t *name, unsigned int mode)
10687 basic_ifstream_char_open_wchar(this, name, mode, _SH_DENYNO);
10690 /* ?rdbuf@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
10691 /* ?rdbuf@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
10692 DEFINE_THISCALL_WRAPPER(basic_ifstream_char_rdbuf, 4)
10693 basic_filebuf_char* __thiscall basic_ifstream_char_rdbuf(const basic_ifstream_char *this)
10695 TRACE("(%p)\n", this);
10696 return (basic_filebuf_char*)&this->filebuf;
10699 static inline basic_ios_wchar* basic_ifstream_wchar_to_basic_ios(basic_ifstream_wchar *ptr)
10701 return (basic_ios_wchar*)((char*)ptr+basic_ifstream_wchar_vbtable[1]);
10704 static inline basic_ifstream_wchar* basic_ifstream_wchar_from_basic_ios(basic_ios_wchar *ptr)
10706 return (basic_ifstream_wchar*)((char*)ptr-basic_ifstream_wchar_vbtable[1]);
10709 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@XZ */
10710 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@XZ */
10711 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_ctor, 8)
10712 basic_ifstream_wchar* __thiscall basic_ifstream_wchar_ctor(basic_ifstream_wchar *this, MSVCP_bool virt_init)
10714 basic_ios_wchar *basic_ios;
10716 TRACE("(%p %d)\n", this, virt_init);
10719 this->base.vbtable = basic_ifstream_wchar_vbtable;
10720 basic_ios = basic_istream_wchar_get_basic_ios(&this->base);
10721 basic_ios_wchar_ctor(basic_ios);
10723 basic_ios = basic_istream_wchar_get_basic_ios(&this->base);
10726 basic_filebuf_wchar_ctor(&this->filebuf);
10727 basic_istream_wchar_ctor(&this->base, &this->filebuf.base, FALSE, FALSE);
10728 basic_ios->base.vtable = &MSVCP_basic_ifstream_wchar_vtable;
10732 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@XZ */
10733 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@XZ */
10734 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor, 8)
10735 basic_ifstream_wchar* __thiscall basic_ifstream_short_ctor(basic_ifstream_wchar *this, MSVCP_bool virt_init)
10737 basic_ifstream_wchar_ctor(this, virt_init);
10738 basic_istream_wchar_get_basic_ios(&this->base)->base.vtable = &MSVCP_basic_ifstream_short_vtable;
10742 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
10743 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
10744 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_ctor_file, 12)
10745 basic_ifstream_wchar* __thiscall basic_ifstream_wchar_ctor_file(
10746 basic_ifstream_wchar *this, FILE *file, MSVCP_bool virt_init)
10748 basic_ios_wchar *basic_ios;
10750 TRACE("(%p %p %d)\n", this, file, virt_init);
10753 this->base.vbtable = basic_ifstream_wchar_vbtable;
10754 basic_ios = basic_istream_wchar_get_basic_ios(&this->base);
10755 basic_ios_wchar_ctor(basic_ios);
10757 basic_ios = basic_istream_wchar_get_basic_ios(&this->base);
10760 basic_filebuf_wchar_ctor_file(&this->filebuf, file);
10761 basic_istream_wchar_ctor(&this->base, &this->filebuf.base, FALSE, FALSE);
10762 basic_ios->base.vtable = &MSVCP_basic_ifstream_wchar_vtable;
10766 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
10767 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
10768 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor_file, 12)
10769 basic_ifstream_wchar* __thiscall basic_ifstream_short_ctor_file(
10770 basic_ifstream_wchar *this, FILE *file, MSVCP_bool virt_init)
10772 basic_ifstream_wchar_ctor_file(this, file, virt_init);
10773 basic_istream_wchar_get_basic_ios(&this->base)->base.vtable = &MSVCP_basic_ifstream_short_vtable;
10777 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@PBDHH@Z */
10778 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBDHH@Z */
10779 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_ctor_name, 20)
10780 basic_ifstream_wchar* __thiscall basic_ifstream_wchar_ctor_name(basic_ifstream_wchar *this,
10781 const char *name, int mode, int prot, MSVCP_bool virt_init)
10783 TRACE("(%p %s %d %d %d)\n", this, name, mode, prot, virt_init);
10785 basic_ifstream_wchar_ctor(this, virt_init);
10787 if(!basic_filebuf_wchar_open(&this->filebuf, name, mode|OPENMODE_in, prot)) {
10788 basic_ios_wchar *basic_ios = basic_istream_wchar_get_basic_ios(&this->base);
10789 basic_ios_wchar_setstate(basic_ios, IOSTATE_failbit);
10794 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@PBDHH@Z */
10795 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@PEBDHH@Z */
10796 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor_name, 20)
10797 basic_ifstream_wchar* __thiscall basic_ifstream_short_ctor_name(basic_ifstream_wchar *this,
10798 const char *name, int mode, int prot, MSVCP_bool virt_init)
10800 basic_ifstream_wchar_ctor_name(this, name, mode, prot, virt_init);
10801 basic_istream_wchar_get_basic_ios(&this->base)->base.vtable = &MSVCP_basic_ifstream_short_vtable;
10805 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@PBGHH@Z */
10806 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBGHH@Z */
10807 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAE@PB_WHH@Z */
10808 /* ??0?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEB_WHH@Z */
10809 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_ctor_name_wchar, 20)
10810 basic_ifstream_wchar* __thiscall basic_ifstream_wchar_ctor_name_wchar(basic_ifstream_wchar *this,
10811 const wchar_t *name, int mode, int prot, MSVCP_bool virt_init)
10813 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name), mode, prot, virt_init);
10815 basic_ifstream_wchar_ctor(this, virt_init);
10817 if(!basic_filebuf_wchar_open_wchar(&this->filebuf, name, mode|OPENMODE_in, prot)) {
10818 basic_ios_wchar *basic_ios = basic_istream_wchar_get_basic_ios(&this->base);
10819 basic_ios_wchar_setstate(basic_ios, IOSTATE_failbit);
10824 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@PBGHH@Z */
10825 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@PEBGHH@Z */
10826 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAE@PB_WHH@Z */
10827 /* ??0?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAA@PEB_WHH@Z */
10828 DEFINE_THISCALL_WRAPPER(basic_ifstream_short_ctor_name_wchar, 20)
10829 basic_ifstream_wchar* __thiscall basic_ifstream_short_ctor_name_wchar(basic_ifstream_wchar *this,
10830 const wchar_t *name, int mode, int prot, MSVCP_bool virt_init)
10832 basic_ifstream_wchar_ctor_name_wchar(this, name, mode, prot, virt_init);
10833 basic_istream_wchar_get_basic_ios(&this->base)->base.vtable = &MSVCP_basic_ifstream_short_vtable;
10837 /* ??1?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
10838 /* ??1?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
10839 /* ??1?$basic_ifstream@GU?$char_traits@G@std@@@std@@UAE@XZ */
10840 /* ??1?$basic_ifstream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
10841 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_dtor, 4)
10842 void __thiscall basic_ifstream_wchar_dtor(basic_ios_wchar *base)
10844 basic_ifstream_wchar *this = basic_ifstream_wchar_from_basic_ios(base);
10846 TRACE("(%p)\n", this);
10848 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(&this->base));
10849 basic_filebuf_wchar_dtor(&this->filebuf);
10852 /* ??_D?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
10853 /* ??_D?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
10854 /* ??_D?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
10855 /* ??_D?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
10856 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_vbase_dtor, 4)
10857 void __thiscall basic_ifstream_wchar_vbase_dtor(basic_ifstream_wchar *this)
10859 TRACE("(%p)\n", this);
10861 basic_ifstream_wchar_dtor(basic_ifstream_wchar_to_basic_ios(this));
10862 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(&this->base));
10865 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_vector_dtor, 8)
10866 basic_ifstream_wchar* __thiscall basic_ifstream_wchar_vector_dtor(basic_ios_wchar *base, unsigned int flags)
10868 basic_ifstream_wchar *this = basic_ifstream_wchar_from_basic_ios(base);
10870 TRACE("(%p %x)\n", this, flags);
10873 /* we have an array, with the number of elements stored before the first object */
10874 INT_PTR i, *ptr = (INT_PTR *)this-1;
10876 for(i=*ptr-1; i>=0; i--)
10877 basic_ifstream_wchar_vbase_dtor(this+i);
10878 MSVCRT_operator_delete(ptr);
10880 basic_ifstream_wchar_vbase_dtor(this);
10882 MSVCRT_operator_delete(this);
10888 /* ?close@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
10889 /* ?close@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
10890 /* ?close@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
10891 /* ?close@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
10892 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_close, 4)
10893 void __thiscall basic_ifstream_wchar_close(basic_ifstream_wchar *this)
10895 TRACE("(%p)\n", this);
10897 if(!basic_filebuf_wchar_close(&this->filebuf)) {
10898 basic_ios_wchar *basic_ios = basic_istream_wchar_get_basic_ios(&this->base);
10899 basic_ios_wchar_setstate(basic_ios, IOSTATE_failbit);
10903 /* ?is_open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
10904 /* ?is_open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
10905 /* ?is_open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QBE_NXZ */
10906 /* ?is_open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
10907 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_is_open, 4)
10908 MSVCP_bool __thiscall basic_ifstream_wchar_is_open(const basic_ifstream_wchar *this)
10910 TRACE("(%p)\n", this);
10911 return basic_filebuf_wchar_is_open(&this->filebuf);
10914 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDHH@Z */
10915 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDHH@Z */
10916 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPBDHH@Z */
10917 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDHH@Z */
10918 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_open, 16)
10919 void __thiscall basic_ifstream_wchar_open(basic_ifstream_wchar *this,
10920 const char *name, int mode, int prot)
10922 TRACE("(%p %s %d %d)\n", this, name, mode, prot);
10924 if(!basic_filebuf_wchar_open(&this->filebuf, name, mode|OPENMODE_in, prot)) {
10925 basic_ios_wchar *basic_ios = basic_istream_wchar_get_basic_ios(&this->base);
10926 basic_ios_wchar_setstate(basic_ios, IOSTATE_failbit);
10930 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDI@Z */
10931 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDI@Z */
10932 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPBDI@Z */
10933 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDI@Z */
10934 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_open_old, 12)
10935 void __thiscall basic_ifstream_wchar_open_old(basic_ifstream_wchar *this,
10936 const char *name, unsigned int mode)
10938 basic_ifstream_wchar_open(this, name, mode, _SH_DENYNO);
10941 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGHH@Z */
10942 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGHH@Z */
10943 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WHH@Z */
10944 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WHH@Z */
10945 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPBGHH@Z */
10946 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGHH@Z */
10947 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPB_WHH@Z */
10948 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WHH@Z */
10949 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_open_wchar, 16)
10950 void __thiscall basic_ifstream_wchar_open_wchar(basic_ifstream_wchar *this,
10951 const wchar_t *name, int mode, int prot)
10953 TRACE("(%p %s %d %d)\n", this, debugstr_w(name), mode, prot);
10955 if(!basic_filebuf_wchar_open_wchar(&this->filebuf, name, mode|OPENMODE_in, prot)) {
10956 basic_ios_wchar *basic_ios = basic_istream_wchar_get_basic_ios(&this->base);
10957 basic_ios_wchar_setstate(basic_ios, IOSTATE_failbit);
10961 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGI@Z */
10962 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGI@Z */
10963 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WI@Z */
10964 /* ?open@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WI@Z */
10965 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPBGI@Z */
10966 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGI@Z */
10967 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QAEXPB_WI@Z */
10968 /* ?open@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WI@Z */
10969 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_open_wchar_old, 12)
10970 void __thiscall basic_ifstream_wchar_open_wchar_old(basic_ifstream_wchar *this,
10971 const wchar_t *name, unsigned int mode)
10973 basic_ifstream_wchar_open_wchar(this, name, mode, _SH_DENYNO);
10976 /* ?rdbuf@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
10977 /* ?rdbuf@?$basic_ifstream@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
10978 /* ?rdbuf@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
10979 /* ?rdbuf@?$basic_ifstream@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
10980 DEFINE_THISCALL_WRAPPER(basic_ifstream_wchar_rdbuf, 4)
10981 basic_filebuf_wchar* __thiscall basic_ifstream_wchar_rdbuf(const basic_ifstream_wchar *this)
10983 TRACE("(%p)\n", this);
10984 return (basic_filebuf_wchar*)&this->filebuf;
10987 static inline basic_ios_char* basic_fstream_char_to_basic_ios(basic_fstream_char *ptr)
10989 return (basic_ios_char*)((char*)ptr+basic_fstream_char_vbtable1[1]);
10992 static inline basic_fstream_char* basic_fstream_char_from_basic_ios(basic_ios_char *ptr)
10994 return (basic_fstream_char*)((char*)ptr-basic_fstream_char_vbtable1[1]);
10997 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@XZ */
10998 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@XZ */
10999 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor, 8)
11000 basic_fstream_char* __thiscall basic_fstream_char_ctor(basic_fstream_char *this, MSVCP_bool virt_init)
11002 basic_ios_char *basic_ios;
11004 TRACE("(%p %d)\n", this, virt_init);
11007 this->base.base1.vbtable = basic_fstream_char_vbtable1;
11008 this->base.base2.vbtable = basic_fstream_char_vbtable2;
11009 basic_ios = basic_istream_char_get_basic_ios(&this->base.base1);
11010 basic_ios_char_ctor(basic_ios);
11012 basic_ios = basic_istream_char_get_basic_ios(&this->base.base1);
11015 basic_filebuf_char_ctor(&this->filebuf);
11016 basic_iostream_char_ctor(&this->base, &this->filebuf.base, FALSE);
11017 basic_ios->base.vtable = &MSVCP_basic_fstream_char_vtable;
11021 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PAU_iobuf@@@Z */
11022 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11023 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor_file, 12)
11024 basic_fstream_char* __thiscall basic_fstream_char_ctor_file(basic_fstream_char *this,
11025 FILE *file, MSVCP_bool virt_init)
11027 basic_ios_char *basic_ios;
11029 TRACE("(%p %p %d)\n", this, file, virt_init);
11032 this->base.base1.vbtable = basic_fstream_char_vbtable1;
11033 this->base.base2.vbtable = basic_fstream_char_vbtable2;
11034 basic_ios = basic_istream_char_get_basic_ios(&this->base.base1);
11035 basic_ios_char_ctor(basic_ios);
11037 basic_ios = basic_istream_char_get_basic_ios(&this->base.base1);
11040 basic_filebuf_char_ctor_file(&this->filebuf, file);
11041 basic_iostream_char_ctor(&this->base, &this->filebuf.base, FALSE);
11042 basic_ios->base.vtable = &MSVCP_basic_fstream_char_vtable;
11046 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PBDHH@Z */
11047 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEBDHH@Z */
11048 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor_name, 20)
11049 basic_fstream_char* __thiscall basic_fstream_char_ctor_name(basic_fstream_char *this,
11050 const char *name, int mode, int prot, MSVCP_bool virt_init)
11052 TRACE("(%p %s %d %d %d)\n", this, name, mode, prot, virt_init);
11054 basic_fstream_char_ctor(this, virt_init);
11056 if(!basic_filebuf_char_open(&this->filebuf, name, mode, prot)) {
11057 basic_ios_char *basic_ios = basic_istream_char_get_basic_ios(&this->base.base1);
11058 basic_ios_char_setstate(basic_ios, IOSTATE_failbit);
11063 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PBGHH@Z */
11064 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEBGHH@Z */
11065 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PB_WHH@Z */
11066 /* ??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAA@PEB_WHH@Z */
11067 DEFINE_THISCALL_WRAPPER(basic_fstream_char_ctor_name_wchar, 20)
11068 basic_fstream_char* __thiscall basic_fstream_char_ctor_name_wchar(basic_fstream_char *this,
11069 const wchar_t *name, int mode, int prot, MSVCP_bool virt_init)
11071 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name), mode, prot, virt_init);
11073 basic_fstream_char_ctor(this, virt_init);
11075 if(!basic_filebuf_char_open_wchar(&this->filebuf, name, mode, prot)) {
11076 basic_ios_char *basic_ios = basic_istream_char_get_basic_ios(&this->base.base1);
11077 basic_ios_char_setstate(basic_ios, IOSTATE_failbit);
11082 /* ??1?$basic_fstream@DU?$char_traits@D@std@@@std@@UAE@XZ */
11083 /* ??1?$basic_fstream@DU?$char_traits@D@std@@@std@@UEAA@XZ */
11084 DEFINE_THISCALL_WRAPPER(basic_fstream_char_dtor, 4)
11085 void __thiscall basic_fstream_char_dtor(basic_ios_char *base)
11087 basic_fstream_char *this = basic_fstream_char_from_basic_ios(base);
11089 TRACE("(%p)\n", this);
11091 basic_iostream_char_dtor(basic_iostream_char_to_basic_ios(&this->base));
11092 basic_filebuf_char_dtor(&this->filebuf);
11095 /* ??_D?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
11096 /* ??_D?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
11097 DEFINE_THISCALL_WRAPPER(basic_fstream_char_vbase_dtor, 4)
11098 void __thiscall basic_fstream_char_vbase_dtor(basic_fstream_char *this)
11100 TRACE("(%p)\n", this);
11102 basic_fstream_char_dtor(basic_fstream_char_to_basic_ios(this));
11103 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base.base1));
11106 DEFINE_THISCALL_WRAPPER(basic_fstream_char_vector_dtor, 8)
11107 basic_fstream_char* __thiscall basic_fstream_char_vector_dtor(basic_ios_char *base, unsigned int flags)
11109 basic_fstream_char *this = basic_fstream_char_from_basic_ios(base);
11111 TRACE("(%p %x)\n", this, flags);
11114 /* we have an array, with the number of elements stored before the first object */
11115 INT_PTR i, *ptr = (INT_PTR *)this-1;
11117 for(i=*ptr-1; i>=0; i--)
11118 basic_fstream_char_vbase_dtor(this+i);
11119 MSVCRT_operator_delete(ptr);
11121 basic_fstream_char_vbase_dtor(this);
11123 MSVCRT_operator_delete(this);
11129 /* ?close@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXXZ */
11130 /* ?close@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXXZ */
11131 DEFINE_THISCALL_WRAPPER(basic_fstream_char_close, 4)
11132 void __thiscall basic_fstream_char_close(basic_fstream_char *this)
11134 TRACE("(%p)\n", this);
11136 if(!basic_filebuf_char_close(&this->filebuf)) {
11137 basic_ios_char *basic_ios = basic_istream_char_get_basic_ios(&this->base.base1);
11138 basic_ios_char_setstate(basic_ios, IOSTATE_failbit);
11142 /* ?is_open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QBE_NXZ */
11143 /* ?is_open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEBA_NXZ */
11144 DEFINE_THISCALL_WRAPPER(basic_fstream_char_is_open, 4)
11145 MSVCP_bool __thiscall basic_fstream_char_is_open(const basic_fstream_char *this)
11147 TRACE("(%p)\n", this);
11148 return basic_filebuf_char_is_open(&this->filebuf);
11151 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPBDHH@Z */
11152 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDHH@Z */
11153 DEFINE_THISCALL_WRAPPER(basic_fstream_char_open, 16)
11154 void __thiscall basic_fstream_char_open(basic_fstream_char *this,
11155 const char *name, int mode, int prot)
11157 TRACE("(%p %s %d %d)\n", this, name, mode, prot);
11159 if(!basic_filebuf_char_open(&this->filebuf, name, mode, prot)) {
11160 basic_ios_char *basic_ios = basic_istream_char_get_basic_ios(&this->base.base1);
11161 basic_ios_char_setstate(basic_ios, IOSTATE_failbit);
11165 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPBDI@Z */
11166 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDI@Z */
11167 DEFINE_THISCALL_WRAPPER(basic_fstream_char_open_old, 12)
11168 void __thiscall basic_fstream_char_open_old(basic_fstream_char *this,
11169 const char *name, unsigned int mode)
11171 basic_fstream_char_open(this, name, mode, _SH_DENYNO);
11174 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPBGHH@Z */
11175 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGHH@Z */
11176 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPB_WHH@Z */
11177 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WHH@Z */
11178 DEFINE_THISCALL_WRAPPER(basic_fstream_char_open_wchar, 16)
11179 void __thiscall basic_fstream_char_open_wchar(basic_fstream_char *this,
11180 const wchar_t *name, int mode, int prot)
11182 TRACE("(%p %s %d %d)\n", this, debugstr_w(name), mode, prot);
11184 if(!basic_filebuf_char_open_wchar(&this->filebuf, name, mode, prot)) {
11185 basic_ios_char *basic_ios = basic_istream_char_get_basic_ios(&this->base.base1);
11186 basic_ios_char_setstate(basic_ios, IOSTATE_failbit);
11190 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPBGI@Z */
11191 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEBGI@Z */
11192 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QAEXPB_WI@Z */
11193 /* ?open@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEAAXPEB_WI@Z */
11194 DEFINE_THISCALL_WRAPPER(basic_fstream_char_open_wchar_old, 12)
11195 void __thiscall basic_fstream_char_open_wchar_old(basic_fstream_char *this,
11196 const wchar_t *name, unsigned int mode)
11198 basic_fstream_char_open_wchar(this, name, mode, _SH_DENYNO);
11201 /* ?rdbuf@?$basic_fstream@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
11202 /* ?rdbuf@?$basic_fstream@DU?$char_traits@D@std@@@std@@QEBAPEAV?$basic_filebuf@DU?$char_traits@D@std@@@2@XZ */
11203 DEFINE_THISCALL_WRAPPER(basic_fstream_char_rdbuf, 4)
11204 basic_filebuf_char* __thiscall basic_fstream_char_rdbuf(const basic_fstream_char *this)
11206 TRACE("(%p)\n", this);
11207 return (basic_filebuf_char*)&this->filebuf;
11210 static inline basic_ios_wchar* basic_fstream_wchar_to_basic_ios(basic_fstream_wchar *ptr)
11212 return (basic_ios_wchar*)((char*)ptr+basic_fstream_wchar_vbtable1[1]);
11215 static inline basic_fstream_wchar* basic_fstream_wchar_from_basic_ios(basic_ios_wchar *ptr)
11217 return (basic_fstream_wchar*)((char*)ptr-basic_fstream_wchar_vbtable1[1]);
11220 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@XZ */
11221 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@XZ */
11222 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_ctor, 8)
11223 basic_fstream_wchar* __thiscall basic_fstream_wchar_ctor(basic_fstream_wchar *this, MSVCP_bool virt_init)
11225 basic_ios_wchar *basic_ios;
11227 TRACE("(%p %d)\n", this, virt_init);
11230 this->base.base1.vbtable = basic_fstream_wchar_vbtable1;
11231 this->base.base2.vbtable = basic_fstream_wchar_vbtable2;
11232 basic_ios = basic_istream_wchar_get_basic_ios(&this->base.base1);
11233 basic_ios_wchar_ctor(basic_ios);
11235 basic_ios = basic_istream_wchar_get_basic_ios(&this->base.base1);
11238 basic_filebuf_wchar_ctor(&this->filebuf);
11239 basic_iostream_wchar_ctor(&this->base, &this->filebuf.base, FALSE);
11240 basic_ios->base.vtable = &MSVCP_basic_fstream_wchar_vtable;
11244 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@XZ */
11245 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@XZ */
11246 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor, 8)
11247 basic_fstream_wchar* __thiscall basic_fstream_short_ctor(basic_fstream_wchar *this, MSVCP_bool virt_init)
11249 basic_fstream_wchar_ctor(this, virt_init);
11250 basic_istream_wchar_get_basic_ios(&this->base.base1)->base.vtable = &MSVCP_basic_fstream_short_vtable;
11254 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PAU_iobuf@@@Z */
11255 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11256 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_ctor_file, 12)
11257 basic_fstream_wchar* __thiscall basic_fstream_wchar_ctor_file(basic_fstream_wchar *this,
11258 FILE *file, MSVCP_bool virt_init)
11260 basic_ios_wchar *basic_ios;
11262 TRACE("(%p %p %d)\n", this, file, virt_init);
11265 this->base.base1.vbtable = basic_fstream_wchar_vbtable1;
11266 this->base.base2.vbtable = basic_fstream_wchar_vbtable2;
11267 basic_ios = basic_istream_wchar_get_basic_ios(&this->base.base1);
11268 basic_ios_wchar_ctor(basic_ios);
11270 basic_ios = basic_istream_wchar_get_basic_ios(&this->base.base1);
11273 basic_filebuf_wchar_ctor_file(&this->filebuf, file);
11274 basic_iostream_wchar_ctor(&this->base, &this->filebuf.base, FALSE);
11275 basic_ios->base.vtable = &MSVCP_basic_fstream_wchar_vtable;
11279 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@PAU_iobuf@@@Z */
11280 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@PEAU_iobuf@@@Z */
11281 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor_file, 12)
11282 basic_fstream_wchar* __thiscall basic_fstream_short_ctor_file(basic_fstream_wchar *this,
11283 FILE *file, MSVCP_bool virt_init)
11285 basic_fstream_wchar_ctor_file(this, file, virt_init);
11286 basic_istream_wchar_get_basic_ios(&this->base.base1)->base.vtable = &MSVCP_basic_fstream_short_vtable;
11290 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PB_WHH@Z */
11291 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEB_WHH@Z */
11292 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_ctor_name, 20)
11293 basic_fstream_wchar* __thiscall basic_fstream_wchar_ctor_name(basic_fstream_wchar *this,
11294 const char *name, int mode, int prot, MSVCP_bool virt_init)
11296 TRACE("(%p %s %d %d %d)\n", this, name, mode, prot, virt_init);
11298 basic_fstream_wchar_ctor(this, virt_init);
11300 if(!basic_filebuf_wchar_open(&this->filebuf, name, mode, prot)) {
11301 basic_ios_wchar *basic_ios = basic_istream_wchar_get_basic_ios(&this->base.base1);
11302 basic_ios_wchar_setstate(basic_ios, IOSTATE_failbit);
11307 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@PBGHH@Z */
11308 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@PEBGHH@Z */
11309 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor_name, 20)
11310 basic_fstream_wchar* __thiscall basic_fstream_short_ctor_name(basic_fstream_wchar *this,
11311 const char *name, int mode, int prot, MSVCP_bool virt_init)
11313 basic_fstream_wchar_ctor_name(this, name, mode, prot, virt_init);
11314 basic_istream_wchar_get_basic_ios(&this->base.base1)->base.vtable = &MSVCP_basic_fstream_short_vtable;
11318 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PBGHH@Z */
11319 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEBGHH@Z */
11320 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAE@PB_WHH@Z */
11321 /* ??0?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAA@PEB_WHH@Z */
11322 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_ctor_name_wchar, 20)
11323 basic_fstream_wchar* __thiscall basic_fstream_wchar_ctor_name_wchar(basic_fstream_wchar *this,
11324 const wchar_t *name, int mode, int prot, MSVCP_bool virt_init)
11326 TRACE("(%p %s %d %d %d)\n", this, debugstr_w(name), mode, prot, virt_init);
11328 basic_fstream_wchar_ctor(this, virt_init);
11330 if(!basic_filebuf_wchar_open_wchar(&this->filebuf, name, mode, prot)) {
11331 basic_ios_wchar *basic_ios = basic_istream_wchar_get_basic_ios(&this->base.base1);
11332 basic_ios_wchar_setstate(basic_ios, IOSTATE_failbit);
11337 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@PBGHH@Z */
11338 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@PEBGHH@Z */
11339 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QAE@PB_WHH@Z */
11340 /* ??0?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAA@PEB_WHH@Z */
11341 DEFINE_THISCALL_WRAPPER(basic_fstream_short_ctor_name_wchar, 20)
11342 basic_fstream_wchar* __thiscall basic_fstream_short_ctor_name_wchar(basic_fstream_wchar *this,
11343 const wchar_t *name, int mode, int prot, MSVCP_bool virt_init)
11345 basic_fstream_wchar_ctor_name_wchar(this, name, mode, prot, virt_init);
11346 basic_istream_wchar_get_basic_ios(&this->base.base1)->base.vtable = &MSVCP_basic_fstream_short_vtable;
11350 /* ??1?$basic_fstream@_WU?$char_traits@_W@std@@@std@@UAE@XZ */
11351 /* ??1?$basic_fstream@_WU?$char_traits@_W@std@@@std@@UEAA@XZ */
11352 /* ??1?$basic_fstream@GU?$char_traits@G@std@@@std@@UAE@XZ */
11353 /* ??1?$basic_fstream@GU?$char_traits@G@std@@@std@@UEAA@XZ */
11354 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_dtor, 4)
11355 void __thiscall basic_fstream_wchar_dtor(basic_ios_wchar *base)
11357 basic_fstream_wchar *this = basic_fstream_wchar_from_basic_ios(base);
11359 TRACE("(%p)\n", this);
11361 basic_iostream_wchar_dtor(basic_iostream_wchar_to_basic_ios(&this->base));
11362 basic_filebuf_wchar_dtor(&this->filebuf);
11365 /* ??_D?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
11366 /* ??_D?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
11367 /* ??_D?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
11368 /* ??_D?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
11369 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_vbase_dtor, 4)
11370 void __thiscall basic_fstream_wchar_vbase_dtor(basic_fstream_wchar *this)
11372 TRACE("(%p)\n", this);
11374 basic_fstream_wchar_dtor(basic_fstream_wchar_to_basic_ios(this));
11375 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(&this->base.base1));
11378 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_vector_dtor, 8)
11379 basic_fstream_wchar* __thiscall basic_fstream_wchar_vector_dtor(basic_ios_wchar *base, unsigned int flags)
11381 basic_fstream_wchar *this = basic_fstream_wchar_from_basic_ios(base);
11383 TRACE("(%p %x)\n", this, flags);
11386 /* we have an array, with the number of elements stored before the first object */
11387 INT_PTR i, *ptr = (INT_PTR *)this-1;
11389 for(i=*ptr-1; i>=0; i--)
11390 basic_fstream_wchar_vbase_dtor(this+i);
11391 MSVCRT_operator_delete(ptr);
11393 basic_fstream_wchar_vbase_dtor(this);
11395 MSVCRT_operator_delete(this);
11401 /* ?close@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXXZ */
11402 /* ?close@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXXZ */
11403 /* ?close@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXXZ */
11404 /* ?close@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXXZ */
11405 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_close, 4)
11406 void __thiscall basic_fstream_wchar_close(basic_fstream_wchar *this)
11408 TRACE("(%p)\n", this);
11410 if(!basic_filebuf_wchar_close(&this->filebuf)) {
11411 basic_ios_wchar *basic_ios = basic_istream_wchar_get_basic_ios(&this->base.base1);
11412 basic_ios_wchar_setstate(basic_ios, IOSTATE_failbit);
11416 /* ?is_open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QBE_NXZ */
11417 /* ?is_open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEBA_NXZ */
11418 /* ?is_open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QBE_NXZ */
11419 /* ?is_open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEBA_NXZ */
11420 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_is_open, 4)
11421 MSVCP_bool __thiscall basic_fstream_wchar_is_open(const basic_fstream_wchar *this)
11423 TRACE("(%p)\n", this);
11424 return basic_filebuf_wchar_is_open(&this->filebuf);
11427 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDHH@Z */
11428 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDHH@Z */
11429 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPBDHH@Z */
11430 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDHH@Z */
11431 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_open, 16)
11432 void __thiscall basic_fstream_wchar_open(basic_fstream_wchar *this,
11433 const char *name, int mode, int prot)
11435 TRACE("(%p %s %d %d)\n", this, name, mode, prot);
11437 if(!basic_filebuf_wchar_open(&this->filebuf, name, mode, prot)) {
11438 basic_ios_wchar *basic_ios = basic_istream_wchar_get_basic_ios(&this->base.base1);
11439 basic_ios_wchar_setstate(basic_ios, IOSTATE_failbit);
11443 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPBDI@Z */
11444 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBDI@Z */
11445 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPBDI@Z */
11446 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEBDI@Z */
11447 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_open_old, 12)
11448 void __thiscall basic_fstream_wchar_open_old(basic_fstream_wchar *this,
11449 const char *name, unsigned int mode)
11451 basic_fstream_wchar_open(this, name, mode, _SH_DENYNO);
11454 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGHH@Z */
11455 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGHH@Z */
11456 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WHH@Z */
11457 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WHH@Z */
11458 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPBGHH@Z */
11459 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGHH@Z */
11460 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPB_WHH@Z */
11461 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WHH@Z */
11462 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_open_wchar, 16)
11463 void __thiscall basic_fstream_wchar_open_wchar(basic_fstream_wchar *this,
11464 const wchar_t *name, int mode, int prot)
11466 TRACE("(%p %s %d %d)\n", this, debugstr_w(name), mode, prot);
11468 if(!basic_filebuf_wchar_open_wchar(&this->filebuf, name, mode, prot)) {
11469 basic_ios_wchar *basic_ios = basic_istream_wchar_get_basic_ios(&this->base.base1);
11470 basic_ios_wchar_setstate(basic_ios, IOSTATE_failbit);
11474 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPBGI@Z */
11475 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEBGI@Z */
11476 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QAEXPB_WI@Z */
11477 /* ?open@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEAAXPEB_WI@Z */
11478 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPBGI@Z */
11479 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEBGI@Z */
11480 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QAEXPB_WI@Z */
11481 /* ?open@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEAAXPEB_WI@Z */
11482 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_open_wchar_old, 12)
11483 void __thiscall basic_fstream_wchar_open_wchar_old(basic_fstream_wchar *this,
11484 const wchar_t *name, unsigned int mode)
11486 basic_fstream_wchar_open_wchar(this, name, mode, _SH_DENYNO);
11489 /* ?rdbuf@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QBEPAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
11490 /* ?rdbuf@?$basic_fstream@_WU?$char_traits@_W@std@@@std@@QEBAPEAV?$basic_filebuf@_WU?$char_traits@_W@std@@@2@XZ */
11491 /* ?rdbuf@?$basic_fstream@GU?$char_traits@G@std@@@std@@QBEPAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
11492 /* ?rdbuf@?$basic_fstream@GU?$char_traits@G@std@@@std@@QEBAPEAV?$basic_filebuf@GU?$char_traits@G@std@@@2@XZ */
11493 DEFINE_THISCALL_WRAPPER(basic_fstream_wchar_rdbuf, 4)
11494 basic_filebuf_wchar* __thiscall basic_fstream_wchar_rdbuf(const basic_fstream_wchar *this)
11496 TRACE("(%p)\n", this);
11497 return (basic_filebuf_wchar*)&this->filebuf;
11500 static inline basic_ios_char* basic_ostringstream_char_to_basic_ios(basic_ostringstream_char *ptr)
11502 return (basic_ios_char*)((char*)ptr+basic_ostringstream_char_vbtable[1]);
11505 static inline basic_ostringstream_char* basic_ostringstream_char_from_basic_ios(basic_ios_char *ptr)
11507 return (basic_ostringstream_char*)((char*)ptr-basic_ostringstream_char_vbtable[1]);
11510 /* ??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 */
11511 /* ??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 */
11512 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_ctor_str, 16)
11513 basic_ostringstream_char* __thiscall basic_ostringstream_char_ctor_str(basic_ostringstream_char *this,
11514 const basic_string_char *str, int mode, MSVCP_bool virt_init)
11516 basic_ios_char *basic_ios;
11518 TRACE("(%p %p %d %d)\n", this, str, mode, virt_init);
11521 this->base.vbtable = basic_ostringstream_char_vbtable;
11522 basic_ios = basic_ostream_char_get_basic_ios(&this->base);
11523 basic_ios_char_ctor(basic_ios);
11525 basic_ios = basic_ostream_char_get_basic_ios(&this->base);
11528 basic_stringbuf_char_ctor_str(&this->strbuf, str, mode|OPENMODE_out);
11529 basic_ostream_char_ctor(&this->base, &this->strbuf.base, FALSE, FALSE);
11530 basic_ios->base.vtable = &MSVCP_basic_ostringstream_char_vtable;
11534 /* ??0?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
11535 /* ??0?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
11536 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_ctor_mode, 12)
11537 basic_ostringstream_char* __thiscall basic_ostringstream_char_ctor_mode(
11538 basic_ostringstream_char *this, int mode, MSVCP_bool virt_init)
11540 basic_ios_char *basic_ios;
11542 TRACE("(%p %d %d)\n", this, mode, virt_init);
11545 this->base.vbtable = basic_ostringstream_char_vbtable;
11546 basic_ios = basic_ostream_char_get_basic_ios(&this->base);
11547 basic_ios_char_ctor(basic_ios);
11549 basic_ios = basic_ostream_char_get_basic_ios(&this->base);
11552 basic_stringbuf_char_ctor_mode(&this->strbuf, mode|OPENMODE_out);
11553 basic_ostream_char_ctor(&this->base, &this->strbuf.base, FALSE, FALSE);
11554 basic_ios->base.vtable = &MSVCP_basic_ostringstream_char_vtable;
11558 /* ??_F?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
11559 /* ??_F?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
11560 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_ctor, 8)
11561 basic_ostringstream_char* __thiscall basic_ostringstream_char_ctor(
11562 basic_ostringstream_char *this, MSVCP_bool virt_init)
11564 return basic_ostringstream_char_ctor_mode(this, 0, virt_init);
11567 /* ??1?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
11568 /* ??1?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
11569 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_dtor, 4)
11570 void __thiscall basic_ostringstream_char_dtor(basic_ios_char *base)
11572 basic_ostringstream_char *this = basic_ostringstream_char_from_basic_ios(base);
11574 TRACE("(%p)\n", this);
11576 basic_stringbuf_char_dtor(&this->strbuf);
11577 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&this->base));
11580 /* ??_D?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
11581 /* ??_D?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
11582 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_vbase_dtor, 4)
11583 void __thiscall basic_ostringstream_char_vbase_dtor(basic_ostringstream_char *this)
11585 TRACE("(%p)\n", this);
11587 basic_ostringstream_char_dtor(basic_ostringstream_char_to_basic_ios(this));
11588 basic_ios_char_dtor(basic_ostream_char_get_basic_ios(&this->base));
11591 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_vector_dtor, 8)
11592 basic_ostringstream_char* __thiscall basic_ostringstream_char_vector_dtor(basic_ios_char *base, unsigned int flags)
11594 basic_ostringstream_char *this = basic_ostringstream_char_from_basic_ios(base);
11596 TRACE("(%p %x)\n", this, flags);
11599 /* we have an array, with the number of elements stored before the first object */
11600 INT_PTR i, *ptr = (INT_PTR *)this-1;
11602 for(i=*ptr-1; i>=0; i--)
11603 basic_ostringstream_char_vbase_dtor(this+i);
11604 MSVCRT_operator_delete(ptr);
11606 basic_ostringstream_char_vbase_dtor(this);
11608 MSVCRT_operator_delete(this);
11614 /* ?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 */
11615 /* ?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 */
11616 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_rdbuf, 4)
11617 basic_stringbuf_char* __thiscall basic_ostringstream_char_rdbuf(const basic_ostringstream_char *this)
11619 TRACE("(%p)\n", this);
11620 return (basic_stringbuf_char*)&this->strbuf;
11623 /* ?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 */
11624 /* ?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 */
11625 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_str_set, 8)
11626 void __thiscall basic_ostringstream_char_str_set(basic_ostringstream_char *this, const basic_string_char *str)
11628 TRACE("(%p %p)\n", this, str);
11629 basic_stringbuf_char_str_set(&this->strbuf, str);
11632 /* ?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 */
11633 /* ?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 */
11634 DEFINE_THISCALL_WRAPPER(basic_ostringstream_char_str_get, 8)
11635 basic_string_char* __thiscall basic_ostringstream_char_str_get(const basic_ostringstream_char *this, basic_string_char *ret)
11637 TRACE("(%p %p)\n", this, ret);
11638 return basic_stringbuf_char_str_get(&this->strbuf, ret);
11641 static inline basic_ios_wchar* basic_ostringstream_wchar_to_basic_ios(basic_ostringstream_wchar *ptr)
11643 return (basic_ios_wchar*)((char*)ptr+basic_ostringstream_wchar_vbtable[1]);
11646 static inline basic_ostringstream_wchar* basic_ostringstream_wchar_from_basic_ios(basic_ios_wchar *ptr)
11648 return (basic_ostringstream_wchar*)((char*)ptr-basic_ostringstream_wchar_vbtable[1]);
11651 /* ??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 */
11652 /* ??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 */
11653 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_ctor_str, 16)
11654 basic_ostringstream_wchar* __thiscall basic_ostringstream_wchar_ctor_str(basic_ostringstream_wchar *this,
11655 const basic_string_wchar *str, int mode, MSVCP_bool virt_init)
11657 basic_ios_wchar *basic_ios;
11659 TRACE("(%p %p %d %d)\n", this, str, mode, virt_init);
11662 this->base.vbtable = basic_ostringstream_wchar_vbtable;
11663 basic_ios = basic_ostream_wchar_get_basic_ios(&this->base);
11664 basic_ios_wchar_ctor(basic_ios);
11666 basic_ios = basic_ostream_wchar_get_basic_ios(&this->base);
11669 basic_stringbuf_wchar_ctor_str(&this->strbuf, str, mode|OPENMODE_out);
11670 basic_ostream_wchar_ctor(&this->base, &this->strbuf.base, FALSE, FALSE);
11671 basic_ios->base.vtable = &MSVCP_basic_ostringstream_wchar_vtable;
11675 /* ??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 */
11676 /* ??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 */
11677 DEFINE_THISCALL_WRAPPER(basic_ostringstream_short_ctor_str, 16)
11678 basic_ostringstream_wchar* __thiscall basic_ostringstream_short_ctor_str(basic_ostringstream_wchar *this,
11679 const basic_string_wchar *str, int mode, MSVCP_bool virt_init)
11681 basic_ostringstream_wchar_ctor_str(this, str, mode, virt_init);
11682 basic_ostream_wchar_get_basic_ios(&this->base)->base.vtable = &MSVCP_basic_ostringstream_short_vtable;
11686 /* ??0?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
11687 /* ??0?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
11688 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_ctor_mode, 12)
11689 basic_ostringstream_wchar* __thiscall basic_ostringstream_wchar_ctor_mode(
11690 basic_ostringstream_wchar *this, int mode, MSVCP_bool virt_init)
11692 basic_ios_wchar *basic_ios;
11694 TRACE("(%p %d %d)\n", this, mode, virt_init);
11697 this->base.vbtable = basic_ostringstream_wchar_vbtable;
11698 basic_ios = basic_ostream_wchar_get_basic_ios(&this->base);
11699 basic_ios_wchar_ctor(basic_ios);
11701 basic_ios = basic_ostream_wchar_get_basic_ios(&this->base);
11704 basic_stringbuf_wchar_ctor_mode(&this->strbuf, mode|OPENMODE_out);
11705 basic_ostream_wchar_ctor(&this->base, &this->strbuf.base, FALSE, FALSE);
11706 basic_ios->base.vtable = &MSVCP_basic_ostringstream_wchar_vtable;
11710 /* ??0?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
11711 /* ??0?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
11712 DEFINE_THISCALL_WRAPPER(basic_ostringstream_short_ctor_mode, 12)
11713 basic_ostringstream_wchar* __thiscall basic_ostringstream_short_ctor_mode(
11714 basic_ostringstream_wchar *this, int mode, MSVCP_bool virt_init)
11716 basic_ostringstream_wchar_ctor_mode(this, mode, virt_init);
11717 basic_ostream_wchar_get_basic_ios(&this->base)->base.vtable = &MSVCP_basic_ostringstream_short_vtable;
11721 /* ??_F?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
11722 /* ??_F?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
11723 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_ctor, 8)
11724 basic_ostringstream_wchar* __thiscall basic_ostringstream_wchar_ctor(
11725 basic_ostringstream_wchar *this, MSVCP_bool virt_init)
11727 return basic_ostringstream_wchar_ctor_mode(this, 0, virt_init);
11730 /* ??_F?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
11731 /* ??_F?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
11732 DEFINE_THISCALL_WRAPPER(basic_ostringstream_short_ctor, 8)
11733 basic_ostringstream_wchar* __thiscall basic_ostringstream_short_ctor(
11734 basic_ostringstream_wchar *this, MSVCP_bool virt_init)
11736 return basic_ostringstream_short_ctor_mode(this, 0, virt_init);
11739 /* ??1?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
11740 /* ??1?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
11741 /* ??1?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
11742 /* ??1?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
11743 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_dtor, 4)
11744 void __thiscall basic_ostringstream_wchar_dtor(basic_ios_wchar *base)
11746 basic_ostringstream_wchar *this = basic_ostringstream_wchar_from_basic_ios(base);
11748 TRACE("(%p)\n", this);
11750 basic_stringbuf_wchar_dtor(&this->strbuf);
11751 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(&this->base));
11754 /* ??_D?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
11755 /* ??_D?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
11756 /* ??_D?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
11757 /* ??_D?$basic_ostringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
11758 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_vbase_dtor, 4)
11759 void __thiscall basic_ostringstream_wchar_vbase_dtor(basic_ostringstream_wchar *this)
11761 TRACE("(%p)\n", this);
11763 basic_ostringstream_wchar_dtor(basic_ostringstream_wchar_to_basic_ios(this));
11764 basic_ios_wchar_dtor(basic_ostream_wchar_get_basic_ios(&this->base));
11767 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_vector_dtor, 8)
11768 basic_ostringstream_wchar* __thiscall basic_ostringstream_wchar_vector_dtor(basic_ios_wchar *base, unsigned int flags)
11770 basic_ostringstream_wchar *this = basic_ostringstream_wchar_from_basic_ios(base);
11772 TRACE("(%p %x)\n", this, flags);
11775 /* we have an array, with the number of elements stored before the first object */
11776 INT_PTR i, *ptr = (INT_PTR *)this-1;
11778 for(i=*ptr-1; i>=0; i--)
11779 basic_ostringstream_wchar_vbase_dtor(this+i);
11780 MSVCRT_operator_delete(ptr);
11782 basic_ostringstream_wchar_vbase_dtor(this);
11784 MSVCRT_operator_delete(this);
11790 /* ?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 */
11791 /* ?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 */
11792 /* ?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 */
11793 /* ?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 */
11794 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_rdbuf, 4)
11795 basic_stringbuf_wchar* __thiscall basic_ostringstream_wchar_rdbuf(const basic_ostringstream_wchar *this)
11797 TRACE("(%p)\n", this);
11798 return (basic_stringbuf_wchar*)&this->strbuf;
11801 /* ?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 */
11802 /* ?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 */
11803 /* ?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 */
11804 /* ?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 */
11805 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_str_set, 8)
11806 void __thiscall basic_ostringstream_wchar_str_set(basic_ostringstream_wchar *this, const basic_string_wchar *str)
11808 TRACE("(%p %p)\n", this, str);
11809 basic_stringbuf_wchar_str_set(&this->strbuf, str);
11812 /* ?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 */
11813 /* ?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 */
11814 /* ?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 */
11815 /* ?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 */
11816 DEFINE_THISCALL_WRAPPER(basic_ostringstream_wchar_str_get, 8)
11817 basic_string_wchar* __thiscall basic_ostringstream_wchar_str_get(const basic_ostringstream_wchar *this, basic_string_wchar *ret)
11819 TRACE("(%p %p)\n", this, ret);
11820 return basic_stringbuf_wchar_str_get(&this->strbuf, ret);
11823 static inline basic_ios_char* basic_istringstream_char_to_basic_ios(basic_istringstream_char *ptr)
11825 return (basic_ios_char*)((char*)ptr+basic_istringstream_char_vbtable[1]);
11828 static inline basic_istringstream_char* basic_istringstream_char_from_basic_ios(basic_ios_char *ptr)
11830 return (basic_istringstream_char*)((char*)ptr-basic_istringstream_char_vbtable[1]);
11833 /* ??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 */
11834 /* ??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 */
11835 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_ctor_str, 16)
11836 basic_istringstream_char* __thiscall basic_istringstream_char_ctor_str(basic_istringstream_char *this,
11837 const basic_string_char *str, int mode, MSVCP_bool virt_init)
11839 basic_ios_char *basic_ios;
11841 TRACE("(%p %p %d %d)\n", this, str, mode, virt_init);
11844 this->base.vbtable = basic_istringstream_char_vbtable;
11845 basic_ios = basic_istream_char_get_basic_ios(&this->base);
11846 basic_ios_char_ctor(basic_ios);
11848 basic_ios = basic_istream_char_get_basic_ios(&this->base);
11851 basic_stringbuf_char_ctor_str(&this->strbuf, str, mode|OPENMODE_in);
11852 basic_istream_char_ctor(&this->base, &this->strbuf.base, FALSE, FALSE);
11853 basic_ios->base.vtable = &MSVCP_basic_istringstream_char_vtable;
11857 /* ??0?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
11858 /* ??0?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
11859 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_ctor_mode, 12)
11860 basic_istringstream_char* __thiscall basic_istringstream_char_ctor_mode(
11861 basic_istringstream_char *this, int mode, MSVCP_bool virt_init)
11863 basic_ios_char *basic_ios;
11865 TRACE("(%p %d %d)\n", this, mode, virt_init);
11868 this->base.vbtable = basic_istringstream_char_vbtable;
11869 basic_ios = basic_istream_char_get_basic_ios(&this->base);
11870 basic_ios_char_ctor(basic_ios);
11872 basic_ios = basic_istream_char_get_basic_ios(&this->base);
11875 basic_stringbuf_char_ctor_mode(&this->strbuf, mode|OPENMODE_in);
11876 basic_istream_char_ctor(&this->base, &this->strbuf.base, FALSE, FALSE);
11877 basic_ios->base.vtable = &MSVCP_basic_istringstream_char_vtable;
11881 /* ??_F?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
11882 /* ??_F?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
11883 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_ctor, 8)
11884 basic_istringstream_char* __thiscall basic_istringstream_char_ctor(
11885 basic_istringstream_char *this, MSVCP_bool virt_init)
11887 return basic_istringstream_char_ctor_mode(this, 0, virt_init);
11890 /* ??1?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
11891 /* ??1?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
11892 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_dtor, 4)
11893 void __thiscall basic_istringstream_char_dtor(basic_ios_char *base)
11895 basic_istringstream_char *this = basic_istringstream_char_from_basic_ios(base);
11897 TRACE("(%p)\n", this);
11899 basic_stringbuf_char_dtor(&this->strbuf);
11900 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&this->base));
11903 /* ??_D?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
11904 /* ??_D?$basic_istringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
11905 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_vbase_dtor, 4)
11906 void __thiscall basic_istringstream_char_vbase_dtor(basic_istringstream_char *this)
11908 TRACE("(%p)\n", this);
11910 basic_istringstream_char_dtor(basic_istringstream_char_to_basic_ios(this));
11911 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base));
11914 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_vector_dtor, 8)
11915 basic_istringstream_char* __thiscall basic_istringstream_char_vector_dtor(basic_ios_char *base, unsigned int flags)
11917 basic_istringstream_char *this = basic_istringstream_char_from_basic_ios(base);
11919 TRACE("(%p %x)\n", this, flags);
11922 /* we have an array, with the number of elements stored before the first object */
11923 INT_PTR i, *ptr = (INT_PTR *)this-1;
11925 for(i=*ptr-1; i>=0; i--)
11926 basic_istringstream_char_vbase_dtor(this+i);
11927 MSVCRT_operator_delete(ptr);
11929 basic_istringstream_char_vbase_dtor(this);
11931 MSVCRT_operator_delete(this);
11937 /* ?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 */
11938 /* ?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 */
11939 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_rdbuf, 4)
11940 basic_stringbuf_char* __thiscall basic_istringstream_char_rdbuf(const basic_istringstream_char *this)
11942 TRACE("(%p)\n", this);
11943 return (basic_stringbuf_char*)&this->strbuf;
11946 /* ?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 */
11947 /* ?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 */
11948 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_str_set, 8)
11949 void __thiscall basic_istringstream_char_str_set(basic_istringstream_char *this, const basic_string_char *str)
11951 TRACE("(%p %p)\n", this, str);
11952 basic_stringbuf_char_str_set(&this->strbuf, str);
11955 /* ?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 */
11956 /* ?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 */
11957 DEFINE_THISCALL_WRAPPER(basic_istringstream_char_str_get, 8)
11958 basic_string_char* __thiscall basic_istringstream_char_str_get(const basic_istringstream_char *this, basic_string_char *ret)
11960 TRACE("(%p %p)\n", this, ret);
11961 return basic_stringbuf_char_str_get(&this->strbuf, ret);
11964 static inline basic_ios_wchar* basic_istringstream_wchar_to_basic_ios(basic_istringstream_wchar *ptr)
11966 return (basic_ios_wchar*)((char*)ptr+basic_istringstream_wchar_vbtable[1]);
11969 static inline basic_istringstream_wchar* basic_istringstream_wchar_from_basic_ios(basic_ios_wchar *ptr)
11971 return (basic_istringstream_wchar*)((char*)ptr-basic_istringstream_wchar_vbtable[1]);
11974 /* ??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 */
11975 /* ??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 */
11976 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_ctor_str, 16)
11977 basic_istringstream_wchar* __thiscall basic_istringstream_wchar_ctor_str(basic_istringstream_wchar *this,
11978 const basic_string_wchar *str, int mode, MSVCP_bool virt_init)
11980 basic_ios_wchar *basic_ios;
11982 TRACE("(%p %p %d %d)\n", this, str, mode, virt_init);
11985 this->base.vbtable = basic_istringstream_wchar_vbtable;
11986 basic_ios = basic_istream_wchar_get_basic_ios(&this->base);
11987 basic_ios_wchar_ctor(basic_ios);
11989 basic_ios = basic_istream_wchar_get_basic_ios(&this->base);
11992 basic_stringbuf_wchar_ctor_str(&this->strbuf, str, mode|OPENMODE_in);
11993 basic_istream_wchar_ctor(&this->base, &this->strbuf.base, FALSE, FALSE);
11994 basic_ios->base.vtable = &MSVCP_basic_istringstream_wchar_vtable;
11998 /* ??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 */
11999 /* ??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 */
12000 DEFINE_THISCALL_WRAPPER(basic_istringstream_short_ctor_str, 16)
12001 basic_istringstream_wchar* __thiscall basic_istringstream_short_ctor_str(basic_istringstream_wchar *this,
12002 const basic_string_wchar *str, int mode, MSVCP_bool virt_init)
12004 basic_istringstream_wchar_ctor_str(this, str, mode, virt_init);
12005 basic_istream_wchar_get_basic_ios(&this->base)->base.vtable = &MSVCP_basic_istringstream_short_vtable;
12009 /* ??0?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
12010 /* ??0?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
12011 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_ctor_mode, 12)
12012 basic_istringstream_wchar* __thiscall basic_istringstream_wchar_ctor_mode(
12013 basic_istringstream_wchar *this, int mode, MSVCP_bool virt_init)
12015 basic_ios_wchar *basic_ios;
12017 TRACE("(%p %d %d)\n", this, mode, virt_init);
12020 this->base.vbtable = basic_istringstream_wchar_vbtable;
12021 basic_ios = basic_istream_wchar_get_basic_ios(&this->base);
12022 basic_ios_wchar_ctor(basic_ios);
12024 basic_ios = basic_istream_wchar_get_basic_ios(&this->base);
12027 basic_stringbuf_wchar_ctor_mode(&this->strbuf, mode|OPENMODE_in);
12028 basic_istream_wchar_ctor(&this->base, &this->strbuf.base, FALSE, FALSE);
12029 basic_ios->base.vtable = &MSVCP_basic_istringstream_wchar_vtable;
12033 /* ??0?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
12034 /* ??0?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
12035 DEFINE_THISCALL_WRAPPER(basic_istringstream_short_ctor_mode, 12)
12036 basic_istringstream_wchar* __thiscall basic_istringstream_short_ctor_mode(
12037 basic_istringstream_wchar *this, int mode, MSVCP_bool virt_init)
12039 basic_istringstream_wchar_ctor_mode(this, mode, virt_init);
12040 basic_istream_wchar_get_basic_ios(&this->base)->base.vtable = &MSVCP_basic_istringstream_short_vtable;
12044 /* ??_F?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
12045 /* ??_F?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
12046 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_ctor, 8)
12047 basic_istringstream_wchar* __thiscall basic_istringstream_wchar_ctor(
12048 basic_istringstream_wchar *this, MSVCP_bool virt_init)
12050 return basic_istringstream_wchar_ctor_mode(this, 0, virt_init);
12053 /* ??_F?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
12054 /* ??_F?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
12055 DEFINE_THISCALL_WRAPPER(basic_istringstream_short_ctor, 8)
12056 basic_istringstream_wchar* __thiscall basic_istringstream_short_ctor(
12057 basic_istringstream_wchar *this, MSVCP_bool virt_init)
12059 return basic_istringstream_short_ctor_mode(this, 0, virt_init);
12062 /* ??1?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
12063 /* ??1?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
12064 /* ??1?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
12065 /* ??1?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
12066 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_dtor, 4)
12067 void __thiscall basic_istringstream_wchar_dtor(basic_ios_wchar *base)
12069 basic_istringstream_wchar *this = basic_istringstream_wchar_from_basic_ios(base);
12071 TRACE("(%p)\n", this);
12073 basic_stringbuf_wchar_dtor(&this->strbuf);
12074 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(&this->base));
12077 /* ??_D?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
12078 /* ??_D?$basic_istringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
12079 /* ??_D?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
12080 /* ??_D?$basic_istringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
12081 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_vbase_dtor, 4)
12082 void __thiscall basic_istringstream_wchar_vbase_dtor(basic_istringstream_wchar *this)
12084 TRACE("(%p)\n", this);
12086 basic_istringstream_wchar_dtor(basic_istringstream_wchar_to_basic_ios(this));
12087 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(&this->base));
12090 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_vector_dtor, 8)
12091 basic_istringstream_wchar* __thiscall basic_istringstream_wchar_vector_dtor(basic_ios_wchar *base, unsigned int flags)
12093 basic_istringstream_wchar *this = basic_istringstream_wchar_from_basic_ios(base);
12095 TRACE("(%p %x)\n", this, flags);
12098 /* we have an array, with the number of elements stored before the first object */
12099 INT_PTR i, *ptr = (INT_PTR *)this-1;
12101 for(i=*ptr-1; i>=0; i--)
12102 basic_istringstream_wchar_vbase_dtor(this+i);
12103 MSVCRT_operator_delete(ptr);
12105 basic_istringstream_wchar_vbase_dtor(this);
12107 MSVCRT_operator_delete(this);
12113 /* ?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 */
12114 /* ?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 */
12115 /* ?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 */
12116 /* ?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 */
12117 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_rdbuf, 4)
12118 basic_stringbuf_wchar* __thiscall basic_istringstream_wchar_rdbuf(const basic_istringstream_wchar *this)
12120 TRACE("(%p)\n", this);
12121 return (basic_stringbuf_wchar*)&this->strbuf;
12124 /* ?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 */
12125 /* ?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 */
12126 /* ?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 */
12127 /* ?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 */
12128 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_str_set, 8)
12129 void __thiscall basic_istringstream_wchar_str_set(basic_istringstream_wchar *this, const basic_string_wchar *str)
12131 TRACE("(%p %p)\n", this, str);
12132 basic_stringbuf_wchar_str_set(&this->strbuf, str);
12135 /* ?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 */
12136 /* ?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 */
12137 /* ?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 */
12138 /* ?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 */
12139 DEFINE_THISCALL_WRAPPER(basic_istringstream_wchar_str_get, 8)
12140 basic_string_wchar* __thiscall basic_istringstream_wchar_str_get(const basic_istringstream_wchar *this, basic_string_wchar *ret)
12142 TRACE("(%p %p)\n", this, ret);
12143 return basic_stringbuf_wchar_str_get(&this->strbuf, ret);
12146 static inline basic_ios_char* basic_stringstream_char_to_basic_ios(basic_stringstream_char *ptr)
12148 return (basic_ios_char*)((char*)ptr+basic_stringstream_char_vbtable1[1]);
12151 static inline basic_stringstream_char* basic_stringstream_char_from_basic_ios(basic_ios_char *ptr)
12153 return (basic_stringstream_char*)((char*)ptr-basic_stringstream_char_vbtable1[1]);
12156 /* ??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 */
12157 /* ??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 */
12158 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_ctor_str, 16)
12159 basic_stringstream_char* __thiscall basic_stringstream_char_ctor_str(basic_stringstream_char *this,
12160 const basic_string_char *str, int mode, MSVCP_bool virt_init)
12162 basic_ios_char *basic_ios;
12164 TRACE("(%p %p %d %d)\n", this, str, mode, virt_init);
12167 this->base.base1.vbtable = basic_stringstream_char_vbtable1;
12168 this->base.base2.vbtable = basic_stringstream_char_vbtable2;
12169 basic_ios = basic_istream_char_get_basic_ios(&this->base.base1);
12170 basic_ios_char_ctor(basic_ios);
12172 basic_ios = basic_istream_char_get_basic_ios(&this->base.base1);
12175 basic_stringbuf_char_ctor_str(&this->strbuf, str, mode);
12176 basic_iostream_char_ctor(&this->base, &this->strbuf.base, FALSE);
12177 basic_ios->base.vtable = &MSVCP_basic_stringstream_char_vtable;
12181 /* ??0?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z */
12182 /* ??0?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z */
12183 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_ctor_mode, 12)
12184 basic_stringstream_char* __thiscall basic_stringstream_char_ctor_mode(
12185 basic_stringstream_char *this, int mode, MSVCP_bool virt_init)
12187 basic_ios_char *basic_ios;
12189 TRACE("(%p %d %d)\n", this, mode, virt_init);
12192 this->base.base1.vbtable = basic_stringstream_char_vbtable1;
12193 this->base.base2.vbtable = basic_stringstream_char_vbtable2;
12194 basic_ios = basic_istream_char_get_basic_ios(&this->base.base1);
12195 basic_ios_char_ctor(basic_ios);
12197 basic_ios = basic_istream_char_get_basic_ios(&this->base.base1);
12200 basic_stringbuf_char_ctor_mode(&this->strbuf, mode);
12201 basic_iostream_char_ctor(&this->base, &this->strbuf.base, FALSE);
12202 basic_ios->base.vtable = &MSVCP_basic_stringstream_char_vtable;
12206 /* ??_F?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
12207 /* ??_F?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
12208 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_ctor, 8)
12209 basic_stringstream_char* __thiscall basic_stringstream_char_ctor(
12210 basic_stringstream_char *this, MSVCP_bool virt_init)
12212 return basic_stringstream_char_ctor_mode(
12213 this, OPENMODE_out|OPENMODE_in, virt_init);
12216 /* ??1?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UAE@XZ */
12217 /* ??1?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ */
12218 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_dtor, 4)
12219 void __thiscall basic_stringstream_char_dtor(basic_ios_char *base)
12221 basic_stringstream_char *this = basic_stringstream_char_from_basic_ios(base);
12223 TRACE("(%p)\n", this);
12225 basic_iostream_char_dtor(basic_iostream_char_to_basic_ios(&this->base));
12226 basic_stringbuf_char_dtor(&this->strbuf);
12229 /* ??_D?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
12230 /* ??_D?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
12231 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_vbase_dtor, 4)
12232 void __thiscall basic_stringstream_char_vbase_dtor(basic_stringstream_char *this)
12234 TRACE("(%p)\n", this);
12236 basic_stringstream_char_dtor(basic_stringstream_char_to_basic_ios(this));
12237 basic_ios_char_dtor(basic_istream_char_get_basic_ios(&this->base.base1));
12240 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_vector_dtor, 8)
12241 basic_stringstream_char* __thiscall basic_stringstream_char_vector_dtor(basic_ios_char *base, unsigned int flags)
12243 basic_stringstream_char *this = basic_stringstream_char_from_basic_ios(base);
12245 TRACE("(%p %x)\n", this, flags);
12248 /* we have an array, with the number of elements stored before the first object */
12249 INT_PTR i, *ptr = (INT_PTR *)this-1;
12251 for(i=*ptr-1; i>=0; i--)
12252 basic_stringstream_char_vbase_dtor(this+i);
12253 MSVCRT_operator_delete(ptr);
12255 basic_stringstream_char_vbase_dtor(this);
12257 MSVCRT_operator_delete(this);
12263 /* ?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 */
12264 /* ?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 */
12265 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_rdbuf, 4)
12266 basic_stringbuf_char* __thiscall basic_stringstream_char_rdbuf(const basic_stringstream_char *this)
12268 TRACE("(%p)\n", this);
12269 return (basic_stringbuf_char*)&this->strbuf;
12272 /* ?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 */
12273 /* ?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 */
12274 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_str_set, 8)
12275 void __thiscall basic_stringstream_char_str_set(basic_stringstream_char *this, const basic_string_char *str)
12277 TRACE("(%p %p)\n", this, str);
12278 basic_stringbuf_char_str_set(&this->strbuf, str);
12281 /* ?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 */
12282 /* ?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 */
12283 DEFINE_THISCALL_WRAPPER(basic_stringstream_char_str_get, 8)
12284 basic_string_char* __thiscall basic_stringstream_char_str_get(const basic_stringstream_char *this, basic_string_char *ret)
12286 TRACE("(%p %p)\n", this, ret);
12287 return basic_stringbuf_char_str_get(&this->strbuf, ret);
12290 static inline basic_ios_wchar* basic_stringstream_wchar_to_basic_ios(basic_stringstream_wchar *ptr)
12292 return (basic_ios_wchar*)((char*)ptr+basic_stringstream_wchar_vbtable1[1]);
12295 static inline basic_stringstream_wchar* basic_stringstream_wchar_from_basic_ios(basic_ios_wchar *ptr)
12297 return (basic_stringstream_wchar*)((char*)ptr-basic_stringstream_wchar_vbtable1[1]);
12300 /* ??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 */
12301 /* ??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 */
12302 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_ctor_str, 16)
12303 basic_stringstream_wchar* __thiscall basic_stringstream_wchar_ctor_str(basic_stringstream_wchar *this,
12304 const basic_string_wchar *str, int mode, MSVCP_bool virt_init)
12306 basic_ios_wchar *basic_ios;
12308 TRACE("(%p %p %d %d)\n", this, str, mode, virt_init);
12311 this->base.base1.vbtable = basic_stringstream_wchar_vbtable1;
12312 this->base.base2.vbtable = basic_stringstream_wchar_vbtable2;
12313 basic_ios = basic_istream_wchar_get_basic_ios(&this->base.base1);
12314 basic_ios_wchar_ctor(basic_ios);
12316 basic_ios = basic_istream_wchar_get_basic_ios(&this->base.base1);
12319 basic_stringbuf_wchar_ctor_str(&this->strbuf, str, mode);
12320 basic_iostream_wchar_ctor(&this->base, &this->strbuf.base, FALSE);
12321 basic_ios->base.vtable = &MSVCP_basic_stringstream_wchar_vtable;
12325 /* ??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 */
12326 /* ??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 */
12327 DEFINE_THISCALL_WRAPPER(basic_stringstream_short_ctor_str, 16)
12328 basic_stringstream_wchar* __thiscall basic_stringstream_short_ctor_str(basic_stringstream_wchar *this,
12329 const basic_string_wchar *str, int mode, MSVCP_bool virt_init)
12331 basic_stringstream_wchar_ctor_str(this, str, mode, virt_init);
12332 basic_istream_wchar_get_basic_ios(&this->base.base1)->base.vtable = &MSVCP_basic_stringstream_short_vtable;
12336 /* ??0?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z */
12337 /* ??0?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@H@Z */
12338 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_ctor_mode, 12)
12339 basic_stringstream_wchar* __thiscall basic_stringstream_wchar_ctor_mode(
12340 basic_stringstream_wchar *this, int mode, MSVCP_bool virt_init)
12342 basic_ios_wchar *basic_ios;
12344 TRACE("(%p %d %d)\n", this, mode, virt_init);
12347 this->base.base1.vbtable = basic_stringstream_wchar_vbtable1;
12348 this->base.base2.vbtable = basic_stringstream_wchar_vbtable2;
12349 basic_ios = basic_istream_wchar_get_basic_ios(&this->base.base1);
12350 basic_ios_wchar_ctor(basic_ios);
12352 basic_ios = basic_istream_wchar_get_basic_ios(&this->base.base1);
12355 basic_stringbuf_wchar_ctor_mode(&this->strbuf, mode);
12356 basic_iostream_wchar_ctor(&this->base, &this->strbuf.base, FALSE);
12357 basic_ios->base.vtable = &MSVCP_basic_stringstream_wchar_vtable;
12361 /* ??0?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@H@Z */
12362 /* ??0?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@H@Z */
12363 DEFINE_THISCALL_WRAPPER(basic_stringstream_short_ctor_mode, 12)
12364 basic_stringstream_wchar* __thiscall basic_stringstream_short_ctor_mode(
12365 basic_stringstream_wchar *this, int mode, MSVCP_bool virt_init)
12367 basic_stringstream_wchar_ctor_mode(this, mode, virt_init);
12368 basic_istream_wchar_get_basic_ios(&this->base.base1)->base.vtable = &MSVCP_basic_stringstream_short_vtable;
12372 /* ??_F?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
12373 /* ??_F?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
12374 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_ctor, 8)
12375 basic_stringstream_wchar* __thiscall basic_stringstream_wchar_ctor(
12376 basic_stringstream_wchar *this, MSVCP_bool virt_init)
12378 return basic_stringstream_wchar_ctor_mode(
12379 this, OPENMODE_out|OPENMODE_in, virt_init);
12382 /* ??_F?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
12383 /* ??_F?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
12384 DEFINE_THISCALL_WRAPPER(basic_stringstream_short_ctor, 8)
12385 basic_stringstream_wchar* __thiscall basic_stringstream_short_ctor(
12386 basic_stringstream_wchar *this, MSVCP_bool virt_init)
12388 return basic_stringstream_short_ctor_mode(
12389 this, OPENMODE_out|OPENMODE_in, virt_init);
12392 /* ??1?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UAE@XZ */
12393 /* ??1?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@UEAA@XZ */
12394 /* ??1?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UAE@XZ */
12395 /* ??1?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@UEAA@XZ */
12396 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_dtor, 4)
12397 void __thiscall basic_stringstream_wchar_dtor(basic_ios_wchar *base)
12399 basic_stringstream_wchar *this = basic_stringstream_wchar_from_basic_ios(base);
12401 TRACE("(%p)\n", this);
12403 basic_iostream_wchar_dtor(basic_iostream_wchar_to_basic_ios(&this->base));
12404 basic_stringbuf_wchar_dtor(&this->strbuf);
12407 /* ??_D?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
12408 /* ??_D?$basic_stringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
12409 /* ??_D?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
12410 /* ??_D?$basic_stringstream@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
12411 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_vbase_dtor, 4)
12412 void __thiscall basic_stringstream_wchar_vbase_dtor(basic_stringstream_wchar *this)
12414 TRACE("(%p)\n", this);
12416 basic_stringstream_wchar_dtor(basic_stringstream_wchar_to_basic_ios(this));
12417 basic_ios_wchar_dtor(basic_istream_wchar_get_basic_ios(&this->base.base1));
12420 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_vector_dtor, 8)
12421 basic_stringstream_wchar* __thiscall basic_stringstream_wchar_vector_dtor(basic_ios_wchar *base, unsigned int flags)
12423 basic_stringstream_wchar *this = basic_stringstream_wchar_from_basic_ios(base);
12425 TRACE("(%p %x)\n", this, flags);
12428 /* we have an array, with the number of elements stored before the first object */
12429 INT_PTR i, *ptr = (INT_PTR *)this-1;
12431 for(i=*ptr-1; i>=0; i--)
12432 basic_stringstream_wchar_vbase_dtor(this+i);
12433 MSVCRT_operator_delete(ptr);
12435 basic_stringstream_wchar_vbase_dtor(this);
12437 MSVCRT_operator_delete(this);
12443 /* ?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 */
12444 /* ?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 */
12445 /* ?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 */
12446 /* ?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 */
12447 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_rdbuf, 4)
12448 basic_stringbuf_wchar* __thiscall basic_stringstream_wchar_rdbuf(const basic_stringstream_wchar *this)
12450 TRACE("(%p)\n", this);
12451 return (basic_stringbuf_wchar*)&this->strbuf;
12454 /* ?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 */
12455 /* ?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 */
12456 /* ?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 */
12457 /* ?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 */
12458 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_str_set, 8)
12459 void __thiscall basic_stringstream_wchar_str_set(basic_stringstream_wchar *this, const basic_string_wchar *str)
12461 TRACE("(%p %p)\n", this, str);
12462 basic_stringbuf_wchar_str_set(&this->strbuf, str);
12465 /* ?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 */
12466 /* ?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 */
12467 /* ?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 */
12468 /* ?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 */
12469 DEFINE_THISCALL_WRAPPER(basic_stringstream_wchar_str_get, 8)
12470 basic_string_wchar* __thiscall basic_stringstream_wchar_str_get(const basic_stringstream_wchar *this, basic_string_wchar *ret)
12472 TRACE("(%p %p)\n", this, ret);
12473 return basic_stringbuf_wchar_str_get(&this->strbuf, ret);
12476 /* ?_Init@strstreambuf@std@@IAEXHPAD0H@Z */
12477 /* ?_Init@strstreambuf@std@@IEAAX_JPEAD1H@Z */
12478 DEFINE_THISCALL_WRAPPER(strstreambuf__Init, 20)
12479 void __thiscall strstreambuf__Init(strstreambuf *this, streamsize len, char *g, char *p, int mode)
12481 TRACE("(%p %ld %p %p %d)\n", this, len, g, p, mode);
12483 this->minsize = 32;
12484 this->endsave = NULL;
12485 this->strmode = mode;
12486 this->palloc = NULL;
12487 this->pfree = NULL;
12490 this->strmode |= STRSTATE_Dynamic;
12491 if(len > this->minsize)
12492 this->minsize = len;
12493 this->seekhigh = NULL;
12502 this->seekhigh = g+len;
12503 basic_streambuf_char_setg(&this->base, g, g, p ? p : this->seekhigh);
12505 basic_streambuf_char_setp(&this->base, p, this->seekhigh);
12508 /* ??0strstreambuf@std@@QAE@PACH0@Z */
12509 /* ??0strstreambuf@std@@QEAA@PEAC_J0@Z */
12510 /* ??0strstreambuf@std@@QAE@PADH0@Z */
12511 /* ??0strstreambuf@std@@QEAA@PEAD_J0@Z */
12512 /* ??0strstreambuf@std@@QAE@PAEH0@Z */
12513 /* ??0strstreambuf@std@@QEAA@PEAE_J0@Z */
12514 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_get_put, 16)
12515 strstreambuf* __thiscall strstreambuf_ctor_get_put(strstreambuf *this, char *g, streamsize len, char *p)
12517 TRACE("(%p %p %ld %p)\n", this, g, len, p);
12519 basic_streambuf_char_ctor(&this->base);
12520 this->base.vtable = &MSVCP_strstreambuf_vtable;
12522 strstreambuf__Init(this, len, g, p, 0);
12526 /* ??0strstreambuf@std@@QAE@H@Z */
12527 /* ??0strstreambuf@std@@QEAA@_J@Z */
12528 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_len, 8)
12529 strstreambuf* __thiscall strstreambuf_ctor_len(strstreambuf *this, streamsize len)
12531 return strstreambuf_ctor_get_put(this, NULL, len, NULL);
12534 /* ??0strstreambuf@std@@QAE@P6APAXI@ZP6AXPAX@Z@Z */
12535 /* ??0strstreambuf@std@@QEAA@P6APEAX_K@ZP6AXPEAX@Z@Z */
12536 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_alloc, 12)
12537 strstreambuf* __thiscall strstreambuf_ctor_alloc(strstreambuf *this, void* (__cdecl *palloc)(MSVCP_size_t), void (__cdecl *pfree)(void*))
12539 TRACE("(%p %p %p)\n", this, palloc, pfree);
12541 strstreambuf_ctor_get_put(this, NULL, 0, NULL);
12542 this->palloc = palloc;
12543 this->pfree = pfree;
12547 /* ??0strstreambuf@std@@QAE@PBCH@Z */
12548 /* ??0strstreambuf@std@@QEAA@PEBC_J@Z */
12549 /* ??0strstreambuf@std@@QAE@PBDH@Z */
12550 /* ??0strstreambuf@std@@QEAA@PEBD_J@Z */
12551 /* ??0strstreambuf@std@@QAE@PBEH@Z */
12552 /* ??0strstreambuf@std@@QEAA@PEBE_J@Z */
12553 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor_get, 12)
12554 strstreambuf* __thiscall strstreambuf_ctor_get(strstreambuf *this, const char *g, streamsize len)
12556 TRACE("(%p %p %ld)\n", this, g, len);
12558 strstreambuf_ctor_get_put(this, NULL, 0, NULL);
12559 this->strmode |= STRSTATE_Constant;
12563 /* ??_Fstrstreambuf@std@@QAEXXZ */
12564 /* ??_Fstrstreambuf@std@@QEAAXXZ */
12565 DEFINE_THISCALL_WRAPPER(strstreambuf_ctor, 4)
12566 strstreambuf* __thiscall strstreambuf_ctor(strstreambuf *this)
12568 return strstreambuf_ctor_get_put(this, NULL, 0, NULL);
12571 /* ?_Tidy@strstreambuf@std@@IAEXXZ */
12572 /* ?_Tidy@strstreambuf@std@@IEAAXXZ */
12573 DEFINE_THISCALL_WRAPPER(strstreambuf__Tidy, 4)
12574 void __thiscall strstreambuf__Tidy(strstreambuf *this)
12576 TRACE("(%p)\n", this);
12578 if((this->strmode & STRSTATE_Allocated) && !(this->strmode & STRSTATE_Frozen)) {
12580 this->pfree(basic_streambuf_char_eback(&this->base));
12582 MSVCRT_operator_delete(basic_streambuf_char_eback(&this->base));
12585 this->endsave = NULL;
12586 this->seekhigh = NULL;
12587 this->strmode &= ~(STRSTATE_Allocated | STRSTATE_Frozen);
12588 basic_streambuf_char_setg(&this->base, NULL, NULL, NULL);
12589 basic_streambuf_char_setp(&this->base, NULL, NULL);
12592 /* ??1strstreambuf@std@@UAE@XZ */
12593 /* ??1strstreambuf@std@@UEAA@XZ */
12594 DEFINE_THISCALL_WRAPPER(strstreambuf_dtor, 4)
12595 void __thiscall strstreambuf_dtor(strstreambuf *this)
12597 TRACE("(%p)\n", this);
12599 strstreambuf__Tidy(this);
12600 basic_streambuf_char_dtor(&this->base);
12603 DEFINE_THISCALL_WRAPPER(strstreambuf_vector_dtor, 8)
12604 strstreambuf* __thiscall strstreambuf_vector_dtor(strstreambuf *this, unsigned int flags)
12606 TRACE("(%p %x)\n", this, flags);
12608 /* we have an array, with the number of elements stored before the first object */
12609 INT_PTR i, *ptr = (INT_PTR *)this-1;
12611 for(i=*ptr-1; i>=0; i--)
12612 strstreambuf_dtor(this+i);
12613 MSVCRT_operator_delete(ptr);
12615 strstreambuf_dtor(this);
12617 MSVCRT_operator_delete(this);
12623 /* ?freeze@strstreambuf@std@@QAEX_N@Z */
12624 /* ?freeze@strstreambuf@std@@QEAAX_N@Z */
12625 DEFINE_THISCALL_WRAPPER(strstreambuf_freeze, 8)
12626 void __thiscall strstreambuf_freeze(strstreambuf *this, MSVCP_bool freeze)
12628 TRACE("(%p %d)\n", this, freeze);
12630 if(!freeze == !(this->strmode *STRSTATE_Frozen))
12634 this->strmode |= STRSTATE_Frozen;
12635 this->endsave = basic_streambuf_char_epptr(&this->base);
12636 basic_streambuf_char_setp_next(&this->base, basic_streambuf_char_pbase(&this->base),
12637 basic_streambuf_char_pptr(&this->base), basic_streambuf_char_eback(&this->base));
12639 this->strmode &= ~STRSTATE_Frozen;
12640 basic_streambuf_char_setp_next(&this->base, basic_streambuf_char_pbase(&this->base),
12641 basic_streambuf_char_pptr(&this->base), this->endsave);
12645 /* ?str@strstreambuf@std@@QAEPADXZ */
12646 /* ?str@strstreambuf@std@@QEAAPEADXZ */
12647 DEFINE_THISCALL_WRAPPER(strstreambuf_str, 4)
12648 char* __thiscall strstreambuf_str(strstreambuf *this)
12650 TRACE("(%p)\n", this);
12652 strstreambuf_freeze(this, TRUE);
12653 return basic_streambuf_char_gptr(&this->base);
12656 /* ?pcount@strstreambuf@std@@QBEHXZ */
12657 /* ?pcount@strstreambuf@std@@QEBA_JXZ */
12658 DEFINE_THISCALL_WRAPPER(strstreambuf_pcount, 4)
12659 streamsize __thiscall strstreambuf_pcount(const strstreambuf *this)
12661 char *ppos = basic_streambuf_char_pptr(&this->base);
12663 TRACE("(%p)\n", this);
12665 return ppos ? ppos-basic_streambuf_char_pbase(&this->base) : 0;
12668 /* ?overflow@strstreambuf@std@@MAEHH@Z */
12669 /* ?overflow@strstreambuf@std@@MEAAHH@Z */
12670 DEFINE_THISCALL_WRAPPER(strstreambuf_overflow, 8)
12671 int __thiscall strstreambuf_overflow(strstreambuf *this, int c)
12673 MSVCP_size_t old_size, size;
12676 TRACE("(%p %d)\n", this, c);
12681 if(this->strmode & STRSTATE_Frozen)
12684 ptr = basic_streambuf_char_pptr(&this->base);
12685 if(ptr && ptr<basic_streambuf_char_epptr(&this->base))
12686 return (unsigned char)(*basic_streambuf_char__Pninc(&this->base) = c);
12688 if(!(this->strmode & STRSTATE_Dynamic) || (this->strmode & STRSTATE_Constant))
12691 ptr = basic_streambuf_char_eback(&this->base);
12692 old_size = ptr ? basic_streambuf_char_epptr(&this->base) - ptr : 0;
12694 size = old_size + old_size/2;
12695 if(size < this->minsize)
12696 size = this->minsize;
12699 buf = this->palloc(size);
12701 buf = MSVCRT_operator_new(size);
12705 memcpy(buf, ptr, old_size);
12706 if(this->strmode & STRSTATE_Allocated) {
12710 MSVCRT_operator_delete(ptr);
12713 this->strmode |= STRSTATE_Allocated;
12715 this->seekhigh = buf;
12716 basic_streambuf_char_setp(&this->base, buf, buf+size);
12717 basic_streambuf_char_setg(&this->base, buf, buf, buf);
12719 this->seekhigh = this->seekhigh-ptr+buf;
12720 basic_streambuf_char_setp_next(&this->base, basic_streambuf_char_pbase(&this->base)-ptr+buf,
12721 basic_streambuf_char_pptr(&this->base)-ptr+buf, buf+size);
12722 basic_streambuf_char_setg(&this->base, buf, basic_streambuf_char_gptr(&this->base)-ptr+buf,
12723 basic_streambuf_char_pptr(&this->base));
12726 return (unsigned char)(*basic_streambuf_char__Pninc(&this->base) = c);
12729 /* ?pbackfail@strstreambuf@std@@MAEHH@Z */
12730 /* ?pbackfail@strstreambuf@std@@MEAAHH@Z */
12731 DEFINE_THISCALL_WRAPPER(strstreambuf_pbackfail, 8)
12732 int __thiscall strstreambuf_pbackfail(strstreambuf *this, int c)
12734 char *ptr = basic_streambuf_char_gptr(&this->base);
12736 TRACE("(%p %d)\n", this, c);
12738 if(ptr<=basic_streambuf_char_eback(&this->base)
12739 || ((this->strmode & STRSTATE_Constant) && c!=ptr[-1]))
12742 basic_streambuf_char_gbump(&this->base, -1);
12745 if(this->strmode & STRSTATE_Constant)
12746 return (unsigned char)c;
12748 return (unsigned char)(ptr[0] = c);
12751 /* ?seekoff@strstreambuf@std@@MAE?AV?$fpos@H@2@JHH@Z */
12752 /* ?seekoff@strstreambuf@std@@MEAA?AV?$fpos@H@2@_JHH@Z */
12753 DEFINE_THISCALL_WRAPPER(strstreambuf_seekoff, 20)
12754 fpos_int* __thiscall strstreambuf_seekoff(strstreambuf *this, fpos_int *ret, streamoff off, int way, int mode)
12756 char *eback = basic_streambuf_char_eback(&this->base);
12757 char *pptr = basic_streambuf_char_pptr(&this->base);
12758 char *gptr = basic_streambuf_char_gptr(&this->base);
12760 TRACE("(%p %p %ld %d %d)\n", this, ret, off, way, mode);
12765 if(pptr > this->seekhigh)
12766 this->seekhigh = pptr;
12768 if((mode & OPENMODE_in) && gptr) {
12769 if(way==SEEKDIR_cur && !(mode & OPENMODE_out))
12771 else if(way == SEEKDIR_end)
12772 off += this->seekhigh-eback;
12773 else if(way != SEEKDIR_beg)
12776 if(off<0 || off>this->seekhigh-eback) {
12779 basic_streambuf_char_gbump(&this->base, eback-gptr+off);
12780 if((mode & OPENMODE_out) && pptr) {
12781 basic_streambuf_char_setp_next(&this->base, eback,
12782 gptr, basic_streambuf_char_epptr(&this->base));
12785 }else if((mode & OPENMODE_out) && pptr) {
12786 if(way == SEEKDIR_cur)
12788 else if(way == SEEKDIR_end)
12789 off += this->seekhigh-eback;
12790 else if(way != SEEKDIR_beg)
12793 if(off<0 || off>this->seekhigh-eback)
12796 basic_streambuf_char_pbump(&this->base, eback-pptr+off);
12805 /* ?seekpos@strstreambuf@std@@MAE?AV?$fpos@H@2@V32@H@Z */
12806 /* ?seekpos@strstreambuf@std@@MEAA?AV?$fpos@H@2@V32@H@Z */
12807 DEFINE_THISCALL_WRAPPER(strstreambuf_seekpos, 36)
12808 fpos_int* __thiscall strstreambuf_seekpos(strstreambuf *this, fpos_int *ret, fpos_int pos, int mode)
12810 TRACE("(%p %p %s %d)\n", this, ret, debugstr_fpos_int(&pos), mode);
12812 if(pos.off==0 && pos.pos==-1 && pos.state==0) {
12817 return strstreambuf_seekoff(this, ret, pos.off, SEEKDIR_beg, mode);
12820 /* ?underflow@strstreambuf@std@@MAEHXZ */
12821 /* ?underflow@strstreambuf@std@@MEAAHXZ */
12822 DEFINE_THISCALL_WRAPPER(strstreambuf_underflow, 4)
12823 int __thiscall strstreambuf_underflow(strstreambuf *this)
12825 char *gptr = basic_streambuf_char_gptr(&this->base);
12828 TRACE("(%p)\n", this);
12833 if(gptr < basic_streambuf_char_egptr(&this->base))
12834 return (unsigned char)(*gptr);
12836 pptr = basic_streambuf_char_gptr(&this->base);
12837 if(pptr > this->seekhigh)
12838 this->seekhigh = pptr;
12840 if(this->seekhigh <= gptr)
12843 basic_streambuf_char_setg(&this->base, basic_streambuf_char_eback(&this->base),
12844 gptr, this->seekhigh);
12845 return (unsigned char)(*gptr);
12848 static void __cdecl setprecision_func(ios_base *base, streamsize prec)
12850 ios_base_precision_set(base, prec);
12853 /* ?setprecision@std@@YA?AU?$_Smanip@H@1@H@Z */
12854 /* ?setprecision@std@@YA?AU?$_Smanip@_J@1@_J@Z */
12855 manip_streamsize* __cdecl setprecision(manip_streamsize *ret, streamsize prec)
12857 TRACE("(%p %ld)\n", ret, prec);
12859 ret->pfunc = setprecision_func;
12864 static void __cdecl setw_func(ios_base *base, streamsize width)
12866 ios_base_width_set(base, width);
12869 /* ?setw@std@@YA?AU?$_Smanip@H@1@H@Z */
12870 /* ?setw@std@@YA?AU?$_Smanip@_J@1@_J@Z */
12871 manip_streamsize* __cdecl setw(manip_streamsize *ret, streamsize width)
12873 TRACE("(%p %ld)\n", ret, width);
12875 ret->pfunc = setw_func;
12880 static basic_filebuf_char filebuf_char_stdin;
12881 /* ?cin@std@@3V?$basic_istream@DU?$char_traits@D@std@@@1@A */
12883 basic_istream_char obj;
12884 basic_ios_char vbase;
12886 /* ?_Ptr_cin@std@@3PAV?$basic_istream@DU?$char_traits@D@std@@@1@A */
12887 /* ?_Ptr_cin@std@@3PEAV?$basic_istream@DU?$char_traits@D@std@@@1@EA */
12888 basic_istream_char *_Ptr_cin = &cin.obj;
12890 static basic_filebuf_wchar filebuf_short_stdin;
12891 /* ?wcin@std@@3V?$basic_istream@GU?$char_traits@G@std@@@1@A */
12893 basic_istream_wchar obj;
12894 basic_ios_wchar vbase;
12895 } ucin = { { 0 } };
12896 /* ?_Ptr_wcin@std@@3PAV?$basic_istream@GU?$char_traits@G@std@@@1@A */
12897 /* ?_Ptr_wcin@std@@3PEAV?$basic_istream@GU?$char_traits@G@std@@@1@EA */
12898 basic_istream_wchar *_Ptr_ucin = &ucin.obj;
12900 static basic_filebuf_wchar filebuf_wchar_stdin;
12901 /* ?wcin@std@@3V?$basic_istream@_WU?$char_traits@_W@std@@@1@A */
12903 basic_istream_wchar obj;
12904 basic_ios_wchar vbase;
12905 } wcin = { { 0 } };
12906 /* ?_Ptr_wcin@std@@3PAV?$basic_istream@_WU?$char_traits@_W@std@@@1@A */
12907 /* ?_Ptr_wcin@std@@3PEAV?$basic_istream@_WU?$char_traits@_W@std@@@1@EA */
12908 basic_istream_wchar *_Ptr_wcin = &wcin.obj;
12910 static basic_filebuf_char filebuf_char_stdout;
12911 /* ?cout@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A */
12913 basic_ostream_char obj;
12914 basic_ios_char vbase;
12915 } cout = { { 0 } };
12916 /* ?_Ptr_cout@std@@3PAV?$basic_ostream@DU?$char_traits@D@std@@@1@A */
12917 /* ?_Ptr_cout@std@@3PEAV?$basic_ostream@DU?$char_traits@D@std@@@1@EA */
12918 basic_ostream_char *_Ptr_cout = &cout.obj;
12920 static basic_filebuf_wchar filebuf_short_stdout;
12921 /* ?wcout@std@@3V?$basic_ostream@GU?$char_traits@G@std@@@1@A */
12923 basic_ostream_wchar obj;
12924 basic_ios_wchar vbase;
12925 } ucout = { { 0 } };
12926 /* ?_Ptr_wcout@std@@3PAV?$basic_ostream@GU?$char_traits@G@std@@@1@A */
12927 /* ?_Ptr_wcout@std@@3PEAV?$basic_ostream@GU?$char_traits@G@std@@@1@EA */
12928 basic_ostream_wchar *_Ptr_ucout = &ucout.obj;
12930 static basic_filebuf_wchar filebuf_wchar_stdout;
12931 /* ?wcout@std@@3V?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
12933 basic_ostream_wchar obj;
12934 basic_ios_wchar vbase;
12935 } wcout = { { 0 } };
12936 /* ?_Ptr_wcout@std@@3PAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
12937 /* ?_Ptr_wcout@std@@3PEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@EA */
12938 basic_ostream_wchar *_Ptr_wcout = &wcout.obj;
12940 static basic_filebuf_char filebuf_char_stderr;
12941 /* ?cerr@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A */
12943 basic_ostream_char obj;
12944 basic_ios_char vbase;
12945 } cerr = { { 0 } };
12946 /* ?_Ptr_cerr@std@@3PAV?$basic_ostream@DU?$char_traits@D@std@@@1@A */
12947 /* ?_Ptr_cerr@std@@3PEAV?$basic_ostream@DU?$char_traits@D@std@@@1@EA */
12948 basic_ostream_char *_Ptr_cerr = &cerr.obj;
12950 static basic_filebuf_wchar filebuf_short_stderr;
12951 /* ?wcerr@std@@3V?$basic_ostream@GU?$char_traits@G@std@@@1@A */
12953 basic_ostream_wchar obj;
12954 basic_ios_wchar vbase;
12955 } ucerr = { { 0 } };
12956 /* ?_Ptr_wcerr@std@@3PAV?$basic_ostream@GU?$char_traits@G@std@@@1@A */
12957 /* ?_Ptr_wcerr@std@@3PEAV?$basic_ostream@GU?$char_traits@G@std@@@1@EA */
12958 basic_ostream_wchar *_Ptr_ucerr = &ucerr.obj;
12960 static basic_filebuf_wchar filebuf_wchar_stderr;
12961 /* ?wcerr@std@@3V?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
12963 basic_ostream_wchar obj;
12964 basic_ios_wchar vbase;
12965 } wcerr = { { 0 } };
12966 /* ?_Ptr_wcerr@std@@3PAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
12967 /* ?_Ptr_wcerr@std@@3PEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@EA */
12968 basic_ostream_wchar *_Ptr_wcerr = &wcerr.obj;
12970 static basic_filebuf_char filebuf_char_log;
12971 /* ?clog@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A */
12973 basic_ostream_char obj;
12974 basic_ios_char vbase;
12975 } clog = { { 0 } };
12976 /* ?_Ptr_clog@std@@3PAV?$basic_ostream@DU?$char_traits@D@std@@@1@A */
12977 /* ?_Ptr_clog@std@@3PEAV?$basic_ostream@DU?$char_traits@D@std@@@1@EA */
12978 basic_ostream_char *_Ptr_clog = &clog.obj;
12980 static basic_filebuf_wchar filebuf_short_log;
12981 /* ?wclog@std@@3V?$basic_ostream@GU?$char_traits@G@std@@@1@A */
12983 basic_ostream_wchar obj;
12984 basic_ios_wchar vbase;
12985 } uclog = { { 0 } };
12986 /* ?_Ptr_wclog@std@@3PAV?$basic_ostream@GU?$char_traits@G@std@@@1@A */
12987 /* ?_Ptr_wclog@std@@3PEAV?$basic_ostream@GU?$char_traits@G@std@@@1@EA */
12988 basic_ostream_wchar *_Ptr_uclog = &uclog.obj;
12990 static basic_filebuf_wchar filebuf_wchar_log;
12991 /* ?wclog@std@@3V?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
12993 basic_ostream_wchar obj;
12994 basic_ios_wchar vbase;
12995 } wclog = { { 0 } };
12996 /* ?_Ptr_wclog@std@@3PAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@A */
12997 /* ?_Ptr_wclog@std@@3PEAV?$basic_ostream@_WU?$char_traits@_W@std@@@1@EA */
12998 basic_ostream_wchar *_Ptr_wclog = &wclog.obj;
13000 void init_io(void *base)
13003 init_iosb_rtti(base);
13004 init_ios_base_rtti(base);
13005 init_basic_ios_char_rtti(base);
13006 init_basic_ios_wchar_rtti(base);
13007 init_basic_ios_short_rtti(base);
13008 init_basic_streambuf_char_rtti(base);
13009 init_basic_streambuf_wchar_rtti(base);
13010 init_basic_streambuf_short_rtti(base);
13011 init_basic_filebuf_char_rtti(base);
13012 init_basic_filebuf_wchar_rtti(base);
13013 init_basic_filebuf_short_rtti(base);
13014 init_basic_stringbuf_char_rtti(base);
13015 init_basic_stringbuf_wchar_rtti(base);
13016 init_basic_stringbuf_short_rtti(base);
13017 init_basic_ostream_char_rtti(base);
13018 init_basic_ostream_wchar_rtti(base);
13019 init_basic_ostream_short_rtti(base);
13020 init_basic_istream_char_rtti(base);
13021 init_basic_istream_wchar_rtti(base);
13022 init_basic_istream_short_rtti(base);
13023 init_basic_iostream_char_rtti(base);
13024 init_basic_iostream_wchar_rtti(base);
13025 init_basic_iostream_short_rtti(base);
13026 init_basic_ofstream_char_rtti(base);
13027 init_basic_ofstream_wchar_rtti(base);
13028 init_basic_ofstream_short_rtti(base);
13029 init_basic_ifstream_char_rtti(base);
13030 init_basic_ifstream_wchar_rtti(base);
13031 init_basic_ifstream_short_rtti(base);
13032 init_basic_fstream_char_rtti(base);
13033 init_basic_fstream_wchar_rtti(base);
13034 init_basic_fstream_short_rtti(base);
13035 init_basic_ostringstream_char_rtti(base);
13036 init_basic_ostringstream_wchar_rtti(base);
13037 init_basic_ostringstream_short_rtti(base);
13038 init_basic_istringstream_char_rtti(base);
13039 init_basic_istringstream_wchar_rtti(base);
13040 init_basic_istringstream_short_rtti(base);
13041 init_basic_stringstream_char_rtti(base);
13042 init_basic_stringstream_wchar_rtti(base);
13043 init_basic_stringstream_short_rtti(base);
13044 init_strstreambuf_rtti(base);
13047 basic_filebuf_char_ctor_file(&filebuf_char_stdin, stdin);
13048 basic_istream_char_ctor(&cin.obj, &filebuf_char_stdin.base, FALSE/*FIXME*/, TRUE);
13050 basic_filebuf_short_ctor_file(&filebuf_short_stdin, stdin);
13051 basic_istream_short_ctor(&ucin.obj, &filebuf_short_stdin.base, FALSE/*FIXME*/, TRUE);
13053 basic_filebuf_wchar_ctor_file(&filebuf_wchar_stdin, stdin);
13054 basic_istream_wchar_ctor(&wcin.obj, &filebuf_wchar_stdin.base, FALSE/*FIXME*/, TRUE);
13056 basic_filebuf_char_ctor_file(&filebuf_char_stdout, stdout);
13057 basic_ostream_char_ctor(&cout.obj, &filebuf_char_stdout.base, FALSE/*FIXME*/, TRUE);
13059 basic_filebuf_short_ctor_file(&filebuf_short_stdout, stdout);
13060 basic_ostream_short_ctor(&ucout.obj, &filebuf_short_stdout.base, FALSE/*FIXME*/, TRUE);
13062 basic_filebuf_wchar_ctor_file(&filebuf_wchar_stdout, stdout);
13063 basic_ostream_wchar_ctor(&wcout.obj, &filebuf_wchar_stdout.base, FALSE/*FIXME*/, TRUE);
13065 basic_filebuf_char_ctor_file(&filebuf_char_stderr, stderr);
13066 basic_ostream_char_ctor(&cerr.obj, &filebuf_char_stderr.base, FALSE/*FIXME*/, TRUE);
13068 basic_filebuf_short_ctor_file(&filebuf_short_stderr, stderr);
13069 basic_ostream_short_ctor(&ucerr.obj, &filebuf_short_stderr.base, FALSE/*FIXME*/, TRUE);
13071 basic_filebuf_wchar_ctor_file(&filebuf_wchar_stderr, stderr);
13072 basic_ostream_wchar_ctor(&wcerr.obj, &filebuf_wchar_stderr.base, FALSE/*FIXME*/, TRUE);
13074 basic_filebuf_char_ctor_file(&filebuf_char_log, stderr);
13075 basic_ostream_char_ctor(&clog.obj, &filebuf_char_log.base, FALSE/*FIXME*/, TRUE);
13077 basic_filebuf_short_ctor_file(&filebuf_short_log, stderr);
13078 basic_ostream_short_ctor(&uclog.obj, &filebuf_short_log.base, FALSE/*FIXME*/, TRUE);
13080 basic_filebuf_wchar_ctor_file(&filebuf_wchar_log, stderr);
13081 basic_ostream_wchar_ctor(&wclog.obj, &filebuf_wchar_log.base, FALSE/*FIXME*/, TRUE);
13086 basic_istream_char_dtor(basic_istream_char_to_basic_ios(&cin.obj));
13087 basic_filebuf_char_dtor(&filebuf_char_stdin);
13089 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(&ucin.obj));
13090 basic_filebuf_wchar_dtor(&filebuf_short_stdin);
13092 basic_istream_wchar_dtor(basic_istream_wchar_to_basic_ios(&wcin.obj));
13093 basic_filebuf_wchar_dtor(&filebuf_wchar_stdin);
13095 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&cout.obj));
13096 basic_filebuf_char_dtor(&filebuf_char_stdout);
13098 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(&ucout.obj));
13099 basic_filebuf_wchar_dtor(&filebuf_short_stdout);
13101 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(&wcout.obj));
13102 basic_filebuf_wchar_dtor(&filebuf_wchar_stdout);
13104 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&cerr.obj));
13105 basic_filebuf_char_dtor(&filebuf_char_stderr);
13107 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(&ucerr.obj));
13108 basic_filebuf_wchar_dtor(&filebuf_short_stderr);
13110 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(&wcerr.obj));
13111 basic_filebuf_wchar_dtor(&filebuf_wchar_stderr);
13113 basic_ostream_char_dtor(basic_ostream_char_to_basic_ios(&clog.obj));
13114 basic_filebuf_char_dtor(&filebuf_char_log);
13116 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(&uclog.obj));
13117 basic_filebuf_wchar_dtor(&filebuf_short_log);
13119 basic_ostream_wchar_dtor(basic_ostream_wchar_to_basic_ios(&wclog.obj));
13120 basic_filebuf_wchar_dtor(&filebuf_wchar_log);