2 * Copyright 2010 Piotr Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
29 #include "wine/debug.h"
30 WINE_DEFAULT_DEBUG_CHANNEL(msvcp
);
32 /* _String_iterator<char> and _String_const_iterator<char> class */
34 basic_string_char
*bstr
;
36 } String_iterator_char
;
37 typedef String_iterator_char String_reverse_iterator_char
;
40 basic_string_wchar
*bstr
;
42 } String_iterator_wchar
;
43 typedef String_iterator_wchar String_reverse_iterator_wchar
;
45 /* size_t_noverify structure */
55 /* char_traits<char> */
56 /* ?assign@?$char_traits@D@std@@SAXAADABD@Z */
57 /* ?assign@?$char_traits@D@std@@SAXAEADAEBD@Z */
58 void CDECL
MSVCP_char_traits_char_assign(char *ch
, const char *assign
)
63 /* ?eq@?$char_traits@D@std@@SA_NABD0@Z */
64 /* ?eq@?$char_traits@D@std@@SA_NAEBD0@Z */
65 MSVCP_bool CDECL
MSVCP_char_traits_char_eq(const char *ch1
, const char *ch2
)
70 /* ?lt@?$char_traits@D@std@@SA_NABD0@Z */
71 /* ?lt@?$char_traits@D@std@@SA_NAEBD0@Z */
72 MSVCP_bool CDECL
MSVCP_char_traits_lt(const char *ch1
, const char *ch2
)
77 /* ?compare@?$char_traits@D@std@@SAHPBD0I@Z */
78 /* ?compare@?$char_traits@D@std@@SAHPEBD0_K@Z */
79 int CDECL
MSVCP_char_traits_char_compare(
80 const char *s1
, const char *s2
, MSVCP_size_t count
)
82 int ret
= memcmp(s1
, s2
, count
);
83 return (ret
>0 ? 1 : (ret
<0 ? -1 : 0));
86 /* ?length@?$char_traits@D@std@@SAIPBD@Z */
87 /* ?length@?$char_traits@D@std@@SA_KPEBD@Z */
88 MSVCP_size_t CDECL
MSVCP_char_traits_char_length(const char *str
)
93 /* ?_Copy_s@?$char_traits@D@std@@SAPADPADIPBDI@Z */
94 /* ?_Copy_s@?$char_traits@D@std@@SAPEADPEAD_KPEBD1@Z */
95 char* CDECL
MSVCP_char_traits_char__Copy_s(char *dest
,
96 MSVCP_size_t size
, const char *src
, MSVCP_size_t count
)
98 if(!dest
|| !src
|| size
<count
) {
101 _invalid_parameter(NULL
, NULL
, NULL
, 0, 0);
105 return memcpy(dest
, src
, count
);
108 /* ?copy@?$char_traits@D@std@@SAPADPADPBDI@Z */
109 /* ?copy@?$char_traits@D@std@@SAPEADPEADPEBD_K@Z */
110 char* CDECL
MSVCP_char_traits_char_copy(
111 char *dest
, const char *src
, MSVCP_size_t count
)
113 return MSVCP_char_traits_char__Copy_s(dest
, count
, src
, count
);
116 /* ?find@?$char_traits@D@std@@SAPBDPBDIABD@Z */
117 /* ?find@?$char_traits@D@std@@SAPEBDPEBD_KAEBD@Z */
118 const char * CDECL
MSVCP_char_traits_char_find(
119 const char *str
, MSVCP_size_t range
, const char *c
)
121 return memchr(str
, *c
, range
);
124 /* ?_Move_s@?$char_traits@D@std@@SAPADPADIPBDI@Z */
125 /* ?_Move_s@?$char_traits@D@std@@SAPEADPEAD_KPEBD1@Z */
126 char* CDECL
MSVCP_char_traits_char__Move_s(char *dest
,
127 MSVCP_size_t size
, const char *src
, MSVCP_size_t count
)
129 if(!dest
|| !src
|| size
<count
) {
132 _invalid_parameter(NULL
, NULL
, NULL
, 0, 0);
136 return memmove(dest
, src
, count
);
139 /* ?move@?$char_traits@D@std@@SAPADPADPBDI@Z */
140 /* ?move@?$char_traits@D@std@@SAPEADPEADPEBD_K@Z */
141 char* CDECL
MSVCP_char_traits_char_move(
142 char *dest
, const char *src
, MSVCP_size_t count
)
144 return MSVCP_char_traits_char__Move_s(dest
, count
, src
, count
);
147 /* ?assign@?$char_traits@D@std@@SAPADPADID@Z */
148 /* ?assign@?$char_traits@D@std@@SAPEADPEAD_KD@Z */
149 char* CDECL
MSVCP_char_traits_char_assignn(char *str
, MSVCP_size_t num
, char c
)
151 return memset(str
, c
, num
);
154 /* ?to_char_type@?$char_traits@D@std@@SADABH@Z */
155 /* ?to_char_type@?$char_traits@D@std@@SADAEBH@Z */
156 char CDECL
MSVCP_char_traits_char_to_char_type(const int *i
)
161 /* ?to_int_type@?$char_traits@D@std@@SAHABD@Z */
162 /* ?to_int_type@?$char_traits@D@std@@SAHAEBD@Z */
163 int CDECL
MSVCP_char_traits_char_to_int_type(const char *ch
)
168 /* ?eq_int_type@?$char_traits@D@std@@SA_NABH0@Z */
169 /* ?eq_int_type@?$char_traits@D@std@@SA_NAEBH0@Z */
170 MSVCP_bool CDECL
MSVCP_char_traits_char_eq_int_type(const int *i1
, const int *i2
)
175 /* ?eof@?$char_traits@D@std@@SAHXZ */
176 int CDECL
MSVCP_char_traits_char_eof(void)
181 /* ?not_eof@?$char_traits@D@std@@SAHABH@Z */
182 /* ?not_eof@?$char_traits@D@std@@SAHAEBH@Z */
183 int CDECL
MSVCP_char_traits_char_not_eof(int *in
)
185 return (*in
==EOF
? !EOF
: *in
);
189 /* char_traits<wchar_t> */
190 /* ?assign@?$char_traits@_W@std@@SAXAA_WAB_W@Z */
191 /* ?assign@?$char_traits@_W@std@@SAXAEA_WAEB_W@Z */
192 void CDECL
MSVCP_char_traits_wchar_assign(wchar_t *ch
,
193 const wchar_t *assign
)
198 /* ?eq@?$char_traits@_W@std@@SA_NAB_W0@Z */
199 /* ?eq@?$char_traits@_W@std@@SA_NAEB_W0@Z */
200 MSVCP_bool CDECL
MSVCP_char_traits_wchar_eq(wchar_t *ch1
, wchar_t *ch2
)
205 /* ?lt@?$char_traits@_W@std@@SA_NAB_W0@Z */
206 /* ?lt@?$char_traits@_W@std@@SA_NAEB_W0@Z */
207 MSVCP_bool CDECL
MSVCP_char_traits_wchar_lt(const wchar_t *ch1
,
213 /* ?compare@?$char_traits@_W@std@@SAHPB_W0I@Z */
214 /* ?compare@?$char_traits@_W@std@@SAHPEB_W0_K@Z */
215 int CDECL
MSVCP_char_traits_wchar_compare(const wchar_t *s1
,
216 const wchar_t *s2
, MSVCP_size_t count
)
218 int ret
= memcmp(s1
, s2
, count
* sizeof(wchar_t));
219 return (ret
>0 ? 1 : (ret
<0 ? -1 : 0));
222 /* ?length@?$char_traits@_W@std@@SAIPB_W@Z */
223 /* ?length@?$char_traits@_W@std@@SA_KPEB_W@Z */
224 MSVCP_size_t CDECL
MSVCP_char_traits_wchar_length(const wchar_t *str
)
226 return wcslen((WCHAR
*)str
);
229 /* ?_Copy_s@?$char_traits@_W@std@@SAPA_WPA_WIPB_WI@Z */
230 /* ?_Copy_s@?$char_traits@_W@std@@SAPEA_WPEA_W_KPEB_W1@Z */
231 wchar_t* CDECL
MSVCP_char_traits_wchar__Copy_s(wchar_t *dest
,
232 MSVCP_size_t size
, const wchar_t *src
, MSVCP_size_t count
)
234 if(!dest
|| !src
|| size
<count
) {
237 _invalid_parameter(NULL
, NULL
, NULL
, 0, 0);
241 return memcpy(dest
, src
, count
* sizeof(wchar_t));
244 /* ?copy@?$char_traits@_W@std@@SAPA_WPA_WPB_WI@Z */
245 /* ?copy@?$char_traits@_W@std@@SAPEA_WPEA_WPEB_W_K@Z */
246 wchar_t* CDECL
MSVCP_char_traits_wchar_copy(wchar_t *dest
,
247 const wchar_t *src
, MSVCP_size_t count
)
249 return MSVCP_char_traits_wchar__Copy_s(dest
, count
, src
, count
);
252 /* ?find@?$char_traits@_W@std@@SAPB_WPB_WIAB_W@Z */
253 /* ?find@?$char_traits@_W@std@@SAPEB_WPEB_W_KAEB_W@Z */
254 const wchar_t* CDECL
MSVCP_char_traits_wchar_find(
255 const wchar_t *str
, MSVCP_size_t range
, const wchar_t *c
)
259 for(i
=0; i
<range
; i
++)
266 /* ?_Move_s@?$char_traits@_W@std@@SAPA_WPA_WIPB_WI@Z */
267 /* ?_Move_s@?$char_traits@_W@std@@SAPEA_WPEA_W_KPEB_W1@Z */
268 wchar_t* CDECL
MSVCP_char_traits_wchar__Move_s(wchar_t *dest
,
269 MSVCP_size_t size
, const wchar_t *src
, MSVCP_size_t count
)
271 if(!dest
|| !src
|| size
<count
) {
274 _invalid_parameter(NULL
, NULL
, NULL
, 0, 0);
278 return memmove(dest
, src
, count
* sizeof(WCHAR
));
281 /* ?move@?$char_traits@_W@std@@SAPA_WPA_WPB_WI@Z */
282 /* ?move@?$char_traits@_W@std@@SAPEA_WPEA_WPEB_W_K@Z */
283 wchar_t* CDECL
MSVCP_char_traits_wchar_move(wchar_t *dest
,
284 const wchar_t *src
, MSVCP_size_t count
)
286 return MSVCP_char_traits_wchar__Move_s(dest
, count
, src
, count
);
289 /* ?assign@?$char_traits@_W@std@@SAPA_WPA_WI_W@Z */
290 /* ?assign@?$char_traits@_W@std@@SAPEA_WPEA_W_K_W@Z */
291 wchar_t* CDECL
MSVCP_char_traits_wchar_assignn(wchar_t *str
,
292 MSVCP_size_t num
, wchar_t c
)
302 /* ?to_char_type@?$char_traits@_W@std@@SA_WABG@Z */
303 /* ?to_char_type@?$char_traits@_W@std@@SA_WAEBG@Z */
304 wchar_t CDECL
MSVCP_char_traits_wchar_to_char_type(const unsigned short *i
)
309 /* ?to_int_type@?$char_traits@_W@std@@SAGAB_W@Z */
310 /* ?to_int_type@?$char_traits@_W@std@@SAGAEB_W@Z */
311 unsigned short CDECL
MSVCP_char_traits_wchar_to_int_type(const wchar_t *ch
)
316 /* ?eq_int_type@?$char_traits@_W@std@@SA_NABG0@Z */
317 /* ?eq_int_type@?$char_traits@_W@std@@SA_NAEBG0@Z */
318 MSVCP_bool CDECL
MSVCP_char_traits_wchar_eq_int_tpe(const unsigned short *i1
,
319 const unsigned short *i2
)
324 /* ?eof@?$char_traits@_W@std@@SAGXZ */
325 unsigned short CDECL
MSVCP_char_traits_wchar_eof(void)
330 /* ?not_eof@?$char_traits@_W@std@@SAGABG@Z */
331 /* ?not_eof@?$char_traits@_W@std@@SAGAEBG@Z */
332 unsigned short CDECL
MSVCP_char_traits_wchar_not_eof(const unsigned short *in
)
334 return (*in
==WEOF
? !WEOF
: *in
);
338 /* char_traits<unsigned short> */
339 /* ?assign@?$char_traits@G@std@@SAXAAGABG@Z */
340 /* ?assign@?$char_traits@G@std@@SAXAEAGAEBG@Z */
341 void CDECL
MSVCP_char_traits_short_assign(unsigned short *ch
,
342 const unsigned short *assign
)
347 /* ?eq@?$char_traits@G@std@@SA_NABG0@Z */
348 /* ?eq@?$char_traits@G@std@@SA_NAEBG0@Z */
349 MSVCP_bool CDECL
MSVCP_char_traits_short_eq(const unsigned short *ch1
,
350 const unsigned short *ch2
)
355 /* ?lt@?$char_traits@G@std@@SA_NABG0@Z */
356 /* ?lt@?$char_traits@G@std@@SA_NAEBG0@Z */
357 MSVCP_bool CDECL
MSVCP_char_traits_short_lt(const unsigned short *ch1
,
358 const unsigned short *ch2
)
363 /* ?compare@?$char_traits@G@std@@SAHPBG0I@Z */
364 /* ?compare@?$char_traits@G@std@@SAHPEBG0_K@Z */
365 int CDECL
MSVCP_char_traits_short_compare(const unsigned short *s1
,
366 const unsigned short *s2
, MSVCP_size_t count
)
370 for(i
=0; i
<count
; i
++)
372 return (s1
[i
] < s2
[i
] ? -1 : 1);
377 /* ?length@?$char_traits@G@std@@SAIPBG@Z */
378 /* ?length@?$char_traits@G@std@@SA_KPEBG@Z */
379 MSVCP_size_t CDECL
MSVCP_char_traits_short_length(const unsigned short *str
)
383 for(len
=0; str
[len
]; len
++);
388 /* ?_Copy_s@?$char_traits@G@std@@SAPAGPAGIPBGI@Z */
389 /* ?_Copy_s@?$char_traits@G@std@@SAPEAGPEAG_KPEBG1@Z */
390 unsigned short * CDECL
MSVCP_char_traits_short__Copy_s(unsigned short *dest
,
391 MSVCP_size_t size
, const unsigned short *src
, MSVCP_size_t count
)
394 _invalid_parameter(NULL
, NULL
, NULL
, 0, 0);
398 return memcpy(dest
, src
, count
* sizeof(unsigned short));
401 /* ?copy@?$char_traits@G@std@@SAPAGPAGPBGI@Z */
402 /* ?copy@?$char_traits@G@std@@SAPEAGPEAGPEBG_K@Z */
403 unsigned short* CDECL
MSVCP_char_traits_short_copy(unsigned short *dest
,
404 const unsigned short *src
, MSVCP_size_t count
)
406 return MSVCP_char_traits_short__Copy_s(dest
, count
, src
, count
);
409 /* ?find@?$char_traits@G@std@@SAPBGPBGIABG@Z */
410 /* ?find@?$char_traits@G@std@@SAPEBGPEBG_KAEBG@Z */
411 const unsigned short* CDECL
MSVCP_char_traits_short_find(
412 const unsigned short *str
, MSVCP_size_t range
, const unsigned short *c
)
416 for(i
=0; i
<range
; i
++)
423 /* ?_Move_s@?$char_traits@G@std@@SAPAGPAGIPBGI@Z */
424 /* ?_Move_s@?$char_traits@G@std@@SAPEAGPEAG_KPEBG1@Z */
425 unsigned short* CDECL
MSVCP_char_traits_short__Move_s(unsigned short *dest
,
426 MSVCP_size_t size
, const unsigned short *src
, MSVCP_size_t count
)
429 _invalid_parameter(NULL
, NULL
, NULL
, 0, 0);
433 return memmove(dest
, src
, count
* sizeof(unsigned short));
436 /* ?move@?$char_traits@G@std@@SAPAGPAGPBGI@Z */
437 /* ?move@?$char_traits@G@std@@SAPEAGPEAGPEBG_K@Z */
438 unsigned short* CDECL
MSVCP_char_traits_short_move(unsigned short *dest
,
439 const unsigned short *src
, MSVCP_size_t count
)
441 return MSVCP_char_traits_short__Move_s(dest
, count
, src
, count
);
444 /* ?assign@?$char_traits@G@std@@SAPAGPAGIG@Z */
445 /* ?assign@?$char_traits@G@std@@SAPEAGPEAG_KG@Z */
446 unsigned short* CDECL
MSVCP_char_traits_short_assignn(unsigned short *str
,
447 MSVCP_size_t num
, unsigned short c
)
457 /* ?to_char_type@?$char_traits@G@std@@SAGABG@Z */
458 /* ?to_char_type@?$char_traits@G@std@@SAGAEBG@Z */
459 unsigned short CDECL
MSVCP_char_traits_short_to_char_type(const unsigned short *i
)
464 /* ?to_int_type@?$char_traits@G@std@@SAGABG@Z */
465 /* ?to_int_type@?$char_traits@G@std@@SAGAEBG@Z */
466 unsigned short CDECL
MSVCP_char_traits_short_to_int_type(const unsigned short *ch
)
471 /* ?eq_int_type@?$char_traits@G@std@@SA_NABG0@Z */
472 /* ?eq_int_type@?$char_traits@G@std@@SA_NAEBG0@Z */
473 MSVCP_bool CDECL
MSVCP_char_traits_short_eq_int_type(unsigned short *i1
,
479 /* ?eof@?$char_traits@G@std@@SAGXZ */
480 unsigned short CDECL
MSVCP_char_traits_short_eof(void)
485 /* ?not_eof@?$char_traits@G@std@@SAGABG@Z */
486 /* ?not_eof@?$char_traits@G@std@@SAGAEBG@Z */
487 unsigned short CDECL
MSVCP_char_traits_short_not_eof(const unsigned short *in
)
489 return (*in
==(unsigned short)-1 ? 0 : *in
);
494 /* ?_Xlen@_String_base@std@@SAXXZ */
495 void CDECL
MSVCP__String_base_Xlen(void)
497 static const char msg
[] = "string too long";
500 throw_exception(EXCEPTION_LENGTH_ERROR
, msg
);
503 /* ?_Xran@_String_base@std@@SAXXZ */
504 void CDECL
MSVCP__String_base_Xran(void)
506 static const char msg
[] = "invalid string position";
509 throw_exception(EXCEPTION_OUT_OF_RANGE
, msg
);
512 /* ?_Xinvarg@_String_base@std@@SAXXZ */
513 void CDECL
MSVCP__String_base_Xinvarg(void)
515 static const char msg
[] = "invalid string argument";
518 throw_exception(EXCEPTION_INVALID_ARGUMENT
, msg
);
522 /* basic_string<char, char_traits<char>, allocator<char>> */
523 /* ?npos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@2IB */
524 /* ?npos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@2_KB */
525 const MSVCP_size_t MSVCP_basic_string_char_npos
= -1;
527 /* ?_Myptr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEPADXZ */
528 /* ?_Myptr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAPEADXZ */
529 DEFINE_THISCALL_WRAPPER(basic_string_char_ptr
, 4)
530 char* __thiscall
basic_string_char_ptr(basic_string_char
*this)
532 if(this->res
== BUF_SIZE_CHAR
-1)
533 return this->data
.buf
;
534 return this->data
.ptr
;
537 /* ?_Myptr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IBEPBDXZ */
538 /* ?_Myptr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEBAPEBDXZ */
539 DEFINE_THISCALL_WRAPPER(basic_string_char_const_ptr
, 4)
540 const char* __thiscall
basic_string_char_const_ptr(const basic_string_char
*this)
542 if(this->res
== BUF_SIZE_CHAR
-1)
543 return this->data
.buf
;
544 return this->data
.ptr
;
547 /* ?_Eos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXI@Z */
548 /* ?_Eos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAX_K@Z */
549 DEFINE_THISCALL_WRAPPER(basic_string_char_eos
, 8)
550 void __thiscall
basic_string_char_eos(basic_string_char
*this, MSVCP_size_t len
)
552 static const char nullbyte
= '\0';
555 MSVCP_char_traits_char_assign(basic_string_char_ptr(this)+len
, &nullbyte
);
558 /* ?_Inside@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAE_NPBD@Z */
559 /* ?_Inside@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAA_NPEBD@Z */
560 DEFINE_THISCALL_WRAPPER(basic_string_char_inside
, 8)
561 MSVCP_bool __thiscall
basic_string_char_inside(
562 basic_string_char
*this, const char *ptr
)
564 char *cstr
= basic_string_char_ptr(this);
566 return (ptr
<cstr
|| ptr
>=cstr
+this->size
) ? FALSE
: TRUE
;
569 /* ?_Tidy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEX_NI@Z */
570 /* ?_Tidy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAX_N_K@Z */
571 DEFINE_THISCALL_WRAPPER(basic_string_char_tidy
, 12)
572 void __thiscall
basic_string_char_tidy(basic_string_char
*this,
573 MSVCP_bool built
, MSVCP_size_t new_size
)
575 if(built
&& BUF_SIZE_CHAR
<=this->res
) {
576 char *ptr
= this->data
.ptr
;
579 MSVCP_char_traits_char__Copy_s(this->data
.buf
, BUF_SIZE_CHAR
, ptr
, new_size
);
580 MSVCP_allocator_char_deallocate(this->allocator
, ptr
, this->res
+1);
583 this->res
= BUF_SIZE_CHAR
-1;
584 basic_string_char_eos(this, new_size
);
587 /* Exported only from msvcp60/70 */
588 /* ?_Tidy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEX_N@Z */
589 /* ?_Tidy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAX_N@Z */
590 DEFINE_THISCALL_WRAPPER(basic_string_char_tidy_built
, 8)
591 void __thiscall
basic_string_char_tidy_built(basic_string_char
*this, MSVCP_bool built
)
593 basic_string_char_tidy(this, built
, 0);
596 /* ?_Grow@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAE_NI_N@Z */
597 /* ?_Grow@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAA_N_K_N@Z */
598 DEFINE_THISCALL_WRAPPER(basic_string_char_grow
, 12)
599 MSVCP_bool __thiscall
basic_string_char_grow(
600 basic_string_char
*this, MSVCP_size_t new_size
, MSVCP_bool trim
)
602 if(this->res
< new_size
) {
603 MSVCP_size_t new_res
= new_size
, len
= this->size
;
608 if(new_res
/3 < this->res
/2)
609 new_res
= this->res
+ this->res
/2;
611 ptr
= MSVCP_allocator_char_allocate(this->allocator
, new_res
+1);
613 ptr
= MSVCP_allocator_char_allocate(this->allocator
, new_size
+1);
617 ERR("Out of memory\n");
618 basic_string_char_tidy(this, TRUE
, 0);
622 MSVCP_char_traits_char__Copy_s(ptr
, new_size
,
623 basic_string_char_ptr(this), this->size
);
624 basic_string_char_tidy(this, TRUE
, 0);
625 this->data
.ptr
= ptr
;
626 this->res
= new_size
;
627 basic_string_char_eos(this, len
);
628 } else if(trim
&& new_size
< BUF_SIZE_CHAR
)
629 basic_string_char_tidy(this, TRUE
,
630 new_size
<this->size
? new_size
: this->size
);
631 else if(new_size
== 0)
632 basic_string_char_eos(this, 0);
637 /* ?_Copy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXII@Z */
638 /* ?_Copy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAX_K0@Z */
639 DEFINE_THISCALL_WRAPPER(basic_string_char__Copy
, 12)
640 void __thiscall
basic_string_char__Copy(basic_string_char
*this,
641 MSVCP_size_t new_size
, MSVCP_size_t copy_len
)
643 TRACE("%p %lu %lu\n", this, new_size
, copy_len
);
645 if(!basic_string_char_grow(this, new_size
, FALSE
))
647 basic_string_char_eos(this, copy_len
);
650 /* ?_Pdif@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KAIV?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@0@Z */
651 /* ?_Pdif@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KA_KV?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@0@Z */
652 MSVCP_size_t __cdecl
MSVCP_basic_string_char_Pdif(String_iterator_char i1
, String_iterator_char i2
)
654 TRACE("(%p %p) (%p %p)\n", i1
.bstr
, i1
.pos
, i2
.bstr
, i2
.pos
);
656 if((!i1
.bstr
&& i1
.pos
) || i1
.bstr
!=i2
.bstr
) {
657 _invalid_parameter(NULL
, NULL
, NULL
, 0, 0);
661 return !i1
.pos
? 0 : i1
.pos
-i2
.pos
;
664 /* ?get_allocator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AV?$allocator@D@2@XZ */
665 /* ?get_allocator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA?AV?$allocator@D@2@XZ */
666 DEFINE_THISCALL_WRAPPER(basic_string_char_get_allocator
, 8)
667 allocator
* __thiscall
basic_string_char_get_allocator(const basic_string_char
*this, allocator
*ret
)
673 /* ?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@II@Z */
674 /* ?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0@Z */
675 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_erase
, 12)
676 basic_string_char
* __thiscall
MSVCP_basic_string_char_erase(
677 basic_string_char
*this, MSVCP_size_t pos
, MSVCP_size_t len
)
679 TRACE("%p %lu %lu\n", this, pos
, len
);
682 MSVCP__String_base_Xran();
684 if(len
> this->size
-pos
)
685 len
= this->size
-pos
;
688 MSVCP_char_traits_char__Move_s(basic_string_char_ptr(this)+pos
,
689 this->res
-pos
, basic_string_char_ptr(this)+pos
+len
,
691 basic_string_char_eos(this, this->size
-len
);
697 /* ?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AV?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@0@Z */
698 /* ?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA?AV?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@0@Z */
699 DEFINE_THISCALL_WRAPPER(basic_string_char_erase_iter_range
, 24)
700 String_iterator_char
* __thiscall
basic_string_char_erase_iter_range(basic_string_char
*this,
701 String_iterator_char
*ret
, String_iterator_char beg
, String_iterator_char end
)
706 ret
->pos
= basic_string_char_ptr(this);
707 off
= MSVCP_basic_string_char_Pdif(beg
, *ret
);
709 MSVCP_basic_string_char_erase(this, off
, MSVCP_basic_string_char_Pdif(end
, beg
));
712 ret
->pos
= basic_string_char_ptr(this)+off
;
716 /* ?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AV?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z */
717 /* ?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA?AV?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z */
718 DEFINE_THISCALL_WRAPPER(basic_string_char_erase_iter
, 16)
719 String_iterator_char
* __thiscall
basic_string_char_erase_iter(basic_string_char
*this,
720 String_iterator_char
*ret
, String_iterator_char pos
)
725 ret
->pos
= basic_string_char_ptr(this);
726 off
= MSVCP_basic_string_char_Pdif(pos
, *ret
);
728 MSVCP_basic_string_char_erase(this, off
, 1);
731 ret
->pos
= basic_string_char_ptr(this)+off
;
735 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@II@Z */
736 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@AEBV12@_K1@Z */
737 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign_substr
, 16)
738 basic_string_char
* __thiscall
MSVCP_basic_string_char_assign_substr(
739 basic_string_char
*this, const basic_string_char
*assign
,
740 MSVCP_size_t pos
, MSVCP_size_t len
)
742 TRACE("%p %p %lu %lu\n", this, assign
, pos
, len
);
744 if(assign
->size
< pos
)
745 MSVCP__String_base_Xran();
747 if(len
> assign
->size
-pos
)
748 len
= assign
->size
-pos
;
751 MSVCP_basic_string_char_erase(this, pos
+len
, MSVCP_basic_string_char_npos
);
752 MSVCP_basic_string_char_erase(this, 0, pos
);
753 } else if(basic_string_char_grow(this, len
, FALSE
)) {
754 MSVCP_char_traits_char__Copy_s(basic_string_char_ptr(this),
755 this->res
, basic_string_char_const_ptr(assign
)+pos
, len
);
756 basic_string_char_eos(this, len
);
762 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@@Z */
763 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@AEBV12@@Z */
764 /* ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z */
765 /* ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV01@AEBV01@@Z */
766 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign
, 8)
767 basic_string_char
* __thiscall
MSVCP_basic_string_char_assign(
768 basic_string_char
*this, const basic_string_char
*assign
)
770 return MSVCP_basic_string_char_assign_substr(this, assign
,
771 0, MSVCP_basic_string_char_npos
);
774 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBDI@Z */
775 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@PEBD_K@Z */
776 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign_cstr_len
, 12)
777 basic_string_char
* __thiscall
MSVCP_basic_string_char_assign_cstr_len(
778 basic_string_char
*this, const char *str
, MSVCP_size_t len
)
780 TRACE("%p %s %lu\n", this, debugstr_a(str
), len
);
782 if(basic_string_char_inside(this, str
))
783 return MSVCP_basic_string_char_assign_substr(this, this,
784 str
-basic_string_char_ptr(this), len
);
785 else if(basic_string_char_grow(this, len
, FALSE
)) {
786 MSVCP_char_traits_char__Copy_s(basic_string_char_ptr(this),
787 this->res
, str
, len
);
788 basic_string_char_eos(this, len
);
794 /* ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@D@Z */
795 /* ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV01@D@Z */
796 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign_ch
, 8)
797 basic_string_char
* __thiscall
MSVCP_basic_string_char_assign_ch(
798 basic_string_char
*this, char ch
)
800 return MSVCP_basic_string_char_assign_cstr_len(this, &ch
, 1);
803 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBD@Z */
804 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@PEBD@Z */
805 /* ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@PBD@Z */
806 /* ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV01@PEBD@Z */
807 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign_cstr
, 8)
808 basic_string_char
* __thiscall
MSVCP_basic_string_char_assign_cstr(
809 basic_string_char
*this, const char *str
)
811 return MSVCP_basic_string_char_assign_cstr_len(this, str
,
812 MSVCP_char_traits_char_length(str
));
815 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ID@Z */
816 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_KD@Z */
817 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assignn
, 12)
818 basic_string_char
* __thiscall
MSVCP_basic_string_char_assignn(
819 basic_string_char
*this, MSVCP_size_t count
, char ch
)
821 TRACE("%p %ld %c\n", this, count
, ch
);
823 basic_string_char_grow(this, count
, FALSE
);
824 MSVCP_char_traits_char_assignn(basic_string_char_ptr(this), count
, ch
);
825 basic_string_char_eos(this, count
);
829 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBD0@Z */
830 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@PEBD0@Z */
831 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign_ptr_ptr
, 12)
832 basic_string_char
* __thiscall
MSVCP_basic_string_char_assign_ptr_ptr(
833 basic_string_char
*this, const char *first
, const char *last
)
835 return MSVCP_basic_string_char_assign_cstr_len(this, first
, last
-first
);
838 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@0@Z */
839 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@0@Z */
840 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign_iter
, 20)
841 basic_string_char
* __thiscall
MSVCP_basic_string_char_assign_iter(basic_string_char
*this,
842 String_iterator_char beg
, String_iterator_char end
)
844 return MSVCP_basic_string_char_assign_ptr_ptr(this, beg
.pos
, end
.pos
);
847 /* ?_Chassign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXIID@Z */
848 /* ?_Chassign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAX_K0D@Z */
849 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_Chassign
, 16)
850 void __thiscall
MSVCP_basic_string_char_Chassign(basic_string_char
*this,
851 MSVCP_size_t off
, MSVCP_size_t count
, char ch
)
853 TRACE("%p %lu %lu %c\n", this, off
, count
, ch
);
854 MSVCP_char_traits_char_assignn(basic_string_char_ptr(this)+off
, count
, ch
);
857 /* ?_Copy_s@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPADIII@Z */
858 /* ?_Copy_s@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEAD_K11@Z */
859 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_Copy_s
, 20)
860 MSVCP_size_t __thiscall
MSVCP_basic_string_char_Copy_s(const basic_string_char
*this,
861 char *dest
, MSVCP_size_t size
, MSVCP_size_t count
, MSVCP_size_t off
)
863 TRACE("%p %p %lu %lu %lu\n", this, dest
, size
, count
, off
);
866 MSVCP__String_base_Xran();
868 if(count
> this->size
-off
)
869 count
= this->size
-off
;
871 MSVCP_char_traits_char__Copy_s(dest
, size
,
872 basic_string_char_const_ptr(this)+off
, count
);
876 /* ?copy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPADII@Z */
877 /* ?copy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEAD_K1@Z */
878 DEFINE_THISCALL_WRAPPER(basic_string_char_copy
, 16)
879 MSVCP_size_t __thiscall
basic_string_char_copy(const basic_string_char
*this,
880 char *dest
, MSVCP_size_t count
, MSVCP_size_t off
)
882 return MSVCP_basic_string_char_Copy_s(this, dest
, count
, count
, off
);
885 /* ?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ */
886 /* ?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAPEBDXZ */
887 /* ?data@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ */
888 /* ?data@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAPEBDXZ */
889 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_c_str
, 4)
890 const char* __thiscall
MSVCP_basic_string_char_c_str(const basic_string_char
*this)
893 return basic_string_char_const_ptr(this);
896 /* ?capacity@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ */
897 /* ?capacity@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KXZ */
898 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_capacity
, 4)
899 MSVCP_size_t __thiscall
MSVCP_basic_string_char_capacity(basic_string_char
*this)
905 /* ?reserve@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXI@Z */
906 /* ?reserve@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAX_K@Z */
907 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_reserve
, 8)
908 void __thiscall
MSVCP_basic_string_char_reserve(basic_string_char
*this, MSVCP_size_t size
)
912 TRACE("%p %ld\n", this, size
);
918 basic_string_char_grow(this, size
, FALSE
);
919 basic_string_char_eos(this, len
);
922 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ */
923 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@XZ */
924 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor
, 4)
925 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor(basic_string_char
*this)
929 basic_string_char_tidy(this, FALSE
, 0);
933 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z */
934 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@AEBV01@@Z */
935 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_copy_ctor
, 8)
936 basic_string_char
* __thiscall
MSVCP_basic_string_char_copy_ctor(
937 basic_string_char
*this, const basic_string_char
*copy
)
939 TRACE("%p %p\n", this, copy
);
941 basic_string_char_tidy(this, FALSE
, 0);
942 MSVCP_basic_string_char_assign(this, copy
);
946 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z */
947 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@PEBD@Z */
948 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_cstr
, 8)
949 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_cstr(
950 basic_string_char
*this, const char *str
)
952 TRACE("%p %s\n", this, debugstr_a(str
));
954 basic_string_char_tidy(this, FALSE
, 0);
955 MSVCP_basic_string_char_assign_cstr(this, str
);
959 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBDABV?$allocator@D@1@@Z */
960 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@PEBDAEBV?$allocator@D@1@@Z */
961 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_cstr_alloc
, 12)
962 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_cstr_alloc(
963 basic_string_char
*this, const char *str
, const void *alloc
)
965 return MSVCP_basic_string_char_ctor_cstr(this, str
);
968 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBDI@Z */
969 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@PEBD_K@Z */
970 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_cstr_len
, 12)
971 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_cstr_len(
972 basic_string_char
*this, const char *str
, MSVCP_size_t len
)
974 TRACE("%p %s %ld\n", this, debugstr_a(str
), len
);
976 basic_string_char_tidy(this, FALSE
, 0);
977 MSVCP_basic_string_char_assign_cstr_len(this, str
, len
);
981 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBDIABV?$allocator@D@1@@Z */
982 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@PEBD_KAEBV?$allocator@D@1@@Z */
983 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_cstr_len_alloc
, 16)
984 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_cstr_len_alloc(
985 basic_string_char
*this, const char *str
, MSVCP_size_t len
, const void *alloc
)
987 return MSVCP_basic_string_char_ctor_cstr_len(this, str
, len
);
990 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@II@Z */
991 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@AEBV01@_K1@Z */
992 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_substr
, 16)
993 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_substr(
994 basic_string_char
*this, const basic_string_char
*assign
,
995 MSVCP_size_t pos
, MSVCP_size_t len
)
997 TRACE("%p %p %lu %lu\n", this, assign
, pos
, len
);
999 basic_string_char_tidy(this, FALSE
, 0);
1000 MSVCP_basic_string_char_assign_substr(this, assign
, pos
, len
);
1004 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@IIABV?$allocator@D@1@@Z */
1005 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@AEBV01@_K1AEBV?$allocator@D@1@@Z */
1006 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_substr_alloc
, 20)
1007 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_substr_alloc(
1008 basic_string_char
*this, const basic_string_char
*assign
,
1009 MSVCP_size_t pos
, MSVCP_size_t len
, const void *alloc
)
1011 return MSVCP_basic_string_char_ctor_substr(this, assign
, pos
, len
);
1014 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV?$allocator@D@1@@Z */
1015 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@AEBV?$allocator@D@1@@Z */
1016 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_alloc
, 8)
1017 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_alloc(
1018 basic_string_char
*this, const void *alloc
)
1020 TRACE("%p %p\n", this, alloc
);
1022 basic_string_char_tidy(this, FALSE
, 0);
1026 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ID@Z */
1027 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@_KD@Z */
1028 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_ch
, 12)
1029 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_ch(basic_string_char
*this,
1030 MSVCP_size_t count
, char ch
)
1032 TRACE("%p %ld %c\n", this, count
, ch
);
1034 basic_string_char_tidy(this, FALSE
, 0);
1035 MSVCP_basic_string_char_assignn(this, count
, ch
);
1039 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@IDABV?$allocator@D@1@@Z */
1040 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@_KDAEBV?$allocator@D@1@@Z */
1041 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_ch_alloc
, 16)
1042 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_ch_alloc(basic_string_char
*this,
1043 MSVCP_size_t count
, char ch
, const void *alloc
)
1045 return MSVCP_basic_string_char_ctor_ch(this, count
, ch
);
1048 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD0@Z */
1049 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@PEBD0@Z */
1050 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_ptr_ptr
, 12)
1051 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_ptr_ptr(basic_string_char
*this,
1052 const char *first
, const char *last
)
1054 return MSVCP_basic_string_char_ctor_cstr_len(this, first
, last
-first
);
1057 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@1@0@Z */
1058 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@1@0@Z */
1059 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_iter
, 20)
1060 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_iter(basic_string_char
*this,
1061 String_iterator_char beg
, String_iterator_char end
)
1063 return MSVCP_basic_string_char_ctor_cstr_len(this, beg
.pos
, end
.pos
-beg
.pos
);
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(const basic_string_char
*this)
1082 TRACE("%p\n", this);
1086 /* ?max_size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ */
1087 /* ?max_size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KXZ */
1088 DEFINE_THISCALL_WRAPPER(basic_string_char_max_size
, 4)
1089 MSVCP_size_t __thiscall
basic_string_char_max_size(const basic_string_char
*this)
1091 TRACE("%p\n", this);
1092 return MSVCP_allocator_char_max_size(this->allocator
)-1;
1095 /* ?empty@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE_NXZ */
1096 /* ?empty@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_NXZ */
1097 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_empty
, 4)
1098 MSVCP_bool __thiscall
MSVCP_basic_string_char_empty(basic_string_char
*this)
1100 TRACE("%p\n", this);
1101 return this->size
== 0;
1104 /* ?swap@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXAAV12@@Z */
1105 /* ?swap@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXAEAV12@@Z */
1106 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_swap
, 8)
1107 void __thiscall
MSVCP_basic_string_char_swap(basic_string_char
*this, basic_string_char
*str
)
1110 char tmp
[sizeof(this->data
)];
1111 const MSVCP_size_t size
= this->size
;
1112 const MSVCP_size_t res
= this->res
;
1114 memcpy(tmp
, this->data
.buf
, sizeof(this->data
));
1115 memcpy(this->data
.buf
, str
->data
.buf
, sizeof(this->data
));
1116 memcpy(str
->data
.buf
, tmp
, sizeof(this->data
));
1118 this->size
= str
->size
;
1119 this->res
= str
->res
;
1126 /* ?substr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AV12@II@Z */
1127 /* ?substr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA?AV12@_K0@Z */
1128 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_substr
, 16)
1129 basic_string_char
* __thiscall
MSVCP_basic_string_char_substr(basic_string_char
*this,
1130 basic_string_char
*ret
, MSVCP_size_t off
, MSVCP_size_t len
)
1132 TRACE("%p %lu %lu\n", this, off
, len
);
1134 MSVCP_basic_string_char_ctor_substr(ret
, this, off
, len
);
1138 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@II@Z */
1139 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@AEBV12@_K1@Z */
1140 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_substr
, 16)
1141 basic_string_char
* __thiscall
MSVCP_basic_string_char_append_substr(basic_string_char
*this,
1142 const basic_string_char
*append
, MSVCP_size_t offset
, MSVCP_size_t count
)
1144 TRACE("%p %p %lu %lu\n", this, append
, offset
, count
);
1146 if(append
->size
< offset
)
1147 MSVCP__String_base_Xran();
1149 if(count
> append
->size
-offset
)
1150 count
= append
->size
-offset
;
1152 if(MSVCP_basic_string_char_npos
-this->size
<=count
|| this->size
+count
<this->size
)
1153 MSVCP__String_base_Xlen();
1155 if(basic_string_char_grow(this, this->size
+count
, FALSE
)) {
1156 MSVCP_char_traits_char__Copy_s(basic_string_char_ptr(this)+this->size
,
1157 this->res
-this->size
, basic_string_char_const_ptr(append
)+offset
, count
);
1158 basic_string_char_eos(this, this->size
+count
);
1164 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@@Z */
1165 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@AEBV12@@Z */
1166 /* ??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z */
1167 /* ??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV01@AEBV01@@Z */
1168 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append
, 8)
1169 basic_string_char
* __thiscall
MSVCP_basic_string_char_append(
1170 basic_string_char
*this, const basic_string_char
*append
)
1172 return MSVCP_basic_string_char_append_substr(this, append
,
1173 0, MSVCP_basic_string_char_npos
);
1176 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBDI@Z */
1177 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@PEBD_K@Z */
1178 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_cstr_len
, 12)
1179 basic_string_char
* __thiscall
MSVCP_basic_string_char_append_cstr_len(
1180 basic_string_char
*this, const char *append
, MSVCP_size_t count
)
1182 TRACE("%p %s %lu\n", this, debugstr_a(append
), count
);
1184 if(basic_string_char_inside(this, append
))
1185 return MSVCP_basic_string_char_append_substr(this, this,
1186 append
-basic_string_char_ptr(this), count
);
1188 if(MSVCP_basic_string_char_npos
-this->size
<=count
|| this->size
+count
<this->size
)
1189 MSVCP__String_base_Xlen();
1191 if(basic_string_char_grow(this, this->size
+count
, FALSE
)) {
1192 MSVCP_char_traits_char__Copy_s(basic_string_char_ptr(this)+this->size
,
1193 this->res
-this->size
, append
, count
);
1194 basic_string_char_eos(this, this->size
+count
);
1200 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBD@Z */
1201 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@PEBD@Z */
1202 /* ??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@PBD@Z */
1203 /* ??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV01@PEBD@Z */
1204 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_cstr
, 8)
1205 basic_string_char
* __thiscall
MSVCP_basic_string_char_append_cstr(
1206 basic_string_char
*this, const char *append
)
1208 return MSVCP_basic_string_char_append_cstr_len(this, append
,
1209 MSVCP_char_traits_char_length(append
));
1212 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBD0@Z */
1213 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@PEBD0@Z */
1214 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_beg_end
, 12)
1215 basic_string_char
* __thiscall
MSVCP_basic_string_char_append_beg_end(
1216 basic_string_char
*this, const char *beg
, const char *end
)
1218 return MSVCP_basic_string_char_append_cstr_len(this, beg
, end
-beg
);
1221 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@0@Z */
1222 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@0@Z */
1223 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_iter
, 20)
1224 basic_string_char
* __thiscall
MSVCP_basic_string_char_append_iter(
1225 basic_string_char
*this, String_iterator_char beg
, String_iterator_char end
)
1227 return MSVCP_basic_string_char_append_cstr_len(this, beg
.pos
, end
.pos
-beg
.pos
);
1230 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ID@Z */
1231 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_KD@Z */
1232 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_len_ch
, 12)
1233 basic_string_char
* __thiscall
MSVCP_basic_string_char_append_len_ch(
1234 basic_string_char
*this, MSVCP_size_t count
, char ch
)
1236 TRACE("%p %lu %c\n", this, count
, ch
);
1238 if(MSVCP_basic_string_char_npos
-this->size
<= count
)
1239 MSVCP__String_base_Xlen();
1241 if(basic_string_char_grow(this, this->size
+count
, FALSE
)) {
1242 MSVCP_char_traits_char_assignn(basic_string_char_ptr(this)+this->size
, count
, ch
);
1243 basic_string_char_eos(this, this->size
+count
);
1249 /* ??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@D@Z */
1250 /* ??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV01@D@Z */
1251 /* ?push_back@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXD@Z */
1252 /* ?push_back@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXD@Z */
1253 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_ch
, 8)
1254 basic_string_char
* __thiscall
MSVCP_basic_string_char_append_ch(
1255 basic_string_char
*this, char ch
)
1257 return MSVCP_basic_string_char_append_len_ch(this, 1, ch
);
1260 /* ??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@PBD@Z */
1261 /* ??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@AEBV10@PEBD@Z */
1262 basic_string_char
* __cdecl
MSVCP_basic_string_char_concatenate_bstr_cstr(basic_string_char
*ret
,
1263 const basic_string_char
*left
, const char *right
)
1265 TRACE("%p %s\n", left
, debugstr_a(right
));
1267 MSVCP_basic_string_char_copy_ctor(ret
, left
);
1268 MSVCP_basic_string_char_append_cstr(ret
, right
);
1272 /* ??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBDABV10@@Z */
1273 /* ??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PEBDAEBV10@@Z */
1274 basic_string_char
* __cdecl
MSVCP_basic_string_char_concatenate_cstr_bstr(basic_string_char
*ret
,
1275 const char *left
, const basic_string_char
*right
)
1277 TRACE("%s %p\n", debugstr_a(left
), right
);
1279 MSVCP_basic_string_char_ctor_cstr(ret
, left
);
1280 MSVCP_basic_string_char_append(ret
, right
);
1284 /* ??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@0@Z */
1285 /* ??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@AEBV10@0@Z */
1286 basic_string_char
* __cdecl
MSVCP_basic_string_char_concatenate(basic_string_char
*ret
,
1287 const basic_string_char
*left
, const basic_string_char
*right
)
1289 TRACE("%p %p\n", left
, right
);
1291 MSVCP_basic_string_char_copy_ctor(ret
, left
);
1292 MSVCP_basic_string_char_append(ret
, right
);
1296 /* ??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@D@Z */
1297 /* ??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@AEBV10@D@Z */
1298 basic_string_char
* __cdecl
MSVCP_basic_string_char_concatenate_bstr_ch(basic_string_char
*ret
,
1299 const basic_string_char
*left
, char right
)
1301 TRACE("%p %c\n", left
, right
);
1303 MSVCP_basic_string_char_copy_ctor(ret
, left
);
1304 MSVCP_basic_string_char_append_ch(ret
, right
);
1308 /* ??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@DABV10@@Z */
1309 /* ??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@DAEBV10@@Z */
1310 basic_string_char
* __cdecl
MSVCP_basic_string_char_concatenate_ch_bstr(basic_string_char
*ret
,
1311 char left
, const basic_string_char
*right
)
1313 TRACE("%c %p\n", left
, right
);
1315 MSVCP_basic_string_char_ctor_cstr_len(ret
, &left
, 1);
1316 MSVCP_basic_string_char_append(ret
, right
);
1320 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEHIIPBDI@Z */
1321 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAH_K0PEBD0@Z */
1322 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_compare_substr_cstr_len
, 20)
1323 int __thiscall
MSVCP_basic_string_char_compare_substr_cstr_len(
1324 const basic_string_char
*this, MSVCP_size_t pos
, MSVCP_size_t num
,
1325 const char *str
, MSVCP_size_t count
)
1329 TRACE("%p %lu %lu %s %lu\n", this, pos
, num
, debugstr_a(str
), count
);
1331 if(this->size
< pos
)
1332 MSVCP__String_base_Xran();
1334 if(pos
+num
> this->size
)
1335 num
= this->size
-pos
;
1337 ans
= MSVCP_char_traits_char_compare(basic_string_char_const_ptr(this)+pos
,
1338 str
, num
>count
? count
: num
);
1344 else if(num
< count
)
1349 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEHIIPBD@Z */
1350 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAH_K0PEBD@Z */
1351 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_compare_substr_cstr
, 16)
1352 int __thiscall
MSVCP_basic_string_char_compare_substr_cstr(const basic_string_char
*this,
1353 MSVCP_size_t pos
, MSVCP_size_t num
, const char *str
)
1355 return MSVCP_basic_string_char_compare_substr_cstr_len(this, pos
, num
,
1356 str
, MSVCP_char_traits_char_length(str
));
1359 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEHPBD@Z */
1360 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAHPEBD@Z */
1361 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_compare_cstr
, 8)
1362 int __thiscall
MSVCP_basic_string_char_compare_cstr(
1363 const basic_string_char
*this, const char *str
)
1365 return MSVCP_basic_string_char_compare_substr_cstr_len(this, 0, this->size
,
1366 str
, MSVCP_char_traits_char_length(str
));
1369 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEHIIABV12@II@Z */
1370 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAH_K0AEBV12@00@Z */
1371 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_compare_substr_substr
, 24)
1372 int __thiscall
MSVCP_basic_string_char_compare_substr_substr(
1373 const basic_string_char
*this, MSVCP_size_t pos
, MSVCP_size_t num
,
1374 const basic_string_char
*compare
, MSVCP_size_t off
, MSVCP_size_t count
)
1376 TRACE("%p %lu %lu %p %lu %lu\n", this, pos
, num
, compare
, off
, count
);
1378 if(compare
->size
< off
)
1379 MSVCP__String_base_Xran();
1381 if(off
+count
> compare
->size
)
1382 count
= compare
->size
-off
;
1384 return MSVCP_basic_string_char_compare_substr_cstr_len(this, pos
, num
,
1385 basic_string_char_const_ptr(compare
)+off
, count
);
1388 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEHIIABV12@@Z */
1389 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAH_K0AEBV12@@Z */
1390 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_compare_substr
, 16)
1391 int __thiscall
MSVCP_basic_string_char_compare_substr(
1392 const basic_string_char
*this, MSVCP_size_t pos
, MSVCP_size_t num
,
1393 const basic_string_char
*compare
)
1395 return MSVCP_basic_string_char_compare_substr_cstr_len(this, pos
, num
,
1396 basic_string_char_const_ptr(compare
), compare
->size
);
1399 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEHABV12@@Z */
1400 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAHAEBV12@@Z */
1401 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_compare
, 8)
1402 int __thiscall
MSVCP_basic_string_char_compare(
1403 const basic_string_char
*this, const basic_string_char
*compare
)
1405 return MSVCP_basic_string_char_compare_substr_cstr_len(this, 0, this->size
,
1406 basic_string_char_const_ptr(compare
), compare
->size
);
1409 /* ??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z */
1410 /* ??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z */
1411 MSVCP_bool __cdecl
MSVCP_basic_string_char_equal(
1412 const basic_string_char
*left
, const basic_string_char
*right
)
1414 return MSVCP_basic_string_char_compare(left
, right
) == 0;
1417 /* ??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBD@Z */
1418 /* ??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PEBD@Z */
1419 MSVCP_bool __cdecl
MSVCP_basic_string_char_equal_str_cstr(
1420 const basic_string_char
*left
, const char *right
)
1422 return MSVCP_basic_string_char_compare_cstr(left
, right
) == 0;
1425 /* ??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NPBDABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
1426 /* ??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NPEBDAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
1427 MSVCP_bool __cdecl
MSVCP_basic_string_char_equal_cstr_str(
1428 const char *left
, const basic_string_char
*right
)
1430 return MSVCP_basic_string_char_compare_cstr(right
, left
) == 0;
1433 /* ??$?9DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z */
1434 /* ??$?9DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z */
1435 MSVCP_bool __cdecl
MSVCP_basic_string_char_not_equal(
1436 const basic_string_char
*left
, const basic_string_char
*right
)
1438 return MSVCP_basic_string_char_compare(left
, right
) != 0;
1441 /* ??$?9DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBD@Z */
1442 /* ??$?9DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PEBD@Z */
1443 MSVCP_bool __cdecl
MSVCP_basic_string_char_not_equal_str_cstr(
1444 const basic_string_char
*left
, const char *right
)
1446 return MSVCP_basic_string_char_compare_cstr(left
, right
) != 0;
1449 /* ??$?9DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NPBDABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
1450 /* ??$?9DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NPEBDAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
1451 MSVCP_bool __cdecl
MSVCP_basic_string_char_not_equal_cstr_str(
1452 const char *left
, const basic_string_char
*right
)
1454 return MSVCP_basic_string_char_compare_cstr(right
, left
) != 0;
1457 /* ??$?MDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z */
1458 /* ??$?MDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z */
1459 MSVCP_bool __cdecl
MSVCP_basic_string_char_lower(
1460 const basic_string_char
*left
, const basic_string_char
*right
)
1462 return MSVCP_basic_string_char_compare(left
, right
) < 0;
1465 /* ??$?MDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBD@Z */
1466 /* ??$?MDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PEBD@Z */
1467 MSVCP_bool __cdecl
MSVCP_basic_string_char_lower_bstr_cstr(
1468 const basic_string_char
*left
, const char *right
)
1470 return MSVCP_basic_string_char_compare_cstr(left
, right
) < 0;
1473 /* ??$?MDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NPBDABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
1474 /* ??$?MDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NPEBDAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
1475 MSVCP_bool __cdecl
MSVCP_basic_string_char_lower_cstr_bstr(
1476 const char *left
, const basic_string_char
*right
)
1478 return MSVCP_basic_string_char_compare_cstr(right
, left
) > 0;
1481 /* ??$?NDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z */
1482 /* ??$?NDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z */
1483 MSVCP_bool __cdecl
MSVCP_basic_string_char_leq(
1484 const basic_string_char
*left
, const basic_string_char
*right
)
1486 return MSVCP_basic_string_char_compare(left
, right
) <= 0;
1489 /* ??$?NDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBD@Z */
1490 /* ??$?NDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PEBD@Z */
1491 MSVCP_bool __cdecl
MSVCP_basic_string_char_leq_bstr_cstr(
1492 const basic_string_char
*left
, const char *right
)
1494 return MSVCP_basic_string_char_compare_cstr(left
, right
) <= 0;
1497 /* ??$?NDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NPBDABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
1498 /* ??$?NDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NPEBDAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
1499 MSVCP_bool __cdecl
MSVCP_basic_string_char_leq_cstr_bstr(
1500 const char *left
, const basic_string_char
*right
)
1502 return MSVCP_basic_string_char_compare_cstr(right
, left
) >= 0;
1505 /* ??$?ODU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z */
1506 /* ??$?ODU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z */
1507 MSVCP_bool __cdecl
MSVCP_basic_string_char_greater(
1508 const basic_string_char
*left
, const basic_string_char
*right
)
1510 return MSVCP_basic_string_char_compare(left
, right
) > 0;
1513 /* ??$?ODU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBD@Z */
1514 /* ??$?ODU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PEBD@Z */
1515 MSVCP_bool __cdecl
MSVCP_basic_string_char_greater_bstr_cstr(
1516 const basic_string_char
*left
, const char *right
)
1518 return MSVCP_basic_string_char_compare_cstr(left
, right
) > 0;
1521 /* ??$?ODU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NPBDABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
1522 /* ??$?ODU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NPEBDAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
1523 MSVCP_bool __cdecl
MSVCP_basic_string_char_greater_cstr_bstr(
1524 const char *left
, const basic_string_char
*right
)
1526 return MSVCP_basic_string_char_compare_cstr(right
, left
) < 0;
1529 /* ??$?PDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z */
1530 /* ??$?PDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z */
1531 MSVCP_bool __cdecl
MSVCP_basic_string_char_geq(
1532 const basic_string_char
*left
, const basic_string_char
*right
)
1534 return MSVCP_basic_string_char_compare(left
, right
) >= 0;
1537 /* ??$?PDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBD@Z */
1538 /* ??$?PDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PEBD@Z */
1539 MSVCP_bool __cdecl
MSVCP_basic_string_char_geq_bstr_cstr(
1540 const basic_string_char
*left
, const char *right
)
1542 return MSVCP_basic_string_char_compare_cstr(left
, right
) >= 0;
1545 /* ??$?PDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NPBDABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
1546 /* ??$?PDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NPEBDAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z */
1547 MSVCP_bool __cdecl
MSVCP_basic_string_char_geq_cstr_bstr(
1548 const char *left
, const basic_string_char
*right
)
1550 return MSVCP_basic_string_char_compare_cstr(right
, left
) <= 0;
1553 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z */
1554 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K1@Z */
1555 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_cstr_substr
, 16)
1556 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_cstr_substr(
1557 const basic_string_char
*this, const char *find
, MSVCP_size_t pos
, MSVCP_size_t len
)
1559 const char *p
, *end
;
1561 TRACE("%p %s %lu %lu\n", this, debugstr_a(find
), pos
, len
);
1563 if(len
==0 && pos
<=this->size
)
1566 end
= basic_string_char_const_ptr(this)+this->size
-len
+1;
1567 for(p
=basic_string_char_const_ptr(this)+pos
; p
<end
; p
++) {
1568 p
= MSVCP_char_traits_char_find(p
, end
-p
, find
);
1572 if(!MSVCP_char_traits_char_compare(p
, find
, len
))
1573 return p
-basic_string_char_const_ptr(this);
1576 return MSVCP_basic_string_char_npos
;
1579 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDI@Z */
1580 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K@Z */
1581 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_cstr_off
, 12)
1582 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_cstr_off(
1583 const basic_string_char
*this, const char *find
, MSVCP_size_t pos
)
1585 return MSVCP_basic_string_char_find_cstr_substr(this, find
, pos
,
1586 MSVCP_char_traits_char_length(find
));
1589 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIABV12@I@Z */
1590 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KAEBV12@_K@Z */
1591 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_off
, 12)
1592 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_off(
1593 const basic_string_char
*this, const basic_string_char
*find
, MSVCP_size_t off
)
1595 return MSVCP_basic_string_char_find_cstr_substr(this,
1596 basic_string_char_const_ptr(find
), off
, find
->size
);
1599 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIDI@Z */
1600 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KD_K@Z */
1601 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_ch
, 12)
1602 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_ch(
1603 const basic_string_char
*this, char ch
, MSVCP_size_t pos
)
1605 return MSVCP_basic_string_char_find_cstr_substr(this, &ch
, pos
, 1);
1608 /* ?rfind@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z */
1609 /* ?rfind@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K1@Z */
1610 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_rfind_cstr_substr
, 16)
1611 MSVCP_size_t __thiscall
MSVCP_basic_string_char_rfind_cstr_substr(
1612 const basic_string_char
*this, const char *find
, MSVCP_size_t pos
, MSVCP_size_t len
)
1614 const char *p
, *end
;
1616 TRACE("%p %s %lu %lu\n", this, debugstr_a(find
), pos
, len
);
1619 return pos
<this->size
? pos
: this->size
;
1621 if(len
> this->size
)
1622 return MSVCP_basic_string_char_npos
;
1624 if(pos
> this->size
-len
+1)
1625 pos
= this->size
-len
+1;
1626 end
= basic_string_char_const_ptr(this);
1627 for(p
=end
+pos
; p
>=end
; p
--) {
1628 if(*p
==*find
&& !MSVCP_char_traits_char_compare(p
, find
, len
))
1629 return p
-basic_string_char_const_ptr(this);
1632 return MSVCP_basic_string_char_npos
;
1635 /* ?rfind@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDI@Z */
1636 /* ?rfind@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K@Z */
1637 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_rfind_cstr_off
, 12)
1638 MSVCP_size_t __thiscall
MSVCP_basic_string_char_rfind_cstr_off(
1639 const basic_string_char
*this, const char *find
, MSVCP_size_t pos
)
1641 return MSVCP_basic_string_char_rfind_cstr_substr(this, find
, pos
,
1642 MSVCP_char_traits_char_length(find
));
1645 /* ?rfind@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIABV12@I@Z */
1646 /* ?rfind@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KAEBV12@_K@Z */
1647 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_rfind_off
, 12)
1648 MSVCP_size_t __thiscall
MSVCP_basic_string_char_rfind_off(
1649 const basic_string_char
*this, const basic_string_char
*find
, MSVCP_size_t off
)
1651 return MSVCP_basic_string_char_rfind_cstr_substr(this,
1652 basic_string_char_const_ptr(find
), off
, find
->size
);
1655 /* ?rfind@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIDI@Z */
1656 /* ?rfind@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KD_K@Z */
1657 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_rfind_ch
, 12)
1658 MSVCP_size_t __thiscall
MSVCP_basic_string_char_rfind_ch(
1659 const basic_string_char
*this, char ch
, MSVCP_size_t pos
)
1661 return MSVCP_basic_string_char_rfind_cstr_substr(this, &ch
, pos
, 1);
1664 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z */
1665 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K1@Z */
1666 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_of_cstr_substr
, 16)
1667 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_first_of_cstr_substr(
1668 const basic_string_char
*this, const char *find
, MSVCP_size_t off
, MSVCP_size_t len
)
1670 const char *p
, *end
;
1672 TRACE("%p %p %lu %lu\n", this, find
, off
, len
);
1674 if(len
>0 && off
<this->size
) {
1675 end
= basic_string_char_const_ptr(this)+this->size
;
1676 for(p
=basic_string_char_const_ptr(this)+off
; p
<end
; p
++)
1677 if(MSVCP_char_traits_char_find(find
, len
, p
))
1678 return p
-basic_string_char_const_ptr(this);
1681 return MSVCP_basic_string_char_npos
;
1684 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIABV12@I@Z */
1685 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KAEBV12@_K@Z */
1686 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_of
, 12)
1687 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_first_of(
1688 const basic_string_char
*this, const basic_string_char
*find
, MSVCP_size_t off
)
1690 return MSVCP_basic_string_char_find_first_of_cstr_substr(this,
1691 basic_string_char_const_ptr(find
), off
, find
->size
);
1694 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDI@Z */
1695 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K@Z */
1696 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_of_cstr
, 12)
1697 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_first_of_cstr(
1698 const basic_string_char
*this, const char *find
, MSVCP_size_t off
)
1700 return MSVCP_basic_string_char_find_first_of_cstr_substr(
1701 this, find
, off
, MSVCP_char_traits_char_length(find
));
1704 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIDI@Z */
1705 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KD_K@Z */
1706 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_of_ch
, 12)
1707 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_first_of_ch(
1708 const basic_string_char
*this, char ch
, MSVCP_size_t off
)
1710 return MSVCP_basic_string_char_find_first_of_cstr_substr(this, &ch
, off
, 1);
1713 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z */
1714 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K1@Z */
1715 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_not_of_cstr_substr
, 16)
1716 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_first_not_of_cstr_substr(
1717 const basic_string_char
*this, const char *find
, MSVCP_size_t off
, MSVCP_size_t len
)
1719 const char *p
, *end
;
1721 TRACE("%p %p %lu %lu\n", this, find
, off
, len
);
1723 if(off
<this->size
) {
1724 end
= basic_string_char_const_ptr(this)+this->size
;
1725 for(p
=basic_string_char_const_ptr(this)+off
; p
<end
; p
++)
1726 if(!MSVCP_char_traits_char_find(find
, len
, p
))
1727 return p
-basic_string_char_const_ptr(this);
1730 return MSVCP_basic_string_char_npos
;
1733 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIABV12@I@Z */
1734 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KAEBV12@_K@Z */
1735 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_not_of
, 12)
1736 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_first_not_of(
1737 const basic_string_char
*this, const basic_string_char
*find
, MSVCP_size_t off
)
1739 return MSVCP_basic_string_char_find_first_not_of_cstr_substr(this,
1740 basic_string_char_const_ptr(find
), off
, find
->size
);
1743 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDI@Z */
1744 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K@Z */
1745 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_not_of_cstr
, 12)
1746 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_first_not_of_cstr(
1747 const basic_string_char
*this, const char *find
, MSVCP_size_t off
)
1749 return MSVCP_basic_string_char_find_first_not_of_cstr_substr(
1750 this, find
, off
, MSVCP_char_traits_char_length(find
));
1753 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIDI@Z */
1754 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KD_K@Z */
1755 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_not_of_ch
, 12)
1756 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_first_not_of_ch(
1757 const basic_string_char
*this, char ch
, MSVCP_size_t off
)
1759 return MSVCP_basic_string_char_find_first_not_of_cstr_substr(this, &ch
, off
, 1);
1762 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z */
1763 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K1@Z */
1764 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_of_cstr_substr
, 16)
1765 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_last_of_cstr_substr(
1766 const basic_string_char
*this, const char *find
, MSVCP_size_t off
, MSVCP_size_t len
)
1768 const char *p
, *beg
;
1770 TRACE("%p %p %lu %lu\n", this, find
, off
, len
);
1772 if(len
>0 && this->size
>0) {
1773 if(off
>= this->size
)
1776 beg
= basic_string_char_const_ptr(this);
1777 for(p
=beg
+off
; p
>=beg
; p
--)
1778 if(MSVCP_char_traits_char_find(find
, len
, p
))
1782 return MSVCP_basic_string_char_npos
;
1785 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIABV12@I@Z */
1786 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KAEBV12@_K@Z */
1787 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_of
, 12)
1788 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_last_of(
1789 const basic_string_char
*this, const basic_string_char
*find
, MSVCP_size_t off
)
1791 return MSVCP_basic_string_char_find_last_of_cstr_substr(this,
1792 basic_string_char_const_ptr(find
), off
, find
->size
);
1795 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDI@Z */
1796 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K@Z */
1797 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_of_cstr
, 12)
1798 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_last_of_cstr(
1799 const basic_string_char
*this, const char *find
, MSVCP_size_t off
)
1801 return MSVCP_basic_string_char_find_last_of_cstr_substr(
1802 this, find
, off
, MSVCP_char_traits_char_length(find
));
1805 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIDI@Z */
1806 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KD_K@Z */
1807 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_of_ch
, 12)
1808 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_last_of_ch(
1809 const basic_string_char
*this, char ch
, MSVCP_size_t off
)
1811 return MSVCP_basic_string_char_find_last_of_cstr_substr(this, &ch
, off
, 1);
1814 /* ?find_last_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z */
1815 /* ?find_last_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K1@Z */
1816 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_not_of_cstr_substr
, 16)
1817 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_last_not_of_cstr_substr(
1818 const basic_string_char
*this, const char *find
, MSVCP_size_t off
, MSVCP_size_t len
)
1820 const char *p
, *beg
;
1822 TRACE("%p %p %lu %lu\n", this, find
, off
, len
);
1824 if(len
>0 && this->size
>0) {
1825 if(off
>= this->size
)
1828 beg
= basic_string_char_const_ptr(this);
1829 for(p
=beg
+off
; p
>=beg
; p
--)
1830 if(!MSVCP_char_traits_char_find(find
, len
, p
))
1834 return MSVCP_basic_string_char_npos
;
1837 /* ?find_last_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIABV12@I@Z */
1838 /* ?find_last_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KAEBV12@_K@Z */
1839 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_not_of
, 12)
1840 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_last_not_of(
1841 const basic_string_char
*this, const basic_string_char
*find
, MSVCP_size_t off
)
1843 return MSVCP_basic_string_char_find_last_not_of_cstr_substr(this,
1844 basic_string_char_const_ptr(find
), off
, find
->size
);
1847 /* ?find_last_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDI@Z */
1848 /* ?find_last_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K@Z */
1849 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_not_of_cstr
, 12)
1850 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_last_not_of_cstr(
1851 const basic_string_char
*this, const char *find
, MSVCP_size_t off
)
1853 return MSVCP_basic_string_char_find_last_not_of_cstr_substr(
1854 this, find
, off
, MSVCP_char_traits_char_length(find
));
1857 /* ?find_last_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIDI@Z */
1858 /* ?find_last_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KD_K@Z */
1859 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_not_of_ch
, 12)
1860 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_last_not_of_ch(
1861 const basic_string_char
*this, char ch
, MSVCP_size_t off
)
1863 return MSVCP_basic_string_char_find_last_not_of_cstr_substr(this, &ch
, off
, 1);
1866 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAADI@Z */
1867 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAD_K@Z */
1868 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_operator_at
, 8)
1869 char* __thiscall
MSVCP_basic_string_char_operator_at(
1870 basic_string_char
*this, MSVCP_size_t pos
)
1872 TRACE("%p %lu\n", this, pos
);
1874 assert(this->size
>= pos
);
1875 return basic_string_char_ptr(this)+pos
;
1878 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEABDI@Z */
1879 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAAEBD_K@Z */
1880 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_const_operator_at
, 8)
1881 const char* __thiscall
MSVCP_basic_string_char_const_operator_at(
1882 const basic_string_char
*this, MSVCP_size_t pos
)
1884 TRACE("%p %lu\n", this, pos
);
1886 assert(this->size
>= pos
);
1887 return basic_string_char_const_ptr(this)+pos
;
1890 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAADU_Size_type_nosscl@01@@Z */
1891 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEADU_Size_type_nosscl@01@@Z */
1892 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_operator_at_noverify
, 8)
1893 char* __thiscall
MSVCP_basic_string_char_operator_at_noverify(
1894 basic_string_char
*this, size_t_noverify pos
)
1896 TRACE("%p %lu\n", this, pos
.val
);
1897 return basic_string_char_ptr(this)+pos
.val
;
1900 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEABDU_Size_type_nosscl@01@@Z */
1901 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAAEBDU_Size_type_nosscl@01@@Z */
1902 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_operator_const_at_noverify
, 8)
1903 const char* __thiscall
MSVCP_basic_string_char_operator_const_at_noverify(
1904 const basic_string_char
*this, size_t_noverify pos
)
1906 TRACE("%p %lu\n", this, pos
.val
);
1907 return basic_string_char_const_ptr(this)+pos
.val
;
1910 /* ?at@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAADI@Z */
1911 /* ?at@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAD_K@Z */
1912 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_at
, 8)
1913 char* __thiscall
MSVCP_basic_string_char_at(
1914 basic_string_char
*this, MSVCP_size_t pos
)
1916 TRACE("%p %lu\n", this, pos
);
1918 if(this->size
<= pos
)
1919 MSVCP__String_base_Xran();
1921 return basic_string_char_ptr(this)+pos
;
1924 /* ?at@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEABDI@Z */
1925 /* ?at@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAAEBD_K@Z */
1926 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_const_at
, 8)
1927 const char* __thiscall
MSVCP_basic_string_char_const_at(
1928 const basic_string_char
*this, MSVCP_size_t pos
)
1930 TRACE("%p %lu\n", this, pos
);
1932 if(this->size
<= pos
)
1933 MSVCP__String_base_Xran();
1935 return basic_string_char_const_ptr(this)+pos
;
1938 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IIPBDI@Z */
1939 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0PEBD0@Z */
1940 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_cstr_len
, 20)
1941 basic_string_char
* __thiscall
basic_string_char_replace_cstr_len(basic_string_char
*this,
1942 MSVCP_size_t off
, MSVCP_size_t len
, const char *str
, MSVCP_size_t str_len
)
1944 MSVCP_size_t inside_pos
= -1;
1945 char *ptr
= basic_string_char_ptr(this);
1947 TRACE("%p %ld %ld %p %ld\n", this, off
, len
, str
, str_len
);
1949 if(this->size
< off
)
1950 MSVCP__String_base_Xran();
1952 if(len
> this->size
-off
)
1953 len
= this->size
-off
;
1955 if(MSVCP_basic_string_char_npos
-str_len
<= this->size
-len
)
1956 MSVCP__String_base_Xlen();
1958 if(basic_string_char_inside(this, str
))
1959 inside_pos
= str
-ptr
;
1962 basic_string_char_grow(this, this->size
-len
+str_len
, FALSE
);
1963 ptr
= basic_string_char_ptr(this);
1966 if(inside_pos
== -1) {
1967 memmove(ptr
+off
+str_len
, ptr
+off
+len
, (this->size
-off
-len
)*sizeof(char));
1968 memcpy(ptr
+off
, str
, str_len
*sizeof(char));
1969 } else if(len
>= str_len
) {
1970 memmove(ptr
+off
, ptr
+inside_pos
, str_len
*sizeof(char));
1971 memmove(ptr
+off
+str_len
, ptr
+off
+len
, (this->size
-off
-len
)*sizeof(char));
1975 memmove(ptr
+off
+str_len
, ptr
+off
+len
, (this->size
-off
-len
)*sizeof(char));
1977 if(inside_pos
< off
+len
) {
1978 size
= off
+len
-inside_pos
;
1981 memmove(ptr
+off
, ptr
+inside_pos
, size
*sizeof(char));
1987 memmove(ptr
+off
+size
, ptr
+off
+str_len
, (str_len
-size
)*sizeof(char));
1990 basic_string_char_eos(this, this->size
-len
+str_len
);
1994 /* Not exported from msvcp90 */
1995 basic_string_char
* __stdcall
basic_string_char_replace_helper(basic_string_char
*this,
1996 MSVCP_size_t off
, MSVCP_size_t len
, const char *str
, MSVCP_size_t str_len
)
1998 return basic_string_char_replace_cstr_len(this, off
, len
, str
, str_len
);
2001 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IIPBD@Z */
2002 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0PEBD@Z */
2003 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_cstr
, 16)
2004 basic_string_char
* __thiscall
basic_string_char_replace_cstr(basic_string_char
*this,
2005 MSVCP_size_t off
, MSVCP_size_t len
, const char *str
)
2007 return basic_string_char_replace_cstr_len(this, off
, len
, str
,
2008 MSVCP_char_traits_char_length(str
));
2011 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IIABV12@II@Z */
2012 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0AEBV12@00@Z */
2013 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_substr
, 24)
2014 basic_string_char
* __thiscall
basic_string_char_replace_substr(basic_string_char
*this, MSVCP_size_t off
,
2015 MSVCP_size_t len
, const basic_string_char
*str
, MSVCP_size_t str_off
, MSVCP_size_t str_len
)
2017 if(str
->size
< str_off
)
2018 MSVCP__String_base_Xran();
2020 if(str_off
+str_len
> str
->size
)
2021 str_len
= str
->size
-str_off
;
2023 return basic_string_char_replace_cstr_len(this, off
, len
,
2024 basic_string_char_const_ptr(str
)+str_off
, str_len
);
2027 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IIABV12@@Z */
2028 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0AEBV12@@Z */
2029 DEFINE_THISCALL_WRAPPER(basic_string_char_replace
, 16)
2030 basic_string_char
* __thiscall
basic_string_char_replace(basic_string_char
*this,
2031 MSVCP_size_t off
, MSVCP_size_t len
, const basic_string_char
*str
)
2033 return basic_string_char_replace_cstr_len(this, off
, len
,
2034 basic_string_char_const_ptr(str
), str
->size
);
2037 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IIID@Z */
2038 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K00D@Z */
2039 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_ch
, 20)
2040 basic_string_char
* __thiscall
basic_string_char_replace_ch(basic_string_char
*this,
2041 MSVCP_size_t off
, MSVCP_size_t len
, MSVCP_size_t count
, char ch
)
2043 char *ptr
= basic_string_char_ptr(this);
2045 TRACE("%p %ld %ld %ld %c\n", this, off
, len
, count
, ch
);
2047 if(this->size
< off
)
2048 MSVCP__String_base_Xran();
2050 if(len
> this->size
-off
)
2051 len
= this->size
-off
;
2053 if(MSVCP_basic_string_char_npos
-count
<= this->size
-len
)
2054 MSVCP__String_base_Xlen();
2057 basic_string_char_grow(this, this->size
-len
+count
, FALSE
);
2058 ptr
= basic_string_char_ptr(this);
2061 memmove(ptr
+off
+count
, ptr
+off
+len
, (this->size
-off
-len
)*sizeof(char));
2062 MSVCP_char_traits_char_assignn(ptr
+off
, count
, ch
);
2063 basic_string_char_eos(this, this->size
-len
+count
);
2068 /* ?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 */
2069 /* ?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 */
2070 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_iter_iter
, 36)
2071 basic_string_char
* __thiscall
basic_string_char_replace_iter_iter(basic_string_char
*this,
2072 String_iterator_char beg
, String_iterator_char end
,
2073 String_iterator_char res_beg
, String_iterator_char res_end
)
2075 String_iterator_char begin
= { this, basic_string_char_ptr(this) };
2076 return basic_string_char_replace_cstr_len(this,
2077 MSVCP_basic_string_char_Pdif(beg
, begin
), MSVCP_basic_string_char_Pdif(end
, beg
),
2078 res_beg
.pos
, MSVCP_basic_string_char_Pdif(res_end
, res_beg
));
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@0ABV12@@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@0AEBV12@@Z */
2083 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_iter_bstr
, 24)
2084 basic_string_char
* __thiscall
basic_string_char_replace_iter_bstr(basic_string_char
*this,
2085 String_iterator_char beg
, String_iterator_char end
, const basic_string_char
*str
)
2087 String_iterator_char begin
= { this, basic_string_char_ptr(this) };
2088 return basic_string_char_replace(this, MSVCP_basic_string_char_Pdif(beg
, begin
),
2089 MSVCP_basic_string_char_Pdif(end
, beg
), str
);
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@0ID@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@0_KD@Z */
2094 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_iter_ch
, 28)
2095 basic_string_char
* __thiscall
basic_string_char_replace_iter_ch(basic_string_char
*this,
2096 String_iterator_char beg
, String_iterator_char end
, MSVCP_size_t count
, char ch
)
2098 String_iterator_char begin
= { this, basic_string_char_ptr(this) };
2099 return basic_string_char_replace_ch(this, MSVCP_basic_string_char_Pdif(beg
, begin
),
2100 MSVCP_basic_string_char_Pdif(end
, beg
), count
, ch
);
2103 /* ?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 */
2104 /* ?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 */
2105 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_iter_ptr_ptr
, 28)
2106 basic_string_char
* __thiscall
basic_string_char_replace_iter_ptr_ptr(basic_string_char
*this,
2107 String_iterator_char beg
, String_iterator_char end
,
2108 const char *res_beg
, const char *res_end
)
2110 String_iterator_char begin
= { this, basic_string_char_ptr(this) };
2111 return basic_string_char_replace_cstr_len(this, MSVCP_basic_string_char_Pdif(beg
, begin
),
2112 MSVCP_basic_string_char_Pdif(end
, beg
), res_beg
, res_end
-res_beg
);
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@0PBD@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@Z */
2117 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_iter_cstr
, 24)
2118 basic_string_char
* __thiscall
basic_string_char_replace_iter_cstr(basic_string_char
*this,
2119 String_iterator_char beg
, String_iterator_char end
, const char *str
)
2121 String_iterator_char begin
= { this, basic_string_char_ptr(this) };
2122 return basic_string_char_replace_cstr(this, MSVCP_basic_string_char_Pdif(beg
, begin
),
2123 MSVCP_basic_string_char_Pdif(end
, beg
), str
);
2126 /* ?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 */
2127 /* ?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 */
2128 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_iter_cstr_len
, 28)
2129 basic_string_char
* __thiscall
basic_string_char_replace_iter_cstr_len(basic_string_char
*this,
2130 String_iterator_char beg
, String_iterator_char end
, const char *str
, MSVCP_size_t len
)
2132 String_iterator_char begin
= { this, basic_string_char_ptr(this) };
2133 return basic_string_char_replace_cstr_len(this, MSVCP_basic_string_char_Pdif(beg
, begin
),
2134 MSVCP_basic_string_char_Pdif(end
, beg
), str
, len
);
2137 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IABV12@@Z */
2138 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_KAEBV12@@Z */
2139 DEFINE_THISCALL_WRAPPER(basic_string_char_insert
, 12)
2140 basic_string_char
* __thiscall
basic_string_char_insert(basic_string_char
*this,
2141 MSVCP_size_t off
, const basic_string_char
*str
)
2143 return basic_string_char_replace(this, off
, 0, str
);
2146 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IABV12@II@Z */
2147 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_KAEBV12@00@Z */
2148 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_substr
, 20)
2149 basic_string_char
* __thiscall
basic_string_char_insert_substr(
2150 basic_string_char
*this, MSVCP_size_t off
, const basic_string_char
*str
,
2151 MSVCP_size_t str_off
, MSVCP_size_t str_count
)
2153 return basic_string_char_replace_substr(this, off
, 0, str
, str_off
, str_count
);
2156 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IPBD@Z */
2157 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_KPEBD@Z */
2158 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_cstr
, 12)
2159 basic_string_char
* __thiscall
basic_string_char_insert_cstr(
2160 basic_string_char
*this, MSVCP_size_t off
, const char *str
)
2162 return basic_string_char_replace_cstr(this, off
, 0, str
);
2165 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IPBDI@Z */
2166 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_KPEBD0@Z */
2167 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_cstr_len
, 16)
2168 basic_string_char
* __thiscall
basic_string_char_insert_cstr_len(basic_string_char
*this,
2169 MSVCP_size_t off
, const char *str
, MSVCP_size_t str_len
)
2171 return basic_string_char_replace_cstr_len(this, off
, 0, str
, str_len
);
2174 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IID@Z */
2175 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0D@Z */
2176 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_chn
, 16)
2177 basic_string_char
* __thiscall
basic_string_char_insert_chn(basic_string_char
*this,
2178 MSVCP_size_t off
, MSVCP_size_t count
, char ch
)
2180 return basic_string_char_replace_ch(this, off
, 0, count
, ch
);
2183 /* ?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 */
2184 /* ?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 */
2185 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_iter_chn
, 20)
2186 void __thiscall
basic_string_char_insert_iter_chn(basic_string_char
*this,
2187 String_iterator_char where
, MSVCP_size_t count
, char ch
)
2189 String_iterator_char iter
= { this, basic_string_char_ptr(this) };
2190 MSVCP_size_t off
= MSVCP_basic_string_char_Pdif(where
, iter
);
2192 basic_string_char_insert_chn(this, off
, count
, ch
);
2195 /* ?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 */
2196 /* ?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 */
2197 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_iter_ch
, 20)
2198 String_iterator_char
* __thiscall
basic_string_char_insert_iter_ch(basic_string_char
*this,
2199 String_iterator_char
*ret
, String_iterator_char where
, char ch
)
2204 ret
->pos
= basic_string_char_ptr(this);
2205 off
= MSVCP_basic_string_char_Pdif(where
, *ret
);
2207 basic_string_char_insert_chn(this, off
, 1, ch
);
2208 ret
->pos
= basic_string_char_ptr(this)+off
;
2212 /* ?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 */
2213 /* ?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 */
2214 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_iter_null
, 16)
2215 String_iterator_char
* __thiscall
basic_string_char_insert_iter_null(basic_string_char
*this,
2216 String_iterator_char
*ret
, String_iterator_char where
)
2218 return basic_string_char_insert_iter_ch(this, ret
, where
, 0);
2221 /* ?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 */
2222 /* ?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 */
2223 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_iter_beg_end
, 28)
2224 void __thiscall
basic_string_char_insert_iter_beg_end(basic_string_char
*this,
2225 String_iterator_char where
, String_iterator_char beg
, String_iterator_char end
)
2227 basic_string_char_replace_iter_iter(this, where
, where
, beg
, end
);
2230 /* ?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 */
2231 /* ?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 */
2232 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_iter_ptr_ptr
, 20)
2233 void __thiscall
basic_string_char_insert_iter_ptr_ptr(basic_string_char
*this,
2234 String_iterator_char where
, const char *beg
, const char *end
)
2236 basic_string_char_replace_iter_ptr_ptr(this, where
, where
, beg
, end
);
2239 /* ?resize@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXID@Z */
2240 /* ?resize@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAX_KD@Z */
2241 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_resize_ch
, 12)
2242 void __thiscall
MSVCP_basic_string_char_resize_ch(
2243 basic_string_char
*this, MSVCP_size_t size
, char ch
)
2245 TRACE("%p %lu %c\n", this, size
, ch
);
2247 if(size
<= this->size
)
2248 MSVCP_basic_string_char_erase(this, size
, this->size
);
2250 MSVCP_basic_string_char_append_len_ch(this, size
-this->size
, ch
);
2253 /* ?resize@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXI@Z */
2254 /* ?resize@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAX_K@Z */
2255 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_resize
, 8)
2256 void __thiscall
MSVCP_basic_string_char_resize(
2257 basic_string_char
*this, MSVCP_size_t size
)
2259 MSVCP_basic_string_char_resize_ch(this, size
, '\0');
2262 /* ?clear@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
2263 /* ?clear@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
2264 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_clear
, 4)
2265 void __thiscall
MSVCP_basic_string_char_clear(basic_string_char
*this)
2267 basic_string_char_eos(this, 0);
2270 /* ?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 */
2271 /* ?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 */
2272 /* ?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 */
2273 /* ?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 */
2274 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_begin
, 8)
2275 String_iterator_char
* __thiscall
MSVCP_basic_string_char_begin(
2276 basic_string_char
*this, String_iterator_char
*ret
)
2278 TRACE("%p\n", this);
2281 ret
->pos
= basic_string_char_const_ptr(this);
2285 /* ?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 */
2286 /* ?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 */
2287 /* ?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 */
2288 /* ?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 */
2289 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_end
, 8)
2290 String_iterator_char
* __thiscall
MSVCP_basic_string_char_end(
2291 basic_string_char
*this, String_iterator_char
*ret
)
2293 TRACE("%p\n", this);
2296 ret
->pos
= basic_string_char_const_ptr(this)+this->size
;
2300 /* ?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 */
2301 /* ?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 */
2302 /* ?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 */
2303 /* ?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 */
2304 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_rbegin
, 8)
2305 String_reverse_iterator_char
* __thiscall
MSVCP_basic_string_char_rbegin(
2306 basic_string_char
*this, String_reverse_iterator_char
*ret
)
2308 TRACE("%p\n", this);
2311 ret
->pos
= basic_string_char_const_ptr(this)+this->size
;
2315 /* ?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 */
2316 /* ?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 */
2317 /* ?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 */
2318 /* ?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 */
2319 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_rend
, 8)
2320 String_reverse_iterator_char
* __thiscall
MSVCP_basic_string_char_rend(
2321 basic_string_char
*this, String_reverse_iterator_char
*ret
)
2323 TRACE("%p\n", this);
2326 ret
->pos
= basic_string_char_const_ptr(this);
2330 /* basic_string<wchar_t, char_traits<wchar_t>, allocator<wchar_t>> */
2331 /* basic_string<unsigned short, char_traits<unsigned short>, allocator<unsigned short>> */
2332 /* ?npos@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@2IB */
2333 /* ?npos@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@2_KB */
2334 /* ?npos@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@2IB */
2335 /* ?npos@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@2_KB */
2336 const MSVCP_size_t MSVCP_basic_string_wchar_npos
= -1;
2338 /* ?_Myptr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEPA_WXZ */
2339 /* ?_Myptr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAPEA_WXZ */
2340 /* ?_Myptr@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEPAGXZ */
2341 /* ?_Myptr@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAPEAGXZ */
2342 DEFINE_THISCALL_WRAPPER(basic_string_wchar_ptr
, 4)
2343 wchar_t* __thiscall
basic_string_wchar_ptr(basic_string_wchar
*this)
2345 if(this->res
== BUF_SIZE_WCHAR
-1)
2346 return this->data
.buf
;
2347 return this->data
.ptr
;
2350 /* ?_Myptr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IBEPB_WXZ */
2351 /* ?_Myptr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEBAPEB_WXZ */
2352 /* ?_Myptr@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IBEPBGXZ */
2353 /* ?_Myptr@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEBAPEBGXZ */
2354 DEFINE_THISCALL_WRAPPER(basic_string_wchar_const_ptr
, 4)
2355 const wchar_t* __thiscall
basic_string_wchar_const_ptr(const basic_string_wchar
*this)
2357 if(this->res
== BUF_SIZE_WCHAR
-1)
2358 return this->data
.buf
;
2359 return this->data
.ptr
;
2362 /* ?_Eos@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXI@Z */
2363 /* ?_Eos@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAX_K@Z */
2364 /* ?_Eos@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEXI@Z */
2365 /* ?_Eos@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAX_K@Z */
2366 DEFINE_THISCALL_WRAPPER(basic_string_wchar_eos
, 8)
2367 void __thiscall
basic_string_wchar_eos(basic_string_wchar
*this, MSVCP_size_t len
)
2369 static const wchar_t nullbyte_w
= '\0';
2372 MSVCP_char_traits_wchar_assign(basic_string_wchar_ptr(this)+len
, &nullbyte_w
);
2375 /* ?_Inside@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAE_NPB_W@Z */
2376 /* ?_Inside@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAA_NPEB_W@Z */
2377 /* ?_Inside@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAE_NPBG@Z */
2378 /* ?_Inside@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAA_NPEBG@Z */
2379 DEFINE_THISCALL_WRAPPER(basic_string_wchar_inside
, 8)
2380 MSVCP_bool __thiscall
basic_string_wchar_inside(
2381 basic_string_wchar
*this, const wchar_t *ptr
)
2383 wchar_t *cstr
= basic_string_wchar_ptr(this);
2385 return (ptr
<cstr
|| ptr
>=cstr
+this->size
) ? FALSE
: TRUE
;
2388 /* ?_Tidy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEX_NI@Z */
2389 /* ?_Tidy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAX_N_K@Z */
2390 /* ?_Tidy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEX_NI@Z */
2391 /* ?_Tidy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAX_N_K@Z */
2392 DEFINE_THISCALL_WRAPPER(basic_string_wchar_tidy
, 12)
2393 void __thiscall
basic_string_wchar_tidy(basic_string_wchar
*this,
2394 MSVCP_bool built
, MSVCP_size_t new_size
)
2396 if(built
&& BUF_SIZE_WCHAR
<=this->res
) {
2397 wchar_t *ptr
= this->data
.ptr
;
2400 MSVCP_char_traits_wchar__Copy_s(this->data
.buf
, BUF_SIZE_WCHAR
, ptr
, new_size
);
2401 MSVCP_allocator_wchar_deallocate(this->allocator
, ptr
, this->res
+1);
2404 this->res
= BUF_SIZE_WCHAR
-1;
2405 basic_string_wchar_eos(this, new_size
);
2408 /* ?_Grow@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAE_NI_N@Z */
2409 /* ?_Grow@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAA_N_K_N@Z */
2410 /* ?_Grow@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAE_NI_N@Z */
2411 /* ?_Grow@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAA_N_K_N@Z */
2412 DEFINE_THISCALL_WRAPPER(basic_string_wchar_grow
, 12)
2413 MSVCP_bool __thiscall
basic_string_wchar_grow(
2414 basic_string_wchar
*this, MSVCP_size_t new_size
, MSVCP_bool trim
)
2416 if(this->res
< new_size
) {
2417 MSVCP_size_t new_res
= new_size
, len
= this->size
;
2422 if(new_res
/3 < this->res
/2)
2423 new_res
= this->res
+ this->res
/2;
2425 ptr
= MSVCP_allocator_wchar_allocate(this->allocator
, new_res
+1);
2427 ptr
= MSVCP_allocator_wchar_allocate(this->allocator
, new_size
+1);
2431 ERR("Out of memory\n");
2432 basic_string_wchar_tidy(this, TRUE
, 0);
2436 MSVCP_char_traits_wchar__Copy_s(ptr
, new_size
,
2437 basic_string_wchar_ptr(this), this->size
);
2438 basic_string_wchar_tidy(this, TRUE
, 0);
2439 this->data
.ptr
= ptr
;
2440 this->res
= new_size
;
2441 basic_string_wchar_eos(this, len
);
2442 } else if(trim
&& new_size
< BUF_SIZE_WCHAR
)
2443 basic_string_wchar_tidy(this, TRUE
,
2444 new_size
<this->size
? new_size
: this->size
);
2445 else if(new_size
== 0)
2446 basic_string_wchar_eos(this, 0);
2448 return (new_size
>0);
2451 /* ?_Copy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXII@Z */
2452 /* ?_Copy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAX_K0@Z */
2453 /* ?_Copy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEXII@Z */
2454 /* ?_Copy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAX_K0@Z */
2455 DEFINE_THISCALL_WRAPPER(basic_string_wchar__Copy
, 12)
2456 void __thiscall
basic_string_wchar__Copy(basic_string_wchar
*this,
2457 MSVCP_size_t new_size
, MSVCP_size_t copy_len
)
2459 TRACE("%p %lu %lu\n", this, new_size
, copy_len
);
2461 if(!basic_string_wchar_grow(this, new_size
, FALSE
))
2463 basic_string_wchar_eos(this, copy_len
);
2466 /* ?_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 */
2467 /* ?_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 */
2468 /* ?_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 */
2469 /* ?_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 */
2470 MSVCP_size_t __cdecl
MSVCP_basic_string_wchar_Pdif(String_iterator_wchar i1
, String_iterator_wchar i2
)
2472 TRACE("(%p %p) (%p %p)\n", i1
.bstr
, i1
.pos
, i2
.bstr
, i2
.pos
);
2474 if((!i1
.bstr
&& i1
.pos
) || i1
.bstr
!=i2
.bstr
) {
2475 _invalid_parameter(NULL
, NULL
, NULL
, 0, 0);
2479 return !i1
.pos
? 0 : i1
.pos
-i2
.pos
;
2482 /* ?get_allocator@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE?AV?$allocator@_W@2@XZ */
2483 /* ?get_allocator@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA?AV?$allocator@_W@2@XZ */
2484 /* ?get_allocator@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBE?AV?$allocator@G@2@XZ */
2485 /* ?get_allocator@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA?AV?$allocator@G@2@XZ */
2486 DEFINE_THISCALL_WRAPPER(basic_string_wchar_get_allocator
, 8)
2487 allocator
* __thiscall
basic_string_wchar_get_allocator(const basic_string_wchar
*this, allocator
*ret
)
2489 TRACE("%p\n", this);
2493 /* ?erase@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@II@Z */
2494 /* ?erase@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0@Z */
2495 /* ?erase@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@II@Z */
2496 /* ?erase@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K0@Z */
2497 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_erase
, 12)
2498 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_erase(
2499 basic_string_wchar
*this, MSVCP_size_t pos
, MSVCP_size_t len
)
2501 TRACE("%p %lu %lu\n", this, pos
, len
);
2503 if(pos
> this->size
)
2504 MSVCP__String_base_Xran();
2506 if(len
> this->size
-pos
)
2507 len
= this->size
-pos
;
2510 MSVCP_char_traits_wchar__Move_s(basic_string_wchar_ptr(this)+pos
,
2511 this->res
-pos
, basic_string_wchar_ptr(this)+pos
+len
,
2512 this->size
-pos
-len
);
2513 basic_string_wchar_eos(this, this->size
-len
);
2519 /* ?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 */
2520 /* ?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 */
2521 /* ?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 */
2522 /* ?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 */
2523 DEFINE_THISCALL_WRAPPER(basic_string_wchar_erase_iter_range
, 24)
2524 String_iterator_wchar
* __thiscall
basic_string_wchar_erase_iter_range(basic_string_wchar
*this,
2525 String_iterator_wchar
*ret
, String_iterator_wchar beg
, String_iterator_wchar end
)
2530 ret
->pos
= basic_string_wchar_ptr(this);
2531 off
= MSVCP_basic_string_wchar_Pdif(beg
, *ret
);
2533 MSVCP_basic_string_wchar_erase(this, off
, MSVCP_basic_string_wchar_Pdif(end
, beg
));
2536 ret
->pos
= basic_string_wchar_ptr(this)+off
;
2540 /* ?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 */
2541 /* ?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 */
2542 /* ?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 */
2543 /* ?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 */
2544 DEFINE_THISCALL_WRAPPER(basic_string_wchar_erase_iter
, 16)
2545 String_iterator_wchar
* __thiscall
basic_string_wchar_erase_iter(basic_string_wchar
*this,
2546 String_iterator_wchar
*ret
, String_iterator_wchar pos
)
2551 ret
->pos
= basic_string_wchar_ptr(this);
2552 off
= MSVCP_basic_string_wchar_Pdif(pos
, *ret
);
2554 MSVCP_basic_string_wchar_erase(this, off
, 1);
2557 ret
->pos
= basic_string_wchar_ptr(this)+off
;
2561 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@ABV12@II@Z */
2562 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@AEBV12@_K1@Z */
2563 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@ABV12@II@Z */
2564 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@AEBV12@_K1@Z */
2565 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_substr
, 16)
2566 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_assign_substr(
2567 basic_string_wchar
*this, const basic_string_wchar
*assign
,
2568 MSVCP_size_t pos
, MSVCP_size_t len
)
2570 TRACE("%p %p %lu %lu\n", this, assign
, pos
, len
);
2572 if(assign
->size
< pos
)
2573 MSVCP__String_base_Xran();
2575 if(len
> assign
->size
-pos
)
2576 len
= assign
->size
-pos
;
2578 if(this == assign
) {
2579 MSVCP_basic_string_wchar_erase(this, pos
+len
, MSVCP_basic_string_wchar_npos
);
2580 MSVCP_basic_string_wchar_erase(this, 0, pos
);
2581 } else if(basic_string_wchar_grow(this, len
, FALSE
)) {
2582 MSVCP_char_traits_wchar__Copy_s(basic_string_wchar_ptr(this),
2583 this->res
, basic_string_wchar_const_ptr(assign
)+pos
, len
);
2584 basic_string_wchar_eos(this, len
);
2590 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@ABV12@@Z */
2591 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@AEBV12@@Z */
2592 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@ABV01@@Z */
2593 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@AEBV01@@Z */
2594 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@ABV12@@Z */
2595 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@AEBV12@@Z */
2596 /* ??4?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV01@ABV01@@Z */
2597 /* ??4?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV01@AEBV01@@Z */
2598 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign
, 8)
2599 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_assign(
2600 basic_string_wchar
*this, const basic_string_wchar
*assign
)
2602 return MSVCP_basic_string_wchar_assign_substr(this, assign
,
2603 0, MSVCP_basic_string_wchar_npos
);
2606 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_WI@Z */
2607 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W_K@Z */
2608 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@PBGI@Z */
2609 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@PEBG_K@Z */
2610 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_cstr_len
, 12)
2611 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_assign_cstr_len(
2612 basic_string_wchar
*this, const wchar_t *str
, MSVCP_size_t len
)
2614 TRACE("%p %s %lu\n", this, debugstr_w(str
), len
);
2616 if(basic_string_wchar_inside(this, str
))
2617 return MSVCP_basic_string_wchar_assign_substr(this, this,
2618 str
-basic_string_wchar_ptr(this), len
);
2619 else if(basic_string_wchar_grow(this, len
, FALSE
)) {
2620 MSVCP_char_traits_wchar__Copy_s(basic_string_wchar_ptr(this),
2621 this->res
, str
, len
);
2622 basic_string_wchar_eos(this, len
);
2628 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@_W@Z */
2629 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@_W@Z */
2630 /* ??4?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV01@G@Z */
2631 /* ??4?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV01@G@Z */
2632 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_ch
, 8)
2633 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_assign_ch(
2634 basic_string_wchar
*this, wchar_t ch
)
2636 return MSVCP_basic_string_wchar_assign_cstr_len(this, &ch
, 1);
2639 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_W@Z */
2640 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W@Z */
2641 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@PB_W@Z */
2642 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@PEB_W@Z */
2643 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@PBG@Z */
2644 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@PEBG@Z */
2645 /* ??4?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV01@PBG@Z */
2646 /* ??4?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV01@PEBG@Z */
2647 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_cstr
, 8)
2648 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_assign_cstr(
2649 basic_string_wchar
*this, const wchar_t *str
)
2651 return MSVCP_basic_string_wchar_assign_cstr_len(this, str
,
2652 MSVCP_char_traits_wchar_length(str
));
2655 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@I_W@Z */
2656 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K_W@Z */
2657 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IG@Z */
2658 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_KG@Z */
2659 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assignn
, 12)
2660 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_assignn(
2661 basic_string_wchar
*this, MSVCP_size_t count
, wchar_t ch
)
2663 TRACE("%p %ld %c\n", this, count
, ch
);
2665 basic_string_wchar_grow(this, count
, FALSE
);
2666 MSVCP_char_traits_wchar_assignn(basic_string_wchar_ptr(this), count
, ch
);
2667 basic_string_wchar_eos(this, count
);
2671 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_W0@Z */
2672 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W0@Z */
2673 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@PBG0@Z */
2674 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@PEBG0@Z */
2675 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_ptr_ptr
, 12)
2676 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_assign_ptr_ptr(
2677 basic_string_wchar
*this, const wchar_t *first
, const wchar_t *last
)
2679 return MSVCP_basic_string_wchar_assign_cstr_len(this, first
, last
-first
);
2682 /* ?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 */
2683 /* ?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 */
2684 /* ?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 */
2685 /* ?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 */
2686 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_iter
, 20)
2687 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_assign_iter(basic_string_wchar
*this,
2688 String_iterator_wchar beg
, String_iterator_wchar end
)
2690 return MSVCP_basic_string_wchar_assign_ptr_ptr(this, beg
.pos
, end
.pos
);
2693 /* ?_Chassign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXII_W@Z */
2694 /* ?_Chassign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAX_K0_W@Z */
2695 /* ?_Chassign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEXIIG@Z */
2696 /* ?_Chassign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAX_K0G@Z */
2697 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_Chassign
, 16)
2698 void __thiscall
MSVCP_basic_string_wchar_Chassign(basic_string_wchar
*this,
2699 MSVCP_size_t off
, MSVCP_size_t count
, wchar_t ch
)
2701 TRACE("%p %lu %lu %c\n", this, off
, count
, ch
);
2702 MSVCP_char_traits_wchar_assignn(basic_string_wchar_ptr(this)+off
, count
, ch
);
2705 /* ?_Copy_s@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPA_WIII@Z */
2706 /* ?_Copy_s@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEA_W_K11@Z */
2707 /* ?_Copy_s@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPAGIII@Z */
2708 /* ?_Copy_s@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEAG_K11@Z */
2709 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_Copy_s
, 20)
2710 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_Copy_s(const basic_string_wchar
*this,
2711 wchar_t *dest
, MSVCP_size_t size
, MSVCP_size_t count
, MSVCP_size_t off
)
2713 TRACE("%p %p %lu %lu %lu\n", this, dest
, size
, count
, off
);
2715 if(this->size
< off
)
2716 MSVCP__String_base_Xran();
2718 if(count
> this->size
-off
)
2719 count
= this->size
-off
;
2721 MSVCP_char_traits_wchar__Copy_s(dest
, size
,
2722 basic_string_wchar_const_ptr(this)+off
, count
);
2726 /* ?copy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPA_WII@Z */
2727 /* ?copy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEA_W_K1@Z */
2728 /* ?copy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPAGII@Z */
2729 /* ?copy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEAG_K1@Z */
2730 DEFINE_THISCALL_WRAPPER(basic_string_wchar_copy
, 16)
2731 MSVCP_size_t __thiscall
basic_string_wchar_copy(const basic_string_wchar
*this,
2732 wchar_t *dest
, MSVCP_size_t count
, MSVCP_size_t off
)
2734 return MSVCP_basic_string_wchar_Copy_s(this, dest
, count
, count
, off
);
2737 /* ?c_str@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEPB_WXZ */
2738 /* ?c_str@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAPEB_WXZ */
2739 /* ?data@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEPB_WXZ */
2740 /* ?data@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAPEB_WXZ */
2741 /* ?c_str@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEPBGXZ */
2742 /* ?c_str@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAPEBGXZ */
2743 /* ?data@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEPBGXZ */
2744 /* ?data@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAPEBGXZ */
2745 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_c_str
, 4)
2746 const wchar_t* __thiscall
MSVCP_basic_string_wchar_c_str(const basic_string_wchar
*this)
2748 TRACE("%p\n", this);
2749 return basic_string_wchar_const_ptr(this);
2752 /* ?capacity@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIXZ */
2753 /* ?capacity@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KXZ */
2754 /* ?capacity@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIXZ */
2755 /* ?capacity@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KXZ */
2756 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_capacity
, 4)
2757 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_capacity(basic_string_wchar
*this)
2759 TRACE("%p\n", this);
2763 /* ?reserve@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXI@Z */
2764 /* ?reserve@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAX_K@Z */
2765 /* ?reserve@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXI@Z */
2766 /* ?reserve@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAX_K@Z */
2767 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_reserve
, 8)
2768 void __thiscall
MSVCP_basic_string_wchar_reserve(basic_string_wchar
*this, MSVCP_size_t size
)
2772 TRACE("%p %ld\n", this, size
);
2778 basic_string_wchar_grow(this, size
, FALSE
);
2779 basic_string_wchar_eos(this, len
);
2782 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@XZ */
2783 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@XZ */
2784 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@XZ */
2785 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@XZ */
2786 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor
, 4)
2787 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor(basic_string_wchar
*this)
2789 TRACE("%p\n", this);
2791 basic_string_wchar_tidy(this, FALSE
, 0);
2795 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@ABV01@@Z */
2796 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@AEBV01@@Z */
2797 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@ABV01@@Z */
2798 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@AEBV01@@Z */
2799 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_copy_ctor
, 8)
2800 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_copy_ctor(
2801 basic_string_wchar
*this, const basic_string_wchar
*copy
)
2803 TRACE("%p %p\n", this, copy
);
2805 basic_string_wchar_tidy(this, FALSE
, 0);
2806 MSVCP_basic_string_wchar_assign(this, copy
);
2810 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_W@Z */
2811 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@PEB_W@Z */
2812 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@PBG@Z */
2813 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@PEBG@Z */
2814 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_cstr
, 8)
2815 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_cstr(
2816 basic_string_wchar
*this, const wchar_t *str
)
2818 TRACE("%p %s\n", this, debugstr_w(str
));
2820 basic_string_wchar_tidy(this, FALSE
, 0);
2821 MSVCP_basic_string_wchar_assign_cstr(this, str
);
2825 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_WABV?$allocator@_W@1@@Z */
2826 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@PEB_WAEBV?$allocator@_W@1@@Z */
2827 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@PBGABV?$allocator@G@1@@Z */
2828 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@PEBGAEBV?$allocator@G@1@@Z */
2829 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_cstr_alloc
, 12)
2830 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_cstr_alloc(
2831 basic_string_wchar
*this, const wchar_t *str
, const void *alloc
)
2833 return MSVCP_basic_string_wchar_ctor_cstr(this, str
);
2836 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_WI@Z */
2837 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@PEB_W_K@Z */
2838 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@PBGI@Z */
2839 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@PEBG_K@Z */
2840 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_cstr_len
, 12)
2841 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_cstr_len(
2842 basic_string_wchar
*this, const wchar_t *str
, MSVCP_size_t len
)
2844 TRACE("%p %s %ld\n", this, debugstr_w(str
), len
);
2846 basic_string_wchar_tidy(this, FALSE
, 0);
2847 MSVCP_basic_string_wchar_assign_cstr_len(this, str
, len
);
2851 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_WIABV?$allocator@_W@1@@Z */
2852 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@PEB_W_KAEBV?$allocator@_W@1@@Z */
2853 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@PBGIABV?$allocator@G@1@@Z */
2854 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@PEBG_KAEBV?$allocator@G@1@@Z */
2855 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_cstr_len_alloc
, 16)
2856 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_cstr_len_alloc(
2857 basic_string_wchar
*this, const wchar_t *str
, MSVCP_size_t len
, const void *alloc
)
2859 return MSVCP_basic_string_wchar_ctor_cstr_len(this, str
, len
);
2862 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@ABV01@II@Z */
2863 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@AEBV01@_K1@Z */
2864 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@ABV01@II@Z */
2865 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@AEBV01@_K1@Z */
2866 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_substr
, 16)
2867 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_substr(
2868 basic_string_wchar
*this, const basic_string_wchar
*assign
,
2869 MSVCP_size_t pos
, MSVCP_size_t len
)
2871 TRACE("%p %p %lu %lu\n", this, assign
, pos
, len
);
2873 basic_string_wchar_tidy(this, FALSE
, 0);
2874 MSVCP_basic_string_wchar_assign_substr(this, assign
, pos
, len
);
2878 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@ABV01@IIABV?$allocator@_W@1@@Z */
2879 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@AEBV01@_K1AEBV?$allocator@_W@1@@Z */
2880 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@ABV01@IIABV?$allocator@G@1@@Z */
2881 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@AEBV01@_K1AEBV?$allocator@G@1@@Z */
2882 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_substr_alloc
, 20)
2883 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_substr_alloc(
2884 basic_string_wchar
*this, const basic_string_wchar
*assign
,
2885 MSVCP_size_t pos
, MSVCP_size_t len
, const void *alloc
)
2887 return MSVCP_basic_string_wchar_ctor_substr(this, assign
, pos
, len
);
2890 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@ABV?$allocator@_W@1@@Z */
2891 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@AEBV?$allocator@_W@1@@Z */
2892 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@ABV?$allocator@G@1@@Z */
2893 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@AEBV?$allocator@G@1@@Z */
2894 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_alloc
, 8)
2895 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_alloc(
2896 basic_string_wchar
*this, const void *alloc
)
2898 TRACE("%p %p\n", this, alloc
);
2900 basic_string_wchar_tidy(this, FALSE
, 0);
2904 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@I_W@Z */
2905 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@_K_W@Z */
2906 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@IG@Z */
2907 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@_KG@Z */
2908 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_ch
, 12)
2909 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_ch(basic_string_wchar
*this,
2910 MSVCP_size_t count
, wchar_t ch
)
2912 TRACE("%p %ld %c\n", this, count
, ch
);
2914 basic_string_wchar_tidy(this, FALSE
, 0);
2915 MSVCP_basic_string_wchar_assignn(this, count
, ch
);
2919 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@I_WABV?$allocator@_W@1@@Z */
2920 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@_K_WAEBV?$allocator@_W@1@@Z */
2921 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@IGABV?$allocator@G@1@@Z */
2922 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@_KGAEBV?$allocator@G@1@@Z */
2923 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_ch_alloc
, 16)
2924 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_ch_alloc(basic_string_wchar
*this,
2925 MSVCP_size_t count
, wchar_t ch
, const void *alloc
)
2927 return MSVCP_basic_string_wchar_ctor_ch(this, count
, ch
);
2930 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_W0@Z */
2931 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@PEB_W0@Z */
2932 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@PBG0@Z */
2933 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@PEBG0@Z */
2934 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_ptr_ptr
, 12)
2935 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_ptr_ptr(basic_string_wchar
*this,
2936 const wchar_t *first
, const wchar_t *last
)
2938 return MSVCP_basic_string_wchar_ctor_cstr_len(this, first
, last
-first
);
2941 /* ??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 */
2942 /* ??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 */
2943 /* ??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 */
2944 /* ??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 */
2945 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_iter
, 20)
2946 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_iter(basic_string_wchar
*this,
2947 String_iterator_wchar beg
, String_iterator_wchar end
)
2949 return MSVCP_basic_string_wchar_ctor_cstr_len(this, beg
.pos
, end
.pos
-beg
.pos
);
2952 /* ??1?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@XZ */
2953 /* ??1?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@XZ */
2954 /* ??1?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@XZ */
2955 /* ??1?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@XZ */
2956 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_dtor
, 4)
2957 void __thiscall
MSVCP_basic_string_wchar_dtor(basic_string_wchar
*this)
2959 TRACE("%p\n", this);
2960 basic_string_wchar_tidy(this, TRUE
, 0);
2963 /* ?size@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIXZ */
2964 /* ?size@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KXZ */
2965 /* ?length@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIXZ */
2966 /* ?length@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KXZ */
2967 /* ?size@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIXZ */
2968 /* ?size@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KXZ */
2969 /* ?length@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIXZ */
2970 /* ?length@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KXZ */
2971 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_length
, 4)
2972 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_length(const basic_string_wchar
*this)
2974 TRACE("%p\n", this);
2978 /* ?max_size@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIXZ */
2979 /* ?max_size@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KXZ */
2980 /* ?max_size@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIXZ */
2981 /* ?max_size@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KXZ */
2982 DEFINE_THISCALL_WRAPPER(basic_string_wchar_max_size
, 4)
2983 MSVCP_size_t __thiscall
basic_string_wchar_max_size(const basic_string_wchar
*this)
2985 TRACE("%p\n", this);
2986 return MSVCP_allocator_wchar_max_size(this->allocator
)-1;
2989 /* ?empty@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE_NXZ */
2990 /* ?empty@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_NXZ */
2991 /* ?empty@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBE_NXZ */
2992 /* ?empty@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_NXZ */
2993 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_empty
, 4)
2994 MSVCP_bool __thiscall
MSVCP_basic_string_wchar_empty(basic_string_wchar
*this)
2996 TRACE("%p\n", this);
2997 return this->size
== 0;
3000 /* ?swap@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXAAV12@@Z */
3001 /* ?swap@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXAEAV12@@Z */
3002 /* ?swap@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXAAV12@@Z */
3003 /* ?swap@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXAEAV12@@Z */
3004 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_swap
, 8)
3005 void __thiscall
MSVCP_basic_string_wchar_swap(basic_string_wchar
*this, basic_string_wchar
*str
)
3008 char tmp
[sizeof(this->data
)];
3009 const MSVCP_size_t size
= this->size
;
3010 const MSVCP_size_t res
= this->res
;
3012 memcpy(tmp
, this->data
.buf
, sizeof(this->data
));
3013 memcpy(this->data
.buf
, str
->data
.buf
, sizeof(this->data
));
3014 memcpy(str
->data
.buf
, tmp
, sizeof(this->data
));
3016 this->size
= str
->size
;
3017 this->res
= str
->res
;
3024 /* ?substr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE?AV12@II@Z */
3025 /* ?substr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA?AV12@_K0@Z */
3026 /* ?substr@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBE?AV12@II@Z */
3027 /* ?substr@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA?AV12@_K0@Z */
3028 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_substr
, 16)
3029 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_substr(basic_string_wchar
*this,
3030 basic_string_wchar
*ret
, MSVCP_size_t off
, MSVCP_size_t len
)
3032 TRACE("%p %lu %lu\n", this, off
, len
);
3034 MSVCP_basic_string_wchar_ctor_substr(ret
, this, off
, len
);
3038 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@ABV12@II@Z */
3039 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@AEBV12@_K1@Z */
3040 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@ABV12@II@Z */
3041 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@AEBV12@_K1@Z */
3042 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_substr
, 16)
3043 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_append_substr(basic_string_wchar
*this,
3044 const basic_string_wchar
*append
, MSVCP_size_t offset
, MSVCP_size_t count
)
3046 TRACE("%p %p %lu %lu\n", this, append
, offset
, count
);
3048 if(append
->size
< offset
)
3049 MSVCP__String_base_Xran();
3051 if(count
> append
->size
-offset
)
3052 count
= append
->size
-offset
;
3054 if(MSVCP_basic_string_wchar_npos
-this->size
<=count
|| this->size
+count
<this->size
)
3055 MSVCP__String_base_Xlen();
3057 if(basic_string_wchar_grow(this, this->size
+count
, FALSE
)) {
3058 MSVCP_char_traits_wchar__Copy_s(basic_string_wchar_ptr(this)+this->size
,
3059 this->res
-this->size
, basic_string_wchar_const_ptr(append
)+offset
, count
);
3060 basic_string_wchar_eos(this, this->size
+count
);
3066 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@ABV12@@Z */
3067 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@AEBV12@@Z */
3068 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@ABV01@@Z */
3069 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@AEBV01@@Z */
3070 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@ABV12@@Z */
3071 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@AEBV12@@Z */
3072 /* ??Y?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV01@ABV01@@Z */
3073 /* ??Y?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV01@AEBV01@@Z */
3074 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append
, 8)
3075 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_append(
3076 basic_string_wchar
*this, const basic_string_wchar
*append
)
3078 return MSVCP_basic_string_wchar_append_substr(this, append
,
3079 0, MSVCP_basic_string_wchar_npos
);
3082 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_WI@Z */
3083 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W_K@Z */
3084 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@PBGI@Z */
3085 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@PEBG_K@Z */
3086 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_cstr_len
, 12)
3087 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_append_cstr_len(
3088 basic_string_wchar
*this, const wchar_t *append
, MSVCP_size_t count
)
3090 TRACE("%p %s %lu\n", this, debugstr_w(append
), count
);
3092 if(basic_string_wchar_inside(this, append
))
3093 return MSVCP_basic_string_wchar_append_substr(this, this,
3094 append
-basic_string_wchar_ptr(this), count
);
3096 if(MSVCP_basic_string_wchar_npos
-this->size
<=count
|| this->size
+count
<this->size
)
3097 MSVCP__String_base_Xlen();
3099 if(basic_string_wchar_grow(this, this->size
+count
, FALSE
)) {
3100 MSVCP_char_traits_wchar__Copy_s(basic_string_wchar_ptr(this)+this->size
,
3101 this->res
-this->size
, append
, count
);
3102 basic_string_wchar_eos(this, this->size
+count
);
3108 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_W@Z */
3109 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W@Z */
3110 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@PB_W@Z */
3111 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@PEB_W@Z */
3112 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@PBG@Z */
3113 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@PEBG@Z */
3114 /* ??Y?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV01@PBG@Z */
3115 /* ??Y?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV01@PEBG@Z */
3116 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_cstr
, 8)
3117 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_append_cstr(
3118 basic_string_wchar
*this, const wchar_t *append
)
3120 return MSVCP_basic_string_wchar_append_cstr_len(this, append
,
3121 MSVCP_char_traits_wchar_length(append
));
3124 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_W0@Z */
3125 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W0@Z */
3126 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@PBG0@Z */
3127 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@PEBG0@Z */
3128 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_beg_end
, 12)
3129 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_append_beg_end(
3130 basic_string_wchar
*this, const wchar_t *beg
, const wchar_t *end
)
3132 return MSVCP_basic_string_wchar_append_cstr_len(this, beg
, end
-beg
);
3135 /* ?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 */
3136 /* ?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 */
3137 /* ?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 */
3138 /* ?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 */
3139 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_iter
, 20)
3140 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_append_iter(
3141 basic_string_wchar
*this, String_iterator_wchar beg
, String_iterator_wchar end
)
3143 return MSVCP_basic_string_wchar_append_cstr_len(this, beg
.pos
, end
.pos
-beg
.pos
);
3146 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@I_W@Z */
3147 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K_W@Z */
3148 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IG@Z */
3149 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_KG@Z */
3150 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_len_ch
, 12)
3151 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_append_len_ch(
3152 basic_string_wchar
*this, MSVCP_size_t count
, wchar_t ch
)
3154 TRACE("%p %lu %c\n", this, count
, ch
);
3156 if(MSVCP_basic_string_wchar_npos
-this->size
<= count
)
3157 MSVCP__String_base_Xlen();
3159 if(basic_string_wchar_grow(this, this->size
+count
, FALSE
)) {
3160 MSVCP_char_traits_wchar_assignn(basic_string_wchar_ptr(this)+this->size
, count
, ch
);
3161 basic_string_wchar_eos(this, this->size
+count
);
3167 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@_W@Z */
3168 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@_W@Z */
3169 /* ?push_back@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEX_W@Z */
3170 /* ?push_back@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAX_W@Z */
3171 /* ??Y?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV01@G@Z */
3172 /* ??Y?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV01@G@Z */
3173 /* ?push_back@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXG@Z */
3174 /* ?push_back@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXG@Z */
3175 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_ch
, 8)
3176 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_append_ch(
3177 basic_string_wchar
*this, wchar_t ch
)
3179 return MSVCP_basic_string_wchar_append_len_ch(this, 1, ch
);
3182 /* ??$?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 */
3183 /* ??$?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 */
3184 /* ??$?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 */
3185 /* ??$?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 */
3186 basic_string_wchar
* __cdecl
MSVCP_basic_string_wchar_concatenate_bstr_cstr(basic_string_wchar
*ret
,
3187 const basic_string_wchar
*left
, const wchar_t *right
)
3189 TRACE("%p %s\n", left
, debugstr_w(right
));
3191 MSVCP_basic_string_wchar_copy_ctor(ret
, left
);
3192 MSVCP_basic_string_wchar_append_cstr(ret
, right
);
3196 /* ??$?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 */
3197 /* ??$?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 */
3198 /* ??$?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 */
3199 /* ??$?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 */
3200 basic_string_wchar
* __cdecl
MSVCP_basic_string_wchar_concatenate_cstr_bstr(basic_string_wchar
*ret
,
3201 const wchar_t *left
, const basic_string_wchar
*right
)
3203 TRACE("%s %p\n", debugstr_w(left
), right
);
3205 MSVCP_basic_string_wchar_ctor_cstr(ret
, left
);
3206 MSVCP_basic_string_wchar_append(ret
, right
);
3210 /* ??$?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 */
3211 /* ??$?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 */
3212 /* ??$?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 */
3213 /* ??$?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 */
3214 basic_string_wchar
* __cdecl
MSVCP_basic_string_wchar_concatenate(basic_string_wchar
*ret
,
3215 const basic_string_wchar
*left
, const basic_string_wchar
*right
)
3217 TRACE("%p %p\n", left
, right
);
3219 MSVCP_basic_string_wchar_copy_ctor(ret
, left
);
3220 MSVCP_basic_string_wchar_append(ret
, right
);
3224 /* ??$?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 */
3225 /* ??$?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 */
3226 /* ??$?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 */
3227 /* ??$?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 */
3228 basic_string_wchar
* __cdecl
MSVCP_basic_string_wchar_concatenate_bstr_ch(
3229 basic_string_wchar
*ret
, const basic_string_wchar
*left
, wchar_t right
)
3231 TRACE("%p %c\n", left
, right
);
3233 MSVCP_basic_string_wchar_copy_ctor(ret
, left
);
3234 MSVCP_basic_string_wchar_append_ch(ret
, right
);
3238 /* ??$?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 */
3239 /* ??$?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 */
3240 /* ??$?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 */
3241 /* ??$?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 */
3242 basic_string_wchar
* __cdecl
MSVCP_basic_string_wchar_concatenate_ch_bstr(
3243 basic_string_wchar
* ret
, wchar_t left
, const basic_string_wchar
*right
)
3245 TRACE("%c %p\n", left
, right
);
3247 MSVCP_basic_string_wchar_ctor_cstr_len(ret
, &left
, 1);
3248 MSVCP_basic_string_wchar_append(ret
, right
);
3252 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHIIPB_WI@Z */
3253 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAH_K0PEB_W0@Z */
3254 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEHIIPBGI@Z */
3255 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAH_K0PEBG0@Z */
3256 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare_substr_cstr_len
, 20)
3257 int __thiscall
MSVCP_basic_string_wchar_compare_substr_cstr_len(
3258 const basic_string_wchar
*this, MSVCP_size_t pos
, MSVCP_size_t num
,
3259 const wchar_t *str
, MSVCP_size_t count
)
3263 TRACE("%p %lu %lu %s %lu\n", this, pos
, num
, debugstr_w(str
), count
);
3265 if(this->size
< pos
)
3266 MSVCP__String_base_Xran();
3268 if(pos
+num
> this->size
)
3269 num
= this->size
-pos
;
3271 ans
= MSVCP_char_traits_wchar_compare(basic_string_wchar_const_ptr(this)+pos
,
3272 str
, num
>count
? count
: num
);
3278 else if(num
< count
)
3283 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHIIPB_W@Z */
3284 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAH_K0PEB_W@Z */
3285 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEHIIPBG@Z */
3286 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAH_K0PEBG@Z */
3287 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare_substr_cstr
, 16)
3288 int __thiscall
MSVCP_basic_string_wchar_compare_substr_cstr(const basic_string_wchar
*this,
3289 MSVCP_size_t pos
, MSVCP_size_t num
, const wchar_t *str
)
3291 return MSVCP_basic_string_wchar_compare_substr_cstr_len(this, pos
, num
,
3292 str
, MSVCP_char_traits_wchar_length(str
));
3295 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHPB_W@Z */
3296 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAHPEB_W@Z */
3297 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEHPBG@Z */
3298 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAHPEBG@Z */
3299 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare_cstr
, 8)
3300 int __thiscall
MSVCP_basic_string_wchar_compare_cstr(
3301 const basic_string_wchar
*this, const wchar_t *str
)
3303 return MSVCP_basic_string_wchar_compare_substr_cstr_len(this, 0, this->size
,
3304 str
, MSVCP_char_traits_wchar_length(str
));
3307 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHIIABV12@II@Z */
3308 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAH_K0AEBV12@00@Z */
3309 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEHIIABV12@II@Z */
3310 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAH_K0AEBV12@00@Z */
3311 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare_substr_substr
, 24)
3312 int __thiscall
MSVCP_basic_string_wchar_compare_substr_substr(
3313 const basic_string_wchar
*this, MSVCP_size_t pos
, MSVCP_size_t num
,
3314 const basic_string_wchar
*compare
, MSVCP_size_t off
, MSVCP_size_t count
)
3316 TRACE("%p %lu %lu %p %lu %lu\n", this, pos
, num
, compare
, off
, count
);
3318 if(compare
->size
< off
)
3319 MSVCP__String_base_Xran();
3321 if(off
+count
> compare
->size
)
3322 count
= compare
->size
-off
;
3324 return MSVCP_basic_string_wchar_compare_substr_cstr_len(this, pos
, num
,
3325 basic_string_wchar_const_ptr(compare
)+off
, count
);
3328 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHIIABV12@@Z */
3329 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAH_K0AEBV12@@Z */
3330 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEHIIABV12@@Z */
3331 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAH_K0AEBV12@@Z */
3332 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare_substr
, 16)
3333 int __thiscall
MSVCP_basic_string_wchar_compare_substr(
3334 const basic_string_wchar
*this, MSVCP_size_t pos
, MSVCP_size_t num
,
3335 const basic_string_wchar
*compare
)
3337 return MSVCP_basic_string_wchar_compare_substr_cstr_len(this, pos
, num
,
3338 basic_string_wchar_const_ptr(compare
), compare
->size
);
3341 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHABV12@@Z */
3342 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAHAEBV12@@Z */
3343 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEHABV12@@Z */
3344 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAHAEBV12@@Z */
3345 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare
, 8)
3346 int __thiscall
MSVCP_basic_string_wchar_compare(
3347 const basic_string_wchar
*this, const basic_string_wchar
*compare
)
3349 return MSVCP_basic_string_wchar_compare_substr_cstr_len(this, 0, this->size
,
3350 basic_string_wchar_const_ptr(compare
), compare
->size
);
3353 /* ??$?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 */
3354 /* ??$?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 */
3355 /* ??$?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 */
3356 /* ??$?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 */
3357 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_equal(
3358 const basic_string_wchar
*left
, const basic_string_wchar
*right
)
3360 return MSVCP_basic_string_wchar_compare(left
, right
) == 0;
3363 /* ??$?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 */
3364 /* ??$?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 */
3365 /* ??$?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 */
3366 /* ??$?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 */
3367 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_equal_str_cstr(
3368 const basic_string_wchar
*left
, const wchar_t *right
)
3370 return MSVCP_basic_string_wchar_compare_cstr(left
, right
) == 0;
3373 /* ??$?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 */
3374 /* ??$?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 */
3375 /* ??$?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 */
3376 /* ??$?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 */
3377 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_equal_cstr_str(
3378 const wchar_t *left
, const basic_string_wchar
*right
)
3380 return MSVCP_basic_string_wchar_compare_cstr(right
, left
) == 0;
3383 /* ??$?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 */
3384 /* ??$?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 */
3385 /* ??$?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 */
3386 /* ??$?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 */
3387 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_not_equal(
3388 const basic_string_wchar
*left
, const basic_string_wchar
*right
)
3390 return MSVCP_basic_string_wchar_compare(left
, right
) != 0;
3393 /* ??$?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 */
3394 /* ??$?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 */
3395 /* ??$?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 */
3396 /* ??$?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 */
3397 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_not_equal_str_cstr(
3398 const basic_string_wchar
*left
, const wchar_t *right
)
3400 return MSVCP_basic_string_wchar_compare_cstr(left
, right
) != 0;
3403 /* ??$?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 */
3404 /* ??$?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 */
3405 /* ??$?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 */
3406 /* ??$?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 */
3407 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_not_equal_cstr_str(
3408 const wchar_t *left
, const basic_string_wchar
*right
)
3410 return MSVCP_basic_string_wchar_compare_cstr(right
, left
) != 0;
3413 /* ??$?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 */
3414 /* ??$?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 */
3415 /* ??$?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 */
3416 /* ??$?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 */
3417 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_lower(
3418 const basic_string_wchar
*left
, const basic_string_wchar
*right
)
3420 return MSVCP_basic_string_wchar_compare(left
, right
) < 0;
3423 /* ??$?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 */
3424 /* ??$?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 */
3425 /* ??$?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 */
3426 /* ??$?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 */
3427 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_lower_bstr_cstr(
3428 const basic_string_wchar
*left
, const wchar_t *right
)
3430 return MSVCP_basic_string_wchar_compare_cstr(left
, right
) < 0;
3433 /* ??$?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 */
3434 /* ??$?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 */
3435 /* ??$?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 */
3436 /* ??$?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 */
3437 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_lower_cstr_bstr(
3438 const wchar_t *left
, const basic_string_wchar
*right
)
3440 return MSVCP_basic_string_wchar_compare_cstr(right
, left
) > 0;
3443 /* ??$?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 */
3444 /* ??$?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 */
3445 /* ??$?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 */
3446 /* ??$?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 */
3447 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_leq(
3448 const basic_string_wchar
*left
, const basic_string_wchar
*right
)
3450 return MSVCP_basic_string_wchar_compare(left
, right
) <= 0;
3453 /* ??$?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 */
3454 /* ??$?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 */
3455 /* ??$?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 */
3456 /* ??$?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 */
3457 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_leq_bstr_cstr(
3458 const basic_string_wchar
*left
, const wchar_t *right
)
3460 return MSVCP_basic_string_wchar_compare_cstr(left
, right
) <= 0;
3463 /* ??$?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 */
3464 /* ??$?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 */
3465 /* ??$?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 */
3466 /* ??$?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 */
3467 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_leq_cstr_bstr(
3468 const wchar_t *left
, const basic_string_wchar
*right
)
3470 return MSVCP_basic_string_wchar_compare_cstr(right
, left
) >= 0;
3473 /* ??$?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 */
3474 /* ??$?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 */
3475 /* ??$?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 */
3476 /* ??$?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 */
3477 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_greater(
3478 const basic_string_wchar
*left
, const basic_string_wchar
*right
)
3480 return MSVCP_basic_string_wchar_compare(left
, right
) > 0;
3483 /* ??$?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 */
3484 /* ??$?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 */
3485 /* ??$?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 */
3486 /* ??$?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 */
3487 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_greater_bstr_cstr(
3488 const basic_string_wchar
*left
, const wchar_t *right
)
3490 return MSVCP_basic_string_wchar_compare_cstr(left
, right
) > 0;
3493 /* ??$?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 */
3494 /* ??$?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 */
3495 /* ??$?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 */
3496 /* ??$?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 */
3497 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_greater_cstr_bstr(
3498 const wchar_t *left
, const basic_string_wchar
*right
)
3500 return MSVCP_basic_string_wchar_compare_cstr(right
, left
) < 0;
3503 /* ??$?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 */
3504 /* ??$?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 */
3505 /* ??$?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 */
3506 /* ??$?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 */
3507 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_geq(
3508 const basic_string_wchar
*left
, const basic_string_wchar
*right
)
3510 return MSVCP_basic_string_wchar_compare(left
, right
) >= 0;
3513 /* ??$?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 */
3514 /* ??$?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 */
3515 /* ??$?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 */
3516 /* ??$?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 */
3517 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_geq_bstr_cstr(
3518 const basic_string_wchar
*left
, const wchar_t *right
)
3520 return MSVCP_basic_string_wchar_compare_cstr(left
, right
) >= 0;
3523 /* ??$?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 */
3524 /* ??$?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 */
3525 /* ??$?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 */
3526 /* ??$?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 */
3527 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_geq_cstr_bstr(
3528 const wchar_t *left
, const basic_string_wchar
*right
)
3530 return MSVCP_basic_string_wchar_compare_cstr(right
, left
) <= 0;
3533 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
3534 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
3535 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGII@Z */
3536 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K1@Z */
3537 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_cstr_substr
, 16)
3538 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_cstr_substr(
3539 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t pos
, MSVCP_size_t len
)
3541 const wchar_t *p
, *end
;
3543 TRACE("%p %s %lu %lu\n", this, debugstr_w(find
), pos
, len
);
3545 if(len
==0 && pos
<=this->size
)
3548 end
= basic_string_wchar_const_ptr(this)+this->size
-len
+1;
3549 for(p
=basic_string_wchar_const_ptr(this)+pos
; p
<end
; p
++) {
3550 p
= MSVCP_char_traits_wchar_find(p
, end
-p
, find
);
3554 if(!MSVCP_char_traits_wchar_compare(p
, find
, len
))
3555 return p
-basic_string_wchar_const_ptr(this);
3558 return MSVCP_basic_string_wchar_npos
;
3561 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
3562 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
3563 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGI@Z */
3564 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K@Z */
3565 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_cstr_off
, 12)
3566 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_cstr_off(
3567 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t pos
)
3569 return MSVCP_basic_string_wchar_find_cstr_substr(this, find
, pos
,
3570 MSVCP_char_traits_wchar_length(find
));
3573 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
3574 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
3575 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIABV12@I@Z */
3576 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KAEBV12@_K@Z */
3577 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_off
, 12)
3578 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_off(
3579 const basic_string_wchar
*this, const basic_string_wchar
*find
, MSVCP_size_t off
)
3581 return MSVCP_basic_string_wchar_find_cstr_substr(this,
3582 basic_string_wchar_const_ptr(find
), off
, find
->size
);
3585 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
3586 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
3587 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIGI@Z */
3588 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KG_K@Z */
3589 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_ch
, 12)
3590 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_ch(
3591 const basic_string_wchar
*this, wchar_t ch
, MSVCP_size_t pos
)
3593 return MSVCP_basic_string_wchar_find_cstr_substr(this, &ch
, pos
, 1);
3596 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
3597 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
3598 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGII@Z */
3599 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K1@Z */
3600 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_rfind_cstr_substr
, 16)
3601 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_rfind_cstr_substr(
3602 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t pos
, MSVCP_size_t len
)
3604 const wchar_t *p
, *end
;
3606 TRACE("%p %s %lu %lu\n", this, debugstr_w(find
), pos
, len
);
3609 return pos
<this->size
? pos
: this->size
;
3611 if(len
> this->size
)
3612 return MSVCP_basic_string_wchar_npos
;
3614 if(pos
> this->size
-len
+1)
3615 pos
= this->size
-len
+1;
3616 end
= basic_string_wchar_const_ptr(this);
3617 for(p
=end
+pos
; p
>=end
; p
--) {
3618 if(*p
==*find
&& !MSVCP_char_traits_wchar_compare(p
, find
, len
))
3619 return p
-basic_string_wchar_const_ptr(this);
3622 return MSVCP_basic_string_wchar_npos
;
3625 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
3626 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
3627 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGI@Z */
3628 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K@Z */
3629 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_rfind_cstr_off
, 12)
3630 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_rfind_cstr_off(
3631 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t pos
)
3633 return MSVCP_basic_string_wchar_rfind_cstr_substr(this, find
, pos
,
3634 MSVCP_char_traits_wchar_length(find
));
3637 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
3638 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
3639 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIABV12@I@Z */
3640 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KAEBV12@_K@Z */
3641 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_rfind_off
, 12)
3642 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_rfind_off(
3643 const basic_string_wchar
*this, const basic_string_wchar
*find
, MSVCP_size_t off
)
3645 return MSVCP_basic_string_wchar_rfind_cstr_substr(this,
3646 basic_string_wchar_const_ptr(find
), off
, find
->size
);
3649 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
3650 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
3651 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIGI@Z */
3652 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KG_K@Z */
3653 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_rfind_ch
, 12)
3654 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_rfind_ch(
3655 const basic_string_wchar
*this, wchar_t ch
, MSVCP_size_t pos
)
3657 return MSVCP_basic_string_wchar_rfind_cstr_substr(this, &ch
, pos
, 1);
3660 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
3661 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
3662 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGII@Z */
3663 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K1@Z */
3664 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_of_cstr_substr
, 16)
3665 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_first_of_cstr_substr(
3666 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t off
, MSVCP_size_t len
)
3668 const wchar_t *p
, *end
;
3670 TRACE("%p %p %lu %lu\n", this, find
, off
, len
);
3672 if(len
>0 && off
<this->size
) {
3673 end
= basic_string_wchar_const_ptr(this)+this->size
;
3674 for(p
=basic_string_wchar_const_ptr(this)+off
; p
<end
; p
++)
3675 if(MSVCP_char_traits_wchar_find(find
, len
, p
))
3676 return p
-basic_string_wchar_const_ptr(this);
3679 return MSVCP_basic_string_wchar_npos
;
3682 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
3683 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
3684 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIABV12@I@Z */
3685 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KAEBV12@_K@Z */
3686 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_of
, 12)
3687 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_first_of(
3688 const basic_string_wchar
*this, const basic_string_wchar
*find
, MSVCP_size_t off
)
3690 return MSVCP_basic_string_wchar_find_first_of_cstr_substr(this,
3691 basic_string_wchar_const_ptr(find
), off
, find
->size
);
3694 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
3695 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
3696 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGI@Z */
3697 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K@Z */
3698 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_of_cstr
, 12)
3699 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_first_of_cstr(
3700 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t off
)
3702 return MSVCP_basic_string_wchar_find_first_of_cstr_substr(
3703 this, find
, off
, MSVCP_char_traits_wchar_length(find
));
3706 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
3707 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
3708 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIGI@Z */
3709 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KG_K@Z */
3710 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_of_ch
, 12)
3711 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_first_of_ch(
3712 const basic_string_wchar
*this, wchar_t ch
, MSVCP_size_t off
)
3714 return MSVCP_basic_string_wchar_find_first_of_cstr_substr(this, &ch
, off
, 1);
3717 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
3718 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
3719 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGII@Z */
3720 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K1@Z */
3721 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_not_of_cstr_substr
, 16)
3722 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_first_not_of_cstr_substr(
3723 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t off
, MSVCP_size_t len
)
3725 const wchar_t *p
, *end
;
3727 TRACE("%p %p %lu %lu\n", this, find
, off
, len
);
3729 if(off
<this->size
) {
3730 end
= basic_string_wchar_const_ptr(this)+this->size
;
3731 for(p
=basic_string_wchar_const_ptr(this)+off
; p
<end
; p
++)
3732 if(!MSVCP_char_traits_wchar_find(find
, len
, p
))
3733 return p
-basic_string_wchar_const_ptr(this);
3736 return MSVCP_basic_string_wchar_npos
;
3739 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
3740 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
3741 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIABV12@I@Z */
3742 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KAEBV12@_K@Z */
3743 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_not_of
, 12)
3744 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_first_not_of(
3745 const basic_string_wchar
*this, const basic_string_wchar
*find
, MSVCP_size_t off
)
3747 return MSVCP_basic_string_wchar_find_first_not_of_cstr_substr(this,
3748 basic_string_wchar_const_ptr(find
), off
, find
->size
);
3751 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
3752 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
3753 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGI@Z */
3754 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K@Z */
3755 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_not_of_cstr
, 12)
3756 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_first_not_of_cstr(
3757 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t off
)
3759 return MSVCP_basic_string_wchar_find_first_not_of_cstr_substr(
3760 this, find
, off
, MSVCP_char_traits_wchar_length(find
));
3763 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
3764 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
3765 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIGI@Z */
3766 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KG_K@Z */
3767 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_not_of_ch
, 12)
3768 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_first_not_of_ch(
3769 const basic_string_wchar
*this, wchar_t ch
, MSVCP_size_t off
)
3771 return MSVCP_basic_string_wchar_find_first_not_of_cstr_substr(this, &ch
, off
, 1);
3774 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
3775 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
3776 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGII@Z */
3777 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K1@Z */
3778 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_of_cstr_substr
, 16)
3779 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_last_of_cstr_substr(
3780 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t off
, MSVCP_size_t len
)
3782 const wchar_t *p
, *beg
;
3784 TRACE("%p %p %lu %lu\n", this, find
, off
, len
);
3787 if(len
>0 && this->size
>0) {
3788 if(off
>= this->size
)
3791 beg
= basic_string_wchar_const_ptr(this);
3792 for(p
=beg
+off
; p
>=beg
; p
--)
3793 if(MSVCP_char_traits_wchar_find(find
, len
, p
))
3797 return MSVCP_basic_string_wchar_npos
;
3800 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
3801 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
3802 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIABV12@I@Z */
3803 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KAEBV12@_K@Z */
3804 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_of
, 12)
3805 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_last_of(
3806 const basic_string_wchar
*this, const basic_string_wchar
*find
, MSVCP_size_t off
)
3808 return MSVCP_basic_string_wchar_find_last_of_cstr_substr(this,
3809 basic_string_wchar_const_ptr(find
), off
, find
->size
);
3812 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
3813 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
3814 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGI@Z */
3815 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K@Z */
3816 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_of_cstr
, 12)
3817 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_last_of_cstr(
3818 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t off
)
3820 return MSVCP_basic_string_wchar_find_last_of_cstr_substr(
3821 this, find
, off
, MSVCP_char_traits_wchar_length(find
));
3824 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
3825 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
3826 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIGI@Z */
3827 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KG_K@Z */
3828 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_of_ch
, 12)
3829 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_last_of_ch(
3830 const basic_string_wchar
*this, wchar_t ch
, MSVCP_size_t off
)
3832 return MSVCP_basic_string_wchar_find_last_of_cstr_substr(this, &ch
, off
, 1);
3835 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
3836 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
3837 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGII@Z */
3838 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K1@Z */
3839 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_not_of_cstr_substr
, 16)
3840 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_last_not_of_cstr_substr(
3841 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t off
, MSVCP_size_t len
)
3843 const wchar_t *p
, *beg
;
3845 TRACE("%p %p %lu %lu\n", this, find
, off
, len
);
3847 if(len
>0 && this->size
>0) {
3848 if(off
>= this->size
)
3851 beg
= basic_string_wchar_const_ptr(this);
3852 for(p
=beg
+off
; p
>=beg
; p
--)
3853 if(!MSVCP_char_traits_wchar_find(find
, len
, p
))
3857 return MSVCP_basic_string_wchar_npos
;
3860 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
3861 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
3862 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIABV12@I@Z */
3863 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KAEBV12@_K@Z */
3864 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_not_of
, 12)
3865 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_last_not_of(
3866 const basic_string_wchar
*this, const basic_string_wchar
*find
, MSVCP_size_t off
)
3868 return MSVCP_basic_string_wchar_find_last_not_of_cstr_substr(this,
3869 basic_string_wchar_const_ptr(find
), off
, find
->size
);
3872 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
3873 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
3874 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGI@Z */
3875 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K@Z */
3876 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_not_of_cstr
, 12)
3877 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_last_not_of_cstr(
3878 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t off
)
3880 return MSVCP_basic_string_wchar_find_last_not_of_cstr_substr(
3881 this, find
, off
, MSVCP_char_traits_wchar_length(find
));
3884 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
3885 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
3886 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIGI@Z */
3887 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KG_K@Z */
3888 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_not_of_ch
, 12)
3889 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_last_not_of_ch(
3890 const basic_string_wchar
*this, wchar_t ch
, MSVCP_size_t off
)
3892 return MSVCP_basic_string_wchar_find_last_not_of_cstr_substr(this, &ch
, off
, 1);
3895 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IIPB_WI@Z */
3896 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0PEB_W0@Z */
3897 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IIPBGI@Z */
3898 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K0PEBG0@Z */
3899 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_cstr_len
, 20)
3900 basic_string_wchar
* __thiscall
basic_string_wchar_replace_cstr_len(basic_string_wchar
*this,
3901 MSVCP_size_t off
, MSVCP_size_t len
, const wchar_t *str
, MSVCP_size_t str_len
)
3903 MSVCP_size_t inside_pos
= -1;
3904 wchar_t *ptr
= basic_string_wchar_ptr(this);
3906 TRACE("%p %ld %ld %p %ld\n", this, off
, len
, str
, str_len
);
3908 if(this->size
< off
)
3909 MSVCP__String_base_Xran();
3911 if(len
> this->size
-off
)
3912 len
= this->size
-off
;
3914 if(MSVCP_basic_string_wchar_npos
-str_len
<= this->size
-len
)
3915 MSVCP__String_base_Xlen();
3917 if(basic_string_wchar_inside(this, str
))
3918 inside_pos
= str
-ptr
;
3921 basic_string_wchar_grow(this, this->size
-len
+str_len
, FALSE
);
3922 ptr
= basic_string_wchar_ptr(this);
3925 if(inside_pos
== -1) {
3926 memmove(ptr
+off
+str_len
, ptr
+off
+len
, (this->size
-off
-len
)*sizeof(wchar_t));
3927 memcpy(ptr
+off
, str
, str_len
*sizeof(wchar_t));
3928 } else if(len
>= str_len
) {
3929 memmove(ptr
+off
, ptr
+inside_pos
, str_len
*sizeof(wchar_t));
3930 memmove(ptr
+off
+str_len
, ptr
+off
+len
, (this->size
-off
-len
)*sizeof(wchar_t));
3934 memmove(ptr
+off
+str_len
, ptr
+off
+len
, (this->size
-off
-len
)*sizeof(wchar_t));
3936 if(inside_pos
< off
+len
) {
3937 size
= off
+len
-inside_pos
;
3940 memmove(ptr
+off
, ptr
+inside_pos
, size
*sizeof(wchar_t));
3946 memmove(ptr
+off
+size
, ptr
+off
+str_len
, (str_len
-size
)*sizeof(wchar_t));
3949 basic_string_wchar_eos(this, this->size
-len
+str_len
);
3953 /* Not exported from msvcp90 */
3954 basic_string_wchar
* __stdcall
basic_string_wchar_replace_helper(basic_string_wchar
*this,
3955 MSVCP_size_t off
, MSVCP_size_t len
, const wchar_t *str
, MSVCP_size_t str_len
)
3957 return basic_string_wchar_replace_cstr_len(this, off
, len
,str
, str_len
);
3960 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IIPB_W@Z */
3961 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0PEB_W@Z */
3962 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IIPBG@Z */
3963 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K0PEBG@Z */
3964 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_cstr
, 16)
3965 basic_string_wchar
* __thiscall
basic_string_wchar_replace_cstr(basic_string_wchar
*this,
3966 MSVCP_size_t off
, MSVCP_size_t len
, const wchar_t *str
)
3968 return basic_string_wchar_replace_cstr_len(this, off
, len
, str
,
3969 MSVCP_char_traits_wchar_length(str
));
3972 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IIABV12@II@Z */
3973 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0AEBV12@00@Z */
3974 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IIABV12@II@Z */
3975 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K0AEBV12@00@Z */
3976 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_substr
, 24)
3977 basic_string_wchar
* __thiscall
basic_string_wchar_replace_substr(basic_string_wchar
*this, MSVCP_size_t off
,
3978 MSVCP_size_t len
, const basic_string_wchar
*str
, MSVCP_size_t str_off
, MSVCP_size_t str_len
)
3980 if(str
->size
< str_off
)
3981 MSVCP__String_base_Xran();
3983 if(str_off
+str_len
> str
->size
)
3984 str_len
= str
->size
-str_off
;
3986 return basic_string_wchar_replace_cstr_len(this, off
, len
,
3987 basic_string_wchar_const_ptr(str
)+str_off
, str_len
);
3990 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IIABV12@@Z */
3991 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0AEBV12@@Z */
3992 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IIABV12@@Z */
3993 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K0AEBV12@@Z */
3994 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace
, 16)
3995 basic_string_wchar
* __thiscall
basic_string_wchar_replace(basic_string_wchar
*this,
3996 MSVCP_size_t off
, MSVCP_size_t len
, const basic_string_wchar
*str
)
3998 return basic_string_wchar_replace_cstr_len(this, off
, len
,
3999 basic_string_wchar_const_ptr(str
), str
->size
);
4002 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@III_W@Z */
4003 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K00_W@Z */
4004 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IIIG@Z */
4005 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K00G@Z */
4006 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_ch
, 20)
4007 basic_string_wchar
* __thiscall
basic_string_wchar_replace_ch(basic_string_wchar
*this,
4008 MSVCP_size_t off
, MSVCP_size_t len
, MSVCP_size_t count
, wchar_t ch
)
4010 wchar_t *ptr
= basic_string_wchar_ptr(this);
4012 TRACE("%p %ld %ld %ld %c\n", this, off
, len
, count
, ch
);
4014 if(this->size
< off
)
4015 MSVCP__String_base_Xran();
4017 if(len
> this->size
-off
)
4018 len
= this->size
-off
;
4020 if(MSVCP_basic_string_wchar_npos
-count
<= this->size
-len
)
4021 MSVCP__String_base_Xlen();
4024 basic_string_wchar_grow(this, this->size
-len
+count
, FALSE
);
4025 ptr
= basic_string_wchar_ptr(this);
4028 memmove(ptr
+off
+count
, ptr
+off
+len
, (this->size
-off
-len
)*sizeof(wchar_t));
4029 MSVCP_char_traits_wchar_assignn(ptr
+off
, count
, ch
);
4030 basic_string_wchar_eos(this, this->size
-len
+count
);
4035 /* ?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 */
4036 /* ?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 */
4037 /* ?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 */
4038 /* ?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 */
4039 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_iter_iter
, 36)
4040 basic_string_wchar
* __thiscall
basic_string_wchar_replace_iter_iter(basic_string_wchar
*this,
4041 String_iterator_wchar beg
, String_iterator_wchar end
,
4042 String_iterator_wchar res_beg
, String_iterator_wchar res_end
)
4044 String_iterator_wchar begin
= { this, basic_string_wchar_ptr(this) };
4045 return basic_string_wchar_replace_cstr_len(this,
4046 MSVCP_basic_string_wchar_Pdif(beg
, begin
), MSVCP_basic_string_wchar_Pdif(end
, beg
),
4047 res_beg
.pos
, MSVCP_basic_string_wchar_Pdif(res_end
, res_beg
));
4050 /* ?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 */
4051 /* ?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 */
4052 /* ?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 */
4053 /* ?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 */
4054 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_iter_bstr
, 24)
4055 basic_string_wchar
* __thiscall
basic_string_wchar_replace_iter_bstr(basic_string_wchar
*this,
4056 String_iterator_wchar beg
, String_iterator_wchar end
, const basic_string_wchar
*str
)
4058 String_iterator_wchar begin
= { this, basic_string_wchar_ptr(this) };
4059 return basic_string_wchar_replace(this, MSVCP_basic_string_wchar_Pdif(beg
, begin
),
4060 MSVCP_basic_string_wchar_Pdif(end
, beg
), str
);
4063 /* ?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 */
4064 /* ?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 */
4065 /* ?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 */
4066 /* ?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 */
4067 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_iter_ch
, 28)
4068 basic_string_wchar
* __thiscall
basic_string_wchar_replace_iter_ch(basic_string_wchar
*this,
4069 String_iterator_wchar beg
, String_iterator_wchar end
, MSVCP_size_t count
, wchar_t ch
)
4071 String_iterator_wchar begin
= { this, basic_string_wchar_ptr(this) };
4072 return basic_string_wchar_replace_ch(this, MSVCP_basic_string_wchar_Pdif(beg
, begin
),
4073 MSVCP_basic_string_wchar_Pdif(end
, beg
), count
, ch
);
4076 /* ?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 */
4077 /* ?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 */
4078 /* ?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 */
4079 /* ?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 */
4080 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_iter_ptr_ptr
, 28)
4081 basic_string_wchar
* __thiscall
basic_string_wchar_replace_iter_ptr_ptr(basic_string_wchar
*this,
4082 String_iterator_wchar beg
, String_iterator_wchar end
,
4083 const wchar_t *res_beg
, const wchar_t *res_end
)
4085 String_iterator_wchar begin
= { this, basic_string_wchar_ptr(this) };
4086 return basic_string_wchar_replace_cstr_len(this, MSVCP_basic_string_wchar_Pdif(beg
, begin
),
4087 MSVCP_basic_string_wchar_Pdif(end
, beg
), res_beg
, res_end
-res_beg
);
4090 /* ?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 */
4091 /* ?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 */
4092 /* ?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 */
4093 /* ?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 */
4094 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_iter_cstr
, 24)
4095 basic_string_wchar
* __thiscall
basic_string_wchar_replace_iter_cstr(basic_string_wchar
*this,
4096 String_iterator_wchar beg
, String_iterator_wchar end
, const wchar_t *str
)
4098 String_iterator_wchar begin
= { this, basic_string_wchar_ptr(this) };
4099 return basic_string_wchar_replace_cstr(this, MSVCP_basic_string_wchar_Pdif(beg
, begin
),
4100 MSVCP_basic_string_wchar_Pdif(end
, beg
), str
);
4103 /* ?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 */
4104 /* ?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 */
4105 /* ?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 */
4106 /* ?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 */
4107 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_iter_cstr_len
, 28)
4108 basic_string_wchar
* __thiscall
basic_string_wchar_replace_iter_cstr_len(basic_string_wchar
*this,
4109 String_iterator_wchar beg
, String_iterator_wchar end
, const wchar_t *str
, MSVCP_size_t len
)
4111 String_iterator_wchar begin
= { this, basic_string_wchar_ptr(this) };
4112 return basic_string_wchar_replace_cstr_len(this, MSVCP_basic_string_wchar_Pdif(beg
, begin
),
4113 MSVCP_basic_string_wchar_Pdif(end
, beg
), str
, len
);
4116 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IABV12@@Z */
4117 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_KAEBV12@@Z */
4118 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IABV12@@Z */
4119 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_KAEBV12@@Z */
4120 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert
, 12)
4121 basic_string_wchar
* __thiscall
basic_string_wchar_insert(basic_string_wchar
*this,
4122 MSVCP_size_t off
, const basic_string_wchar
*str
)
4124 return basic_string_wchar_replace(this, off
, 0, str
);
4127 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IABV12@II@Z */
4128 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_KAEBV12@00@Z */
4129 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IABV12@II@Z */
4130 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_KAEBV12@00@Z */
4131 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_substr
, 20)
4132 basic_string_wchar
* __thiscall
basic_string_wchar_insert_substr(
4133 basic_string_wchar
*this, MSVCP_size_t off
, const basic_string_wchar
*str
,
4134 MSVCP_size_t str_off
, MSVCP_size_t str_count
)
4136 return basic_string_wchar_replace_substr(this, off
, 0, str
, str_off
, str_count
);
4139 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IPB_W@Z */
4140 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_KPEB_W@Z */
4141 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IPBG@Z */
4142 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_KPEBG@Z */
4143 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_cstr
, 12)
4144 basic_string_wchar
* __thiscall
basic_string_wchar_insert_cstr(
4145 basic_string_wchar
*this, MSVCP_size_t off
, const wchar_t *str
)
4147 return basic_string_wchar_replace_cstr(this, off
, 0, str
);
4150 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IPB_WI@Z */
4151 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_KPEB_W0@Z */
4152 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IPBGI@Z */
4153 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_KPEBG0@Z */
4154 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_cstr_len
, 16)
4155 basic_string_wchar
* __thiscall
basic_string_wchar_insert_cstr_len(basic_string_wchar
*this,
4156 MSVCP_size_t off
, const wchar_t *str
, MSVCP_size_t str_len
)
4158 return basic_string_wchar_replace_cstr_len(this, off
, 0, str
, str_len
);
4161 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@II_W@Z */
4162 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0_W@Z */
4163 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IIG@Z */
4164 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K0G@Z */
4165 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_chn
, 16)
4166 basic_string_wchar
* __thiscall
basic_string_wchar_insert_chn(basic_string_wchar
*this,
4167 MSVCP_size_t off
, MSVCP_size_t count
, wchar_t ch
)
4169 return basic_string_wchar_replace_ch(this, off
, 0, count
, ch
);
4172 /* ?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 */
4173 /* ?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 */
4174 /* ?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 */
4175 /* ?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 */
4176 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_iter_chn
, 20)
4177 void __thiscall
basic_string_wchar_insert_iter_chn(basic_string_wchar
*this,
4178 String_iterator_wchar where
, MSVCP_size_t count
, wchar_t ch
)
4180 String_iterator_wchar iter
= { this, basic_string_wchar_ptr(this) };
4181 MSVCP_size_t off
= MSVCP_basic_string_wchar_Pdif(where
, iter
);
4183 basic_string_wchar_insert_chn(this, off
, count
, ch
);
4186 /* ?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 */
4187 /* ?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 */
4188 /* ?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 */
4189 /* ?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 */
4190 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_iter_ch
, 20)
4191 String_iterator_wchar
* __thiscall
basic_string_wchar_insert_iter_ch(basic_string_wchar
*this,
4192 String_iterator_wchar
*ret
, String_iterator_wchar where
, wchar_t ch
)
4197 ret
->pos
= basic_string_wchar_ptr(this);
4198 off
= MSVCP_basic_string_wchar_Pdif(where
, *ret
);
4200 basic_string_wchar_insert_chn(this, off
, 1, ch
);
4201 ret
->pos
= basic_string_wchar_ptr(this)+off
;
4205 /* ?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 */
4206 /* ?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 */
4207 /* ?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 */
4208 /* ?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 */
4209 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_iter_null
, 16)
4210 String_iterator_wchar
* __thiscall
basic_string_wchar_insert_iter_null(basic_string_wchar
*this,
4211 String_iterator_wchar
*ret
, String_iterator_wchar where
)
4213 return basic_string_wchar_insert_iter_ch(this, ret
, where
, 0);
4216 /* ?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 */
4217 /* ?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 */
4218 /* ?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 */
4219 /* ?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 */
4220 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_iter_beg_end
, 28)
4221 void __thiscall
basic_string_wchar_insert_iter_beg_end(basic_string_wchar
*this,
4222 String_iterator_wchar where
, String_iterator_wchar beg
, String_iterator_wchar end
)
4224 basic_string_wchar_replace_iter_iter(this, where
, where
, beg
, end
);
4227 /* ?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 */
4228 /* ?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 */
4229 /* ?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 */
4230 /* ?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 */
4231 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_iter_ptr_ptr
, 20)
4232 void __thiscall
basic_string_wchar_insert_iter_ptr_ptr(basic_string_wchar
*this,
4233 String_iterator_wchar where
, const wchar_t *beg
, const wchar_t *end
)
4235 basic_string_wchar_replace_iter_ptr_ptr(this, where
, where
, beg
, end
);
4238 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAA_WI@Z */
4239 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEA_W_K@Z */
4240 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAGI@Z */
4241 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAG_K@Z */
4242 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_operator_at
, 8)
4243 wchar_t* __thiscall
MSVCP_basic_string_wchar_operator_at(
4244 basic_string_wchar
*this, MSVCP_size_t pos
)
4246 TRACE("%p %lu\n", this, pos
);
4248 assert(this->size
>= pos
);
4249 return basic_string_wchar_ptr(this)+pos
;
4252 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEAB_WI@Z */
4253 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAAEB_W_K@Z */
4254 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEABGI@Z */
4255 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAAEBG_K@Z */
4256 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_const_operator_at
, 8)
4257 const wchar_t* __thiscall
MSVCP_basic_string_wchar_const_operator_at(
4258 const basic_string_wchar
*this, MSVCP_size_t pos
)
4260 TRACE("%p %lu\n", this, pos
);
4262 assert(this->size
>= pos
);
4263 return basic_string_wchar_const_ptr(this)+pos
;
4266 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAA_WU_Size_type_nosscl@01@@Z */
4267 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEA_WU_Size_type_nosscl@01@@Z */
4268 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAGU_Size_type_nosscl@01@@Z */
4269 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAGU_Size_type_nosscl@01@@Z */
4270 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_operator_at_noverify
, 8)
4271 wchar_t* __thiscall
MSVCP_basic_string_wchar_operator_at_noverify(
4272 basic_string_wchar
*this, size_t_noverify pos
)
4274 TRACE("%p %lu\n", this, pos
.val
);
4275 return basic_string_wchar_ptr(this)+pos
.val
;
4278 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEAB_WU_Size_type_nosscl@01@@Z */
4279 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAAEB_WU_Size_type_nosscl@01@@Z */
4280 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEABGU_Size_type_nosscl@01@@Z */
4281 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAAEBGU_Size_type_nosscl@01@@Z */
4282 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_operator_const_at_noverify
, 8)
4283 const wchar_t* __thiscall
MSVCP_basic_string_wchar_operator_const_at_noverify(
4284 const basic_string_wchar
*this, size_t_noverify pos
)
4286 TRACE("%p %lu\n", this, pos
.val
);
4287 return basic_string_wchar_const_ptr(this)+pos
.val
;
4290 /* ?at@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAA_WI@Z */
4291 /* ?at@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEA_W_K@Z */
4292 /* ?at@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAGI@Z */
4293 /* ?at@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAG_K@Z */
4294 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_at
, 8)
4295 wchar_t* __thiscall
MSVCP_basic_string_wchar_at(
4296 basic_string_wchar
*this, MSVCP_size_t pos
)
4298 TRACE("%p %lu\n", this, pos
);
4300 if(this->size
<= pos
)
4301 MSVCP__String_base_Xran();
4303 return basic_string_wchar_ptr(this)+pos
;
4306 /* ?at@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEAB_WI@Z */
4307 /* ?at@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAAEB_W_K@Z */
4308 /* ?at@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEABGI@Z */
4309 /* ?at@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAAEBG_K@Z */
4310 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_const_at
, 8)
4311 const wchar_t* __thiscall
MSVCP_basic_string_wchar_const_at(
4312 const basic_string_wchar
*this, MSVCP_size_t pos
)
4314 TRACE("%p %lu\n", this, pos
);
4316 if(this->size
<= pos
)
4317 MSVCP__String_base_Xran();
4319 return basic_string_wchar_const_ptr(this)+pos
;
4322 /* ?resize@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXI_W@Z */
4323 /* ?resize@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAX_K_W@Z */
4324 /* ?resize@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXIG@Z */
4325 /* ?resize@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAX_KG@Z */
4326 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_resize_ch
, 12)
4327 void __thiscall
MSVCP_basic_string_wchar_resize_ch(
4328 basic_string_wchar
*this, MSVCP_size_t size
, wchar_t ch
)
4330 TRACE("%p %lu %c\n", this, size
, ch
);
4332 if(size
<= this->size
)
4333 MSVCP_basic_string_wchar_erase(this, size
, this->size
);
4335 MSVCP_basic_string_wchar_append_len_ch(this, size
-this->size
, ch
);
4338 /* ?resize@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXI@Z */
4339 /* ?resize@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAX_K@Z */
4340 /* ?resize@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXI@Z */
4341 /* ?resize@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAX_K@Z */
4342 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_resize
, 8)
4343 void __thiscall
MSVCP_basic_string_wchar_resize(
4344 basic_string_wchar
*this, MSVCP_size_t size
)
4346 MSVCP_basic_string_wchar_resize_ch(this, size
, '\0');
4349 /* ?clear@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
4350 /* ?clear@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
4351 /* ?clear@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
4352 /* ?clear@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
4353 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_clear
, 4)
4354 void __thiscall
MSVCP_basic_string_wchar_clear(basic_string_wchar
*this)
4356 basic_string_wchar_eos(this, 0);
4359 /* ?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 */
4360 /* ?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 */
4361 /* ?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 */
4362 /* ?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 */
4363 /* ?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 */
4364 /* ?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 */
4365 /* ?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 */
4366 /* ?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 */
4367 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_begin
, 8)
4368 String_iterator_wchar
* __thiscall
MSVCP_basic_string_wchar_begin(
4369 basic_string_wchar
*this, String_iterator_wchar
*ret
)
4371 TRACE("%p\n", this);
4374 ret
->pos
= basic_string_wchar_const_ptr(this);
4378 /* ?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 */
4379 /* ?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 */
4380 /* ?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 */
4381 /* ?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 */
4382 /* ?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 */
4383 /* ?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 */
4384 /* ?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 */
4385 /* ?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 */
4386 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_end
, 8)
4387 String_iterator_wchar
* __thiscall
MSVCP_basic_string_wchar_end(
4388 basic_string_wchar
*this, String_iterator_wchar
*ret
)
4390 TRACE("%p\n", this);
4393 ret
->pos
= basic_string_wchar_const_ptr(this)+this->size
;
4397 /* ?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 */
4398 /* ?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 */
4399 /* ?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 */
4400 /* ?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 */
4401 /* ?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 */
4402 /* ?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 */
4403 /* ?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 */
4404 /* ?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 */
4405 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_rbegin
, 8)
4406 String_reverse_iterator_wchar
* __thiscall
MSVCP_basic_string_wchar_rbegin(
4407 basic_string_wchar
*this, String_reverse_iterator_wchar
*ret
)
4409 TRACE("%p\n", this);
4412 ret
->pos
= basic_string_wchar_const_ptr(this)+this->size
;
4416 /* ?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 */
4417 /* ?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 */
4418 /* ?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 */
4419 /* ?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 */
4420 /* ?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 */
4421 /* ?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 */
4422 /* ?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 */
4423 /* ?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 */
4424 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_rend
, 8)
4425 String_reverse_iterator_wchar
* __thiscall
MSVCP_basic_string_wchar_rend(
4426 basic_string_wchar
*this, String_reverse_iterator_wchar
*ret
)
4428 TRACE("%p\n", this);
4431 ret
->pos
= basic_string_wchar_const_ptr(this);
4435 /* _String_val class */
4436 /* ??_F?$_String_val@DV?$allocator@D@std@@@std@@QAEXXZ */
4437 /* ??_F?$_String_val@DV?$allocator@D@std@@@std@@QEAAXXZ */
4438 /* ??_F?$_String_val@GV?$allocator@G@std@@@std@@QAEXXZ */
4439 /* ??_F?$_String_val@GV?$allocator@G@std@@@std@@QEAAXXZ */
4440 /* ??_F?$_String_val@_WV?$allocator@_W@std@@@std@@QAEXXZ */
4441 /* ??_F?$_String_val@_WV?$allocator@_W@std@@@std@@QEAAXXZ */
4442 DEFINE_THISCALL_WRAPPER(_String_val_ctor
, 4)
4443 void* __thiscall
_String_val_ctor(void *this)
4445 TRACE("%p\n", this);
4449 /* ??0?$_String_val@DV?$allocator@D@std@@@std@@IAE@V?$allocator@D@1@@Z */
4450 /* ??0?$_String_val@DV?$allocator@D@std@@@std@@IEAA@V?$allocator@D@1@@Z */
4451 /* ??0?$_String_val@GV?$allocator@G@std@@@std@@IAE@V?$allocator@G@1@@Z */
4452 /* ??0?$_String_val@GV?$allocator@G@std@@@std@@IEAA@V?$allocator@G@1@@Z */
4453 /* ??0?$_String_val@_WV?$allocator@_W@std@@@std@@IAE@V?$allocator@_W@1@@Z */
4454 /* ??0?$_String_val@_WV?$allocator@_W@std@@@std@@IEAA@V?$allocator@_W@1@@Z */
4455 /* ??0?$_String_val@DV?$allocator@D@std@@@std@@QAE@ABV01@@Z */
4456 /* ??0?$_String_val@DV?$allocator@D@std@@@std@@QEAA@AEBV01@@Z */
4457 /* ??0?$_String_val@GV?$allocator@G@std@@@std@@QAE@ABV01@@Z */
4458 /* ??0?$_String_val@GV?$allocator@G@std@@@std@@QEAA@AEBV01@@Z */
4459 /* ??0?$_String_val@_WV?$allocator@_W@std@@@std@@QAE@ABV01@@Z */
4460 /* ??0?$_String_val@_WV?$allocator@_W@std@@@std@@QEAA@AEBV01@@Z */
4461 /* ??4?$_String_val@DV?$allocator@D@std@@@std@@QAEAAV01@ABV01@@Z */
4462 /* ??4?$_String_val@DV?$allocator@D@std@@@std@@QEAAAEAV01@AEBV01@@Z */
4463 /* ??4?$_String_val@GV?$allocator@G@std@@@std@@QAEAAV01@ABV01@@Z */
4464 /* ??4?$_String_val@GV?$allocator@G@std@@@std@@QEAAAEAV01@AEBV01@@Z */
4465 /* ??4?$_String_val@_WV?$allocator@_W@std@@@std@@QAEAAV01@ABV01@@Z */
4466 /* ??4?$_String_val@_WV?$allocator@_W@std@@@std@@QEAAAEAV01@AEBV01@@Z */
4467 /* ??4?$_String_val@DV?$allocator@D@std@@@std@@QAEAAV01@ABV01@@Z */
4468 DEFINE_THISCALL_WRAPPER(_String_val_null_ctor
, 8)
4469 void* __thiscall
_String_val_null_ctor(void *this, const void *misc
)
4471 TRACE("%p %p\n", this, misc
);