vbscript: Added InStr tests.
[wine.git] / dlls / msvcp90 / string.c
blob189a0ccbd1d72ef95e138b407b763fd18ec1cd3f
1 /*
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
19 #include "config.h"
21 #include <stdarg.h>
23 #include "msvcp90.h"
24 #include "stdio.h"
25 #include "assert.h"
27 #include "windef.h"
28 #include "winbase.h"
29 #include "wine/debug.h"
30 WINE_DEFAULT_DEBUG_CHANNEL(msvcp90);
32 /* _String_iterator<char> and _String_const_iterator<char> class */
33 typedef struct {
34 basic_string_char *bstr;
35 const char *pos;
36 } String_iterator_char;
37 typedef String_iterator_char String_reverse_iterator_char;
39 typedef struct {
40 basic_string_wchar *bstr;
41 const wchar_t *pos;
42 } String_iterator_wchar;
43 typedef String_iterator_wchar String_reverse_iterator_wchar;
45 /* size_t_noverify structure */
46 typedef struct {
47 MSVCP_size_t val;
48 } size_t_noverify;
50 /* allocator class */
51 typedef struct {
52 char empty_struct;
53 } allocator;
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)
60 *ch = *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)
67 return *ch1 == *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)
74 return *ch1 < *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)
90 return strlen(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) {
99 if(dest && size)
100 dest[0] = '\0';
101 _invalid_parameter(NULL, NULL, NULL, 0, 0);
102 return dest;
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) {
130 if(dest && size)
131 dest[0] = '\0';
132 _invalid_parameter(NULL, NULL, NULL, 0, 0);
133 return dest;
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)
158 return (char)*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)
165 return (int)*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)
172 return *i1 == *i2;
175 /* ?eof@?$char_traits@D@std@@SAHXZ */
176 int CDECL MSVCP_char_traits_char_eof(void)
178 return EOF;
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)
195 *ch = *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)
202 return *ch1 == *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,
208 const wchar_t *ch2)
210 return *ch1 < *ch2;
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, sizeof(wchar_t[count]));
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) {
235 if(dest && size)
236 dest[0] = '\0';
237 _invalid_parameter(NULL, NULL, NULL, 0, 0);
238 return dest;
241 return memcpy(dest, src, sizeof(wchar_t[count]));
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)
257 MSVCP_size_t i=0;
259 for(i=0; i<range; i++)
260 if(str[i] == *c)
261 return str+i;
263 return NULL;
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) {
272 if(dest && size)
273 dest[0] = '\0';
274 _invalid_parameter(NULL, NULL, NULL, 0, 0);
275 return dest;
278 return memmove(dest, src, sizeof(WCHAR[count]));
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)
294 MSVCP_size_t i;
296 for(i=0; i<num; i++)
297 str[i] = c;
299 return str;
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)
306 return *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)
313 return *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)
321 return *i1 == *i2;
324 /* ?eof@?$char_traits@_W@std@@SAGXZ */
325 unsigned short CDECL MSVCP_char_traits_wchar_eof(void)
327 return WEOF;
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)
344 *ch = *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)
352 return *ch1 == *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)
360 return *ch1 < *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)
368 MSVCP_size_t i;
370 for(i=0; i<count; i++)
371 if(s1[i] != s2[i])
372 return (s1[i] < s2[i] ? -1 : 1);
374 return 0;
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)
381 MSVCP_size_t len;
383 for(len=0; str[len]; len++);
385 return 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)
393 if(size<count) {
394 _invalid_parameter(NULL, NULL, NULL, 0, 0);
395 return dest;
398 return memcpy(dest, src, sizeof(unsigned short[count]));
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)
414 MSVCP_size_t i;
416 for(i=0; i<range; i++)
417 if(str[i] == *c)
418 return str+i;
420 return NULL;
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)
428 if(size<count) {
429 _invalid_parameter(NULL, NULL, NULL, 0, 0);
430 return dest;
433 return memmove(dest, src, sizeof(unsigned short[count]));
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)
449 MSVCP_size_t i;
451 for(i=0; i<num; i++)
452 str[i] = c;
454 return str;
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)
461 return *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)
468 return *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,
474 unsigned short *i2)
476 return *i1 == *i2;
479 /* ?eof@?$char_traits@G@std@@SAGXZ */
480 unsigned short CDECL MSVCP_char_traits_short_eof(void)
482 return -1;
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);
493 /* _String_base */
494 /* ?_Xlen@_String_base@std@@SAXXZ */
495 void CDECL MSVCP__String_base_Xlen(void)
497 static const char msg[] = "string too long";
499 TRACE("\n");
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";
508 TRACE("\n");
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";
517 TRACE("\n");
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';
554 this->size = len;
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;
578 if(new_size > 0)
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;
604 char *ptr;
606 new_res |= 0xf;
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);
612 if(!ptr)
613 ptr = MSVCP_allocator_char_allocate(this->allocator, new_size+1);
614 else
615 new_size = new_res;
616 if(!ptr) {
617 ERR("Out of memory\n");
618 basic_string_char_tidy(this, TRUE, 0);
619 return FALSE;
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);
634 return (new_size>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))
646 return;
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);
658 return 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)
669 TRACE("%p\n", this);
670 return 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);
681 if(pos > this->size)
682 MSVCP__String_base_Xran();
684 if(len > this->size-pos)
685 len = this->size-pos;
687 if(len) {
688 MSVCP_char_traits_char__Move_s(basic_string_char_ptr(this)+pos,
689 this->res-pos, basic_string_char_ptr(this)+pos+len,
690 this->size-pos-len);
691 basic_string_char_eos(this, this->size-len);
694 return this;
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)
703 MSVCP_size_t off;
705 ret->bstr = this;
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));
711 ret->bstr = this;
712 ret->pos = basic_string_char_ptr(this)+off;
713 return ret;
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)
722 MSVCP_size_t off;
724 ret->bstr = this;
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);
730 ret->bstr = this;
731 ret->pos = basic_string_char_ptr(this)+off;
732 return ret;
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;
750 if(this == assign) {
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);
759 return this;
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);
791 return this;
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);
826 return this;
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);
865 if(this->size < 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);
873 return 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)
892 TRACE("%p\n", 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)
901 TRACE("%p\n", this);
902 return this->res;
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)
910 MSVCP_size_t len;
912 TRACE("%p %ld\n", this, size);
914 len = this->size;
915 if(len > size)
916 return;
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)
927 TRACE("%p\n", this);
929 basic_string_char_tidy(this, FALSE, 0);
930 return this;
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);
943 return this;
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);
956 return this;
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);
978 return this;
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);
1001 return this;
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);
1023 return this;
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);
1036 return this;
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);
1083 return this->size;
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)
1109 if(this != 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;
1121 str->size = size;
1122 str->res = 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);
1135 return ret;
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);
1161 return this;
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);
1197 return this;
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);
1246 return this;
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);
1269 return ret;
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);
1281 return ret;
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);
1293 return ret;
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);
1305 return ret;
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);
1317 return ret;
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)
1327 int ans;
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);
1339 if(ans)
1340 return ans;
1342 if(num > count)
1343 ans = 1;
1344 else if(num < count)
1345 ans = -1;
1346 return ans;
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)
1564 return pos;
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);
1569 if(!p)
1570 break;
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);
1618 if(len==0)
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-1; 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_find_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)
1774 off = this->size-1;
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))
1779 return p-beg;
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)
1826 off = this->size-1;
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))
1831 return p-beg;
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;
1961 if(len < str_len)
1962 basic_string_char_grow(this, this->size-len+str_len, FALSE);
1964 if(inside_pos == -1) {
1965 memmove(ptr+off+str_len, ptr+off+len, (this->size-off-len)*sizeof(char));
1966 memcpy(ptr+off, str, str_len*sizeof(char));
1967 } else if(len >= str_len) {
1968 memmove(ptr+off, ptr+inside_pos, str_len*sizeof(char));
1969 memmove(ptr+off+str_len, ptr+off+len, (this->size-off-len)*sizeof(char));
1970 } else {
1971 MSVCP_size_t size;
1973 memmove(ptr+off+str_len, ptr+off+len, (this->size-off-len)*sizeof(char));
1975 if(inside_pos < off+len) {
1976 size = off+len-inside_pos;
1977 if(size > str_len)
1978 size = str_len;
1979 memmove(ptr+off, ptr+inside_pos, size*sizeof(char));
1980 } else {
1981 size = 0;
1984 if(str_len > size)
1985 memmove(ptr+off+size, ptr+off+str_len, (str_len-size)*sizeof(char));
1988 basic_string_char_eos(this, this->size-len+str_len);
1989 return this;
1992 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IIPBD@Z */
1993 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0PEBD@Z */
1994 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_cstr, 16)
1995 basic_string_char* __thiscall basic_string_char_replace_cstr(basic_string_char *this,
1996 MSVCP_size_t off, MSVCP_size_t len, const char *str)
1998 return basic_string_char_replace_cstr_len(this, off, len, str,
1999 MSVCP_char_traits_char_length(str));
2002 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IIABV12@II@Z */
2003 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0AEBV12@00@Z */
2004 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_substr, 24)
2005 basic_string_char* __thiscall basic_string_char_replace_substr(basic_string_char *this, MSVCP_size_t off,
2006 MSVCP_size_t len, const basic_string_char *str, MSVCP_size_t str_off, MSVCP_size_t str_len)
2008 if(str->size < str_off)
2009 MSVCP__String_base_Xran();
2011 if(str_off+str_len > str->size)
2012 str_len = str->size-str_off;
2014 return basic_string_char_replace_cstr_len(this, off, len,
2015 basic_string_char_const_ptr(str)+str_off, str_len);
2018 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IIABV12@@Z */
2019 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0AEBV12@@Z */
2020 DEFINE_THISCALL_WRAPPER(basic_string_char_replace, 16)
2021 basic_string_char* __thiscall basic_string_char_replace(basic_string_char *this,
2022 MSVCP_size_t off, MSVCP_size_t len, const basic_string_char *str)
2024 return basic_string_char_replace_cstr_len(this, off, len,
2025 basic_string_char_const_ptr(str), str->size);
2028 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IIID@Z */
2029 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K00D@Z */
2030 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_ch, 20)
2031 basic_string_char* __thiscall basic_string_char_replace_ch(basic_string_char *this,
2032 MSVCP_size_t off, MSVCP_size_t len, MSVCP_size_t count, char ch)
2034 char *ptr = basic_string_char_ptr(this);
2036 TRACE("%p %ld %ld %ld %c\n", this, off, len, count, ch);
2038 if(this->size < off)
2039 MSVCP__String_base_Xran();
2041 if(off+len > this->size)
2042 len = this->size-off;
2044 if(MSVCP_basic_string_char_npos-count <= this->size-len)
2045 MSVCP__String_base_Xlen();
2047 if(len < count)
2048 basic_string_char_grow(this, this->size-len+count, FALSE);
2050 memmove(ptr+off+count, ptr+off+len, (this->size-off-len)*sizeof(char));
2051 MSVCP_char_traits_char_assignn(ptr+off, count, ch);
2052 basic_string_char_eos(this, this->size-len+count);
2054 return this;
2057 /* ?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 */
2058 /* ?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 */
2059 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_iter_iter, 36)
2060 basic_string_char* __thiscall basic_string_char_replace_iter_iter(basic_string_char *this,
2061 String_iterator_char beg, String_iterator_char end,
2062 String_iterator_char res_beg, String_iterator_char res_end)
2064 String_iterator_char begin = { this, basic_string_char_ptr(this) };
2065 return basic_string_char_replace_cstr_len(this,
2066 MSVCP_basic_string_char_Pdif(beg, begin), MSVCP_basic_string_char_Pdif(end, beg),
2067 res_beg.pos, MSVCP_basic_string_char_Pdif(res_end, res_beg));
2070 /* ?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 */
2071 /* ?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 */
2072 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_iter_bstr, 24)
2073 basic_string_char* __thiscall basic_string_char_replace_iter_bstr(basic_string_char *this,
2074 String_iterator_char beg, String_iterator_char end, const basic_string_char *str)
2076 String_iterator_char begin = { this, basic_string_char_ptr(this) };
2077 return basic_string_char_replace(this, MSVCP_basic_string_char_Pdif(beg, begin),
2078 MSVCP_basic_string_char_Pdif(end, begin), str);
2081 /* ?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 */
2082 /* ?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 */
2083 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_iter_ch, 28)
2084 basic_string_char* __thiscall basic_string_char_replace_iter_ch(basic_string_char *this,
2085 String_iterator_char beg, String_iterator_char end, MSVCP_size_t count, char ch)
2087 String_iterator_char begin = { this, basic_string_char_ptr(this) };
2088 return basic_string_char_replace_ch(this, MSVCP_basic_string_char_Pdif(beg, begin),
2089 MSVCP_basic_string_char_Pdif(end, begin), count, ch);
2092 /* ?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 */
2093 /* ?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 */
2094 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_iter_ptr_ptr, 28)
2095 basic_string_char* __thiscall basic_string_char_replace_iter_ptr_ptr(basic_string_char *this,
2096 String_iterator_char beg, String_iterator_char end,
2097 const char *res_beg, const char *res_end)
2099 String_iterator_char begin = { this, basic_string_char_ptr(this) };
2100 return basic_string_char_replace_cstr_len(this, MSVCP_basic_string_char_Pdif(beg, begin),
2101 MSVCP_basic_string_char_Pdif(end, begin), res_beg, res_end-res_beg);
2104 /* ?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 */
2105 /* ?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 */
2106 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_iter_cstr, 24)
2107 basic_string_char* __thiscall basic_string_char_replace_iter_cstr(basic_string_char *this,
2108 String_iterator_char beg, String_iterator_char end, const char *str)
2110 String_iterator_char begin = { this, basic_string_char_ptr(this) };
2111 return basic_string_char_replace_cstr(this, MSVCP_basic_string_char_Pdif(beg, begin),
2112 MSVCP_basic_string_char_Pdif(end, begin), str);
2115 /* ?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 */
2116 /* ?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 */
2117 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_iter_cstr_len, 28)
2118 basic_string_char* __thiscall basic_string_char_replace_iter_cstr_len(basic_string_char *this,
2119 String_iterator_char beg, String_iterator_char end, const char *str, MSVCP_size_t len)
2121 String_iterator_char begin = { this, basic_string_char_ptr(this) };
2122 return basic_string_char_replace_cstr_len(this, MSVCP_basic_string_char_Pdif(beg, begin),
2123 MSVCP_basic_string_char_Pdif(end, begin), str, len);
2126 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IABV12@@Z */
2127 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_KAEBV12@@Z */
2128 DEFINE_THISCALL_WRAPPER(basic_string_char_insert, 12)
2129 basic_string_char* __thiscall basic_string_char_insert(basic_string_char *this,
2130 MSVCP_size_t off, const basic_string_char *str)
2132 return basic_string_char_replace(this, off, 0, str);
2135 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IABV12@II@Z */
2136 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_KAEBV12@00@Z */
2137 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_substr, 20)
2138 basic_string_char* __thiscall basic_string_char_insert_substr(
2139 basic_string_char *this, MSVCP_size_t off, const basic_string_char *str,
2140 MSVCP_size_t str_off, MSVCP_size_t str_count)
2142 return basic_string_char_replace_substr(this, off, 0, str, str_off, str_count);
2145 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IPBD@Z */
2146 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_KPEBD@Z */
2147 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_cstr, 12)
2148 basic_string_char* __thiscall basic_string_char_insert_cstr(
2149 basic_string_char *this, MSVCP_size_t off, const char *str)
2151 return basic_string_char_replace_cstr(this, off, 0, str);
2154 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IPBDI@Z */
2155 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_KPEBD0@Z */
2156 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_cstr_len, 16)
2157 basic_string_char* __thiscall basic_string_char_insert_cstr_len(basic_string_char *this,
2158 MSVCP_size_t off, const char *str, MSVCP_size_t str_len)
2160 return basic_string_char_replace_cstr_len(this, off, 0, str, str_len);
2163 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IID@Z */
2164 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0D@Z */
2165 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_chn, 16)
2166 basic_string_char* __thiscall basic_string_char_insert_chn(basic_string_char *this,
2167 MSVCP_size_t off, MSVCP_size_t count, char ch)
2169 return basic_string_char_replace_ch(this, off, 0, count, ch);
2172 /* ?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 */
2173 /* ?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 */
2174 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_iter_chn, 20)
2175 void __thiscall basic_string_char_insert_iter_chn(basic_string_char *this,
2176 String_iterator_char where, MSVCP_size_t count, char ch)
2178 String_iterator_char iter = { this, basic_string_char_ptr(this) };
2179 MSVCP_size_t off = MSVCP_basic_string_char_Pdif(where, iter);
2181 basic_string_char_insert_chn(this, off, count, ch);
2184 /* ?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 */
2185 /* ?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 */
2186 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_iter_ch, 20)
2187 String_iterator_char* __thiscall basic_string_char_insert_iter_ch(basic_string_char *this,
2188 String_iterator_char *ret, String_iterator_char where, char ch)
2190 MSVCP_size_t off;
2192 ret->bstr = this;
2193 ret->pos = basic_string_char_ptr(this);
2194 off = MSVCP_basic_string_char_Pdif(where, *ret);
2196 basic_string_char_insert_chn(this, off, 1, ch);
2197 ret->pos = basic_string_char_ptr(this)+off;
2198 return ret;
2201 /* ?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 */
2202 /* ?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 */
2203 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_iter_null, 16)
2204 String_iterator_char* __thiscall basic_string_char_insert_iter_null(basic_string_char *this,
2205 String_iterator_char *ret, String_iterator_char where)
2207 return basic_string_char_insert_iter_ch(this, ret, where, 0);
2210 /* ?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 */
2211 /* ?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 */
2212 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_iter_beg_end, 28)
2213 void __thiscall basic_string_char_insert_iter_beg_end(basic_string_char *this,
2214 String_iterator_char where, String_iterator_char beg, String_iterator_char end)
2216 basic_string_char_replace_iter_iter(this, where, where, beg, end);
2219 /* ?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 */
2220 /* ?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 */
2221 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_iter_ptr_ptr, 20)
2222 void __thiscall basic_string_char_insert_iter_ptr_ptr(basic_string_char *this,
2223 String_iterator_char where, const char *beg, const char *end)
2225 basic_string_char_replace_iter_ptr_ptr(this, where, where, beg, end);
2228 /* ?resize@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXID@Z */
2229 /* ?resize@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAX_KD@Z */
2230 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_resize_ch, 12)
2231 void __thiscall MSVCP_basic_string_char_resize_ch(
2232 basic_string_char *this, MSVCP_size_t size, char ch)
2234 TRACE("%p %lu %c\n", this, size, ch);
2236 if(size <= this->size)
2237 MSVCP_basic_string_char_erase(this, size, this->size);
2238 else
2239 MSVCP_basic_string_char_append_len_ch(this, size-this->size, ch);
2242 /* ?resize@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXI@Z */
2243 /* ?resize@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAX_K@Z */
2244 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_resize, 8)
2245 void __thiscall MSVCP_basic_string_char_resize(
2246 basic_string_char *this, MSVCP_size_t size)
2248 MSVCP_basic_string_char_resize_ch(this, size, '\0');
2251 /* ?clear@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
2252 /* ?clear@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
2253 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_clear, 4)
2254 void __thiscall MSVCP_basic_string_char_clear(basic_string_char *this)
2256 basic_string_char_eos(this, 0);
2259 /* ?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 */
2260 /* ?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 */
2261 /* ?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 */
2262 /* ?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 */
2263 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_begin, 8)
2264 String_iterator_char* __thiscall MSVCP_basic_string_char_begin(
2265 basic_string_char *this, String_iterator_char *ret)
2267 TRACE("%p\n", this);
2269 ret->bstr = this;
2270 ret->pos = basic_string_char_const_ptr(this);
2271 return ret;
2274 /* ?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 */
2275 /* ?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 */
2276 /* ?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 */
2277 /* ?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 */
2278 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_end, 8)
2279 String_iterator_char* __thiscall MSVCP_basic_string_char_end(
2280 basic_string_char *this, String_iterator_char *ret)
2282 TRACE("%p\n", this);
2284 ret->bstr = this;
2285 ret->pos = basic_string_char_const_ptr(this)+this->size;
2286 return ret;
2289 /* ?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 */
2290 /* ?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 */
2291 /* ?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 */
2292 /* ?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 */
2293 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_rbegin, 8)
2294 String_reverse_iterator_char* __thiscall MSVCP_basic_string_char_rbegin(
2295 basic_string_char *this, String_reverse_iterator_char *ret)
2297 TRACE("%p\n", this);
2299 ret->bstr = this;
2300 ret->pos = basic_string_char_const_ptr(this)+this->size;
2301 return ret;
2304 /* ?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 */
2305 /* ?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 */
2306 /* ?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 */
2307 /* ?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 */
2308 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_rend, 8)
2309 String_reverse_iterator_char* __thiscall MSVCP_basic_string_char_rend(
2310 basic_string_char *this, String_reverse_iterator_char *ret)
2312 TRACE("%p\n", this);
2314 ret->bstr = this;
2315 ret->pos = basic_string_char_const_ptr(this);
2316 return ret;
2319 /* basic_string<wchar_t, char_traits<wchar_t>, allocator<wchar_t>> */
2320 /* basic_string<unsigned short, char_traits<unsigned short>, allocator<unsigned short>> */
2321 /* ?npos@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@2IB */
2322 /* ?npos@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@2_KB */
2323 /* ?npos@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@2IB */
2324 /* ?npos@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@2_KB */
2325 const MSVCP_size_t MSVCP_basic_string_wchar_npos = -1;
2327 /* ?_Myptr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEPA_WXZ */
2328 /* ?_Myptr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAPEA_WXZ */
2329 /* ?_Myptr@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEPAGXZ */
2330 /* ?_Myptr@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAPEAGXZ */
2331 DEFINE_THISCALL_WRAPPER(basic_string_wchar_ptr, 4)
2332 wchar_t* __thiscall basic_string_wchar_ptr(basic_string_wchar *this)
2334 if(this->res == BUF_SIZE_WCHAR-1)
2335 return this->data.buf;
2336 return this->data.ptr;
2339 /* ?_Myptr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IBEPB_WXZ */
2340 /* ?_Myptr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEBAPEB_WXZ */
2341 /* ?_Myptr@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IBEPBGXZ */
2342 /* ?_Myptr@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEBAPEBGXZ */
2343 DEFINE_THISCALL_WRAPPER(basic_string_wchar_const_ptr, 4)
2344 const wchar_t* __thiscall basic_string_wchar_const_ptr(const basic_string_wchar *this)
2346 if(this->res == BUF_SIZE_WCHAR-1)
2347 return this->data.buf;
2348 return this->data.ptr;
2351 /* ?_Eos@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXI@Z */
2352 /* ?_Eos@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAX_K@Z */
2353 /* ?_Eos@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEXI@Z */
2354 /* ?_Eos@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAX_K@Z */
2355 DEFINE_THISCALL_WRAPPER(basic_string_wchar_eos, 8)
2356 void __thiscall basic_string_wchar_eos(basic_string_wchar *this, MSVCP_size_t len)
2358 static const wchar_t nullbyte_w = '\0';
2360 this->size = len;
2361 MSVCP_char_traits_wchar_assign(basic_string_wchar_ptr(this)+len, &nullbyte_w);
2364 /* ?_Inside@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAE_NPB_W@Z */
2365 /* ?_Inside@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAA_NPEB_W@Z */
2366 /* ?_Inside@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAE_NPBG@Z */
2367 /* ?_Inside@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAA_NPEBG@Z */
2368 DEFINE_THISCALL_WRAPPER(basic_string_wchar_inside, 8)
2369 MSVCP_bool __thiscall basic_string_wchar_inside(
2370 basic_string_wchar *this, const wchar_t *ptr)
2372 wchar_t *cstr = basic_string_wchar_ptr(this);
2374 return (ptr<cstr || ptr>=cstr+this->size) ? FALSE : TRUE;
2377 /* ?_Tidy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEX_NI@Z */
2378 /* ?_Tidy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAX_N_K@Z */
2379 /* ?_Tidy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEX_NI@Z */
2380 /* ?_Tidy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAX_N_K@Z */
2381 DEFINE_THISCALL_WRAPPER(basic_string_wchar_tidy, 12)
2382 void __thiscall basic_string_wchar_tidy(basic_string_wchar *this,
2383 MSVCP_bool built, MSVCP_size_t new_size)
2385 if(built && BUF_SIZE_WCHAR<=this->res) {
2386 wchar_t *ptr = this->data.ptr;
2388 if(new_size > 0)
2389 MSVCP_char_traits_wchar__Copy_s(this->data.buf, BUF_SIZE_WCHAR, ptr, new_size);
2390 MSVCP_allocator_wchar_deallocate(this->allocator, ptr, this->res+1);
2393 this->res = BUF_SIZE_WCHAR-1;
2394 basic_string_wchar_eos(this, new_size);
2397 /* ?_Grow@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAE_NI_N@Z */
2398 /* ?_Grow@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAA_N_K_N@Z */
2399 /* ?_Grow@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAE_NI_N@Z */
2400 /* ?_Grow@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAA_N_K_N@Z */
2401 DEFINE_THISCALL_WRAPPER(basic_string_wchar_grow, 12)
2402 MSVCP_bool __thiscall basic_string_wchar_grow(
2403 basic_string_wchar *this, MSVCP_size_t new_size, MSVCP_bool trim)
2405 if(this->res < new_size) {
2406 MSVCP_size_t new_res = new_size, len = this->size;
2407 wchar_t *ptr;
2409 new_res |= 0xf;
2411 if(new_res/3 < this->res/2)
2412 new_res = this->res + this->res/2;
2414 ptr = MSVCP_allocator_wchar_allocate(this->allocator, new_res+1);
2415 if(!ptr)
2416 ptr = MSVCP_allocator_wchar_allocate(this->allocator, new_size+1);
2417 else
2418 new_size = new_res;
2419 if(!ptr) {
2420 ERR("Out of memory\n");
2421 basic_string_wchar_tidy(this, TRUE, 0);
2422 return FALSE;
2425 MSVCP_char_traits_wchar__Copy_s(ptr, new_size,
2426 basic_string_wchar_ptr(this), this->size);
2427 basic_string_wchar_tidy(this, TRUE, 0);
2428 this->data.ptr = ptr;
2429 this->res = new_size;
2430 basic_string_wchar_eos(this, len);
2431 } else if(trim && new_size < BUF_SIZE_WCHAR)
2432 basic_string_wchar_tidy(this, TRUE,
2433 new_size<this->size ? new_size : this->size);
2434 else if(new_size == 0)
2435 basic_string_wchar_eos(this, 0);
2437 return (new_size>0);
2440 /* ?_Copy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXII@Z */
2441 /* ?_Copy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAX_K0@Z */
2442 /* ?_Copy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEXII@Z */
2443 /* ?_Copy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAX_K0@Z */
2444 DEFINE_THISCALL_WRAPPER(basic_string_wchar__Copy, 12)
2445 void __thiscall basic_string_wchar__Copy(basic_string_wchar *this,
2446 MSVCP_size_t new_size, MSVCP_size_t copy_len)
2448 TRACE("%p %lu %lu\n", this, new_size, copy_len);
2450 if(!basic_string_wchar_grow(this, new_size, FALSE))
2451 return;
2452 basic_string_wchar_eos(this, copy_len);
2455 /* ?_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 */
2456 /* ?_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 */
2457 /* ?_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 */
2458 /* ?_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 */
2459 MSVCP_size_t __cdecl MSVCP_basic_string_wchar_Pdif(String_iterator_wchar i1, String_iterator_wchar i2)
2461 TRACE("(%p %p) (%p %p)\n", i1.bstr, i1.pos, i2.bstr, i2.pos);
2463 if((!i1.bstr && i1.pos) || i1.bstr!=i2.bstr) {
2464 _invalid_parameter(NULL, NULL, NULL, 0, 0);
2465 return 0;
2468 return !i1.pos ? 0 : i1.pos-i2.pos;
2471 /* ?get_allocator@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE?AV?$allocator@_W@2@XZ */
2472 /* ?get_allocator@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA?AV?$allocator@_W@2@XZ */
2473 /* ?get_allocator@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBE?AV?$allocator@G@2@XZ */
2474 /* ?get_allocator@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA?AV?$allocator@G@2@XZ */
2475 DEFINE_THISCALL_WRAPPER(basic_string_wchar_get_allocator, 4)
2476 allocator __thiscall basic_string_wchar_get_allocator(const basic_string_wchar *this)
2478 allocator ret = {0};
2479 TRACE("%p\n", this);
2480 return ret;
2483 /* ?erase@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@II@Z */
2484 /* ?erase@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0@Z */
2485 /* ?erase@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@II@Z */
2486 /* ?erase@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K0@Z */
2487 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_erase, 12)
2488 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_erase(
2489 basic_string_wchar *this, MSVCP_size_t pos, MSVCP_size_t len)
2491 TRACE("%p %lu %lu\n", this, pos, len);
2493 if(pos > this->size)
2494 MSVCP__String_base_Xran();
2496 if(len > this->size-pos)
2497 len = this->size-pos;
2499 if(len) {
2500 MSVCP_char_traits_wchar__Move_s(basic_string_wchar_ptr(this)+pos,
2501 this->res-pos, basic_string_wchar_ptr(this)+pos+len,
2502 this->size-pos-len);
2503 basic_string_wchar_eos(this, this->size-len);
2506 return this;
2509 /* ?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 */
2510 /* ?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 */
2511 /* ?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 */
2512 /* ?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 */
2513 DEFINE_THISCALL_WRAPPER(basic_string_wchar_erase_iter_range, 24)
2514 String_iterator_wchar* __thiscall basic_string_wchar_erase_iter_range(basic_string_wchar *this,
2515 String_iterator_wchar *ret, String_iterator_wchar beg, String_iterator_wchar end)
2517 MSVCP_size_t off;
2519 ret->bstr = this;
2520 ret->pos = basic_string_wchar_ptr(this);
2521 off = MSVCP_basic_string_wchar_Pdif(beg, *ret);
2523 MSVCP_basic_string_wchar_erase(this, off, MSVCP_basic_string_wchar_Pdif(end, beg));
2525 ret->bstr = this;
2526 ret->pos = basic_string_wchar_ptr(this)+off;
2527 return ret;
2530 /* ?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 */
2531 /* ?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 */
2532 /* ?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 */
2533 /* ?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 */
2534 DEFINE_THISCALL_WRAPPER(basic_string_wchar_erase_iter, 16)
2535 String_iterator_wchar* __thiscall basic_string_wchar_erase_iter(basic_string_wchar *this,
2536 String_iterator_wchar *ret, String_iterator_wchar pos)
2538 MSVCP_size_t off;
2540 ret->bstr = this;
2541 ret->pos = basic_string_wchar_ptr(this);
2542 off = MSVCP_basic_string_wchar_Pdif(pos, *ret);
2544 MSVCP_basic_string_wchar_erase(this, off, 1);
2546 ret->bstr = this;
2547 ret->pos = basic_string_wchar_ptr(this)+off;
2548 return ret;
2551 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@ABV12@II@Z */
2552 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@AEBV12@_K1@Z */
2553 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@ABV12@II@Z */
2554 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@AEBV12@_K1@Z */
2555 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_substr, 16)
2556 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_assign_substr(
2557 basic_string_wchar *this, const basic_string_wchar *assign,
2558 MSVCP_size_t pos, MSVCP_size_t len)
2560 TRACE("%p %p %lu %lu\n", this, assign, pos, len);
2562 if(assign->size < pos)
2563 MSVCP__String_base_Xran();
2565 if(len > assign->size-pos)
2566 len = assign->size-pos;
2568 if(this == assign) {
2569 MSVCP_basic_string_wchar_erase(this, pos+len, MSVCP_basic_string_wchar_npos);
2570 MSVCP_basic_string_wchar_erase(this, 0, pos);
2571 } else if(basic_string_wchar_grow(this, len, FALSE)) {
2572 MSVCP_char_traits_wchar__Copy_s(basic_string_wchar_ptr(this),
2573 this->res, basic_string_wchar_const_ptr(assign)+pos, len);
2574 basic_string_wchar_eos(this, len);
2577 return this;
2580 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@ABV12@@Z */
2581 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@AEBV12@@Z */
2582 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@ABV01@@Z */
2583 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@AEBV01@@Z */
2584 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@ABV12@@Z */
2585 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@AEBV12@@Z */
2586 /* ??4?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV01@ABV01@@Z */
2587 /* ??4?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV01@AEBV01@@Z */
2588 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign, 8)
2589 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_assign(
2590 basic_string_wchar *this, const basic_string_wchar *assign)
2592 return MSVCP_basic_string_wchar_assign_substr(this, assign,
2593 0, MSVCP_basic_string_wchar_npos);
2596 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_WI@Z */
2597 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W_K@Z */
2598 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@PBGI@Z */
2599 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@PEBG_K@Z */
2600 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_cstr_len, 12)
2601 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_assign_cstr_len(
2602 basic_string_wchar *this, const wchar_t *str, MSVCP_size_t len)
2604 TRACE("%p %s %lu\n", this, debugstr_w(str), len);
2606 if(basic_string_wchar_inside(this, str))
2607 return MSVCP_basic_string_wchar_assign_substr(this, this,
2608 str-basic_string_wchar_ptr(this), len);
2609 else if(basic_string_wchar_grow(this, len, FALSE)) {
2610 MSVCP_char_traits_wchar__Copy_s(basic_string_wchar_ptr(this),
2611 this->res, str, len);
2612 basic_string_wchar_eos(this, len);
2615 return this;
2618 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@_W@Z */
2619 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@_W@Z */
2620 /* ??4?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV01@G@Z */
2621 /* ??4?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV01@G@Z */
2622 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_ch, 8)
2623 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_assign_ch(
2624 basic_string_wchar *this, wchar_t ch)
2626 return MSVCP_basic_string_wchar_assign_cstr_len(this, &ch, 1);
2629 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_W@Z */
2630 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W@Z */
2631 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@PB_W@Z */
2632 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@PEB_W@Z */
2633 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@PBG@Z */
2634 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@PEBG@Z */
2635 /* ??4?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV01@PBG@Z */
2636 /* ??4?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV01@PEBG@Z */
2637 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_cstr, 8)
2638 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_assign_cstr(
2639 basic_string_wchar *this, const wchar_t *str)
2641 return MSVCP_basic_string_wchar_assign_cstr_len(this, str,
2642 MSVCP_char_traits_wchar_length(str));
2645 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@I_W@Z */
2646 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K_W@Z */
2647 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IG@Z */
2648 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_KG@Z */
2649 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assignn, 12)
2650 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_assignn(
2651 basic_string_wchar *this, MSVCP_size_t count, wchar_t ch)
2653 TRACE("%p %ld %c\n", this, count, ch);
2655 basic_string_wchar_grow(this, count, FALSE);
2656 MSVCP_char_traits_wchar_assignn(basic_string_wchar_ptr(this), count, ch);
2657 basic_string_wchar_eos(this, count);
2658 return this;
2661 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_W0@Z */
2662 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W0@Z */
2663 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@PBG0@Z */
2664 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@PEBG0@Z */
2665 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_ptr_ptr, 12)
2666 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_assign_ptr_ptr(
2667 basic_string_wchar *this, const wchar_t *first, const wchar_t *last)
2669 return MSVCP_basic_string_wchar_assign_cstr_len(this, first, last-first);
2672 /* ?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 */
2673 /* ?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 */
2674 /* ?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 */
2675 /* ?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 */
2676 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_iter, 20)
2677 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_assign_iter(basic_string_wchar *this,
2678 String_iterator_wchar beg, String_iterator_wchar end)
2680 return MSVCP_basic_string_wchar_assign_ptr_ptr(this, beg.pos, end.pos+1);
2683 /* ?_Chassign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXII_W@Z */
2684 /* ?_Chassign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAX_K0_W@Z */
2685 /* ?_Chassign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEXIIG@Z */
2686 /* ?_Chassign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAX_K0G@Z */
2687 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_Chassign, 16)
2688 void __thiscall MSVCP_basic_string_wchar_Chassign(basic_string_wchar *this,
2689 MSVCP_size_t off, MSVCP_size_t count, wchar_t ch)
2691 TRACE("%p %lu %lu %c\n", this, off, count, ch);
2692 MSVCP_char_traits_wchar_assignn(basic_string_wchar_ptr(this)+off, count, ch);
2695 /* ?_Copy_s@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPA_WIII@Z */
2696 /* ?_Copy_s@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEA_W_K11@Z */
2697 /* ?_Copy_s@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPAGIII@Z */
2698 /* ?_Copy_s@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEAG_K11@Z */
2699 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_Copy_s, 20)
2700 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_Copy_s(const basic_string_wchar *this,
2701 wchar_t *dest, MSVCP_size_t size, MSVCP_size_t count, MSVCP_size_t off)
2703 TRACE("%p %p %lu %lu %lu\n", this, dest, size, count, off);
2705 if(this->size < off)
2706 MSVCP__String_base_Xran();
2708 if(count > this->size-off)
2709 count = this->size-off;
2711 MSVCP_char_traits_wchar__Copy_s(dest, size,
2712 basic_string_wchar_const_ptr(this)+off, count);
2713 return count;
2716 /* ?copy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPA_WII@Z */
2717 /* ?copy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEA_W_K1@Z */
2718 /* ?copy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPAGII@Z */
2719 /* ?copy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEAG_K1@Z */
2720 DEFINE_THISCALL_WRAPPER(basic_string_wchar_copy, 16)
2721 MSVCP_size_t __thiscall basic_string_wchar_copy(const basic_string_wchar *this,
2722 wchar_t *dest, MSVCP_size_t count, MSVCP_size_t off)
2724 return MSVCP_basic_string_wchar_Copy_s(this, dest, count, count, off);
2727 /* ?c_str@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEPB_WXZ */
2728 /* ?c_str@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAPEB_WXZ */
2729 /* ?data@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEPB_WXZ */
2730 /* ?data@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAPEB_WXZ */
2731 /* ?c_str@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEPBGXZ */
2732 /* ?c_str@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAPEBGXZ */
2733 /* ?data@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEPBGXZ */
2734 /* ?data@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAPEBGXZ */
2735 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_c_str, 4)
2736 const wchar_t* __thiscall MSVCP_basic_string_wchar_c_str(const basic_string_wchar *this)
2738 TRACE("%p\n", this);
2739 return basic_string_wchar_const_ptr(this);
2742 /* ?capacity@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIXZ */
2743 /* ?capacity@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KXZ */
2744 /* ?capacity@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIXZ */
2745 /* ?capacity@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KXZ */
2746 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_capacity, 4)
2747 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_capacity(basic_string_wchar *this)
2749 TRACE("%p\n", this);
2750 return this->res;
2753 /* ?reserve@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXI@Z */
2754 /* ?reserve@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAX_K@Z */
2755 /* ?reserve@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXI@Z */
2756 /* ?reserve@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAX_K@Z */
2757 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_reserve, 8)
2758 void __thiscall MSVCP_basic_string_wchar_reserve(basic_string_wchar *this, MSVCP_size_t size)
2760 MSVCP_size_t len;
2762 TRACE("%p %ld\n", this, size);
2764 len = this->size;
2765 if(len > size)
2766 return;
2768 basic_string_wchar_grow(this, size, FALSE);
2769 basic_string_wchar_eos(this, len);
2772 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@XZ */
2773 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@XZ */
2774 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@XZ */
2775 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@XZ */
2776 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor, 4)
2777 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor(basic_string_wchar *this)
2779 TRACE("%p\n", this);
2781 basic_string_wchar_tidy(this, FALSE, 0);
2782 return this;
2785 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@ABV01@@Z */
2786 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@AEBV01@@Z */
2787 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@ABV01@@Z */
2788 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@AEBV01@@Z */
2789 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_copy_ctor, 8)
2790 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_copy_ctor(
2791 basic_string_wchar *this, const basic_string_wchar *copy)
2793 TRACE("%p %p\n", this, copy);
2795 basic_string_wchar_tidy(this, FALSE, 0);
2796 MSVCP_basic_string_wchar_assign(this, copy);
2797 return this;
2800 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_W@Z */
2801 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@PEB_W@Z */
2802 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@PBG@Z */
2803 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@PEBG@Z */
2804 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_cstr, 8)
2805 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor_cstr(
2806 basic_string_wchar *this, const wchar_t *str)
2808 TRACE("%p %s\n", this, debugstr_w(str));
2810 basic_string_wchar_tidy(this, FALSE, 0);
2811 MSVCP_basic_string_wchar_assign_cstr(this, str);
2812 return this;
2815 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_WABV?$allocator@_W@1@@Z */
2816 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@PEB_WAEBV?$allocator@_W@1@@Z */
2817 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@PBGABV?$allocator@G@1@@Z */
2818 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@PEBGAEBV?$allocator@G@1@@Z */
2819 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_cstr_alloc, 12)
2820 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor_cstr_alloc(
2821 basic_string_wchar *this, const wchar_t *str, const void *alloc)
2823 return MSVCP_basic_string_wchar_ctor_cstr(this, str);
2826 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_WI@Z */
2827 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@PEB_W_K@Z */
2828 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@PBGI@Z */
2829 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@PEBG_K@Z */
2830 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_cstr_len, 12)
2831 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor_cstr_len(
2832 basic_string_wchar *this, const wchar_t *str, MSVCP_size_t len)
2834 TRACE("%p %s %ld\n", this, debugstr_w(str), len);
2836 basic_string_wchar_tidy(this, FALSE, 0);
2837 MSVCP_basic_string_wchar_assign_cstr_len(this, str, len);
2838 return this;
2841 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_WIABV?$allocator@_W@1@@Z */
2842 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@PEB_W_KAEBV?$allocator@_W@1@@Z */
2843 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@PBGIABV?$allocator@G@1@@Z */
2844 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@PEBG_KAEBV?$allocator@G@1@@Z */
2845 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_cstr_len_alloc, 16)
2846 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor_cstr_len_alloc(
2847 basic_string_wchar *this, const wchar_t *str, MSVCP_size_t len, const void *alloc)
2849 return MSVCP_basic_string_wchar_ctor_cstr_len(this, str, len);
2852 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@ABV01@II@Z */
2853 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@AEBV01@_K1@Z */
2854 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@ABV01@II@Z */
2855 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@AEBV01@_K1@Z */
2856 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_substr, 16)
2857 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor_substr(
2858 basic_string_wchar *this, const basic_string_wchar *assign,
2859 MSVCP_size_t pos, MSVCP_size_t len)
2861 TRACE("%p %p %lu %lu\n", this, assign, pos, len);
2863 basic_string_wchar_tidy(this, FALSE, 0);
2864 MSVCP_basic_string_wchar_assign_substr(this, assign, pos, len);
2865 return this;
2868 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@ABV01@IIABV?$allocator@_W@1@@Z */
2869 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@AEBV01@_K1AEBV?$allocator@_W@1@@Z */
2870 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@ABV01@IIABV?$allocator@G@1@@Z */
2871 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@AEBV01@_K1AEBV?$allocator@G@1@@Z */
2872 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_substr_alloc, 20)
2873 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor_substr_alloc(
2874 basic_string_wchar *this, const basic_string_wchar *assign,
2875 MSVCP_size_t pos, MSVCP_size_t len, const void *alloc)
2877 return MSVCP_basic_string_wchar_ctor_substr(this, assign, pos, len);
2880 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@ABV?$allocator@_W@1@@Z */
2881 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@AEBV?$allocator@_W@1@@Z */
2882 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@ABV?$allocator@G@1@@Z */
2883 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@AEBV?$allocator@G@1@@Z */
2884 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_alloc, 8)
2885 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor_alloc(
2886 basic_string_wchar *this, const void *alloc)
2888 TRACE("%p %p\n", this, alloc);
2890 basic_string_wchar_tidy(this, FALSE, 0);
2891 return this;
2894 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@I_W@Z */
2895 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@_K_W@Z */
2896 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@IG@Z */
2897 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@_KG@Z */
2898 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_ch, 12)
2899 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor_ch(basic_string_wchar *this,
2900 MSVCP_size_t count, wchar_t ch)
2902 TRACE("%p %ld %c\n", this, count, ch);
2904 basic_string_wchar_tidy(this, FALSE, 0);
2905 MSVCP_basic_string_wchar_assignn(this, count, ch);
2906 return this;
2909 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@I_WABV?$allocator@_W@1@@Z */
2910 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@_K_WAEBV?$allocator@_W@1@@Z */
2911 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@IGABV?$allocator@G@1@@Z */
2912 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@_KGAEBV?$allocator@G@1@@Z */
2913 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_ch_alloc, 16)
2914 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor_ch_alloc(basic_string_wchar *this,
2915 MSVCP_size_t count, wchar_t ch, const void *alloc)
2917 return MSVCP_basic_string_wchar_ctor_ch(this, count, ch);
2920 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_W0@Z */
2921 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@PEB_W0@Z */
2922 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@PBG0@Z */
2923 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@PEBG0@Z */
2924 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_ptr_ptr, 12)
2925 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor_ptr_ptr(basic_string_wchar *this,
2926 const wchar_t *first, const wchar_t *last)
2928 return MSVCP_basic_string_wchar_ctor_cstr_len(this, first, last-first);
2931 /* ??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 */
2932 /* ??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 */
2933 /* ??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 */
2934 /* ??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 */
2935 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_iter, 20)
2936 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_ctor_iter(basic_string_wchar *this,
2937 String_iterator_wchar beg, String_iterator_wchar end)
2939 return MSVCP_basic_string_wchar_ctor_cstr_len(this, beg.pos, end.pos-beg.pos+1);
2942 /* ??1?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@XZ */
2943 /* ??1?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@XZ */
2944 /* ??1?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@XZ */
2945 /* ??1?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@XZ */
2946 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_dtor, 4)
2947 void __thiscall MSVCP_basic_string_wchar_dtor(basic_string_wchar *this)
2949 TRACE("%p\n", this);
2950 basic_string_wchar_tidy(this, TRUE, 0);
2953 /* ?size@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIXZ */
2954 /* ?size@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KXZ */
2955 /* ?length@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIXZ */
2956 /* ?length@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KXZ */
2957 /* ?size@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIXZ */
2958 /* ?size@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KXZ */
2959 /* ?length@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIXZ */
2960 /* ?length@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KXZ */
2961 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_length, 4)
2962 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_length(basic_string_wchar *this)
2964 TRACE("%p\n", this);
2965 return this->size;
2968 /* ?max_size@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIXZ */
2969 /* ?max_size@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KXZ */
2970 /* ?max_size@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIXZ */
2971 /* ?max_size@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KXZ */
2972 DEFINE_THISCALL_WRAPPER(basic_string_wchar_max_size, 4)
2973 MSVCP_size_t __thiscall basic_string_wchar_max_size(const basic_string_wchar *this)
2975 TRACE("%p\n", this);
2976 return MSVCP_allocator_wchar_max_size(this->allocator)-1;
2979 /* ?empty@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE_NXZ */
2980 /* ?empty@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_NXZ */
2981 /* ?empty@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBE_NXZ */
2982 /* ?empty@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_NXZ */
2983 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_empty, 4)
2984 MSVCP_bool __thiscall MSVCP_basic_string_wchar_empty(basic_string_wchar *this)
2986 TRACE("%p\n", this);
2987 return this->size == 0;
2990 /* ?swap@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXAAV12@@Z */
2991 /* ?swap@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXAEAV12@@Z */
2992 /* ?swap@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXAAV12@@Z */
2993 /* ?swap@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXAEAV12@@Z */
2994 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_swap, 8)
2995 void __thiscall MSVCP_basic_string_wchar_swap(basic_string_wchar *this, basic_string_wchar *str)
2997 if(this != str) {
2998 char tmp[sizeof(this->data)];
2999 const MSVCP_size_t size = this->size;
3000 const MSVCP_size_t res = this->res;
3002 memcpy(tmp, this->data.buf, sizeof(this->data));
3003 memcpy(this->data.buf, str->data.buf, sizeof(this->data));
3004 memcpy(str->data.buf, tmp, sizeof(this->data));
3006 this->size = str->size;
3007 this->res = str->res;
3009 str->size = size;
3010 str->res = res;
3014 /* ?substr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE?AV12@II@Z */
3015 /* ?substr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA?AV12@_K0@Z */
3016 /* ?substr@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBE?AV12@II@Z */
3017 /* ?substr@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA?AV12@_K0@Z */
3018 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_substr, 16)
3019 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_substr(basic_string_wchar *this,
3020 basic_string_wchar *ret, MSVCP_size_t off, MSVCP_size_t len)
3022 TRACE("%p %lu %lu\n", this, off, len);
3024 MSVCP_basic_string_wchar_ctor_substr(ret, this, off, len);
3025 return ret;
3028 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@ABV12@II@Z */
3029 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@AEBV12@_K1@Z */
3030 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@ABV12@II@Z */
3031 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@AEBV12@_K1@Z */
3032 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_substr, 16)
3033 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_append_substr(basic_string_wchar *this,
3034 const basic_string_wchar *append, MSVCP_size_t offset, MSVCP_size_t count)
3036 TRACE("%p %p %lu %lu\n", this, append, offset, count);
3038 if(append->size < offset)
3039 MSVCP__String_base_Xran();
3041 if(count > append->size-offset)
3042 count = append->size-offset;
3044 if(MSVCP_basic_string_wchar_npos-this->size<=count || this->size+count<this->size)
3045 MSVCP__String_base_Xlen();
3047 if(basic_string_wchar_grow(this, this->size+count, FALSE)) {
3048 MSVCP_char_traits_wchar__Copy_s(basic_string_wchar_ptr(this)+this->size,
3049 this->res-this->size, basic_string_wchar_const_ptr(append)+offset, count);
3050 basic_string_wchar_eos(this, this->size+count);
3053 return this;
3056 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@ABV12@@Z */
3057 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@AEBV12@@Z */
3058 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@ABV01@@Z */
3059 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@AEBV01@@Z */
3060 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@ABV12@@Z */
3061 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@AEBV12@@Z */
3062 /* ??Y?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV01@ABV01@@Z */
3063 /* ??Y?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV01@AEBV01@@Z */
3064 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append, 8)
3065 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_append(
3066 basic_string_wchar *this, const basic_string_wchar *append)
3068 return MSVCP_basic_string_wchar_append_substr(this, append,
3069 0, MSVCP_basic_string_wchar_npos);
3072 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_WI@Z */
3073 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W_K@Z */
3074 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@PBGI@Z */
3075 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@PEBG_K@Z */
3076 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_cstr_len, 12)
3077 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_append_cstr_len(
3078 basic_string_wchar *this, const wchar_t *append, MSVCP_size_t count)
3080 TRACE("%p %s %lu\n", this, debugstr_w(append), count);
3082 if(basic_string_wchar_inside(this, append))
3083 return MSVCP_basic_string_wchar_append_substr(this, this,
3084 append-basic_string_wchar_ptr(this), count);
3086 if(MSVCP_basic_string_wchar_npos-this->size<=count || this->size+count<this->size)
3087 MSVCP__String_base_Xlen();
3089 if(basic_string_wchar_grow(this, this->size+count, FALSE)) {
3090 MSVCP_char_traits_wchar__Copy_s(basic_string_wchar_ptr(this)+this->size,
3091 this->res-this->size, append, count);
3092 basic_string_wchar_eos(this, this->size+count);
3095 return this;
3098 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_W@Z */
3099 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W@Z */
3100 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@PB_W@Z */
3101 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@PEB_W@Z */
3102 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@PBG@Z */
3103 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@PEBG@Z */
3104 /* ??Y?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV01@PBG@Z */
3105 /* ??Y?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV01@PEBG@Z */
3106 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_cstr, 8)
3107 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_append_cstr(
3108 basic_string_wchar *this, const wchar_t *append)
3110 return MSVCP_basic_string_wchar_append_cstr_len(this, append,
3111 MSVCP_char_traits_wchar_length(append));
3114 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_W0@Z */
3115 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W0@Z */
3116 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@PBG0@Z */
3117 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@PEBG0@Z */
3118 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_beg_end, 12)
3119 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_append_beg_end(
3120 basic_string_wchar *this, const wchar_t *beg, const wchar_t *end)
3122 return MSVCP_basic_string_wchar_append_cstr_len(this, beg, end-beg);
3125 /* ?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 */
3126 /* ?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 */
3127 /* ?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 */
3128 /* ?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 */
3129 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_iter, 20)
3130 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_append_iter(
3131 basic_string_wchar *this, String_iterator_wchar beg, String_iterator_wchar end)
3133 return MSVCP_basic_string_wchar_append_cstr_len(this, beg.pos, end.pos-beg.pos+1);
3136 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@I_W@Z */
3137 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K_W@Z */
3138 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IG@Z */
3139 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_KG@Z */
3140 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_len_ch, 12)
3141 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_append_len_ch(
3142 basic_string_wchar *this, MSVCP_size_t count, wchar_t ch)
3144 TRACE("%p %lu %c\n", this, count, ch);
3146 if(MSVCP_basic_string_wchar_npos-this->size <= count)
3147 MSVCP__String_base_Xlen();
3149 if(basic_string_wchar_grow(this, this->size+count, FALSE)) {
3150 MSVCP_char_traits_wchar_assignn(basic_string_wchar_ptr(this)+this->size, count, ch);
3151 basic_string_wchar_eos(this, this->size+count);
3154 return this;
3157 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@_W@Z */
3158 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@_W@Z */
3159 /* ?push_back@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEX_W@Z */
3160 /* ?push_back@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAX_W@Z */
3161 /* ??Y?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV01@G@Z */
3162 /* ??Y?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV01@G@Z */
3163 /* ?push_back@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXG@Z */
3164 /* ?push_back@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXG@Z */
3165 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_ch, 8)
3166 basic_string_wchar* __thiscall MSVCP_basic_string_wchar_append_ch(
3167 basic_string_wchar *this, wchar_t ch)
3169 return MSVCP_basic_string_wchar_append_len_ch(this, 1, ch);
3172 /* ??$?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 */
3173 /* ??$?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 */
3174 /* ??$?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 */
3175 /* ??$?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 */
3176 basic_string_wchar* __cdecl MSVCP_basic_string_wchar_concatenate_bstr_cstr(basic_string_wchar *ret,
3177 const basic_string_wchar *left, const wchar_t *right)
3179 TRACE("%p %s\n", left, debugstr_w(right));
3181 MSVCP_basic_string_wchar_copy_ctor(ret, left);
3182 MSVCP_basic_string_wchar_append_cstr(ret, right);
3183 return ret;
3186 /* ??$?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 */
3187 /* ??$?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 */
3188 /* ??$?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 */
3189 /* ??$?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 */
3190 basic_string_wchar* __cdecl MSVCP_basic_string_wchar_concatenate_cstr_bstr(basic_string_wchar *ret,
3191 const wchar_t *left, const basic_string_wchar *right)
3193 TRACE("%s %p\n", debugstr_w(left), right);
3195 MSVCP_basic_string_wchar_ctor_cstr(ret, left);
3196 MSVCP_basic_string_wchar_append(ret, right);
3197 return ret;
3200 /* ??$?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 */
3201 /* ??$?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 */
3202 /* ??$?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 */
3203 /* ??$?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 */
3204 basic_string_wchar* __cdecl MSVCP_basic_string_wchar_concatenate(basic_string_wchar *ret,
3205 const basic_string_wchar *left, const basic_string_wchar *right)
3207 TRACE("%p %p\n", left, right);
3209 MSVCP_basic_string_wchar_copy_ctor(ret, left);
3210 MSVCP_basic_string_wchar_append(ret, right);
3211 return ret;
3214 /* ??$?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 */
3215 /* ??$?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 */
3216 /* ??$?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 */
3217 /* ??$?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 */
3218 basic_string_wchar __cdecl MSVCP_basic_string_wchar_concatenate_bstr_ch(
3219 const basic_string_wchar *left, wchar_t right)
3221 basic_string_wchar ret = { 0 };
3223 TRACE("%p %c\n", left, right);
3225 MSVCP_basic_string_wchar_copy_ctor(&ret, left);
3226 MSVCP_basic_string_wchar_append_ch(&ret, right);
3227 return ret;
3230 /* ??$?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 */
3231 /* ??$?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 */
3232 /* ??$?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 */
3233 /* ??$?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 */
3234 basic_string_wchar __cdecl MSVCP_basic_string_wchar_concatenate_ch_bstr(
3235 wchar_t left, const basic_string_wchar *right)
3237 basic_string_wchar ret = { 0 };
3239 TRACE("%c %p\n", left, right);
3241 MSVCP_basic_string_wchar_ctor_cstr_len(&ret, &left, 1);
3242 MSVCP_basic_string_wchar_append(&ret, right);
3243 return ret;
3246 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHIIPB_WI@Z */
3247 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAH_K0PEB_W0@Z */
3248 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEHIIPBGI@Z */
3249 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAH_K0PEBG0@Z */
3250 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare_substr_cstr_len, 20)
3251 int __thiscall MSVCP_basic_string_wchar_compare_substr_cstr_len(
3252 const basic_string_wchar *this, MSVCP_size_t pos, MSVCP_size_t num,
3253 const wchar_t *str, MSVCP_size_t count)
3255 int ans;
3257 TRACE("%p %lu %lu %s %lu\n", this, pos, num, debugstr_w(str), count);
3259 if(this->size < pos)
3260 MSVCP__String_base_Xran();
3262 if(pos+num > this->size)
3263 num = this->size-pos;
3265 ans = MSVCP_char_traits_wchar_compare(basic_string_wchar_const_ptr(this)+pos,
3266 str, num>count ? count : num);
3267 if(ans)
3268 return ans;
3270 if(num > count)
3271 ans = 1;
3272 else if(num < count)
3273 ans = -1;
3274 return ans;
3277 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHIIPB_W@Z */
3278 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAH_K0PEB_W@Z */
3279 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEHIIPBG@Z */
3280 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAH_K0PEBG@Z */
3281 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare_substr_cstr, 16)
3282 int __thiscall MSVCP_basic_string_wchar_compare_substr_cstr(const basic_string_wchar *this,
3283 MSVCP_size_t pos, MSVCP_size_t num, const wchar_t *str)
3285 return MSVCP_basic_string_wchar_compare_substr_cstr_len(this, pos, num,
3286 str, MSVCP_char_traits_wchar_length(str));
3289 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHPB_W@Z */
3290 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAHPEB_W@Z */
3291 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEHPBG@Z */
3292 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAHPEBG@Z */
3293 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare_cstr, 8)
3294 int __thiscall MSVCP_basic_string_wchar_compare_cstr(
3295 const basic_string_wchar *this, const wchar_t *str)
3297 return MSVCP_basic_string_wchar_compare_substr_cstr_len(this, 0, this->size,
3298 str, MSVCP_char_traits_wchar_length(str));
3301 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHIIABV12@II@Z */
3302 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAH_K0AEBV12@00@Z */
3303 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEHIIABV12@II@Z */
3304 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAH_K0AEBV12@00@Z */
3305 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare_substr_substr, 24)
3306 int __thiscall MSVCP_basic_string_wchar_compare_substr_substr(
3307 const basic_string_wchar *this, MSVCP_size_t pos, MSVCP_size_t num,
3308 const basic_string_wchar *compare, MSVCP_size_t off, MSVCP_size_t count)
3310 TRACE("%p %lu %lu %p %lu %lu\n", this, pos, num, compare, off, count);
3312 if(compare->size < off)
3313 MSVCP__String_base_Xran();
3315 if(off+count > compare->size)
3316 count = compare->size-off;
3318 return MSVCP_basic_string_wchar_compare_substr_cstr_len(this, pos, num,
3319 basic_string_wchar_const_ptr(compare)+off, count);
3322 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHIIABV12@@Z */
3323 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAH_K0AEBV12@@Z */
3324 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEHIIABV12@@Z */
3325 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAH_K0AEBV12@@Z */
3326 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare_substr, 16)
3327 int __thiscall MSVCP_basic_string_wchar_compare_substr(
3328 const basic_string_wchar *this, MSVCP_size_t pos, MSVCP_size_t num,
3329 const basic_string_wchar *compare)
3331 return MSVCP_basic_string_wchar_compare_substr_cstr_len(this, pos, num,
3332 basic_string_wchar_const_ptr(compare), compare->size);
3335 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHABV12@@Z */
3336 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAHAEBV12@@Z */
3337 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEHABV12@@Z */
3338 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAHAEBV12@@Z */
3339 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare, 8)
3340 int __thiscall MSVCP_basic_string_wchar_compare(
3341 const basic_string_wchar *this, const basic_string_wchar *compare)
3343 return MSVCP_basic_string_wchar_compare_substr_cstr_len(this, 0, this->size,
3344 basic_string_wchar_const_ptr(compare), compare->size);
3347 /* ??$?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 */
3348 /* ??$?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 */
3349 /* ??$?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 */
3350 /* ??$?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 */
3351 MSVCP_bool __cdecl MSVCP_basic_string_wchar_equal(
3352 const basic_string_wchar *left, const basic_string_wchar *right)
3354 return MSVCP_basic_string_wchar_compare(left, right) == 0;
3357 /* ??$?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 */
3358 /* ??$?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 */
3359 /* ??$?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 */
3360 /* ??$?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 */
3361 MSVCP_bool __cdecl MSVCP_basic_string_wchar_equal_str_cstr(
3362 const basic_string_wchar *left, const wchar_t *right)
3364 return MSVCP_basic_string_wchar_compare_cstr(left, right) == 0;
3367 /* ??$?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 */
3368 /* ??$?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 */
3369 /* ??$?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 */
3370 /* ??$?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 */
3371 MSVCP_bool __cdecl MSVCP_basic_string_wchar_equal_cstr_str(
3372 const wchar_t *left, const basic_string_wchar *right)
3374 return MSVCP_basic_string_wchar_compare_cstr(right, left) == 0;
3377 /* ??$?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 */
3378 /* ??$?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 */
3379 /* ??$?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 */
3380 /* ??$?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 */
3381 MSVCP_bool __cdecl MSVCP_basic_string_wchar_not_equal(
3382 const basic_string_wchar *left, const basic_string_wchar *right)
3384 return MSVCP_basic_string_wchar_compare(left, right) != 0;
3387 /* ??$?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 */
3388 /* ??$?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 */
3389 /* ??$?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 */
3390 /* ??$?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 */
3391 MSVCP_bool __cdecl MSVCP_basic_string_wchar_not_equal_str_cstr(
3392 const basic_string_wchar *left, const wchar_t *right)
3394 return MSVCP_basic_string_wchar_compare_cstr(left, right) != 0;
3397 /* ??$?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 */
3398 /* ??$?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 */
3399 /* ??$?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 */
3400 /* ??$?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 */
3401 MSVCP_bool __cdecl MSVCP_basic_string_wchar_not_equal_cstr_str(
3402 const wchar_t *left, const basic_string_wchar *right)
3404 return MSVCP_basic_string_wchar_compare_cstr(right, left) != 0;
3407 /* ??$?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 */
3408 /* ??$?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 */
3409 /* ??$?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 */
3410 /* ??$?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 */
3411 MSVCP_bool __cdecl MSVCP_basic_string_wchar_lower(
3412 const basic_string_wchar *left, const basic_string_wchar *right)
3414 return MSVCP_basic_string_wchar_compare(left, right) < 0;
3417 /* ??$?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 */
3418 /* ??$?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 */
3419 /* ??$?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 */
3420 /* ??$?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 */
3421 MSVCP_bool __cdecl MSVCP_basic_string_wchar_lower_bstr_cstr(
3422 const basic_string_wchar *left, const wchar_t *right)
3424 return MSVCP_basic_string_wchar_compare_cstr(left, right) < 0;
3427 /* ??$?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 */
3428 /* ??$?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 */
3429 /* ??$?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 */
3430 /* ??$?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 */
3431 MSVCP_bool __cdecl MSVCP_basic_string_wchar_lower_cstr_bstr(
3432 const wchar_t *left, const basic_string_wchar *right)
3434 return MSVCP_basic_string_wchar_compare_cstr(right, left) > 0;
3437 /* ??$?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 */
3438 /* ??$?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 */
3439 /* ??$?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 */
3440 /* ??$?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 */
3441 MSVCP_bool __cdecl MSVCP_basic_string_wchar_leq(
3442 const basic_string_wchar *left, const basic_string_wchar *right)
3444 return MSVCP_basic_string_wchar_compare(left, right) <= 0;
3447 /* ??$?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 */
3448 /* ??$?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 */
3449 /* ??$?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 */
3450 /* ??$?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 */
3451 MSVCP_bool __cdecl MSVCP_basic_string_wchar_leq_bstr_cstr(
3452 const basic_string_wchar *left, const wchar_t *right)
3454 return MSVCP_basic_string_wchar_compare_cstr(left, right) <= 0;
3457 /* ??$?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 */
3458 /* ??$?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 */
3459 /* ??$?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 */
3460 /* ??$?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 */
3461 MSVCP_bool __cdecl MSVCP_basic_string_wchar_leq_cstr_bstr(
3462 const wchar_t *left, const basic_string_wchar *right)
3464 return MSVCP_basic_string_wchar_compare_cstr(right, left) >= 0;
3467 /* ??$?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 */
3468 /* ??$?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 */
3469 /* ??$?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 */
3470 /* ??$?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 */
3471 MSVCP_bool __cdecl MSVCP_basic_string_wchar_greater(
3472 const basic_string_wchar *left, const basic_string_wchar *right)
3474 return MSVCP_basic_string_wchar_compare(left, right) > 0;
3477 /* ??$?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 */
3478 /* ??$?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 */
3479 /* ??$?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 */
3480 /* ??$?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 */
3481 MSVCP_bool __cdecl MSVCP_basic_string_wchar_greater_bstr_cstr(
3482 const basic_string_wchar *left, const wchar_t *right)
3484 return MSVCP_basic_string_wchar_compare_cstr(left, right) > 0;
3487 /* ??$?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 */
3488 /* ??$?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 */
3489 /* ??$?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 */
3490 /* ??$?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 */
3491 MSVCP_bool __cdecl MSVCP_basic_string_wchar_greater_cstr_bstr(
3492 const wchar_t *left, const basic_string_wchar *right)
3494 return MSVCP_basic_string_wchar_compare_cstr(right, left) < 0;
3497 /* ??$?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 */
3498 /* ??$?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 */
3499 /* ??$?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 */
3500 /* ??$?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 */
3501 MSVCP_bool __cdecl MSVCP_basic_string_wchar_geq(
3502 const basic_string_wchar *left, const basic_string_wchar *right)
3504 return MSVCP_basic_string_wchar_compare(left, right) >= 0;
3507 /* ??$?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 */
3508 /* ??$?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 */
3509 /* ??$?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 */
3510 /* ??$?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 */
3511 MSVCP_bool __cdecl MSVCP_basic_string_wchar_geq_bstr_cstr(
3512 const basic_string_wchar *left, const wchar_t *right)
3514 return MSVCP_basic_string_wchar_compare_cstr(left, right) >= 0;
3517 /* ??$?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 */
3518 /* ??$?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 */
3519 /* ??$?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 */
3520 /* ??$?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 */
3521 MSVCP_bool __cdecl MSVCP_basic_string_wchar_geq_cstr_bstr(
3522 const wchar_t *left, const basic_string_wchar *right)
3524 return MSVCP_basic_string_wchar_compare_cstr(right, left) <= 0;
3527 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
3528 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
3529 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGII@Z */
3530 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K1@Z */
3531 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_cstr_substr, 16)
3532 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_cstr_substr(
3533 const basic_string_wchar *this, const wchar_t *find, MSVCP_size_t pos, MSVCP_size_t len)
3535 const wchar_t *p, *end;
3537 TRACE("%p %s %lu %lu\n", this, debugstr_w(find), pos, len);
3539 if(len==0 && pos<=this->size)
3540 return pos;
3542 end = basic_string_wchar_const_ptr(this)+this->size-len+1;
3543 for(p=basic_string_wchar_const_ptr(this)+pos; p<end; p++) {
3544 p = MSVCP_char_traits_wchar_find(p, end-p, find);
3545 if(!p)
3546 break;
3548 if(!MSVCP_char_traits_wchar_compare(p, find, len))
3549 return p-basic_string_wchar_const_ptr(this);
3552 return MSVCP_basic_string_wchar_npos;
3555 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
3556 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
3557 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGI@Z */
3558 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K@Z */
3559 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_cstr_off, 12)
3560 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_cstr_off(
3561 const basic_string_wchar *this, const wchar_t *find, MSVCP_size_t pos)
3563 return MSVCP_basic_string_wchar_find_cstr_substr(this, find, pos,
3564 MSVCP_char_traits_wchar_length(find));
3567 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
3568 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
3569 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIABV12@I@Z */
3570 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KAEBV12@_K@Z */
3571 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_off, 12)
3572 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_off(
3573 const basic_string_wchar *this, const basic_string_wchar *find, MSVCP_size_t off)
3575 return MSVCP_basic_string_wchar_find_cstr_substr(this,
3576 basic_string_wchar_const_ptr(find), off, find->size);
3579 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
3580 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
3581 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIGI@Z */
3582 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KG_K@Z */
3583 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_ch, 12)
3584 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_ch(
3585 const basic_string_wchar *this, wchar_t ch, MSVCP_size_t pos)
3587 return MSVCP_basic_string_wchar_find_cstr_substr(this, &ch, pos, 1);
3590 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
3591 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
3592 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGII@Z */
3593 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K1@Z */
3594 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_rfind_cstr_substr, 16)
3595 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_rfind_cstr_substr(
3596 const basic_string_wchar *this, const wchar_t *find, MSVCP_size_t pos, MSVCP_size_t len)
3598 const wchar_t *p, *end;
3600 TRACE("%p %s %lu %lu\n", this, debugstr_w(find), pos, len);
3602 if(len==0)
3603 return pos<this->size ? pos : this->size;
3605 if(len > this->size)
3606 return MSVCP_basic_string_wchar_npos;
3608 if(pos > this->size-len+1)
3609 pos = this->size-len+1;
3610 end = basic_string_wchar_const_ptr(this);
3611 for(p=end+pos-1; p>=end; p--) {
3612 if(*p==*find && !MSVCP_char_traits_wchar_compare(p, find, len))
3613 return p-basic_string_wchar_const_ptr(this);
3616 return MSVCP_basic_string_wchar_npos;
3619 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
3620 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
3621 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGI@Z */
3622 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K@Z */
3623 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_rfind_cstr_off, 12)
3624 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_rfind_cstr_off(
3625 const basic_string_wchar *this, const wchar_t *find, MSVCP_size_t pos)
3627 return MSVCP_basic_string_wchar_rfind_cstr_substr(this, find, pos,
3628 MSVCP_char_traits_wchar_length(find));
3631 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
3632 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
3633 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIABV12@I@Z */
3634 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KAEBV12@_K@Z */
3635 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_rfind_off, 12)
3636 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_rfind_off(
3637 const basic_string_wchar *this, const basic_string_wchar *find, MSVCP_size_t off)
3639 return MSVCP_basic_string_wchar_rfind_cstr_substr(this,
3640 basic_string_wchar_const_ptr(find), off, find->size);
3643 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
3644 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
3645 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIGI@Z */
3646 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KG_K@Z */
3647 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_rfind_ch, 12)
3648 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_rfind_ch(
3649 const basic_string_wchar *this, wchar_t ch, MSVCP_size_t pos)
3651 return MSVCP_basic_string_wchar_find_cstr_substr(this, &ch, pos, 1);
3654 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
3655 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
3656 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGII@Z */
3657 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K1@Z */
3658 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_of_cstr_substr, 16)
3659 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_first_of_cstr_substr(
3660 const basic_string_wchar *this, const wchar_t *find, MSVCP_size_t off, MSVCP_size_t len)
3662 const wchar_t *p, *end;
3664 TRACE("%p %p %lu %lu\n", this, find, off, len);
3666 if(len>0 && off<this->size) {
3667 end = basic_string_wchar_const_ptr(this)+this->size;
3668 for(p=basic_string_wchar_const_ptr(this)+off; p<end; p++)
3669 if(MSVCP_char_traits_wchar_find(find, len, p))
3670 return p-basic_string_wchar_const_ptr(this);
3673 return MSVCP_basic_string_wchar_npos;
3676 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
3677 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
3678 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIABV12@I@Z */
3679 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KAEBV12@_K@Z */
3680 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_of, 12)
3681 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_first_of(
3682 const basic_string_wchar *this, const basic_string_wchar *find, MSVCP_size_t off)
3684 return MSVCP_basic_string_wchar_find_first_of_cstr_substr(this,
3685 basic_string_wchar_const_ptr(find), off, find->size);
3688 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
3689 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
3690 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGI@Z */
3691 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K@Z */
3692 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_of_cstr, 12)
3693 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_first_of_cstr(
3694 const basic_string_wchar *this, const wchar_t *find, MSVCP_size_t off)
3696 return MSVCP_basic_string_wchar_find_first_of_cstr_substr(
3697 this, find, off, MSVCP_char_traits_wchar_length(find));
3700 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
3701 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
3702 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIGI@Z */
3703 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KG_K@Z */
3704 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_of_ch, 12)
3705 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_first_of_ch(
3706 const basic_string_wchar *this, wchar_t ch, MSVCP_size_t off)
3708 return MSVCP_basic_string_wchar_find_first_of_cstr_substr(this, &ch, off, 1);
3711 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
3712 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
3713 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGII@Z */
3714 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K1@Z */
3715 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_not_of_cstr_substr, 16)
3716 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_first_not_of_cstr_substr(
3717 const basic_string_wchar *this, const wchar_t *find, MSVCP_size_t off, MSVCP_size_t len)
3719 const wchar_t *p, *end;
3721 TRACE("%p %p %lu %lu\n", this, find, off, len);
3723 if(off<this->size) {
3724 end = basic_string_wchar_const_ptr(this)+this->size;
3725 for(p=basic_string_wchar_const_ptr(this)+off; p<end; p++)
3726 if(!MSVCP_char_traits_wchar_find(find, len, p))
3727 return p-basic_string_wchar_const_ptr(this);
3730 return MSVCP_basic_string_wchar_npos;
3733 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
3734 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
3735 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIABV12@I@Z */
3736 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KAEBV12@_K@Z */
3737 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_not_of, 12)
3738 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_first_not_of(
3739 const basic_string_wchar *this, const basic_string_wchar *find, MSVCP_size_t off)
3741 return MSVCP_basic_string_wchar_find_first_not_of_cstr_substr(this,
3742 basic_string_wchar_const_ptr(find), off, find->size);
3745 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
3746 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
3747 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGI@Z */
3748 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K@Z */
3749 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_not_of_cstr, 12)
3750 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_first_not_of_cstr(
3751 const basic_string_wchar *this, const wchar_t *find, MSVCP_size_t off)
3753 return MSVCP_basic_string_wchar_find_first_not_of_cstr_substr(
3754 this, find, off, MSVCP_char_traits_wchar_length(find));
3757 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
3758 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
3759 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIGI@Z */
3760 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KG_K@Z */
3761 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_not_of_ch, 12)
3762 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_first_not_of_ch(
3763 const basic_string_wchar *this, wchar_t ch, MSVCP_size_t off)
3765 return MSVCP_basic_string_wchar_find_first_not_of_cstr_substr(this, &ch, off, 1);
3768 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
3769 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
3770 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGII@Z */
3771 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K1@Z */
3772 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_of_cstr_substr, 16)
3773 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_last_of_cstr_substr(
3774 const basic_string_wchar *this, const wchar_t *find, MSVCP_size_t off, MSVCP_size_t len)
3776 const wchar_t *p, *beg;
3778 TRACE("%p %p %lu %lu\n", this, find, off, len);
3781 if(len>0 && this->size>0) {
3782 if(off >= this->size)
3783 off = this->size-1;
3785 beg = basic_string_wchar_const_ptr(this);
3786 for(p=beg+off; p>=beg; p--)
3787 if(MSVCP_char_traits_wchar_find(find, len, p))
3788 return p-beg;
3791 return MSVCP_basic_string_wchar_npos;
3794 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
3795 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
3796 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIABV12@I@Z */
3797 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KAEBV12@_K@Z */
3798 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_of, 12)
3799 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_last_of(
3800 const basic_string_wchar *this, const basic_string_wchar *find, MSVCP_size_t off)
3802 return MSVCP_basic_string_wchar_find_last_of_cstr_substr(this,
3803 basic_string_wchar_const_ptr(find), off, find->size);
3806 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
3807 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
3808 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGI@Z */
3809 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K@Z */
3810 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_of_cstr, 12)
3811 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_last_of_cstr(
3812 const basic_string_wchar *this, const wchar_t *find, MSVCP_size_t off)
3814 return MSVCP_basic_string_wchar_find_last_of_cstr_substr(
3815 this, find, off, MSVCP_char_traits_wchar_length(find));
3818 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
3819 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
3820 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIGI@Z */
3821 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KG_K@Z */
3822 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_of_ch, 12)
3823 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_last_of_ch(
3824 const basic_string_wchar *this, wchar_t ch, MSVCP_size_t off)
3826 return MSVCP_basic_string_wchar_find_last_of_cstr_substr(this, &ch, off, 1);
3829 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
3830 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
3831 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGII@Z */
3832 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K1@Z */
3833 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_not_of_cstr_substr, 16)
3834 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_last_not_of_cstr_substr(
3835 const basic_string_wchar *this, const wchar_t *find, MSVCP_size_t off, MSVCP_size_t len)
3837 const wchar_t *p, *beg;
3839 TRACE("%p %p %lu %lu\n", this, find, off, len);
3841 if(len>0 && this->size>0) {
3842 if(off >= this->size)
3843 off = this->size-1;
3845 beg = basic_string_wchar_const_ptr(this);
3846 for(p=beg+off; p>=beg; p--)
3847 if(!MSVCP_char_traits_wchar_find(find, len, p))
3848 return p-beg;
3851 return MSVCP_basic_string_wchar_npos;
3854 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
3855 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
3856 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIABV12@I@Z */
3857 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KAEBV12@_K@Z */
3858 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_not_of, 12)
3859 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_last_not_of(
3860 const basic_string_wchar *this, const basic_string_wchar *find, MSVCP_size_t off)
3862 return MSVCP_basic_string_wchar_find_last_not_of_cstr_substr(this,
3863 basic_string_wchar_const_ptr(find), off, find->size);
3866 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
3867 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
3868 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGI@Z */
3869 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K@Z */
3870 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_not_of_cstr, 12)
3871 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_last_not_of_cstr(
3872 const basic_string_wchar *this, const wchar_t *find, MSVCP_size_t off)
3874 return MSVCP_basic_string_wchar_find_last_not_of_cstr_substr(
3875 this, find, off, MSVCP_char_traits_wchar_length(find));
3878 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
3879 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
3880 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIGI@Z */
3881 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KG_K@Z */
3882 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_not_of_ch, 12)
3883 MSVCP_size_t __thiscall MSVCP_basic_string_wchar_find_last_not_of_ch(
3884 const basic_string_wchar *this, wchar_t ch, MSVCP_size_t off)
3886 return MSVCP_basic_string_wchar_find_last_not_of_cstr_substr(this, &ch, off, 1);
3889 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IIPB_WI@Z */
3890 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0PEB_W0@Z */
3891 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IIPBGI@Z */
3892 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K0PEBG0@Z */
3893 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_cstr_len, 20)
3894 basic_string_wchar* __thiscall basic_string_wchar_replace_cstr_len(basic_string_wchar *this,
3895 MSVCP_size_t off, MSVCP_size_t len, const wchar_t *str, MSVCP_size_t str_len)
3897 MSVCP_size_t inside_pos = -1;
3898 wchar_t *ptr = basic_string_wchar_ptr(this);
3900 TRACE("%p %ld %ld %p %ld\n", this, off, len, str, str_len);
3902 if(this->size < off)
3903 MSVCP__String_base_Xran();
3905 if(off+len > this->size)
3906 len = this->size-off;
3908 if(MSVCP_basic_string_wchar_npos-str_len <= this->size-len)
3909 MSVCP__String_base_Xlen();
3911 if(basic_string_wchar_inside(this, str))
3912 inside_pos = str-ptr;
3914 if(len < str_len)
3915 basic_string_wchar_grow(this, this->size-len+str_len, FALSE);
3917 if(inside_pos == -1) {
3918 memmove(ptr+off+str_len, ptr+off+len, (this->size-off-len)*sizeof(wchar_t));
3919 memcpy(ptr+off, str, str_len*sizeof(wchar_t));
3920 } else if(len >= str_len) {
3921 memmove(ptr+off, ptr+inside_pos, str_len*sizeof(wchar_t));
3922 memmove(ptr+off+str_len, ptr+off+len, (this->size-off-len)*sizeof(wchar_t));
3923 } else {
3924 MSVCP_size_t size;
3926 memmove(ptr+off+str_len, ptr+off+len, (this->size-off-len)*sizeof(wchar_t));
3928 if(inside_pos < off+len) {
3929 size = off+len-inside_pos;
3930 if(size > str_len)
3931 size = str_len;
3932 memmove(ptr+off, ptr+inside_pos, size*sizeof(wchar_t));
3933 } else {
3934 size = 0;
3937 if(str_len > size)
3938 memmove(ptr+off+size, ptr+off+str_len, (str_len-size)*sizeof(wchar_t));
3941 basic_string_wchar_eos(this, this->size-len+str_len);
3942 return this;
3945 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IIPB_W@Z */
3946 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0PEB_W@Z */
3947 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IIPBG@Z */
3948 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K0PEBG@Z */
3949 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_cstr, 16)
3950 basic_string_wchar* __thiscall basic_string_wchar_replace_cstr(basic_string_wchar *this,
3951 MSVCP_size_t off, MSVCP_size_t len, const wchar_t *str)
3953 return basic_string_wchar_replace_cstr_len(this, off, len, str,
3954 MSVCP_char_traits_wchar_length(str));
3957 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IIABV12@II@Z */
3958 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0AEBV12@00@Z */
3959 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IIABV12@II@Z */
3960 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K0AEBV12@00@Z */
3961 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_substr, 24)
3962 basic_string_wchar* __thiscall basic_string_wchar_replace_substr(basic_string_wchar *this, MSVCP_size_t off,
3963 MSVCP_size_t len, const basic_string_wchar *str, MSVCP_size_t str_off, MSVCP_size_t str_len)
3965 if(str->size < str_off)
3966 MSVCP__String_base_Xran();
3968 if(str_off+str_len > str->size)
3969 str_len = str->size-str_off;
3971 return basic_string_wchar_replace_cstr_len(this, off, len,
3972 basic_string_wchar_const_ptr(str)+str_off, str_len);
3975 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IIABV12@@Z */
3976 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0AEBV12@@Z */
3977 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IIABV12@@Z */
3978 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K0AEBV12@@Z */
3979 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace, 16)
3980 basic_string_wchar* __thiscall basic_string_wchar_replace(basic_string_wchar *this,
3981 MSVCP_size_t off, MSVCP_size_t len, const basic_string_wchar *str)
3983 return basic_string_wchar_replace_cstr_len(this, off, len,
3984 basic_string_wchar_const_ptr(str), str->size);
3987 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@III_W@Z */
3988 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K00_W@Z */
3989 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IIIG@Z */
3990 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K00G@Z */
3991 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_ch, 20)
3992 basic_string_wchar* __thiscall basic_string_wchar_replace_ch(basic_string_wchar *this,
3993 MSVCP_size_t off, MSVCP_size_t len, MSVCP_size_t count, wchar_t ch)
3995 wchar_t *ptr = basic_string_wchar_ptr(this);
3997 TRACE("%p %ld %ld %ld %c\n", this, off, len, count, ch);
3999 if(this->size < off)
4000 MSVCP__String_base_Xran();
4002 if(off+len > this->size)
4003 len = this->size-off;
4005 if(MSVCP_basic_string_wchar_npos-count <= this->size-len)
4006 MSVCP__String_base_Xlen();
4008 if(len < count)
4009 basic_string_wchar_grow(this, this->size-len+count, FALSE);
4011 memmove(ptr+off+count, ptr+off+len, (this->size-off-len)*sizeof(wchar_t));
4012 MSVCP_char_traits_wchar_assignn(ptr+off, count, ch);
4013 basic_string_wchar_eos(this, this->size-len+count);
4015 return this;
4018 /* ?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 */
4019 /* ?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 */
4020 /* ?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 */
4021 /* ?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 */
4022 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_iter_iter, 36)
4023 basic_string_wchar* __thiscall basic_string_wchar_replace_iter_iter(basic_string_wchar *this,
4024 String_iterator_wchar beg, String_iterator_wchar end,
4025 String_iterator_wchar res_beg, String_iterator_wchar res_end)
4027 String_iterator_wchar begin = { this, basic_string_wchar_ptr(this) };
4028 return basic_string_wchar_replace_cstr_len(this,
4029 MSVCP_basic_string_wchar_Pdif(beg, begin), MSVCP_basic_string_wchar_Pdif(end, begin),
4030 res_beg.pos, MSVCP_basic_string_wchar_Pdif(res_end, res_beg));
4033 /* ?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 */
4034 /* ?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 */
4035 /* ?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 */
4036 /* ?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 */
4037 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_iter_bstr, 24)
4038 basic_string_wchar* __thiscall basic_string_wchar_replace_iter_bstr(basic_string_wchar *this,
4039 String_iterator_wchar beg, String_iterator_wchar end, const basic_string_wchar *str)
4041 String_iterator_wchar begin = { this, basic_string_wchar_ptr(this) };
4042 return basic_string_wchar_replace(this, MSVCP_basic_string_wchar_Pdif(beg, begin),
4043 MSVCP_basic_string_wchar_Pdif(end, begin), str);
4046 /* ?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 */
4047 /* ?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 */
4048 /* ?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 */
4049 /* ?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 */
4050 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_iter_ch, 28)
4051 basic_string_wchar* __thiscall basic_string_wchar_replace_iter_ch(basic_string_wchar *this,
4052 String_iterator_wchar beg, String_iterator_wchar end, MSVCP_size_t count, wchar_t ch)
4054 String_iterator_wchar begin = { this, basic_string_wchar_ptr(this) };
4055 return basic_string_wchar_replace_ch(this, MSVCP_basic_string_wchar_Pdif(beg, begin),
4056 MSVCP_basic_string_wchar_Pdif(end, begin), count, ch);
4059 /* ?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 */
4060 /* ?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 */
4061 /* ?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 */
4062 /* ?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 */
4063 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_iter_ptr_ptr, 28)
4064 basic_string_wchar* __thiscall basic_string_wchar_replace_iter_ptr_ptr(basic_string_wchar *this,
4065 String_iterator_wchar beg, String_iterator_wchar end,
4066 const wchar_t *res_beg, const wchar_t *res_end)
4068 String_iterator_wchar begin = { this, basic_string_wchar_ptr(this) };
4069 return basic_string_wchar_replace_cstr_len(this, MSVCP_basic_string_wchar_Pdif(beg, begin),
4070 MSVCP_basic_string_wchar_Pdif(end, begin), res_beg, res_end-res_beg);
4073 /* ?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 */
4074 /* ?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 */
4075 /* ?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 */
4076 /* ?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 */
4077 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_iter_cstr, 24)
4078 basic_string_wchar* __thiscall basic_string_wchar_replace_iter_cstr(basic_string_wchar *this,
4079 String_iterator_wchar beg, String_iterator_wchar end, const wchar_t *str)
4081 String_iterator_wchar begin = { this, basic_string_wchar_ptr(this) };
4082 return basic_string_wchar_replace_cstr(this, MSVCP_basic_string_wchar_Pdif(beg, begin),
4083 MSVCP_basic_string_wchar_Pdif(end, begin), str);
4086 /* ?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 */
4087 /* ?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 */
4088 /* ?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 */
4089 /* ?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 */
4090 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_iter_cstr_len, 28)
4091 basic_string_wchar* __thiscall basic_string_wchar_replace_iter_cstr_len(basic_string_wchar *this,
4092 String_iterator_wchar beg, String_iterator_wchar end, const wchar_t *str, MSVCP_size_t len)
4094 String_iterator_wchar begin = { this, basic_string_wchar_ptr(this) };
4095 return basic_string_wchar_replace_cstr_len(this, MSVCP_basic_string_wchar_Pdif(beg, begin),
4096 MSVCP_basic_string_wchar_Pdif(end, begin), str, len);
4099 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IABV12@@Z */
4100 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_KAEBV12@@Z */
4101 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IABV12@@Z */
4102 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_KAEBV12@@Z */
4103 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert, 12)
4104 basic_string_wchar* __thiscall basic_string_wchar_insert(basic_string_wchar *this,
4105 MSVCP_size_t off, const basic_string_wchar *str)
4107 return basic_string_wchar_replace(this, off, 0, str);
4110 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IABV12@II@Z */
4111 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_KAEBV12@00@Z */
4112 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IABV12@II@Z */
4113 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_KAEBV12@00@Z */
4114 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_substr, 20)
4115 basic_string_wchar* __thiscall basic_string_wchar_insert_substr(
4116 basic_string_wchar *this, MSVCP_size_t off, const basic_string_wchar *str,
4117 MSVCP_size_t str_off, MSVCP_size_t str_count)
4119 return basic_string_wchar_replace_substr(this, off, 0, str, str_off, str_count);
4122 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IPB_W@Z */
4123 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_KPEB_W@Z */
4124 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IPBG@Z */
4125 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_KPEBG@Z */
4126 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_cstr, 12)
4127 basic_string_wchar* __thiscall basic_string_wchar_insert_cstr(
4128 basic_string_wchar *this, MSVCP_size_t off, const wchar_t *str)
4130 return basic_string_wchar_replace_cstr(this, off, 0, str);
4133 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IPB_WI@Z */
4134 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_KPEB_W0@Z */
4135 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IPBGI@Z */
4136 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_KPEBG0@Z */
4137 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_cstr_len, 16)
4138 basic_string_wchar* __thiscall basic_string_wchar_insert_cstr_len(basic_string_wchar *this,
4139 MSVCP_size_t off, const wchar_t *str, MSVCP_size_t str_len)
4141 return basic_string_wchar_replace_cstr_len(this, off, 0, str, str_len);
4144 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@II_W@Z */
4145 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0_W@Z */
4146 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IIG@Z */
4147 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K0G@Z */
4148 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_chn, 16)
4149 basic_string_wchar* __thiscall basic_string_wchar_insert_chn(basic_string_wchar *this,
4150 MSVCP_size_t off, MSVCP_size_t count, wchar_t ch)
4152 return basic_string_wchar_replace_ch(this, off, 0, count, ch);
4155 /* ?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 */
4156 /* ?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 */
4157 /* ?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 */
4158 /* ?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 */
4159 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_iter_chn, 20)
4160 void __thiscall basic_string_wchar_insert_iter_chn(basic_string_wchar *this,
4161 String_iterator_wchar where, MSVCP_size_t count, wchar_t ch)
4163 String_iterator_wchar iter = { this, basic_string_wchar_ptr(this) };
4164 MSVCP_size_t off = MSVCP_basic_string_wchar_Pdif(where, iter);
4166 basic_string_wchar_insert_chn(this, off, count, ch);
4169 /* ?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 */
4170 /* ?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 */
4171 /* ?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 */
4172 /* ?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 */
4173 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_iter_ch, 20)
4174 String_iterator_wchar* __thiscall basic_string_wchar_insert_iter_ch(basic_string_wchar *this,
4175 String_iterator_wchar *ret, String_iterator_wchar where, wchar_t ch)
4177 MSVCP_size_t off;
4179 ret->bstr = this;
4180 ret->pos = basic_string_wchar_ptr(this);
4181 off = MSVCP_basic_string_wchar_Pdif(where, *ret);
4183 basic_string_wchar_insert_chn(this, off, 1, ch);
4184 ret->pos = basic_string_wchar_ptr(this)+off;
4185 return ret;
4188 /* ?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 */
4189 /* ?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 */
4190 /* ?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 */
4191 /* ?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 */
4192 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_iter_null, 16)
4193 String_iterator_wchar* __thiscall basic_string_wchar_insert_iter_null(basic_string_wchar *this,
4194 String_iterator_wchar *ret, String_iterator_wchar where)
4196 return basic_string_wchar_insert_iter_ch(this, ret, where, 0);
4199 /* ?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 */
4200 /* ?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 */
4201 /* ?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 */
4202 /* ?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 */
4203 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_iter_beg_end, 28)
4204 void __thiscall basic_string_wchar_insert_iter_beg_end(basic_string_wchar *this,
4205 String_iterator_wchar where, String_iterator_wchar beg, String_iterator_wchar end)
4207 basic_string_wchar_replace_iter_iter(this, where, where, beg, end);
4210 /* ?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 */
4211 /* ?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 */
4212 /* ?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 */
4213 /* ?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 */
4214 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_iter_ptr_ptr, 20)
4215 void __thiscall basic_string_wchar_insert_iter_ptr_ptr(basic_string_wchar *this,
4216 String_iterator_wchar where, const wchar_t *beg, const wchar_t *end)
4218 basic_string_wchar_replace_iter_ptr_ptr(this, where, where, beg, end);
4221 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAA_WI@Z */
4222 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEA_W_K@Z */
4223 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAGI@Z */
4224 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAG_K@Z */
4225 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_operator_at, 8)
4226 wchar_t* __thiscall MSVCP_basic_string_wchar_operator_at(
4227 basic_string_wchar *this, MSVCP_size_t pos)
4229 TRACE("%p %lu\n", this, pos);
4231 assert(this->size >= pos);
4232 return basic_string_wchar_ptr(this)+pos;
4235 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEAB_WI@Z */
4236 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAAEB_W_K@Z */
4237 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEABGI@Z */
4238 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAAEBG_K@Z */
4239 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_const_operator_at, 8)
4240 const wchar_t* __thiscall MSVCP_basic_string_wchar_const_operator_at(
4241 const basic_string_wchar *this, MSVCP_size_t pos)
4243 TRACE("%p %lu\n", this, pos);
4245 assert(this->size >= pos);
4246 return basic_string_wchar_const_ptr(this)+pos;
4249 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAA_WU_Size_type_nosscl@01@@Z */
4250 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEA_WU_Size_type_nosscl@01@@Z */
4251 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAGU_Size_type_nosscl@01@@Z */
4252 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAGU_Size_type_nosscl@01@@Z */
4253 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_operator_at_noverify, 8)
4254 wchar_t* __thiscall MSVCP_basic_string_wchar_operator_at_noverify(
4255 basic_string_wchar *this, size_t_noverify pos)
4257 TRACE("%p %lu\n", this, pos.val);
4258 return basic_string_wchar_ptr(this)+pos.val;
4261 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEAB_WU_Size_type_nosscl@01@@Z */
4262 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAAEB_WU_Size_type_nosscl@01@@Z */
4263 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEABGU_Size_type_nosscl@01@@Z */
4264 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAAEBGU_Size_type_nosscl@01@@Z */
4265 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_operator_const_at_noverify, 8)
4266 const wchar_t* __thiscall MSVCP_basic_string_wchar_operator_const_at_noverify(
4267 const basic_string_wchar *this, size_t_noverify pos)
4269 TRACE("%p %lu\n", this, pos.val);
4270 return basic_string_wchar_const_ptr(this)+pos.val;
4273 /* ?at@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAA_WI@Z */
4274 /* ?at@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEA_W_K@Z */
4275 /* ?at@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAGI@Z */
4276 /* ?at@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAG_K@Z */
4277 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_at, 8)
4278 wchar_t* __thiscall MSVCP_basic_string_wchar_at(
4279 basic_string_wchar *this, MSVCP_size_t pos)
4281 TRACE("%p %lu\n", this, pos);
4283 if(this->size <= pos)
4284 MSVCP__String_base_Xran();
4286 return basic_string_wchar_ptr(this)+pos;
4289 /* ?at@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEAB_WI@Z */
4290 /* ?at@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAAEB_W_K@Z */
4291 /* ?at@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEABGI@Z */
4292 /* ?at@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAAEBG_K@Z */
4293 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_const_at, 8)
4294 const wchar_t* __thiscall MSVCP_basic_string_wchar_const_at(
4295 const basic_string_wchar *this, MSVCP_size_t pos)
4297 TRACE("%p %lu\n", this, pos);
4299 if(this->size <= pos)
4300 MSVCP__String_base_Xran();
4302 return basic_string_wchar_const_ptr(this)+pos;
4305 /* ?resize@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXI_W@Z */
4306 /* ?resize@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAX_K_W@Z */
4307 /* ?resize@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXIG@Z */
4308 /* ?resize@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAX_KG@Z */
4309 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_resize_ch, 12)
4310 void __thiscall MSVCP_basic_string_wchar_resize_ch(
4311 basic_string_wchar *this, MSVCP_size_t size, wchar_t ch)
4313 TRACE("%p %lu %c\n", this, size, ch);
4315 if(size <= this->size)
4316 MSVCP_basic_string_wchar_erase(this, size, this->size);
4317 else
4318 MSVCP_basic_string_wchar_append_len_ch(this, size-this->size, ch);
4321 /* ?resize@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXI@Z */
4322 /* ?resize@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAX_K@Z */
4323 /* ?resize@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXI@Z */
4324 /* ?resize@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAX_K@Z */
4325 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_resize, 8)
4326 void __thiscall MSVCP_basic_string_wchar_resize(
4327 basic_string_wchar *this, MSVCP_size_t size)
4329 MSVCP_basic_string_wchar_resize_ch(this, size, '\0');
4332 /* ?clear@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
4333 /* ?clear@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
4334 /* ?clear@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
4335 /* ?clear@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
4336 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_clear, 4)
4337 void __thiscall MSVCP_basic_string_wchar_clear(basic_string_wchar *this)
4339 basic_string_wchar_eos(this, 0);
4342 /* ?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 */
4343 /* ?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 */
4344 /* ?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 */
4345 /* ?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 */
4346 /* ?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 */
4347 /* ?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 */
4348 /* ?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 */
4349 /* ?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 */
4350 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_begin, 8)
4351 String_iterator_wchar* __thiscall MSVCP_basic_string_wchar_begin(
4352 basic_string_wchar *this, String_iterator_wchar *ret)
4354 TRACE("%p\n", this);
4356 ret->bstr = this;
4357 ret->pos = basic_string_wchar_const_ptr(this);
4358 return ret;
4361 /* ?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 */
4362 /* ?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 */
4363 /* ?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 */
4364 /* ?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 */
4365 /* ?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 */
4366 /* ?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 */
4367 /* ?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 */
4368 /* ?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 */
4369 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_end, 8)
4370 String_iterator_wchar* __thiscall MSVCP_basic_string_wchar_end(
4371 basic_string_wchar *this, String_iterator_wchar *ret)
4373 TRACE("%p\n", this);
4375 ret->bstr = this;
4376 ret->pos = basic_string_wchar_const_ptr(this)+this->size;
4377 return ret;
4380 /* ?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 */
4381 /* ?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 */
4382 /* ?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 */
4383 /* ?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 */
4384 /* ?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 */
4385 /* ?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 */
4386 /* ?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 */
4387 /* ?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 */
4388 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_rbegin, 8)
4389 String_reverse_iterator_wchar* __thiscall MSVCP_basic_string_wchar_rbegin(
4390 basic_string_wchar *this, String_reverse_iterator_wchar *ret)
4392 TRACE("%p\n", this);
4394 ret->bstr = this;
4395 ret->pos = basic_string_wchar_const_ptr(this)+this->size;
4396 return ret;
4399 /* ?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 */
4400 /* ?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 */
4401 /* ?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 */
4402 /* ?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 */
4403 /* ?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 */
4404 /* ?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 */
4405 /* ?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 */
4406 /* ?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 */
4407 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_rend, 8)
4408 String_reverse_iterator_wchar* __thiscall MSVCP_basic_string_wchar_rend(
4409 basic_string_wchar *this, String_reverse_iterator_wchar *ret)
4411 TRACE("%p\n", this);
4413 ret->bstr = this;
4414 ret->pos = basic_string_wchar_const_ptr(this);
4415 return ret;
4418 /* _String_val class */
4419 /* ??_F?$_String_val@DV?$allocator@D@std@@@std@@QAEXXZ */
4420 /* ??_F?$_String_val@DV?$allocator@D@std@@@std@@QEAAXXZ */
4421 /* ??_F?$_String_val@GV?$allocator@G@std@@@std@@QAEXXZ */
4422 /* ??_F?$_String_val@GV?$allocator@G@std@@@std@@QEAAXXZ */
4423 /* ??_F?$_String_val@_WV?$allocator@_W@std@@@std@@QAEXXZ */
4424 /* ??_F?$_String_val@_WV?$allocator@_W@std@@@std@@QEAAXXZ */
4425 DEFINE_THISCALL_WRAPPER(_String_val_ctor, 4)
4426 void* __thiscall _String_val_ctor(void *this)
4428 TRACE("%p\n", this);
4429 return this;
4432 /* ??0?$_String_val@DV?$allocator@D@std@@@std@@IAE@V?$allocator@D@1@@Z */
4433 /* ??0?$_String_val@DV?$allocator@D@std@@@std@@IEAA@V?$allocator@D@1@@Z */
4434 /* ??0?$_String_val@GV?$allocator@G@std@@@std@@IAE@V?$allocator@G@1@@Z */
4435 /* ??0?$_String_val@GV?$allocator@G@std@@@std@@IEAA@V?$allocator@G@1@@Z */
4436 /* ??0?$_String_val@_WV?$allocator@_W@std@@@std@@IAE@V?$allocator@_W@1@@Z */
4437 /* ??0?$_String_val@_WV?$allocator@_W@std@@@std@@IEAA@V?$allocator@_W@1@@Z */
4438 /* ??0?$_String_val@DV?$allocator@D@std@@@std@@QAE@ABV01@@Z */
4439 /* ??0?$_String_val@DV?$allocator@D@std@@@std@@QEAA@AEBV01@@Z */
4440 /* ??0?$_String_val@GV?$allocator@G@std@@@std@@QAE@ABV01@@Z */
4441 /* ??0?$_String_val@GV?$allocator@G@std@@@std@@QEAA@AEBV01@@Z */
4442 /* ??0?$_String_val@_WV?$allocator@_W@std@@@std@@QAE@ABV01@@Z */
4443 /* ??0?$_String_val@_WV?$allocator@_W@std@@@std@@QEAA@AEBV01@@Z */
4444 /* ??4?$_String_val@DV?$allocator@D@std@@@std@@QAEAAV01@ABV01@@Z */
4445 /* ??4?$_String_val@DV?$allocator@D@std@@@std@@QEAAAEAV01@AEBV01@@Z */
4446 /* ??4?$_String_val@GV?$allocator@G@std@@@std@@QAEAAV01@ABV01@@Z */
4447 /* ??4?$_String_val@GV?$allocator@G@std@@@std@@QEAAAEAV01@AEBV01@@Z */
4448 /* ??4?$_String_val@_WV?$allocator@_W@std@@@std@@QAEAAV01@ABV01@@Z */
4449 /* ??4?$_String_val@_WV?$allocator@_W@std@@@std@@QEAAAEAV01@AEBV01@@Z */
4450 /* ??4?$_String_val@DV?$allocator@D@std@@@std@@QAEAAV01@ABV01@@Z */
4451 DEFINE_THISCALL_WRAPPER(_String_val_null_ctor, 8)
4452 void* __thiscall _String_val_null_ctor(void *this, const void *misc)
4454 TRACE("%p %p\n", this, misc);
4455 return this;