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 /* size_t_noverify structure */
42 /* char_traits<char> */
43 /* ?assign@?$char_traits@D@std@@SAXAADABD@Z */
44 /* ?assign@?$char_traits@D@std@@SAXAEADAEBD@Z */
45 void CDECL
MSVCP_char_traits_char_assign(char *ch
, const char *assign
)
50 /* ?eq@?$char_traits@D@std@@SA_NABD0@Z */
51 /* ?eq@?$char_traits@D@std@@SA_NAEBD0@Z */
52 MSVCP_bool CDECL
MSVCP_char_traits_char_eq(const char *ch1
, const char *ch2
)
57 /* ?lt@?$char_traits@D@std@@SA_NABD0@Z */
58 /* ?lt@?$char_traits@D@std@@SA_NAEBD0@Z */
59 MSVCP_bool CDECL
MSVCP_char_traits_lt(const char *ch1
, const char *ch2
)
64 /* ?compare@?$char_traits@D@std@@SAHPBD0I@Z */
65 /* ?compare@?$char_traits@D@std@@SAHPEBD0_K@Z */
66 int CDECL
MSVCP_char_traits_char_compare(
67 const char *s1
, const char *s2
, MSVCP_size_t count
)
69 int ret
= memcmp(s1
, s2
, count
);
70 return (ret
>0 ? 1 : (ret
<0 ? -1 : 0));
73 /* ?length@?$char_traits@D@std@@SAIPBD@Z */
74 /* ?length@?$char_traits@D@std@@SA_KPEBD@Z */
75 MSVCP_size_t CDECL
MSVCP_char_traits_char_length(const char *str
)
80 /* ?_Copy_s@?$char_traits@D@std@@SAPADPADIPBDI@Z */
81 /* ?_Copy_s@?$char_traits@D@std@@SAPEADPEAD_KPEBD1@Z */
82 char* CDECL
MSVCP_char_traits_char__Copy_s(char *dest
,
83 MSVCP_size_t size
, const char *src
, MSVCP_size_t count
)
85 memcpy_s(dest
, size
, src
, count
);
89 /* ?copy@?$char_traits@D@std@@SAPADPADPBDI@Z */
90 /* ?copy@?$char_traits@D@std@@SAPEADPEADPEBD_K@Z */
91 char* CDECL
MSVCP_char_traits_char_copy(
92 char *dest
, const char *src
, MSVCP_size_t count
)
94 return MSVCP_char_traits_char__Copy_s(dest
, count
, src
, count
);
97 /* ?find@?$char_traits@D@std@@SAPBDPBDIABD@Z */
98 /* ?find@?$char_traits@D@std@@SAPEBDPEBD_KAEBD@Z */
99 const char * CDECL
MSVCP_char_traits_char_find(
100 const char *str
, MSVCP_size_t range
, const char *c
)
102 return memchr(str
, *c
, range
);
105 /* ?_Move_s@?$char_traits@D@std@@SAPADPADIPBDI@Z */
106 /* ?_Move_s@?$char_traits@D@std@@SAPEADPEAD_KPEBD1@Z */
107 char* CDECL
MSVCP_char_traits_char__Move_s(char *dest
,
108 MSVCP_size_t size
, const char *src
, MSVCP_size_t count
)
110 memmove_s(dest
, size
, src
, count
);
114 /* ?move@?$char_traits@D@std@@SAPADPADPBDI@Z */
115 /* ?move@?$char_traits@D@std@@SAPEADPEADPEBD_K@Z */
116 char* CDECL
MSVCP_char_traits_char_move(
117 char *dest
, const char *src
, MSVCP_size_t count
)
119 return MSVCP_char_traits_char__Move_s(dest
, count
, src
, count
);
122 /* ?assign@?$char_traits@D@std@@SAPADPADID@Z */
123 /* ?assign@?$char_traits@D@std@@SAPEADPEAD_KD@Z */
124 char* CDECL
MSVCP_char_traits_char_assignn(char *str
, MSVCP_size_t num
, char c
)
126 return memset(str
, c
, num
);
129 /* ?to_char_type@?$char_traits@D@std@@SADABH@Z */
130 /* ?to_char_type@?$char_traits@D@std@@SADAEBH@Z */
131 char CDECL
MSVCP_char_traits_char_to_char_type(const int *i
)
136 /* ?to_int_type@?$char_traits@D@std@@SAHABD@Z */
137 /* ?to_int_type@?$char_traits@D@std@@SAHAEBD@Z */
138 int CDECL
MSVCP_char_traits_char_to_int_type(const char *ch
)
140 return (unsigned char)*ch
;
143 /* ?eq_int_type@?$char_traits@D@std@@SA_NABH0@Z */
144 /* ?eq_int_type@?$char_traits@D@std@@SA_NAEBH0@Z */
145 MSVCP_bool CDECL
MSVCP_char_traits_char_eq_int_type(const int *i1
, const int *i2
)
150 /* ?eof@?$char_traits@D@std@@SAHXZ */
151 int CDECL
MSVCP_char_traits_char_eof(void)
156 /* ?not_eof@?$char_traits@D@std@@SAHABH@Z */
157 /* ?not_eof@?$char_traits@D@std@@SAHAEBH@Z */
158 int CDECL
MSVCP_char_traits_char_not_eof(int *in
)
160 return (*in
==EOF
? !EOF
: *in
);
164 /* char_traits<wchar_t> */
165 /* ?assign@?$char_traits@_W@std@@SAXAA_WAB_W@Z */
166 /* ?assign@?$char_traits@_W@std@@SAXAEA_WAEB_W@Z */
167 void CDECL
MSVCP_char_traits_wchar_assign(wchar_t *ch
,
168 const wchar_t *assign
)
173 /* ?eq@?$char_traits@_W@std@@SA_NAB_W0@Z */
174 /* ?eq@?$char_traits@_W@std@@SA_NAEB_W0@Z */
175 MSVCP_bool CDECL
MSVCP_char_traits_wchar_eq(wchar_t *ch1
, wchar_t *ch2
)
180 /* ?lt@?$char_traits@_W@std@@SA_NAB_W0@Z */
181 /* ?lt@?$char_traits@_W@std@@SA_NAEB_W0@Z */
182 MSVCP_bool CDECL
MSVCP_char_traits_wchar_lt(const wchar_t *ch1
,
188 /* ?compare@?$char_traits@_W@std@@SAHPB_W0I@Z */
189 /* ?compare@?$char_traits@_W@std@@SAHPEB_W0_K@Z */
190 int CDECL
MSVCP_char_traits_wchar_compare(const wchar_t *s1
,
191 const wchar_t *s2
, MSVCP_size_t count
)
193 int ret
= memcmp(s1
, s2
, count
* sizeof(wchar_t));
194 return (ret
>0 ? 1 : (ret
<0 ? -1 : 0));
197 /* ?length@?$char_traits@_W@std@@SAIPB_W@Z */
198 /* ?length@?$char_traits@_W@std@@SA_KPEB_W@Z */
199 MSVCP_size_t CDECL
MSVCP_char_traits_wchar_length(const wchar_t *str
)
201 return wcslen((WCHAR
*)str
);
204 /* ?_Copy_s@?$char_traits@_W@std@@SAPA_WPA_WIPB_WI@Z */
205 /* ?_Copy_s@?$char_traits@_W@std@@SAPEA_WPEA_W_KPEB_W1@Z */
206 wchar_t* CDECL
MSVCP_char_traits_wchar__Copy_s(wchar_t *dest
,
207 MSVCP_size_t size
, const wchar_t *src
, MSVCP_size_t count
)
209 memcpy_s(dest
, size
* sizeof(wchar_t), src
, count
* sizeof(wchar_t));
213 /* ?copy@?$char_traits@_W@std@@SAPA_WPA_WPB_WI@Z */
214 /* ?copy@?$char_traits@_W@std@@SAPEA_WPEA_WPEB_W_K@Z */
215 wchar_t* CDECL
MSVCP_char_traits_wchar_copy(wchar_t *dest
,
216 const wchar_t *src
, MSVCP_size_t count
)
218 return MSVCP_char_traits_wchar__Copy_s(dest
, count
, src
, count
);
221 /* ?find@?$char_traits@_W@std@@SAPB_WPB_WIAB_W@Z */
222 /* ?find@?$char_traits@_W@std@@SAPEB_WPEB_W_KAEB_W@Z */
223 const wchar_t* CDECL
MSVCP_char_traits_wchar_find(
224 const wchar_t *str
, MSVCP_size_t range
, const wchar_t *c
)
228 for(i
=0; i
<range
; i
++)
235 /* ?_Move_s@?$char_traits@_W@std@@SAPA_WPA_WIPB_WI@Z */
236 /* ?_Move_s@?$char_traits@_W@std@@SAPEA_WPEA_W_KPEB_W1@Z */
237 wchar_t* CDECL
MSVCP_char_traits_wchar__Move_s(wchar_t *dest
,
238 MSVCP_size_t size
, const wchar_t *src
, MSVCP_size_t count
)
240 memmove_s(dest
, size
* sizeof(wchar_t), src
, count
* sizeof(wchar_t));
244 /* ?move@?$char_traits@_W@std@@SAPA_WPA_WPB_WI@Z */
245 /* ?move@?$char_traits@_W@std@@SAPEA_WPEA_WPEB_W_K@Z */
246 wchar_t* CDECL
MSVCP_char_traits_wchar_move(wchar_t *dest
,
247 const wchar_t *src
, MSVCP_size_t count
)
249 return MSVCP_char_traits_wchar__Move_s(dest
, count
, src
, count
);
252 /* ?assign@?$char_traits@_W@std@@SAPA_WPA_WI_W@Z */
253 /* ?assign@?$char_traits@_W@std@@SAPEA_WPEA_W_K_W@Z */
254 wchar_t* CDECL
MSVCP_char_traits_wchar_assignn(wchar_t *str
,
255 MSVCP_size_t num
, wchar_t c
)
265 /* ?to_char_type@?$char_traits@_W@std@@SA_WABG@Z */
266 /* ?to_char_type@?$char_traits@_W@std@@SA_WAEBG@Z */
267 wchar_t CDECL
MSVCP_char_traits_wchar_to_char_type(const unsigned short *i
)
272 /* ?to_int_type@?$char_traits@_W@std@@SAGAB_W@Z */
273 /* ?to_int_type@?$char_traits@_W@std@@SAGAEB_W@Z */
274 unsigned short CDECL
MSVCP_char_traits_wchar_to_int_type(const wchar_t *ch
)
279 /* ?eq_int_type@?$char_traits@_W@std@@SA_NABG0@Z */
280 /* ?eq_int_type@?$char_traits@_W@std@@SA_NAEBG0@Z */
281 MSVCP_bool CDECL
MSVCP_char_traits_wchar_eq_int_tpe(const unsigned short *i1
,
282 const unsigned short *i2
)
287 /* ?eof@?$char_traits@_W@std@@SAGXZ */
288 unsigned short CDECL
MSVCP_char_traits_wchar_eof(void)
293 /* ?not_eof@?$char_traits@_W@std@@SAGABG@Z */
294 /* ?not_eof@?$char_traits@_W@std@@SAGAEBG@Z */
295 unsigned short CDECL
MSVCP_char_traits_wchar_not_eof(const unsigned short *in
)
297 return (*in
==WEOF
? !WEOF
: *in
);
301 /* char_traits<unsigned short> */
302 /* ?assign@?$char_traits@G@std@@SAXAAGABG@Z */
303 /* ?assign@?$char_traits@G@std@@SAXAEAGAEBG@Z */
304 void CDECL
MSVCP_char_traits_short_assign(unsigned short *ch
,
305 const unsigned short *assign
)
310 /* ?eq@?$char_traits@G@std@@SA_NABG0@Z */
311 /* ?eq@?$char_traits@G@std@@SA_NAEBG0@Z */
312 MSVCP_bool CDECL
MSVCP_char_traits_short_eq(const unsigned short *ch1
,
313 const unsigned short *ch2
)
318 /* ?lt@?$char_traits@G@std@@SA_NABG0@Z */
319 /* ?lt@?$char_traits@G@std@@SA_NAEBG0@Z */
320 MSVCP_bool CDECL
MSVCP_char_traits_short_lt(const unsigned short *ch1
,
321 const unsigned short *ch2
)
326 /* ?compare@?$char_traits@G@std@@SAHPBG0I@Z */
327 /* ?compare@?$char_traits@G@std@@SAHPEBG0_K@Z */
328 int CDECL
MSVCP_char_traits_short_compare(const unsigned short *s1
,
329 const unsigned short *s2
, MSVCP_size_t count
)
333 for(i
=0; i
<count
; i
++)
335 return (s1
[i
] < s2
[i
] ? -1 : 1);
340 /* ?length@?$char_traits@G@std@@SAIPBG@Z */
341 /* ?length@?$char_traits@G@std@@SA_KPEBG@Z */
342 MSVCP_size_t CDECL
MSVCP_char_traits_short_length(const unsigned short *str
)
346 for(len
=0; str
[len
]; len
++);
351 /* ?_Copy_s@?$char_traits@G@std@@SAPAGPAGIPBGI@Z */
352 /* ?_Copy_s@?$char_traits@G@std@@SAPEAGPEAG_KPEBG1@Z */
353 unsigned short * CDECL
MSVCP_char_traits_short__Copy_s(unsigned short *dest
,
354 MSVCP_size_t size
, const unsigned short *src
, MSVCP_size_t count
)
356 memcpy_s(dest
, size
* sizeof(unsigned short), src
, count
* sizeof(unsigned short));
360 /* ?copy@?$char_traits@G@std@@SAPAGPAGPBGI@Z */
361 /* ?copy@?$char_traits@G@std@@SAPEAGPEAGPEBG_K@Z */
362 unsigned short* CDECL
MSVCP_char_traits_short_copy(unsigned short *dest
,
363 const unsigned short *src
, MSVCP_size_t count
)
365 return MSVCP_char_traits_short__Copy_s(dest
, count
, src
, count
);
368 /* ?find@?$char_traits@G@std@@SAPBGPBGIABG@Z */
369 /* ?find@?$char_traits@G@std@@SAPEBGPEBG_KAEBG@Z */
370 const unsigned short* CDECL
MSVCP_char_traits_short_find(
371 const unsigned short *str
, MSVCP_size_t range
, const unsigned short *c
)
375 for(i
=0; i
<range
; i
++)
382 /* ?_Move_s@?$char_traits@G@std@@SAPAGPAGIPBGI@Z */
383 /* ?_Move_s@?$char_traits@G@std@@SAPEAGPEAG_KPEBG1@Z */
384 unsigned short* CDECL
MSVCP_char_traits_short__Move_s(unsigned short *dest
,
385 MSVCP_size_t size
, const unsigned short *src
, MSVCP_size_t count
)
387 memmove_s(dest
, size
* sizeof(unsigned short), src
, count
* sizeof(unsigned short));
391 /* ?move@?$char_traits@G@std@@SAPAGPAGPBGI@Z */
392 /* ?move@?$char_traits@G@std@@SAPEAGPEAGPEBG_K@Z */
393 unsigned short* CDECL
MSVCP_char_traits_short_move(unsigned short *dest
,
394 const unsigned short *src
, MSVCP_size_t count
)
396 return MSVCP_char_traits_short__Move_s(dest
, count
, src
, count
);
399 /* ?assign@?$char_traits@G@std@@SAPAGPAGIG@Z */
400 /* ?assign@?$char_traits@G@std@@SAPEAGPEAG_KG@Z */
401 unsigned short* CDECL
MSVCP_char_traits_short_assignn(unsigned short *str
,
402 MSVCP_size_t num
, unsigned short c
)
412 /* ?to_char_type@?$char_traits@G@std@@SAGABG@Z */
413 /* ?to_char_type@?$char_traits@G@std@@SAGAEBG@Z */
414 unsigned short CDECL
MSVCP_char_traits_short_to_char_type(const unsigned short *i
)
419 /* ?to_int_type@?$char_traits@G@std@@SAGABG@Z */
420 /* ?to_int_type@?$char_traits@G@std@@SAGAEBG@Z */
421 unsigned short CDECL
MSVCP_char_traits_short_to_int_type(const unsigned short *ch
)
426 /* ?eq_int_type@?$char_traits@G@std@@SA_NABG0@Z */
427 /* ?eq_int_type@?$char_traits@G@std@@SA_NAEBG0@Z */
428 MSVCP_bool CDECL
MSVCP_char_traits_short_eq_int_type(unsigned short *i1
,
434 /* ?eof@?$char_traits@G@std@@SAGXZ */
435 unsigned short CDECL
MSVCP_char_traits_short_eof(void)
440 /* ?not_eof@?$char_traits@G@std@@SAGABG@Z */
441 /* ?not_eof@?$char_traits@G@std@@SAGAEBG@Z */
442 unsigned short CDECL
MSVCP_char_traits_short_not_eof(const unsigned short *in
)
444 return (*in
==(unsigned short)-1 ? 0 : *in
);
449 /* ?_Xlen@_String_base@std@@SAXXZ */
450 void CDECL
MSVCP__String_base_Xlen(void)
452 static const char msg
[] = "string too long";
455 throw_exception(EXCEPTION_LENGTH_ERROR
, msg
);
458 /* ?_Xlen@_String_base@std@@QBEXXZ */
459 DEFINE_THISCALL_WRAPPER(_String_base__Xlen
, 4)
460 void __thiscall
_String_base__Xlen(const void/*_String_base*/ *this)
462 MSVCP__String_base_Xlen();
465 /* ?_Xran@_String_base@std@@SAXXZ */
466 void CDECL
MSVCP__String_base_Xran(void)
468 static const char msg
[] = "invalid string position";
471 throw_exception(EXCEPTION_OUT_OF_RANGE
, msg
);
474 /* ?_Xran@_String_base@std@@QBEXXZ */
475 DEFINE_THISCALL_WRAPPER(_String_base__Xran
, 4)
476 void __thiscall
_String_base__Xran(const void/*_String_base*/ *this)
478 MSVCP__String_base_Xran();
481 /* ?_Xinvarg@_String_base@std@@SAXXZ */
482 void CDECL
MSVCP__String_base_Xinvarg(void)
484 static const char msg
[] = "invalid string argument";
487 throw_exception(EXCEPTION_INVALID_ARGUMENT
, msg
);
491 /* basic_string<char, char_traits<char>, allocator<char>> */
492 /* ?npos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@2IB */
493 /* ?npos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@2_KB */
494 const MSVCP_size_t MSVCP_basic_string_char_npos
= -1;
496 /* ?_Myptr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEPADXZ */
497 /* ?_Myptr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAPEADXZ */
498 DEFINE_THISCALL_WRAPPER(basic_string_char_ptr
, 4)
499 char* __thiscall
basic_string_char_ptr(basic_string_char
*this)
501 if(this->res
< BUF_SIZE_CHAR
)
502 return this->data
.buf
;
503 return this->data
.ptr
;
506 /* ?_Myptr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IBEPBDXZ */
507 /* ?_Myptr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEBAPEBDXZ */
508 DEFINE_THISCALL_WRAPPER(basic_string_char_const_ptr
, 4)
509 const char* __thiscall
basic_string_char_const_ptr(const basic_string_char
*this)
511 if(this->res
< BUF_SIZE_CHAR
)
512 return this->data
.buf
;
513 return this->data
.ptr
;
516 /* ?_Eos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXI@Z */
517 /* ?_Eos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAX_K@Z */
518 DEFINE_THISCALL_WRAPPER(basic_string_char_eos
, 8)
519 void __thiscall
basic_string_char_eos(basic_string_char
*this, MSVCP_size_t len
)
521 static const char nullbyte
= '\0';
524 MSVCP_char_traits_char_assign(basic_string_char_ptr(this)+len
, &nullbyte
);
527 /* ?_Inside@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAE_NPBD@Z */
528 /* ?_Inside@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAA_NPEBD@Z */
529 DEFINE_THISCALL_WRAPPER(basic_string_char_inside
, 8)
530 MSVCP_bool __thiscall
basic_string_char_inside(
531 basic_string_char
*this, const char *ptr
)
533 char *cstr
= basic_string_char_ptr(this);
535 return ptr
>=cstr
&& ptr
<cstr
+this->size
;
538 /* ?_Tidy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEX_NI@Z */
539 /* ?_Tidy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAX_N_K@Z */
540 DEFINE_THISCALL_WRAPPER(basic_string_char_tidy
, 12)
541 void __thiscall
basic_string_char_tidy(basic_string_char
*this,
542 MSVCP_bool built
, MSVCP_size_t new_size
)
544 if(built
&& BUF_SIZE_CHAR
<=this->res
) {
545 char *ptr
= this->data
.ptr
;
548 MSVCP_char_traits_char__Copy_s(this->data
.buf
, BUF_SIZE_CHAR
, ptr
, new_size
);
549 MSVCP_allocator_char_deallocate(this->allocator
, ptr
, this->res
+1);
552 this->res
= BUF_SIZE_CHAR
-1;
553 basic_string_char_eos(this, new_size
);
556 /* Exported only from msvcp60/70 */
557 /* ?_Tidy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEX_N@Z */
558 /* ?_Tidy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAX_N@Z */
559 DEFINE_THISCALL_WRAPPER(basic_string_char_tidy_built
, 8)
560 void __thiscall
basic_string_char_tidy_built(basic_string_char
*this, MSVCP_bool built
)
562 basic_string_char_tidy(this, built
, 0);
565 /* ?_Grow@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAE_NI_N@Z */
566 /* ?_Grow@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAA_N_K_N@Z */
567 DEFINE_THISCALL_WRAPPER(basic_string_char_grow
, 12)
568 MSVCP_bool __thiscall
basic_string_char_grow(
569 basic_string_char
*this, MSVCP_size_t new_size
, MSVCP_bool trim
)
571 if(this->res
< new_size
) {
572 MSVCP_size_t new_res
= new_size
, len
= this->size
;
577 if(new_res
/3 < this->res
/2)
578 new_res
= this->res
+ this->res
/2;
580 ptr
= MSVCP_allocator_char_allocate(this->allocator
, new_res
+1);
582 ptr
= MSVCP_allocator_char_allocate(this->allocator
, new_size
+1);
586 ERR("Out of memory\n");
587 basic_string_char_tidy(this, TRUE
, 0);
591 MSVCP_char_traits_char__Copy_s(ptr
, new_size
,
592 basic_string_char_ptr(this), this->size
);
593 basic_string_char_tidy(this, TRUE
, 0);
594 this->data
.ptr
= ptr
;
595 this->res
= new_size
;
596 basic_string_char_eos(this, len
);
597 } else if(trim
&& new_size
< BUF_SIZE_CHAR
)
598 basic_string_char_tidy(this, TRUE
,
599 new_size
<this->size
? new_size
: this->size
);
600 else if(new_size
== 0)
601 basic_string_char_eos(this, 0);
606 /* ?_Copy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXII@Z */
607 /* ?_Copy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAX_K0@Z */
608 DEFINE_THISCALL_WRAPPER(basic_string_char__Copy
, 12)
609 void __thiscall
basic_string_char__Copy(basic_string_char
*this,
610 MSVCP_size_t new_size
, MSVCP_size_t copy_len
)
612 TRACE("%p %lu %lu\n", this, new_size
, copy_len
);
614 if(!basic_string_char_grow(this, new_size
, FALSE
))
616 basic_string_char_eos(this, copy_len
);
619 /* ?get_allocator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AV?$allocator@D@2@XZ */
620 /* ?get_allocator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA?AV?$allocator@D@2@XZ */
621 DEFINE_THISCALL_WRAPPER(basic_string_char_get_allocator
, 8)
622 allocator
* __thiscall
basic_string_char_get_allocator(const basic_string_char
*this, allocator
*ret
)
628 /* ?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@II@Z */
629 /* ?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0@Z */
630 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_erase
, 12)
631 basic_string_char
* __thiscall
MSVCP_basic_string_char_erase(
632 basic_string_char
*this, MSVCP_size_t pos
, MSVCP_size_t len
)
634 TRACE("%p %lu %lu\n", this, pos
, len
);
637 MSVCP__String_base_Xran();
639 if(len
> this->size
-pos
)
640 len
= this->size
-pos
;
643 MSVCP_char_traits_char__Move_s(basic_string_char_ptr(this)+pos
,
644 this->res
-pos
, basic_string_char_ptr(this)+pos
+len
,
646 basic_string_char_eos(this, this->size
-len
);
652 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@II@Z */
653 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@AEBV12@_K1@Z */
654 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign_substr
, 16)
655 basic_string_char
* __thiscall
MSVCP_basic_string_char_assign_substr(
656 basic_string_char
*this, const basic_string_char
*assign
,
657 MSVCP_size_t pos
, MSVCP_size_t len
)
659 TRACE("%p %p %lu %lu\n", this, assign
, pos
, len
);
661 if(assign
->size
< pos
)
662 MSVCP__String_base_Xran();
664 if(len
> assign
->size
-pos
)
665 len
= assign
->size
-pos
;
668 MSVCP_basic_string_char_erase(this, pos
+len
, MSVCP_basic_string_char_npos
);
669 MSVCP_basic_string_char_erase(this, 0, pos
);
670 } else if(basic_string_char_grow(this, len
, FALSE
)) {
671 MSVCP_char_traits_char__Copy_s(basic_string_char_ptr(this),
672 this->res
, basic_string_char_const_ptr(assign
)+pos
, len
);
673 basic_string_char_eos(this, len
);
679 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@@Z */
680 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@AEBV12@@Z */
681 /* ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z */
682 /* ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV01@AEBV01@@Z */
683 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign
, 8)
684 basic_string_char
* __thiscall
MSVCP_basic_string_char_assign(
685 basic_string_char
*this, const basic_string_char
*assign
)
687 return MSVCP_basic_string_char_assign_substr(this, assign
,
688 0, MSVCP_basic_string_char_npos
);
691 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBDI@Z */
692 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@PEBD_K@Z */
693 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign_cstr_len
, 12)
694 basic_string_char
* __thiscall
MSVCP_basic_string_char_assign_cstr_len(
695 basic_string_char
*this, const char *str
, MSVCP_size_t len
)
697 TRACE("%p %s %lu\n", this, debugstr_an(str
, len
), len
);
699 if(basic_string_char_inside(this, str
))
700 return MSVCP_basic_string_char_assign_substr(this, this,
701 str
-basic_string_char_ptr(this), len
);
702 else if(basic_string_char_grow(this, len
, FALSE
)) {
703 MSVCP_char_traits_char__Copy_s(basic_string_char_ptr(this),
704 this->res
, str
, len
);
705 basic_string_char_eos(this, len
);
711 /* ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@D@Z */
712 /* ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV01@D@Z */
713 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign_ch
, 8)
714 basic_string_char
* __thiscall
MSVCP_basic_string_char_assign_ch(
715 basic_string_char
*this, char ch
)
717 return MSVCP_basic_string_char_assign_cstr_len(this, &ch
, 1);
720 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBD@Z */
721 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@PEBD@Z */
722 /* ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@PBD@Z */
723 /* ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV01@PEBD@Z */
724 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign_cstr
, 8)
725 basic_string_char
* __thiscall
MSVCP_basic_string_char_assign_cstr(
726 basic_string_char
*this, const char *str
)
728 return MSVCP_basic_string_char_assign_cstr_len(this, str
,
729 MSVCP_char_traits_char_length(str
));
732 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ID@Z */
733 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_KD@Z */
734 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assignn
, 12)
735 basic_string_char
* __thiscall
MSVCP_basic_string_char_assignn(
736 basic_string_char
*this, MSVCP_size_t count
, char ch
)
738 TRACE("%p %ld %c\n", this, count
, ch
);
740 basic_string_char_grow(this, count
, FALSE
);
741 MSVCP_char_traits_char_assignn(basic_string_char_ptr(this), count
, ch
);
742 basic_string_char_eos(this, count
);
746 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBD0@Z */
747 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@PEBD0@Z */
748 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign_ptr_ptr
, 12)
749 basic_string_char
* __thiscall
MSVCP_basic_string_char_assign_ptr_ptr(
750 basic_string_char
*this, const char *first
, const char *last
)
752 return MSVCP_basic_string_char_assign_cstr_len(this, first
, last
-first
);
755 /* ?_Chassign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXIID@Z */
756 /* ?_Chassign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAX_K0D@Z */
757 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_Chassign
, 16)
758 void __thiscall
MSVCP_basic_string_char_Chassign(basic_string_char
*this,
759 MSVCP_size_t off
, MSVCP_size_t count
, char ch
)
761 TRACE("%p %lu %lu %c\n", this, off
, count
, ch
);
762 MSVCP_char_traits_char_assignn(basic_string_char_ptr(this)+off
, count
, ch
);
765 /* ?_Copy_s@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPADIII@Z */
766 /* ?_Copy_s@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEAD_K11@Z */
767 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_Copy_s
, 20)
768 MSVCP_size_t __thiscall
MSVCP_basic_string_char_Copy_s(const basic_string_char
*this,
769 char *dest
, MSVCP_size_t size
, MSVCP_size_t count
, MSVCP_size_t off
)
771 TRACE("%p %p %lu %lu %lu\n", this, dest
, size
, count
, off
);
774 MSVCP__String_base_Xran();
776 if(count
> this->size
-off
)
777 count
= this->size
-off
;
779 MSVCP_char_traits_char__Copy_s(dest
, size
,
780 basic_string_char_const_ptr(this)+off
, count
);
784 /* ?copy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPADII@Z */
785 /* ?copy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEAD_K1@Z */
786 DEFINE_THISCALL_WRAPPER(basic_string_char_copy
, 16)
787 MSVCP_size_t __thiscall
basic_string_char_copy(const basic_string_char
*this,
788 char *dest
, MSVCP_size_t count
, MSVCP_size_t off
)
790 return MSVCP_basic_string_char_Copy_s(this, dest
, count
, count
, off
);
793 /* ?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ */
794 /* ?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAPEBDXZ */
795 /* ?data@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ */
796 /* ?data@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAPEBDXZ */
797 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_c_str
, 4)
798 const char* __thiscall
MSVCP_basic_string_char_c_str(const basic_string_char
*this)
801 return basic_string_char_const_ptr(this);
804 /* ?capacity@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ */
805 /* ?capacity@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KXZ */
806 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_capacity
, 4)
807 MSVCP_size_t __thiscall
MSVCP_basic_string_char_capacity(basic_string_char
*this)
813 /* ?reserve@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXI@Z */
814 /* ?reserve@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAX_K@Z */
815 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_reserve
, 8)
816 void __thiscall
MSVCP_basic_string_char_reserve(basic_string_char
*this, MSVCP_size_t size
)
820 TRACE("%p %ld\n", this, size
);
826 if(basic_string_char_grow(this, size
, TRUE
))
827 basic_string_char_eos(this, len
);
830 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ */
831 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@XZ */
832 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor
, 4)
833 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor(basic_string_char
*this)
837 basic_string_char_tidy(this, FALSE
, 0);
841 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z */
842 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@AEBV01@@Z */
843 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_copy_ctor
, 8)
844 basic_string_char
* __thiscall
MSVCP_basic_string_char_copy_ctor(
845 basic_string_char
*this, const basic_string_char
*copy
)
847 TRACE("%p %p\n", this, copy
);
849 basic_string_char_tidy(this, FALSE
, 0);
850 MSVCP_basic_string_char_assign(this, copy
);
854 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z */
855 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@PEBD@Z */
856 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_cstr
, 8)
857 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_cstr(
858 basic_string_char
*this, const char *str
)
860 TRACE("%p %s\n", this, debugstr_a(str
));
862 basic_string_char_tidy(this, FALSE
, 0);
863 MSVCP_basic_string_char_assign_cstr(this, str
);
867 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBDABV?$allocator@D@1@@Z */
868 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@PEBDAEBV?$allocator@D@1@@Z */
869 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_cstr_alloc
, 12)
870 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_cstr_alloc(
871 basic_string_char
*this, const char *str
, const void *alloc
)
873 return MSVCP_basic_string_char_ctor_cstr(this, str
);
876 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBDI@Z */
877 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@PEBD_K@Z */
878 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_cstr_len
, 12)
879 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_cstr_len(
880 basic_string_char
*this, const char *str
, MSVCP_size_t len
)
882 TRACE("%p %s %ld\n", this, debugstr_an(str
, len
), len
);
884 basic_string_char_tidy(this, FALSE
, 0);
885 MSVCP_basic_string_char_assign_cstr_len(this, str
, len
);
889 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBDIABV?$allocator@D@1@@Z */
890 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@PEBD_KAEBV?$allocator@D@1@@Z */
891 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_cstr_len_alloc
, 16)
892 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_cstr_len_alloc(
893 basic_string_char
*this, const char *str
, MSVCP_size_t len
, const void *alloc
)
895 return MSVCP_basic_string_char_ctor_cstr_len(this, str
, len
);
898 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@II@Z */
899 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@AEBV01@_K1@Z */
900 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_substr
, 16)
901 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_substr(
902 basic_string_char
*this, const basic_string_char
*assign
,
903 MSVCP_size_t pos
, MSVCP_size_t len
)
905 TRACE("%p %p %lu %lu\n", this, assign
, pos
, len
);
907 basic_string_char_tidy(this, FALSE
, 0);
908 MSVCP_basic_string_char_assign_substr(this, assign
, pos
, len
);
912 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@IIABV?$allocator@D@1@@Z */
913 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@AEBV01@_K1AEBV?$allocator@D@1@@Z */
914 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_substr_alloc
, 20)
915 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_substr_alloc(
916 basic_string_char
*this, const basic_string_char
*assign
,
917 MSVCP_size_t pos
, MSVCP_size_t len
, const void *alloc
)
919 return MSVCP_basic_string_char_ctor_substr(this, assign
, pos
, len
);
922 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV?$allocator@D@1@@Z */
923 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@AEBV?$allocator@D@1@@Z */
924 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_alloc
, 8)
925 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_alloc(
926 basic_string_char
*this, const void *alloc
)
928 TRACE("%p %p\n", this, alloc
);
930 basic_string_char_tidy(this, FALSE
, 0);
934 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ID@Z */
935 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@_KD@Z */
936 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_ch
, 12)
937 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_ch(basic_string_char
*this,
938 MSVCP_size_t count
, char ch
)
940 TRACE("%p %ld %c\n", this, count
, ch
);
942 basic_string_char_tidy(this, FALSE
, 0);
943 MSVCP_basic_string_char_assignn(this, count
, ch
);
947 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@IDABV?$allocator@D@1@@Z */
948 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@_KDAEBV?$allocator@D@1@@Z */
949 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_ch_alloc
, 16)
950 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_ch_alloc(basic_string_char
*this,
951 MSVCP_size_t count
, char ch
, const void *alloc
)
953 return MSVCP_basic_string_char_ctor_ch(this, count
, ch
);
956 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD0@Z */
957 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@PEBD0@Z */
958 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_ptr_ptr
, 12)
959 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_ptr_ptr(basic_string_char
*this,
960 const char *first
, const char *last
)
962 return MSVCP_basic_string_char_ctor_cstr_len(this, first
, last
-first
);
965 /* ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ */
966 /* ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@XZ */
967 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_dtor
, 4)
968 void __thiscall
MSVCP_basic_string_char_dtor(basic_string_char
*this)
971 basic_string_char_tidy(this, TRUE
, 0);
974 /* ?size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ */
975 /* ?size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KXZ */
976 /* ?length@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ */
977 /* ?length@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KXZ */
978 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_length
, 4)
979 MSVCP_size_t __thiscall
MSVCP_basic_string_char_length(const basic_string_char
*this)
985 /* ?max_size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ */
986 /* ?max_size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KXZ */
987 DEFINE_THISCALL_WRAPPER(basic_string_char_max_size
, 4)
988 MSVCP_size_t __thiscall
basic_string_char_max_size(const basic_string_char
*this)
991 return MSVCP_allocator_char_max_size(this->allocator
)-1;
994 /* ?empty@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE_NXZ */
995 /* ?empty@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_NXZ */
996 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_empty
, 4)
997 MSVCP_bool __thiscall
MSVCP_basic_string_char_empty(basic_string_char
*this)
1000 return this->size
== 0;
1003 /* ?swap@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXAAV12@@Z */
1004 /* ?swap@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXAEAV12@@Z */
1005 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_swap
, 8)
1006 void __thiscall
MSVCP_basic_string_char_swap(basic_string_char
*this, basic_string_char
*str
)
1009 char tmp
[sizeof(this->data
)];
1010 const MSVCP_size_t size
= this->size
;
1011 const MSVCP_size_t res
= this->res
;
1013 memcpy(tmp
, this->data
.buf
, sizeof(this->data
));
1014 memcpy(this->data
.buf
, str
->data
.buf
, sizeof(this->data
));
1015 memcpy(str
->data
.buf
, tmp
, sizeof(this->data
));
1017 this->size
= str
->size
;
1018 this->res
= str
->res
;
1025 /* ?substr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AV12@II@Z */
1026 /* ?substr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA?AV12@_K0@Z */
1027 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_substr
, 16)
1028 basic_string_char
* __thiscall
MSVCP_basic_string_char_substr(basic_string_char
*this,
1029 basic_string_char
*ret
, MSVCP_size_t off
, MSVCP_size_t len
)
1031 TRACE("%p %lu %lu\n", this, off
, len
);
1033 MSVCP_basic_string_char_ctor_substr(ret
, this, off
, len
);
1037 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@II@Z */
1038 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@AEBV12@_K1@Z */
1039 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_substr
, 16)
1040 basic_string_char
* __thiscall
MSVCP_basic_string_char_append_substr(basic_string_char
*this,
1041 const basic_string_char
*append
, MSVCP_size_t offset
, MSVCP_size_t count
)
1043 TRACE("%p %p %lu %lu\n", this, append
, offset
, count
);
1045 if(append
->size
< offset
)
1046 MSVCP__String_base_Xran();
1048 if(count
> append
->size
-offset
)
1049 count
= append
->size
-offset
;
1051 if(MSVCP_basic_string_char_npos
-this->size
<=count
|| this->size
+count
<this->size
)
1052 MSVCP__String_base_Xlen();
1054 if(basic_string_char_grow(this, this->size
+count
, FALSE
)) {
1055 MSVCP_char_traits_char__Copy_s(basic_string_char_ptr(this)+this->size
,
1056 this->res
-this->size
, basic_string_char_const_ptr(append
)+offset
, count
);
1057 basic_string_char_eos(this, this->size
+count
);
1063 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@@Z */
1064 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@AEBV12@@Z */
1065 /* ??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z */
1066 /* ??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV01@AEBV01@@Z */
1067 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append
, 8)
1068 basic_string_char
* __thiscall
MSVCP_basic_string_char_append(
1069 basic_string_char
*this, const basic_string_char
*append
)
1071 return MSVCP_basic_string_char_append_substr(this, append
,
1072 0, MSVCP_basic_string_char_npos
);
1075 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBDI@Z */
1076 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@PEBD_K@Z */
1077 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_cstr_len
, 12)
1078 basic_string_char
* __thiscall
MSVCP_basic_string_char_append_cstr_len(
1079 basic_string_char
*this, const char *append
, MSVCP_size_t count
)
1081 TRACE("%p %s %lu\n", this, debugstr_an(append
, count
), count
);
1083 if(basic_string_char_inside(this, append
))
1084 return MSVCP_basic_string_char_append_substr(this, this,
1085 append
-basic_string_char_ptr(this), count
);
1087 if(MSVCP_basic_string_char_npos
-this->size
<=count
|| this->size
+count
<this->size
)
1088 MSVCP__String_base_Xlen();
1090 if(basic_string_char_grow(this, this->size
+count
, FALSE
)) {
1091 MSVCP_char_traits_char__Copy_s(basic_string_char_ptr(this)+this->size
,
1092 this->res
-this->size
, append
, count
);
1093 basic_string_char_eos(this, this->size
+count
);
1099 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBD@Z */
1100 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@PEBD@Z */
1101 /* ??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@PBD@Z */
1102 /* ??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV01@PEBD@Z */
1103 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_cstr
, 8)
1104 basic_string_char
* __thiscall
MSVCP_basic_string_char_append_cstr(
1105 basic_string_char
*this, const char *append
)
1107 return MSVCP_basic_string_char_append_cstr_len(this, append
,
1108 MSVCP_char_traits_char_length(append
));
1111 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBD0@Z */
1112 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@PEBD0@Z */
1113 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_beg_end
, 12)
1114 basic_string_char
* __thiscall
MSVCP_basic_string_char_append_beg_end(
1115 basic_string_char
*this, const char *beg
, const char *end
)
1117 return MSVCP_basic_string_char_append_cstr_len(this, beg
, end
-beg
);
1120 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ID@Z */
1121 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_KD@Z */
1122 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_len_ch
, 12)
1123 basic_string_char
* __thiscall
MSVCP_basic_string_char_append_len_ch(
1124 basic_string_char
*this, MSVCP_size_t count
, char ch
)
1126 TRACE("%p %lu %c\n", this, count
, ch
);
1128 if(MSVCP_basic_string_char_npos
-this->size
<= count
)
1129 MSVCP__String_base_Xlen();
1131 if(basic_string_char_grow(this, this->size
+count
, FALSE
)) {
1132 MSVCP_char_traits_char_assignn(basic_string_char_ptr(this)+this->size
, count
, ch
);
1133 basic_string_char_eos(this, this->size
+count
);
1139 /* ??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@D@Z */
1140 /* ??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV01@D@Z */
1141 /* ?push_back@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXD@Z */
1142 /* ?push_back@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXD@Z */
1143 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_ch
, 8)
1144 basic_string_char
* __thiscall
MSVCP_basic_string_char_append_ch(
1145 basic_string_char
*this, char ch
)
1147 return MSVCP_basic_string_char_append_len_ch(this, 1, ch
);
1150 /* ??$?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 */
1151 /* ??$?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 */
1152 basic_string_char
* __cdecl
MSVCP_basic_string_char_concatenate_bstr_cstr(basic_string_char
*ret
,
1153 const basic_string_char
*left
, const char *right
)
1155 TRACE("%p %s\n", left
, debugstr_a(right
));
1157 MSVCP_basic_string_char_copy_ctor(ret
, left
);
1158 MSVCP_basic_string_char_append_cstr(ret
, right
);
1162 /* ??$?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 */
1163 /* ??$?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 */
1164 basic_string_char
* __cdecl
MSVCP_basic_string_char_concatenate_cstr_bstr(basic_string_char
*ret
,
1165 const char *left
, const basic_string_char
*right
)
1167 TRACE("%s %p\n", debugstr_a(left
), right
);
1169 MSVCP_basic_string_char_ctor_cstr(ret
, left
);
1170 MSVCP_basic_string_char_append(ret
, right
);
1174 /* ??$?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 */
1175 /* ??$?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 */
1176 basic_string_char
* __cdecl
MSVCP_basic_string_char_concatenate(basic_string_char
*ret
,
1177 const basic_string_char
*left
, const basic_string_char
*right
)
1179 TRACE("%p %p\n", left
, right
);
1181 MSVCP_basic_string_char_copy_ctor(ret
, left
);
1182 MSVCP_basic_string_char_append(ret
, right
);
1186 /* ??$?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 */
1187 /* ??$?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 */
1188 basic_string_char
* __cdecl
MSVCP_basic_string_char_concatenate_bstr_ch(basic_string_char
*ret
,
1189 const basic_string_char
*left
, char right
)
1191 TRACE("%p %c\n", left
, right
);
1193 MSVCP_basic_string_char_copy_ctor(ret
, left
);
1194 MSVCP_basic_string_char_append_ch(ret
, right
);
1198 /* ??$?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 */
1199 /* ??$?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 */
1200 basic_string_char
* __cdecl
MSVCP_basic_string_char_concatenate_ch_bstr(basic_string_char
*ret
,
1201 char left
, const basic_string_char
*right
)
1203 TRACE("%c %p\n", left
, right
);
1205 MSVCP_basic_string_char_ctor_cstr_len(ret
, &left
, 1);
1206 MSVCP_basic_string_char_append(ret
, right
);
1210 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEHIIPBDI@Z */
1211 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAH_K0PEBD0@Z */
1212 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_compare_substr_cstr_len
, 20)
1213 int __thiscall
MSVCP_basic_string_char_compare_substr_cstr_len(
1214 const basic_string_char
*this, MSVCP_size_t pos
, MSVCP_size_t num
,
1215 const char *str
, MSVCP_size_t count
)
1219 TRACE("%p %lu %lu %s %lu\n", this, pos
, num
, debugstr_an(str
, count
), count
);
1221 if(this->size
< pos
)
1222 MSVCP__String_base_Xran();
1224 if(num
> this->size
-pos
)
1225 num
= this->size
-pos
;
1227 ans
= MSVCP_char_traits_char_compare(basic_string_char_const_ptr(this)+pos
,
1228 str
, num
>count
? count
: num
);
1234 else if(num
< count
)
1239 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEHIIPBD@Z */
1240 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAH_K0PEBD@Z */
1241 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_compare_substr_cstr
, 16)
1242 int __thiscall
MSVCP_basic_string_char_compare_substr_cstr(const basic_string_char
*this,
1243 MSVCP_size_t pos
, MSVCP_size_t num
, const char *str
)
1245 return MSVCP_basic_string_char_compare_substr_cstr_len(this, pos
, num
,
1246 str
, MSVCP_char_traits_char_length(str
));
1249 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEHPBD@Z */
1250 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAHPEBD@Z */
1251 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_compare_cstr
, 8)
1252 int __thiscall
MSVCP_basic_string_char_compare_cstr(
1253 const basic_string_char
*this, const char *str
)
1255 return MSVCP_basic_string_char_compare_substr_cstr_len(this, 0, this->size
,
1256 str
, MSVCP_char_traits_char_length(str
));
1259 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEHIIABV12@II@Z */
1260 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAH_K0AEBV12@00@Z */
1261 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_compare_substr_substr
, 24)
1262 int __thiscall
MSVCP_basic_string_char_compare_substr_substr(
1263 const basic_string_char
*this, MSVCP_size_t pos
, MSVCP_size_t num
,
1264 const basic_string_char
*compare
, MSVCP_size_t off
, MSVCP_size_t count
)
1266 TRACE("%p %lu %lu %p %lu %lu\n", this, pos
, num
, compare
, off
, count
);
1268 if(compare
->size
< off
)
1269 MSVCP__String_base_Xran();
1271 if(count
> compare
->size
-off
)
1272 count
= compare
->size
-off
;
1274 return MSVCP_basic_string_char_compare_substr_cstr_len(this, pos
, num
,
1275 basic_string_char_const_ptr(compare
)+off
, count
);
1278 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEHIIABV12@@Z */
1279 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAH_K0AEBV12@@Z */
1280 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_compare_substr
, 16)
1281 int __thiscall
MSVCP_basic_string_char_compare_substr(
1282 const basic_string_char
*this, MSVCP_size_t pos
, MSVCP_size_t num
,
1283 const basic_string_char
*compare
)
1285 return MSVCP_basic_string_char_compare_substr_cstr_len(this, pos
, num
,
1286 basic_string_char_const_ptr(compare
), compare
->size
);
1289 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEHABV12@@Z */
1290 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAHAEBV12@@Z */
1291 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_compare
, 8)
1292 int __thiscall
MSVCP_basic_string_char_compare(
1293 const basic_string_char
*this, const basic_string_char
*compare
)
1295 return MSVCP_basic_string_char_compare_substr_cstr_len(this, 0, this->size
,
1296 basic_string_char_const_ptr(compare
), compare
->size
);
1299 /* ??$?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 */
1300 /* ??$?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 */
1301 MSVCP_bool __cdecl
MSVCP_basic_string_char_equal(
1302 const basic_string_char
*left
, const basic_string_char
*right
)
1304 return MSVCP_basic_string_char_compare(left
, right
) == 0;
1307 /* ??$?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 */
1308 /* ??$?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 */
1309 MSVCP_bool __cdecl
MSVCP_basic_string_char_equal_str_cstr(
1310 const basic_string_char
*left
, const char *right
)
1312 return MSVCP_basic_string_char_compare_cstr(left
, right
) == 0;
1315 /* ??$?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 */
1316 /* ??$?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 */
1317 MSVCP_bool __cdecl
MSVCP_basic_string_char_equal_cstr_str(
1318 const char *left
, const basic_string_char
*right
)
1320 return MSVCP_basic_string_char_compare_cstr(right
, left
) == 0;
1323 /* ??$?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 */
1324 /* ??$?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 */
1325 MSVCP_bool __cdecl
MSVCP_basic_string_char_not_equal(
1326 const basic_string_char
*left
, const basic_string_char
*right
)
1328 return MSVCP_basic_string_char_compare(left
, right
) != 0;
1331 /* ??$?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 */
1332 /* ??$?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 */
1333 MSVCP_bool __cdecl
MSVCP_basic_string_char_not_equal_str_cstr(
1334 const basic_string_char
*left
, const char *right
)
1336 return MSVCP_basic_string_char_compare_cstr(left
, right
) != 0;
1339 /* ??$?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 */
1340 /* ??$?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 */
1341 MSVCP_bool __cdecl
MSVCP_basic_string_char_not_equal_cstr_str(
1342 const char *left
, const basic_string_char
*right
)
1344 return MSVCP_basic_string_char_compare_cstr(right
, left
) != 0;
1347 /* ??$?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 */
1348 /* ??$?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 */
1349 MSVCP_bool __cdecl
MSVCP_basic_string_char_lower(
1350 const basic_string_char
*left
, const basic_string_char
*right
)
1352 return MSVCP_basic_string_char_compare(left
, right
) < 0;
1355 /* ??$?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 */
1356 /* ??$?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 */
1357 MSVCP_bool __cdecl
MSVCP_basic_string_char_lower_bstr_cstr(
1358 const basic_string_char
*left
, const char *right
)
1360 return MSVCP_basic_string_char_compare_cstr(left
, right
) < 0;
1363 /* ??$?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 */
1364 /* ??$?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 */
1365 MSVCP_bool __cdecl
MSVCP_basic_string_char_lower_cstr_bstr(
1366 const char *left
, const basic_string_char
*right
)
1368 return MSVCP_basic_string_char_compare_cstr(right
, left
) > 0;
1371 /* ??$?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 */
1372 /* ??$?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 */
1373 MSVCP_bool __cdecl
MSVCP_basic_string_char_leq(
1374 const basic_string_char
*left
, const basic_string_char
*right
)
1376 return MSVCP_basic_string_char_compare(left
, right
) <= 0;
1379 /* ??$?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 */
1380 /* ??$?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 */
1381 MSVCP_bool __cdecl
MSVCP_basic_string_char_leq_bstr_cstr(
1382 const basic_string_char
*left
, const char *right
)
1384 return MSVCP_basic_string_char_compare_cstr(left
, right
) <= 0;
1387 /* ??$?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 */
1388 /* ??$?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 */
1389 MSVCP_bool __cdecl
MSVCP_basic_string_char_leq_cstr_bstr(
1390 const char *left
, const basic_string_char
*right
)
1392 return MSVCP_basic_string_char_compare_cstr(right
, left
) >= 0;
1395 /* ??$?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 */
1396 /* ??$?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 */
1397 MSVCP_bool __cdecl
MSVCP_basic_string_char_greater(
1398 const basic_string_char
*left
, const basic_string_char
*right
)
1400 return MSVCP_basic_string_char_compare(left
, right
) > 0;
1403 /* ??$?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 */
1404 /* ??$?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 */
1405 MSVCP_bool __cdecl
MSVCP_basic_string_char_greater_bstr_cstr(
1406 const basic_string_char
*left
, const char *right
)
1408 return MSVCP_basic_string_char_compare_cstr(left
, right
) > 0;
1411 /* ??$?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 */
1412 /* ??$?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 */
1413 MSVCP_bool __cdecl
MSVCP_basic_string_char_greater_cstr_bstr(
1414 const char *left
, const basic_string_char
*right
)
1416 return MSVCP_basic_string_char_compare_cstr(right
, left
) < 0;
1419 /* ??$?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 */
1420 /* ??$?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 */
1421 MSVCP_bool __cdecl
MSVCP_basic_string_char_geq(
1422 const basic_string_char
*left
, const basic_string_char
*right
)
1424 return MSVCP_basic_string_char_compare(left
, right
) >= 0;
1427 /* ??$?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 */
1428 /* ??$?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 */
1429 MSVCP_bool __cdecl
MSVCP_basic_string_char_geq_bstr_cstr(
1430 const basic_string_char
*left
, const char *right
)
1432 return MSVCP_basic_string_char_compare_cstr(left
, right
) >= 0;
1435 /* ??$?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 */
1436 /* ??$?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 */
1437 MSVCP_bool __cdecl
MSVCP_basic_string_char_geq_cstr_bstr(
1438 const char *left
, const basic_string_char
*right
)
1440 return MSVCP_basic_string_char_compare_cstr(right
, left
) <= 0;
1443 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z */
1444 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K1@Z */
1445 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_cstr_substr
, 16)
1446 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_cstr_substr(
1447 const basic_string_char
*this, const char *find
, MSVCP_size_t pos
, MSVCP_size_t len
)
1449 const char *p
, *end
;
1451 TRACE("%p %s %lu %lu\n", this, debugstr_an(find
, len
), pos
, len
);
1453 if(len
==0 && pos
<=this->size
)
1455 if(pos
>=this->size
|| len
>this->size
)
1456 return MSVCP_basic_string_char_npos
;
1458 end
= basic_string_char_const_ptr(this)+this->size
-len
+1;
1459 for(p
=basic_string_char_const_ptr(this)+pos
; p
<end
; p
++) {
1460 p
= MSVCP_char_traits_char_find(p
, end
-p
, find
);
1464 if(!MSVCP_char_traits_char_compare(p
, find
, len
))
1465 return p
-basic_string_char_const_ptr(this);
1468 return MSVCP_basic_string_char_npos
;
1471 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDI@Z */
1472 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K@Z */
1473 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_cstr_off
, 12)
1474 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_cstr_off(
1475 const basic_string_char
*this, const char *find
, MSVCP_size_t pos
)
1477 return MSVCP_basic_string_char_find_cstr_substr(this, find
, pos
,
1478 MSVCP_char_traits_char_length(find
));
1481 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIABV12@I@Z */
1482 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KAEBV12@_K@Z */
1483 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_off
, 12)
1484 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_off(
1485 const basic_string_char
*this, const basic_string_char
*find
, MSVCP_size_t off
)
1487 return MSVCP_basic_string_char_find_cstr_substr(this,
1488 basic_string_char_const_ptr(find
), off
, find
->size
);
1491 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIDI@Z */
1492 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KD_K@Z */
1493 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_ch
, 12)
1494 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_ch(
1495 const basic_string_char
*this, char ch
, MSVCP_size_t pos
)
1497 return MSVCP_basic_string_char_find_cstr_substr(this, &ch
, pos
, 1);
1500 /* ?rfind@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z */
1501 /* ?rfind@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K1@Z */
1502 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_rfind_cstr_substr
, 16)
1503 MSVCP_size_t __thiscall
MSVCP_basic_string_char_rfind_cstr_substr(
1504 const basic_string_char
*this, const char *find
, MSVCP_size_t pos
, MSVCP_size_t len
)
1506 const char *p
, *end
;
1508 TRACE("%p %s %lu %lu\n", this, debugstr_an(find
, len
), pos
, len
);
1511 return pos
<this->size
? pos
: this->size
;
1513 if(len
> this->size
)
1514 return MSVCP_basic_string_char_npos
;
1516 if(pos
> this->size
-len
+1)
1517 pos
= this->size
-len
+1;
1518 end
= basic_string_char_const_ptr(this);
1519 for(p
=end
+pos
; p
>=end
; p
--) {
1520 if(*p
==*find
&& !MSVCP_char_traits_char_compare(p
, find
, len
))
1521 return p
-basic_string_char_const_ptr(this);
1524 return MSVCP_basic_string_char_npos
;
1527 /* ?rfind@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDI@Z */
1528 /* ?rfind@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K@Z */
1529 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_rfind_cstr_off
, 12)
1530 MSVCP_size_t __thiscall
MSVCP_basic_string_char_rfind_cstr_off(
1531 const basic_string_char
*this, const char *find
, MSVCP_size_t pos
)
1533 return MSVCP_basic_string_char_rfind_cstr_substr(this, find
, pos
,
1534 MSVCP_char_traits_char_length(find
));
1537 /* ?rfind@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIABV12@I@Z */
1538 /* ?rfind@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KAEBV12@_K@Z */
1539 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_rfind_off
, 12)
1540 MSVCP_size_t __thiscall
MSVCP_basic_string_char_rfind_off(
1541 const basic_string_char
*this, const basic_string_char
*find
, MSVCP_size_t off
)
1543 return MSVCP_basic_string_char_rfind_cstr_substr(this,
1544 basic_string_char_const_ptr(find
), off
, find
->size
);
1547 /* ?rfind@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIDI@Z */
1548 /* ?rfind@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KD_K@Z */
1549 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_rfind_ch
, 12)
1550 MSVCP_size_t __thiscall
MSVCP_basic_string_char_rfind_ch(
1551 const basic_string_char
*this, char ch
, MSVCP_size_t pos
)
1553 return MSVCP_basic_string_char_rfind_cstr_substr(this, &ch
, pos
, 1);
1556 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z */
1557 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K1@Z */
1558 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_of_cstr_substr
, 16)
1559 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_first_of_cstr_substr(
1560 const basic_string_char
*this, const char *find
, MSVCP_size_t off
, MSVCP_size_t len
)
1562 const char *p
, *end
;
1564 TRACE("%p %p %lu %lu\n", this, find
, off
, len
);
1566 if(len
>0 && off
<this->size
) {
1567 end
= basic_string_char_const_ptr(this)+this->size
;
1568 for(p
=basic_string_char_const_ptr(this)+off
; p
<end
; p
++)
1569 if(MSVCP_char_traits_char_find(find
, len
, p
))
1570 return p
-basic_string_char_const_ptr(this);
1573 return MSVCP_basic_string_char_npos
;
1576 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIABV12@I@Z */
1577 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KAEBV12@_K@Z */
1578 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_of
, 12)
1579 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_first_of(
1580 const basic_string_char
*this, const basic_string_char
*find
, MSVCP_size_t off
)
1582 return MSVCP_basic_string_char_find_first_of_cstr_substr(this,
1583 basic_string_char_const_ptr(find
), off
, find
->size
);
1586 /* ??0?$_Yarn@D@std@@QAE@XZ */
1587 /* ??0?$_Yarn@D@std@@QEAA@XZ */
1588 DEFINE_THISCALL_WRAPPER(_Yarn_char_ctor
, 4)
1589 _Yarn_char
* __thiscall
_Yarn_char_ctor(_Yarn_char
*this)
1591 TRACE("(%p)\n", this);
1594 this->null_str
= '\0';
1598 /* ?_Tidy@?$_Yarn@D@std@@AAEXXZ */
1599 /* ?_Tidy@?$_Yarn@D@std@@AEAAXXZ */
1600 DEFINE_THISCALL_WRAPPER(_Yarn_char__Tidy
, 4)
1601 void __thiscall
_Yarn_char__Tidy(_Yarn_char
*this)
1603 TRACE("(%p)\n", this);
1606 MSVCRT_operator_delete(this->str
);
1610 /* ??4?$_Yarn@D@std@@QAEAAV01@PBD@Z */
1611 /* ??4?$_Yarn@D@std@@QEAAAEAV01@PEBD@Z */
1612 DEFINE_THISCALL_WRAPPER(_Yarn_char_op_assign_cstr
, 8)
1613 _Yarn_char
* __thiscall
_Yarn_char_op_assign_cstr(_Yarn_char
*this, const char *str
)
1615 TRACE("(%p %p)\n", this, str
);
1617 _Yarn_char__Tidy(this);
1620 MSVCP_size_t len
= strlen(str
);
1622 this->str
= MSVCRT_operator_new((len
+1)*sizeof(char));
1624 ERR("out of memory\n");
1627 memcpy(this->str
, str
, (len
+1)*sizeof(char));
1632 /* ??0?$_Yarn@D@std@@QAE@PBD@Z */
1633 /* ??0?$_Yarn@D@std@@QEAA@PEBD@Z */
1634 DEFINE_THISCALL_WRAPPER(_Yarn_char_ctor_cstr
, 8)
1635 _Yarn_char
* __thiscall
_Yarn_char_ctor_cstr(_Yarn_char
*this, const char *str
)
1637 TRACE("(%p %p)\n", this, str
);
1639 _Yarn_char_ctor(this);
1640 return _Yarn_char_op_assign_cstr(this, str
);
1643 /* ??4?$_Yarn@D@std@@QAEAAV01@ABV01@@Z */
1644 /* ??4?$_Yarn@D@std@@QEAAAEAV01@AEBV01@@Z */
1645 DEFINE_THISCALL_WRAPPER(_Yarn_char_op_assign
, 8)
1646 _Yarn_char
* __thiscall
_Yarn_char_op_assign(_Yarn_char
*this, const _Yarn_char
*rhs
)
1648 TRACE("(%p %p)\n", this, rhs
);
1650 return _Yarn_char_op_assign_cstr(this, rhs
->str
);
1653 /* ??0?$_Yarn@D@std@@QAE@ABV01@@Z */
1654 /* ??0?$_Yarn@D@std@@QEAA@AEBV01@@Z */
1655 DEFINE_THISCALL_WRAPPER(_Yarn_char_copy_ctor
, 8)
1656 _Yarn_char
* __thiscall
_Yarn_char_copy_ctor(_Yarn_char
*this, const _Yarn_char
*copy
)
1658 TRACE("(%p %p)\n", this, copy
);
1660 _Yarn_char_ctor(this);
1661 return _Yarn_char_op_assign(this, copy
);
1664 /* ??1?$_Yarn@D@std@@QAE@XZ */
1665 /* ??1?$_Yarn@D@std@@QEAA@XZ */
1666 DEFINE_THISCALL_WRAPPER(_Yarn_char_dtor
, 4)
1667 void __thiscall
_Yarn_char_dtor(_Yarn_char
*this)
1669 TRACE("(%p)\n", this);
1670 _Yarn_char__Tidy(this);
1673 /* ?_C_str@?$_Yarn@D@std@@QBEPBDXZ */
1674 /* ?_C_str@?$_Yarn@D@std@@QEBAPEBDXZ */
1675 /* ?c_str@?$_Yarn@D@std@@QBEPBDXZ */
1676 /* ?c_str@?$_Yarn@D@std@@QEBAPEBDXZ */
1677 DEFINE_THISCALL_WRAPPER(_Yarn_char_c_str
, 4)
1678 const char* __thiscall
_Yarn_char_c_str(const _Yarn_char
*this)
1680 TRACE("(%p)\n", this);
1681 return this->str
? this->str
: &this->null_str
;
1684 /* ?_Empty@?$_Yarn@D@std@@QBE_NXZ */
1685 /* ?_Empty@?$_Yarn@D@std@@QEBA_NXZ */
1686 /* ?empty@?$_Yarn@D@std@@QBE_NXZ */
1687 /* ?empty@?$_Yarn@D@std@@QEBA_NXZ */
1688 DEFINE_THISCALL_WRAPPER(_Yarn_char_empty
, 4)
1689 MSVCP_bool __thiscall
_Yarn_char_empty(const _Yarn_char
*this)
1691 TRACE("(%p)\n", this);
1695 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDI@Z */
1696 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K@Z */
1697 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_of_cstr
, 12)
1698 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_first_of_cstr(
1699 const basic_string_char
*this, const char *find
, MSVCP_size_t off
)
1701 return MSVCP_basic_string_char_find_first_of_cstr_substr(
1702 this, find
, off
, MSVCP_char_traits_char_length(find
));
1705 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIDI@Z */
1706 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KD_K@Z */
1707 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_of_ch
, 12)
1708 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_first_of_ch(
1709 const basic_string_char
*this, char ch
, MSVCP_size_t off
)
1711 return MSVCP_basic_string_char_find_first_of_cstr_substr(this, &ch
, off
, 1);
1714 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z */
1715 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K1@Z */
1716 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_not_of_cstr_substr
, 16)
1717 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_first_not_of_cstr_substr(
1718 const basic_string_char
*this, const char *find
, MSVCP_size_t off
, MSVCP_size_t len
)
1720 const char *p
, *end
;
1722 TRACE("%p %p %lu %lu\n", this, find
, off
, len
);
1724 if(off
<this->size
) {
1725 end
= basic_string_char_const_ptr(this)+this->size
;
1726 for(p
=basic_string_char_const_ptr(this)+off
; p
<end
; p
++)
1727 if(!MSVCP_char_traits_char_find(find
, len
, p
))
1728 return p
-basic_string_char_const_ptr(this);
1731 return MSVCP_basic_string_char_npos
;
1734 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIABV12@I@Z */
1735 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KAEBV12@_K@Z */
1736 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_not_of
, 12)
1737 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_first_not_of(
1738 const basic_string_char
*this, const basic_string_char
*find
, MSVCP_size_t off
)
1740 return MSVCP_basic_string_char_find_first_not_of_cstr_substr(this,
1741 basic_string_char_const_ptr(find
), off
, find
->size
);
1744 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDI@Z */
1745 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K@Z */
1746 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_not_of_cstr
, 12)
1747 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_first_not_of_cstr(
1748 const basic_string_char
*this, const char *find
, MSVCP_size_t off
)
1750 return MSVCP_basic_string_char_find_first_not_of_cstr_substr(
1751 this, find
, off
, MSVCP_char_traits_char_length(find
));
1754 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIDI@Z */
1755 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KD_K@Z */
1756 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_not_of_ch
, 12)
1757 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_first_not_of_ch(
1758 const basic_string_char
*this, char ch
, MSVCP_size_t off
)
1760 return MSVCP_basic_string_char_find_first_not_of_cstr_substr(this, &ch
, off
, 1);
1763 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z */
1764 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K1@Z */
1765 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_of_cstr_substr
, 16)
1766 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_last_of_cstr_substr(
1767 const basic_string_char
*this, const char *find
, MSVCP_size_t off
, MSVCP_size_t len
)
1769 const char *p
, *beg
;
1771 TRACE("%p %p %lu %lu\n", this, find
, off
, len
);
1773 if(len
>0 && this->size
>0) {
1774 if(off
>= this->size
)
1777 beg
= basic_string_char_const_ptr(this);
1778 for(p
=beg
+off
; p
>=beg
; p
--)
1779 if(MSVCP_char_traits_char_find(find
, len
, p
))
1783 return MSVCP_basic_string_char_npos
;
1786 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIABV12@I@Z */
1787 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KAEBV12@_K@Z */
1788 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_of
, 12)
1789 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_last_of(
1790 const basic_string_char
*this, const basic_string_char
*find
, MSVCP_size_t off
)
1792 return MSVCP_basic_string_char_find_last_of_cstr_substr(this,
1793 basic_string_char_const_ptr(find
), off
, find
->size
);
1796 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDI@Z */
1797 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K@Z */
1798 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_of_cstr
, 12)
1799 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_last_of_cstr(
1800 const basic_string_char
*this, const char *find
, MSVCP_size_t off
)
1802 return MSVCP_basic_string_char_find_last_of_cstr_substr(
1803 this, find
, off
, MSVCP_char_traits_char_length(find
));
1806 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIDI@Z */
1807 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KD_K@Z */
1808 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_of_ch
, 12)
1809 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_last_of_ch(
1810 const basic_string_char
*this, char ch
, MSVCP_size_t off
)
1812 return MSVCP_basic_string_char_find_last_of_cstr_substr(this, &ch
, off
, 1);
1815 /* ?find_last_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z */
1816 /* ?find_last_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K1@Z */
1817 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_not_of_cstr_substr
, 16)
1818 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_last_not_of_cstr_substr(
1819 const basic_string_char
*this, const char *find
, MSVCP_size_t off
, MSVCP_size_t len
)
1821 const char *p
, *beg
;
1823 TRACE("%p %p %lu %lu\n", this, find
, off
, len
);
1826 if(off
>= this->size
)
1829 beg
= basic_string_char_const_ptr(this);
1830 for(p
=beg
+off
; p
>=beg
; p
--)
1831 if(!MSVCP_char_traits_char_find(find
, len
, p
))
1835 return MSVCP_basic_string_char_npos
;
1838 /* ?find_last_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIABV12@I@Z */
1839 /* ?find_last_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KAEBV12@_K@Z */
1840 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_not_of
, 12)
1841 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_last_not_of(
1842 const basic_string_char
*this, const basic_string_char
*find
, MSVCP_size_t off
)
1844 return MSVCP_basic_string_char_find_last_not_of_cstr_substr(this,
1845 basic_string_char_const_ptr(find
), off
, find
->size
);
1848 /* ?find_last_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDI@Z */
1849 /* ?find_last_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K@Z */
1850 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_not_of_cstr
, 12)
1851 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_last_not_of_cstr(
1852 const basic_string_char
*this, const char *find
, MSVCP_size_t off
)
1854 return MSVCP_basic_string_char_find_last_not_of_cstr_substr(
1855 this, find
, off
, MSVCP_char_traits_char_length(find
));
1858 /* ?find_last_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIDI@Z */
1859 /* ?find_last_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KD_K@Z */
1860 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_not_of_ch
, 12)
1861 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_last_not_of_ch(
1862 const basic_string_char
*this, char ch
, MSVCP_size_t off
)
1864 return MSVCP_basic_string_char_find_last_not_of_cstr_substr(this, &ch
, off
, 1);
1867 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAADI@Z */
1868 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAD_K@Z */
1869 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_operator_at
, 8)
1870 char* __thiscall
MSVCP_basic_string_char_operator_at(
1871 basic_string_char
*this, MSVCP_size_t pos
)
1873 TRACE("%p %lu\n", this, pos
);
1875 assert(this->size
>= pos
);
1876 return basic_string_char_ptr(this)+pos
;
1879 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEABDI@Z */
1880 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAAEBD_K@Z */
1881 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_const_operator_at
, 8)
1882 const char* __thiscall
MSVCP_basic_string_char_const_operator_at(
1883 const basic_string_char
*this, MSVCP_size_t pos
)
1885 TRACE("%p %lu\n", this, pos
);
1887 assert(this->size
>= pos
);
1888 return basic_string_char_const_ptr(this)+pos
;
1891 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAADU_Size_type_nosscl@01@@Z */
1892 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEADU_Size_type_nosscl@01@@Z */
1893 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_operator_at_noverify
, 8)
1894 char* __thiscall
MSVCP_basic_string_char_operator_at_noverify(
1895 basic_string_char
*this, size_t_noverify pos
)
1897 TRACE("%p %lu\n", this, pos
.val
);
1898 return basic_string_char_ptr(this)+pos
.val
;
1901 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEABDU_Size_type_nosscl@01@@Z */
1902 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAAEBDU_Size_type_nosscl@01@@Z */
1903 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_operator_const_at_noverify
, 8)
1904 const char* __thiscall
MSVCP_basic_string_char_operator_const_at_noverify(
1905 const basic_string_char
*this, size_t_noverify pos
)
1907 TRACE("%p %lu\n", this, pos
.val
);
1908 return basic_string_char_const_ptr(this)+pos
.val
;
1911 /* ?at@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAADI@Z */
1912 /* ?at@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAD_K@Z */
1913 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_at
, 8)
1914 char* __thiscall
MSVCP_basic_string_char_at(
1915 basic_string_char
*this, MSVCP_size_t pos
)
1917 TRACE("%p %lu\n", this, pos
);
1919 if(this->size
<= pos
)
1920 MSVCP__String_base_Xran();
1922 return basic_string_char_ptr(this)+pos
;
1925 /* ?at@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEABDI@Z */
1926 /* ?at@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAAEBD_K@Z */
1927 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_const_at
, 8)
1928 const char* __thiscall
MSVCP_basic_string_char_const_at(
1929 const basic_string_char
*this, MSVCP_size_t pos
)
1931 TRACE("%p %lu\n", this, pos
);
1933 if(this->size
<= pos
)
1934 MSVCP__String_base_Xran();
1936 return basic_string_char_const_ptr(this)+pos
;
1939 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IIPBDI@Z */
1940 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0PEBD0@Z */
1941 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_cstr_len
, 20)
1942 basic_string_char
* __thiscall
basic_string_char_replace_cstr_len(basic_string_char
*this,
1943 MSVCP_size_t off
, MSVCP_size_t len
, const char *str
, MSVCP_size_t str_len
)
1945 MSVCP_size_t inside_pos
= -1;
1946 char *ptr
= basic_string_char_ptr(this);
1948 TRACE("%p %ld %ld %p %ld\n", this, off
, len
, str
, str_len
);
1950 if(this->size
< off
)
1951 MSVCP__String_base_Xran();
1953 if(len
> this->size
-off
)
1954 len
= this->size
-off
;
1956 if(MSVCP_basic_string_char_npos
-str_len
<= this->size
-len
)
1957 MSVCP__String_base_Xlen();
1959 if(basic_string_char_inside(this, str
))
1960 inside_pos
= str
-ptr
;
1963 basic_string_char_grow(this, this->size
-len
+str_len
, FALSE
);
1964 ptr
= basic_string_char_ptr(this);
1967 if(inside_pos
== -1) {
1968 memmove(ptr
+off
+str_len
, ptr
+off
+len
, (this->size
-off
-len
)*sizeof(char));
1969 memcpy(ptr
+off
, str
, str_len
*sizeof(char));
1970 } else if(len
>= str_len
) {
1971 memmove(ptr
+off
, ptr
+inside_pos
, str_len
*sizeof(char));
1972 memmove(ptr
+off
+str_len
, ptr
+off
+len
, (this->size
-off
-len
)*sizeof(char));
1976 memmove(ptr
+off
+str_len
, ptr
+off
+len
, (this->size
-off
-len
)*sizeof(char));
1978 if(inside_pos
< off
+len
) {
1979 size
= off
+len
-inside_pos
;
1982 memmove(ptr
+off
, ptr
+inside_pos
, size
*sizeof(char));
1988 memmove(ptr
+off
+size
, ptr
+off
+str_len
, (str_len
-size
)*sizeof(char));
1991 basic_string_char_eos(this, this->size
-len
+str_len
);
1995 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IIPBD@Z */
1996 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0PEBD@Z */
1997 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_cstr
, 16)
1998 basic_string_char
* __thiscall
basic_string_char_replace_cstr(basic_string_char
*this,
1999 MSVCP_size_t off
, MSVCP_size_t len
, const char *str
)
2001 return basic_string_char_replace_cstr_len(this, off
, len
, str
,
2002 MSVCP_char_traits_char_length(str
));
2005 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IIABV12@II@Z */
2006 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0AEBV12@00@Z */
2007 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_substr
, 24)
2008 basic_string_char
* __thiscall
basic_string_char_replace_substr(basic_string_char
*this, MSVCP_size_t off
,
2009 MSVCP_size_t len
, const basic_string_char
*str
, MSVCP_size_t str_off
, MSVCP_size_t str_len
)
2011 if(str
->size
< str_off
)
2012 MSVCP__String_base_Xran();
2014 if(str_len
> str
->size
-str_off
)
2015 str_len
= str
->size
-str_off
;
2017 return basic_string_char_replace_cstr_len(this, off
, len
,
2018 basic_string_char_const_ptr(str
)+str_off
, str_len
);
2021 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IIABV12@@Z */
2022 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0AEBV12@@Z */
2023 DEFINE_THISCALL_WRAPPER(basic_string_char_replace
, 16)
2024 basic_string_char
* __thiscall
basic_string_char_replace(basic_string_char
*this,
2025 MSVCP_size_t off
, MSVCP_size_t len
, const basic_string_char
*str
)
2027 return basic_string_char_replace_cstr_len(this, off
, len
,
2028 basic_string_char_const_ptr(str
), str
->size
);
2031 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IIID@Z */
2032 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K00D@Z */
2033 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_ch
, 20)
2034 basic_string_char
* __thiscall
basic_string_char_replace_ch(basic_string_char
*this,
2035 MSVCP_size_t off
, MSVCP_size_t len
, MSVCP_size_t count
, char ch
)
2037 char *ptr
= basic_string_char_ptr(this);
2039 TRACE("%p %ld %ld %ld %c\n", this, off
, len
, count
, ch
);
2041 if(this->size
< off
)
2042 MSVCP__String_base_Xran();
2044 if(len
> this->size
-off
)
2045 len
= this->size
-off
;
2047 if(MSVCP_basic_string_char_npos
-count
<= this->size
-len
)
2048 MSVCP__String_base_Xlen();
2051 basic_string_char_grow(this, this->size
-len
+count
, FALSE
);
2052 ptr
= basic_string_char_ptr(this);
2055 memmove(ptr
+off
+count
, ptr
+off
+len
, (this->size
-off
-len
)*sizeof(char));
2056 MSVCP_char_traits_char_assignn(ptr
+off
, count
, ch
);
2057 basic_string_char_eos(this, this->size
-len
+count
);
2062 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IABV12@@Z */
2063 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_KAEBV12@@Z */
2064 DEFINE_THISCALL_WRAPPER(basic_string_char_insert
, 12)
2065 basic_string_char
* __thiscall
basic_string_char_insert(basic_string_char
*this,
2066 MSVCP_size_t off
, const basic_string_char
*str
)
2068 return basic_string_char_replace(this, off
, 0, str
);
2071 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IABV12@II@Z */
2072 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_KAEBV12@00@Z */
2073 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_substr
, 20)
2074 basic_string_char
* __thiscall
basic_string_char_insert_substr(
2075 basic_string_char
*this, MSVCP_size_t off
, const basic_string_char
*str
,
2076 MSVCP_size_t str_off
, MSVCP_size_t str_count
)
2078 return basic_string_char_replace_substr(this, off
, 0, str
, str_off
, str_count
);
2081 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IPBD@Z */
2082 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_KPEBD@Z */
2083 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_cstr
, 12)
2084 basic_string_char
* __thiscall
basic_string_char_insert_cstr(
2085 basic_string_char
*this, MSVCP_size_t off
, const char *str
)
2087 return basic_string_char_replace_cstr(this, off
, 0, str
);
2090 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IPBDI@Z */
2091 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_KPEBD0@Z */
2092 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_cstr_len
, 16)
2093 basic_string_char
* __thiscall
basic_string_char_insert_cstr_len(basic_string_char
*this,
2094 MSVCP_size_t off
, const char *str
, MSVCP_size_t str_len
)
2096 return basic_string_char_replace_cstr_len(this, off
, 0, str
, str_len
);
2099 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IID@Z */
2100 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0D@Z */
2101 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_chn
, 16)
2102 basic_string_char
* __thiscall
basic_string_char_insert_chn(basic_string_char
*this,
2103 MSVCP_size_t off
, MSVCP_size_t count
, char ch
)
2105 return basic_string_char_replace_ch(this, off
, 0, count
, ch
);
2108 /* ?resize@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXID@Z */
2109 /* ?resize@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAX_KD@Z */
2110 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_resize_ch
, 12)
2111 void __thiscall
MSVCP_basic_string_char_resize_ch(
2112 basic_string_char
*this, MSVCP_size_t size
, char ch
)
2114 TRACE("%p %lu %c\n", this, size
, ch
);
2116 if(size
<= this->size
)
2117 MSVCP_basic_string_char_erase(this, size
, this->size
);
2119 MSVCP_basic_string_char_append_len_ch(this, size
-this->size
, ch
);
2122 /* ?resize@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXI@Z */
2123 /* ?resize@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAX_K@Z */
2124 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_resize
, 8)
2125 void __thiscall
MSVCP_basic_string_char_resize(
2126 basic_string_char
*this, MSVCP_size_t size
)
2128 MSVCP_basic_string_char_resize_ch(this, size
, '\0');
2131 /* ?clear@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
2132 /* ?clear@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
2133 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_clear
, 4)
2134 void __thiscall
MSVCP_basic_string_char_clear(basic_string_char
*this)
2136 basic_string_char_eos(this, 0);
2139 /* basic_string<wchar_t, char_traits<wchar_t>, allocator<wchar_t>> */
2140 /* basic_string<unsigned short, char_traits<unsigned short>, allocator<unsigned short>> */
2141 /* ?npos@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@2IB */
2142 /* ?npos@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@2_KB */
2143 /* ?npos@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@2IB */
2144 /* ?npos@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@2_KB */
2145 const MSVCP_size_t MSVCP_basic_string_wchar_npos
= -1;
2147 /* ?_Myptr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEPA_WXZ */
2148 /* ?_Myptr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAPEA_WXZ */
2149 /* ?_Myptr@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEPAGXZ */
2150 /* ?_Myptr@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAPEAGXZ */
2151 DEFINE_THISCALL_WRAPPER(basic_string_wchar_ptr
, 4)
2152 wchar_t* __thiscall
basic_string_wchar_ptr(basic_string_wchar
*this)
2154 if(this->res
< BUF_SIZE_WCHAR
)
2155 return this->data
.buf
;
2156 return this->data
.ptr
;
2159 /* ?_Myptr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IBEPB_WXZ */
2160 /* ?_Myptr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEBAPEB_WXZ */
2161 /* ?_Myptr@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IBEPBGXZ */
2162 /* ?_Myptr@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEBAPEBGXZ */
2163 DEFINE_THISCALL_WRAPPER(basic_string_wchar_const_ptr
, 4)
2164 const wchar_t* __thiscall
basic_string_wchar_const_ptr(const basic_string_wchar
*this)
2166 if(this->res
< BUF_SIZE_WCHAR
)
2167 return this->data
.buf
;
2168 return this->data
.ptr
;
2171 /* ?_Eos@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXI@Z */
2172 /* ?_Eos@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAX_K@Z */
2173 /* ?_Eos@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEXI@Z */
2174 /* ?_Eos@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAX_K@Z */
2175 DEFINE_THISCALL_WRAPPER(basic_string_wchar_eos
, 8)
2176 void __thiscall
basic_string_wchar_eos(basic_string_wchar
*this, MSVCP_size_t len
)
2178 static const wchar_t nullbyte_w
= '\0';
2181 MSVCP_char_traits_wchar_assign(basic_string_wchar_ptr(this)+len
, &nullbyte_w
);
2184 /* ?_Inside@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAE_NPB_W@Z */
2185 /* ?_Inside@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAA_NPEB_W@Z */
2186 /* ?_Inside@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAE_NPBG@Z */
2187 /* ?_Inside@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAA_NPEBG@Z */
2188 DEFINE_THISCALL_WRAPPER(basic_string_wchar_inside
, 8)
2189 MSVCP_bool __thiscall
basic_string_wchar_inside(
2190 basic_string_wchar
*this, const wchar_t *ptr
)
2192 wchar_t *cstr
= basic_string_wchar_ptr(this);
2194 return ptr
>=cstr
&& ptr
<cstr
+this->size
;
2197 /* ?_Tidy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEX_NI@Z */
2198 /* ?_Tidy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAX_N_K@Z */
2199 /* ?_Tidy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEX_NI@Z */
2200 /* ?_Tidy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAX_N_K@Z */
2201 DEFINE_THISCALL_WRAPPER(basic_string_wchar_tidy
, 12)
2202 void __thiscall
basic_string_wchar_tidy(basic_string_wchar
*this,
2203 MSVCP_bool built
, MSVCP_size_t new_size
)
2205 if(built
&& BUF_SIZE_WCHAR
<=this->res
) {
2206 wchar_t *ptr
= this->data
.ptr
;
2209 MSVCP_char_traits_wchar__Copy_s(this->data
.buf
, BUF_SIZE_WCHAR
, ptr
, new_size
);
2210 MSVCP_allocator_wchar_deallocate(this->allocator
, ptr
, this->res
+1);
2213 this->res
= BUF_SIZE_WCHAR
-1;
2214 basic_string_wchar_eos(this, new_size
);
2217 /* ?_Grow@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAE_NI_N@Z */
2218 /* ?_Grow@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAA_N_K_N@Z */
2219 /* ?_Grow@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAE_NI_N@Z */
2220 /* ?_Grow@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAA_N_K_N@Z */
2221 DEFINE_THISCALL_WRAPPER(basic_string_wchar_grow
, 12)
2222 MSVCP_bool __thiscall
basic_string_wchar_grow(
2223 basic_string_wchar
*this, MSVCP_size_t new_size
, MSVCP_bool trim
)
2225 if(this->res
< new_size
) {
2226 MSVCP_size_t new_res
= new_size
, len
= this->size
;
2231 if(new_res
/3 < this->res
/2)
2232 new_res
= this->res
+ this->res
/2;
2234 ptr
= MSVCP_allocator_wchar_allocate(this->allocator
, new_res
+1);
2236 ptr
= MSVCP_allocator_wchar_allocate(this->allocator
, new_size
+1);
2240 ERR("Out of memory\n");
2241 basic_string_wchar_tidy(this, TRUE
, 0);
2245 MSVCP_char_traits_wchar__Copy_s(ptr
, new_size
,
2246 basic_string_wchar_ptr(this), this->size
);
2247 basic_string_wchar_tidy(this, TRUE
, 0);
2248 this->data
.ptr
= ptr
;
2249 this->res
= new_size
;
2250 basic_string_wchar_eos(this, len
);
2251 } else if(trim
&& new_size
< BUF_SIZE_WCHAR
)
2252 basic_string_wchar_tidy(this, TRUE
,
2253 new_size
<this->size
? new_size
: this->size
);
2254 else if(new_size
== 0)
2255 basic_string_wchar_eos(this, 0);
2257 return (new_size
>0);
2260 /* ?_Copy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXII@Z */
2261 /* ?_Copy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAX_K0@Z */
2262 /* ?_Copy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEXII@Z */
2263 /* ?_Copy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAX_K0@Z */
2264 DEFINE_THISCALL_WRAPPER(basic_string_wchar__Copy
, 12)
2265 void __thiscall
basic_string_wchar__Copy(basic_string_wchar
*this,
2266 MSVCP_size_t new_size
, MSVCP_size_t copy_len
)
2268 TRACE("%p %lu %lu\n", this, new_size
, copy_len
);
2270 if(!basic_string_wchar_grow(this, new_size
, FALSE
))
2272 basic_string_wchar_eos(this, copy_len
);
2275 /* ?get_allocator@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE?AV?$allocator@_W@2@XZ */
2276 /* ?get_allocator@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA?AV?$allocator@_W@2@XZ */
2277 /* ?get_allocator@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBE?AV?$allocator@G@2@XZ */
2278 /* ?get_allocator@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA?AV?$allocator@G@2@XZ */
2279 DEFINE_THISCALL_WRAPPER(basic_string_wchar_get_allocator
, 8)
2280 allocator
* __thiscall
basic_string_wchar_get_allocator(const basic_string_wchar
*this, allocator
*ret
)
2282 TRACE("%p\n", this);
2286 /* ?erase@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@II@Z */
2287 /* ?erase@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0@Z */
2288 /* ?erase@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@II@Z */
2289 /* ?erase@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K0@Z */
2290 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_erase
, 12)
2291 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_erase(
2292 basic_string_wchar
*this, MSVCP_size_t pos
, MSVCP_size_t len
)
2294 TRACE("%p %lu %lu\n", this, pos
, len
);
2296 if(pos
> this->size
)
2297 MSVCP__String_base_Xran();
2299 if(len
> this->size
-pos
)
2300 len
= this->size
-pos
;
2303 MSVCP_char_traits_wchar__Move_s(basic_string_wchar_ptr(this)+pos
,
2304 this->res
-pos
, basic_string_wchar_ptr(this)+pos
+len
,
2305 this->size
-pos
-len
);
2306 basic_string_wchar_eos(this, this->size
-len
);
2312 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@ABV12@II@Z */
2313 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@AEBV12@_K1@Z */
2314 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@ABV12@II@Z */
2315 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@AEBV12@_K1@Z */
2316 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_substr
, 16)
2317 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_assign_substr(
2318 basic_string_wchar
*this, const basic_string_wchar
*assign
,
2319 MSVCP_size_t pos
, MSVCP_size_t len
)
2321 TRACE("%p %p %lu %lu\n", this, assign
, pos
, len
);
2323 if(assign
->size
< pos
)
2324 MSVCP__String_base_Xran();
2326 if(len
> assign
->size
-pos
)
2327 len
= assign
->size
-pos
;
2329 if(this == assign
) {
2330 MSVCP_basic_string_wchar_erase(this, pos
+len
, MSVCP_basic_string_wchar_npos
);
2331 MSVCP_basic_string_wchar_erase(this, 0, pos
);
2332 } else if(basic_string_wchar_grow(this, len
, FALSE
)) {
2333 MSVCP_char_traits_wchar__Copy_s(basic_string_wchar_ptr(this),
2334 this->res
, basic_string_wchar_const_ptr(assign
)+pos
, len
);
2335 basic_string_wchar_eos(this, len
);
2341 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@ABV12@@Z */
2342 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@AEBV12@@Z */
2343 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@ABV01@@Z */
2344 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@AEBV01@@Z */
2345 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@ABV12@@Z */
2346 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@AEBV12@@Z */
2347 /* ??4?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV01@ABV01@@Z */
2348 /* ??4?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV01@AEBV01@@Z */
2349 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign
, 8)
2350 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_assign(
2351 basic_string_wchar
*this, const basic_string_wchar
*assign
)
2353 return MSVCP_basic_string_wchar_assign_substr(this, assign
,
2354 0, MSVCP_basic_string_wchar_npos
);
2357 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_WI@Z */
2358 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W_K@Z */
2359 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@PBGI@Z */
2360 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@PEBG_K@Z */
2361 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_cstr_len
, 12)
2362 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_assign_cstr_len(
2363 basic_string_wchar
*this, const wchar_t *str
, MSVCP_size_t len
)
2365 TRACE("%p %s %lu\n", this, debugstr_wn(str
, len
), len
);
2367 if(basic_string_wchar_inside(this, str
))
2368 return MSVCP_basic_string_wchar_assign_substr(this, this,
2369 str
-basic_string_wchar_ptr(this), len
);
2370 else if(basic_string_wchar_grow(this, len
, FALSE
)) {
2371 MSVCP_char_traits_wchar__Copy_s(basic_string_wchar_ptr(this),
2372 this->res
, str
, len
);
2373 basic_string_wchar_eos(this, len
);
2379 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@_W@Z */
2380 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@_W@Z */
2381 /* ??4?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV01@G@Z */
2382 /* ??4?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV01@G@Z */
2383 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_ch
, 8)
2384 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_assign_ch(
2385 basic_string_wchar
*this, wchar_t ch
)
2387 return MSVCP_basic_string_wchar_assign_cstr_len(this, &ch
, 1);
2390 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_W@Z */
2391 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W@Z */
2392 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@PB_W@Z */
2393 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@PEB_W@Z */
2394 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@PBG@Z */
2395 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@PEBG@Z */
2396 /* ??4?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV01@PBG@Z */
2397 /* ??4?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV01@PEBG@Z */
2398 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_cstr
, 8)
2399 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_assign_cstr(
2400 basic_string_wchar
*this, const wchar_t *str
)
2402 return MSVCP_basic_string_wchar_assign_cstr_len(this, str
,
2403 MSVCP_char_traits_wchar_length(str
));
2406 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@I_W@Z */
2407 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K_W@Z */
2408 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IG@Z */
2409 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_KG@Z */
2410 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assignn
, 12)
2411 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_assignn(
2412 basic_string_wchar
*this, MSVCP_size_t count
, wchar_t ch
)
2414 TRACE("%p %ld %c\n", this, count
, ch
);
2416 basic_string_wchar_grow(this, count
, FALSE
);
2417 MSVCP_char_traits_wchar_assignn(basic_string_wchar_ptr(this), count
, ch
);
2418 basic_string_wchar_eos(this, count
);
2422 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_W0@Z */
2423 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W0@Z */
2424 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@PBG0@Z */
2425 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@PEBG0@Z */
2426 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_ptr_ptr
, 12)
2427 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_assign_ptr_ptr(
2428 basic_string_wchar
*this, const wchar_t *first
, const wchar_t *last
)
2430 return MSVCP_basic_string_wchar_assign_cstr_len(this, first
, last
-first
);
2433 /* ?_Chassign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXII_W@Z */
2434 /* ?_Chassign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAX_K0_W@Z */
2435 /* ?_Chassign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IAEXIIG@Z */
2436 /* ?_Chassign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@IEAAX_K0G@Z */
2437 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_Chassign
, 16)
2438 void __thiscall
MSVCP_basic_string_wchar_Chassign(basic_string_wchar
*this,
2439 MSVCP_size_t off
, MSVCP_size_t count
, wchar_t ch
)
2441 TRACE("%p %lu %lu %c\n", this, off
, count
, ch
);
2442 MSVCP_char_traits_wchar_assignn(basic_string_wchar_ptr(this)+off
, count
, ch
);
2445 /* ?_Copy_s@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPA_WIII@Z */
2446 /* ?_Copy_s@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEA_W_K11@Z */
2447 /* ?_Copy_s@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPAGIII@Z */
2448 /* ?_Copy_s@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEAG_K11@Z */
2449 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_Copy_s
, 20)
2450 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_Copy_s(const basic_string_wchar
*this,
2451 wchar_t *dest
, MSVCP_size_t size
, MSVCP_size_t count
, MSVCP_size_t off
)
2453 TRACE("%p %p %lu %lu %lu\n", this, dest
, size
, count
, off
);
2455 if(this->size
< off
)
2456 MSVCP__String_base_Xran();
2458 if(count
> this->size
-off
)
2459 count
= this->size
-off
;
2461 MSVCP_char_traits_wchar__Copy_s(dest
, size
,
2462 basic_string_wchar_const_ptr(this)+off
, count
);
2466 /* ?copy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPA_WII@Z */
2467 /* ?copy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEA_W_K1@Z */
2468 /* ?copy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPAGII@Z */
2469 /* ?copy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEAG_K1@Z */
2470 DEFINE_THISCALL_WRAPPER(basic_string_wchar_copy
, 16)
2471 MSVCP_size_t __thiscall
basic_string_wchar_copy(const basic_string_wchar
*this,
2472 wchar_t *dest
, MSVCP_size_t count
, MSVCP_size_t off
)
2474 return MSVCP_basic_string_wchar_Copy_s(this, dest
, count
, count
, off
);
2477 /* ?c_str@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEPB_WXZ */
2478 /* ?c_str@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAPEB_WXZ */
2479 /* ?data@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEPB_WXZ */
2480 /* ?data@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAPEB_WXZ */
2481 /* ?c_str@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEPBGXZ */
2482 /* ?c_str@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAPEBGXZ */
2483 /* ?data@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEPBGXZ */
2484 /* ?data@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAPEBGXZ */
2485 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_c_str
, 4)
2486 const wchar_t* __thiscall
MSVCP_basic_string_wchar_c_str(const basic_string_wchar
*this)
2488 TRACE("%p\n", this);
2489 return basic_string_wchar_const_ptr(this);
2492 /* ?capacity@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIXZ */
2493 /* ?capacity@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KXZ */
2494 /* ?capacity@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIXZ */
2495 /* ?capacity@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KXZ */
2496 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_capacity
, 4)
2497 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_capacity(basic_string_wchar
*this)
2499 TRACE("%p\n", this);
2503 /* ?reserve@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXI@Z */
2504 /* ?reserve@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAX_K@Z */
2505 /* ?reserve@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXI@Z */
2506 /* ?reserve@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAX_K@Z */
2507 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_reserve
, 8)
2508 void __thiscall
MSVCP_basic_string_wchar_reserve(basic_string_wchar
*this, MSVCP_size_t size
)
2512 TRACE("%p %ld\n", this, size
);
2518 if(basic_string_wchar_grow(this, size
, TRUE
))
2519 basic_string_wchar_eos(this, len
);
2522 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@XZ */
2523 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@XZ */
2524 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@XZ */
2525 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@XZ */
2526 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor
, 4)
2527 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor(basic_string_wchar
*this)
2529 TRACE("%p\n", this);
2531 basic_string_wchar_tidy(this, FALSE
, 0);
2535 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@ABV01@@Z */
2536 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@AEBV01@@Z */
2537 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@ABV01@@Z */
2538 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@AEBV01@@Z */
2539 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_copy_ctor
, 8)
2540 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_copy_ctor(
2541 basic_string_wchar
*this, const basic_string_wchar
*copy
)
2543 TRACE("%p %p\n", this, copy
);
2545 basic_string_wchar_tidy(this, FALSE
, 0);
2546 MSVCP_basic_string_wchar_assign(this, copy
);
2550 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_W@Z */
2551 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@PEB_W@Z */
2552 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@PBG@Z */
2553 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@PEBG@Z */
2554 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_cstr
, 8)
2555 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_cstr(
2556 basic_string_wchar
*this, const wchar_t *str
)
2558 TRACE("%p %s\n", this, debugstr_w(str
));
2560 basic_string_wchar_tidy(this, FALSE
, 0);
2561 MSVCP_basic_string_wchar_assign_cstr(this, str
);
2565 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_WABV?$allocator@_W@1@@Z */
2566 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@PEB_WAEBV?$allocator@_W@1@@Z */
2567 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@PBGABV?$allocator@G@1@@Z */
2568 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@PEBGAEBV?$allocator@G@1@@Z */
2569 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_cstr_alloc
, 12)
2570 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_cstr_alloc(
2571 basic_string_wchar
*this, const wchar_t *str
, const void *alloc
)
2573 return MSVCP_basic_string_wchar_ctor_cstr(this, str
);
2576 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_WI@Z */
2577 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@PEB_W_K@Z */
2578 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@PBGI@Z */
2579 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@PEBG_K@Z */
2580 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_cstr_len
, 12)
2581 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_cstr_len(
2582 basic_string_wchar
*this, const wchar_t *str
, MSVCP_size_t len
)
2584 TRACE("%p %s %ld\n", this, debugstr_wn(str
, len
), len
);
2586 basic_string_wchar_tidy(this, FALSE
, 0);
2587 MSVCP_basic_string_wchar_assign_cstr_len(this, str
, len
);
2591 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_WIABV?$allocator@_W@1@@Z */
2592 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@PEB_W_KAEBV?$allocator@_W@1@@Z */
2593 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@PBGIABV?$allocator@G@1@@Z */
2594 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@PEBG_KAEBV?$allocator@G@1@@Z */
2595 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_cstr_len_alloc
, 16)
2596 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_cstr_len_alloc(
2597 basic_string_wchar
*this, const wchar_t *str
, MSVCP_size_t len
, const void *alloc
)
2599 return MSVCP_basic_string_wchar_ctor_cstr_len(this, str
, len
);
2602 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@ABV01@II@Z */
2603 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@AEBV01@_K1@Z */
2604 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@ABV01@II@Z */
2605 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@AEBV01@_K1@Z */
2606 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_substr
, 16)
2607 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_substr(
2608 basic_string_wchar
*this, const basic_string_wchar
*assign
,
2609 MSVCP_size_t pos
, MSVCP_size_t len
)
2611 TRACE("%p %p %lu %lu\n", this, assign
, pos
, len
);
2613 basic_string_wchar_tidy(this, FALSE
, 0);
2614 MSVCP_basic_string_wchar_assign_substr(this, assign
, pos
, len
);
2618 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@ABV01@IIABV?$allocator@_W@1@@Z */
2619 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@AEBV01@_K1AEBV?$allocator@_W@1@@Z */
2620 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@ABV01@IIABV?$allocator@G@1@@Z */
2621 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@AEBV01@_K1AEBV?$allocator@G@1@@Z */
2622 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_substr_alloc
, 20)
2623 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_substr_alloc(
2624 basic_string_wchar
*this, const basic_string_wchar
*assign
,
2625 MSVCP_size_t pos
, MSVCP_size_t len
, const void *alloc
)
2627 return MSVCP_basic_string_wchar_ctor_substr(this, assign
, pos
, len
);
2630 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@ABV?$allocator@_W@1@@Z */
2631 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@AEBV?$allocator@_W@1@@Z */
2632 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@ABV?$allocator@G@1@@Z */
2633 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@AEBV?$allocator@G@1@@Z */
2634 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_alloc
, 8)
2635 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_alloc(
2636 basic_string_wchar
*this, const void *alloc
)
2638 TRACE("%p %p\n", this, alloc
);
2640 basic_string_wchar_tidy(this, FALSE
, 0);
2644 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@I_W@Z */
2645 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@_K_W@Z */
2646 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@IG@Z */
2647 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@_KG@Z */
2648 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_ch
, 12)
2649 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_ch(basic_string_wchar
*this,
2650 MSVCP_size_t count
, wchar_t ch
)
2652 TRACE("%p %ld %c\n", this, count
, ch
);
2654 basic_string_wchar_tidy(this, FALSE
, 0);
2655 MSVCP_basic_string_wchar_assignn(this, count
, ch
);
2659 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@I_WABV?$allocator@_W@1@@Z */
2660 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@_K_WAEBV?$allocator@_W@1@@Z */
2661 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@IGABV?$allocator@G@1@@Z */
2662 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@_KGAEBV?$allocator@G@1@@Z */
2663 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_ch_alloc
, 16)
2664 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_ch_alloc(basic_string_wchar
*this,
2665 MSVCP_size_t count
, wchar_t ch
, const void *alloc
)
2667 return MSVCP_basic_string_wchar_ctor_ch(this, count
, ch
);
2670 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_W0@Z */
2671 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@PEB_W0@Z */
2672 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@PBG0@Z */
2673 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@PEBG0@Z */
2674 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_ptr_ptr
, 12)
2675 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_ptr_ptr(basic_string_wchar
*this,
2676 const wchar_t *first
, const wchar_t *last
)
2678 return MSVCP_basic_string_wchar_ctor_cstr_len(this, first
, last
-first
);
2681 /* ??1?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@XZ */
2682 /* ??1?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@XZ */
2683 /* ??1?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@XZ */
2684 /* ??1?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAA@XZ */
2685 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_dtor
, 4)
2686 void __thiscall
MSVCP_basic_string_wchar_dtor(basic_string_wchar
*this)
2688 TRACE("%p\n", this);
2689 basic_string_wchar_tidy(this, TRUE
, 0);
2692 /* ?size@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIXZ */
2693 /* ?size@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KXZ */
2694 /* ?length@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIXZ */
2695 /* ?length@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KXZ */
2696 /* ?size@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIXZ */
2697 /* ?size@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KXZ */
2698 /* ?length@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIXZ */
2699 /* ?length@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KXZ */
2700 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_length
, 4)
2701 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_length(const basic_string_wchar
*this)
2703 TRACE("%p\n", this);
2707 /* ?max_size@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIXZ */
2708 /* ?max_size@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KXZ */
2709 /* ?max_size@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIXZ */
2710 /* ?max_size@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KXZ */
2711 DEFINE_THISCALL_WRAPPER(basic_string_wchar_max_size
, 4)
2712 MSVCP_size_t __thiscall
basic_string_wchar_max_size(const basic_string_wchar
*this)
2714 TRACE("%p\n", this);
2715 return MSVCP_allocator_wchar_max_size(this->allocator
)-1;
2718 /* ?empty@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE_NXZ */
2719 /* ?empty@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_NXZ */
2720 /* ?empty@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBE_NXZ */
2721 /* ?empty@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_NXZ */
2722 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_empty
, 4)
2723 MSVCP_bool __thiscall
MSVCP_basic_string_wchar_empty(basic_string_wchar
*this)
2725 TRACE("%p\n", this);
2726 return this->size
== 0;
2729 /* ?swap@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXAAV12@@Z */
2730 /* ?swap@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXAEAV12@@Z */
2731 /* ?swap@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXAAV12@@Z */
2732 /* ?swap@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXAEAV12@@Z */
2733 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_swap
, 8)
2734 void __thiscall
MSVCP_basic_string_wchar_swap(basic_string_wchar
*this, basic_string_wchar
*str
)
2737 char tmp
[sizeof(this->data
)];
2738 const MSVCP_size_t size
= this->size
;
2739 const MSVCP_size_t res
= this->res
;
2741 memcpy(tmp
, this->data
.buf
, sizeof(this->data
));
2742 memcpy(this->data
.buf
, str
->data
.buf
, sizeof(this->data
));
2743 memcpy(str
->data
.buf
, tmp
, sizeof(this->data
));
2745 this->size
= str
->size
;
2746 this->res
= str
->res
;
2753 /* ?substr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE?AV12@II@Z */
2754 /* ?substr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA?AV12@_K0@Z */
2755 /* ?substr@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBE?AV12@II@Z */
2756 /* ?substr@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA?AV12@_K0@Z */
2757 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_substr
, 16)
2758 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_substr(basic_string_wchar
*this,
2759 basic_string_wchar
*ret
, MSVCP_size_t off
, MSVCP_size_t len
)
2761 TRACE("%p %lu %lu\n", this, off
, len
);
2763 MSVCP_basic_string_wchar_ctor_substr(ret
, this, off
, len
);
2767 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@ABV12@II@Z */
2768 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@AEBV12@_K1@Z */
2769 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@ABV12@II@Z */
2770 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@AEBV12@_K1@Z */
2771 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_substr
, 16)
2772 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_append_substr(basic_string_wchar
*this,
2773 const basic_string_wchar
*append
, MSVCP_size_t offset
, MSVCP_size_t count
)
2775 TRACE("%p %p %lu %lu\n", this, append
, offset
, count
);
2777 if(append
->size
< offset
)
2778 MSVCP__String_base_Xran();
2780 if(count
> append
->size
-offset
)
2781 count
= append
->size
-offset
;
2783 if(MSVCP_basic_string_wchar_npos
-this->size
<=count
|| this->size
+count
<this->size
)
2784 MSVCP__String_base_Xlen();
2786 if(basic_string_wchar_grow(this, this->size
+count
, FALSE
)) {
2787 MSVCP_char_traits_wchar__Copy_s(basic_string_wchar_ptr(this)+this->size
,
2788 this->res
-this->size
, basic_string_wchar_const_ptr(append
)+offset
, count
);
2789 basic_string_wchar_eos(this, this->size
+count
);
2795 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@ABV12@@Z */
2796 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@AEBV12@@Z */
2797 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@ABV01@@Z */
2798 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@AEBV01@@Z */
2799 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@ABV12@@Z */
2800 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@AEBV12@@Z */
2801 /* ??Y?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV01@ABV01@@Z */
2802 /* ??Y?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV01@AEBV01@@Z */
2803 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append
, 8)
2804 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_append(
2805 basic_string_wchar
*this, const basic_string_wchar
*append
)
2807 return MSVCP_basic_string_wchar_append_substr(this, append
,
2808 0, MSVCP_basic_string_wchar_npos
);
2811 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_WI@Z */
2812 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W_K@Z */
2813 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@PBGI@Z */
2814 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@PEBG_K@Z */
2815 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_cstr_len
, 12)
2816 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_append_cstr_len(
2817 basic_string_wchar
*this, const wchar_t *append
, MSVCP_size_t count
)
2819 TRACE("%p %s %lu\n", this, debugstr_wn(append
, count
), count
);
2821 if(basic_string_wchar_inside(this, append
))
2822 return MSVCP_basic_string_wchar_append_substr(this, this,
2823 append
-basic_string_wchar_ptr(this), count
);
2825 if(MSVCP_basic_string_wchar_npos
-this->size
<=count
|| this->size
+count
<this->size
)
2826 MSVCP__String_base_Xlen();
2828 if(basic_string_wchar_grow(this, this->size
+count
, FALSE
)) {
2829 MSVCP_char_traits_wchar__Copy_s(basic_string_wchar_ptr(this)+this->size
,
2830 this->res
-this->size
, append
, count
);
2831 basic_string_wchar_eos(this, this->size
+count
);
2837 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_W@Z */
2838 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W@Z */
2839 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@PB_W@Z */
2840 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@PEB_W@Z */
2841 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@PBG@Z */
2842 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@PEBG@Z */
2843 /* ??Y?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV01@PBG@Z */
2844 /* ??Y?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV01@PEBG@Z */
2845 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_cstr
, 8)
2846 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_append_cstr(
2847 basic_string_wchar
*this, const wchar_t *append
)
2849 return MSVCP_basic_string_wchar_append_cstr_len(this, append
,
2850 MSVCP_char_traits_wchar_length(append
));
2853 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_W0@Z */
2854 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W0@Z */
2855 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@PBG0@Z */
2856 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@PEBG0@Z */
2857 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_beg_end
, 12)
2858 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_append_beg_end(
2859 basic_string_wchar
*this, const wchar_t *beg
, const wchar_t *end
)
2861 return MSVCP_basic_string_wchar_append_cstr_len(this, beg
, end
-beg
);
2864 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@I_W@Z */
2865 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K_W@Z */
2866 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IG@Z */
2867 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_KG@Z */
2868 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_len_ch
, 12)
2869 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_append_len_ch(
2870 basic_string_wchar
*this, MSVCP_size_t count
, wchar_t ch
)
2872 TRACE("%p %lu %c\n", this, count
, ch
);
2874 if(MSVCP_basic_string_wchar_npos
-this->size
<= count
)
2875 MSVCP__String_base_Xlen();
2877 if(basic_string_wchar_grow(this, this->size
+count
, FALSE
)) {
2878 MSVCP_char_traits_wchar_assignn(basic_string_wchar_ptr(this)+this->size
, count
, ch
);
2879 basic_string_wchar_eos(this, this->size
+count
);
2885 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@_W@Z */
2886 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@_W@Z */
2887 /* ?push_back@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEX_W@Z */
2888 /* ?push_back@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAX_W@Z */
2889 /* ??Y?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV01@G@Z */
2890 /* ??Y?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV01@G@Z */
2891 /* ?push_back@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXG@Z */
2892 /* ?push_back@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXG@Z */
2893 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_ch
, 8)
2894 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_append_ch(
2895 basic_string_wchar
*this, wchar_t ch
)
2897 return MSVCP_basic_string_wchar_append_len_ch(this, 1, ch
);
2900 /* ??$?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 */
2901 /* ??$?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 */
2902 /* ??$?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 */
2903 /* ??$?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 */
2904 basic_string_wchar
* __cdecl
MSVCP_basic_string_wchar_concatenate_bstr_cstr(basic_string_wchar
*ret
,
2905 const basic_string_wchar
*left
, const wchar_t *right
)
2907 TRACE("%p %s\n", left
, debugstr_w(right
));
2909 MSVCP_basic_string_wchar_copy_ctor(ret
, left
);
2910 MSVCP_basic_string_wchar_append_cstr(ret
, right
);
2914 /* ??$?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 */
2915 /* ??$?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 */
2916 /* ??$?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 */
2917 /* ??$?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 */
2918 basic_string_wchar
* __cdecl
MSVCP_basic_string_wchar_concatenate_cstr_bstr(basic_string_wchar
*ret
,
2919 const wchar_t *left
, const basic_string_wchar
*right
)
2921 TRACE("%s %p\n", debugstr_w(left
), right
);
2923 MSVCP_basic_string_wchar_ctor_cstr(ret
, left
);
2924 MSVCP_basic_string_wchar_append(ret
, right
);
2928 /* ??$?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 */
2929 /* ??$?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 */
2930 /* ??$?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 */
2931 /* ??$?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 */
2932 basic_string_wchar
* __cdecl
MSVCP_basic_string_wchar_concatenate(basic_string_wchar
*ret
,
2933 const basic_string_wchar
*left
, const basic_string_wchar
*right
)
2935 TRACE("%p %p\n", left
, right
);
2937 MSVCP_basic_string_wchar_copy_ctor(ret
, left
);
2938 MSVCP_basic_string_wchar_append(ret
, right
);
2942 /* ??$?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 */
2943 /* ??$?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 */
2944 /* ??$?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 */
2945 /* ??$?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 */
2946 basic_string_wchar
* __cdecl
MSVCP_basic_string_wchar_concatenate_bstr_ch(
2947 basic_string_wchar
*ret
, const basic_string_wchar
*left
, wchar_t right
)
2949 TRACE("%p %c\n", left
, right
);
2951 MSVCP_basic_string_wchar_copy_ctor(ret
, left
);
2952 MSVCP_basic_string_wchar_append_ch(ret
, right
);
2956 /* ??$?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 */
2957 /* ??$?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 */
2958 /* ??$?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 */
2959 /* ??$?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 */
2960 basic_string_wchar
* __cdecl
MSVCP_basic_string_wchar_concatenate_ch_bstr(
2961 basic_string_wchar
* ret
, wchar_t left
, const basic_string_wchar
*right
)
2963 TRACE("%c %p\n", left
, right
);
2965 MSVCP_basic_string_wchar_ctor_cstr_len(ret
, &left
, 1);
2966 MSVCP_basic_string_wchar_append(ret
, right
);
2970 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHIIPB_WI@Z */
2971 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAH_K0PEB_W0@Z */
2972 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEHIIPBGI@Z */
2973 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAH_K0PEBG0@Z */
2974 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare_substr_cstr_len
, 20)
2975 int __thiscall
MSVCP_basic_string_wchar_compare_substr_cstr_len(
2976 const basic_string_wchar
*this, MSVCP_size_t pos
, MSVCP_size_t num
,
2977 const wchar_t *str
, MSVCP_size_t count
)
2981 TRACE("%p %lu %lu %s %lu\n", this, pos
, num
, debugstr_wn(str
, count
), count
);
2983 if(this->size
< pos
)
2984 MSVCP__String_base_Xran();
2986 if(num
> this->size
-pos
)
2987 num
= this->size
-pos
;
2989 ans
= MSVCP_char_traits_wchar_compare(basic_string_wchar_const_ptr(this)+pos
,
2990 str
, num
>count
? count
: num
);
2996 else if(num
< count
)
3001 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHIIPB_W@Z */
3002 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAH_K0PEB_W@Z */
3003 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEHIIPBG@Z */
3004 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAH_K0PEBG@Z */
3005 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare_substr_cstr
, 16)
3006 int __thiscall
MSVCP_basic_string_wchar_compare_substr_cstr(const basic_string_wchar
*this,
3007 MSVCP_size_t pos
, MSVCP_size_t num
, const wchar_t *str
)
3009 return MSVCP_basic_string_wchar_compare_substr_cstr_len(this, pos
, num
,
3010 str
, MSVCP_char_traits_wchar_length(str
));
3013 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHPB_W@Z */
3014 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAHPEB_W@Z */
3015 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEHPBG@Z */
3016 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAHPEBG@Z */
3017 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare_cstr
, 8)
3018 int __thiscall
MSVCP_basic_string_wchar_compare_cstr(
3019 const basic_string_wchar
*this, const wchar_t *str
)
3021 return MSVCP_basic_string_wchar_compare_substr_cstr_len(this, 0, this->size
,
3022 str
, MSVCP_char_traits_wchar_length(str
));
3025 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHIIABV12@II@Z */
3026 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAH_K0AEBV12@00@Z */
3027 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEHIIABV12@II@Z */
3028 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAH_K0AEBV12@00@Z */
3029 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare_substr_substr
, 24)
3030 int __thiscall
MSVCP_basic_string_wchar_compare_substr_substr(
3031 const basic_string_wchar
*this, MSVCP_size_t pos
, MSVCP_size_t num
,
3032 const basic_string_wchar
*compare
, MSVCP_size_t off
, MSVCP_size_t count
)
3034 TRACE("%p %lu %lu %p %lu %lu\n", this, pos
, num
, compare
, off
, count
);
3036 if(compare
->size
< off
)
3037 MSVCP__String_base_Xran();
3039 if(count
> compare
->size
-off
)
3040 count
= compare
->size
-off
;
3042 return MSVCP_basic_string_wchar_compare_substr_cstr_len(this, pos
, num
,
3043 basic_string_wchar_const_ptr(compare
)+off
, count
);
3046 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHIIABV12@@Z */
3047 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAH_K0AEBV12@@Z */
3048 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEHIIABV12@@Z */
3049 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAH_K0AEBV12@@Z */
3050 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare_substr
, 16)
3051 int __thiscall
MSVCP_basic_string_wchar_compare_substr(
3052 const basic_string_wchar
*this, MSVCP_size_t pos
, MSVCP_size_t num
,
3053 const basic_string_wchar
*compare
)
3055 return MSVCP_basic_string_wchar_compare_substr_cstr_len(this, pos
, num
,
3056 basic_string_wchar_const_ptr(compare
), compare
->size
);
3059 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHABV12@@Z */
3060 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAHAEBV12@@Z */
3061 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEHABV12@@Z */
3062 /* ?compare@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAHAEBV12@@Z */
3063 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare
, 8)
3064 int __thiscall
MSVCP_basic_string_wchar_compare(
3065 const basic_string_wchar
*this, const basic_string_wchar
*compare
)
3067 return MSVCP_basic_string_wchar_compare_substr_cstr_len(this, 0, this->size
,
3068 basic_string_wchar_const_ptr(compare
), compare
->size
);
3071 /* ??$?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 */
3072 /* ??$?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 */
3073 /* ??$?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 */
3074 /* ??$?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 */
3075 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_equal(
3076 const basic_string_wchar
*left
, const basic_string_wchar
*right
)
3078 return MSVCP_basic_string_wchar_compare(left
, right
) == 0;
3081 /* ??$?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 */
3082 /* ??$?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 */
3083 /* ??$?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 */
3084 /* ??$?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 */
3085 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_equal_str_cstr(
3086 const basic_string_wchar
*left
, const wchar_t *right
)
3088 return MSVCP_basic_string_wchar_compare_cstr(left
, right
) == 0;
3091 /* ??$?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 */
3092 /* ??$?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 */
3093 /* ??$?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 */
3094 /* ??$?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 */
3095 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_equal_cstr_str(
3096 const wchar_t *left
, const basic_string_wchar
*right
)
3098 return MSVCP_basic_string_wchar_compare_cstr(right
, left
) == 0;
3101 /* ??$?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 */
3102 /* ??$?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 */
3103 /* ??$?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 */
3104 /* ??$?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 */
3105 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_not_equal(
3106 const basic_string_wchar
*left
, const basic_string_wchar
*right
)
3108 return MSVCP_basic_string_wchar_compare(left
, right
) != 0;
3111 /* ??$?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 */
3112 /* ??$?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 */
3113 /* ??$?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 */
3114 /* ??$?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 */
3115 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_not_equal_str_cstr(
3116 const basic_string_wchar
*left
, const wchar_t *right
)
3118 return MSVCP_basic_string_wchar_compare_cstr(left
, right
) != 0;
3121 /* ??$?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 */
3122 /* ??$?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 */
3123 /* ??$?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 */
3124 /* ??$?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 */
3125 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_not_equal_cstr_str(
3126 const wchar_t *left
, const basic_string_wchar
*right
)
3128 return MSVCP_basic_string_wchar_compare_cstr(right
, left
) != 0;
3131 /* ??$?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 */
3132 /* ??$?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 */
3133 /* ??$?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 */
3134 /* ??$?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 */
3135 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_lower(
3136 const basic_string_wchar
*left
, const basic_string_wchar
*right
)
3138 return MSVCP_basic_string_wchar_compare(left
, right
) < 0;
3141 /* ??$?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 */
3142 /* ??$?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 */
3143 /* ??$?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 */
3144 /* ??$?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 */
3145 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_lower_bstr_cstr(
3146 const basic_string_wchar
*left
, const wchar_t *right
)
3148 return MSVCP_basic_string_wchar_compare_cstr(left
, right
) < 0;
3151 /* ??$?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 */
3152 /* ??$?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 */
3153 /* ??$?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 */
3154 /* ??$?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 */
3155 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_lower_cstr_bstr(
3156 const wchar_t *left
, const basic_string_wchar
*right
)
3158 return MSVCP_basic_string_wchar_compare_cstr(right
, left
) > 0;
3161 /* ??$?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 */
3162 /* ??$?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 */
3163 /* ??$?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 */
3164 /* ??$?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 */
3165 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_leq(
3166 const basic_string_wchar
*left
, const basic_string_wchar
*right
)
3168 return MSVCP_basic_string_wchar_compare(left
, right
) <= 0;
3171 /* ??$?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 */
3172 /* ??$?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 */
3173 /* ??$?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 */
3174 /* ??$?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 */
3175 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_leq_bstr_cstr(
3176 const basic_string_wchar
*left
, const wchar_t *right
)
3178 return MSVCP_basic_string_wchar_compare_cstr(left
, right
) <= 0;
3181 /* ??$?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 */
3182 /* ??$?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 */
3183 /* ??$?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 */
3184 /* ??$?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 */
3185 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_leq_cstr_bstr(
3186 const wchar_t *left
, const basic_string_wchar
*right
)
3188 return MSVCP_basic_string_wchar_compare_cstr(right
, left
) >= 0;
3191 /* ??$?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 */
3192 /* ??$?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 */
3193 /* ??$?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 */
3194 /* ??$?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 */
3195 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_greater(
3196 const basic_string_wchar
*left
, const basic_string_wchar
*right
)
3198 return MSVCP_basic_string_wchar_compare(left
, right
) > 0;
3201 /* ??$?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 */
3202 /* ??$?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 */
3203 /* ??$?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 */
3204 /* ??$?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 */
3205 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_greater_bstr_cstr(
3206 const basic_string_wchar
*left
, const wchar_t *right
)
3208 return MSVCP_basic_string_wchar_compare_cstr(left
, right
) > 0;
3211 /* ??$?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 */
3212 /* ??$?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 */
3213 /* ??$?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 */
3214 /* ??$?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 */
3215 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_greater_cstr_bstr(
3216 const wchar_t *left
, const basic_string_wchar
*right
)
3218 return MSVCP_basic_string_wchar_compare_cstr(right
, left
) < 0;
3221 /* ??$?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 */
3222 /* ??$?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 */
3223 /* ??$?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 */
3224 /* ??$?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 */
3225 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_geq(
3226 const basic_string_wchar
*left
, const basic_string_wchar
*right
)
3228 return MSVCP_basic_string_wchar_compare(left
, right
) >= 0;
3231 /* ??$?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 */
3232 /* ??$?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 */
3233 /* ??$?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 */
3234 /* ??$?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 */
3235 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_geq_bstr_cstr(
3236 const basic_string_wchar
*left
, const wchar_t *right
)
3238 return MSVCP_basic_string_wchar_compare_cstr(left
, right
) >= 0;
3241 /* ??$?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 */
3242 /* ??$?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 */
3243 /* ??$?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 */
3244 /* ??$?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 */
3245 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_geq_cstr_bstr(
3246 const wchar_t *left
, const basic_string_wchar
*right
)
3248 return MSVCP_basic_string_wchar_compare_cstr(right
, left
) <= 0;
3251 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
3252 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
3253 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGII@Z */
3254 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K1@Z */
3255 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_cstr_substr
, 16)
3256 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_cstr_substr(
3257 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t pos
, MSVCP_size_t len
)
3259 const wchar_t *p
, *end
;
3261 TRACE("%p %s %lu %lu\n", this, debugstr_wn(find
, len
), pos
, len
);
3263 if(len
==0 && pos
<=this->size
)
3265 if(pos
>=this->size
|| len
>this->size
)
3266 return MSVCP_basic_string_wchar_npos
;
3268 end
= basic_string_wchar_const_ptr(this)+this->size
-len
+1;
3269 for(p
=basic_string_wchar_const_ptr(this)+pos
; p
<end
; p
++) {
3270 p
= MSVCP_char_traits_wchar_find(p
, end
-p
, find
);
3274 if(!MSVCP_char_traits_wchar_compare(p
, find
, len
))
3275 return p
-basic_string_wchar_const_ptr(this);
3278 return MSVCP_basic_string_wchar_npos
;
3281 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
3282 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
3283 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGI@Z */
3284 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K@Z */
3285 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_cstr_off
, 12)
3286 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_cstr_off(
3287 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t pos
)
3289 return MSVCP_basic_string_wchar_find_cstr_substr(this, find
, pos
,
3290 MSVCP_char_traits_wchar_length(find
));
3293 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
3294 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
3295 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIABV12@I@Z */
3296 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KAEBV12@_K@Z */
3297 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_off
, 12)
3298 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_off(
3299 const basic_string_wchar
*this, const basic_string_wchar
*find
, MSVCP_size_t off
)
3301 return MSVCP_basic_string_wchar_find_cstr_substr(this,
3302 basic_string_wchar_const_ptr(find
), off
, find
->size
);
3305 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
3306 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
3307 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIGI@Z */
3308 /* ?find@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KG_K@Z */
3309 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_ch
, 12)
3310 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_ch(
3311 const basic_string_wchar
*this, wchar_t ch
, MSVCP_size_t pos
)
3313 return MSVCP_basic_string_wchar_find_cstr_substr(this, &ch
, pos
, 1);
3316 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
3317 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
3318 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGII@Z */
3319 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K1@Z */
3320 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_rfind_cstr_substr
, 16)
3321 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_rfind_cstr_substr(
3322 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t pos
, MSVCP_size_t len
)
3324 const wchar_t *p
, *end
;
3326 TRACE("%p %s %lu %lu\n", this, debugstr_wn(find
, len
), pos
, len
);
3329 return pos
<this->size
? pos
: this->size
;
3331 if(len
> this->size
)
3332 return MSVCP_basic_string_wchar_npos
;
3334 if(pos
> this->size
-len
+1)
3335 pos
= this->size
-len
+1;
3336 end
= basic_string_wchar_const_ptr(this);
3337 for(p
=end
+pos
; p
>=end
; p
--) {
3338 if(*p
==*find
&& !MSVCP_char_traits_wchar_compare(p
, find
, len
))
3339 return p
-basic_string_wchar_const_ptr(this);
3342 return MSVCP_basic_string_wchar_npos
;
3345 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
3346 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
3347 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGI@Z */
3348 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K@Z */
3349 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_rfind_cstr_off
, 12)
3350 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_rfind_cstr_off(
3351 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t pos
)
3353 return MSVCP_basic_string_wchar_rfind_cstr_substr(this, find
, pos
,
3354 MSVCP_char_traits_wchar_length(find
));
3357 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
3358 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
3359 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIABV12@I@Z */
3360 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KAEBV12@_K@Z */
3361 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_rfind_off
, 12)
3362 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_rfind_off(
3363 const basic_string_wchar
*this, const basic_string_wchar
*find
, MSVCP_size_t off
)
3365 return MSVCP_basic_string_wchar_rfind_cstr_substr(this,
3366 basic_string_wchar_const_ptr(find
), off
, find
->size
);
3369 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
3370 /* ?rfind@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
3371 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIGI@Z */
3372 /* ?rfind@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KG_K@Z */
3373 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_rfind_ch
, 12)
3374 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_rfind_ch(
3375 const basic_string_wchar
*this, wchar_t ch
, MSVCP_size_t pos
)
3377 return MSVCP_basic_string_wchar_rfind_cstr_substr(this, &ch
, pos
, 1);
3380 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
3381 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
3382 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGII@Z */
3383 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K1@Z */
3384 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_of_cstr_substr
, 16)
3385 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_first_of_cstr_substr(
3386 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t off
, MSVCP_size_t len
)
3388 const wchar_t *p
, *end
;
3390 TRACE("%p %p %lu %lu\n", this, find
, off
, len
);
3392 if(len
>0 && off
<this->size
) {
3393 end
= basic_string_wchar_const_ptr(this)+this->size
;
3394 for(p
=basic_string_wchar_const_ptr(this)+off
; p
<end
; p
++)
3395 if(MSVCP_char_traits_wchar_find(find
, len
, p
))
3396 return p
-basic_string_wchar_const_ptr(this);
3399 return MSVCP_basic_string_wchar_npos
;
3402 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
3403 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
3404 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIABV12@I@Z */
3405 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KAEBV12@_K@Z */
3406 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_of
, 12)
3407 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_first_of(
3408 const basic_string_wchar
*this, const basic_string_wchar
*find
, MSVCP_size_t off
)
3410 return MSVCP_basic_string_wchar_find_first_of_cstr_substr(this,
3411 basic_string_wchar_const_ptr(find
), off
, find
->size
);
3414 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
3415 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
3416 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGI@Z */
3417 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K@Z */
3418 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_of_cstr
, 12)
3419 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_first_of_cstr(
3420 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t off
)
3422 return MSVCP_basic_string_wchar_find_first_of_cstr_substr(
3423 this, find
, off
, MSVCP_char_traits_wchar_length(find
));
3426 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
3427 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
3428 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIGI@Z */
3429 /* ?find_first_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KG_K@Z */
3430 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_of_ch
, 12)
3431 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_first_of_ch(
3432 const basic_string_wchar
*this, wchar_t ch
, MSVCP_size_t off
)
3434 return MSVCP_basic_string_wchar_find_first_of_cstr_substr(this, &ch
, off
, 1);
3437 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
3438 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
3439 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGII@Z */
3440 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K1@Z */
3441 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_not_of_cstr_substr
, 16)
3442 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_first_not_of_cstr_substr(
3443 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t off
, MSVCP_size_t len
)
3445 const wchar_t *p
, *end
;
3447 TRACE("%p %p %lu %lu\n", this, find
, off
, len
);
3449 if(off
<this->size
) {
3450 end
= basic_string_wchar_const_ptr(this)+this->size
;
3451 for(p
=basic_string_wchar_const_ptr(this)+off
; p
<end
; p
++)
3452 if(!MSVCP_char_traits_wchar_find(find
, len
, p
))
3453 return p
-basic_string_wchar_const_ptr(this);
3456 return MSVCP_basic_string_wchar_npos
;
3459 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
3460 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
3461 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIABV12@I@Z */
3462 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KAEBV12@_K@Z */
3463 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_not_of
, 12)
3464 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_first_not_of(
3465 const basic_string_wchar
*this, const basic_string_wchar
*find
, MSVCP_size_t off
)
3467 return MSVCP_basic_string_wchar_find_first_not_of_cstr_substr(this,
3468 basic_string_wchar_const_ptr(find
), off
, find
->size
);
3471 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
3472 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
3473 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGI@Z */
3474 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K@Z */
3475 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_not_of_cstr
, 12)
3476 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_first_not_of_cstr(
3477 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t off
)
3479 return MSVCP_basic_string_wchar_find_first_not_of_cstr_substr(
3480 this, find
, off
, MSVCP_char_traits_wchar_length(find
));
3483 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
3484 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
3485 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIGI@Z */
3486 /* ?find_first_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KG_K@Z */
3487 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_not_of_ch
, 12)
3488 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_first_not_of_ch(
3489 const basic_string_wchar
*this, wchar_t ch
, MSVCP_size_t off
)
3491 return MSVCP_basic_string_wchar_find_first_not_of_cstr_substr(this, &ch
, off
, 1);
3494 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
3495 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
3496 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGII@Z */
3497 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K1@Z */
3498 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_of_cstr_substr
, 16)
3499 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_last_of_cstr_substr(
3500 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t off
, MSVCP_size_t len
)
3502 const wchar_t *p
, *beg
;
3504 TRACE("%p %p %lu %lu\n", this, find
, off
, len
);
3507 if(len
>0 && this->size
>0) {
3508 if(off
>= this->size
)
3511 beg
= basic_string_wchar_const_ptr(this);
3512 for(p
=beg
+off
; p
>=beg
; p
--)
3513 if(MSVCP_char_traits_wchar_find(find
, len
, p
))
3517 return MSVCP_basic_string_wchar_npos
;
3520 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
3521 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
3522 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIABV12@I@Z */
3523 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KAEBV12@_K@Z */
3524 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_of
, 12)
3525 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_last_of(
3526 const basic_string_wchar
*this, const basic_string_wchar
*find
, MSVCP_size_t off
)
3528 return MSVCP_basic_string_wchar_find_last_of_cstr_substr(this,
3529 basic_string_wchar_const_ptr(find
), off
, find
->size
);
3532 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
3533 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
3534 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGI@Z */
3535 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K@Z */
3536 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_of_cstr
, 12)
3537 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_last_of_cstr(
3538 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t off
)
3540 return MSVCP_basic_string_wchar_find_last_of_cstr_substr(
3541 this, find
, off
, MSVCP_char_traits_wchar_length(find
));
3544 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
3545 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
3546 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIGI@Z */
3547 /* ?find_last_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KG_K@Z */
3548 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_of_ch
, 12)
3549 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_last_of_ch(
3550 const basic_string_wchar
*this, wchar_t ch
, MSVCP_size_t off
)
3552 return MSVCP_basic_string_wchar_find_last_of_cstr_substr(this, &ch
, off
, 1);
3555 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
3556 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
3557 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGII@Z */
3558 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K1@Z */
3559 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_not_of_cstr_substr
, 16)
3560 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_last_not_of_cstr_substr(
3561 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t off
, MSVCP_size_t len
)
3563 const wchar_t *p
, *beg
;
3565 TRACE("%p %p %lu %lu\n", this, find
, off
, len
);
3568 if(off
>= this->size
)
3571 beg
= basic_string_wchar_const_ptr(this);
3572 for(p
=beg
+off
; p
>=beg
; p
--)
3573 if(!MSVCP_char_traits_wchar_find(find
, len
, p
))
3577 return MSVCP_basic_string_wchar_npos
;
3580 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
3581 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
3582 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIABV12@I@Z */
3583 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KAEBV12@_K@Z */
3584 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_not_of
, 12)
3585 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_last_not_of(
3586 const basic_string_wchar
*this, const basic_string_wchar
*find
, MSVCP_size_t off
)
3588 return MSVCP_basic_string_wchar_find_last_not_of_cstr_substr(this,
3589 basic_string_wchar_const_ptr(find
), off
, find
->size
);
3592 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
3593 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
3594 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIPBGI@Z */
3595 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KPEBG_K@Z */
3596 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_not_of_cstr
, 12)
3597 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_last_not_of_cstr(
3598 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t off
)
3600 return MSVCP_basic_string_wchar_find_last_not_of_cstr_substr(
3601 this, find
, off
, MSVCP_char_traits_wchar_length(find
));
3604 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
3605 /* ?find_last_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
3606 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEIGI@Z */
3607 /* ?find_last_not_of@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBA_KG_K@Z */
3608 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_not_of_ch
, 12)
3609 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_last_not_of_ch(
3610 const basic_string_wchar
*this, wchar_t ch
, MSVCP_size_t off
)
3612 return MSVCP_basic_string_wchar_find_last_not_of_cstr_substr(this, &ch
, off
, 1);
3615 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IIPB_WI@Z */
3616 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0PEB_W0@Z */
3617 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IIPBGI@Z */
3618 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K0PEBG0@Z */
3619 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_cstr_len
, 20)
3620 basic_string_wchar
* __thiscall
basic_string_wchar_replace_cstr_len(basic_string_wchar
*this,
3621 MSVCP_size_t off
, MSVCP_size_t len
, const wchar_t *str
, MSVCP_size_t str_len
)
3623 MSVCP_size_t inside_pos
= -1;
3624 wchar_t *ptr
= basic_string_wchar_ptr(this);
3626 TRACE("%p %ld %ld %p %ld\n", this, off
, len
, str
, str_len
);
3628 if(this->size
< off
)
3629 MSVCP__String_base_Xran();
3631 if(len
> this->size
-off
)
3632 len
= this->size
-off
;
3634 if(MSVCP_basic_string_wchar_npos
-str_len
<= this->size
-len
)
3635 MSVCP__String_base_Xlen();
3637 if(basic_string_wchar_inside(this, str
))
3638 inside_pos
= str
-ptr
;
3641 basic_string_wchar_grow(this, this->size
-len
+str_len
, FALSE
);
3642 ptr
= basic_string_wchar_ptr(this);
3645 if(inside_pos
== -1) {
3646 memmove(ptr
+off
+str_len
, ptr
+off
+len
, (this->size
-off
-len
)*sizeof(wchar_t));
3647 memcpy(ptr
+off
, str
, str_len
*sizeof(wchar_t));
3648 } else if(len
>= str_len
) {
3649 memmove(ptr
+off
, ptr
+inside_pos
, str_len
*sizeof(wchar_t));
3650 memmove(ptr
+off
+str_len
, ptr
+off
+len
, (this->size
-off
-len
)*sizeof(wchar_t));
3654 memmove(ptr
+off
+str_len
, ptr
+off
+len
, (this->size
-off
-len
)*sizeof(wchar_t));
3656 if(inside_pos
< off
+len
) {
3657 size
= off
+len
-inside_pos
;
3660 memmove(ptr
+off
, ptr
+inside_pos
, size
*sizeof(wchar_t));
3666 memmove(ptr
+off
+size
, ptr
+off
+str_len
, (str_len
-size
)*sizeof(wchar_t));
3669 basic_string_wchar_eos(this, this->size
-len
+str_len
);
3673 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IIPB_W@Z */
3674 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0PEB_W@Z */
3675 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IIPBG@Z */
3676 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K0PEBG@Z */
3677 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_cstr
, 16)
3678 basic_string_wchar
* __thiscall
basic_string_wchar_replace_cstr(basic_string_wchar
*this,
3679 MSVCP_size_t off
, MSVCP_size_t len
, const wchar_t *str
)
3681 return basic_string_wchar_replace_cstr_len(this, off
, len
, str
,
3682 MSVCP_char_traits_wchar_length(str
));
3685 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IIABV12@II@Z */
3686 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0AEBV12@00@Z */
3687 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IIABV12@II@Z */
3688 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K0AEBV12@00@Z */
3689 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_substr
, 24)
3690 basic_string_wchar
* __thiscall
basic_string_wchar_replace_substr(basic_string_wchar
*this, MSVCP_size_t off
,
3691 MSVCP_size_t len
, const basic_string_wchar
*str
, MSVCP_size_t str_off
, MSVCP_size_t str_len
)
3693 if(str
->size
< str_off
)
3694 MSVCP__String_base_Xran();
3696 if(str_len
> str
->size
-str_off
)
3697 str_len
= str
->size
-str_off
;
3699 return basic_string_wchar_replace_cstr_len(this, off
, len
,
3700 basic_string_wchar_const_ptr(str
)+str_off
, str_len
);
3703 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IIABV12@@Z */
3704 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0AEBV12@@Z */
3705 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IIABV12@@Z */
3706 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K0AEBV12@@Z */
3707 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace
, 16)
3708 basic_string_wchar
* __thiscall
basic_string_wchar_replace(basic_string_wchar
*this,
3709 MSVCP_size_t off
, MSVCP_size_t len
, const basic_string_wchar
*str
)
3711 return basic_string_wchar_replace_cstr_len(this, off
, len
,
3712 basic_string_wchar_const_ptr(str
), str
->size
);
3715 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@III_W@Z */
3716 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K00_W@Z */
3717 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IIIG@Z */
3718 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K00G@Z */
3719 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_ch
, 20)
3720 basic_string_wchar
* __thiscall
basic_string_wchar_replace_ch(basic_string_wchar
*this,
3721 MSVCP_size_t off
, MSVCP_size_t len
, MSVCP_size_t count
, wchar_t ch
)
3723 wchar_t *ptr
= basic_string_wchar_ptr(this);
3725 TRACE("%p %ld %ld %ld %c\n", this, off
, len
, count
, ch
);
3727 if(this->size
< off
)
3728 MSVCP__String_base_Xran();
3730 if(len
> this->size
-off
)
3731 len
= this->size
-off
;
3733 if(MSVCP_basic_string_wchar_npos
-count
<= this->size
-len
)
3734 MSVCP__String_base_Xlen();
3737 basic_string_wchar_grow(this, this->size
-len
+count
, FALSE
);
3738 ptr
= basic_string_wchar_ptr(this);
3741 memmove(ptr
+off
+count
, ptr
+off
+len
, (this->size
-off
-len
)*sizeof(wchar_t));
3742 MSVCP_char_traits_wchar_assignn(ptr
+off
, count
, ch
);
3743 basic_string_wchar_eos(this, this->size
-len
+count
);
3748 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IABV12@@Z */
3749 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_KAEBV12@@Z */
3750 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IABV12@@Z */
3751 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_KAEBV12@@Z */
3752 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert
, 12)
3753 basic_string_wchar
* __thiscall
basic_string_wchar_insert(basic_string_wchar
*this,
3754 MSVCP_size_t off
, const basic_string_wchar
*str
)
3756 return basic_string_wchar_replace(this, off
, 0, str
);
3759 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IABV12@II@Z */
3760 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_KAEBV12@00@Z */
3761 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IABV12@II@Z */
3762 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_KAEBV12@00@Z */
3763 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_substr
, 20)
3764 basic_string_wchar
* __thiscall
basic_string_wchar_insert_substr(
3765 basic_string_wchar
*this, MSVCP_size_t off
, const basic_string_wchar
*str
,
3766 MSVCP_size_t str_off
, MSVCP_size_t str_count
)
3768 return basic_string_wchar_replace_substr(this, off
, 0, str
, str_off
, str_count
);
3771 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IPB_W@Z */
3772 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_KPEB_W@Z */
3773 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IPBG@Z */
3774 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_KPEBG@Z */
3775 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_cstr
, 12)
3776 basic_string_wchar
* __thiscall
basic_string_wchar_insert_cstr(
3777 basic_string_wchar
*this, MSVCP_size_t off
, const wchar_t *str
)
3779 return basic_string_wchar_replace_cstr(this, off
, 0, str
);
3782 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IPB_WI@Z */
3783 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_KPEB_W0@Z */
3784 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IPBGI@Z */
3785 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_KPEBG0@Z */
3786 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_cstr_len
, 16)
3787 basic_string_wchar
* __thiscall
basic_string_wchar_insert_cstr_len(basic_string_wchar
*this,
3788 MSVCP_size_t off
, const wchar_t *str
, MSVCP_size_t str_len
)
3790 return basic_string_wchar_replace_cstr_len(this, off
, 0, str
, str_len
);
3793 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@II_W@Z */
3794 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0_W@Z */
3795 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@IIG@Z */
3796 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAV12@_K0G@Z */
3797 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_chn
, 16)
3798 basic_string_wchar
* __thiscall
basic_string_wchar_insert_chn(basic_string_wchar
*this,
3799 MSVCP_size_t off
, MSVCP_size_t count
, wchar_t ch
)
3801 return basic_string_wchar_replace_ch(this, off
, 0, count
, ch
);
3804 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAA_WI@Z */
3805 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEA_W_K@Z */
3806 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAGI@Z */
3807 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAG_K@Z */
3808 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_operator_at
, 8)
3809 wchar_t* __thiscall
MSVCP_basic_string_wchar_operator_at(
3810 basic_string_wchar
*this, MSVCP_size_t pos
)
3812 TRACE("%p %lu\n", this, pos
);
3814 assert(this->size
>= pos
);
3815 return basic_string_wchar_ptr(this)+pos
;
3818 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEAB_WI@Z */
3819 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAAEB_W_K@Z */
3820 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEABGI@Z */
3821 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAAEBG_K@Z */
3822 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_const_operator_at
, 8)
3823 const wchar_t* __thiscall
MSVCP_basic_string_wchar_const_operator_at(
3824 const basic_string_wchar
*this, MSVCP_size_t pos
)
3826 TRACE("%p %lu\n", this, pos
);
3828 assert(this->size
>= pos
);
3829 return basic_string_wchar_const_ptr(this)+pos
;
3832 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAA_WU_Size_type_nosscl@01@@Z */
3833 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEA_WU_Size_type_nosscl@01@@Z */
3834 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAGU_Size_type_nosscl@01@@Z */
3835 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAGU_Size_type_nosscl@01@@Z */
3836 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_operator_at_noverify
, 8)
3837 wchar_t* __thiscall
MSVCP_basic_string_wchar_operator_at_noverify(
3838 basic_string_wchar
*this, size_t_noverify pos
)
3840 TRACE("%p %lu\n", this, pos
.val
);
3841 return basic_string_wchar_ptr(this)+pos
.val
;
3844 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEAB_WU_Size_type_nosscl@01@@Z */
3845 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAAEB_WU_Size_type_nosscl@01@@Z */
3846 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEABGU_Size_type_nosscl@01@@Z */
3847 /* ??A?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAAEBGU_Size_type_nosscl@01@@Z */
3848 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_operator_const_at_noverify
, 8)
3849 const wchar_t* __thiscall
MSVCP_basic_string_wchar_operator_const_at_noverify(
3850 const basic_string_wchar
*this, size_t_noverify pos
)
3852 TRACE("%p %lu\n", this, pos
.val
);
3853 return basic_string_wchar_const_ptr(this)+pos
.val
;
3856 /* ?at@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAA_WI@Z */
3857 /* ?at@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEA_W_K@Z */
3858 /* ?at@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAGI@Z */
3859 /* ?at@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAAEAG_K@Z */
3860 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_at
, 8)
3861 wchar_t* __thiscall
MSVCP_basic_string_wchar_at(
3862 basic_string_wchar
*this, MSVCP_size_t pos
)
3864 TRACE("%p %lu\n", this, pos
);
3866 if(this->size
<= pos
)
3867 MSVCP__String_base_Xran();
3869 return basic_string_wchar_ptr(this)+pos
;
3872 /* ?at@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEAB_WI@Z */
3873 /* ?at@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAAEB_W_K@Z */
3874 /* ?at@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBEABGI@Z */
3875 /* ?at@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEBAAEBG_K@Z */
3876 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_const_at
, 8)
3877 const wchar_t* __thiscall
MSVCP_basic_string_wchar_const_at(
3878 const basic_string_wchar
*this, MSVCP_size_t pos
)
3880 TRACE("%p %lu\n", this, pos
);
3882 if(this->size
<= pos
)
3883 MSVCP__String_base_Xran();
3885 return basic_string_wchar_const_ptr(this)+pos
;
3888 /* ?resize@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXI_W@Z */
3889 /* ?resize@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAX_K_W@Z */
3890 /* ?resize@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXIG@Z */
3891 /* ?resize@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAX_KG@Z */
3892 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_resize_ch
, 12)
3893 void __thiscall
MSVCP_basic_string_wchar_resize_ch(
3894 basic_string_wchar
*this, MSVCP_size_t size
, wchar_t ch
)
3896 TRACE("%p %lu %c\n", this, size
, ch
);
3898 if(size
<= this->size
)
3899 MSVCP_basic_string_wchar_erase(this, size
, this->size
);
3901 MSVCP_basic_string_wchar_append_len_ch(this, size
-this->size
, ch
);
3904 /* ?resize@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXI@Z */
3905 /* ?resize@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAX_K@Z */
3906 /* ?resize@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXI@Z */
3907 /* ?resize@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAX_K@Z */
3908 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_resize
, 8)
3909 void __thiscall
MSVCP_basic_string_wchar_resize(
3910 basic_string_wchar
*this, MSVCP_size_t size
)
3912 MSVCP_basic_string_wchar_resize_ch(this, size
, '\0');
3915 /* ?clear@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
3916 /* ?clear@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
3917 /* ?clear@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXXZ */
3918 /* ?clear@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QEAAXXZ */
3919 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_clear
, 4)
3920 void __thiscall
MSVCP_basic_string_wchar_clear(basic_string_wchar
*this)
3922 basic_string_wchar_eos(this, 0);
3925 /* _String_val class */
3926 /* ??_F?$_String_val@DV?$allocator@D@std@@@std@@QAEXXZ */
3927 /* ??_F?$_String_val@DV?$allocator@D@std@@@std@@QEAAXXZ */
3928 /* ??_F?$_String_val@GV?$allocator@G@std@@@std@@QAEXXZ */
3929 /* ??_F?$_String_val@GV?$allocator@G@std@@@std@@QEAAXXZ */
3930 /* ??_F?$_String_val@_WV?$allocator@_W@std@@@std@@QAEXXZ */
3931 /* ??_F?$_String_val@_WV?$allocator@_W@std@@@std@@QEAAXXZ */
3932 DEFINE_THISCALL_WRAPPER(_String_val_ctor
, 4)
3933 void* __thiscall
_String_val_ctor(void *this)
3935 TRACE("%p\n", this);
3939 /* ??0?$_String_val@DV?$allocator@D@std@@@std@@IAE@V?$allocator@D@1@@Z */
3940 /* ??0?$_String_val@DV?$allocator@D@std@@@std@@IEAA@V?$allocator@D@1@@Z */
3941 /* ??0?$_String_val@GV?$allocator@G@std@@@std@@IAE@V?$allocator@G@1@@Z */
3942 /* ??0?$_String_val@GV?$allocator@G@std@@@std@@IEAA@V?$allocator@G@1@@Z */
3943 /* ??0?$_String_val@_WV?$allocator@_W@std@@@std@@IAE@V?$allocator@_W@1@@Z */
3944 /* ??0?$_String_val@_WV?$allocator@_W@std@@@std@@IEAA@V?$allocator@_W@1@@Z */
3945 /* ??0?$_String_val@DV?$allocator@D@std@@@std@@QAE@ABV01@@Z */
3946 /* ??0?$_String_val@DV?$allocator@D@std@@@std@@QEAA@AEBV01@@Z */
3947 /* ??0?$_String_val@GV?$allocator@G@std@@@std@@QAE@ABV01@@Z */
3948 /* ??0?$_String_val@GV?$allocator@G@std@@@std@@QEAA@AEBV01@@Z */
3949 /* ??0?$_String_val@_WV?$allocator@_W@std@@@std@@QAE@ABV01@@Z */
3950 /* ??0?$_String_val@_WV?$allocator@_W@std@@@std@@QEAA@AEBV01@@Z */
3951 /* ??4?$_String_val@DV?$allocator@D@std@@@std@@QAEAAV01@ABV01@@Z */
3952 /* ??4?$_String_val@DV?$allocator@D@std@@@std@@QEAAAEAV01@AEBV01@@Z */
3953 /* ??4?$_String_val@GV?$allocator@G@std@@@std@@QAEAAV01@ABV01@@Z */
3954 /* ??4?$_String_val@GV?$allocator@G@std@@@std@@QEAAAEAV01@AEBV01@@Z */
3955 /* ??4?$_String_val@_WV?$allocator@_W@std@@@std@@QAEAAV01@ABV01@@Z */
3956 /* ??4?$_String_val@_WV?$allocator@_W@std@@@std@@QEAAAEAV01@AEBV01@@Z */
3957 /* ??4?$_String_val@DV?$allocator@D@std@@@std@@QAEAAV01@ABV01@@Z */
3958 DEFINE_THISCALL_WRAPPER(_String_val_null_ctor
, 8)
3959 void* __thiscall
_String_val_null_ctor(void *this, const void *misc
)
3961 TRACE("%p %p\n", this, misc
);
3965 #if _MSVCP_VER < 80 /* old iterator functions */
3969 } basic_string_char_iterator
;
3973 } basic_string_wchar_iterator
;
3975 /* ?_Pdif@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KAIVconst_iterator@12@0@Z */
3976 MSVCP_size_t __cdecl
basic_string_char__Pdif(basic_string_char_iterator i1
, basic_string_char_iterator i2
)
3978 TRACE("(%p %p)\n", i1
.pos
, i2
.pos
);
3979 return !i1
.pos
? 0 : i1
.pos
-i2
.pos
;
3982 /* ?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AViterator@12@V312@0@Z */
3983 DEFINE_THISCALL_WRAPPER(basic_string_char_erase_iter_range
, 16)
3984 basic_string_char_iterator
* __thiscall
basic_string_char_erase_iter_range(basic_string_char
*this,
3985 basic_string_char_iterator
*ret
, basic_string_char_iterator beg
, basic_string_char_iterator end
)
3989 ret
->pos
= basic_string_char_ptr(this);
3990 off
= basic_string_char__Pdif(beg
, *ret
);
3992 MSVCP_basic_string_char_erase(this, off
, basic_string_char__Pdif(end
, beg
));
3994 ret
->pos
= basic_string_char_ptr(this)+off
;
3998 /* ?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AViterator@12@V312@@Z */
3999 DEFINE_THISCALL_WRAPPER(basic_string_char_erase_iter
, 12)
4000 basic_string_char_iterator
* __thiscall
basic_string_char_erase_iter(basic_string_char
*this,
4001 basic_string_char_iterator
*ret
, basic_string_char_iterator pos
)
4005 ret
->pos
= basic_string_char_ptr(this);
4006 off
= basic_string_char__Pdif(pos
, *ret
);
4008 MSVCP_basic_string_char_erase(this, off
, 1);
4010 ret
->pos
= basic_string_char_ptr(this)+off
;
4014 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@Vconst_iterator@12@0@Z */
4015 DEFINE_THISCALL_WRAPPER(basic_string_char_assign_iter
, 12)
4016 basic_string_char
* __thiscall
basic_string_char_assign_iter(basic_string_char
*this,
4017 basic_string_char_iterator beg
, basic_string_char_iterator end
)
4019 return MSVCP_basic_string_char_assign_ptr_ptr(this, beg
.pos
, end
.pos
);
4022 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@Vconst_iterator@01@0@Z */
4023 DEFINE_THISCALL_WRAPPER(basic_string_char_ctor_iter
, 12)
4024 basic_string_char
* __thiscall
basic_string_char_ctor_iter(basic_string_char
*this,
4025 basic_string_char_iterator beg
, basic_string_char_iterator end
)
4027 return MSVCP_basic_string_char_ctor_cstr_len(this, beg
.pos
, end
.pos
-beg
.pos
);
4030 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@Vconst_iterator@12@0@Z */
4031 DEFINE_THISCALL_WRAPPER(basic_string_char_append_iter
, 12)
4032 basic_string_char
* __thiscall
basic_string_char_append_iter(basic_string_char
*this,
4033 basic_string_char_iterator beg
, basic_string_char_iterator end
)
4035 return basic_string_char_replace_cstr_len(this, this->size
, 0, beg
.pos
, end
.pos
-beg
.pos
);
4038 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@Viterator@12@0Vconst_iterator@12@1@Z */
4039 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_iter_iter
, 20)
4040 basic_string_char
* __thiscall
basic_string_char_replace_iter_iter(basic_string_char
*this,
4041 basic_string_char_iterator beg
, basic_string_char_iterator end
,
4042 basic_string_char_iterator rbeg
, basic_string_char_iterator rend
)
4044 return basic_string_char_replace_cstr_len(this, beg
.pos
-basic_string_char_ptr(this),
4045 end
.pos
-beg
.pos
, rbeg
.pos
, rend
.pos
-rbeg
.pos
);
4048 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@Viterator@12@0ABV12@@Z */
4049 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_iter_bstr
, 16)
4050 basic_string_char
* __thiscall
basic_string_char_replace_iter_bstr(basic_string_char
*this,
4051 basic_string_char_iterator beg
, basic_string_char_iterator end
, basic_string_char
*str
)
4053 return basic_string_char_replace_cstr_len(this, beg
.pos
-basic_string_char_ptr(this),
4054 end
.pos
-beg
.pos
, basic_string_char_ptr(str
), str
->size
);
4057 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@Viterator@12@0ID@Z */
4058 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_iter_ch
, 20)
4059 basic_string_char
* __thiscall
basic_string_char_replace_iter_ch(basic_string_char
*this,
4060 basic_string_char_iterator beg
, basic_string_char_iterator end
, MSVCP_size_t count
, char ch
)
4062 /* TODO: add more efficient implementation */
4063 MSVCP_size_t off
= beg
.pos
-basic_string_char_ptr(this);
4065 basic_string_char_replace_cstr_len(this, off
, end
.pos
-beg
.pos
, NULL
, 0);
4067 basic_string_char_replace_cstr_len(this, off
, 0, &ch
, 1);
4071 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@Viterator@12@0PBD1@Z */
4072 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_iter_beg_end
, 20)
4073 basic_string_char
* __thiscall
basic_string_char_replace_iter_beg_end(basic_string_char
*this,
4074 basic_string_char_iterator beg
, basic_string_char_iterator end
, const char *rbeg
, const char *rend
)
4076 return basic_string_char_replace_cstr_len(this, beg
.pos
-basic_string_char_ptr(this),
4077 end
.pos
-beg
.pos
, rbeg
, rend
-rbeg
);
4080 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@Viterator@12@0PBD@Z */
4081 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_iter_cstr
, 16)
4082 basic_string_char
* __thiscall
basic_string_char_replace_iter_cstr(basic_string_char
*this,
4083 basic_string_char_iterator beg
, basic_string_char_iterator end
, const char *str
)
4085 return basic_string_char_replace_cstr_len(this, beg
.pos
-basic_string_char_ptr(this),
4086 end
.pos
-beg
.pos
, str
, strlen(str
));
4089 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@Viterator@12@0PBDI@Z */
4090 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_iter_cstr_len
, 20)
4091 basic_string_char
* __thiscall
basic_string_char_replace_iter_cstr_len(basic_string_char
*this,
4092 basic_string_char_iterator beg
, basic_string_char_iterator end
, const char *str
, MSVCP_size_t len
)
4094 return basic_string_char_replace_cstr_len(this, beg
.pos
-basic_string_char_ptr(this),
4095 end
.pos
-beg
.pos
, str
, len
);
4098 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXViterator@12@ID@Z */
4099 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_iter_chn
, 16)
4100 void __thiscall
basic_string_char_insert_iter_chn(basic_string_char
*this,
4101 basic_string_char_iterator where
, MSVCP_size_t count
, char ch
)
4103 basic_string_char_iterator iter
= { basic_string_char_ptr(this) };
4104 MSVCP_size_t off
= basic_string_char__Pdif(where
, iter
);
4106 basic_string_char_insert_chn(this, off
, count
, ch
);
4109 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AViterator@12@V312@D@Z */
4110 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_iter_ch
, 16)
4111 basic_string_char_iterator
* __thiscall
basic_string_char_insert_iter_ch(basic_string_char
*this,
4112 basic_string_char_iterator
*ret
, basic_string_char_iterator where
, char ch
)
4116 ret
->pos
= basic_string_char_ptr(this);
4117 off
= basic_string_char__Pdif(where
, *ret
);
4119 basic_string_char_insert_chn(this, off
, 1, ch
);
4120 ret
->pos
= basic_string_char_ptr(this)+off
;
4124 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AViterator@12@V312@@Z */
4125 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_iter_null
, 12)
4126 basic_string_char_iterator
* __thiscall
basic_string_char_insert_iter_null(basic_string_char
*this,
4127 basic_string_char_iterator
*ret
, basic_string_char_iterator where
)
4129 return basic_string_char_insert_iter_ch(this, ret
, where
, 0);
4132 /* ?begin@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AViterator@12@XZ */
4133 /* ?begin@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AVconst_iterator@12@XZ */
4134 /* ?rend@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AV?$reverse_iterator@Viterator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@XZ */
4135 /* ?rend@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AV?$reverse_iterator@Vconst_iterator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@XZ */
4136 DEFINE_THISCALL_WRAPPER(basic_string_char_begin
, 8)
4137 basic_string_char_iterator
* __thiscall
basic_string_char_begin(
4138 basic_string_char
*this, basic_string_char_iterator
*ret
)
4140 ret
->pos
= basic_string_char_ptr(this);
4144 /* ?end@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AViterator@12@XZ */
4145 /* ?end@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AVconst_iterator@12@XZ */
4146 /* ?rbegin@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AV?$reverse_iterator@Viterator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@XZ */
4147 /* ?rbegin@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AV?$reverse_iterator@Vconst_iterator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@XZ */
4148 DEFINE_THISCALL_WRAPPER(basic_string_char_end
, 8)
4149 basic_string_char_iterator
* __thiscall
basic_string_char_end(
4150 basic_string_char
*this, basic_string_char_iterator
*ret
)
4152 ret
->pos
= basic_string_char_ptr(this)+this->size
;
4156 /* ?_Pdif@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@KAIVconst_iterator@12@0@Z */
4157 /* ?_Pdif@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@KAIVconst_iterator@12@0@Z */
4158 MSVCP_size_t __cdecl
basic_string_wchar__Pdif(basic_string_wchar_iterator i1
, basic_string_wchar_iterator i2
)
4160 TRACE("(%p %p)\n", i1
.pos
, i2
.pos
);
4161 return !i1
.pos
? 0 : i1
.pos
-i2
.pos
;
4164 /* ?erase@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE?AViterator@12@V312@0@Z */
4165 /* ?erase@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE?AViterator@12@V312@0@Z */
4166 DEFINE_THISCALL_WRAPPER(basic_string_wchar_erase_iter_range
, 16)
4167 basic_string_wchar_iterator
* __thiscall
basic_string_wchar_erase_iter_range(basic_string_wchar
*this,
4168 basic_string_wchar_iterator
*ret
, basic_string_wchar_iterator beg
, basic_string_wchar_iterator end
)
4172 ret
->pos
= basic_string_wchar_ptr(this);
4173 off
= basic_string_wchar__Pdif(beg
, *ret
);
4175 MSVCP_basic_string_wchar_erase(this, off
, basic_string_wchar__Pdif(end
, beg
));
4177 ret
->pos
= basic_string_wchar_ptr(this)+off
;
4181 /* ?erase@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE?AViterator@12@V312@@Z */
4182 /* ?erase@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE?AViterator@12@V312@@Z */
4183 DEFINE_THISCALL_WRAPPER(basic_string_wchar_erase_iter
, 12)
4184 basic_string_wchar_iterator
* __thiscall
basic_string_wchar_erase_iter(basic_string_wchar
*this,
4185 basic_string_wchar_iterator
*ret
, basic_string_wchar_iterator pos
)
4189 ret
->pos
= basic_string_wchar_ptr(this);
4190 off
= basic_string_wchar__Pdif(pos
, *ret
);
4192 MSVCP_basic_string_wchar_erase(this, off
, 1);
4194 ret
->pos
= basic_string_wchar_ptr(this)+off
;
4198 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@Vconst_iterator@12@0@Z */
4199 /* ?assign@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@Vconst_iterator@12@0@Z */
4200 DEFINE_THISCALL_WRAPPER(basic_string_wchar_assign_iter
, 12)
4201 basic_string_wchar
* __thiscall
basic_string_wchar_assign_iter(basic_string_wchar
*this,
4202 basic_string_wchar_iterator beg
, basic_string_wchar_iterator end
)
4204 return MSVCP_basic_string_wchar_assign_ptr_ptr(this, beg
.pos
, end
.pos
);
4207 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@Vconst_iterator@01@0@Z */
4208 /* ??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@Vconst_iterator@01@0@Z */
4209 DEFINE_THISCALL_WRAPPER(basic_string_wchar_ctor_iter
, 12)
4210 basic_string_wchar
* __thiscall
basic_string_wchar_ctor_iter(basic_string_wchar
*this,
4211 basic_string_wchar_iterator beg
, basic_string_wchar_iterator end
)
4213 return MSVCP_basic_string_wchar_ctor_cstr_len(this, beg
.pos
, end
.pos
-beg
.pos
);
4216 /* ?append@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@Vconst_iterator@12@0@Z */
4217 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@Vconst_iterator@12@0@Z */
4218 DEFINE_THISCALL_WRAPPER(basic_string_wchar_append_iter
, 12)
4219 basic_string_wchar
* __thiscall
basic_string_wchar_append_iter(basic_string_wchar
*this,
4220 basic_string_wchar_iterator beg
, basic_string_wchar_iterator end
)
4222 return basic_string_wchar_replace_cstr_len(this, this->size
, 0, beg
.pos
, end
.pos
-beg
.pos
);
4225 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@Viterator@12@0Vconst_iterator@12@1@Z */
4226 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@Viterator@12@0Vconst_iterator@12@1@Z */
4227 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_iter_iter
, 20)
4228 basic_string_wchar
* __thiscall
basic_string_wchar_replace_iter_iter(basic_string_wchar
*this,
4229 basic_string_wchar_iterator beg
, basic_string_wchar_iterator end
,
4230 basic_string_wchar_iterator rbeg
, basic_string_wchar_iterator rend
)
4232 return basic_string_wchar_replace_cstr_len(this, beg
.pos
-basic_string_wchar_ptr(this),
4233 end
.pos
-beg
.pos
, rbeg
.pos
, rend
.pos
-rbeg
.pos
);
4236 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@Viterator@12@0ABV12@@Z */
4237 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@Viterator@12@0ABV12@@Z */
4238 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_iter_bstr
, 16)
4239 basic_string_wchar
* __thiscall
basic_string_wchar_replace_iter_bstr(basic_string_wchar
*this,
4240 basic_string_wchar_iterator beg
, basic_string_wchar_iterator end
, basic_string_wchar
*str
)
4242 return basic_string_wchar_replace_cstr_len(this, beg
.pos
-basic_string_wchar_ptr(this),
4243 end
.pos
-beg
.pos
, basic_string_wchar_ptr(str
), str
->size
);
4246 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@Viterator@12@0IG@Z */
4247 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@Viterator@12@0I_W@Z */
4248 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_iter_ch
, 20)
4249 basic_string_wchar
* __thiscall
basic_string_wchar_replace_iter_ch(basic_string_wchar
*this,
4250 basic_string_wchar_iterator beg
, basic_string_wchar_iterator end
, MSVCP_size_t count
, wchar_t ch
)
4252 /* TODO: add more efficient implementation */
4253 MSVCP_size_t off
= beg
.pos
-basic_string_wchar_ptr(this);
4255 basic_string_wchar_replace_cstr_len(this, off
, end
.pos
-beg
.pos
, NULL
, 0);
4257 basic_string_wchar_replace_cstr_len(this, off
, 0, &ch
, 1);
4261 /* ?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 */
4262 /* ?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 */
4263 static basic_string_wchar
* basic_string_wchar_replace_iter_ptr_ptr(basic_string_wchar
*this,
4264 basic_string_wchar_iterator beg
, basic_string_wchar_iterator end
,
4265 const wchar_t *res_beg
, const wchar_t *res_end
)
4267 basic_string_wchar_iterator begin
= { basic_string_wchar_ptr(this) };
4268 return basic_string_wchar_replace_cstr_len(this, basic_string_wchar__Pdif(beg
, begin
),
4269 basic_string_wchar__Pdif(end
, beg
), res_beg
, res_end
-res_beg
);
4272 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@Viterator@12@0PBG1@Z */
4273 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@Viterator@12@0PB_W1@Z */
4274 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_iter_beg_end
, 20)
4275 basic_string_wchar
* __thiscall
basic_string_wchar_replace_iter_beg_end(basic_string_wchar
*this,
4276 basic_string_wchar_iterator beg
, basic_string_wchar_iterator end
,
4277 const wchar_t *rbeg
, const wchar_t *rend
)
4279 return basic_string_wchar_replace_cstr_len(this, beg
.pos
-basic_string_wchar_ptr(this),
4280 end
.pos
-beg
.pos
, rbeg
, rend
-rbeg
);
4283 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@Viterator@12@0PBG@Z */
4284 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@Viterator@12@0PB_W@Z */
4285 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_iter_cstr
, 16)
4286 basic_string_wchar
* __thiscall
basic_string_wchar_replace_iter_cstr(basic_string_wchar
*this,
4287 basic_string_wchar_iterator beg
, basic_string_wchar_iterator end
, const wchar_t *str
)
4289 return basic_string_wchar_replace_cstr_len(this, beg
.pos
-basic_string_wchar_ptr(this),
4290 end
.pos
-beg
.pos
, str
, wcslen(str
));
4293 /* ?replace@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEAAV12@Viterator@12@0PBGI@Z */
4294 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@Viterator@12@0PB_WI@Z */
4295 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_iter_cstr_len
, 20)
4296 basic_string_wchar
* __thiscall
basic_string_wchar_replace_iter_cstr_len(basic_string_wchar
*this,
4297 basic_string_wchar_iterator beg
, basic_string_wchar_iterator end
,
4298 const wchar_t *str
, MSVCP_size_t len
)
4300 return basic_string_wchar_replace_cstr_len(this, beg
.pos
-basic_string_wchar_ptr(this),
4301 end
.pos
-beg
.pos
, str
, len
);
4304 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXViterator@12@I_W@Z */
4305 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXViterator@12@IG@Z */
4306 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_iter_chn
, 16)
4307 void __thiscall
basic_string_wchar_insert_iter_chn(basic_string_wchar
*this,
4308 basic_string_wchar_iterator where
, MSVCP_size_t count
, wchar_t ch
)
4310 basic_string_wchar_iterator iter
= { basic_string_wchar_ptr(this) };
4311 MSVCP_size_t off
= basic_string_wchar__Pdif(where
, iter
);
4313 basic_string_wchar_insert_chn(this, off
, count
, ch
);
4316 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE?AViterator@12@V312@_W@Z */
4317 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE?AViterator@12@V312@G@Z */
4318 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_iter_ch
, 16)
4319 basic_string_wchar_iterator
* __thiscall
basic_string_wchar_insert_iter_ch(basic_string_wchar
*this,
4320 basic_string_wchar_iterator
*ret
, basic_string_wchar_iterator where
, wchar_t ch
)
4324 ret
->pos
= basic_string_wchar_ptr(this);
4325 off
= basic_string_wchar__Pdif(where
, *ret
);
4327 basic_string_wchar_insert_chn(this, off
, 1, ch
);
4328 ret
->pos
= basic_string_wchar_ptr(this)+off
;
4332 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE?AViterator@12@V312@@Z */
4333 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE?AViterator@12@V312@@Z */
4334 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_iter_null
, 12)
4335 basic_string_wchar_iterator
* __thiscall
basic_string_wchar_insert_iter_null(basic_string_wchar
*this,
4336 basic_string_wchar_iterator
*ret
, basic_string_wchar_iterator where
)
4338 return basic_string_wchar_insert_iter_ch(this, ret
, where
, 0);
4341 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXViterator@12@PB_W1@Z */
4342 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXViterator@12@PBG1@Z */
4343 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_iter_ptr_ptr
, 16)
4344 void __thiscall
basic_string_wchar_insert_iter_ptr_ptr(basic_string_wchar
*this,
4345 basic_string_wchar_iterator where
, const wchar_t *beg
, const wchar_t *end
)
4347 basic_string_wchar_replace_iter_ptr_ptr(this, where
, where
, beg
, end
);
4350 /* ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXViterator@12@Vconst_iterator@12@1@Z */
4351 /* ?insert@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAEXViterator@12@Vconst_iterator@12@1@Z */
4352 /* ?insert@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXViterator@12@Vconst_iterator@12@1@Z */
4353 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_iter_beg_end
, 16)
4354 void __thiscall
basic_string_wchar_insert_iter_beg_end(basic_string_wchar
*this,
4355 basic_string_wchar_iterator where
, basic_string_wchar_iterator beg
, basic_string_wchar_iterator end
)
4357 basic_string_wchar_replace_iter_ptr_ptr(this, where
, where
, beg
.pos
, end
.pos
);
4360 /* ?begin@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE?AViterator@12@XZ */
4361 /* ?begin@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBE?AVconst_iterator@12@XZ */
4362 /* ?begin@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE?AViterator@12@XZ */
4363 /* ?begin@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE?AVconst_iterator@12@XZ */
4364 /* ?rend@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE?AV?$reverse_iterator@Viterator@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@@2@XZ */
4365 /* ?rend@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBE?AV?$reverse_iterator@Vconst_iterator@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@@2@XZ */
4366 /* ?rend@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE?AV?$reverse_iterator@Viterator@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@2@XZ */
4367 /* ?rend@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE?AV?$reverse_iterator@Vconst_iterator@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@2@XZ */
4368 DEFINE_THISCALL_WRAPPER(basic_string_wchar_begin
, 8)
4369 basic_string_wchar_iterator
* __thiscall
basic_string_wchar_begin(
4370 basic_string_wchar
*this, basic_string_wchar_iterator
*ret
)
4372 ret
->pos
= basic_string_wchar_ptr(this);
4376 /* ?end@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE?AViterator@12@XZ */
4377 /* ?end@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBE?AVconst_iterator@12@XZ */
4378 /* ?end@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE?AViterator@12@XZ */
4379 /* ?end@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE?AVconst_iterator@12@XZ */
4380 /* ?rbegin@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE?AV?$reverse_iterator@Viterator@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@@2@XZ */
4381 /* ?rbegin@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QBE?AV?$reverse_iterator@Vconst_iterator@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@@2@XZ */
4382 /* ?rbegin@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE?AV?$reverse_iterator@Viterator@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@2@XZ */
4383 /* ?rbegin@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE?AV?$reverse_iterator@Vconst_iterator@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@2@XZ */
4384 DEFINE_THISCALL_WRAPPER(basic_string_wchar_end
, 8)
4385 basic_string_wchar_iterator
* __thiscall
basic_string_wchar_end(
4386 basic_string_wchar
*this, basic_string_wchar_iterator
*ret
)
4388 ret
->pos
= basic_string_wchar_ptr(this)+this->size
;
4392 #else /* _MSVCP_VER >= 80, new iterator functions */
4394 /* _String_iterator<char> and _String_const_iterator<char> class */
4396 basic_string_char
*bstr
;
4398 } String_iterator_char
;
4401 #if _MSVCP_VER == 80
4404 const basic_string_char
*bstr
;
4406 } String_reverse_iterator_char
;
4409 basic_string_wchar
*bstr
;
4411 } String_iterator_wchar
;
4414 #if _MSVCP_VER == 80
4417 const basic_string_wchar
*bstr
;
4419 } String_reverse_iterator_wchar
;
4421 /* ?_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 */
4422 /* ?_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 */
4423 MSVCP_size_t __cdecl
MSVCP_basic_string_char_Pdif(String_iterator_char i1
, String_iterator_char i2
)
4425 TRACE("(%p %p) (%p %p)\n", i1
.bstr
, i1
.pos
, i2
.bstr
, i2
.pos
);
4427 if((!i1
.bstr
&& i1
.pos
) || i1
.bstr
!=i2
.bstr
) {
4428 _invalid_parameter(NULL
, NULL
, NULL
, 0, 0);
4432 return !i1
.pos
? 0 : i1
.pos
-i2
.pos
;
4435 /* ?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 */
4436 /* ?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 */
4437 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_erase_iter_range
, 24)
4438 String_iterator_char
* __thiscall
MSVCP_basic_string_char_erase_iter_range(basic_string_char
*this,
4439 String_iterator_char
*ret
, String_iterator_char beg
, String_iterator_char end
)
4444 ret
->pos
= basic_string_char_ptr(this);
4445 off
= MSVCP_basic_string_char_Pdif(beg
, *ret
);
4447 MSVCP_basic_string_char_erase(this, off
, MSVCP_basic_string_char_Pdif(end
, beg
));
4450 ret
->pos
= basic_string_char_ptr(this)+off
;
4454 /* ?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 */
4455 /* ?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 */
4456 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_erase_iter
, 16)
4457 String_iterator_char
* __thiscall
MSVCP_basic_string_char_erase_iter(basic_string_char
*this,
4458 String_iterator_char
*ret
, String_iterator_char pos
)
4463 ret
->pos
= basic_string_char_ptr(this);
4464 off
= MSVCP_basic_string_char_Pdif(pos
, *ret
);
4466 MSVCP_basic_string_char_erase(this, off
, 1);
4469 ret
->pos
= basic_string_char_ptr(this)+off
;
4473 /* ?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 */
4474 /* ?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 */
4475 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign_iter
, 20)
4476 basic_string_char
* __thiscall
MSVCP_basic_string_char_assign_iter(basic_string_char
*this,
4477 String_iterator_char beg
, String_iterator_char end
)
4479 return MSVCP_basic_string_char_assign_ptr_ptr(this, beg
.pos
, end
.pos
);
4482 /* ??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 */
4483 /* ??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 */
4484 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_iter
, 20)
4485 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_iter(basic_string_char
*this,
4486 String_iterator_char beg
, String_iterator_char end
)
4488 return MSVCP_basic_string_char_ctor_cstr_len(this, beg
.pos
, end
.pos
-beg
.pos
);
4491 /* ?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 */
4492 /* ?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 */
4493 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_iter
, 20)
4494 basic_string_char
* __thiscall
MSVCP_basic_string_char_append_iter(
4495 basic_string_char
*this, String_iterator_char beg
, String_iterator_char end
)
4497 return MSVCP_basic_string_char_append_cstr_len(this, beg
.pos
, end
.pos
-beg
.pos
);
4500 /* ?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 */
4501 /* ?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 */
4502 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_replace_iter_iter
, 36)
4503 basic_string_char
* __thiscall
MSVCP_basic_string_char_replace_iter_iter(basic_string_char
*this,
4504 String_iterator_char beg
, String_iterator_char end
,
4505 String_iterator_char res_beg
, String_iterator_char res_end
)
4507 String_iterator_char begin
= { this, basic_string_char_ptr(this) };
4508 return basic_string_char_replace_cstr_len(this,
4509 MSVCP_basic_string_char_Pdif(beg
, begin
), MSVCP_basic_string_char_Pdif(end
, beg
),
4510 res_beg
.pos
, MSVCP_basic_string_char_Pdif(res_end
, res_beg
));
4513 /* ?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 */
4514 /* ?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 */
4515 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_replace_iter_bstr
, 24)
4516 basic_string_char
* __thiscall
MSVCP_basic_string_char_replace_iter_bstr(basic_string_char
*this,
4517 String_iterator_char beg
, String_iterator_char end
, const basic_string_char
*str
)
4519 String_iterator_char begin
= { this, basic_string_char_ptr(this) };
4520 return basic_string_char_replace(this, MSVCP_basic_string_char_Pdif(beg
, begin
),
4521 MSVCP_basic_string_char_Pdif(end
, beg
), str
);
4524 /* ?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 */
4525 /* ?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 */
4526 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_replace_iter_ch
, 28)
4527 basic_string_char
* __thiscall
MSVCP_basic_string_char_replace_iter_ch(basic_string_char
*this,
4528 String_iterator_char beg
, String_iterator_char end
, MSVCP_size_t count
, char ch
)
4530 String_iterator_char begin
= { this, basic_string_char_ptr(this) };
4531 return basic_string_char_replace_ch(this, MSVCP_basic_string_char_Pdif(beg
, begin
),
4532 MSVCP_basic_string_char_Pdif(end
, beg
), count
, ch
);
4535 /* ?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 */
4536 /* ?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 */
4537 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_replace_iter_ptr_ptr
, 28)
4538 basic_string_char
* __thiscall
MSVCP_basic_string_char_replace_iter_ptr_ptr(basic_string_char
*this,
4539 String_iterator_char beg
, String_iterator_char end
,
4540 const char *res_beg
, const char *res_end
)
4542 String_iterator_char begin
= { this, basic_string_char_ptr(this) };
4543 return basic_string_char_replace_cstr_len(this, MSVCP_basic_string_char_Pdif(beg
, begin
),
4544 MSVCP_basic_string_char_Pdif(end
, beg
), res_beg
, res_end
-res_beg
);
4547 /* ?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 */
4548 /* ?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 */
4549 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_replace_iter_cstr
, 24)
4550 basic_string_char
* __thiscall
MSVCP_basic_string_char_replace_iter_cstr(basic_string_char
*this,
4551 String_iterator_char beg
, String_iterator_char end
, const char *str
)
4553 String_iterator_char begin
= { this, basic_string_char_ptr(this) };
4554 return basic_string_char_replace_cstr(this, MSVCP_basic_string_char_Pdif(beg
, begin
),
4555 MSVCP_basic_string_char_Pdif(end
, beg
), str
);
4558 /* ?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 */
4559 /* ?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 */
4560 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_replace_iter_cstr_len
, 28)
4561 basic_string_char
* __thiscall
MSVCP_basic_string_char_replace_iter_cstr_len(basic_string_char
*this,
4562 String_iterator_char beg
, String_iterator_char end
, const char *str
, MSVCP_size_t len
)
4564 String_iterator_char begin
= { this, basic_string_char_ptr(this) };
4565 return basic_string_char_replace_cstr_len(this, MSVCP_basic_string_char_Pdif(beg
, begin
),
4566 MSVCP_basic_string_char_Pdif(end
, beg
), str
, len
);
4569 /* ?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 */
4570 /* ?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 */
4571 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_insert_iter_chn
, 20)
4572 void __thiscall
MSVCP_basic_string_char_insert_iter_chn(basic_string_char
*this,
4573 String_iterator_char where
, MSVCP_size_t count
, char ch
)
4575 String_iterator_char iter
= { this, basic_string_char_ptr(this) };
4576 MSVCP_size_t off
= MSVCP_basic_string_char_Pdif(where
, iter
);
4578 basic_string_char_insert_chn(this, off
, count
, ch
);
4581 /* ?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 */
4582 /* ?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 */
4583 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_insert_iter_ch
, 20)
4584 String_iterator_char
* __thiscall
MSVCP_basic_string_char_insert_iter_ch(basic_string_char
*this,
4585 String_iterator_char
*ret
, String_iterator_char where
, char ch
)
4590 ret
->pos
= basic_string_char_ptr(this);
4591 off
= MSVCP_basic_string_char_Pdif(where
, *ret
);
4593 basic_string_char_insert_chn(this, off
, 1, ch
);
4594 ret
->pos
= basic_string_char_ptr(this)+off
;
4598 /* ?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 */
4599 /* ?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 */
4600 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_insert_iter_null
, 16)
4601 String_iterator_char
* __thiscall
MSVCP_basic_string_char_insert_iter_null(basic_string_char
*this,
4602 String_iterator_char
*ret
, String_iterator_char where
)
4604 return MSVCP_basic_string_char_insert_iter_ch(this, ret
, where
, 0);
4607 /* ?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 */
4608 /* ?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 */
4609 DEFINE_THISCALL_WRAPPER(basic_string_char_insert_iter_beg_end
, 28)
4610 void __thiscall
basic_string_char_insert_iter_beg_end(basic_string_char
*this,
4611 String_iterator_char where
, String_iterator_char beg
, String_iterator_char end
)
4613 MSVCP_basic_string_char_replace_iter_iter(this, where
, where
, beg
, end
);
4616 /* ?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 */
4617 /* ?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 */
4618 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_insert_iter_ptr_ptr
, 20)
4619 void __thiscall
MSVCP_basic_string_char_insert_iter_ptr_ptr(basic_string_char
*this,
4620 String_iterator_char where
, const char *beg
, const char *end
)
4622 MSVCP_basic_string_char_replace_iter_ptr_ptr(this, where
, where
, beg
, end
);
4625 /* ?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 */
4626 /* ?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 */
4627 /* ?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 */
4628 /* ?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 */
4629 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_begin
, 8)
4630 String_iterator_char
* __thiscall
MSVCP_basic_string_char_begin(
4631 basic_string_char
*this, String_iterator_char
*ret
)
4633 TRACE("%p\n", this);
4636 ret
->pos
= basic_string_char_const_ptr(this);
4640 /* ?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 */
4641 /* ?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 */
4642 /* ?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 */
4643 /* ?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 */
4644 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_end
, 8)
4645 String_iterator_char
* __thiscall
MSVCP_basic_string_char_end(
4646 basic_string_char
*this, String_iterator_char
*ret
)
4648 TRACE("%p\n", this);
4651 ret
->pos
= basic_string_char_const_ptr(this)+this->size
;
4655 /* ?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 */
4656 /* ?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 */
4657 /* ?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 */
4658 /* ?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 */
4659 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_rbegin
, 8)
4660 String_reverse_iterator_char
* __thiscall
MSVCP_basic_string_char_rbegin(
4661 basic_string_char
*this, String_reverse_iterator_char
*ret
)
4663 TRACE("%p\n", this);
4665 #if _MSVCP_VER == 80
4669 ret
->pos
= basic_string_char_const_ptr(this)+this->size
;
4673 /* ?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 */
4674 /* ?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 */
4675 /* ?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 */
4676 /* ?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 */
4677 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_rend
, 8)
4678 String_reverse_iterator_char
* __thiscall
MSVCP_basic_string_char_rend(
4679 basic_string_char
*this, String_reverse_iterator_char
*ret
)
4681 TRACE("%p\n", this);
4683 #if _MSVCP_VER == 80
4687 ret
->pos
= basic_string_char_const_ptr(this);
4691 /* ?_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 */
4692 /* ?_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 */
4693 /* ?_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 */
4694 /* ?_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 */
4695 MSVCP_size_t __cdecl
MSVCP_basic_string_wchar_Pdif(String_iterator_wchar i1
, String_iterator_wchar i2
)
4697 TRACE("(%p %p) (%p %p)\n", i1
.bstr
, i1
.pos
, i2
.bstr
, i2
.pos
);
4699 if((!i1
.bstr
&& i1
.pos
) || i1
.bstr
!=i2
.bstr
) {
4700 _invalid_parameter(NULL
, NULL
, NULL
, 0, 0);
4704 return !i1
.pos
? 0 : i1
.pos
-i2
.pos
;
4707 /* ?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 */
4708 /* ?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 */
4709 /* ?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 */
4710 /* ?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 */
4711 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_erase_iter_range
, 24)
4712 String_iterator_wchar
* __thiscall
MSVCP_basic_string_wchar_erase_iter_range(basic_string_wchar
*this,
4713 String_iterator_wchar
*ret
, String_iterator_wchar beg
, String_iterator_wchar end
)
4718 ret
->pos
= basic_string_wchar_ptr(this);
4719 off
= MSVCP_basic_string_wchar_Pdif(beg
, *ret
);
4721 MSVCP_basic_string_wchar_erase(this, off
, MSVCP_basic_string_wchar_Pdif(end
, beg
));
4724 ret
->pos
= basic_string_wchar_ptr(this)+off
;
4728 /* ?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 */
4729 /* ?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 */
4730 /* ?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 */
4731 /* ?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 */
4732 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_erase_iter
, 16)
4733 String_iterator_wchar
* __thiscall
MSVCP_basic_string_wchar_erase_iter(basic_string_wchar
*this,
4734 String_iterator_wchar
*ret
, String_iterator_wchar pos
)
4739 ret
->pos
= basic_string_wchar_ptr(this);
4740 off
= MSVCP_basic_string_wchar_Pdif(pos
, *ret
);
4742 MSVCP_basic_string_wchar_erase(this, off
, 1);
4745 ret
->pos
= basic_string_wchar_ptr(this)+off
;
4749 /* ?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 */
4750 /* ?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 */
4751 /* ?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 */
4752 /* ?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 */
4753 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_iter
, 20)
4754 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_assign_iter(basic_string_wchar
*this,
4755 String_iterator_wchar beg
, String_iterator_wchar end
)
4757 return MSVCP_basic_string_wchar_assign_ptr_ptr(this, beg
.pos
, end
.pos
);
4760 /* ??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 */
4761 /* ??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 */
4762 /* ??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 */
4763 /* ??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 */
4764 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_iter
, 20)
4765 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_iter(basic_string_wchar
*this,
4766 String_iterator_wchar beg
, String_iterator_wchar end
)
4768 return MSVCP_basic_string_wchar_ctor_cstr_len(this, beg
.pos
, end
.pos
-beg
.pos
);
4771 /* ?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 */
4772 /* ?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 */
4773 /* ?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 */
4774 /* ?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 */
4775 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_iter
, 20)
4776 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_append_iter(
4777 basic_string_wchar
*this, String_iterator_wchar beg
, String_iterator_wchar end
)
4779 return MSVCP_basic_string_wchar_append_cstr_len(this, beg
.pos
, end
.pos
-beg
.pos
);
4782 /* ?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 */
4783 /* ?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 */
4784 /* ?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 */
4785 /* ?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 */
4786 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_replace_iter_iter
, 36)
4787 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_replace_iter_iter(basic_string_wchar
*this,
4788 String_iterator_wchar beg
, String_iterator_wchar end
,
4789 String_iterator_wchar res_beg
, String_iterator_wchar res_end
)
4791 String_iterator_wchar begin
= { this, basic_string_wchar_ptr(this) };
4792 return basic_string_wchar_replace_cstr_len(this,
4793 MSVCP_basic_string_wchar_Pdif(beg
, begin
), MSVCP_basic_string_wchar_Pdif(end
, beg
),
4794 res_beg
.pos
, MSVCP_basic_string_wchar_Pdif(res_end
, res_beg
));
4797 /* ?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 */
4798 /* ?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 */
4799 /* ?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 */
4800 /* ?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 */
4801 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_replace_iter_bstr
, 24)
4802 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_replace_iter_bstr(basic_string_wchar
*this,
4803 String_iterator_wchar beg
, String_iterator_wchar end
, const basic_string_wchar
*str
)
4805 String_iterator_wchar begin
= { this, basic_string_wchar_ptr(this) };
4806 return basic_string_wchar_replace(this, MSVCP_basic_string_wchar_Pdif(beg
, begin
),
4807 MSVCP_basic_string_wchar_Pdif(end
, beg
), str
);
4810 /* ?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 */
4811 /* ?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 */
4812 /* ?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 */
4813 /* ?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 */
4814 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_replace_iter_ch
, 28)
4815 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_replace_iter_ch(basic_string_wchar
*this,
4816 String_iterator_wchar beg
, String_iterator_wchar end
, MSVCP_size_t count
, wchar_t ch
)
4818 String_iterator_wchar begin
= { this, basic_string_wchar_ptr(this) };
4819 return basic_string_wchar_replace_ch(this, MSVCP_basic_string_wchar_Pdif(beg
, begin
),
4820 MSVCP_basic_string_wchar_Pdif(end
, beg
), count
, ch
);
4823 /* ?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 */
4824 /* ?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 */
4825 /* ?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 */
4826 /* ?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 */
4827 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_replace_iter_ptr_ptr
, 28)
4828 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_replace_iter_ptr_ptr(basic_string_wchar
*this,
4829 String_iterator_wchar beg
, String_iterator_wchar end
,
4830 const wchar_t *res_beg
, const wchar_t *res_end
)
4832 String_iterator_wchar begin
= { this, basic_string_wchar_ptr(this) };
4833 return basic_string_wchar_replace_cstr_len(this, MSVCP_basic_string_wchar_Pdif(beg
, begin
),
4834 MSVCP_basic_string_wchar_Pdif(end
, beg
), res_beg
, res_end
-res_beg
);
4837 /* ?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 */
4838 /* ?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 */
4839 /* ?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 */
4840 /* ?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 */
4841 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_replace_iter_cstr
, 24)
4842 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_replace_iter_cstr(basic_string_wchar
*this,
4843 String_iterator_wchar beg
, String_iterator_wchar end
, const wchar_t *str
)
4845 String_iterator_wchar begin
= { this, basic_string_wchar_ptr(this) };
4846 return basic_string_wchar_replace_cstr(this, MSVCP_basic_string_wchar_Pdif(beg
, begin
),
4847 MSVCP_basic_string_wchar_Pdif(end
, beg
), str
);
4850 /* ?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 */
4851 /* ?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 */
4852 /* ?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 */
4853 /* ?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 */
4854 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_replace_iter_cstr_len
, 28)
4855 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_replace_iter_cstr_len(basic_string_wchar
*this,
4856 String_iterator_wchar beg
, String_iterator_wchar end
, const wchar_t *str
, MSVCP_size_t len
)
4858 String_iterator_wchar begin
= { this, basic_string_wchar_ptr(this) };
4859 return basic_string_wchar_replace_cstr_len(this, MSVCP_basic_string_wchar_Pdif(beg
, begin
),
4860 MSVCP_basic_string_wchar_Pdif(end
, beg
), str
, len
);
4863 /* ?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 */
4864 /* ?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 */
4865 /* ?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 */
4866 /* ?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 */
4867 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_insert_iter_chn
, 20)
4868 void __thiscall
MSVCP_basic_string_wchar_insert_iter_chn(basic_string_wchar
*this,
4869 String_iterator_wchar where
, MSVCP_size_t count
, wchar_t ch
)
4871 String_iterator_wchar iter
= { this, basic_string_wchar_ptr(this) };
4872 MSVCP_size_t off
= MSVCP_basic_string_wchar_Pdif(where
, iter
);
4874 basic_string_wchar_insert_chn(this, off
, count
, ch
);
4877 /* ?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 */
4878 /* ?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 */
4879 /* ?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 */
4880 /* ?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 */
4881 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_insert_iter_ch
, 20)
4882 String_iterator_wchar
* __thiscall
MSVCP_basic_string_wchar_insert_iter_ch(basic_string_wchar
*this,
4883 String_iterator_wchar
*ret
, String_iterator_wchar where
, wchar_t ch
)
4888 ret
->pos
= basic_string_wchar_ptr(this);
4889 off
= MSVCP_basic_string_wchar_Pdif(where
, *ret
);
4891 basic_string_wchar_insert_chn(this, off
, 1, ch
);
4892 ret
->pos
= basic_string_wchar_ptr(this)+off
;
4896 /* ?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 */
4897 /* ?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 */
4898 /* ?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 */
4899 /* ?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 */
4900 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_insert_iter_null
, 16)
4901 String_iterator_wchar
* __thiscall
MSVCP_basic_string_wchar_insert_iter_null(basic_string_wchar
*this,
4902 String_iterator_wchar
*ret
, String_iterator_wchar where
)
4904 return MSVCP_basic_string_wchar_insert_iter_ch(this, ret
, where
, 0);
4907 /* ?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 */
4908 /* ?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 */
4909 /* ?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 */
4910 /* ?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 */
4911 DEFINE_THISCALL_WRAPPER(basic_string_wchar_insert_iter_beg_end
, 28)
4912 void __thiscall
basic_string_wchar_insert_iter_beg_end(basic_string_wchar
*this,
4913 String_iterator_wchar where
, String_iterator_wchar beg
, String_iterator_wchar end
)
4915 MSVCP_basic_string_wchar_replace_iter_iter(this, where
, where
, beg
, end
);
4918 /* ?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 */
4919 /* ?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 */
4920 /* ?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 */
4921 /* ?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 */
4922 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_insert_iter_ptr_ptr
, 20)
4923 void __thiscall
MSVCP_basic_string_wchar_insert_iter_ptr_ptr(basic_string_wchar
*this,
4924 String_iterator_wchar where
, const wchar_t *beg
, const wchar_t *end
)
4926 MSVCP_basic_string_wchar_replace_iter_ptr_ptr(this, where
, where
, beg
, end
);
4929 /* ?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 */
4930 /* ?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 */
4931 /* ?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 */
4932 /* ?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 */
4933 /* ?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 */
4934 /* ?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 */
4935 /* ?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 */
4936 /* ?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 */
4937 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_begin
, 8)
4938 String_iterator_wchar
* __thiscall
MSVCP_basic_string_wchar_begin(
4939 basic_string_wchar
*this, String_iterator_wchar
*ret
)
4941 TRACE("%p\n", this);
4944 ret
->pos
= basic_string_wchar_const_ptr(this);
4948 /* ?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 */
4949 /* ?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 */
4950 /* ?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 */
4951 /* ?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 */
4952 /* ?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 */
4953 /* ?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 */
4954 /* ?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 */
4955 /* ?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 */
4956 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_end
, 8)
4957 String_iterator_wchar
* __thiscall
MSVCP_basic_string_wchar_end(
4958 basic_string_wchar
*this, String_iterator_wchar
*ret
)
4960 TRACE("%p\n", this);
4963 ret
->pos
= basic_string_wchar_const_ptr(this)+this->size
;
4967 /* ?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 */
4968 /* ?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 */
4969 /* ?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 */
4970 /* ?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 */
4971 /* ?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 */
4972 /* ?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 */
4973 /* ?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 */
4974 /* ?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 */
4975 /* ?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 */
4976 /* ?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 */
4977 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_rbegin
, 8)
4978 String_reverse_iterator_wchar
* __thiscall
MSVCP_basic_string_wchar_rbegin(
4979 basic_string_wchar
*this, String_reverse_iterator_wchar
*ret
)
4981 TRACE("%p\n", this);
4983 #if _MSVCP_VER == 80
4987 ret
->pos
= basic_string_wchar_const_ptr(this)+this->size
;
4991 /* ?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 */
4992 /* ?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 */
4993 /* ?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 */
4994 /* ?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 */
4995 /* ?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 */
4996 /* ?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 */
4997 /* ?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 */
4998 /* ?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 */
4999 /* ?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 */
5000 /* ?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 */
5001 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_rend
, 8)
5002 String_reverse_iterator_wchar
* __thiscall
MSVCP_basic_string_wchar_rend(
5003 basic_string_wchar
*this, String_reverse_iterator_wchar
*ret
)
5005 TRACE("%p\n", this);
5007 #if _MSVCP_VER == 80
5011 ret
->pos
= basic_string_wchar_const_ptr(this);
5015 #endif /* _MSVCP_VER < 80 */