2 * Copyright 2010 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(msvcp90);
32 /* _String_iterator<char> and _String_const_iterator<char> class */
34 basic_string_char *bstr;
36 } String_iterator_char;
37 typedef String_iterator_char String_reverse_iterator_char;
40 basic_string_wchar *bstr;
42 } String_iterator_wchar;
43 typedef String_iterator_wchar String_reverse_iterator_wchar;
45 /* size_t_noverify structure */
55 /* char_traits<char> */
56 /* ?assign@?$char_traits@D@std@@SAXAADABD@Z */
57 /* ?assign@?$char_traits@D@std@@SAXAEADAEBD@Z */
58 void CDECL MSVCP_char_traits_char_assign(char *ch, const char *assign)
63 /* ?eq@?$char_traits@D@std@@SA_NABD0@Z */
64 /* ?eq@?$char_traits@D@std@@SA_NAEBD0@Z */
65 MSVCP_bool CDECL MSVCP_char_traits_char_eq(const char *ch1, const char *ch2)
70 /* ?lt@?$char_traits@D@std@@SA_NABD0@Z */
71 /* ?lt@?$char_traits@D@std@@SA_NAEBD0@Z */
72 MSVCP_bool CDECL MSVCP_char_traits_lt(const char *ch1, const char *ch2)
77 /* ?compare@?$char_traits@D@std@@SAHPBD0I@Z */
78 /* ?compare@?$char_traits@D@std@@SAHPEBD0_K@Z */
79 int CDECL MSVCP_char_traits_char_compare(
80 const char *s1, const char *s2, MSVCP_size_t count)
82 int ret = memcmp(s1, s2, count);
83 return (ret>0 ? 1 : (ret<0 ? -1 : 0));
86 /* ?length@?$char_traits@D@std@@SAIPBD@Z */
87 /* ?length@?$char_traits@D@std@@SA_KPEBD@Z */
88 MSVCP_size_t CDECL MSVCP_char_traits_char_length(const char *str)
93 /* ?_Copy_s@?$char_traits@D@std@@SAPADPADIPBDI@Z */
94 /* ?_Copy_s@?$char_traits@D@std@@SAPEADPEAD_KPEBD1@Z */
95 char* CDECL MSVCP_char_traits_char__Copy_s(char *dest,
96 MSVCP_size_t size, const char *src, MSVCP_size_t count)
98 if(!dest || !src || size<count) {
101 _invalid_parameter(NULL, NULL, NULL, 0, 0);
105 return memcpy(dest, src, count);
108 /* ?copy@?$char_traits@D@std@@SAPADPADPBDI@Z */
109 /* ?copy@?$char_traits@D@std@@SAPEADPEADPEBD_K@Z */
110 char* CDECL MSVCP_char_traits_char_copy(
111 char *dest, const char *src, MSVCP_size_t count)
113 return MSVCP_char_traits_char__Copy_s(dest, count, src, count);
116 /* ?find@?$char_traits@D@std@@SAPBDPBDIABD@Z */
117 /* ?find@?$char_traits@D@std@@SAPEBDPEBD_KAEBD@Z */
118 const char * CDECL MSVCP_char_traits_char_find(
119 const char *str, MSVCP_size_t range, const char *c)
121 return memchr(str, *c, range);
124 /* ?_Move_s@?$char_traits@D@std@@SAPADPADIPBDI@Z */
125 /* ?_Move_s@?$char_traits@D@std@@SAPEADPEAD_KPEBD1@Z */
126 char* CDECL MSVCP_char_traits_char__Move_s(char *dest,
127 MSVCP_size_t size, const char *src, MSVCP_size_t count)
129 if(!dest || !src || size<count) {
132 _invalid_parameter(NULL, NULL, NULL, 0, 0);
136 return memmove(dest, src, count);
139 /* ?move@?$char_traits@D@std@@SAPADPADPBDI@Z */
140 /* ?move@?$char_traits@D@std@@SAPEADPEADPEBD_K@Z */
141 char* CDECL MSVCP_char_traits_char_move(
142 char *dest, const char *src, MSVCP_size_t count)
144 return MSVCP_char_traits_char__Move_s(dest, count, src, count);
147 /* ?assign@?$char_traits@D@std@@SAPADPADID@Z */
148 /* ?assign@?$char_traits@D@std@@SAPEADPEAD_KD@Z */
149 char* CDECL MSVCP_char_traits_char_assignn(char *str, MSVCP_size_t num, char c)
151 return memset(str, c, num);
154 /* ?to_char_type@?$char_traits@D@std@@SADABH@Z */
155 /* ?to_char_type@?$char_traits@D@std@@SADAEBH@Z */
156 char CDECL MSVCP_char_traits_char_to_char_type(const int *i)
161 /* ?to_int_type@?$char_traits@D@std@@SAHABD@Z */
162 /* ?to_int_type@?$char_traits@D@std@@SAHAEBD@Z */
163 int CDECL MSVCP_char_traits_char_to_int_type(const char *ch)
168 /* ?eq_int_type@?$char_traits@D@std@@SA_NABH0@Z */
169 /* ?eq_int_type@?$char_traits@D@std@@SA_NAEBH0@Z */
170 MSVCP_bool CDECL MSVCP_char_traits_char_eq_int_type(const int *i1, const int *i2)
175 /* ?eof@?$char_traits@D@std@@SAHXZ */
176 int CDECL MSVCP_char_traits_char_eof(void)
181 /* ?not_eof@?$char_traits@D@std@@SAHABH@Z */
182 /* ?not_eof@?$char_traits@D@std@@SAHAEBH@Z */
183 int CDECL MSVCP_char_traits_char_not_eof(int *in)
185 return (*in==EOF ? !EOF : *in);
189 /* char_traits<wchar_t> */
190 /* ?assign@?$char_traits@_W@std@@SAXAA_WAB_W@Z */
191 /* ?assign@?$char_traits@_W@std@@SAXAEA_WAEB_W@Z */
192 void CDECL MSVCP_char_traits_wchar_assign(wchar_t *ch,
193 const wchar_t *assign)
198 /* ?eq@?$char_traits@_W@std@@SA_NAB_W0@Z */
199 /* ?eq@?$char_traits@_W@std@@SA_NAEB_W0@Z */
200 MSVCP_bool CDECL MSVCP_char_traits_wchar_eq(wchar_t *ch1, wchar_t *ch2)
205 /* ?lt@?$char_traits@_W@std@@SA_NAB_W0@Z */
206 /* ?lt@?$char_traits@_W@std@@SA_NAEB_W0@Z */
207 MSVCP_bool CDECL MSVCP_char_traits_wchar_lt(const wchar_t *ch1,
213 /* ?compare@?$char_traits@_W@std@@SAHPB_W0I@Z */
214 /* ?compare@?$char_traits@_W@std@@SAHPEB_W0_K@Z */
215 int CDECL MSVCP_char_traits_wchar_compare(const wchar_t *s1,
216 const wchar_t *s2, MSVCP_size_t count)
218 int ret = memcmp(s1, s2, count * sizeof(wchar_t));
219 return (ret>0 ? 1 : (ret<0 ? -1 : 0));
222 /* ?length@?$char_traits@_W@std@@SAIPB_W@Z */
223 /* ?length@?$char_traits@_W@std@@SA_KPEB_W@Z */
224 MSVCP_size_t CDECL MSVCP_char_traits_wchar_length(const wchar_t *str)
226 return wcslen((WCHAR*)str);
229 /* ?_Copy_s@?$char_traits@_W@std@@SAPA_WPA_WIPB_WI@Z */
230 /* ?_Copy_s@?$char_traits@_W@std@@SAPEA_WPEA_W_KPEB_W1@Z */
231 wchar_t* CDECL MSVCP_char_traits_wchar__Copy_s(wchar_t *dest,
232 MSVCP_size_t size, const wchar_t *src, MSVCP_size_t count)
234 if(!dest || !src || size<count) {
237 _invalid_parameter(NULL, NULL, NULL, 0, 0);
241 return memcpy(dest, src, count * sizeof(wchar_t));
244 /* ?copy@?$char_traits@_W@std@@SAPA_WPA_WPB_WI@Z */
245 /* ?copy@?$char_traits@_W@std@@SAPEA_WPEA_WPEB_W_K@Z */
246 wchar_t* CDECL MSVCP_char_traits_wchar_copy(wchar_t *dest,
247 const wchar_t *src, MSVCP_size_t count)
249 return MSVCP_char_traits_wchar__Copy_s(dest, count, src, count);
252 /* ?find@?$char_traits@_W@std@@SAPB_WPB_WIAB_W@Z */
253 /* ?find@?$char_traits@_W@std@@SAPEB_WPEB_W_KAEB_W@Z */
254 const wchar_t* CDECL MSVCP_char_traits_wchar_find(
255 const wchar_t *str, MSVCP_size_t range, const wchar_t *c)
259 for(i=0; i<range; i++)
266 /* ?_Move_s@?$char_traits@_W@std@@SAPA_WPA_WIPB_WI@Z */
267 /* ?_Move_s@?$char_traits@_W@std@@SAPEA_WPEA_W_KPEB_W1@Z */
268 wchar_t* CDECL MSVCP_char_traits_wchar__Move_s(wchar_t *dest,
269 MSVCP_size_t size, const wchar_t *src, MSVCP_size_t count)
271 if(!dest || !src || size<count) {
274 _invalid_parameter(NULL, NULL, NULL, 0, 0);
278 return memmove(dest, src, count * sizeof(WCHAR));
281 /* ?move@?$char_traits@_W@std@@SAPA_WPA_WPB_WI@Z */
282 /* ?move@?$char_traits@_W@std@@SAPEA_WPEA_WPEB_W_K@Z */
283 wchar_t* CDECL MSVCP_char_traits_wchar_move(wchar_t *dest,
284 const wchar_t *src, MSVCP_size_t count)
286 return MSVCP_char_traits_wchar__Move_s(dest, count, src, count);
289 /* ?assign@?$char_traits@_W@std@@SAPA_WPA_WI_W@Z */
290 /* ?assign@?$char_traits@_W@std@@SAPEA_WPEA_W_K_W@Z */
291 wchar_t* CDECL MSVCP_char_traits_wchar_assignn(wchar_t *str,
292 MSVCP_size_t num, wchar_t c)
302 /* ?to_char_type@?$char_traits@_W@std@@SA_WABG@Z */
303 /* ?to_char_type@?$char_traits@_W@std@@SA_WAEBG@Z */
304 wchar_t CDECL MSVCP_char_traits_wchar_to_char_type(const unsigned short *i)
309 /* ?to_int_type@?$char_traits@_W@std@@SAGAB_W@Z */
310 /* ?to_int_type@?$char_traits@_W@std@@SAGAEB_W@Z */
311 unsigned short CDECL MSVCP_char_traits_wchar_to_int_type(const wchar_t *ch)
316 /* ?eq_int_type@?$char_traits@_W@std@@SA_NABG0@Z */
317 /* ?eq_int_type@?$char_traits@_W@std@@SA_NAEBG0@Z */
318 MSVCP_bool CDECL MSVCP_char_traits_wchar_eq_int_tpe(const unsigned short *i1,
319 const unsigned short *i2)
324 /* ?eof@?$char_traits@_W@std@@SAGXZ */
325 unsigned short CDECL MSVCP_char_traits_wchar_eof(void)
330 /* ?not_eof@?$char_traits@_W@std@@SAGABG@Z */
331 /* ?not_eof@?$char_traits@_W@std@@SAGAEBG@Z */
332 unsigned short CDECL MSVCP_char_traits_wchar_not_eof(const unsigned short *in)
334 return (*in==WEOF ? !WEOF : *in);
338 /* char_traits<unsigned short> */
339 /* ?assign@?$char_traits@G@std@@SAXAAGABG@Z */
340 /* ?assign@?$char_traits@G@std@@SAXAEAGAEBG@Z */
341 void CDECL MSVCP_char_traits_short_assign(unsigned short *ch,
342 const unsigned short *assign)
347 /* ?eq@?$char_traits@G@std@@SA_NABG0@Z */
348 /* ?eq@?$char_traits@G@std@@SA_NAEBG0@Z */
349 MSVCP_bool CDECL MSVCP_char_traits_short_eq(const unsigned short *ch1,
350 const unsigned short *ch2)
355 /* ?lt@?$char_traits@G@std@@SA_NABG0@Z */
356 /* ?lt@?$char_traits@G@std@@SA_NAEBG0@Z */
357 MSVCP_bool CDECL MSVCP_char_traits_short_lt(const unsigned short *ch1,
358 const unsigned short *ch2)
363 /* ?compare@?$char_traits@G@std@@SAHPBG0I@Z */
364 /* ?compare@?$char_traits@G@std@@SAHPEBG0_K@Z */
365 int CDECL MSVCP_char_traits_short_compare(const unsigned short *s1,
366 const unsigned short *s2, MSVCP_size_t count)
370 for(i=0; i<count; i++)
372 return (s1[i] < s2[i] ? -1 : 1);
377 /* ?length@?$char_traits@G@std@@SAIPBG@Z */
378 /* ?length@?$char_traits@G@std@@SA_KPEBG@Z */
379 MSVCP_size_t CDECL MSVCP_char_traits_short_length(const unsigned short *str)
383 for(len=0; str[len]; len++);
388 /* ?_Copy_s@?$char_traits@G@std@@SAPAGPAGIPBGI@Z */
389 /* ?_Copy_s@?$char_traits@G@std@@SAPEAGPEAG_KPEBG1@Z */
390 unsigned short * CDECL MSVCP_char_traits_short__Copy_s(unsigned short *dest,
391 MSVCP_size_t size, const unsigned short *src, MSVCP_size_t count)
394 _invalid_parameter(NULL, NULL, NULL, 0, 0);
398 return memcpy(dest, src, count * sizeof(unsigned short));
401 /* ?copy@?$char_traits@G@std@@SAPAGPAGPBGI@Z */
402 /* ?copy@?$char_traits@G@std@@SAPEAGPEAGPEBG_K@Z */
403 unsigned short* CDECL MSVCP_char_traits_short_copy(unsigned short *dest,
404 const unsigned short *src, MSVCP_size_t count)
406 return MSVCP_char_traits_short__Copy_s(dest, count, src, count);
409 /* ?find@?$char_traits@G@std@@SAPBGPBGIABG@Z */
410 /* ?find@?$char_traits@G@std@@SAPEBGPEBG_KAEBG@Z */
411 const unsigned short* CDECL MSVCP_char_traits_short_find(
412 const unsigned short *str, MSVCP_size_t range, const unsigned short *c)
416 for(i=0; i<range; i++)
423 /* ?_Move_s@?$char_traits@G@std@@SAPAGPAGIPBGI@Z */
424 /* ?_Move_s@?$char_traits@G@std@@SAPEAGPEAG_KPEBG1@Z */
425 unsigned short* CDECL MSVCP_char_traits_short__Move_s(unsigned short *dest,
426 MSVCP_size_t size, const unsigned short *src, MSVCP_size_t count)
429 _invalid_parameter(NULL, NULL, NULL, 0, 0);
433 return memmove(dest, src, count * sizeof(unsigned short));
436 /* ?move@?$char_traits@G@std@@SAPAGPAGPBGI@Z */
437 /* ?move@?$char_traits@G@std@@SAPEAGPEAGPEBG_K@Z */
438 unsigned short* CDECL MSVCP_char_traits_short_move(unsigned short *dest,
439 const unsigned short *src, MSVCP_size_t count)
441 return MSVCP_char_traits_short__Move_s(dest, count, src, count);
444 /* ?assign@?$char_traits@G@std@@SAPAGPAGIG@Z */
445 /* ?assign@?$char_traits@G@std@@SAPEAGPEAG_KG@Z */
446 unsigned short* CDECL MSVCP_char_traits_short_assignn(unsigned short *str,
447 MSVCP_size_t num, unsigned short c)
457 /* ?to_char_type@?$char_traits@G@std@@SAGABG@Z */
458 /* ?to_char_type@?$char_traits@G@std@@SAGAEBG@Z */
459 unsigned short CDECL MSVCP_char_traits_short_to_char_type(const unsigned short *i)
464 /* ?to_int_type@?$char_traits@G@std@@SAGABG@Z */
465 /* ?to_int_type@?$char_traits@G@std@@SAGAEBG@Z */
466 unsigned short CDECL MSVCP_char_traits_short_to_int_type(const unsigned short *ch)
471 /* ?eq_int_type@?$char_traits@G@std@@SA_NABG0@Z */
472 /* ?eq_int_type@?$char_traits@G@std@@SA_NAEBG0@Z */
473 MSVCP_bool CDECL MSVCP_char_traits_short_eq_int_type(unsigned short *i1,
479 /* ?eof@?$char_traits@G@std@@SAGXZ */
480 unsigned short CDECL MSVCP_char_traits_short_eof(void)
485 /* ?not_eof@?$char_traits@G@std@@SAGABG@Z */
486 /* ?not_eof@?$char_traits@G@std@@SAGAEBG@Z */
487 unsigned short CDECL MSVCP_char_traits_short_not_eof(const unsigned short *in)
489 return (*in==(unsigned short)-1 ? 0 : *in);
494 /* ?_Xlen@_String_base@std@@SAXXZ */
495 void CDECL MSVCP__String_base_Xlen(void)
497 static const char msg[] = "string too long";
500 throw_exception(EXCEPTION_LENGTH_ERROR, msg);
503 /* ?_Xran@_String_base@std@@SAXXZ */
504 void CDECL MSVCP__String_base_Xran(void)
506 static const char msg[] = "invalid string position";
509 throw_exception(EXCEPTION_OUT_OF_RANGE, msg);
512 /* ?_Xinvarg@_String_base@std@@SAXXZ */
513 void CDECL MSVCP__String_base_Xinvarg(void)
515 static const char msg[] = "invalid string argument";
518 throw_exception(EXCEPTION_INVALID_ARGUMENT, msg);
522 /* basic_string<char, char_traits<char>, allocator<char>> */
523 /* ?npos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@2IB */
524 /* ?npos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@2_KB */
525 const MSVCP_size_t MSVCP_basic_string_char_npos = -1;
527 /* ?_Myptr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEPADXZ */
528 /* ?_Myptr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAPEADXZ */
529 DEFINE_THISCALL_WRAPPER(basic_string_char_ptr, 4)
530 char* __thiscall basic_string_char_ptr(basic_string_char *this)
532 if(this->res == BUF_SIZE_CHAR-1)
533 return this->data.buf;
534 return this->data.ptr;
537 /* ?_Myptr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IBEPBDXZ */
538 /* ?_Myptr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEBAPEBDXZ */
539 DEFINE_THISCALL_WRAPPER(basic_string_char_const_ptr, 4)
540 const char* __thiscall basic_string_char_const_ptr(const basic_string_char *this)
542 if(this->res == BUF_SIZE_CHAR-1)
543 return this->data.buf;
544 return this->data.ptr;
547 /* ?_Eos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXI@Z */
548 /* ?_Eos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAX_K@Z */
549 DEFINE_THISCALL_WRAPPER(basic_string_char_eos, 8)
550 void __thiscall basic_string_char_eos(basic_string_char *this, MSVCP_size_t len)
552 static const char nullbyte = '\0';
555 MSVCP_char_traits_char_assign(basic_string_char_ptr(this)+len, &nullbyte);
558 /* ?_Inside@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAE_NPBD@Z */
559 /* ?_Inside@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAA_NPEBD@Z */
560 DEFINE_THISCALL_WRAPPER(basic_string_char_inside, 8)
561 MSVCP_bool __thiscall basic_string_char_inside(
562 basic_string_char *this, const char *ptr)
564 char *cstr = basic_string_char_ptr(this);
566 return (ptr<cstr || ptr>=cstr+this->size) ? FALSE : TRUE;
569 /* ?_Tidy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEX_NI@Z */
570 /* ?_Tidy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAX_N_K@Z */
571 DEFINE_THISCALL_WRAPPER(basic_string_char_tidy, 12)
572 void __thiscall basic_string_char_tidy(basic_string_char *this,
573 MSVCP_bool built, MSVCP_size_t new_size)
575 if(built && BUF_SIZE_CHAR<=this->res) {
576 char *ptr = this->data.ptr;
579 MSVCP_char_traits_char__Copy_s(this->data.buf, BUF_SIZE_CHAR, ptr, new_size);
580 MSVCP_allocator_char_deallocate(this->allocator, ptr, this->res+1);
583 this->res = BUF_SIZE_CHAR-1;
584 basic_string_char_eos(this, new_size);
587 /* Exported only from msvcp60/70 */
588 /* ?_Tidy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEX_N@Z */
589 /* ?_Tidy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAX_N@Z */
590 DEFINE_THISCALL_WRAPPER(basic_string_char_tidy_built, 8)
591 void __thiscall basic_string_char_tidy_built(basic_string_char *this, MSVCP_bool built)
593 basic_string_char_tidy(this, built, 0);
596 /* ?_Grow@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAE_NI_N@Z */
597 /* ?_Grow@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAA_N_K_N@Z */
598 DEFINE_THISCALL_WRAPPER(basic_string_char_grow, 12)
599 MSVCP_bool __thiscall basic_string_char_grow(
600 basic_string_char *this, MSVCP_size_t new_size, MSVCP_bool trim)
602 if(this->res < new_size) {
603 MSVCP_size_t new_res = new_size, len = this->size;
608 if(new_res/3 < this->res/2)
609 new_res = this->res + this->res/2;
611 ptr = MSVCP_allocator_char_allocate(this->allocator, new_res+1);
613 ptr = MSVCP_allocator_char_allocate(this->allocator, new_size+1);
617 ERR("Out of memory\n");
618 basic_string_char_tidy(this, TRUE, 0);
622 MSVCP_char_traits_char__Copy_s(ptr, new_size,
623 basic_string_char_ptr(this), this->size);
624 basic_string_char_tidy(this, TRUE, 0);
625 this->data.ptr = ptr;
626 this->res = new_size;
627 basic_string_char_eos(this, len);
628 } else if(trim && new_size < BUF_SIZE_CHAR)
629 basic_string_char_tidy(this, TRUE,
630 new_size<this->size ? new_size : this->size);
631 else if(new_size == 0)
632 basic_string_char_eos(this, 0);
637 /* ?_Copy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXII@Z */
638 /* ?_Copy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAX_K0@Z */
639 DEFINE_THISCALL_WRAPPER(basic_string_char__Copy, 12)
640 void __thiscall basic_string_char__Copy(basic_string_char *this,
641 MSVCP_size_t new_size, MSVCP_size_t copy_len)
643 TRACE("%p %lu %lu\n", this, new_size, copy_len);
645 if(!basic_string_char_grow(this, new_size, FALSE))
647 basic_string_char_eos(this, copy_len);
650 /* ?_Pdif@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KAIV?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@0@Z */
651 /* ?_Pdif@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KA_KV?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@0@Z */
652 MSVCP_size_t __cdecl MSVCP_basic_string_char_Pdif(String_iterator_char i1, String_iterator_char i2)
654 TRACE("(%p %p) (%p %p)\n", i1.bstr, i1.pos, i2.bstr, i2.pos);
656 if((!i1.bstr && i1.pos) || i1.bstr!=i2.bstr) {
657 _invalid_parameter(NULL, NULL, NULL, 0, 0);
661 return !i1.pos ? 0 : i1.pos-i2.pos;
664 /* ?get_allocator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AV?$allocator@D@2@XZ */
665 /* ?get_allocator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA?AV?$allocator@D@2@XZ */
666 DEFINE_THISCALL_WRAPPER(basic_string_char_get_allocator, 8)
667 allocator* __thiscall basic_string_char_get_allocator(const basic_string_char *this, allocator *ret)
673 /* ?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@II@Z */
674 /* ?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0@Z */
675 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_erase, 12)
676 basic_string_char* __thiscall MSVCP_basic_string_char_erase(
677 basic_string_char *this, MSVCP_size_t pos, MSVCP_size_t len)
679 TRACE("%p %lu %lu\n", this, pos, len);
682 MSVCP__String_base_Xran();
684 if(len > this->size-pos)
685 len = this->size-pos;
688 MSVCP_char_traits_char__Move_s(basic_string_char_ptr(this)+pos,
689 this->res-pos, basic_string_char_ptr(this)+pos+len,
691 basic_string_char_eos(this, this->size-len);
697 /* ?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AV?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@0@Z */
698 /* ?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA?AV?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@0@Z */
699 DEFINE_THISCALL_WRAPPER(basic_string_char_erase_iter_range, 24)
700 String_iterator_char* __thiscall basic_string_char_erase_iter_range(basic_string_char *this,
701 String_iterator_char *ret, String_iterator_char beg, String_iterator_char end)
706 ret->pos = basic_string_char_ptr(this);
707 off = MSVCP_basic_string_char_Pdif(beg, *ret);
709 MSVCP_basic_string_char_erase(this, off, MSVCP_basic_string_char_Pdif(end, beg));
712 ret->pos = basic_string_char_ptr(this)+off;
716 /* ?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AV?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z */
717 /* ?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA?AV?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z */
718 DEFINE_THISCALL_WRAPPER(basic_string_char_erase_iter, 16)
719 String_iterator_char* __thiscall basic_string_char_erase_iter(basic_string_char *this,
720 String_iterator_char *ret, String_iterator_char pos)
725 ret->pos = basic_string_char_ptr(this);
726 off = MSVCP_basic_string_char_Pdif(pos, *ret);
728 MSVCP_basic_string_char_erase(this, off, 1);
731 ret->pos = basic_string_char_ptr(this)+off;
735 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@II@Z */
736 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@AEBV12@_K1@Z */
737 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign_substr, 16)
738 basic_string_char* __thiscall MSVCP_basic_string_char_assign_substr(
739 basic_string_char *this, const basic_string_char *assign,
740 MSVCP_size_t pos, MSVCP_size_t len)
742 TRACE("%p %p %lu %lu\n", this, assign, pos, len);
744 if(assign->size < pos)
745 MSVCP__String_base_Xran();
747 if(len > assign->size-pos)
748 len = assign->size-pos;
751 MSVCP_basic_string_char_erase(this, pos+len, MSVCP_basic_string_char_npos);
752 MSVCP_basic_string_char_erase(this, 0, pos);
753 } else if(basic_string_char_grow(this, len, FALSE)) {
754 MSVCP_char_traits_char__Copy_s(basic_string_char_ptr(this),
755 this->res, basic_string_char_const_ptr(assign)+pos, len);
756 basic_string_char_eos(this, len);
762 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@@Z */
763 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@AEBV12@@Z */
764 /* ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z */
765 /* ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV01@AEBV01@@Z */
766 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign, 8)
767 basic_string_char* __thiscall MSVCP_basic_string_char_assign(
768 basic_string_char *this, const basic_string_char *assign)
770 return MSVCP_basic_string_char_assign_substr(this, assign,
771 0, MSVCP_basic_string_char_npos);
774 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBDI@Z */
775 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@PEBD_K@Z */
776 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign_cstr_len, 12)
777 basic_string_char* __thiscall MSVCP_basic_string_char_assign_cstr_len(
778 basic_string_char *this, const char *str, MSVCP_size_t len)
780 TRACE("%p %s %lu\n", this, debugstr_a(str), len);
782 if(basic_string_char_inside(this, str))
783 return MSVCP_basic_string_char_assign_substr(this, this,
784 str-basic_string_char_ptr(this), len);
785 else if(basic_string_char_grow(this, len, FALSE)) {
786 MSVCP_char_traits_char__Copy_s(basic_string_char_ptr(this),
787 this->res, str, len);
788 basic_string_char_eos(this, len);
794 /* ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@D@Z */
795 /* ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV01@D@Z */
796 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign_ch, 8)
797 basic_string_char* __thiscall MSVCP_basic_string_char_assign_ch(
798 basic_string_char *this, char ch)
800 return MSVCP_basic_string_char_assign_cstr_len(this, &ch, 1);
803 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBD@Z */
804 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@PEBD@Z */
805 /* ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@PBD@Z */
806 /* ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV01@PEBD@Z */
807 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign_cstr, 8)
808 basic_string_char* __thiscall MSVCP_basic_string_char_assign_cstr(
809 basic_string_char *this, const char *str)
811 return MSVCP_basic_string_char_assign_cstr_len(this, str,
812 MSVCP_char_traits_char_length(str));
815 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ID@Z */
816 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_KD@Z */
817 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assignn, 12)
818 basic_string_char* __thiscall MSVCP_basic_string_char_assignn(
819 basic_string_char *this, MSVCP_size_t count, char ch)
821 TRACE("%p %ld %c\n", this, count, ch);
823 basic_string_char_grow(this, count, FALSE);
824 MSVCP_char_traits_char_assignn(basic_string_char_ptr(this), count, ch);
825 basic_string_char_eos(this, count);
829 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBD0@Z */
830 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@PEBD0@Z */
831 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign_ptr_ptr, 12)
832 basic_string_char* __thiscall MSVCP_basic_string_char_assign_ptr_ptr(
833 basic_string_char *this, const char *first, const char *last)
835 return MSVCP_basic_string_char_assign_cstr_len(this, first, last-first);
838 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@0@Z */
839 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@0@Z */
840 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign_iter, 20)
841 basic_string_char* __thiscall MSVCP_basic_string_char_assign_iter(basic_string_char *this,
842 String_iterator_char beg, String_iterator_char end)
844 return MSVCP_basic_string_char_assign_ptr_ptr(this, beg.pos, end.pos+1);
847 /* ?_Chassign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXIID@Z */
848 /* ?_Chassign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAX_K0D@Z */
849 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_Chassign, 16)
850 void __thiscall MSVCP_basic_string_char_Chassign(basic_string_char *this,
851 MSVCP_size_t off, MSVCP_size_t count, char ch)
853 TRACE("%p %lu %lu %c\n", this, off, count, ch);
854 MSVCP_char_traits_char_assignn(basic_string_char_ptr(this)+off, count, ch);
857 /* ?_Copy_s@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPADIII@Z */
858 /* ?_Copy_s@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEAD_K11@Z */
859 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_Copy_s, 20)
860 MSVCP_size_t __thiscall MSVCP_basic_string_char_Copy_s(const basic_string_char *this,
861 char *dest, MSVCP_size_t size, MSVCP_size_t count, MSVCP_size_t off)
863 TRACE("%p %p %lu %lu %lu\n", this, dest, size, count, off);
866 MSVCP__String_base_Xran();
868 if(count > this->size-off)
869 count = this->size-off;
871 MSVCP_char_traits_char__Copy_s(dest, size,
872 basic_string_char_const_ptr(this)+off, count);
876 /* ?copy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPADII@Z */
877 /* ?copy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEAD_K1@Z */
878 DEFINE_THISCALL_WRAPPER(basic_string_char_copy, 16)
879 MSVCP_size_t __thiscall basic_string_char_copy(const basic_string_char *this,
880 char *dest, MSVCP_size_t count, MSVCP_size_t off)
882 return MSVCP_basic_string_char_Copy_s(this, dest, count, count, off);
885 /* ?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ */
886 /* ?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAPEBDXZ */
887 /* ?data@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ */
888 /* ?data@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAPEBDXZ */
889 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_c_str, 4)
890 const char* __thiscall MSVCP_basic_string_char_c_str(const basic_string_char *this)
893 return basic_string_char_const_ptr(this);
896 /* ?capacity@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ */
897 /* ?capacity@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KXZ */
898 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_capacity, 4)
899 MSVCP_size_t __thiscall MSVCP_basic_string_char_capacity(basic_string_char *this)
905 /* ?reserve@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXI@Z */
906 /* ?reserve@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAX_K@Z */
907 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_reserve, 8)
908 void __thiscall MSVCP_basic_string_char_reserve(basic_string_char *this, MSVCP_size_t size)
912 TRACE("%p %ld\n", this, size);
918 basic_string_char_grow(this, size, FALSE);
919 basic_string_char_eos(this, len);
922 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ */
923 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@XZ */
924 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor, 4)
925 basic_string_char* __thiscall MSVCP_basic_string_char_ctor(basic_string_char *this)
929 basic_string_char_tidy(this, FALSE, 0);
933 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z */
934 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@AEBV01@@Z */
935 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_copy_ctor, 8)
936 basic_string_char* __thiscall MSVCP_basic_string_char_copy_ctor(
937 basic_string_char *this, const basic_string_char *copy)
939 TRACE("%p %p\n", this, copy);
941 basic_string_char_tidy(this, FALSE, 0);
942 MSVCP_basic_string_char_assign(this, copy);
946 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z */
947 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@PEBD@Z */
948 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_cstr, 8)
949 basic_string_char* __thiscall MSVCP_basic_string_char_ctor_cstr(
950 basic_string_char *this, const char *str)
952 TRACE("%p %s\n", this, debugstr_a(str));
954 basic_string_char_tidy(this, FALSE, 0);
955 MSVCP_basic_string_char_assign_cstr(this, str);
959 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBDABV?$allocator@D@1@@Z */
960 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@PEBDAEBV?$allocator@D@1@@Z */
961 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_cstr_alloc, 12)
962 basic_string_char* __thiscall MSVCP_basic_string_char_ctor_cstr_alloc(
963 basic_string_char *this, const char *str, const void *alloc)
965 return MSVCP_basic_string_char_ctor_cstr(this, str);
968 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBDI@Z */
969 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@PEBD_K@Z */
970 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_cstr_len, 12)
971 basic_string_char* __thiscall MSVCP_basic_string_char_ctor_cstr_len(
972 basic_string_char *this, const char *str, MSVCP_size_t len)
974 TRACE("%p %s %ld\n", this, debugstr_a(str), len);
976 basic_string_char_tidy(this, FALSE, 0);
977 MSVCP_basic_string_char_assign_cstr_len(this, str, len);
981 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBDIABV?$allocator@D@1@@Z */
982 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@PEBD_KAEBV?$allocator@D@1@@Z */
983 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_cstr_len_alloc, 16)
984 basic_string_char* __thiscall MSVCP_basic_string_char_ctor_cstr_len_alloc(
985 basic_string_char *this, const char *str, MSVCP_size_t len, const void *alloc)
987 return MSVCP_basic_string_char_ctor_cstr_len(this, str, len);
990 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@II@Z */
991 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@AEBV01@_K1@Z */
992 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_substr, 16)
993 basic_string_char* __thiscall MSVCP_basic_string_char_ctor_substr(
994 basic_string_char *this, const basic_string_char *assign,
995 MSVCP_size_t pos, MSVCP_size_t len)
997 TRACE("%p %p %lu %lu\n", this, assign, pos, len);
999 basic_string_char_tidy(this, FALSE, 0);
1000 MSVCP_basic_string_char_assign_substr(this, assign, pos, len);
1004 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@IIABV?$allocator@D@1@@Z */
1005 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@AEBV01@_K1AEBV?$allocator@D@1@@Z */
1006 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_substr_alloc, 20)
1007 basic_string_char* __thiscall MSVCP_basic_string_char_ctor_substr_alloc(
1008 basic_string_char *this, const basic_string_char *assign,
1009 MSVCP_size_t pos, MSVCP_size_t len, const void *alloc)
1011 return MSVCP_basic_string_char_ctor_substr(this, assign, pos, len);
1014 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV?$allocator@D@1@@Z */
1015 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@AEBV?$allocator@D@1@@Z */
1016 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_alloc, 8)
1017 basic_string_char* __thiscall MSVCP_basic_string_char_ctor_alloc(
1018 basic_string_char *this, const void *alloc)
1020 TRACE("%p %p\n", this, alloc);
1022 basic_string_char_tidy(this, FALSE, 0);
1026 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ID@Z */
1027 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@_KD@Z */
1028 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_ch, 12)
1029 basic_string_char* __thiscall MSVCP_basic_string_char_ctor_ch(basic_string_char *this,
1030 MSVCP_size_t count, char ch)
1032 TRACE("%p %ld %c\n", this, count, ch);
1034 basic_string_char_tidy(this, FALSE, 0);
1035 MSVCP_basic_string_char_assignn(this, count, ch);
1039 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@IDABV?$allocator@D@1@@Z */
1040 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@_KDAEBV?$allocator@D@1@@Z */
1041 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_ch_alloc, 16)
1042 basic_string_char* __thiscall MSVCP_basic_string_char_ctor_ch_alloc(basic_string_char *this,
1043 MSVCP_size_t count, char ch, const void *alloc)
1045 return MSVCP_basic_string_char_ctor_ch(this, count, ch);
1048 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD0@Z */
1049 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@PEBD0@Z */
1050 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_ptr_ptr, 12)
1051 basic_string_char* __thiscall MSVCP_basic_string_char_ctor_ptr_ptr(basic_string_char *this,
1052 const char *first, const char *last)
1054 return MSVCP_basic_string_char_ctor_cstr_len(this, first, last-first);
1057 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@1@0@Z */
1058 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@1@0@Z */
1059 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_iter, 20)
1060 basic_string_char* __thiscall MSVCP_basic_string_char_ctor_iter(basic_string_char *this,
1061 String_iterator_char beg, String_iterator_char end)
1063 return MSVCP_basic_string_char_ctor_cstr_len(this, beg.pos, end.pos-beg.pos+1);
1066 /* ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ */
1067 /* ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@XZ */
1068 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_dtor, 4)
1069 void __thiscall MSVCP_basic_string_char_dtor(basic_string_char *this)
1071 TRACE("%p\n", this);
1072 basic_string_char_tidy(this, TRUE, 0);
1075 /* ?size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ */
1076 /* ?size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KXZ */
1077 /* ?length@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ */
1078 /* ?length@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KXZ */
1079 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_length, 4)
1080 MSVCP_size_t __thiscall MSVCP_basic_string_char_length(basic_string_char *this)
1082 TRACE("%p\n", this);
1086 /* ?max_size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ */
1087 /* ?max_size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KXZ */
1088 DEFINE_THISCALL_WRAPPER(basic_string_char_max_size, 4)
1089 MSVCP_size_t __thiscall basic_string_char_max_size(const basic_string_char *this)
1091 TRACE("%p\n", this);
1092 return MSVCP_allocator_char_max_size(this->allocator)-1;
1095 /* ?empty@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE_NXZ */
1096 /* ?empty@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_NXZ */
1097 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_empty, 4)
1098 MSVCP_bool __thiscall MSVCP_basic_string_char_empty(basic_string_char *this)
1100 TRACE("%p\n", this);
1101 return this->size == 0;
1104 /* ?swap@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXAAV12@@Z */
1105 /* ?swap@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXAEAV12@@Z */
1106 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_swap, 8)
1107 void __thiscall MSVCP_basic_string_char_swap(basic_string_char *this, basic_string_char *str)
1110 char tmp[sizeof(this->data)];
1111 const MSVCP_size_t size = this->size;
1112 const MSVCP_size_t res = this->res;
1114 memcpy(tmp, this->data.buf, sizeof(this->data));
1115 memcpy(this->data.buf, str->data.buf, sizeof(this->data));
1116 memcpy(str->data.buf, tmp, sizeof(this->data));
1118 this->size = str->size;
1119 this->res = str->res;
1126 /* ?substr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AV12@II@Z */
1127 /* ?substr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA?AV12@_K0@Z */
1128 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_substr, 16)
1129 basic_string_char* __thiscall MSVCP_basic_string_char_substr(basic_string_char *this,
1130 basic_string_char *ret, MSVCP_size_t off, MSVCP_size_t len)
1132 TRACE("%p %lu %lu\n", this, off, len);
1134 MSVCP_basic_string_char_ctor_substr(ret, this, off, len);
1138 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@II@Z */
1139 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@AEBV12@_K1@Z */
1140 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_substr, 16)
1141 basic_string_char* __thiscall MSVCP_basic_string_char_append_substr(basic_string_char *this,
1142 const basic_string_char *append, MSVCP_size_t offset, MSVCP_size_t count)
1144 TRACE("%p %p %lu %lu\n", this, append, offset, count);
1146 if(append->size < offset)
1147 MSVCP__String_base_Xran();
1149 if(count > append->size-offset)
1150 count = append->size-offset;
1152 if(MSVCP_basic_string_char_npos-this->size<=count || this->size+count<this->size)
1153 MSVCP__String_base_Xlen();
1155 if(basic_string_char_grow(this, this->size+count, FALSE)) {
1156 MSVCP_char_traits_char__Copy_s(basic_string_char_ptr(this)+this->size,
1157 this->res-this->size, basic_string_char_const_ptr(append)+offset, count);
1158 basic_string_char_eos(this, this->size+count);
1164 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@@Z */
1165 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@AEBV12@@Z */
1166 /* ??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z */
1167 /* ??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV01@AEBV01@@Z */
1168 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append, 8)
1169 basic_string_char* __thiscall MSVCP_basic_string_char_append(
1170 basic_string_char *this, const basic_string_char *append)
1172 return MSVCP_basic_string_char_append_substr(this, append,
1173 0, MSVCP_basic_string_char_npos);
1176 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBDI@Z */
1177 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@PEBD_K@Z */
1178 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_cstr_len, 12)
1179 basic_string_char* __thiscall MSVCP_basic_string_char_append_cstr_len(
1180 basic_string_char *this, const char *append, MSVCP_size_t count)
1182 TRACE("%p %s %lu\n", this, debugstr_a(append), count);
1184 if(basic_string_char_inside(this, append))
1185 return MSVCP_basic_string_char_append_substr(this, this,
1186 append-basic_string_char_ptr(this), count);
1188 if(MSVCP_basic_string_char_npos-this->size<=count || this->size+count<this->size)
1189 MSVCP__String_base_Xlen();
1191 if(basic_string_char_grow(this, this->size+count, FALSE)) {
1192 MSVCP_char_traits_char__Copy_s(basic_string_char_ptr(this)+this->size,
1193 this->res-this->size, append, count);
1194 basic_string_char_eos(this, this->size+count);
1200 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBD@Z */
1201 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@PEBD@Z */
1202 /* ??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@PBD@Z */
1203 /* ??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV01@PEBD@Z */
1204 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_cstr, 8)
1205 basic_string_char* __thiscall MSVCP_basic_string_char_append_cstr(
1206 basic_string_char *this, const char *append)
1208 return MSVCP_basic_string_char_append_cstr_len(this, append,
1209 MSVCP_char_traits_char_length(append));
1212 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBD0@Z */
1213 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@PEBD0@Z */
1214 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_beg_end, 12)
1215 basic_string_char* __thiscall MSVCP_basic_string_char_append_beg_end(
1216 basic_string_char *this, const char *beg, const char *end)
1218 return MSVCP_basic_string_char_append_cstr_len(this, beg, end-beg);
1221 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@0@Z */
1222 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@0@Z */
1223 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_iter, 20)
1224 basic_string_char* __thiscall MSVCP_basic_string_char_append_iter(
1225 basic_string_char *this, String_iterator_char beg, String_iterator_char end)
1227 return MSVCP_basic_string_char_append_cstr_len(this, beg.pos, end.pos-beg.pos+1);
1230 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ID@Z */
1231 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_KD@Z */
1232 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_len_ch, 12)
1233 basic_string_char* __thiscall MSVCP_basic_string_char_append_len_ch(
1234 basic_string_char *this, MSVCP_size_t count, char ch)
1236 TRACE("%p %lu %c\n", this, count, ch);
1238 if(MSVCP_basic_string_char_npos-this->size <= count)
1239 MSVCP__String_base_Xlen();
1241 if(basic_string_char_grow(this, this->size+count, FALSE)) {
1242 MSVCP_char_traits_char_assignn(basic_string_char_ptr(this)+this->size, count, ch);
1243 basic_string_char_eos(this, this->size+count);
1249 /* ??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@D@Z */
1250 /* ??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV01@D@Z */
1251 /* ?push_back@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXD@Z */
1252 /* ?push_back@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXD@Z */
1253 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_ch, 8)
1254 basic_string_char* __thiscall MSVCP_basic_string_char_append_ch(
1255 basic_string_char *this, char ch)
1257 return MSVCP_basic_string_char_append_len_ch(this, 1, ch);
1260 /* ??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@PBD@Z */
1261 /* ??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@AEBV10@PEBD@Z */
1262 basic_string_char* __cdecl MSVCP_basic_string_char_concatenate_bstr_cstr(basic_string_char *ret,
1263 const basic_string_char *left, const char *right)
1265 TRACE("%p %s\n", left, debugstr_a(right));
1267 MSVCP_basic_string_char_copy_ctor(ret, left);
1268 MSVCP_basic_string_char_append_cstr(ret, right);
1272 /* ??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBDABV10@@Z */
1273 /* ??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PEBDAEBV10@@Z */
1274 basic_string_char* __cdecl MSVCP_basic_string_char_concatenate_cstr_bstr(basic_string_char *ret,
1275 const char *left, const basic_string_char *right)
1277 TRACE("%s %p\n", debugstr_a(left), right);
1279 MSVCP_basic_string_char_ctor_cstr(ret, left);
1280 MSVCP_basic_string_char_append(ret, right);
1284 /* ??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@0@Z */
1285 /* ??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@AEBV10@0@Z */
1286 basic_string_char* __cdecl MSVCP_basic_string_char_concatenate(basic_string_char *ret,
1287 const basic_string_char *left, const basic_string_char *right)
1289 TRACE("%p %p\n", left, right);
1291 MSVCP_basic_string_char_copy_ctor(ret, left);
1292 MSVCP_basic_string_char_append(ret, right);
1296 /* ??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@D@Z */
1297 /* ??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@AEBV10@D@Z */
1298 basic_string_char* __cdecl MSVCP_basic_string_char_concatenate_bstr_ch(basic_string_char *ret,
1299 const basic_string_char *left, char right)
1301 TRACE("%p %c\n", left, right);
1303 MSVCP_basic_string_char_copy_ctor(ret, left);
1304 MSVCP_basic_string_char_append_ch(ret, right);
1308 /* ??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@DABV10@@Z */
1309 /* ??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@DAEBV10@@Z */
1310 basic_string_char* __cdecl MSVCP_basic_string_char_concatenate_ch_bstr(basic_string_char *ret,
1311 char left, const basic_string_char *right)
1313 TRACE("%c %p\n", left, right);
1315 MSVCP_basic_string_char_ctor_cstr_len(ret, &left, 1);
1316 MSVCP_basic_string_char_append(ret, right);
1320 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEHIIPBDI@Z */
1321 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAH_K0PEBD0@Z */
1322 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_compare_substr_cstr_len, 20)
1323 int __thiscall MSVCP_basic_string_char_compare_substr_cstr_len(
1324 const basic_string_char *this, MSVCP_size_t pos, MSVCP_size_t num,
1325 const char *str, MSVCP_size_t count)
1329 TRACE("%p %lu %lu %s %lu\n", this, pos, num, debugstr_a(str), count);
1331 if(this->size < pos)
1332 MSVCP__String_base_Xran();
1334 if(pos+num > this->size)
1335 num = this->size-pos;
1337 ans = MSVCP_char_traits_char_compare(basic_string_char_const_ptr(this)+pos,
1338 str, num>count ? count : num);
1344 else if(num < count)
1349 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEHIIPBD@Z */
1350 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAH_K0PEBD@Z */
1351 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_compare_substr_cstr, 16)
1352 int __thiscall MSVCP_basic_string_char_compare_substr_cstr(const basic_string_char *this,
1353 MSVCP_size_t pos, MSVCP_size_t num, const char *str)
1355 return MSVCP_basic_string_char_compare_substr_cstr_len(this, pos, num,
1356 str, MSVCP_char_traits_char_length(str));
1359 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEHPBD@Z */
1360 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAHPEBD@Z */
1361 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_compare_cstr, 8)
1362 int __thiscall MSVCP_basic_string_char_compare_cstr(
1363 const basic_string_char *this, const char *str)
1365 return MSVCP_basic_string_char_compare_substr_cstr_len(this, 0, this->size,
1366 str, MSVCP_char_traits_char_length(str));
1369 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEHIIABV12@II@Z */
1370 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAH_K0AEBV12@00@Z */
1371 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_compare_substr_substr, 24)
1372 int __thiscall MSVCP_basic_string_char_compare_substr_substr(
1373 const basic_string_char *this, MSVCP_size_t pos, MSVCP_size_t num,
1374 const basic_string_char *compare, MSVCP_size_t off, MSVCP_size_t count)
1376 TRACE("%p %lu %lu %p %lu %lu\n", this, pos, num, compare, off, count);
1378 if(compare->size < off)
1379 MSVCP__String_base_Xran();
1381 if(off+count > compare->size)
1382 count = compare->size-off;
1384 return MSVCP_basic_string_char_compare_substr_cstr_len(this, pos, num,
1385 basic_string_char_const_ptr(compare)+off, count);
1388 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEHIIABV12@@Z */
1389 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAH_K0AEBV12@@Z */
1390 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_compare_substr, 16)
1391 int __thiscall MSVCP_basic_string_char_compare_substr(
1392 const basic_string_char *this, MSVCP_size_t pos, MSVCP_size_t num,
1393 const basic_string_char *compare)
1395 return MSVCP_basic_string_char_compare_substr_cstr_len(this, pos, num,
1396 basic_string_char_const_ptr(compare), compare->size);
1399 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEHABV12@@Z */
1400 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAHAEBV12@@Z */
1401 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_compare, 8)
1402 int __thiscall MSVCP_basic_string_char_compare(
1403 const basic_string_char *this, const basic_string_char *compare)
1405 return MSVCP_basic_string_char_compare_substr_cstr_len(this, 0, this->size,
1406 basic_string_char_const_ptr(compare), compare->size);
1409 /* ??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z */
1410 /* ??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z */
1411 MSVCP_bool __cdecl MSVCP_basic_string_char_equal(
1412 const basic_string_char *left, const basic_string_char *right)
1414 return MSVCP_basic_string_char_compare(left, right) == 0;
1417 /* ??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBD@Z */
1418 /* ??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PEBD@Z */
1419 MSVCP_bool __cdecl MSVCP_basic_string_char_equal_str_cstr(
1420 const basic_string_char *left, const char *right)
1422 return MSVCP_basic_string_char_compare_cstr(left, right) == 0;
1425 /* ??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NPBDABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
1426 /* ??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NPEBDAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
1427 MSVCP_bool __cdecl MSVCP_basic_string_char_equal_cstr_str(
1428 const char *left, const basic_string_char *right)
1430 return MSVCP_basic_string_char_compare_cstr(right, left) == 0;
1433 /* ??$?9DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z */
1434 /* ??$?9DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z */
1435 MSVCP_bool __cdecl MSVCP_basic_string_char_not_equal(
1436 const basic_string_char *left, const basic_string_char *right)
1438 return MSVCP_basic_string_char_compare(left, right) != 0;
1441 /* ??$?9DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBD@Z */
1442 /* ??$?9DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PEBD@Z */
1443 MSVCP_bool __cdecl MSVCP_basic_string_char_not_equal_str_cstr(
1444 const basic_string_char *left, const char *right)
1446 return MSVCP_basic_string_char_compare_cstr(left, right) != 0;
1449 /* ??$?9DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NPBDABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
1450 /* ??$?9DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NPEBDAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
1451 MSVCP_bool __cdecl MSVCP_basic_string_char_not_equal_cstr_str(
1452 const char *left, const basic_string_char *right)
1454 return MSVCP_basic_string_char_compare_cstr(right, left) != 0;
1457 /* ??$?MDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z */
1458 /* ??$?MDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z */
1459 MSVCP_bool __cdecl MSVCP_basic_string_char_lower(
1460 const basic_string_char *left, const basic_string_char *right)
1462 return MSVCP_basic_string_char_compare(left, right) < 0;
1465 /* ??$?MDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBD@Z */
1466 /* ??$?MDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PEBD@Z */
1467 MSVCP_bool __cdecl MSVCP_basic_string_char_lower_bstr_cstr(
1468 const basic_string_char *left, const char *right)
1470 return MSVCP_basic_string_char_compare_cstr(left, right) < 0;
1473 /* ??$?MDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NPBDABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
1474 /* ??$?MDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NPEBDAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
1475 MSVCP_bool __cdecl MSVCP_basic_string_char_lower_cstr_bstr(
1476 const char *left, const basic_string_char *right)
1478 return MSVCP_basic_string_char_compare_cstr(right, left) > 0;
1481 /* ??$?NDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z */
1482 /* ??$?NDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z */
1483 MSVCP_bool __cdecl MSVCP_basic_string_char_leq(
1484 const basic_string_char *left, const basic_string_char *right)
1486 return MSVCP_basic_string_char_compare(left, right) <= 0;
1489 /* ??$?NDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBD@Z */
1490 /* ??$?NDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PEBD@Z */
1491 MSVCP_bool __cdecl MSVCP_basic_string_char_leq_bstr_cstr(
1492 const basic_string_char *left, const char *right)
1494 return MSVCP_basic_string_char_compare_cstr(left, right) <= 0;
1497 /* ??$?NDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NPBDABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
1498 /* ??$?NDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NPEBDAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
1499 MSVCP_bool __cdecl MSVCP_basic_string_char_leq_cstr_bstr(
1500 const char *left, const basic_string_char *right)
1502 return MSVCP_basic_string_char_compare_cstr(right, left) >= 0;
1505 /* ??$?ODU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z */
1506 /* ??$?ODU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z */
1507 MSVCP_bool __cdecl MSVCP_basic_string_char_greater(
1508 const basic_string_char *left, const basic_string_char *right)
1510 return MSVCP_basic_string_char_compare(left, right) > 0;
1513 /* ??$?ODU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBD@Z */
1514 /* ??$?ODU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PEBD@Z */
1515 MSVCP_bool __cdecl MSVCP_basic_string_char_greater_bstr_cstr(
1516 const basic_string_char *left, const char *right)
1518 return MSVCP_basic_string_char_compare_cstr(left, right) > 0;
1521 /* ??$?ODU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NPBDABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
1522 /* ??$?ODU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NPEBDAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
1523 MSVCP_bool __cdecl MSVCP_basic_string_char_greater_cstr_bstr(
1524 const char *left, const basic_string_char *right)
1526 return MSVCP_basic_string_char_compare_cstr(right, left) < 0;
1529 /* ??$?PDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z */
1530 /* ??$?PDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z */
1531 MSVCP_bool __cdecl MSVCP_basic_string_char_geq(
1532 const basic_string_char *left, const basic_string_char *right)
1534 return MSVCP_basic_string_char_compare(left, right) >= 0;
1537 /* ??$?PDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBD@Z */
1538 /* ??$?PDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PEBD@Z */
1539 MSVCP_bool __cdecl MSVCP_basic_string_char_geq_bstr_cstr(
1540 const basic_string_char *left, const char *right)
1542 return MSVCP_basic_string_char_compare_cstr(left, right) >= 0;
1545 /* ??$?PDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NPBDABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
1546 /* ??$?PDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NPEBDAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
1547 MSVCP_bool __cdecl MSVCP_basic_string_char_geq_cstr_bstr(
1548 const char *left, const basic_string_char *right)
1550 return MSVCP_basic_string_char_compare_cstr(right, left) <= 0;
1553 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z */
1554 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K1@Z */
1555 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_cstr_substr, 16)
1556 MSVCP_size_t __thiscall MSVCP_basic_string_char_find_cstr_substr(
1557 const basic_string_char *this, const char *find, MSVCP_size_t pos, MSVCP_size_t len)
1559 const char *p, *end;
1561 TRACE("%p %s %lu %lu\n", this, debugstr_a(find), pos, len);
1563 if(len==0 && pos<=this->size)
1566 end = basic_string_char_const_ptr(this)+this->size-len+1;
1567 for(p=basic_string_char_const_ptr(this)+pos; p<end; p++) {
1568 p = MSVCP_char_traits_char_find(p, end-p, find);
1572 if(!MSVCP_char_traits_char_compare(p, find, len))
1573 return p-basic_string_char_const_ptr(this);
1576 return MSVCP_basic_string_char_npos;
1579 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDI@Z */
1580 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K@Z */
1581 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_cstr_off, 12)
1582 MSVCP_size_t __thiscall MSVCP_basic_string_char_find_cstr_off(
1583 const basic_string_char *this, const char *find, MSVCP_size_t pos)
1585 return MSVCP_basic_string_char_find_cstr_substr(this, find, pos,
1586 MSVCP_char_traits_char_length(find));
1589 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIABV12@I@Z */
1590 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KAEBV12@_K@Z */
1591 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_off, 12)
1592 MSVCP_size_t __thiscall MSVCP_basic_string_char_find_off(
1593 const basic_string_char *this, const basic_string_char *find, MSVCP_size_t off)
1595 return MSVCP_basic_string_char_find_cstr_substr(this,
1596 basic_string_char_const_ptr(find), off, find->size);
1599 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIDI@Z */
1600 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KD_K@Z */
1601 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_ch, 12)
1602 MSVCP_size_t __thiscall MSVCP_basic_string_char_find_ch(
1603 const basic_string_char *this, char ch, MSVCP_size_t pos)
1605 return MSVCP_basic_string_char_find_cstr_substr(this, &ch, pos, 1);
1608 /* ?rfind@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z */
1609 /* ?rfind@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K1@Z */
1610 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_rfind_cstr_substr, 16)
1611 MSVCP_size_t __thiscall MSVCP_basic_string_char_rfind_cstr_substr(
1612 const basic_string_char *this, const char *find, MSVCP_size_t pos, MSVCP_size_t len)
1614 const char *p, *end;
1616 TRACE("%p %s %lu %lu\n", this, debugstr_a(find), pos, len);
1619 return pos<this->size ? pos : this->size;
1621 if(len > this->size)
1622 return MSVCP_basic_string_char_npos;
1624 if(pos > this->size-len+1)
1625 pos = this->size-len+1;
1626 end = basic_string_char_const_ptr(this);
1627 for(p=end+pos; p>=end; p--) {
1628 if(*p==*find && !MSVCP_char_traits_char_compare(p, find, len))
1629 return p-basic_string_char_const_ptr(this);
1632 return MSVCP_basic_string_char_npos;
1635 /* ?rfind@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDI@Z */
1636 /* ?rfind@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K@Z */
1637 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_rfind_cstr_off, 12)
1638 MSVCP_size_t __thiscall MSVCP_basic_string_char_rfind_cstr_off(
1639 const basic_string_char *this, const char *find, MSVCP_size_t pos)
1641 return MSVCP_basic_string_char_rfind_cstr_substr(this, find, pos,
1642 MSVCP_char_traits_char_length(find));
1645 /* ?rfind@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIABV12@I@Z */
1646 /* ?rfind@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KAEBV12@_K@Z */
1647 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_rfind_off, 12)
1648 MSVCP_size_t __thiscall MSVCP_basic_string_char_rfind_off(
1649 const basic_string_char *this, const basic_string_char *find, MSVCP_size_t off)
1651 return MSVCP_basic_string_char_rfind_cstr_substr(this,
1652 basic_string_char_const_ptr(find), off, find->size);
1655 /* ?rfind@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIDI@Z */
1656 /* ?rfind@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KD_K@Z */
1657 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_rfind_ch, 12)
1658 MSVCP_size_t __thiscall MSVCP_basic_string_char_rfind_ch(
1659 const basic_string_char *this, char ch, MSVCP_size_t pos)
1661 return MSVCP_basic_string_char_rfind_cstr_substr(this, &ch, pos, 1);
1664 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z */
1665 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K1@Z */
1666 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_of_cstr_substr, 16)
1667 MSVCP_size_t __thiscall MSVCP_basic_string_char_find_first_of_cstr_substr(
1668 const basic_string_char *this, const char *find, MSVCP_size_t off, MSVCP_size_t len)
1670 const char *p, *end;
1672 TRACE("%p %p %lu %lu\n", this, find, off, len);
1674 if(len>0 && off<this->size) {
1675 end = basic_string_char_const_ptr(this)+this->size;
1676 for(p=basic_string_char_const_ptr(this)+off; p<end; p++)
1677 if(MSVCP_char_traits_char_find(find, len, p))
1678 return p-basic_string_char_const_ptr(this);
1681 return MSVCP_basic_string_char_npos;
1684 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIABV12@I@Z */
1685 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KAEBV12@_K@Z */
1686 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_of, 12)
1687 MSVCP_size_t __thiscall MSVCP_basic_string_char_find_first_of(
1688 const basic_string_char *this, const basic_string_char *find, MSVCP_size_t off)
1690 return MSVCP_basic_string_char_find_first_of_cstr_substr(this,
1691 basic_string_char_const_ptr(find), off, find->size);
1694 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDI@Z */
1695 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K@Z */
1696 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_of_cstr, 12)
1697 MSVCP_size_t __thiscall MSVCP_basic_string_char_find_first_of_cstr(
1698 const basic_string_char *this, const char *find, MSVCP_size_t off)
1700 return MSVCP_basic_string_char_find_first_of_cstr_substr(
1701 this, find, off, MSVCP_char_traits_char_length(find));
1704 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIDI@Z */
1705 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KD_K@Z */
1706 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_of_ch, 12)
1707 MSVCP_size_t __thiscall MSVCP_basic_string_char_find_first_of_ch(
1708 const basic_string_char *this, char ch, MSVCP_size_t off)
1710 return MSVCP_basic_string_char_find_first_of_cstr_substr(this, &ch, off, 1);
1713 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z */
1714 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K1@Z */
1715 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_not_of_cstr_substr, 16)
1716 MSVCP_size_t __thiscall MSVCP_basic_string_char_find_first_not_of_cstr_substr(
1717 const basic_string_char *this, const char *find, MSVCP_size_t off, MSVCP_size_t len)
1719 const char *p, *end;
1721 TRACE("%p %p %lu %lu\n", this, find, off, len);
1723 if(off<this->size) {
1724 end = basic_string_char_const_ptr(this)+this->size;
1725 for(p=basic_string_char_const_ptr(this)+off; p<end; p++)
1726 if(!MSVCP_char_traits_char_find(find, len, p))
1727 return p-basic_string_char_const_ptr(this);
1730 return MSVCP_basic_string_char_npos;
1733 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIABV12@I@Z */
1734 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KAEBV12@_K@Z */
1735 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_not_of, 12)
1736 MSVCP_size_t __thiscall MSVCP_basic_string_char_find_first_not_of(
1737 const basic_string_char *this, const basic_string_char *find, MSVCP_size_t off)
1739 return MSVCP_basic_string_char_find_first_not_of_cstr_substr(this,
1740 basic_string_char_const_ptr(find), off, find->size);
1743 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDI@Z */
1744 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K@Z */
1745 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_not_of_cstr, 12)
1746 MSVCP_size_t __thiscall MSVCP_basic_string_char_find_first_not_of_cstr(
1747 const basic_string_char *this, const char *find, MSVCP_size_t off)
1749 return MSVCP_basic_string_char_find_first_not_of_cstr_substr(
1750 this, find, off, MSVCP_char_traits_char_length(find));
1753 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIDI@Z */
1754 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KD_K@Z */
1755 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_not_of_ch, 12)
1756 MSVCP_size_t __thiscall MSVCP_basic_string_char_find_first_not_of_ch(
1757 const basic_string_char *this, char ch, MSVCP_size_t off)
1759 return MSVCP_basic_string_char_find_first_not_of_cstr_substr(this, &ch, off, 1);
1762 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z */
1763 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K1@Z */
1764 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_of_cstr_substr, 16)
1765 MSVCP_size_t __thiscall MSVCP_basic_string_char_find_last_of_cstr_substr(
1766 const basic_string_char *this, const char *find, MSVCP_size_t off, MSVCP_size_t len)
1768 const char *p, *beg;
1770 TRACE("%p %p %lu %lu\n", this, find, off, len);
1772 if(len>0 && this->size>0) {
1773 if(off >= this->size)
1776 beg = basic_string_char_const_ptr(this);
1777 for(p=beg+off; p>=beg; p--)
1778 if(MSVCP_char_traits_char_find(find, len, p))
1782 return MSVCP_basic_string_char_npos;
1785 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIABV12@I@Z */
1786 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KAEBV12@_K@Z */
1787 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_of, 12)
1788 MSVCP_size_t __thiscall MSVCP_basic_string_char_find_last_of(
1789 const basic_string_char *this, const basic_string_char *find, MSVCP_size_t off)
1791 return MSVCP_basic_string_char_find_last_of_cstr_substr(this,
1792 basic_string_char_const_ptr(find), off, find->size);
1795 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDI@Z */
1796 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K@Z */
1797 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_of_cstr, 12)
1798 MSVCP_size_t __thiscall MSVCP_basic_string_char_find_last_of_cstr(
1799 const basic_string_char *this, const char *find, MSVCP_size_t off)
1801 return MSVCP_basic_string_char_find_last_of_cstr_substr(
1802 this, find, off, MSVCP_char_traits_char_length(find));
1805 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIDI@Z */
1806 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KD_K@Z */
1807 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_of_ch, 12)
1808 MSVCP_size_t __thiscall MSVCP_basic_string_char_find_last_of_ch(
1809 const basic_string_char *this, char ch, MSVCP_size_t off)
1811 return MSVCP_basic_string_char_find_last_of_cstr_substr(this, &ch, off, 1);
1814 /* ?find_last_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z */
1815 /* ?find_last_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K1@Z */
1816 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_not_of_cstr_substr, 16)
1817 MSVCP_size_t __thiscall MSVCP_basic_string_char_find_last_not_of_cstr_substr(
1818 const basic_string_char *this, const char *find, MSVCP_size_t off, MSVCP_size_t len)
1820 const char *p, *beg;
1822 TRACE("%p %p %lu %lu\n", this, find, off, len);
1824 if(len>0 && this->size>0) {
1825 if(off >= this->size)
1828 beg = basic_string_char_const_ptr(this);
1829 for(p=beg+off; p>=beg; p--)
1830 if(!MSVCP_char_traits_char_find(find, len, p))
1834 return MSVCP_basic_string_char_npos;
1837 /* ?find_last_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIABV12@I@Z */
1838 /* ?find_last_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KAEBV12@_K@Z */
1839 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_not_of, 12)
1840 MSVCP_size_t __thiscall MSVCP_basic_string_char_find_last_not_of(
1841 const basic_string_char *this, const basic_string_char *find, MSVCP_size_t off)
1843 return MSVCP_basic_string_char_find_last_not_of_cstr_substr(this,
1844 basic_string_char_const_ptr(find), off, find->size);
1847 /* ?find_last_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDI@Z */
1848 /* ?find_last_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K@Z */
1849 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_not_of_cstr, 12)
1850 MSVCP_size_t __thiscall MSVCP_basic_string_char_find_last_not_of_cstr(
1851 const basic_string_char *this, const char *find, MSVCP_size_t off)
1853 return MSVCP_basic_string_char_find_last_not_of_cstr_substr(
1854 this, find, off, MSVCP_char_traits_char_length(find));
1857 /* ?find_last_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIDI@Z */
1858 /* ?find_last_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KD_K@Z */
1859 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_not_of_ch, 12)
1860 MSVCP_size_t __thiscall MSVCP_basic_string_char_find_last_not_of_ch(
1861 const basic_string_char *this, char ch, MSVCP_size_t off)
1863 return MSVCP_basic_string_char_find_last_not_of_cstr_substr(this, &ch, off, 1);
1866 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAADI@Z */
1867 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAD_K@Z */
1868 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_operator_at, 8)
1869 char* __thiscall MSVCP_basic_string_char_operator_at(
1870 basic_string_char *this, MSVCP_size_t pos)
1872 TRACE("%p %lu\n", this, pos);
1874 assert(this->size >= pos);
1875 return basic_string_char_ptr(this)+pos;
1878 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEABDI@Z */
1879 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAAEBD_K@Z */
1880 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_const_operator_at, 8)
1881 const char* __thiscall MSVCP_basic_string_char_const_operator_at(
1882 const basic_string_char *this, MSVCP_size_t pos)
1884 TRACE("%p %lu\n", this, pos);
1886 assert(this->size >= pos);
1887 return basic_string_char_const_ptr(this)+pos;
1890 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAADU_Size_type_nosscl@01@@Z */
1891 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEADU_Size_type_nosscl@01@@Z */
1892 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_operator_at_noverify, 8)
1893 char* __thiscall MSVCP_basic_string_char_operator_at_noverify(
1894 basic_string_char *this, size_t_noverify pos)
1896 TRACE("%p %lu\n", this, pos.val);
1897 return basic_string_char_ptr(this)+pos.val;
1900 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEABDU_Size_type_nosscl@01@@Z */
1901 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAAEBDU_Size_type_nosscl@01@@Z */
1902 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_operator_const_at_noverify, 8)
1903 const char* __thiscall MSVCP_basic_string_char_operator_const_at_noverify(
1904 const basic_string_char *this, size_t_noverify pos)
1906 TRACE("%p %lu\n", this, pos.val);
1907 return basic_string_char_const_ptr(this)+pos.val;
1910 /* ?at@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAADI@Z */
1911 /* ?at@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAD_K@Z */
1912 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_at, 8)
1913 char* __thiscall MSVCP_basic_string_char_at(
1914 basic_string_char *this, MSVCP_size_t pos)
1916 TRACE("%p %lu\n", this, pos);
1918 if(this->size <= pos)
1919 MSVCP__String_base_Xran();
1921 return basic_string_char_ptr(this)+pos;
1924 /* ?at@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEABDI@Z */
1925 /* ?at@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAAEBD_K@Z */
1926 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_const_at, 8)
1927 const char* __thiscall MSVCP_basic_string_char_const_at(
1928 const basic_string_char *this, MSVCP_size_t pos)
1930 TRACE("%p %lu\n", this, pos);
1932 if(this->size <= pos)
1933 MSVCP__String_base_Xran();
1935 return basic_string_char_const_ptr(this)+pos;
1938 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IIPBDI@Z */
1939 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0PEBD0@Z */
1940 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_cstr_len, 20)
1941 basic_string_char* __thiscall basic_string_char_replace_cstr_len(basic_string_char *this,
1942 MSVCP_size_t off, MSVCP_size_t len, const char *str, MSVCP_size_t str_len)
1944 MSVCP_size_t inside_pos = -1;
1945 char *ptr = basic_string_char_ptr(this);
1947 TRACE("%p %ld %ld %p %ld\n", this, off, len, str, str_len);
1949 if(this->size < off)
1950 MSVCP__String_base_Xran();
1952 if(off+len > this->size)
1953 len = this->size-off;
1955 if(MSVCP_basic_string_char_npos-str_len <= this->size-len)
1956 MSVCP__String_base_Xlen();
1958 if(basic_string_char_inside(this, str))
1959 inside_pos = str-ptr;
1962 basic_string_char_grow(this, this->size-len+str_len, FALSE);
1963 ptr = basic_string_char_ptr(this);
1966 if(inside_pos == -1) {
1967 memmove(ptr+off+str_len, ptr+off+len, (this->size-off-len)*sizeof(char));
1968 memcpy(ptr+off, str, str_len*sizeof(char));
1969 } else if(len >= str_len) {
1970 memmove(ptr+off, ptr+inside_pos, str_len*sizeof(char));
1971 memmove(ptr+off+str_len, ptr+off+len, (this->size-off-len)*sizeof(char));
1975 memmove(ptr+off+str_len, ptr+off+len, (this->size-off-len)*sizeof(char));
1977 if(inside_pos < off+len) {
1978 size = off+len-inside_pos;
1981 memmove(ptr+off, ptr+inside_pos, size*sizeof(char));
1987 memmove(ptr+off+size, ptr+off+str_len, (str_len-size)*sizeof(char));
1990 basic_string_char_eos(this, this->size-len+str_len);
1994 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IIPBD@Z */
1995 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0PEBD@Z */
1996 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_cstr, 16)
1997 basic_string_char* __thiscall basic_string_char_replace_cstr(basic_string_char *this,
1998 MSVCP_size_t off, MSVCP_size_t len, const char *str)
2000 return basic_string_char_replace_cstr_len(this, off, len, str,
2001 MSVCP_char_traits_char_length(str));
2004 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IIABV12@II@Z */
2005 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0AEBV12@00@Z */
2006 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_substr, 24)
2007 basic_string_char* __thiscall basic_string_char_replace_substr(basic_string_char *this, MSVCP_size_t off,
2008 MSVCP_size_t len, const basic_string_char *str, MSVCP_size_t str_off, MSVCP_size_t str_len)
2010 if(str->size < str_off)
2011 MSVCP__String_base_Xran();
2013 if(str_off+str_len > str->size)
2014 str_len = str->size-str_off;
2016 return basic_string_char_replace_cstr_len(this, off, len,
2017 basic_string_char_const_ptr(str)+str_off, str_len);
2020 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IIABV12@@Z */
2021 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0AEBV12@@Z */
2022 DEFINE_THISCALL_WRAPPER(basic_string_char_replace, 16)
2023 basic_string_char* __thiscall basic_string_char_replace(basic_string_char *this,
2024 MSVCP_size_t off, MSVCP_size_t len, const basic_string_char *str)
2026 return basic_string_char_replace_cstr_len(this, off, len,
2027 basic_string_char_const_ptr(str), str->size);
2030 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IIID@Z */
2031 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K00D@Z */
2032 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_ch, 20)
2033 basic_string_char* __thiscall basic_string_char_replace_ch(basic_string_char *this,
2034 MSVCP_size_t off, MSVCP_size_t len, MSVCP_size_t count, char ch)
2036 char *ptr = basic_string_char_ptr(this);
2038 TRACE("%p %ld %ld %ld %c\n", this, off, len, count, ch);
2040 if(this->size < off)
2041 MSVCP__String_base_Xran();
2043 if(off+len > this->size)
2044 len = this->size-off;
2046 if(MSVCP_basic_string_char_npos-count <= this->size-len)
2047 MSVCP__String_base_Xlen();
2050 basic_string_char_grow(this, this->size-len+count, FALSE);
2051 ptr = basic_string_char_ptr(this);
2054 memmove(ptr+off+count, ptr+off+len, (this->size-off-len)*sizeof(char));
2055 MSVCP_char_traits_char_assignn(ptr+off, count, ch);
2056 basic_string_char_eos(this, this->size-len+count);
2061 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@000@Z */
2062 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@000@Z */
2063 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_iter_iter, 36)
2064 basic_string_char* __thiscall basic_string_char_replace_iter_iter(basic_string_char *this,
2065 String_iterator_char beg, String_iterator_char end,
2066 String_iterator_char res_beg, String_iterator_char res_end)
2068 String_iterator_char begin = { this, basic_string_char_ptr(this) };
2069 return basic_string_char_replace_cstr_len(this,
2070 MSVCP_basic_string_char_Pdif(beg, begin), MSVCP_basic_string_char_Pdif(end, beg),
2071 res_beg.pos, MSVCP_basic_string_char_Pdif(res_end, res_beg));
2074 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@0ABV12@@Z */
2075 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@0AEBV12@@Z */
2076 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_iter_bstr, 24)
2077 basic_string_char* __thiscall basic_string_char_replace_iter_bstr(basic_string_char *this,
2078 String_iterator_char beg, String_iterator_char end, const basic_string_char *str)
2080 String_iterator_char begin = { this, basic_string_char_ptr(this) };
2081 return basic_string_char_replace(this, MSVCP_basic_string_char_Pdif(beg, begin),
2082 MSVCP_basic_string_char_Pdif(end, beg), str);
2085 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@0ID@Z */
2086 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@0_KD@Z */
2087 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_iter_ch, 28)
2088 basic_string_char* __thiscall basic_string_char_replace_iter_ch(basic_string_char *this,
2089 String_iterator_char beg, String_iterator_char end, MSVCP_size_t count, char ch)
2091 String_iterator_char begin = { this, basic_string_char_ptr(this) };
2092 return basic_string_char_replace_ch(this, MSVCP_basic_string_char_Pdif(beg, begin),
2093 MSVCP_basic_string_char_Pdif(end, beg), count, ch);
2096 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@0PBD1@Z */
2097 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@0PEBD1@Z */
2098 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_iter_ptr_ptr, 28)
2099 basic_string_char* __thiscall basic_string_char_replace_iter_ptr_ptr(basic_string_char *this,
2100 String_iterator_char beg, String_iterator_char end,
2101 const char *res_beg, const char *res_end)
2103 String_iterator_char begin = { this, basic_string_char_ptr(this) };
2104 return basic_string_char_replace_cstr_len(this, MSVCP_basic_string_char_Pdif(beg, begin),
2105 MSVCP_basic_string_char_Pdif(end, beg), res_beg, res_end-res_beg);
2108 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@0PBD@Z */
2109 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@0PEBD@Z */
2110 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_iter_cstr, 24)
2111 basic_string_char* __thiscall basic_string_char_replace_iter_cstr(basic_string_char *this,
2112 String_iterator_char beg, String_iterator_char end, const char *str)
2114 String_iterator_char begin = { this, basic_string_char_ptr(this) };
2115 return basic_string_char_replace_cstr(this, MSVCP_basic_string_char_Pdif(beg, begin),
2116 MSVCP_basic_string_char_Pdif(end, beg), str);
2119 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@0PBDI@Z */
2120 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@0PEBD_K@Z */
2121 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_iter_cstr_len, 28)
2122 basic_string_char* __thiscall basic_string_char_replace_iter_cstr_len(basic_string_char *this,
2123 String_iterator_char beg, String_iterator_char end, const char *str, MSVCP_size_t len)
2125 String_iterator_char begin = { this, basic_string_char_ptr(this) };
2126 return basic_string_char_replace_cstr_len(this, MSVCP_basic_string_char_Pdif(beg, begin),
2127 MSVCP_basic_string_char_Pdif(end, beg), str, len);
2130 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IABV12@@Z */
2131 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_KAEBV12@@Z */
2132 DEFINE_THISCALL_WRAPPER(basic_string_char_insert, 12)
2133 basic_string_char* __thiscall basic_string_char_insert(basic_string_char *this,
2134 MSVCP_size_t off, const basic_string_char *str)
2136 return basic_string_char_replace(this, off, 0, str);
2139 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IABV12@II@Z */
2140 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_KAEBV12@00@Z */
2141 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_substr, 20)
2142 basic_string_char* __thiscall basic_string_char_insert_substr(
2143 basic_string_char *this, MSVCP_size_t off, const basic_string_char *str,
2144 MSVCP_size_t str_off, MSVCP_size_t str_count)
2146 return basic_string_char_replace_substr(this, off, 0, str, str_off, str_count);
2149 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IPBD@Z */
2150 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_KPEBD@Z */
2151 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_cstr, 12)
2152 basic_string_char* __thiscall basic_string_char_insert_cstr(
2153 basic_string_char *this, MSVCP_size_t off, const char *str)
2155 return basic_string_char_replace_cstr(this, off, 0, str);
2158 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IPBDI@Z */
2159 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_KPEBD0@Z */
2160 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_cstr_len, 16)
2161 basic_string_char* __thiscall basic_string_char_insert_cstr_len(basic_string_char *this,
2162 MSVCP_size_t off, const char *str, MSVCP_size_t str_len)
2164 return basic_string_char_replace_cstr_len(this, off, 0, str, str_len);
2167 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IID@Z */
2168 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0D@Z */
2169 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_chn, 16)
2170 basic_string_char* __thiscall basic_string_char_insert_chn(basic_string_char *this,
2171 MSVCP_size_t off, MSVCP_size_t count, char ch)
2173 return basic_string_char_replace_ch(this, off, 0, count, ch);
2176 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXV?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@ID@Z */
2177 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXV?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@_KD@Z */
2178 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_iter_chn, 20)
2179 void __thiscall basic_string_char_insert_iter_chn(basic_string_char *this,
2180 String_iterator_char where, MSVCP_size_t count, char ch)
2182 String_iterator_char iter = { this, basic_string_char_ptr(this) };
2183 MSVCP_size_t off = MSVCP_basic_string_char_Pdif(where, iter);
2185 basic_string_char_insert_chn(this, off, count, ch);
2188 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AV?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@D@Z */
2189 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA?AV?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@D@Z */
2190 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_iter_ch, 20)
2191 String_iterator_char* __thiscall basic_string_char_insert_iter_ch(basic_string_char *this,
2192 String_iterator_char *ret, String_iterator_char where, char ch)
2197 ret->pos = basic_string_char_ptr(this);
2198 off = MSVCP_basic_string_char_Pdif(where, *ret);
2200 basic_string_char_insert_chn(this, off, 1, ch);
2201 ret->pos = basic_string_char_ptr(this)+off;
2205 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AV?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z */
2206 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA?AV?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z */
2207 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_iter_null, 16)
2208 String_iterator_char* __thiscall basic_string_char_insert_iter_null(basic_string_char *this,
2209 String_iterator_char *ret, String_iterator_char where)
2211 return basic_string_char_insert_iter_ch(this, ret, where, 0);
2214 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXV?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@00@Z */
2215 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXV?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@00@Z */
2216 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_iter_beg_end, 28)
2217 void __thiscall basic_string_char_insert_iter_beg_end(basic_string_char *this,
2218 String_iterator_char where, String_iterator_char beg, String_iterator_char end)
2220 basic_string_char_replace_iter_iter(this, where, where, beg, end);
2223 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXV?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@PBD1@Z */
2224 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXV?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@PEBD1@Z */
2225 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_iter_ptr_ptr, 20)
2226 void __thiscall basic_string_char_insert_iter_ptr_ptr(basic_string_char *this,
2227 String_iterator_char where, const char *beg, const char *end)
2229 basic_string_char_replace_iter_ptr_ptr(this, where, where, beg, end);
2232 /* ?resize@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXID@Z */
2233 /* ?resize@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAX_KD@Z */
2234 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_resize_ch, 12)
2235 void __thiscall MSVCP_basic_string_char_resize_ch(
2236 basic_string_char *this, MSVCP_size_t size, char ch)
2238 TRACE("%p %lu %c\n", this, size, ch);
2240 if(size <= this->size)
2241 MSVCP_basic_string_char_erase(this, size, this->size);
2243 MSVCP_basic_string_char_append_len_ch(this, size-this->size, ch);
2246 /* ?resize@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXI@Z */
2247 /* ?resize@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAX_K@Z */
2248 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_resize, 8)
2249 void __thiscall MSVCP_basic_string_char_resize(
2250 basic_string_char *this, MSVCP_size_t size)
2252 MSVCP_basic_string_char_resize_ch(this, size, '\0');
2255 /* ?clear@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
2256 /* ?clear@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
2257 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_clear, 4)
2258 void __thiscall MSVCP_basic_string_char_clear(basic_string_char *this)
2260 basic_string_char_eos(this, 0);
2263 /* ?begin@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AV?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
2264 /* ?begin@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA?AV?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
2265 /* ?begin@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AV?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
2266 /* ?begin@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA?AV?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
2267 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_begin, 8)
2268 String_iterator_char* __thiscall MSVCP_basic_string_char_begin(
2269 basic_string_char *this, String_iterator_char *ret)
2271 TRACE("%p\n", this);
2274 ret->pos = basic_string_char_const_ptr(this);
2278 /* ?end@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AV?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
2279 /* ?end@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA?AV?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
2280 /* ?end@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AV?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
2281 /* ?end@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA?AV?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ */
2282 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_end, 8)
2283 String_iterator_char* __thiscall MSVCP_basic_string_char_end(
2284 basic_string_char *this, String_iterator_char *ret)
2286 TRACE("%p\n", this);
2289 ret->pos = basic_string_char_const_ptr(this)+this->size;
2293 /* ?rbegin@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AV?$reverse_iterator@V?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@XZ */
2294 /* ?rbegin@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA?AV?$reverse_iterator@V?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@XZ */
2295 /* ?rbegin@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AV?$reverse_iterator@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@XZ */
2296 /* ?rbegin@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA?AV?$reverse_iterator@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@XZ */
2297 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_rbegin, 8)
2298 String_reverse_iterator_char* __thiscall MSVCP_basic_string_char_rbegin(
2299 basic_string_char *this, String_reverse_iterator_char *ret)
2301 TRACE("%p\n", this);
2304 ret->pos = basic_string_char_const_ptr(this)+this->size;
2308 /* ?rend@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AV?$reverse_iterator@V?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@XZ */
2309 /* ?rend@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA?AV?$reverse_iterator@V?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@XZ */
2310 /* ?rend@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AV?$reverse_iterator@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@XZ */
2311 /* ?rend@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA?AV?$reverse_iterator@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@XZ */
2312 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_rend, 8)
2313 String_reverse_iterator_char* __thiscall MSVCP_basic_string_char_rend(
2314 basic_string_char *this, String_reverse_iterator_char *ret)
2316 TRACE("%p\n", this);
2319 ret->pos = basic_string_char_const_ptr(this);
2323 /* basic_string<wchar_t, char_traits<wchar_t>, allocator<wchar_t>> */
2324 /* basic_string<unsigned short, char_traits<unsigned short>, allocator<unsigned short>> */
2325 /* ?npos@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@2IB */
2326 /* ?npos@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@2_KB */
2327 /* ?npos@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@2IB */
2328 /* ?npos@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@2_KB */
2329 const MSVCP_size_t MSVCP_basic_string_wchar_npos = -1;
2331 /* ?_Myptr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEPA_WXZ */
2332 /* ?_Myptr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAPEA_WXZ */
2333 /* ?_Myptr@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEPAGXZ */
2334 /* ?_Myptr@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAPEAGXZ */
2335 DEFINE_THISCALL_WRAPPER(basic_string_wchar_ptr, 4)
2336 wchar_t* __thiscall basic_string_wchar_ptr(basic_string_wchar *this)
2338 if(this->res == BUF_SIZE_WCHAR-1)
2339 return this->data.buf;
2340 return this->data.ptr;
2343 /* ?_Myptr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IBEPB_WXZ */
2344 /* ?_Myptr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEBAPEB_WXZ */
2345 /* ?_Myptr@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IBEPBGXZ */
2346 /* ?_Myptr@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEBAPEBGXZ */
2347 DEFINE_THISCALL_WRAPPER(basic_string_wchar_const_ptr, 4)
2348 const wchar_t* __thiscall basic_string_wchar_const_ptr(const basic_string_wchar *this)
2350 if(this->res == BUF_SIZE_WCHAR-1)
2351 return this->data.buf;
2352 return this->data.ptr;
2355 /* ?_Eos@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXI@Z */
2356 /* ?_Eos@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAX_K@Z */
2357 /* ?_Eos@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEXI@Z */
2358 /* ?_Eos@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAX_K@Z */
2359 DEFINE_THISCALL_WRAPPER(basic_string_wchar_eos, 8)
2360 void __thiscall basic_string_wchar_eos(basic_string_wchar *this, MSVCP_size_t len)
2362 static const wchar_t nullbyte_w = '\0';
2365 MSVCP_char_traits_wchar_assign(basic_string_wchar_ptr(this)+len, &nullbyte_w);
2368 /* ?_Inside@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAE_NPB_W@Z */
2369 /* ?_Inside@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAA_NPEB_W@Z */
2370 /* ?_Inside@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAE_NPBG@Z */
2371 /* ?_Inside@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAA_NPEBG@Z */
2372 DEFINE_THISCALL_WRAPPER(basic_string_wchar_inside, 8)
2373 MSVCP_bool __thiscall basic_string_wchar_inside(
2374 basic_string_wchar *this, const wchar_t *ptr)
2376 wchar_t *cstr = basic_string_wchar_ptr(this);
2378 return (ptr<cstr || ptr>=cstr+this->size) ? FALSE : TRUE;
2381 /* ?_Tidy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEX_NI@Z */
2382 /* ?_Tidy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAX_N_K@Z */
2383 /* ?_Tidy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEX_NI@Z */
2384 /* ?_Tidy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAX_N_K@Z */
2385 DEFINE_THISCALL_WRAPPER(basic_string_wchar_tidy, 12)
2386 void __thiscall basic_string_wchar_tidy(basic_string_wchar *this,
2387 MSVCP_bool built, MSVCP_size_t new_size)
2389 if(built && BUF_SIZE_WCHAR<=this->res) {
2390 wchar_t *ptr = this->data.ptr;
2393 MSVCP_char_traits_wchar__Copy_s(this->data.buf, BUF_SIZE_WCHAR, ptr, new_size);
2394 MSVCP_allocator_wchar_deallocate(this->allocator, ptr, this->res+1);
2397 this->res = BUF_SIZE_WCHAR-1;
2398 basic_string_wchar_eos(this, new_size);
2401 /* ?_Grow@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAE_NI_N@Z */
2402 /* ?_Grow@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAA_N_K_N@Z */
2403 /* ?_Grow@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAE_NI_N@Z */
2404 /* ?_Grow@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAA_N_K_N@Z */
2405 DEFINE_THISCALL_WRAPPER(basic_string_wchar_grow, 12)
2406 MSVCP_bool __thiscall basic_string_wchar_grow(
2407 basic_string_wchar *this, MSVCP_size_t new_size, MSVCP_bool trim)
2409 if(this->res < new_size) {
2410 MSVCP_size_t new_res = new_size, len = this->size;
2415 if(new_res/3 < this->res/2)
2416 new_res = this->res + this->res/2;
2418 ptr = MSVCP_allocator_wchar_allocate(this->allocator, new_res+1);
2420 ptr = MSVCP_allocator_wchar_allocate(this->allocator, new_size+1);
2424 ERR("Out of memory\n");
2425 basic_string_wchar_tidy(this, TRUE, 0);
2429 MSVCP_char_traits_wchar__Copy_s(ptr, new_size,
2430 basic_string_wchar_ptr(this), this->size);
2431 basic_string_wchar_tidy(this, TRUE, 0);
2432 this->data.ptr = ptr;
2433 this->res = new_size;
2434 basic_string_wchar_eos(this, len);
2435 } else if(trim && new_size < BUF_SIZE_WCHAR)
2436 basic_string_wchar_tidy(this, TRUE,
2437 new_size<this->size ? new_size : this->size);
2438 else if(new_size == 0)
2439 basic_string_wchar_eos(this, 0);
2441 return (new_size>0);
2444 /* ?_Copy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXII@Z */
2445 /* ?_Copy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAX_K0@Z */
2446 /* ?_Copy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEXII@Z */
2447 /* ?_Copy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAX_K0@Z */
2448 DEFINE_THISCALL_WRAPPER(basic_string_wchar__Copy, 12)
2449 void __thiscall basic_string_wchar__Copy(basic_string_wchar *this,
2450 MSVCP_size_t new_size, MSVCP_size_t copy_len)
2452 TRACE("%p %lu %lu\n", this, new_size, copy_len);
2454 if(!basic_string_wchar_grow(this, new_size, FALSE))
2456 basic_string_wchar_eos(this, copy_len);
2459 /* ?_Pdif@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@KAIV?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@0@Z */
2460 /* ?_Pdif@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@KA_KV?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@0@Z */
2461 /* ?_Pdif@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@KAIV?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@0@Z */
2462 /* ?_Pdif@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@KA_KV?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@0@Z */
2463 MSVCP_size_t __cdecl MSVCP_basic_string_wchar_Pdif(String_iterator_wchar i1, String_iterator_wchar i2)
2465 TRACE("(%p %p) (%p %p)\n", i1.bstr, i1.pos, i2.bstr, i2.pos);
2467 if((!i1.bstr && i1.pos) || i1.bstr!=i2.bstr) {
2468 _invalid_parameter(NULL, NULL, NULL, 0, 0);
2472 return !i1.pos ? 0 : i1.pos-i2.pos;
2475 /* ?get_allocator@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE?AV?$allocator@_W@2@XZ */
2476 /* ?get_allocator@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA?AV?$allocator@_W@2@XZ */
2477 /* ?get_allocator@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBE?AV?$allocator@G@2@XZ */
2478 /* ?get_allocator@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA?AV?$allocator@G@2@XZ */
2479 DEFINE_THISCALL_WRAPPER(basic_string_wchar_get_allocator, 8)
2480 allocator* __thiscall basic_string_wchar_get_allocator(const basic_string_wchar *this, allocator *ret)
2482 TRACE("%p\n", this);
2486 /* ?erase@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@II@Z */
2487 /* ?erase@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0@Z */
2488 /* ?erase@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@II@Z */
2489 /* ?erase@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K0@Z */
2490 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_erase, 12)
2491 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_erase(
2492 basic_string_wchar *this, MSVCP_size_t pos, MSVCP_size_t len)
2494 TRACE("%p %lu %lu\n", this, pos, len);
2496 if(pos > this->size)
2497 MSVCP__String_base_Xran();
2499 if(len > this->size-pos)
2500 len = this->size-pos;
2503 MSVCP_char_traits_wchar__Move_s(basic_string_wchar_ptr(this)+pos,
2504 this->res-pos, basic_string_wchar_ptr(this)+pos+len,
2505 this->size-pos-len);
2506 basic_string_wchar_eos(this, this->size-len);
2512 /* ?erase@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE?AV?$_String_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@0@Z */
2513 /* ?erase@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA?AV?$_String_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@0@Z */
2514 /* ?erase@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE?AV?$_String_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@0@Z */
2515 /* ?erase@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA?AV?$_String_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@0@Z */
2516 DEFINE_THISCALL_WRAPPER(basic_string_wchar_erase_iter_range, 24)
2517 String_iterator_wchar* __thiscall basic_string_wchar_erase_iter_range(basic_string_wchar *this,
2518 String_iterator_wchar *ret, String_iterator_wchar beg, String_iterator_wchar end)
2523 ret->pos = basic_string_wchar_ptr(this);
2524 off = MSVCP_basic_string_wchar_Pdif(beg, *ret);
2526 MSVCP_basic_string_wchar_erase(this, off, MSVCP_basic_string_wchar_Pdif(end, beg));
2529 ret->pos = basic_string_wchar_ptr(this)+off;
2533 /* ?erase@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE?AV?$_String_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@@Z */
2534 /* ?erase@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA?AV?$_String_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@@Z */
2535 /* ?erase@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE?AV?$_String_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@@Z */
2536 /* ?erase@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA?AV?$_String_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@@Z */
2537 DEFINE_THISCALL_WRAPPER(basic_string_wchar_erase_iter, 16)
2538 String_iterator_wchar* __thiscall basic_string_wchar_erase_iter(basic_string_wchar *this,
2539 String_iterator_wchar *ret, String_iterator_wchar pos)
2544 ret->pos = basic_string_wchar_ptr(this);
2545 off = MSVCP_basic_string_wchar_Pdif(pos, *ret);
2547 MSVCP_basic_string_wchar_erase(this, off, 1);
2550 ret->pos = basic_string_wchar_ptr(this)+off;
2554 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@ABV12@II@Z */
2555 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@AEBV12@_K1@Z */
2556 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@ABV12@II@Z */
2557 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@AEBV12@_K1@Z */
2558 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_substr, 16)
2559 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_assign_substr(
2560 basic_string_wchar *this, const basic_string_wchar *assign,
2561 MSVCP_size_t pos, MSVCP_size_t len)
2563 TRACE("%p %p %lu %lu\n", this, assign, pos, len);
2565 if(assign->size < pos)
2566 MSVCP__String_base_Xran();
2568 if(len > assign->size-pos)
2569 len = assign->size-pos;
2571 if(this == assign) {
2572 MSVCP_basic_string_wchar_erase(this, pos+len, MSVCP_basic_string_wchar_npos);
2573 MSVCP_basic_string_wchar_erase(this, 0, pos);
2574 } else if(basic_string_wchar_grow(this, len, FALSE)) {
2575 MSVCP_char_traits_wchar__Copy_s(basic_string_wchar_ptr(this),
2576 this->res, basic_string_wchar_const_ptr(assign)+pos, len);
2577 basic_string_wchar_eos(this, len);
2583 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@ABV12@@Z */
2584 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@AEBV12@@Z */
2585 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@ABV01@@Z */
2586 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@AEBV01@@Z */
2587 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@ABV12@@Z */
2588 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@AEBV12@@Z */
2589 /* ??4?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV01@ABV01@@Z */
2590 /* ??4?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV01@AEBV01@@Z */
2591 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign, 8)
2592 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_assign(
2593 basic_string_wchar *this, const basic_string_wchar *assign)
2595 return MSVCP_basic_string_wchar_assign_substr(this, assign,
2596 0, MSVCP_basic_string_wchar_npos);
2599 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_WI@Z */
2600 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W_K@Z */
2601 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@PBGI@Z */
2602 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@PEBG_K@Z */
2603 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_cstr_len, 12)
2604 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_assign_cstr_len(
2605 basic_string_wchar *this, const wchar_t *str, MSVCP_size_t len)
2607 TRACE("%p %s %lu\n", this, debugstr_w(str), len);
2609 if(basic_string_wchar_inside(this, str))
2610 return MSVCP_basic_string_wchar_assign_substr(this, this,
2611 str-basic_string_wchar_ptr(this), len);
2612 else if(basic_string_wchar_grow(this, len, FALSE)) {
2613 MSVCP_char_traits_wchar__Copy_s(basic_string_wchar_ptr(this),
2614 this->res, str, len);
2615 basic_string_wchar_eos(this, len);
2621 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@_W@Z */
2622 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@_W@Z */
2623 /* ??4?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV01@G@Z */
2624 /* ??4?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV01@G@Z */
2625 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_ch, 8)
2626 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_assign_ch(
2627 basic_string_wchar *this, wchar_t ch)
2629 return MSVCP_basic_string_wchar_assign_cstr_len(this, &ch, 1);
2632 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_W@Z */
2633 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W@Z */
2634 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@PB_W@Z */
2635 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@PEB_W@Z */
2636 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@PBG@Z */
2637 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@PEBG@Z */
2638 /* ??4?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV01@PBG@Z */
2639 /* ??4?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV01@PEBG@Z */
2640 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_cstr, 8)
2641 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_assign_cstr(
2642 basic_string_wchar *this, const wchar_t *str)
2644 return MSVCP_basic_string_wchar_assign_cstr_len(this, str,
2645 MSVCP_char_traits_wchar_length(str));
2648 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@I_W@Z */
2649 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K_W@Z */
2650 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IG@Z */
2651 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_KG@Z */
2652 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assignn, 12)
2653 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_assignn(
2654 basic_string_wchar *this, MSVCP_size_t count, wchar_t ch)
2656 TRACE("%p %ld %c\n", this, count, ch);
2658 basic_string_wchar_grow(this, count, FALSE);
2659 MSVCP_char_traits_wchar_assignn(basic_string_wchar_ptr(this), count, ch);
2660 basic_string_wchar_eos(this, count);
2664 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_W0@Z */
2665 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W0@Z */
2666 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@PBG0@Z */
2667 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@PEBG0@Z */
2668 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_ptr_ptr, 12)
2669 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_assign_ptr_ptr(
2670 basic_string_wchar *this, const wchar_t *first, const wchar_t *last)
2672 return MSVCP_basic_string_wchar_assign_cstr_len(this, first, last-first);
2675 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@0@Z */
2676 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@0@Z */
2677 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@0@Z */
2678 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@0@Z */
2679 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_iter, 20)
2680 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_assign_iter(basic_string_wchar *this,
2681 String_iterator_wchar beg, String_iterator_wchar end)
2683 return MSVCP_basic_string_wchar_assign_ptr_ptr(this, beg.pos, end.pos+1);
2686 /* ?_Chassign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXII_W@Z */
2687 /* ?_Chassign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAX_K0_W@Z */
2688 /* ?_Chassign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEXIIG@Z */
2689 /* ?_Chassign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAX_K0G@Z */
2690 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_Chassign, 16)
2691 void __thiscall MSVCP_basic_string_wchar_Chassign(basic_string_wchar *this,
2692 MSVCP_size_t off, MSVCP_size_t count, wchar_t ch)
2694 TRACE("%p %lu %lu %c\n", this, off, count, ch);
2695 MSVCP_char_traits_wchar_assignn(basic_string_wchar_ptr(this)+off, count, ch);
2698 /* ?_Copy_s@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPA_WIII@Z */
2699 /* ?_Copy_s@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEA_W_K11@Z */
2700 /* ?_Copy_s@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPAGIII@Z */
2701 /* ?_Copy_s@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEAG_K11@Z */
2702 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_Copy_s, 20)
2703 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_Copy_s(const basic_string_wchar *this,
2704 wchar_t *dest, MSVCP_size_t size, MSVCP_size_t count, MSVCP_size_t off)
2706 TRACE("%p %p %lu %lu %lu\n", this, dest, size, count, off);
2708 if(this->size < off)
2709 MSVCP__String_base_Xran();
2711 if(count > this->size-off)
2712 count = this->size-off;
2714 MSVCP_char_traits_wchar__Copy_s(dest, size,
2715 basic_string_wchar_const_ptr(this)+off, count);
2719 /* ?copy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPA_WII@Z */
2720 /* ?copy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEA_W_K1@Z */
2721 /* ?copy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPAGII@Z */
2722 /* ?copy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEAG_K1@Z */
2723 DEFINE_THISCALL_WRAPPER(basic_string_wchar_copy, 16)
2724 MSVCP_size_t __thiscall basic_string_wchar_copy(const basic_string_wchar *this,
2725 wchar_t *dest, MSVCP_size_t count, MSVCP_size_t off)
2727 return MSVCP_basic_string_wchar_Copy_s(this, dest, count, count, off);
2730 /* ?c_str@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEPB_WXZ */
2731 /* ?c_str@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAPEB_WXZ */
2732 /* ?data@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEPB_WXZ */
2733 /* ?data@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAPEB_WXZ */
2734 /* ?c_str@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEPBGXZ */
2735 /* ?c_str@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAPEBGXZ */
2736 /* ?data@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEPBGXZ */
2737 /* ?data@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAPEBGXZ */
2738 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_c_str, 4)
2739 const wchar_t* __thiscall MSVCP_basic_string_wchar_c_str(const basic_string_wchar *this)
2741 TRACE("%p\n", this);
2742 return basic_string_wchar_const_ptr(this);
2745 /* ?capacity@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIXZ */
2746 /* ?capacity@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KXZ */
2747 /* ?capacity@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIXZ */
2748 /* ?capacity@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KXZ */
2749 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_capacity, 4)
2750 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_capacity(basic_string_wchar *this)
2752 TRACE("%p\n", this);
2756 /* ?reserve@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXI@Z */
2757 /* ?reserve@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAX_K@Z */
2758 /* ?reserve@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXI@Z */
2759 /* ?reserve@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAX_K@Z */
2760 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_reserve, 8)
2761 void __thiscall MSVCP_basic_string_wchar_reserve(basic_string_wchar *this, MSVCP_size_t size)
2765 TRACE("%p %ld\n", this, size);
2771 basic_string_wchar_grow(this, size, FALSE);
2772 basic_string_wchar_eos(this, len);
2775 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@XZ */
2776 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@XZ */
2777 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@XZ */
2778 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@XZ */
2779 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor, 4)
2780 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor(basic_string_wchar *this)
2782 TRACE("%p\n", this);
2784 basic_string_wchar_tidy(this, FALSE, 0);
2788 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@ABV01@@Z */
2789 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@AEBV01@@Z */
2790 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@ABV01@@Z */
2791 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@AEBV01@@Z */
2792 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_copy_ctor, 8)
2793 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_copy_ctor(
2794 basic_string_wchar *this, const basic_string_wchar *copy)
2796 TRACE("%p %p\n", this, copy);
2798 basic_string_wchar_tidy(this, FALSE, 0);
2799 MSVCP_basic_string_wchar_assign(this, copy);
2803 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_W@Z */
2804 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@PEB_W@Z */
2805 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@PBG@Z */
2806 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@PEBG@Z */
2807 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_cstr, 8)
2808 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor_cstr(
2809 basic_string_wchar *this, const wchar_t *str)
2811 TRACE("%p %s\n", this, debugstr_w(str));
2813 basic_string_wchar_tidy(this, FALSE, 0);
2814 MSVCP_basic_string_wchar_assign_cstr(this, str);
2818 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_WABV?$allocator@_W@1@@Z */
2819 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@PEB_WAEBV?$allocator@_W@1@@Z */
2820 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@PBGABV?$allocator@G@1@@Z */
2821 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@PEBGAEBV?$allocator@G@1@@Z */
2822 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_cstr_alloc, 12)
2823 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor_cstr_alloc(
2824 basic_string_wchar *this, const wchar_t *str, const void *alloc)
2826 return MSVCP_basic_string_wchar_ctor_cstr(this, str);
2829 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_WI@Z */
2830 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@PEB_W_K@Z */
2831 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@PBGI@Z */
2832 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@PEBG_K@Z */
2833 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_cstr_len, 12)
2834 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor_cstr_len(
2835 basic_string_wchar *this, const wchar_t *str, MSVCP_size_t len)
2837 TRACE("%p %s %ld\n", this, debugstr_w(str), len);
2839 basic_string_wchar_tidy(this, FALSE, 0);
2840 MSVCP_basic_string_wchar_assign_cstr_len(this, str, len);
2844 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_WIABV?$allocator@_W@1@@Z */
2845 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@PEB_W_KAEBV?$allocator@_W@1@@Z */
2846 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@PBGIABV?$allocator@G@1@@Z */
2847 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@PEBG_KAEBV?$allocator@G@1@@Z */
2848 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_cstr_len_alloc, 16)
2849 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor_cstr_len_alloc(
2850 basic_string_wchar *this, const wchar_t *str, MSVCP_size_t len, const void *alloc)
2852 return MSVCP_basic_string_wchar_ctor_cstr_len(this, str, len);
2855 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@ABV01@II@Z */
2856 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@AEBV01@_K1@Z */
2857 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@ABV01@II@Z */
2858 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@AEBV01@_K1@Z */
2859 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_substr, 16)
2860 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor_substr(
2861 basic_string_wchar *this, const basic_string_wchar *assign,
2862 MSVCP_size_t pos, MSVCP_size_t len)
2864 TRACE("%p %p %lu %lu\n", this, assign, pos, len);
2866 basic_string_wchar_tidy(this, FALSE, 0);
2867 MSVCP_basic_string_wchar_assign_substr(this, assign, pos, len);
2871 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@ABV01@IIABV?$allocator@_W@1@@Z */
2872 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@AEBV01@_K1AEBV?$allocator@_W@1@@Z */
2873 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@ABV01@IIABV?$allocator@G@1@@Z */
2874 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@AEBV01@_K1AEBV?$allocator@G@1@@Z */
2875 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_substr_alloc, 20)
2876 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor_substr_alloc(
2877 basic_string_wchar *this, const basic_string_wchar *assign,
2878 MSVCP_size_t pos, MSVCP_size_t len, const void *alloc)
2880 return MSVCP_basic_string_wchar_ctor_substr(this, assign, pos, len);
2883 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@ABV?$allocator@_W@1@@Z */
2884 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@AEBV?$allocator@_W@1@@Z */
2885 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@ABV?$allocator@G@1@@Z */
2886 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@AEBV?$allocator@G@1@@Z */
2887 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_alloc, 8)
2888 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor_alloc(
2889 basic_string_wchar *this, const void *alloc)
2891 TRACE("%p %p\n", this, alloc);
2893 basic_string_wchar_tidy(this, FALSE, 0);
2897 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@I_W@Z */
2898 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@_K_W@Z */
2899 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@IG@Z */
2900 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@_KG@Z */
2901 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_ch, 12)
2902 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor_ch(basic_string_wchar *this,
2903 MSVCP_size_t count, wchar_t ch)
2905 TRACE("%p %ld %c\n", this, count, ch);
2907 basic_string_wchar_tidy(this, FALSE, 0);
2908 MSVCP_basic_string_wchar_assignn(this, count, ch);
2912 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@I_WABV?$allocator@_W@1@@Z */
2913 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@_K_WAEBV?$allocator@_W@1@@Z */
2914 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@IGABV?$allocator@G@1@@Z */
2915 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@_KGAEBV?$allocator@G@1@@Z */
2916 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_ch_alloc, 16)
2917 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor_ch_alloc(basic_string_wchar *this,
2918 MSVCP_size_t count, wchar_t ch, const void *alloc)
2920 return MSVCP_basic_string_wchar_ctor_ch(this, count, ch);
2923 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_W0@Z */
2924 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@PEB_W0@Z */
2925 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@PBG0@Z */
2926 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@PEBG0@Z */
2927 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_ptr_ptr, 12)
2928 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor_ptr_ptr(basic_string_wchar *this,
2929 const wchar_t *first, const wchar_t *last)
2931 return MSVCP_basic_string_wchar_ctor_cstr_len(this, first, last-first);
2934 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@1@0@Z */
2935 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@1@0@Z */
2936 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@1@0@Z */
2937 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@1@0@Z */
2938 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_iter, 20)
2939 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor_iter(basic_string_wchar *this,
2940 String_iterator_wchar beg, String_iterator_wchar end)
2942 return MSVCP_basic_string_wchar_ctor_cstr_len(this, beg.pos, end.pos-beg.pos+1);
2945 /* ??1?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@XZ */
2946 /* ??1?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@XZ */
2947 /* ??1?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@XZ */
2948 /* ??1?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@XZ */
2949 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_dtor, 4)
2950 void __thiscall MSVCP_basic_string_wchar_dtor(basic_string_wchar *this)
2952 TRACE("%p\n", this);
2953 basic_string_wchar_tidy(this, TRUE, 0);
2956 /* ?size@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIXZ */
2957 /* ?size@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KXZ */
2958 /* ?length@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIXZ */
2959 /* ?length@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KXZ */
2960 /* ?size@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIXZ */
2961 /* ?size@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KXZ */
2962 /* ?length@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIXZ */
2963 /* ?length@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KXZ */
2964 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_length, 4)
2965 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_length(basic_string_wchar *this)
2967 TRACE("%p\n", this);
2971 /* ?max_size@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIXZ */
2972 /* ?max_size@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KXZ */
2973 /* ?max_size@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIXZ */
2974 /* ?max_size@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KXZ */
2975 DEFINE_THISCALL_WRAPPER(basic_string_wchar_max_size, 4)
2976 MSVCP_size_t __thiscall basic_string_wchar_max_size(const basic_string_wchar *this)
2978 TRACE("%p\n", this);
2979 return MSVCP_allocator_wchar_max_size(this->allocator)-1;
2982 /* ?empty@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE_NXZ */
2983 /* ?empty@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_NXZ */
2984 /* ?empty@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBE_NXZ */
2985 /* ?empty@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_NXZ */
2986 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_empty, 4)
2987 MSVCP_bool __thiscall MSVCP_basic_string_wchar_empty(basic_string_wchar *this)
2989 TRACE("%p\n", this);
2990 return this->size == 0;
2993 /* ?swap@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXAAV12@@Z */
2994 /* ?swap@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXAEAV12@@Z */
2995 /* ?swap@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXAAV12@@Z */
2996 /* ?swap@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXAEAV12@@Z */
2997 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_swap, 8)
2998 void __thiscall MSVCP_basic_string_wchar_swap(basic_string_wchar *this, basic_string_wchar *str)
3001 char tmp[sizeof(this->data)];
3002 const MSVCP_size_t size = this->size;
3003 const MSVCP_size_t res = this->res;
3005 memcpy(tmp, this->data.buf, sizeof(this->data));
3006 memcpy(this->data.buf, str->data.buf, sizeof(this->data));
3007 memcpy(str->data.buf, tmp, sizeof(this->data));
3009 this->size = str->size;
3010 this->res = str->res;
3017 /* ?substr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE?AV12@II@Z */
3018 /* ?substr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA?AV12@_K0@Z */
3019 /* ?substr@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBE?AV12@II@Z */
3020 /* ?substr@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA?AV12@_K0@Z */
3021 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_substr, 16)
3022 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_substr(basic_string_wchar *this,
3023 basic_string_wchar *ret, MSVCP_size_t off, MSVCP_size_t len)
3025 TRACE("%p %lu %lu\n", this, off, len);
3027 MSVCP_basic_string_wchar_ctor_substr(ret, this, off, len);
3031 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@ABV12@II@Z */
3032 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@AEBV12@_K1@Z */
3033 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@ABV12@II@Z */
3034 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@AEBV12@_K1@Z */
3035 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_substr, 16)
3036 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_append_substr(basic_string_wchar *this,
3037 const basic_string_wchar *append, MSVCP_size_t offset, MSVCP_size_t count)
3039 TRACE("%p %p %lu %lu\n", this, append, offset, count);
3041 if(append->size < offset)
3042 MSVCP__String_base_Xran();
3044 if(count > append->size-offset)
3045 count = append->size-offset;
3047 if(MSVCP_basic_string_wchar_npos-this->size<=count || this->size+count<this->size)
3048 MSVCP__String_base_Xlen();
3050 if(basic_string_wchar_grow(this, this->size+count, FALSE)) {
3051 MSVCP_char_traits_wchar__Copy_s(basic_string_wchar_ptr(this)+this->size,
3052 this->res-this->size, basic_string_wchar_const_ptr(append)+offset, count);
3053 basic_string_wchar_eos(this, this->size+count);
3059 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@ABV12@@Z */
3060 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@AEBV12@@Z */
3061 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@ABV01@@Z */
3062 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@AEBV01@@Z */
3063 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@ABV12@@Z */
3064 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@AEBV12@@Z */
3065 /* ??Y?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV01@ABV01@@Z */
3066 /* ??Y?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV01@AEBV01@@Z */
3067 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append, 8)
3068 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_append(
3069 basic_string_wchar *this, const basic_string_wchar *append)
3071 return MSVCP_basic_string_wchar_append_substr(this, append,
3072 0, MSVCP_basic_string_wchar_npos);
3075 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_WI@Z */
3076 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W_K@Z */
3077 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@PBGI@Z */
3078 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@PEBG_K@Z */
3079 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_cstr_len, 12)
3080 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_append_cstr_len(
3081 basic_string_wchar *this, const wchar_t *append, MSVCP_size_t count)
3083 TRACE("%p %s %lu\n", this, debugstr_w(append), count);
3085 if(basic_string_wchar_inside(this, append))
3086 return MSVCP_basic_string_wchar_append_substr(this, this,
3087 append-basic_string_wchar_ptr(this), count);
3089 if(MSVCP_basic_string_wchar_npos-this->size<=count || this->size+count<this->size)
3090 MSVCP__String_base_Xlen();
3092 if(basic_string_wchar_grow(this, this->size+count, FALSE)) {
3093 MSVCP_char_traits_wchar__Copy_s(basic_string_wchar_ptr(this)+this->size,
3094 this->res-this->size, append, count);
3095 basic_string_wchar_eos(this, this->size+count);
3101 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_W@Z */
3102 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W@Z */
3103 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@PB_W@Z */
3104 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@PEB_W@Z */
3105 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@PBG@Z */
3106 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@PEBG@Z */
3107 /* ??Y?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV01@PBG@Z */
3108 /* ??Y?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV01@PEBG@Z */
3109 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_cstr, 8)
3110 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_append_cstr(
3111 basic_string_wchar *this, const wchar_t *append)
3113 return MSVCP_basic_string_wchar_append_cstr_len(this, append,
3114 MSVCP_char_traits_wchar_length(append));
3117 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_W0@Z */
3118 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W0@Z */
3119 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@PBG0@Z */
3120 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@PEBG0@Z */
3121 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_beg_end, 12)
3122 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_append_beg_end(
3123 basic_string_wchar *this, const wchar_t *beg, const wchar_t *end)
3125 return MSVCP_basic_string_wchar_append_cstr_len(this, beg, end-beg);
3128 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@0@Z */
3129 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@0@Z */
3130 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@0@Z */
3131 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@0@Z */
3132 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_iter, 20)
3133 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_append_iter(
3134 basic_string_wchar *this, String_iterator_wchar beg, String_iterator_wchar end)
3136 return MSVCP_basic_string_wchar_append_cstr_len(this, beg.pos, end.pos-beg.pos+1);
3139 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@I_W@Z */
3140 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K_W@Z */
3141 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IG@Z */
3142 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_KG@Z */
3143 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_len_ch, 12)
3144 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_append_len_ch(
3145 basic_string_wchar *this, MSVCP_size_t count, wchar_t ch)
3147 TRACE("%p %lu %c\n", this, count, ch);
3149 if(MSVCP_basic_string_wchar_npos-this->size <= count)
3150 MSVCP__String_base_Xlen();
3152 if(basic_string_wchar_grow(this, this->size+count, FALSE)) {
3153 MSVCP_char_traits_wchar_assignn(basic_string_wchar_ptr(this)+this->size, count, ch);
3154 basic_string_wchar_eos(this, this->size+count);
3160 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@_W@Z */
3161 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@_W@Z */
3162 /* ?push_back@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEX_W@Z */
3163 /* ?push_back@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAX_W@Z */
3164 /* ??Y?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV01@G@Z */
3165 /* ??Y?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV01@G@Z */
3166 /* ?push_back@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXG@Z */
3167 /* ?push_back@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXG@Z */
3168 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_ch, 8)
3169 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_append_ch(
3170 basic_string_wchar *this, wchar_t ch)
3172 return MSVCP_basic_string_wchar_append_len_ch(this, 1, ch);
3175 /* ??$?H_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@ABV10@PB_W@Z */
3176 /* ??$?H_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@AEBV10@PEB_W@Z */
3177 /* ??$?HGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA?AV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@ABV10@PBG@Z */
3178 /* ??$?HGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA?AV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@AEBV10@PEBG@Z */
3179 basic_string_wchar* __cdecl MSVCP_basic_string_wchar_concatenate_bstr_cstr(basic_string_wchar *ret,
3180 const basic_string_wchar *left, const wchar_t *right)
3182 TRACE("%p %s\n", left, debugstr_w(right));
3184 MSVCP_basic_string_wchar_copy_ctor(ret, left);
3185 MSVCP_basic_string_wchar_append_cstr(ret, right);
3189 /* ??$?H_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@PB_WABV10@@Z */
3190 /* ??$?H_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@PEB_WAEBV10@@Z */
3191 /* ??$?HGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA?AV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@PBGABV10@@Z */
3192 /* ??$?HGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA?AV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@PEBGAEBV10@@Z */
3193 basic_string_wchar* __cdecl MSVCP_basic_string_wchar_concatenate_cstr_bstr(basic_string_wchar *ret,
3194 const wchar_t *left, const basic_string_wchar *right)
3196 TRACE("%s %p\n", debugstr_w(left), right);
3198 MSVCP_basic_string_wchar_ctor_cstr(ret, left);
3199 MSVCP_basic_string_wchar_append(ret, right);
3203 /* ??$?H_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@ABV10@0@Z */
3204 /* ??$?H_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@AEBV10@0@Z */
3205 /* ??$?HGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA?AV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@ABV10@0@Z */
3206 /* ??$?HGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA?AV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@AEBV10@0@Z */
3207 basic_string_wchar* __cdecl MSVCP_basic_string_wchar_concatenate(basic_string_wchar *ret,
3208 const basic_string_wchar *left, const basic_string_wchar *right)
3210 TRACE("%p %p\n", left, right);
3212 MSVCP_basic_string_wchar_copy_ctor(ret, left);
3213 MSVCP_basic_string_wchar_append(ret, right);
3217 /* ??$?H_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@ABV10@_W@Z */
3218 /* ??$?H_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@AEBV10@_W@Z */
3219 /* ??$?HGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA?AV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@ABV10@G@Z */
3220 /* ??$?HGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA?AV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@AEBV10@G@Z */
3221 basic_string_wchar __cdecl MSVCP_basic_string_wchar_concatenate_bstr_ch(
3222 const basic_string_wchar *left, wchar_t right)
3224 basic_string_wchar ret = { 0 };
3226 TRACE("%p %c\n", left, right);
3228 MSVCP_basic_string_wchar_copy_ctor(&ret, left);
3229 MSVCP_basic_string_wchar_append_ch(&ret, right);
3233 /* ??$?H_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@_WABV10@@Z */
3234 /* ??$?H_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@_WAEBV10@@Z */
3235 /* ??$?HGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA?AV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@GABV10@@Z */
3236 /* ??$?HGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA?AV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@GAEBV10@@Z */
3237 basic_string_wchar __cdecl MSVCP_basic_string_wchar_concatenate_ch_bstr(
3238 wchar_t left, const basic_string_wchar *right)
3240 basic_string_wchar ret = { 0 };
3242 TRACE("%c %p\n", left, right);
3244 MSVCP_basic_string_wchar_ctor_cstr_len(&ret, &left, 1);
3245 MSVCP_basic_string_wchar_append(&ret, right);
3249 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHIIPB_WI@Z */
3250 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAH_K0PEB_W0@Z */
3251 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEHIIPBGI@Z */
3252 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAH_K0PEBG0@Z */
3253 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare_substr_cstr_len, 20)
3254 int __thiscall MSVCP_basic_string_wchar_compare_substr_cstr_len(
3255 const basic_string_wchar *this, MSVCP_size_t pos, MSVCP_size_t num,
3256 const wchar_t *str, MSVCP_size_t count)
3260 TRACE("%p %lu %lu %s %lu\n", this, pos, num, debugstr_w(str), count);
3262 if(this->size < pos)
3263 MSVCP__String_base_Xran();
3265 if(pos+num > this->size)
3266 num = this->size-pos;
3268 ans = MSVCP_char_traits_wchar_compare(basic_string_wchar_const_ptr(this)+pos,
3269 str, num>count ? count : num);
3275 else if(num < count)
3280 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHIIPB_W@Z */
3281 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAH_K0PEB_W@Z */
3282 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEHIIPBG@Z */
3283 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAH_K0PEBG@Z */
3284 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare_substr_cstr, 16)
3285 int __thiscall MSVCP_basic_string_wchar_compare_substr_cstr(const basic_string_wchar *this,
3286 MSVCP_size_t pos, MSVCP_size_t num, const wchar_t *str)
3288 return MSVCP_basic_string_wchar_compare_substr_cstr_len(this, pos, num,
3289 str, MSVCP_char_traits_wchar_length(str));
3292 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHPB_W@Z */
3293 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAHPEB_W@Z */
3294 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEHPBG@Z */
3295 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAHPEBG@Z */
3296 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare_cstr, 8)
3297 int __thiscall MSVCP_basic_string_wchar_compare_cstr(
3298 const basic_string_wchar *this, const wchar_t *str)
3300 return MSVCP_basic_string_wchar_compare_substr_cstr_len(this, 0, this->size,
3301 str, MSVCP_char_traits_wchar_length(str));
3304 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHIIABV12@II@Z */
3305 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAH_K0AEBV12@00@Z */
3306 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEHIIABV12@II@Z */
3307 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAH_K0AEBV12@00@Z */
3308 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare_substr_substr, 24)
3309 int __thiscall MSVCP_basic_string_wchar_compare_substr_substr(
3310 const basic_string_wchar *this, MSVCP_size_t pos, MSVCP_size_t num,
3311 const basic_string_wchar *compare, MSVCP_size_t off, MSVCP_size_t count)
3313 TRACE("%p %lu %lu %p %lu %lu\n", this, pos, num, compare, off, count);
3315 if(compare->size < off)
3316 MSVCP__String_base_Xran();
3318 if(off+count > compare->size)
3319 count = compare->size-off;
3321 return MSVCP_basic_string_wchar_compare_substr_cstr_len(this, pos, num,
3322 basic_string_wchar_const_ptr(compare)+off, count);
3325 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHIIABV12@@Z */
3326 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAH_K0AEBV12@@Z */
3327 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEHIIABV12@@Z */
3328 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAH_K0AEBV12@@Z */
3329 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare_substr, 16)
3330 int __thiscall MSVCP_basic_string_wchar_compare_substr(
3331 const basic_string_wchar *this, MSVCP_size_t pos, MSVCP_size_t num,
3332 const basic_string_wchar *compare)
3334 return MSVCP_basic_string_wchar_compare_substr_cstr_len(this, pos, num,
3335 basic_string_wchar_const_ptr(compare), compare->size);
3338 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHABV12@@Z */
3339 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAHAEBV12@@Z */
3340 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEHABV12@@Z */
3341 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAHAEBV12@@Z */
3342 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare, 8)
3343 int __thiscall MSVCP_basic_string_wchar_compare(
3344 const basic_string_wchar *this, const basic_string_wchar *compare)
3346 return MSVCP_basic_string_wchar_compare_substr_cstr_len(this, 0, this->size,
3347 basic_string_wchar_const_ptr(compare), compare->size);
3350 /* ??$?8_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@0@Z */
3351 /* ??$?8_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NAEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@0@Z */
3352 /* ??$?8GU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@0@Z */
3353 /* ??$?8GU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NAEBV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@0@Z */
3354 MSVCP_bool __cdecl MSVCP_basic_string_wchar_equal(
3355 const basic_string_wchar *left, const basic_string_wchar *right)
3357 return MSVCP_basic_string_wchar_compare(left, right) == 0;
3360 /* ??$?8_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@PB_W@Z */
3361 /* ??$?8_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NAEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@PEB_W@Z */
3362 /* ??$?8GU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@PBG@Z */
3363 /* ??$?8GU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NAEBV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@PEBG@Z */
3364 MSVCP_bool __cdecl MSVCP_basic_string_wchar_equal_str_cstr(
3365 const basic_string_wchar *left, const wchar_t *right)
3367 return MSVCP_basic_string_wchar_compare_cstr(left, right) == 0;
3370 /* ??$?8_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NPB_WABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@@Z */
3371 /* ??$?8_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NPEB_WAEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@@Z */
3372 /* ??$?8GU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NPBGABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@@Z */
3373 /* ??$?8GU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NPEBGAEBV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@@Z */
3374 MSVCP_bool __cdecl MSVCP_basic_string_wchar_equal_cstr_str(
3375 const wchar_t *left, const basic_string_wchar *right)
3377 return MSVCP_basic_string_wchar_compare_cstr(right, left) == 0;
3380 /* ??$?9_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@0@Z */
3381 /* ??$?9_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NAEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@0@Z */
3382 /* ??$?9GU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@0@Z */
3383 /* ??$?9GU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NAEBV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@0@Z */
3384 MSVCP_bool __cdecl MSVCP_basic_string_wchar_not_equal(
3385 const basic_string_wchar *left, const basic_string_wchar *right)
3387 return MSVCP_basic_string_wchar_compare(left, right) != 0;
3390 /* ??$?9_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@PB_W@Z */
3391 /* ??$?9_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NAEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@PEB_W@Z */
3392 /* ??$?9GU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@PBG@Z */
3393 /* ??$?9GU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NAEBV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@PEBG@Z */
3394 MSVCP_bool __cdecl MSVCP_basic_string_wchar_not_equal_str_cstr(
3395 const basic_string_wchar *left, const wchar_t *right)
3397 return MSVCP_basic_string_wchar_compare_cstr(left, right) != 0;
3400 /* ??$?9_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NPB_WABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@@Z */
3401 /* ??$?9_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NPEB_WAEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@@Z */
3402 /* ??$?9GU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NPBGABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@@Z */
3403 /* ??$?9GU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NPEBGAEBV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@@Z */
3404 MSVCP_bool __cdecl MSVCP_basic_string_wchar_not_equal_cstr_str(
3405 const wchar_t *left, const basic_string_wchar *right)
3407 return MSVCP_basic_string_wchar_compare_cstr(right, left) != 0;
3410 /* ??$?M_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@0@Z */
3411 /* ??$?M_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NAEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@0@Z */
3412 /* ??$?MGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@0@Z */
3413 /* ??$?MGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NAEBV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@0@Z */
3414 MSVCP_bool __cdecl MSVCP_basic_string_wchar_lower(
3415 const basic_string_wchar *left, const basic_string_wchar *right)
3417 return MSVCP_basic_string_wchar_compare(left, right) < 0;
3420 /* ??$?M_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@PB_W@Z */
3421 /* ??$?M_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NAEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@PEB_W@Z */
3422 /* ??$?MGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@PBG@Z */
3423 /* ??$?MGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NAEBV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@PEBG@Z */
3424 MSVCP_bool __cdecl MSVCP_basic_string_wchar_lower_bstr_cstr(
3425 const basic_string_wchar *left, const wchar_t *right)
3427 return MSVCP_basic_string_wchar_compare_cstr(left, right) < 0;
3430 /* ??$?M_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NPB_WABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@@Z */
3431 /* ??$?M_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NPEB_WAEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@@Z */
3432 /* ??$?MGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NPBGABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@@Z */
3433 /* ??$?MGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NPEBGAEBV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@@Z */
3434 MSVCP_bool __cdecl MSVCP_basic_string_wchar_lower_cstr_bstr(
3435 const wchar_t *left, const basic_string_wchar *right)
3437 return MSVCP_basic_string_wchar_compare_cstr(right, left) > 0;
3440 /* ??$?N_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@0@Z */
3441 /* ??$?N_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NAEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@0@Z */
3442 /* ??$?NGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@0@Z */
3443 /* ??$?NGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NAEBV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@0@Z */
3444 MSVCP_bool __cdecl MSVCP_basic_string_wchar_leq(
3445 const basic_string_wchar *left, const basic_string_wchar *right)
3447 return MSVCP_basic_string_wchar_compare(left, right) <= 0;
3450 /* ??$?N_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@PB_W@Z */
3451 /* ??$?N_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NAEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@PEB_W@Z */
3452 /* ??$?NGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@PBG@Z */
3453 /* ??$?NGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NAEBV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@PEBG@Z */
3454 MSVCP_bool __cdecl MSVCP_basic_string_wchar_leq_bstr_cstr(
3455 const basic_string_wchar *left, const wchar_t *right)
3457 return MSVCP_basic_string_wchar_compare_cstr(left, right) <= 0;
3460 /* ??$?N_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NPB_WABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@@Z */
3461 /* ??$?N_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NPEB_WAEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@@Z */
3462 /* ??$?NGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NPBGABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@@Z */
3463 /* ??$?NGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NPEBGAEBV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@@Z */
3464 MSVCP_bool __cdecl MSVCP_basic_string_wchar_leq_cstr_bstr(
3465 const wchar_t *left, const basic_string_wchar *right)
3467 return MSVCP_basic_string_wchar_compare_cstr(right, left) >= 0;
3470 /* ??$?O_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@0@Z */
3471 /* ??$?O_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NAEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@0@Z */
3472 /* ??$?OGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@0@Z */
3473 /* ??$?OGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NAEBV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@0@Z */
3474 MSVCP_bool __cdecl MSVCP_basic_string_wchar_greater(
3475 const basic_string_wchar *left, const basic_string_wchar *right)
3477 return MSVCP_basic_string_wchar_compare(left, right) > 0;
3480 /* ??$?O_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@PB_W@Z */
3481 /* ??$?O_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NAEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@PEB_W@Z */
3482 /* ??$?OGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@PBG@Z */
3483 /* ??$?OGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NAEBV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@PEBG@Z */
3484 MSVCP_bool __cdecl MSVCP_basic_string_wchar_greater_bstr_cstr(
3485 const basic_string_wchar *left, const wchar_t *right)
3487 return MSVCP_basic_string_wchar_compare_cstr(left, right) > 0;
3490 /* ??$?O_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NPB_WABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@@Z */
3491 /* ??$?O_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NPEB_WAEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@@Z */
3492 /* ??$?OGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NPBGABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@@Z */
3493 /* ??$?OGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NPEBGAEBV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@@Z */
3494 MSVCP_bool __cdecl MSVCP_basic_string_wchar_greater_cstr_bstr(
3495 const wchar_t *left, const basic_string_wchar *right)
3497 return MSVCP_basic_string_wchar_compare_cstr(right, left) < 0;
3500 /* ??$?P_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@0@Z */
3501 /* ??$?P_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NAEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@0@Z */
3502 /* ??$?PGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@0@Z */
3503 /* ??$?PGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NAEBV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@0@Z */
3504 MSVCP_bool __cdecl MSVCP_basic_string_wchar_geq(
3505 const basic_string_wchar *left, const basic_string_wchar *right)
3507 return MSVCP_basic_string_wchar_compare(left, right) >= 0;
3510 /* ??$?P_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@PB_W@Z */
3511 /* ??$?P_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NAEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@PEB_W@Z */
3512 /* ??$?PGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@PBG@Z */
3513 /* ??$?PGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NAEBV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@PEBG@Z */
3514 MSVCP_bool __cdecl MSVCP_basic_string_wchar_geq_bstr_cstr(
3515 const basic_string_wchar *left, const wchar_t *right)
3517 return MSVCP_basic_string_wchar_compare_cstr(left, right) >= 0;
3520 /* ??$?P_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NPB_WABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@@Z */
3521 /* ??$?P_WU?$char_traits@_W@std@@V?$allocator@_W@1@@std@@YA_NPEB_WAEBV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@0@@Z */
3522 /* ??$?PGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NPBGABV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@@Z */
3523 /* ??$?PGU?$char_traits@G@std@@V?$allocator@G@1@@std@@YA_NPEBGAEBV?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@0@@Z */
3524 MSVCP_bool __cdecl MSVCP_basic_string_wchar_geq_cstr_bstr(
3525 const wchar_t *left, const basic_string_wchar *right)
3527 return MSVCP_basic_string_wchar_compare_cstr(right, left) <= 0;
3530 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
3531 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
3532 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGII@Z */
3533 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K1@Z */
3534 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_cstr_substr, 16)
3535 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_cstr_substr(
3536 const basic_string_wchar *this, const wchar_t *find, MSVCP_size_t pos, MSVCP_size_t len)
3538 const wchar_t *p, *end;
3540 TRACE("%p %s %lu %lu\n", this, debugstr_w(find), pos, len);
3542 if(len==0 && pos<=this->size)
3545 end = basic_string_wchar_const_ptr(this)+this->size-len+1;
3546 for(p=basic_string_wchar_const_ptr(this)+pos; p<end; p++) {
3547 p = MSVCP_char_traits_wchar_find(p, end-p, find);
3551 if(!MSVCP_char_traits_wchar_compare(p, find, len))
3552 return p-basic_string_wchar_const_ptr(this);
3555 return MSVCP_basic_string_wchar_npos;
3558 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
3559 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
3560 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGI@Z */
3561 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K@Z */
3562 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_cstr_off, 12)
3563 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_cstr_off(
3564 const basic_string_wchar *this, const wchar_t *find, MSVCP_size_t pos)
3566 return MSVCP_basic_string_wchar_find_cstr_substr(this, find, pos,
3567 MSVCP_char_traits_wchar_length(find));
3570 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
3571 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
3572 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIABV12@I@Z */
3573 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KAEBV12@_K@Z */
3574 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_off, 12)
3575 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_off(
3576 const basic_string_wchar *this, const basic_string_wchar *find, MSVCP_size_t off)
3578 return MSVCP_basic_string_wchar_find_cstr_substr(this,
3579 basic_string_wchar_const_ptr(find), off, find->size);
3582 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
3583 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
3584 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIGI@Z */
3585 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KG_K@Z */
3586 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_ch, 12)
3587 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_ch(
3588 const basic_string_wchar *this, wchar_t ch, MSVCP_size_t pos)
3590 return MSVCP_basic_string_wchar_find_cstr_substr(this, &ch, pos, 1);
3593 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
3594 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
3595 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGII@Z */
3596 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K1@Z */
3597 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_rfind_cstr_substr, 16)
3598 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_rfind_cstr_substr(
3599 const basic_string_wchar *this, const wchar_t *find, MSVCP_size_t pos, MSVCP_size_t len)
3601 const wchar_t *p, *end;
3603 TRACE("%p %s %lu %lu\n", this, debugstr_w(find), pos, len);
3606 return pos<this->size ? pos : this->size;
3608 if(len > this->size)
3609 return MSVCP_basic_string_wchar_npos;
3611 if(pos > this->size-len+1)
3612 pos = this->size-len+1;
3613 end = basic_string_wchar_const_ptr(this);
3614 for(p=end+pos; p>=end; p--) {
3615 if(*p==*find && !MSVCP_char_traits_wchar_compare(p, find, len))
3616 return p-basic_string_wchar_const_ptr(this);
3619 return MSVCP_basic_string_wchar_npos;
3622 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
3623 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
3624 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGI@Z */
3625 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K@Z */
3626 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_rfind_cstr_off, 12)
3627 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_rfind_cstr_off(
3628 const basic_string_wchar *this, const wchar_t *find, MSVCP_size_t pos)
3630 return MSVCP_basic_string_wchar_rfind_cstr_substr(this, find, pos,
3631 MSVCP_char_traits_wchar_length(find));
3634 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
3635 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
3636 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIABV12@I@Z */
3637 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KAEBV12@_K@Z */
3638 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_rfind_off, 12)
3639 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_rfind_off(
3640 const basic_string_wchar *this, const basic_string_wchar *find, MSVCP_size_t off)
3642 return MSVCP_basic_string_wchar_rfind_cstr_substr(this,
3643 basic_string_wchar_const_ptr(find), off, find->size);
3646 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
3647 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
3648 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIGI@Z */
3649 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KG_K@Z */
3650 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_rfind_ch, 12)
3651 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_rfind_ch(
3652 const basic_string_wchar *this, wchar_t ch, MSVCP_size_t pos)
3654 return MSVCP_basic_string_wchar_rfind_cstr_substr(this, &ch, pos, 1);
3657 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
3658 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
3659 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGII@Z */
3660 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K1@Z */
3661 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_of_cstr_substr, 16)
3662 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_first_of_cstr_substr(
3663 const basic_string_wchar *this, const wchar_t *find, MSVCP_size_t off, MSVCP_size_t len)
3665 const wchar_t *p, *end;
3667 TRACE("%p %p %lu %lu\n", this, find, off, len);
3669 if(len>0 && off<this->size) {
3670 end = basic_string_wchar_const_ptr(this)+this->size;
3671 for(p=basic_string_wchar_const_ptr(this)+off; p<end; p++)
3672 if(MSVCP_char_traits_wchar_find(find, len, p))
3673 return p-basic_string_wchar_const_ptr(this);
3676 return MSVCP_basic_string_wchar_npos;
3679 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
3680 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
3681 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIABV12@I@Z */
3682 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KAEBV12@_K@Z */
3683 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_of, 12)
3684 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_first_of(
3685 const basic_string_wchar *this, const basic_string_wchar *find, MSVCP_size_t off)
3687 return MSVCP_basic_string_wchar_find_first_of_cstr_substr(this,
3688 basic_string_wchar_const_ptr(find), off, find->size);
3691 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
3692 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
3693 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGI@Z */
3694 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K@Z */
3695 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_of_cstr, 12)
3696 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_first_of_cstr(
3697 const basic_string_wchar *this, const wchar_t *find, MSVCP_size_t off)
3699 return MSVCP_basic_string_wchar_find_first_of_cstr_substr(
3700 this, find, off, MSVCP_char_traits_wchar_length(find));
3703 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
3704 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
3705 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIGI@Z */
3706 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KG_K@Z */
3707 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_of_ch, 12)
3708 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_first_of_ch(
3709 const basic_string_wchar *this, wchar_t ch, MSVCP_size_t off)
3711 return MSVCP_basic_string_wchar_find_first_of_cstr_substr(this, &ch, off, 1);
3714 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
3715 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
3716 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGII@Z */
3717 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K1@Z */
3718 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_not_of_cstr_substr, 16)
3719 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_first_not_of_cstr_substr(
3720 const basic_string_wchar *this, const wchar_t *find, MSVCP_size_t off, MSVCP_size_t len)
3722 const wchar_t *p, *end;
3724 TRACE("%p %p %lu %lu\n", this, find, off, len);
3726 if(off<this->size) {
3727 end = basic_string_wchar_const_ptr(this)+this->size;
3728 for(p=basic_string_wchar_const_ptr(this)+off; p<end; p++)
3729 if(!MSVCP_char_traits_wchar_find(find, len, p))
3730 return p-basic_string_wchar_const_ptr(this);
3733 return MSVCP_basic_string_wchar_npos;
3736 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
3737 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
3738 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIABV12@I@Z */
3739 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KAEBV12@_K@Z */
3740 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_not_of, 12)
3741 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_first_not_of(
3742 const basic_string_wchar *this, const basic_string_wchar *find, MSVCP_size_t off)
3744 return MSVCP_basic_string_wchar_find_first_not_of_cstr_substr(this,
3745 basic_string_wchar_const_ptr(find), off, find->size);
3748 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
3749 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
3750 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGI@Z */
3751 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K@Z */
3752 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_not_of_cstr, 12)
3753 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_first_not_of_cstr(
3754 const basic_string_wchar *this, const wchar_t *find, MSVCP_size_t off)
3756 return MSVCP_basic_string_wchar_find_first_not_of_cstr_substr(
3757 this, find, off, MSVCP_char_traits_wchar_length(find));
3760 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
3761 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
3762 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIGI@Z */
3763 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KG_K@Z */
3764 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_not_of_ch, 12)
3765 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_first_not_of_ch(
3766 const basic_string_wchar *this, wchar_t ch, MSVCP_size_t off)
3768 return MSVCP_basic_string_wchar_find_first_not_of_cstr_substr(this, &ch, off, 1);
3771 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
3772 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
3773 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGII@Z */
3774 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K1@Z */
3775 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_of_cstr_substr, 16)
3776 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_last_of_cstr_substr(
3777 const basic_string_wchar *this, const wchar_t *find, MSVCP_size_t off, MSVCP_size_t len)
3779 const wchar_t *p, *beg;
3781 TRACE("%p %p %lu %lu\n", this, find, off, len);
3784 if(len>0 && this->size>0) {
3785 if(off >= this->size)
3788 beg = basic_string_wchar_const_ptr(this);
3789 for(p=beg+off; p>=beg; p--)
3790 if(MSVCP_char_traits_wchar_find(find, len, p))
3794 return MSVCP_basic_string_wchar_npos;
3797 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
3798 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
3799 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIABV12@I@Z */
3800 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KAEBV12@_K@Z */
3801 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_of, 12)
3802 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_last_of(
3803 const basic_string_wchar *this, const basic_string_wchar *find, MSVCP_size_t off)
3805 return MSVCP_basic_string_wchar_find_last_of_cstr_substr(this,
3806 basic_string_wchar_const_ptr(find), off, find->size);
3809 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
3810 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
3811 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGI@Z */
3812 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K@Z */
3813 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_of_cstr, 12)
3814 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_last_of_cstr(
3815 const basic_string_wchar *this, const wchar_t *find, MSVCP_size_t off)
3817 return MSVCP_basic_string_wchar_find_last_of_cstr_substr(
3818 this, find, off, MSVCP_char_traits_wchar_length(find));
3821 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
3822 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
3823 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIGI@Z */
3824 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KG_K@Z */
3825 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_of_ch, 12)
3826 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_last_of_ch(
3827 const basic_string_wchar *this, wchar_t ch, MSVCP_size_t off)
3829 return MSVCP_basic_string_wchar_find_last_of_cstr_substr(this, &ch, off, 1);
3832 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
3833 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
3834 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGII@Z */
3835 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K1@Z */
3836 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_not_of_cstr_substr, 16)
3837 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_last_not_of_cstr_substr(
3838 const basic_string_wchar *this, const wchar_t *find, MSVCP_size_t off, MSVCP_size_t len)
3840 const wchar_t *p, *beg;
3842 TRACE("%p %p %lu %lu\n", this, find, off, len);
3844 if(len>0 && this->size>0) {
3845 if(off >= this->size)
3848 beg = basic_string_wchar_const_ptr(this);
3849 for(p=beg+off; p>=beg; p--)
3850 if(!MSVCP_char_traits_wchar_find(find, len, p))
3854 return MSVCP_basic_string_wchar_npos;
3857 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
3858 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
3859 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIABV12@I@Z */
3860 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KAEBV12@_K@Z */
3861 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_not_of, 12)
3862 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_last_not_of(
3863 const basic_string_wchar *this, const basic_string_wchar *find, MSVCP_size_t off)
3865 return MSVCP_basic_string_wchar_find_last_not_of_cstr_substr(this,
3866 basic_string_wchar_const_ptr(find), off, find->size);
3869 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
3870 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
3871 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGI@Z */
3872 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K@Z */
3873 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_not_of_cstr, 12)
3874 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_last_not_of_cstr(
3875 const basic_string_wchar *this, const wchar_t *find, MSVCP_size_t off)
3877 return MSVCP_basic_string_wchar_find_last_not_of_cstr_substr(
3878 this, find, off, MSVCP_char_traits_wchar_length(find));
3881 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
3882 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
3883 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIGI@Z */
3884 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KG_K@Z */
3885 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_not_of_ch, 12)
3886 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_last_not_of_ch(
3887 const basic_string_wchar *this, wchar_t ch, MSVCP_size_t off)
3889 return MSVCP_basic_string_wchar_find_last_not_of_cstr_substr(this, &ch, off, 1);
3892 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IIPB_WI@Z */
3893 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0PEB_W0@Z */
3894 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IIPBGI@Z */
3895 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K0PEBG0@Z */
3896 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_cstr_len, 20)
3897 basic_string_wchar* __thiscall basic_string_wchar_replace_cstr_len(basic_string_wchar *this,
3898 MSVCP_size_t off, MSVCP_size_t len, const wchar_t *str, MSVCP_size_t str_len)
3900 MSVCP_size_t inside_pos = -1;
3901 wchar_t *ptr = basic_string_wchar_ptr(this);
3903 TRACE("%p %ld %ld %p %ld\n", this, off, len, str, str_len);
3905 if(this->size < off)
3906 MSVCP__String_base_Xran();
3908 if(off+len > this->size)
3909 len = this->size-off;
3911 if(MSVCP_basic_string_wchar_npos-str_len <= this->size-len)
3912 MSVCP__String_base_Xlen();
3914 if(basic_string_wchar_inside(this, str))
3915 inside_pos = str-ptr;
3918 basic_string_wchar_grow(this, this->size-len+str_len, FALSE);
3919 ptr = basic_string_wchar_ptr(this);
3922 if(inside_pos == -1) {
3923 memmove(ptr+off+str_len, ptr+off+len, (this->size-off-len)*sizeof(wchar_t));
3924 memcpy(ptr+off, str, str_len*sizeof(wchar_t));
3925 } else if(len >= str_len) {
3926 memmove(ptr+off, ptr+inside_pos, str_len*sizeof(wchar_t));
3927 memmove(ptr+off+str_len, ptr+off+len, (this->size-off-len)*sizeof(wchar_t));
3931 memmove(ptr+off+str_len, ptr+off+len, (this->size-off-len)*sizeof(wchar_t));
3933 if(inside_pos < off+len) {
3934 size = off+len-inside_pos;
3937 memmove(ptr+off, ptr+inside_pos, size*sizeof(wchar_t));
3943 memmove(ptr+off+size, ptr+off+str_len, (str_len-size)*sizeof(wchar_t));
3946 basic_string_wchar_eos(this, this->size-len+str_len);
3950 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IIPB_W@Z */
3951 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0PEB_W@Z */
3952 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IIPBG@Z */
3953 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K0PEBG@Z */
3954 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_cstr, 16)
3955 basic_string_wchar* __thiscall basic_string_wchar_replace_cstr(basic_string_wchar *this,
3956 MSVCP_size_t off, MSVCP_size_t len, const wchar_t *str)
3958 return basic_string_wchar_replace_cstr_len(this, off, len, str,
3959 MSVCP_char_traits_wchar_length(str));
3962 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IIABV12@II@Z */
3963 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0AEBV12@00@Z */
3964 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IIABV12@II@Z */
3965 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K0AEBV12@00@Z */
3966 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_substr, 24)
3967 basic_string_wchar* __thiscall basic_string_wchar_replace_substr(basic_string_wchar *this, MSVCP_size_t off,
3968 MSVCP_size_t len, const basic_string_wchar *str, MSVCP_size_t str_off, MSVCP_size_t str_len)
3970 if(str->size < str_off)
3971 MSVCP__String_base_Xran();
3973 if(str_off+str_len > str->size)
3974 str_len = str->size-str_off;
3976 return basic_string_wchar_replace_cstr_len(this, off, len,
3977 basic_string_wchar_const_ptr(str)+str_off, str_len);
3980 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IIABV12@@Z */
3981 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0AEBV12@@Z */
3982 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IIABV12@@Z */
3983 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K0AEBV12@@Z */
3984 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace, 16)
3985 basic_string_wchar* __thiscall basic_string_wchar_replace(basic_string_wchar *this,
3986 MSVCP_size_t off, MSVCP_size_t len, const basic_string_wchar *str)
3988 return basic_string_wchar_replace_cstr_len(this, off, len,
3989 basic_string_wchar_const_ptr(str), str->size);
3992 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@III_W@Z */
3993 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K00_W@Z */
3994 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IIIG@Z */
3995 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K00G@Z */
3996 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_ch, 20)
3997 basic_string_wchar* __thiscall basic_string_wchar_replace_ch(basic_string_wchar *this,
3998 MSVCP_size_t off, MSVCP_size_t len, MSVCP_size_t count, wchar_t ch)
4000 wchar_t *ptr = basic_string_wchar_ptr(this);
4002 TRACE("%p %ld %ld %ld %c\n", this, off, len, count, ch);
4004 if(this->size < off)
4005 MSVCP__String_base_Xran();
4007 if(off+len > this->size)
4008 len = this->size-off;
4010 if(MSVCP_basic_string_wchar_npos-count <= this->size-len)
4011 MSVCP__String_base_Xlen();
4014 basic_string_wchar_grow(this, this->size-len+count, FALSE);
4015 ptr = basic_string_wchar_ptr(this);
4018 memmove(ptr+off+count, ptr+off+len, (this->size-off-len)*sizeof(wchar_t));
4019 MSVCP_char_traits_wchar_assignn(ptr+off, count, ch);
4020 basic_string_wchar_eos(this, this->size-len+count);
4025 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@000@Z */
4026 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@000@Z */
4027 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@000@Z */
4028 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@000@Z */
4029 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_iter_iter, 36)
4030 basic_string_wchar* __thiscall basic_string_wchar_replace_iter_iter(basic_string_wchar *this,
4031 String_iterator_wchar beg, String_iterator_wchar end,
4032 String_iterator_wchar res_beg, String_iterator_wchar res_end)
4034 String_iterator_wchar begin = { this, basic_string_wchar_ptr(this) };
4035 return basic_string_wchar_replace_cstr_len(this,
4036 MSVCP_basic_string_wchar_Pdif(beg, begin), MSVCP_basic_string_wchar_Pdif(end, beg),
4037 res_beg.pos, MSVCP_basic_string_wchar_Pdif(res_end, res_beg));
4040 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@0ABV12@@Z */
4041 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@0AEBV12@@Z */
4042 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@0ABV12@@Z */
4043 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@0AEBV12@@Z */
4044 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_iter_bstr, 24)
4045 basic_string_wchar* __thiscall basic_string_wchar_replace_iter_bstr(basic_string_wchar *this,
4046 String_iterator_wchar beg, String_iterator_wchar end, const basic_string_wchar *str)
4048 String_iterator_wchar begin = { this, basic_string_wchar_ptr(this) };
4049 return basic_string_wchar_replace(this, MSVCP_basic_string_wchar_Pdif(beg, begin),
4050 MSVCP_basic_string_wchar_Pdif(end, beg), str);
4053 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@0I_W@Z */
4054 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@0_K_W@Z */
4055 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@0IG@Z */
4056 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@0_KG@Z */
4057 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_iter_ch, 28)
4058 basic_string_wchar* __thiscall basic_string_wchar_replace_iter_ch(basic_string_wchar *this,
4059 String_iterator_wchar beg, String_iterator_wchar end, MSVCP_size_t count, wchar_t ch)
4061 String_iterator_wchar begin = { this, basic_string_wchar_ptr(this) };
4062 return basic_string_wchar_replace_ch(this, MSVCP_basic_string_wchar_Pdif(beg, begin),
4063 MSVCP_basic_string_wchar_Pdif(end, beg), count, ch);
4066 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@0PB_W1@Z */
4067 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@0PEB_W1@Z */
4068 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@0PBG1@Z */
4069 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@0PEBG1@Z */
4070 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_iter_ptr_ptr, 28)
4071 basic_string_wchar* __thiscall basic_string_wchar_replace_iter_ptr_ptr(basic_string_wchar *this,
4072 String_iterator_wchar beg, String_iterator_wchar end,
4073 const wchar_t *res_beg, const wchar_t *res_end)
4075 String_iterator_wchar begin = { this, basic_string_wchar_ptr(this) };
4076 return basic_string_wchar_replace_cstr_len(this, MSVCP_basic_string_wchar_Pdif(beg, begin),
4077 MSVCP_basic_string_wchar_Pdif(end, beg), res_beg, res_end-res_beg);
4080 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@0PB_W@Z */
4081 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@0PEB_W@Z */
4082 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@0PBG@Z */
4083 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@0PEBG@Z */
4084 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_iter_cstr, 24)
4085 basic_string_wchar* __thiscall basic_string_wchar_replace_iter_cstr(basic_string_wchar *this,
4086 String_iterator_wchar beg, String_iterator_wchar end, const wchar_t *str)
4088 String_iterator_wchar begin = { this, basic_string_wchar_ptr(this) };
4089 return basic_string_wchar_replace_cstr(this, MSVCP_basic_string_wchar_Pdif(beg, begin),
4090 MSVCP_basic_string_wchar_Pdif(end, beg), str);
4093 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@0PB_WI@Z */
4094 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@0PEB_W_K@Z */
4095 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@0PBGI@Z */
4096 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@0PEBG_K@Z */
4097 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_iter_cstr_len, 28)
4098 basic_string_wchar* __thiscall basic_string_wchar_replace_iter_cstr_len(basic_string_wchar *this,
4099 String_iterator_wchar beg, String_iterator_wchar end, const wchar_t *str, MSVCP_size_t len)
4101 String_iterator_wchar begin = { this, basic_string_wchar_ptr(this) };
4102 return basic_string_wchar_replace_cstr_len(this, MSVCP_basic_string_wchar_Pdif(beg, begin),
4103 MSVCP_basic_string_wchar_Pdif(end, beg), str, len);
4106 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IABV12@@Z */
4107 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_KAEBV12@@Z */
4108 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IABV12@@Z */
4109 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_KAEBV12@@Z */
4110 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert, 12)
4111 basic_string_wchar* __thiscall basic_string_wchar_insert(basic_string_wchar *this,
4112 MSVCP_size_t off, const basic_string_wchar *str)
4114 return basic_string_wchar_replace(this, off, 0, str);
4117 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IABV12@II@Z */
4118 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_KAEBV12@00@Z */
4119 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IABV12@II@Z */
4120 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_KAEBV12@00@Z */
4121 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_substr, 20)
4122 basic_string_wchar* __thiscall basic_string_wchar_insert_substr(
4123 basic_string_wchar *this, MSVCP_size_t off, const basic_string_wchar *str,
4124 MSVCP_size_t str_off, MSVCP_size_t str_count)
4126 return basic_string_wchar_replace_substr(this, off, 0, str, str_off, str_count);
4129 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IPB_W@Z */
4130 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_KPEB_W@Z */
4131 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IPBG@Z */
4132 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_KPEBG@Z */
4133 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_cstr, 12)
4134 basic_string_wchar* __thiscall basic_string_wchar_insert_cstr(
4135 basic_string_wchar *this, MSVCP_size_t off, const wchar_t *str)
4137 return basic_string_wchar_replace_cstr(this, off, 0, str);
4140 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IPB_WI@Z */
4141 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_KPEB_W0@Z */
4142 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IPBGI@Z */
4143 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_KPEBG0@Z */
4144 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_cstr_len, 16)
4145 basic_string_wchar* __thiscall basic_string_wchar_insert_cstr_len(basic_string_wchar *this,
4146 MSVCP_size_t off, const wchar_t *str, MSVCP_size_t str_len)
4148 return basic_string_wchar_replace_cstr_len(this, off, 0, str, str_len);
4151 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@II_W@Z */
4152 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0_W@Z */
4153 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IIG@Z */
4154 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K0G@Z */
4155 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_chn, 16)
4156 basic_string_wchar* __thiscall basic_string_wchar_insert_chn(basic_string_wchar *this,
4157 MSVCP_size_t off, MSVCP_size_t count, wchar_t ch)
4159 return basic_string_wchar_replace_ch(this, off, 0, count, ch);
4162 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXV?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@I_W@Z */
4163 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXV?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@_K_W@Z */
4164 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXV?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@IG@Z */
4165 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXV?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@_KG@Z */
4166 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_iter_chn, 20)
4167 void __thiscall basic_string_wchar_insert_iter_chn(basic_string_wchar *this,
4168 String_iterator_wchar where, MSVCP_size_t count, wchar_t ch)
4170 String_iterator_wchar iter = { this, basic_string_wchar_ptr(this) };
4171 MSVCP_size_t off = MSVCP_basic_string_wchar_Pdif(where, iter);
4173 basic_string_wchar_insert_chn(this, off, count, ch);
4176 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE?AV?$_String_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@_W@Z */
4177 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA?AV?$_String_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@_W@Z */
4178 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE?AV?$_String_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@G@Z */
4179 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA?AV?$_String_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@G@Z */
4180 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_iter_ch, 20)
4181 String_iterator_wchar* __thiscall basic_string_wchar_insert_iter_ch(basic_string_wchar *this,
4182 String_iterator_wchar *ret, String_iterator_wchar where, wchar_t ch)
4187 ret->pos = basic_string_wchar_ptr(this);
4188 off = MSVCP_basic_string_wchar_Pdif(where, *ret);
4190 basic_string_wchar_insert_chn(this, off, 1, ch);
4191 ret->pos = basic_string_wchar_ptr(this)+off;
4195 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE?AV?$_String_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@@Z */
4196 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA?AV?$_String_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@@Z */
4197 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE?AV?$_String_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@@Z */
4198 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA?AV?$_String_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@@Z */
4199 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_iter_null, 16)
4200 String_iterator_wchar* __thiscall basic_string_wchar_insert_iter_null(basic_string_wchar *this,
4201 String_iterator_wchar *ret, String_iterator_wchar where)
4203 return basic_string_wchar_insert_iter_ch(this, ret, where, 0);
4206 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXV?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@00@Z */
4207 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXV?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@00@Z */
4208 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXV?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@00@Z */
4209 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXV?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@00@Z */
4210 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_iter_beg_end, 28)
4211 void __thiscall basic_string_wchar_insert_iter_beg_end(basic_string_wchar *this,
4212 String_iterator_wchar where, String_iterator_wchar beg, String_iterator_wchar end)
4214 basic_string_wchar_replace_iter_iter(this, where, where, beg, end);
4217 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXV?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@PB_W1@Z */
4218 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXV?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@PEB_W1@Z */
4219 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXV?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@PBG1@Z */
4220 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXV?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@PEBG1@Z */
4221 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_iter_ptr_ptr, 20)
4222 void __thiscall basic_string_wchar_insert_iter_ptr_ptr(basic_string_wchar *this,
4223 String_iterator_wchar where, const wchar_t *beg, const wchar_t *end)
4225 basic_string_wchar_replace_iter_ptr_ptr(this, where, where, beg, end);
4228 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAA_WI@Z */
4229 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEA_W_K@Z */
4230 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAGI@Z */
4231 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAG_K@Z */
4232 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_operator_at, 8)
4233 wchar_t* __thiscall MSVCP_basic_string_wchar_operator_at(
4234 basic_string_wchar *this, MSVCP_size_t pos)
4236 TRACE("%p %lu\n", this, pos);
4238 assert(this->size >= pos);
4239 return basic_string_wchar_ptr(this)+pos;
4242 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEAB_WI@Z */
4243 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAAEB_W_K@Z */
4244 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEABGI@Z */
4245 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAAEBG_K@Z */
4246 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_const_operator_at, 8)
4247 const wchar_t* __thiscall MSVCP_basic_string_wchar_const_operator_at(
4248 const basic_string_wchar *this, MSVCP_size_t pos)
4250 TRACE("%p %lu\n", this, pos);
4252 assert(this->size >= pos);
4253 return basic_string_wchar_const_ptr(this)+pos;
4256 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAA_WU_Size_type_nosscl@01@@Z */
4257 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEA_WU_Size_type_nosscl@01@@Z */
4258 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAGU_Size_type_nosscl@01@@Z */
4259 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAGU_Size_type_nosscl@01@@Z */
4260 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_operator_at_noverify, 8)
4261 wchar_t* __thiscall MSVCP_basic_string_wchar_operator_at_noverify(
4262 basic_string_wchar *this, size_t_noverify pos)
4264 TRACE("%p %lu\n", this, pos.val);
4265 return basic_string_wchar_ptr(this)+pos.val;
4268 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEAB_WU_Size_type_nosscl@01@@Z */
4269 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAAEB_WU_Size_type_nosscl@01@@Z */
4270 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEABGU_Size_type_nosscl@01@@Z */
4271 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAAEBGU_Size_type_nosscl@01@@Z */
4272 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_operator_const_at_noverify, 8)
4273 const wchar_t* __thiscall MSVCP_basic_string_wchar_operator_const_at_noverify(
4274 const basic_string_wchar *this, size_t_noverify pos)
4276 TRACE("%p %lu\n", this, pos.val);
4277 return basic_string_wchar_const_ptr(this)+pos.val;
4280 /* ?at@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAA_WI@Z */
4281 /* ?at@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEA_W_K@Z */
4282 /* ?at@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAGI@Z */
4283 /* ?at@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAG_K@Z */
4284 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_at, 8)
4285 wchar_t* __thiscall MSVCP_basic_string_wchar_at(
4286 basic_string_wchar *this, MSVCP_size_t pos)
4288 TRACE("%p %lu\n", this, pos);
4290 if(this->size <= pos)
4291 MSVCP__String_base_Xran();
4293 return basic_string_wchar_ptr(this)+pos;
4296 /* ?at@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEAB_WI@Z */
4297 /* ?at@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAAEB_W_K@Z */
4298 /* ?at@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEABGI@Z */
4299 /* ?at@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAAEBG_K@Z */
4300 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_const_at, 8)
4301 const wchar_t* __thiscall MSVCP_basic_string_wchar_const_at(
4302 const basic_string_wchar *this, MSVCP_size_t pos)
4304 TRACE("%p %lu\n", this, pos);
4306 if(this->size <= pos)
4307 MSVCP__String_base_Xran();
4309 return basic_string_wchar_const_ptr(this)+pos;
4312 /* ?resize@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXI_W@Z */
4313 /* ?resize@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAX_K_W@Z */
4314 /* ?resize@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXIG@Z */
4315 /* ?resize@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAX_KG@Z */
4316 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_resize_ch, 12)
4317 void __thiscall MSVCP_basic_string_wchar_resize_ch(
4318 basic_string_wchar *this, MSVCP_size_t size, wchar_t ch)
4320 TRACE("%p %lu %c\n", this, size, ch);
4322 if(size <= this->size)
4323 MSVCP_basic_string_wchar_erase(this, size, this->size);
4325 MSVCP_basic_string_wchar_append_len_ch(this, size-this->size, ch);
4328 /* ?resize@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXI@Z */
4329 /* ?resize@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAX_K@Z */
4330 /* ?resize@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXI@Z */
4331 /* ?resize@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAX_K@Z */
4332 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_resize, 8)
4333 void __thiscall MSVCP_basic_string_wchar_resize(
4334 basic_string_wchar *this, MSVCP_size_t size)
4336 MSVCP_basic_string_wchar_resize_ch(this, size, '\0');
4339 /* ?clear@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
4340 /* ?clear@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
4341 /* ?clear@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
4342 /* ?clear@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
4343 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_clear, 4)
4344 void __thiscall MSVCP_basic_string_wchar_clear(basic_string_wchar *this)
4346 basic_string_wchar_eos(this, 0);
4349 /* ?begin@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE?AV?$_String_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ */
4350 /* ?begin@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA?AV?$_String_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ */
4351 /* ?begin@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE?AV?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ */
4352 /* ?begin@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA?AV?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ */
4353 /* ?begin@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE?AV?$_String_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@XZ */
4354 /* ?begin@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA?AV?$_String_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@XZ */
4355 /* ?begin@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBE?AV?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@XZ */
4356 /* ?begin@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA?AV?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@XZ */
4357 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_begin, 8)
4358 String_iterator_wchar* __thiscall MSVCP_basic_string_wchar_begin(
4359 basic_string_wchar *this, String_iterator_wchar *ret)
4361 TRACE("%p\n", this);
4364 ret->pos = basic_string_wchar_const_ptr(this);
4368 /* ?end@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE?AV?$_String_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ */
4369 /* ?end@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA?AV?$_String_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ */
4370 /* ?end@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE?AV?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ */
4371 /* ?end@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA?AV?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@2@XZ */
4372 /* ?end@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE?AV?$_String_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@XZ */
4373 /* ?end@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA?AV?$_String_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@XZ */
4374 /* ?end@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBE?AV?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@XZ */
4375 /* ?end@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA?AV?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@2@XZ */
4376 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_end, 8)
4377 String_iterator_wchar* __thiscall MSVCP_basic_string_wchar_end(
4378 basic_string_wchar *this, String_iterator_wchar *ret)
4380 TRACE("%p\n", this);
4383 ret->pos = basic_string_wchar_const_ptr(this)+this->size;
4387 /* ?rbegin@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE?AV?$reverse_iterator@V?$_String_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@2@XZ */
4388 /* ?rbegin@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA?AV?$reverse_iterator@V?$_String_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@2@XZ */
4389 /* ?rbegin@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE?AV?$reverse_iterator@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@2@XZ */
4390 /* ?rbegin@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA?AV?$reverse_iterator@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@2@XZ */
4391 /* ?rbegin@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE?AV?$reverse_iterator@V?$_String_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@@2@XZ */
4392 /* ?rbegin@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA?AV?$reverse_iterator@V?$_String_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@@2@XZ */
4393 /* ?rbegin@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBE?AV?$reverse_iterator@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@@2@XZ */
4394 /* ?rbegin@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA?AV?$reverse_iterator@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@@2@XZ */
4395 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_rbegin, 8)
4396 String_reverse_iterator_wchar* __thiscall MSVCP_basic_string_wchar_rbegin(
4397 basic_string_wchar *this, String_reverse_iterator_wchar *ret)
4399 TRACE("%p\n", this);
4402 ret->pos = basic_string_wchar_const_ptr(this)+this->size;
4406 /* ?rend@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE?AV?$reverse_iterator@V?$_String_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@2@XZ */
4407 /* ?rend@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA?AV?$reverse_iterator@V?$_String_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@2@XZ */
4408 /* ?rend@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE?AV?$reverse_iterator@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@2@XZ */
4409 /* ?rend@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA?AV?$reverse_iterator@V?$_String_const_iterator@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@2@XZ */
4410 /* ?rend@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE?AV?$reverse_iterator@V?$_String_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@@2@XZ */
4411 /* ?rend@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA?AV?$reverse_iterator@V?$_String_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@@2@XZ */
4412 /* ?rend@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBE?AV?$reverse_iterator@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@@2@XZ */
4413 /* ?rend@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA?AV?$reverse_iterator@V?$_String_const_iterator@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@@2@XZ */
4414 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_rend, 8)
4415 String_reverse_iterator_wchar* __thiscall MSVCP_basic_string_wchar_rend(
4416 basic_string_wchar *this, String_reverse_iterator_wchar *ret)
4418 TRACE("%p\n", this);
4421 ret->pos = basic_string_wchar_const_ptr(this);
4425 /* _String_val class */
4426 /* ??_F?$_String_val@DV?$allocator@D@std@@@std@@QAEXXZ */
4427 /* ??_F?$_String_val@DV?$allocator@D@std@@@std@@QEAAXXZ */
4428 /* ??_F?$_String_val@GV?$allocator@G@std@@@std@@QAEXXZ */
4429 /* ??_F?$_String_val@GV?$allocator@G@std@@@std@@QEAAXXZ */
4430 /* ??_F?$_String_val@_WV?$allocator@_W@std@@@std@@QAEXXZ */
4431 /* ??_F?$_String_val@_WV?$allocator@_W@std@@@std@@QEAAXXZ */
4432 DEFINE_THISCALL_WRAPPER(_String_val_ctor, 4)
4433 void* __thiscall _String_val_ctor(void *this)
4435 TRACE("%p\n", this);
4439 /* ??0?$_String_val@DV?$allocator@D@std@@@std@@IAE@V?$allocator@D@1@@Z */
4440 /* ??0?$_String_val@DV?$allocator@D@std@@@std@@IEAA@V?$allocator@D@1@@Z */
4441 /* ??0?$_String_val@GV?$allocator@G@std@@@std@@IAE@V?$allocator@G@1@@Z */
4442 /* ??0?$_String_val@GV?$allocator@G@std@@@std@@IEAA@V?$allocator@G@1@@Z */
4443 /* ??0?$_String_val@_WV?$allocator@_W@std@@@std@@IAE@V?$allocator@_W@1@@Z */
4444 /* ??0?$_String_val@_WV?$allocator@_W@std@@@std@@IEAA@V?$allocator@_W@1@@Z */
4445 /* ??0?$_String_val@DV?$allocator@D@std@@@std@@QAE@ABV01@@Z */
4446 /* ??0?$_String_val@DV?$allocator@D@std@@@std@@QEAA@AEBV01@@Z */
4447 /* ??0?$_String_val@GV?$allocator@G@std@@@std@@QAE@ABV01@@Z */
4448 /* ??0?$_String_val@GV?$allocator@G@std@@@std@@QEAA@AEBV01@@Z */
4449 /* ??0?$_String_val@_WV?$allocator@_W@std@@@std@@QAE@ABV01@@Z */
4450 /* ??0?$_String_val@_WV?$allocator@_W@std@@@std@@QEAA@AEBV01@@Z */
4451 /* ??4?$_String_val@DV?$allocator@D@std@@@std@@QAEAAV01@ABV01@@Z */
4452 /* ??4?$_String_val@DV?$allocator@D@std@@@std@@QEAAAEAV01@AEBV01@@Z */
4453 /* ??4?$_String_val@GV?$allocator@G@std@@@std@@QAEAAV01@ABV01@@Z */
4454 /* ??4?$_String_val@GV?$allocator@G@std@@@std@@QEAAAEAV01@AEBV01@@Z */
4455 /* ??4?$_String_val@_WV?$allocator@_W@std@@@std@@QAEAAV01@ABV01@@Z */
4456 /* ??4?$_String_val@_WV?$allocator@_W@std@@@std@@QEAAAEAV01@AEBV01@@Z */
4457 /* ??4?$_String_val@DV?$allocator@D@std@@@std@@QAEAAV01@ABV01@@Z */
4458 DEFINE_THISCALL_WRAPPER(_String_val_null_ctor, 8)
4459 void* __thiscall _String_val_null_ctor(void *this, const void *misc)
4461 TRACE("%p %p\n", this, misc);