2 * Copyright 2010 Piotr Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
29 #include "wine/debug.h"
30 WINE_DEFAULT_DEBUG_CHANNEL(msvcp90
);
32 /* _String_iterator<char> and _String_const_iterator<char> class */
34 basic_string_char
*bstr
;
36 } String_iterator_char
;
37 typedef String_iterator_char String_reverse_iterator_char
;
40 basic_string_wchar
*bstr
;
42 } String_iterator_wchar
;
43 typedef String_iterator_wchar String_reverse_iterator_wchar
;
45 /* size_t_noverify structure */
50 /* char_traits<char> */
51 /* ?assign@?$char_traits@D@std@@SAXAADABD@Z */
52 /* ?assign@?$char_traits@D@std@@SAXAEADAEBD@Z */
53 void CDECL
MSVCP_char_traits_char_assign(char *ch
, const char *assign
)
58 /* ?eq@?$char_traits@D@std@@SA_NABD0@Z */
59 /* ?eq@?$char_traits@D@std@@SA_NAEBD0@Z */
60 MSVCP_bool CDECL
MSVCP_char_traits_char_eq(const char *ch1
, const char *ch2
)
65 /* ?lt@?$char_traits@D@std@@SA_NABD0@Z */
66 /* ?lt@?$char_traits@D@std@@SA_NAEBD0@Z */
67 MSVCP_bool CDECL
MSVCP_char_traits_lt(const char *ch1
, const char *ch2
)
72 /* ?compare@?$char_traits@D@std@@SAHPBD0I@Z */
73 /* ?compare@?$char_traits@D@std@@SAHPEBD0_K@Z */
74 int CDECL
MSVCP_char_traits_char_compare(
75 const char *s1
, const char *s2
, MSVCP_size_t count
)
77 int ret
= memcmp(s1
, s2
, count
);
78 return (ret
>0 ? 1 : (ret
<0 ? -1 : 0));
81 /* ?length@?$char_traits@D@std@@SAIPBD@Z */
82 /* ?length@?$char_traits@D@std@@SA_KPEBD@Z */
83 MSVCP_size_t CDECL
MSVCP_char_traits_char_length(const char *str
)
88 /* ?_Copy_s@?$char_traits@D@std@@SAPADPADIPBDI@Z */
89 /* ?_Copy_s@?$char_traits@D@std@@SAPEADPEAD_KPEBD1@Z */
90 char* CDECL
MSVCP_char_traits_char__Copy_s(char *dest
,
91 MSVCP_size_t size
, const char *src
, MSVCP_size_t count
)
93 if(!dest
|| !src
|| size
<count
) {
96 _invalid_parameter(NULL
, NULL
, NULL
, 0, 0);
100 return memcpy(dest
, src
, count
);
103 /* ?copy@?$char_traits@D@std@@SAPADPADPBDI@Z */
104 /* ?copy@?$char_traits@D@std@@SAPEADPEADPEBD_K@Z */
105 char* CDECL
MSVCP_char_traits_char_copy(
106 char *dest
, const char *src
, MSVCP_size_t count
)
108 return MSVCP_char_traits_char__Copy_s(dest
, count
, src
, count
);
111 /* ?find@?$char_traits@D@std@@SAPBDPBDIABD@Z */
112 /* ?find@?$char_traits@D@std@@SAPEBDPEBD_KAEBD@Z */
113 const char * CDECL
MSVCP_char_traits_char_find(
114 const char *str
, MSVCP_size_t range
, const char *c
)
116 return memchr(str
, *c
, range
);
119 /* ?_Move_s@?$char_traits@D@std@@SAPADPADIPBDI@Z */
120 /* ?_Move_s@?$char_traits@D@std@@SAPEADPEAD_KPEBD1@Z */
121 char* CDECL
MSVCP_char_traits_char__Move_s(char *dest
,
122 MSVCP_size_t size
, const char *src
, MSVCP_size_t count
)
124 if(!dest
|| !src
|| size
<count
) {
127 _invalid_parameter(NULL
, NULL
, NULL
, 0, 0);
131 return memmove(dest
, src
, count
);
134 /* ?move@?$char_traits@D@std@@SAPADPADPBDI@Z */
135 /* ?move@?$char_traits@D@std@@SAPEADPEADPEBD_K@Z */
136 char* CDECL
MSVCP_char_traits_char_move(
137 char *dest
, const char *src
, MSVCP_size_t count
)
139 return MSVCP_char_traits_char__Move_s(dest
, count
, src
, count
);
142 /* ?assign@?$char_traits@D@std@@SAPADPADID@Z */
143 /* ?assign@?$char_traits@D@std@@SAPEADPEAD_KD@Z */
144 char* CDECL
MSVCP_char_traits_char_assignn(char *str
, MSVCP_size_t num
, char c
)
146 return memset(str
, c
, num
);
149 /* ?to_char_type@?$char_traits@D@std@@SADABH@Z */
150 /* ?to_char_type@?$char_traits@D@std@@SADAEBH@Z */
151 char CDECL
MSVCP_char_traits_char_to_char_type(const int *i
)
156 /* ?to_int_type@?$char_traits@D@std@@SAHABD@Z */
157 /* ?to_int_type@?$char_traits@D@std@@SAHAEBD@Z */
158 int CDECL
MSVCP_char_traits_char_to_int_type(const char *ch
)
163 /* ?eq_int_type@?$char_traits@D@std@@SA_NABH0@Z */
164 /* ?eq_int_type@?$char_traits@D@std@@SA_NAEBH0@Z */
165 MSVCP_bool CDECL
MSVCP_char_traits_char_eq_int_type(const int *i1
, const int *i2
)
170 /* ?eof@?$char_traits@D@std@@SAHXZ */
171 int CDECL
MSVCP_char_traits_char_eof(void)
176 /* ?not_eof@?$char_traits@D@std@@SAHABH@Z */
177 /* ?not_eof@?$char_traits@D@std@@SAHAEBH@Z */
178 int CDECL
MSVCP_char_traits_char_not_eof(int *in
)
180 return (*in
==EOF
? !EOF
: *in
);
184 /* char_traits<wchar_t> */
185 /* ?assign@?$char_traits@_W@std@@SAXAA_WAB_W@Z */
186 /* ?assign@?$char_traits@_W@std@@SAXAEA_WAEB_W@Z */
187 void CDECL
MSVCP_char_traits_wchar_assign(wchar_t *ch
,
188 const wchar_t *assign
)
193 /* ?eq@?$char_traits@_W@std@@SA_NAB_W0@Z */
194 /* ?eq@?$char_traits@_W@std@@SA_NAEB_W0@Z */
195 MSVCP_bool CDECL
MSVCP_char_traits_wchar_eq(wchar_t *ch1
, wchar_t *ch2
)
200 /* ?lt@?$char_traits@_W@std@@SA_NAB_W0@Z */
201 /* ?lt@?$char_traits@_W@std@@SA_NAEB_W0@Z */
202 MSVCP_bool CDECL
MSVCP_char_traits_wchar_lt(const wchar_t *ch1
,
208 /* ?compare@?$char_traits@_W@std@@SAHPB_W0I@Z */
209 /* ?compare@?$char_traits@_W@std@@SAHPEB_W0_K@Z */
210 int CDECL
MSVCP_char_traits_wchar_compare(const wchar_t *s1
,
211 const wchar_t *s2
, MSVCP_size_t count
)
213 int ret
= memcmp(s1
, s2
, sizeof(wchar_t[count
]));
214 return (ret
>0 ? 1 : (ret
<0 ? -1 : 0));
217 /* ?length@?$char_traits@_W@std@@SAIPB_W@Z */
218 /* ?length@?$char_traits@_W@std@@SA_KPEB_W@Z */
219 MSVCP_size_t CDECL
MSVCP_char_traits_wchar_length(const wchar_t *str
)
221 return wcslen((WCHAR
*)str
);
224 /* ?_Copy_s@?$char_traits@_W@std@@SAPA_WPA_WIPB_WI@Z */
225 /* ?_Copy_s@?$char_traits@_W@std@@SAPEA_WPEA_W_KPEB_W1@Z */
226 wchar_t* CDECL
MSVCP_char_traits_wchar__Copy_s(wchar_t *dest
,
227 MSVCP_size_t size
, const wchar_t *src
, MSVCP_size_t count
)
229 if(!dest
|| !src
|| size
<count
) {
232 _invalid_parameter(NULL
, NULL
, NULL
, 0, 0);
236 return memcpy(dest
, src
, sizeof(wchar_t[count
]));
239 /* ?copy@?$char_traits@_W@std@@SAPA_WPA_WPB_WI@Z */
240 /* ?copy@?$char_traits@_W@std@@SAPEA_WPEA_WPEB_W_K@Z */
241 wchar_t* CDECL
MSVCP_char_traits_wchar_copy(wchar_t *dest
,
242 const wchar_t *src
, MSVCP_size_t count
)
244 return MSVCP_char_traits_wchar__Copy_s(dest
, count
, src
, count
);
247 /* ?find@?$char_traits@_W@std@@SAPB_WPB_WIAB_W@Z */
248 /* ?find@?$char_traits@_W@std@@SAPEB_WPEB_W_KAEB_W@Z */
249 const wchar_t* CDECL
MSVCP_char_traits_wchar_find(
250 const wchar_t *str
, MSVCP_size_t range
, const wchar_t *c
)
254 for(i
=0; i
<range
; i
++)
261 /* ?_Move_s@?$char_traits@_W@std@@SAPA_WPA_WIPB_WI@Z */
262 /* ?_Move_s@?$char_traits@_W@std@@SAPEA_WPEA_W_KPEB_W1@Z */
263 wchar_t* CDECL
MSVCP_char_traits_wchar__Move_s(wchar_t *dest
,
264 MSVCP_size_t size
, const wchar_t *src
, MSVCP_size_t count
)
266 if(!dest
|| !src
|| size
<count
) {
269 _invalid_parameter(NULL
, NULL
, NULL
, 0, 0);
273 return memmove(dest
, src
, sizeof(WCHAR
[count
]));
276 /* ?move@?$char_traits@_W@std@@SAPA_WPA_WPB_WI@Z */
277 /* ?move@?$char_traits@_W@std@@SAPEA_WPEA_WPEB_W_K@Z */
278 wchar_t* CDECL
MSVCP_char_traits_wchar_move(wchar_t *dest
,
279 const wchar_t *src
, MSVCP_size_t count
)
281 return MSVCP_char_traits_wchar__Move_s(dest
, count
, src
, count
);
284 /* ?assign@?$char_traits@_W@std@@SAPA_WPA_WI_W@Z */
285 /* ?assign@?$char_traits@_W@std@@SAPEA_WPEA_W_K_W@Z */
286 wchar_t* CDECL
MSVCP_char_traits_wchar_assignn(wchar_t *str
,
287 MSVCP_size_t num
, wchar_t c
)
297 /* ?to_char_type@?$char_traits@_W@std@@SA_WABG@Z */
298 /* ?to_char_type@?$char_traits@_W@std@@SA_WAEBG@Z */
299 wchar_t CDECL
MSVCP_char_traits_wchar_to_char_type(const unsigned short *i
)
304 /* ?to_int_type@?$char_traits@_W@std@@SAGAB_W@Z */
305 /* ?to_int_type@?$char_traits@_W@std@@SAGAEB_W@Z */
306 unsigned short CDECL
MSVCP_char_traits_wchar_to_int_type(const wchar_t *ch
)
311 /* ?eq_int_type@?$char_traits@_W@std@@SA_NABG0@Z */
312 /* ?eq_int_type@?$char_traits@_W@std@@SA_NAEBG0@Z */
313 MSVCP_bool CDECL
MSVCP_char_traits_wchar_eq_int_tpe(const unsigned short *i1
,
314 const unsigned short *i2
)
319 /* ?eof@?$char_traits@_W@std@@SAGXZ */
320 unsigned short CDECL
MSVCP_char_traits_wchar_eof(void)
325 /* ?not_eof@?$char_traits@_W@std@@SAGABG@Z */
326 /* ?not_eof@?$char_traits@_W@std@@SAGAEBG@Z */
327 unsigned short CDECL
MSVCP_char_traits_wchar_not_eof(const unsigned short *in
)
329 return (*in
==WEOF
? !WEOF
: *in
);
333 /* char_traits<unsigned short> */
334 /* ?assign@?$char_traits@G@std@@SAXAAGABG@Z */
335 /* ?assign@?$char_traits@G@std@@SAXAEAGAEBG@Z */
336 void CDECL
MSVCP_char_traits_short_assign(unsigned short *ch
,
337 const unsigned short *assign
)
342 /* ?eq@?$char_traits@G@std@@SA_NABG0@Z */
343 /* ?eq@?$char_traits@G@std@@SA_NAEBG0@Z */
344 MSVCP_bool CDECL
MSVCP_char_traits_short_eq(const unsigned short *ch1
,
345 const unsigned short *ch2
)
350 /* ?lt@?$char_traits@G@std@@SA_NABG0@Z */
351 /* ?lt@?$char_traits@G@std@@SA_NAEBG0@Z */
352 MSVCP_bool CDECL
MSVCP_char_traits_short_lt(const unsigned short *ch1
,
353 const unsigned short *ch2
)
358 /* ?compare@?$char_traits@G@std@@SAHPBG0I@Z */
359 /* ?compare@?$char_traits@G@std@@SAHPEBG0_K@Z */
360 int CDECL
MSVCP_char_traits_short_compare(const unsigned short *s1
,
361 const unsigned short *s2
, MSVCP_size_t count
)
365 for(i
=0; i
<count
; i
++)
367 return (s1
[i
] < s2
[i
] ? -1 : 1);
372 /* ?length@?$char_traits@G@std@@SAIPBG@Z */
373 /* ?length@?$char_traits@G@std@@SA_KPEBG@Z */
374 MSVCP_size_t CDECL
MSVCP_char_traits_short_length(const unsigned short *str
)
378 for(len
=0; str
[len
]; len
++);
383 /* ?_Copy_s@?$char_traits@G@std@@SAPAGPAGIPBGI@Z */
384 /* ?_Copy_s@?$char_traits@G@std@@SAPEAGPEAG_KPEBG1@Z */
385 unsigned short * CDECL
MSVCP_char_traits_short__Copy_s(unsigned short *dest
,
386 MSVCP_size_t size
, const unsigned short *src
, MSVCP_size_t count
)
389 _invalid_parameter(NULL
, NULL
, NULL
, 0, 0);
393 return memcpy(dest
, src
, sizeof(unsigned short[count
]));
396 /* ?copy@?$char_traits@G@std@@SAPAGPAGPBGI@Z */
397 /* ?copy@?$char_traits@G@std@@SAPEAGPEAGPEBG_K@Z */
398 unsigned short* CDECL
MSVCP_char_traits_short_copy(unsigned short *dest
,
399 const unsigned short *src
, MSVCP_size_t count
)
401 return MSVCP_char_traits_short__Copy_s(dest
, count
, src
, count
);
404 /* ?find@?$char_traits@G@std@@SAPBGPBGIABG@Z */
405 /* ?find@?$char_traits@G@std@@SAPEBGPEBG_KAEBG@Z */
406 const unsigned short* CDECL
MSVCP_char_traits_short_find(
407 const unsigned short *str
, MSVCP_size_t range
, const unsigned short *c
)
411 for(i
=0; i
<range
; i
++)
418 /* ?_Move_s@?$char_traits@G@std@@SAPAGPAGIPBGI@Z */
419 /* ?_Move_s@?$char_traits@G@std@@SAPEAGPEAG_KPEBG1@Z */
420 unsigned short* CDECL
MSVCP_char_traits_short__Move_s(unsigned short *dest
,
421 MSVCP_size_t size
, const unsigned short *src
, MSVCP_size_t count
)
424 _invalid_parameter(NULL
, NULL
, NULL
, 0, 0);
428 return memmove(dest
, src
, sizeof(unsigned short[count
]));
431 /* ?move@?$char_traits@G@std@@SAPAGPAGPBGI@Z */
432 /* ?move@?$char_traits@G@std@@SAPEAGPEAGPEBG_K@Z */
433 unsigned short* CDECL
MSVCP_char_traits_short_move(unsigned short *dest
,
434 const unsigned short *src
, MSVCP_size_t count
)
436 return MSVCP_char_traits_short__Move_s(dest
, count
, src
, count
);
439 /* ?assign@?$char_traits@G@std@@SAPAGPAGIG@Z */
440 /* ?assign@?$char_traits@G@std@@SAPEAGPEAG_KG@Z */
441 unsigned short* CDECL
MSVCP_char_traits_short_assignn(unsigned short *str
,
442 MSVCP_size_t num
, unsigned short c
)
452 /* ?to_char_type@?$char_traits@G@std@@SAGABG@Z */
453 /* ?to_char_type@?$char_traits@G@std@@SAGAEBG@Z */
454 unsigned short CDECL
MSVCP_char_traits_short_to_char_type(const unsigned short *i
)
459 /* ?to_int_type@?$char_traits@G@std@@SAGABG@Z */
460 /* ?to_int_type@?$char_traits@G@std@@SAGAEBG@Z */
461 unsigned short CDECL
MSVCP_char_traits_short_to_int_type(const unsigned short *ch
)
466 /* ?eq_int_type@?$char_traits@G@std@@SA_NABG0@Z */
467 /* ?eq_int_type@?$char_traits@G@std@@SA_NAEBG0@Z */
468 MSVCP_bool CDECL
MSVCP_char_traits_short_eq_int_type(unsigned short *i1
,
474 /* ?eof@?$char_traits@G@std@@SAGXZ */
475 unsigned short CDECL
MSVCP_char_traits_short_eof(void)
480 /* ?not_eof@?$char_traits@G@std@@SAGABG@Z */
481 /* ?not_eof@?$char_traits@G@std@@SAGAEBG@Z */
482 unsigned short CDECL
MSVCP_char_traits_short_not_eof(const unsigned short *in
)
484 return (*in
==(unsigned short)-1 ? 0 : *in
);
489 /* ?_Xlen@_String_base@std@@SAXXZ */
490 void CDECL
MSVCP__String_base_Xlen(void)
492 static const char msg
[] = "string too long";
495 throw_exception(EXCEPTION_LENGTH_ERROR
, msg
);
498 /* ?_Xran@_String_base@std@@SAXXZ */
499 void CDECL
MSVCP__String_base_Xran(void)
501 static const char msg
[] = "invalid string position";
504 throw_exception(EXCEPTION_OUT_OF_RANGE
, msg
);
507 /* ?_Xinvarg@_String_base@std@@SAXXZ */
508 void CDECL
MSVCP__String_base_Xinvarg(void)
510 static const char msg
[] = "invalid string argument";
513 throw_exception(EXCEPTION_INVALID_ARGUMENT
, msg
);
517 /* basic_string<char, char_traits<char>, allocator<char>> */
518 /* ?npos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@2IB */
519 /* ?npos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@2_KB */
520 const MSVCP_size_t MSVCP_basic_string_char_npos
= -1;
522 /* ?_Myptr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEPADXZ */
523 /* ?_Myptr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAPEADXZ */
524 DEFINE_THISCALL_WRAPPER(basic_string_char_ptr
, 4)
525 char* __thiscall
basic_string_char_ptr(basic_string_char
*this)
527 if(this->res
== BUF_SIZE_CHAR
-1)
528 return this->data
.buf
;
529 return this->data
.ptr
;
532 /* ?_Myptr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IBEPBDXZ */
533 /* ?_Myptr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEBAPEBDXZ */
534 DEFINE_THISCALL_WRAPPER(basic_string_char_const_ptr
, 4)
535 const char* __thiscall
basic_string_char_const_ptr(const basic_string_char
*this)
537 if(this->res
== BUF_SIZE_CHAR
-1)
538 return this->data
.buf
;
539 return this->data
.ptr
;
542 /* ?_Eos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXI@Z */
543 /* ?_Eos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAX_K@Z */
544 DEFINE_THISCALL_WRAPPER(basic_string_char_eos
, 8)
545 void __thiscall
basic_string_char_eos(basic_string_char
*this, MSVCP_size_t len
)
547 static const char nullbyte
= '\0';
550 MSVCP_char_traits_char_assign(basic_string_char_ptr(this)+len
, &nullbyte
);
553 /* ?_Inside@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAE_NPBD@Z */
554 /* ?_Inside@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAA_NPEBD@Z */
555 DEFINE_THISCALL_WRAPPER(basic_string_char_inside
, 8)
556 MSVCP_bool __thiscall
basic_string_char_inside(
557 basic_string_char
*this, const char *ptr
)
559 char *cstr
= basic_string_char_ptr(this);
561 return (ptr
<cstr
|| ptr
>=cstr
+this->size
) ? FALSE
: TRUE
;
564 /* ?_Tidy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEX_NI@Z */
565 /* ?_Tidy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAX_N_K@Z */
566 DEFINE_THISCALL_WRAPPER(basic_string_char_tidy
, 12)
567 void __thiscall
basic_string_char_tidy(basic_string_char
*this,
568 MSVCP_bool built
, MSVCP_size_t new_size
)
570 if(built
&& BUF_SIZE_CHAR
<=this->res
) {
571 char *ptr
= this->data
.ptr
;
574 MSVCP_char_traits_char__Copy_s(this->data
.buf
, BUF_SIZE_CHAR
, ptr
, new_size
);
575 MSVCP_allocator_char_deallocate(this->allocator
, ptr
, this->res
+1);
578 this->res
= BUF_SIZE_CHAR
-1;
579 basic_string_char_eos(this, new_size
);
582 /* Exported only from msvcp60/70 */
583 /* ?_Tidy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEX_N@Z */
584 /* ?_Tidy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAX_N@Z */
585 DEFINE_THISCALL_WRAPPER(basic_string_char_tidy_built
, 8)
586 void __thiscall
basic_string_char_tidy_built(basic_string_char
*this, MSVCP_bool built
)
588 basic_string_char_tidy(this, built
, 0);
591 /* ?_Grow@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAE_NI_N@Z */
592 /* ?_Grow@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAA_N_K_N@Z */
593 DEFINE_THISCALL_WRAPPER(basic_string_char_grow
, 12)
594 MSVCP_bool __thiscall
basic_string_char_grow(
595 basic_string_char
*this, MSVCP_size_t new_size
, MSVCP_bool trim
)
597 if(this->res
< new_size
) {
598 MSVCP_size_t new_res
= new_size
, len
= this->size
;
603 if(new_res
/3 < this->res
/2)
604 new_res
= this->res
+ this->res
/2;
606 ptr
= MSVCP_allocator_char_allocate(this->allocator
, new_res
);
608 ptr
= MSVCP_allocator_char_allocate(this->allocator
, new_size
+1);
612 ERR("Out of memory\n");
613 basic_string_char_tidy(this, TRUE
, 0);
617 MSVCP_char_traits_char__Copy_s(ptr
, new_size
,
618 basic_string_char_ptr(this), this->size
);
619 basic_string_char_tidy(this, TRUE
, 0);
620 this->data
.ptr
= ptr
;
621 this->res
= new_size
;
622 basic_string_char_eos(this, len
);
623 } else if(trim
&& new_size
< BUF_SIZE_CHAR
)
624 basic_string_char_tidy(this, TRUE
,
625 new_size
<this->size
? new_size
: this->size
);
626 else if(new_size
== 0)
627 basic_string_char_eos(this, 0);
632 /* ?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@II@Z */
633 /* ?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0@Z */
634 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_erase
, 12)
635 basic_string_char
* __thiscall
MSVCP_basic_string_char_erase(
636 basic_string_char
*this, MSVCP_size_t pos
, MSVCP_size_t len
)
638 TRACE("%p %lu %lu\n", this, pos
, len
);
641 MSVCP__String_base_Xran();
643 if(len
> this->size
-pos
)
644 len
= this->size
-pos
;
647 MSVCP_char_traits_char__Move_s(basic_string_char_ptr(this)+pos
,
648 this->res
-pos
, basic_string_char_ptr(this)+pos
+len
,
650 basic_string_char_eos(this, this->size
-len
);
656 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@II@Z */
657 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@AEBV12@_K1@Z */
658 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign_substr
, 16)
659 basic_string_char
* __thiscall
MSVCP_basic_string_char_assign_substr(
660 basic_string_char
*this, const basic_string_char
*assign
,
661 MSVCP_size_t pos
, MSVCP_size_t len
)
663 TRACE("%p %p %lu %lu\n", this, assign
, pos
, len
);
665 if(assign
->size
< pos
)
666 MSVCP__String_base_Xran();
668 if(len
> assign
->size
-pos
)
669 len
= assign
->size
-pos
;
672 MSVCP_basic_string_char_erase(this, pos
+len
, MSVCP_basic_string_char_npos
);
673 MSVCP_basic_string_char_erase(this, 0, pos
);
674 } else if(basic_string_char_grow(this, len
, FALSE
)) {
675 MSVCP_char_traits_char__Copy_s(basic_string_char_ptr(this),
676 this->res
, basic_string_char_const_ptr(assign
)+pos
, len
);
677 basic_string_char_eos(this, len
);
683 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@@Z */
684 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@AEBV12@@Z */
685 /* ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z */
686 /* ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV01@AEBV01@@Z */
687 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign
, 8)
688 basic_string_char
* __thiscall
MSVCP_basic_string_char_assign(
689 basic_string_char
*this, const basic_string_char
*assign
)
691 return MSVCP_basic_string_char_assign_substr(this, assign
,
692 0, MSVCP_basic_string_char_npos
);
695 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBDI@Z */
696 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@PEBD_K@Z */
697 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign_cstr_len
, 12)
698 basic_string_char
* __thiscall
MSVCP_basic_string_char_assign_cstr_len(
699 basic_string_char
*this, const char *str
, MSVCP_size_t len
)
701 TRACE("%p %s %lu\n", this, debugstr_a(str
), len
);
703 if(basic_string_char_inside(this, str
))
704 return MSVCP_basic_string_char_assign_substr(this, this,
705 str
-basic_string_char_ptr(this), len
);
706 else if(basic_string_char_grow(this, len
, FALSE
)) {
707 MSVCP_char_traits_char__Copy_s(basic_string_char_ptr(this),
708 this->res
, str
, len
);
709 basic_string_char_eos(this, len
);
715 /* ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@D@Z */
716 /* ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV01@D@Z */
717 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign_ch
, 8)
718 basic_string_char
* __thiscall
MSVCP_basic_string_char_assign_ch(
719 basic_string_char
*this, char ch
)
721 return MSVCP_basic_string_char_assign_cstr_len(this, &ch
, 1);
724 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBD@Z */
725 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@PEBD@Z */
726 /* ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@PBD@Z */
727 /* ??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV01@PEBD@Z */
728 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign_cstr
, 8)
729 basic_string_char
* __thiscall
MSVCP_basic_string_char_assign_cstr(
730 basic_string_char
*this, const char *str
)
732 return MSVCP_basic_string_char_assign_cstr_len(this, str
,
733 MSVCP_char_traits_char_length(str
));
736 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ID@Z */
737 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_KD@Z */
738 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assignn
, 12)
739 basic_string_char
* __thiscall
MSVCP_basic_string_char_assignn(
740 basic_string_char
*this, MSVCP_size_t count
, char ch
)
742 TRACE("%p %ld %c\n", this, count
, ch
);
744 basic_string_char_grow(this, count
, FALSE
);
745 MSVCP_char_traits_char_assignn(basic_string_char_ptr(this), count
, ch
);
746 basic_string_char_eos(this, count
);
750 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBD0@Z */
751 /* ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@PEBD0@Z */
752 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign_ptr_ptr
, 12)
753 basic_string_char
* __thiscall
MSVCP_basic_string_char_assign_ptr_ptr(
754 basic_string_char
*this, const char *first
, const char *last
)
756 return MSVCP_basic_string_char_assign_cstr_len(this, first
, last
-first
);
759 /* ?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 */
760 /* ?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 */
761 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_assign_iter
, 20)
762 basic_string_char
* __thiscall
MSVCP_basic_string_char_assign_iter(basic_string_char
*this,
763 String_iterator_char beg
, String_iterator_char end
)
765 return MSVCP_basic_string_char_assign_ptr_ptr(this, beg
.pos
, end
.pos
+1);
768 /* ?_Chassign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEXIID@Z */
769 /* ?_Chassign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IEAAX_K0D@Z */
770 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_Chassign
, 16)
771 void __thiscall
MSVCP_basic_string_char_Chassign(basic_string_char
*this,
772 MSVCP_size_t off
, MSVCP_size_t count
, char ch
)
774 TRACE("%p %lu %lu %c\n", this, off
, count
, ch
);
775 MSVCP_char_traits_char_assignn(basic_string_char_ptr(this)+off
, count
, ch
);
778 /* ?_Copy_s@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPADIII@Z */
779 /* ?_Copy_s@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEAD_K11@Z */
780 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_Copy_s
, 20)
781 MSVCP_size_t __thiscall
MSVCP_basic_string_char_Copy_s(const basic_string_char
*this,
782 char *dest
, MSVCP_size_t size
, MSVCP_size_t off
, MSVCP_size_t count
)
784 TRACE("%p %p %lu %lu %lu\n", this, dest
, size
, off
, count
);
787 MSVCP__String_base_Xran();
789 if(count
> this->size
-off
)
790 count
= this->size
-off
;
792 MSVCP_char_traits_char__Copy_s(dest
, size
,
793 basic_string_char_const_ptr(this)+off
, count
);
797 /* ?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ */
798 /* ?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAPEBDXZ */
799 /* ?data@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ */
800 /* ?data@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAPEBDXZ */
801 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_c_str
, 4)
802 const char* __thiscall
MSVCP_basic_string_char_c_str(basic_string_char
*this)
805 return basic_string_char_const_ptr(this);
808 /* ?capacity@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ */
809 /* ?capacity@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KXZ */
810 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_capacity
, 4)
811 MSVCP_size_t __thiscall
MSVCP_basic_string_char_capacity(basic_string_char
*this)
817 /* ?reserve@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXI@Z */
818 /* ?reserve@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAX_K@Z */
819 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_reserve
, 8)
820 void __thiscall
MSVCP_basic_string_char_reserve(basic_string_char
*this, MSVCP_size_t size
)
824 TRACE("%p %ld\n", this, size
);
830 basic_string_char_grow(this, size
, FALSE
);
831 basic_string_char_eos(this, len
);
834 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ */
835 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@XZ */
836 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor
, 4)
837 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor(basic_string_char
*this)
841 basic_string_char_tidy(this, FALSE
, 0);
845 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z */
846 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@AEBV01@@Z */
847 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_copy_ctor
, 8)
848 basic_string_char
* __thiscall
MSVCP_basic_string_char_copy_ctor(
849 basic_string_char
*this, const basic_string_char
*copy
)
851 TRACE("%p %p\n", this, copy
);
853 basic_string_char_tidy(this, FALSE
, 0);
854 MSVCP_basic_string_char_assign(this, copy
);
858 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z */
859 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@PEBD@Z */
860 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_cstr
, 8)
861 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_cstr(
862 basic_string_char
*this, const char *str
)
864 TRACE("%p %s\n", this, debugstr_a(str
));
866 basic_string_char_tidy(this, FALSE
, 0);
867 MSVCP_basic_string_char_assign_cstr(this, str
);
871 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBDABV?$allocator@D@1@@Z */
872 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@PEBDAEBV?$allocator@D@1@@Z */
873 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_cstr_alloc
, 12)
874 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_cstr_alloc(
875 basic_string_char
*this, const char *str
, const void *alloc
)
877 return MSVCP_basic_string_char_ctor_cstr(this, str
);
880 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBDI@Z */
881 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@PEBD_K@Z */
882 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_cstr_len
, 12)
883 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_cstr_len(
884 basic_string_char
*this, const char *str
, MSVCP_size_t len
)
886 TRACE("%p %s %ld\n", this, str
, len
);
888 basic_string_char_tidy(this, FALSE
, 0);
889 MSVCP_basic_string_char_assign_cstr_len(this, str
, len
);
893 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBDIABV?$allocator@D@1@@Z */
894 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@PEBD_KAEBV?$allocator@D@1@@Z */
895 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_cstr_len_alloc
, 16)
896 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_cstr_len_alloc(
897 basic_string_char
*this, const char *str
, MSVCP_size_t len
, const void *alloc
)
899 return MSVCP_basic_string_char_ctor_cstr_len(this, str
, len
);
902 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@II@Z */
903 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@AEBV01@_K1@Z */
904 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_substr
, 16)
905 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_substr(
906 basic_string_char
*this, const basic_string_char
*assign
,
907 MSVCP_size_t pos
, MSVCP_size_t len
)
909 TRACE("%p %p %lu %lu\n", this, assign
, pos
, len
);
911 basic_string_char_tidy(this, FALSE
, 0);
912 MSVCP_basic_string_char_assign_substr(this, assign
, pos
, len
);
916 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@IIABV?$allocator@D@1@@Z */
917 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@AEBV01@_K1AEBV?$allocator@D@1@@Z */
918 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_substr_alloc
, 20)
919 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_substr_alloc(
920 basic_string_char
*this, const basic_string_char
*assign
,
921 MSVCP_size_t pos
, MSVCP_size_t len
, const void *alloc
)
923 return MSVCP_basic_string_char_ctor_substr(this, assign
, pos
, len
);
926 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV?$allocator@D@1@@Z */
927 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@AEBV?$allocator@D@1@@Z */
928 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_alloc
, 8)
929 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_alloc(
930 basic_string_char
*this, const void *alloc
)
932 TRACE("%p %p\n", this, alloc
);
934 basic_string_char_tidy(this, FALSE
, 0);
938 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ID@Z */
939 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@_KD@Z */
940 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_ch
, 12)
941 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_ch(basic_string_char
*this,
942 MSVCP_size_t count
, char ch
)
944 TRACE("%p %ld %c\n", this, count
, ch
);
946 basic_string_char_tidy(this, FALSE
, 0);
947 MSVCP_basic_string_char_assignn(this, count
, ch
);
951 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@IDABV?$allocator@D@1@@Z */
952 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@_KDAEBV?$allocator@D@1@@Z */
953 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_ch_alloc
, 16)
954 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_ch_alloc(basic_string_char
*this,
955 MSVCP_size_t count
, char ch
, const void *alloc
)
957 return MSVCP_basic_string_char_ctor_ch(this, count
, ch
);
960 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD0@Z */
961 /* ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@PEBD0@Z */
962 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_ptr_ptr
, 12)
963 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_ptr_ptr(basic_string_char
*this,
964 const char *first
, const char *last
)
966 return MSVCP_basic_string_char_ctor_cstr_len(this, first
, last
-first
);
969 /* ??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 */
970 /* ??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 */
971 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_iter
, 20)
972 basic_string_char
* __thiscall
MSVCP_basic_string_char_ctor_iter(basic_string_char
*this,
973 String_iterator_char beg
, String_iterator_char end
)
975 return MSVCP_basic_string_char_ctor_cstr_len(this, beg
.pos
, end
.pos
-beg
.pos
+1);
978 /* ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ */
979 /* ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@XZ */
980 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_dtor
, 4)
981 void __thiscall
MSVCP_basic_string_char_dtor(basic_string_char
*this)
984 basic_string_char_tidy(this, TRUE
, 0);
987 /* ?size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ */
988 /* ?size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KXZ */
989 /* ?length@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ */
990 /* ?length@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KXZ */
991 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_length
, 4)
992 MSVCP_size_t __thiscall
MSVCP_basic_string_char_length(basic_string_char
*this)
998 /* ?max_size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ */
999 /* ?max_size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KXZ */
1000 DEFINE_THISCALL_WRAPPER(basic_string_char_max_size
, 4)
1001 MSVCP_size_t __thiscall
basic_string_char_max_size(const basic_string_char
*this)
1003 TRACE("%p\n", this);
1004 return MSVCP_allocator_char_max_size(this->allocator
)-1;
1007 /* ?empty@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE_NXZ */
1008 /* ?empty@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_NXZ */
1009 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_empty
, 4)
1010 MSVCP_bool __thiscall
MSVCP_basic_string_char_empty(basic_string_char
*this)
1012 TRACE("%p\n", this);
1013 return this->size
== 0;
1016 /* ?swap@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXAAV12@@Z */
1017 /* ?swap@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXAEAV12@@Z */
1018 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_swap
, 8)
1019 void __thiscall
MSVCP_basic_string_char_swap(basic_string_char
*this, basic_string_char
*str
)
1022 char tmp
[sizeof(this->data
)];
1023 const MSVCP_size_t size
= this->size
;
1024 const MSVCP_size_t res
= this->res
;
1026 memcpy(tmp
, this->data
.buf
, sizeof(this->data
));
1027 memcpy(this->data
.buf
, str
->data
.buf
, sizeof(this->data
));
1028 memcpy(str
->data
.buf
, tmp
, sizeof(this->data
));
1030 this->size
= str
->size
;
1031 this->res
= str
->res
;
1038 /* ?substr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AV12@II@Z */
1039 /* ?substr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA?AV12@_K0@Z */
1040 DEFINE_THISCALL_WRAPPER_RETPTR(MSVCP_basic_string_char_substr
, 12)
1041 basic_string_char __thiscall
MSVCP_basic_string_char_substr(
1042 basic_string_char
*this, MSVCP_size_t off
, MSVCP_size_t len
)
1044 basic_string_char ret
= { 0 };
1045 TRACE("%p %lu %lu\n", this, off
, len
);
1047 MSVCP_basic_string_char_ctor_substr(&ret
, this, off
, len
);
1051 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@II@Z */
1052 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@AEBV12@_K1@Z */
1053 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_substr
, 16)
1054 basic_string_char
* __thiscall
MSVCP_basic_string_char_append_substr(basic_string_char
*this,
1055 const basic_string_char
*append
, MSVCP_size_t offset
, MSVCP_size_t count
)
1057 TRACE("%p %p %lu %lu\n", this, append
, offset
, count
);
1059 if(append
->size
< offset
)
1060 MSVCP__String_base_Xran();
1062 if(count
> append
->size
-offset
)
1063 count
= append
->size
-offset
;
1065 if(MSVCP_basic_string_char_npos
-this->size
<=count
|| this->size
+count
<this->size
)
1066 MSVCP__String_base_Xlen();
1068 if(basic_string_char_grow(this, this->size
+count
, FALSE
)) {
1069 MSVCP_char_traits_char__Copy_s(basic_string_char_ptr(this)+this->size
,
1070 this->res
-this->size
, basic_string_char_const_ptr(append
)+offset
, count
);
1071 basic_string_char_eos(this, this->size
+count
);
1077 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@@Z */
1078 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@AEBV12@@Z */
1079 /* ??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@ABV01@@Z */
1080 /* ??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV01@AEBV01@@Z */
1081 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append
, 8)
1082 basic_string_char
* __thiscall
MSVCP_basic_string_char_append(
1083 basic_string_char
*this, const basic_string_char
*append
)
1085 return MSVCP_basic_string_char_append_substr(this, append
,
1086 0, MSVCP_basic_string_char_npos
);
1089 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBDI@Z */
1090 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@PEBD_K@Z */
1091 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_cstr_len
, 12)
1092 basic_string_char
* __thiscall
MSVCP_basic_string_char_append_cstr_len(
1093 basic_string_char
*this, const char *append
, MSVCP_size_t count
)
1095 TRACE("%p %s %lu\n", this, append
, count
);
1097 if(basic_string_char_inside(this, append
))
1098 return MSVCP_basic_string_char_append_substr(this, this,
1099 append
-basic_string_char_ptr(this), count
);
1101 if(MSVCP_basic_string_char_npos
-this->size
<=count
|| this->size
+count
<this->size
)
1102 MSVCP__String_base_Xlen();
1104 if(basic_string_char_grow(this, this->size
+count
, FALSE
)) {
1105 MSVCP_char_traits_char__Copy_s(basic_string_char_ptr(this)+this->size
,
1106 this->res
-this->size
, append
, count
);
1107 basic_string_char_eos(this, this->size
+count
);
1113 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBD@Z */
1114 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@PEBD@Z */
1115 /* ??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@PBD@Z */
1116 /* ??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV01@PEBD@Z */
1117 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_cstr
, 8)
1118 basic_string_char
* __thiscall
MSVCP_basic_string_char_append_cstr(
1119 basic_string_char
*this, const char *append
)
1121 return MSVCP_basic_string_char_append_cstr_len(this, append
,
1122 MSVCP_char_traits_char_length(append
));
1125 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBD0@Z */
1126 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@PEBD0@Z */
1127 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_beg_end
, 12)
1128 basic_string_char
* __thiscall
MSVCP_basic_string_char_append_beg_end(
1129 basic_string_char
*this, const char *beg
, const char *end
)
1131 return MSVCP_basic_string_char_append_cstr_len(this, beg
, end
-beg
);
1134 /* ?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 */
1135 /* ?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 */
1136 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_iter
, 20)
1137 basic_string_char
* __thiscall
MSVCP_basic_string_char_append_iter(
1138 basic_string_char
*this, String_iterator_char beg
, String_iterator_char end
)
1140 return MSVCP_basic_string_char_append_cstr_len(this, beg
.pos
, end
.pos
-beg
.pos
+1);
1143 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ID@Z */
1144 /* ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_KD@Z */
1145 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_len_ch
, 12)
1146 basic_string_char
* __thiscall
MSVCP_basic_string_char_append_len_ch(
1147 basic_string_char
*this, MSVCP_size_t count
, char ch
)
1149 TRACE("%p %lu %c\n", this, count
, ch
);
1151 if(MSVCP_basic_string_char_npos
-this->size
<= count
)
1152 MSVCP__String_base_Xlen();
1154 if(basic_string_char_grow(this, this->size
+count
, FALSE
)) {
1155 MSVCP_char_traits_char_assignn(basic_string_char_ptr(this)+this->size
, count
, ch
);
1156 basic_string_char_eos(this, this->size
+count
);
1162 /* ??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@D@Z */
1163 /* ??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV01@D@Z */
1164 /* ?push_back@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXD@Z */
1165 /* ?push_back@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXD@Z */
1166 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_ch
, 8)
1167 basic_string_char
* __thiscall
MSVCP_basic_string_char_append_ch(
1168 basic_string_char
*this, char ch
)
1170 return MSVCP_basic_string_char_append_len_ch(this, 1, ch
);
1173 /* ??$?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 */
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@AEBV10@PEBD@Z */
1175 basic_string_char
* __cdecl
MSVCP_basic_string_char_concatenate_bstr_cstr(basic_string_char
*ret
,
1176 const basic_string_char
*left
, const char *right
)
1178 TRACE("%p %s\n", left
, right
);
1180 MSVCP_basic_string_char_copy_ctor(ret
, left
);
1181 MSVCP_basic_string_char_append_cstr(ret
, right
);
1185 /* ??$?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 */
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@PEBDAEBV10@@Z */
1187 basic_string_char
* __cdecl
MSVCP_basic_string_char_concatenate_cstr_bstr(basic_string_char
*ret
,
1188 const char *left
, const basic_string_char
*right
)
1190 TRACE("%s %p\n", left
, right
);
1192 MSVCP_basic_string_char_ctor_cstr(ret
, left
);
1193 MSVCP_basic_string_char_append(ret
, right
);
1197 /* ??$?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 */
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@AEBV10@0@Z */
1199 basic_string_char
* __cdecl
MSVCP_basic_string_char_concatenate(basic_string_char
*ret
,
1200 const basic_string_char
*left
, const basic_string_char
*right
)
1202 TRACE("%p %p\n", left
, right
);
1204 MSVCP_basic_string_char_copy_ctor(ret
, left
);
1205 MSVCP_basic_string_char_append(ret
, right
);
1209 /* ??$?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 */
1210 /* ??$?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 */
1211 basic_string_char
* __cdecl
MSVCP_basic_string_char_concatenate_bstr_ch(basic_string_char
*ret
,
1212 const basic_string_char
*left
, char right
)
1214 TRACE("%p %c\n", left
, right
);
1216 MSVCP_basic_string_char_copy_ctor(ret
, left
);
1217 MSVCP_basic_string_char_append_ch(ret
, right
);
1221 /* ??$?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 */
1222 /* ??$?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 */
1223 basic_string_char
* __cdecl
MSVCP_basic_string_char_concatenate_ch_bstr(basic_string_char
*ret
,
1224 char left
, const basic_string_char
*right
)
1226 TRACE("%c %p\n", left
, right
);
1228 MSVCP_basic_string_char_ctor_cstr_len(ret
, &left
, 1);
1229 MSVCP_basic_string_char_append(ret
, right
);
1233 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEHIIPBDI@Z */
1234 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAH_K0PEBD0@Z */
1235 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_compare_substr_cstr_len
, 20)
1236 int __thiscall
MSVCP_basic_string_char_compare_substr_cstr_len(
1237 const basic_string_char
*this, MSVCP_size_t pos
, MSVCP_size_t num
,
1238 const char *str
, MSVCP_size_t count
)
1242 TRACE("%p %lu %lu %s %lu\n", this, pos
, num
, str
, count
);
1244 if(this->size
< pos
)
1245 MSVCP__String_base_Xran();
1247 if(pos
+num
> this->size
)
1248 num
= this->size
-pos
;
1250 ans
= MSVCP_char_traits_char_compare(basic_string_char_const_ptr(this)+pos
,
1251 str
, num
>count
? count
: num
);
1257 else if(num
< count
)
1262 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEHIIPBD@Z */
1263 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAH_K0PEBD@Z */
1264 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_compare_substr_cstr
, 16)
1265 int __thiscall
MSVCP_basic_string_char_compare_substr_cstr(const basic_string_char
*this,
1266 MSVCP_size_t pos
, MSVCP_size_t num
, const char *str
)
1268 return MSVCP_basic_string_char_compare_substr_cstr_len(this, pos
, num
,
1269 str
, MSVCP_char_traits_char_length(str
));
1272 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEHPBD@Z */
1273 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAHPEBD@Z */
1274 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_compare_cstr
, 8)
1275 int __thiscall
MSVCP_basic_string_char_compare_cstr(
1276 const basic_string_char
*this, const char *str
)
1278 return MSVCP_basic_string_char_compare_substr_cstr_len(this, 0, this->size
,
1279 str
, MSVCP_char_traits_char_length(str
));
1282 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEHIIABV12@II@Z */
1283 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAH_K0AEBV12@00@Z */
1284 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_compare_substr_substr
, 24)
1285 int __thiscall
MSVCP_basic_string_char_compare_substr_substr(
1286 const basic_string_char
*this, MSVCP_size_t pos
, MSVCP_size_t num
,
1287 const basic_string_char
*compare
, MSVCP_size_t off
, MSVCP_size_t count
)
1289 TRACE("%p %lu %lu %p %lu %lu\n", this, pos
, num
, compare
, off
, count
);
1291 if(compare
->size
< off
)
1292 MSVCP__String_base_Xran();
1294 if(off
+count
> compare
->size
)
1295 count
= compare
->size
-off
;
1297 return MSVCP_basic_string_char_compare_substr_cstr_len(this, pos
, num
,
1298 basic_string_char_const_ptr(compare
)+off
, count
);
1301 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEHIIABV12@@Z */
1302 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAH_K0AEBV12@@Z */
1303 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_compare_substr
, 16)
1304 int __thiscall
MSVCP_basic_string_char_compare_substr(
1305 const basic_string_char
*this, MSVCP_size_t pos
, MSVCP_size_t num
,
1306 const basic_string_char
*compare
)
1308 return MSVCP_basic_string_char_compare_substr_cstr_len(this, pos
, num
,
1309 basic_string_char_const_ptr(compare
), compare
->size
);
1312 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEHABV12@@Z */
1313 /* ?compare@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAHAEBV12@@Z */
1314 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_compare
, 8)
1315 int __thiscall
MSVCP_basic_string_char_compare(
1316 const basic_string_char
*this, const basic_string_char
*compare
)
1318 return MSVCP_basic_string_char_compare_substr_cstr_len(this, 0, this->size
,
1319 basic_string_char_const_ptr(compare
), compare
->size
);
1322 /* ??$?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 */
1323 /* ??$?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 */
1324 MSVCP_bool __cdecl
MSVCP_basic_string_char_equal(
1325 const basic_string_char
*left
, const basic_string_char
*right
)
1327 return MSVCP_basic_string_char_compare(left
, right
) == 0;
1330 /* ??$?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 */
1331 /* ??$?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 */
1332 MSVCP_bool __cdecl
MSVCP_basic_string_char_equal_str_cstr(
1333 const basic_string_char
*left
, const char *right
)
1335 return MSVCP_basic_string_char_compare_cstr(left
, right
) == 0;
1338 /* ??$?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 */
1339 /* ??$?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 */
1340 MSVCP_bool __cdecl
MSVCP_basic_string_char_equal_cstr_str(
1341 const char *left
, const basic_string_char
*right
)
1343 return MSVCP_basic_string_char_compare_cstr(right
, left
) == 0;
1346 /* ??$?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 */
1347 /* ??$?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 */
1348 MSVCP_bool __cdecl
MSVCP_basic_string_char_not_equal(
1349 const basic_string_char
*left
, const basic_string_char
*right
)
1351 return MSVCP_basic_string_char_compare(left
, right
) != 0;
1354 /* ??$?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 */
1355 /* ??$?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 */
1356 MSVCP_bool __cdecl
MSVCP_basic_string_char_not_equal_str_cstr(
1357 const basic_string_char
*left
, const char *right
)
1359 return MSVCP_basic_string_char_compare_cstr(left
, right
) != 0;
1362 /* ??$?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 */
1363 /* ??$?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 */
1364 MSVCP_bool __cdecl
MSVCP_basic_string_char_not_equal_cstr_str(
1365 const char *left
, const basic_string_char
*right
)
1367 return MSVCP_basic_string_char_compare_cstr(right
, left
) != 0;
1370 /* ??$?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 */
1371 /* ??$?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 */
1372 MSVCP_bool __cdecl
MSVCP_basic_string_char_lower(
1373 const basic_string_char
*left
, const basic_string_char
*right
)
1375 return MSVCP_basic_string_char_compare(left
, right
) < 0;
1378 /* ??$?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 */
1379 /* ??$?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 */
1380 MSVCP_bool __cdecl
MSVCP_basic_string_char_lower_bstr_cstr(
1381 const basic_string_char
*left
, const char *right
)
1383 return MSVCP_basic_string_char_compare_cstr(left
, right
) < 0;
1386 /* ??$?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 */
1387 /* ??$?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 */
1388 MSVCP_bool __cdecl
MSVCP_basic_string_char_lower_cstr_bstr(
1389 const char *left
, const basic_string_char
*right
)
1391 return MSVCP_basic_string_char_compare_cstr(right
, left
) > 0;
1394 /* ??$?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 */
1395 /* ??$?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 */
1396 MSVCP_bool __cdecl
MSVCP_basic_string_char_leq(
1397 const basic_string_char
*left
, const basic_string_char
*right
)
1399 return MSVCP_basic_string_char_compare(left
, right
) <= 0;
1402 /* ??$?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 */
1403 /* ??$?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 */
1404 MSVCP_bool __cdecl
MSVCP_basic_string_char_leq_bstr_cstr(
1405 const basic_string_char
*left
, const char *right
)
1407 return MSVCP_basic_string_char_compare_cstr(left
, right
) <= 0;
1410 /* ??$?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 */
1411 /* ??$?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 */
1412 MSVCP_bool __cdecl
MSVCP_basic_string_char_leq_cstr_bstr(
1413 const char *left
, const basic_string_char
*right
)
1415 return MSVCP_basic_string_char_compare_cstr(right
, left
) >= 0;
1418 /* ??$?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 */
1419 /* ??$?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 */
1420 MSVCP_bool __cdecl
MSVCP_basic_string_char_greater(
1421 const basic_string_char
*left
, const basic_string_char
*right
)
1423 return MSVCP_basic_string_char_compare(left
, right
) > 0;
1426 /* ??$?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 */
1427 /* ??$?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 */
1428 MSVCP_bool __cdecl
MSVCP_basic_string_char_greater_bstr_cstr(
1429 const basic_string_char
*left
, const char *right
)
1431 return MSVCP_basic_string_char_compare_cstr(left
, right
) > 0;
1434 /* ??$?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 */
1435 /* ??$?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 */
1436 MSVCP_bool __cdecl
MSVCP_basic_string_char_greater_cstr_bstr(
1437 const char *left
, const basic_string_char
*right
)
1439 return MSVCP_basic_string_char_compare_cstr(right
, left
) < 0;
1442 /* ??$?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 */
1443 /* ??$?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 */
1444 MSVCP_bool __cdecl
MSVCP_basic_string_char_geq(
1445 const basic_string_char
*left
, const basic_string_char
*right
)
1447 return MSVCP_basic_string_char_compare(left
, right
) >= 0;
1450 /* ??$?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 */
1451 /* ??$?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 */
1452 MSVCP_bool __cdecl
MSVCP_basic_string_char_geq_bstr_cstr(
1453 const basic_string_char
*left
, const char *right
)
1455 return MSVCP_basic_string_char_compare_cstr(left
, right
) >= 0;
1458 /* ??$?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 */
1459 /* ??$?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 */
1460 MSVCP_bool __cdecl
MSVCP_basic_string_char_geq_cstr_bstr(
1461 const char *left
, const basic_string_char
*right
)
1463 return MSVCP_basic_string_char_compare_cstr(right
, left
) <= 0;
1466 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z */
1467 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K1@Z */
1468 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_cstr_substr
, 16)
1469 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_cstr_substr(
1470 const basic_string_char
*this, const char *find
, MSVCP_size_t pos
, MSVCP_size_t len
)
1472 const char *p
, *end
;
1474 TRACE("%p %s %lu %lu\n", this, find
, pos
, len
);
1476 if(len
==0 && pos
<=this->size
)
1479 end
= basic_string_char_const_ptr(this)+this->size
-len
+1;
1480 for(p
=basic_string_char_const_ptr(this)+pos
; p
<end
; p
++) {
1481 p
= MSVCP_char_traits_char_find(p
, end
-p
, find
);
1485 if(!MSVCP_char_traits_char_compare(p
, find
, len
))
1486 return p
-basic_string_char_const_ptr(this);
1489 return MSVCP_basic_string_char_npos
;
1492 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDI@Z */
1493 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K@Z */
1494 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_cstr_off
, 12)
1495 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_cstr_off(
1496 const basic_string_char
*this, const char *find
, MSVCP_size_t pos
)
1498 return MSVCP_basic_string_char_find_cstr_substr(this, find
, pos
,
1499 MSVCP_char_traits_char_length(find
));
1502 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIABV12@I@Z */
1503 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KAEBV12@_K@Z */
1504 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_off
, 12)
1505 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_off(
1506 const basic_string_char
*this, const basic_string_char
*find
, MSVCP_size_t off
)
1508 return MSVCP_basic_string_char_find_cstr_substr(this,
1509 basic_string_char_const_ptr(find
), off
, find
->size
);
1512 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIDI@Z */
1513 /* ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KD_K@Z */
1514 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_ch
, 12)
1515 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_ch(
1516 const basic_string_char
*this, char ch
, MSVCP_size_t pos
)
1518 return MSVCP_basic_string_char_find_cstr_substr(this, &ch
, pos
, 1);
1521 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z */
1522 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K1@Z */
1523 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_of_cstr_substr
, 16)
1524 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_first_of_cstr_substr(
1525 const basic_string_char
*this, const char *find
, MSVCP_size_t off
, MSVCP_size_t len
)
1527 const char *p
, *end
;
1529 TRACE("%p %p %lu %lu\n", this, find
, off
, len
);
1531 if(len
>0 && off
<this->size
) {
1532 end
= basic_string_char_const_ptr(this)+this->size
;
1533 for(p
=basic_string_char_const_ptr(this)+off
; p
<end
; p
++)
1534 if(MSVCP_char_traits_char_find(find
, len
, p
))
1535 return p
-basic_string_char_const_ptr(this);
1538 return MSVCP_basic_string_char_npos
;
1541 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIABV12@I@Z */
1542 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KAEBV12@_K@Z */
1543 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_of
, 12)
1544 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_first_of(
1545 const basic_string_char
*this, const basic_string_char
*find
, MSVCP_size_t off
)
1547 return MSVCP_basic_string_char_find_first_of_cstr_substr(this,
1548 basic_string_char_const_ptr(find
), off
, find
->size
);
1551 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDI@Z */
1552 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K@Z */
1553 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_of_cstr
, 12)
1554 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_first_of_cstr(
1555 const basic_string_char
*this, const char *find
, MSVCP_size_t off
)
1557 return MSVCP_basic_string_char_find_first_of_cstr_substr(
1558 this, find
, off
, MSVCP_char_traits_char_length(find
));
1561 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIDI@Z */
1562 /* ?find_first_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KD_K@Z */
1563 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_of_ch
, 12)
1564 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_first_of_ch(
1565 const basic_string_char
*this, char ch
, MSVCP_size_t off
)
1567 return MSVCP_basic_string_char_find_first_of_cstr_substr(this, &ch
, off
, 1);
1570 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z */
1571 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K1@Z */
1572 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_not_of_cstr_substr
, 16)
1573 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_first_not_of_cstr_substr(
1574 const basic_string_char
*this, const char *find
, MSVCP_size_t off
, MSVCP_size_t len
)
1576 const char *p
, *end
;
1578 TRACE("%p %p %lu %lu\n", this, find
, off
, len
);
1580 if(off
<this->size
) {
1581 end
= basic_string_char_const_ptr(this)+this->size
;
1582 for(p
=basic_string_char_const_ptr(this)+off
; p
<end
; p
++)
1583 if(!MSVCP_char_traits_char_find(find
, len
, p
))
1584 return p
-basic_string_char_const_ptr(this);
1587 return MSVCP_basic_string_char_npos
;
1590 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIABV12@I@Z */
1591 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KAEBV12@_K@Z */
1592 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_not_of
, 12)
1593 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_first_not_of(
1594 const basic_string_char
*this, const basic_string_char
*find
, MSVCP_size_t off
)
1596 return MSVCP_basic_string_char_find_first_not_of_cstr_substr(this,
1597 basic_string_char_const_ptr(find
), off
, find
->size
);
1600 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDI@Z */
1601 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K@Z */
1602 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_not_of_cstr
, 12)
1603 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_first_not_of_cstr(
1604 const basic_string_char
*this, const char *find
, MSVCP_size_t off
)
1606 return MSVCP_basic_string_char_find_first_not_of_cstr_substr(
1607 this, find
, off
, MSVCP_char_traits_char_length(find
));
1610 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIDI@Z */
1611 /* ?find_first_not_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KD_K@Z */
1612 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_first_not_of_ch
, 12)
1613 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_first_not_of_ch(
1614 const basic_string_char
*this, char ch
, MSVCP_size_t off
)
1616 return MSVCP_basic_string_char_find_first_not_of_cstr_substr(this, &ch
, off
, 1);
1619 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z */
1620 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K1@Z */
1621 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_of_cstr_substr
, 16)
1622 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_last_of_cstr_substr(
1623 const basic_string_char
*this, const char *find
, MSVCP_size_t off
, MSVCP_size_t len
)
1625 const char *p
, *beg
;
1627 TRACE("%p %p %lu %lu\n", this, find
, off
, len
);
1630 if(len
>0 && this->size
>0) {
1631 if(off
>= this->size
)
1634 beg
= basic_string_char_const_ptr(this);
1635 for(p
=beg
+off
; p
>=beg
; p
--)
1636 if(MSVCP_char_traits_char_find(find
, len
, p
))
1640 return MSVCP_basic_string_char_npos
;
1643 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIABV12@I@Z */
1644 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KAEBV12@_K@Z */
1645 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_of
, 12)
1646 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_last_of(
1647 const basic_string_char
*this, const basic_string_char
*find
, MSVCP_size_t off
)
1649 return MSVCP_basic_string_char_find_last_of_cstr_substr(this,
1650 basic_string_char_const_ptr(find
), off
, find
->size
);
1653 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDI@Z */
1654 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KPEBD_K@Z */
1655 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_of_cstr
, 12)
1656 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_last_of_cstr(
1657 const basic_string_char
*this, const char *find
, MSVCP_size_t off
)
1659 return MSVCP_basic_string_char_find_last_of_cstr_substr(
1660 this, find
, off
, MSVCP_char_traits_char_length(find
));
1663 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIDI@Z */
1664 /* ?find_last_of@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KD_K@Z */
1665 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_find_last_of_ch
, 12)
1666 MSVCP_size_t __thiscall
MSVCP_basic_string_char_find_last_of_ch(
1667 const basic_string_char
*this, char ch
, MSVCP_size_t off
)
1669 return MSVCP_basic_string_char_find_last_of_cstr_substr(this, &ch
, off
, 1);
1672 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAADI@Z */
1673 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAD_K@Z */
1674 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_operator_at
, 8)
1675 char* __thiscall
MSVCP_basic_string_char_operator_at(
1676 basic_string_char
*this, MSVCP_size_t pos
)
1678 TRACE("%p %lu\n", this, pos
);
1680 assert(this->size
>= pos
);
1681 return basic_string_char_ptr(this)+pos
;
1684 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEABDI@Z */
1685 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAAEBD_K@Z */
1686 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_const_operator_at
, 8)
1687 const char* __thiscall
MSVCP_basic_string_char_const_operator_at(
1688 const basic_string_char
*this, MSVCP_size_t pos
)
1690 TRACE("%p %lu\n", this, pos
);
1692 assert(this->size
>= pos
);
1693 return basic_string_char_const_ptr(this)+pos
;
1696 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAADU_Size_type_nosscl@01@@Z */
1697 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEADU_Size_type_nosscl@01@@Z */
1698 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_operator_at_noverify
, 8)
1699 char* __thiscall
MSVCP_basic_string_char_operator_at_noverify(
1700 basic_string_char
*this, size_t_noverify pos
)
1702 TRACE("%p %lu\n", this, pos
.val
);
1703 return basic_string_char_ptr(this)+pos
.val
;
1706 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEABDU_Size_type_nosscl@01@@Z */
1707 /* ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAAEBDU_Size_type_nosscl@01@@Z */
1708 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_operator_const_at_noverify
, 8)
1709 const char* __thiscall
MSVCP_basic_string_char_operator_const_at_noverify(
1710 const basic_string_char
*this, size_t_noverify pos
)
1712 TRACE("%p %lu\n", this, pos
.val
);
1713 return basic_string_char_const_ptr(this)+pos
.val
;
1716 /* ?at@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAADI@Z */
1717 /* ?at@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAD_K@Z */
1718 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_at
, 8)
1719 char* __thiscall
MSVCP_basic_string_char_at(
1720 basic_string_char
*this, MSVCP_size_t pos
)
1722 TRACE("%p %lu\n", this, pos
);
1724 if(this->size
<= pos
)
1725 MSVCP__String_base_Xran();
1727 return basic_string_char_ptr(this)+pos
;
1730 /* ?at@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEABDI@Z */
1731 /* ?at@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAAEBD_K@Z */
1732 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_const_at
, 8)
1733 const char* __thiscall
MSVCP_basic_string_char_const_at(
1734 const basic_string_char
*this, MSVCP_size_t pos
)
1736 TRACE("%p %lu\n", this, pos
);
1738 if(this->size
<= pos
)
1739 MSVCP__String_base_Xran();
1741 return basic_string_char_const_ptr(this)+pos
;
1744 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IIPBDI@Z */
1745 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0PEBD0@Z */
1746 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_cstr_len
, 20)
1747 basic_string_char
* __thiscall
basic_string_char_replace_cstr_len(basic_string_char
*this,
1748 MSVCP_size_t off
, MSVCP_size_t len
, const char *str
, MSVCP_size_t str_len
)
1750 MSVCP_size_t inside_pos
= -1;
1751 char *ptr
= basic_string_char_ptr(this);
1753 TRACE("%p %ld %ld %p %ld\n", this, off
, len
, str
, str_len
);
1755 if(this->size
< off
)
1756 MSVCP__String_base_Xran();
1758 if(off
+len
> this->size
)
1759 len
= this->size
-off
;
1761 if(MSVCP_basic_string_char_npos
-str_len
<= this->size
-len
)
1762 MSVCP__String_base_Xlen();
1764 if(basic_string_char_inside(this, str
))
1765 inside_pos
= str
-ptr
;
1768 basic_string_char_grow(this, this->size
-len
+str_len
, FALSE
);
1770 if(inside_pos
== -1) {
1771 memmove(ptr
+off
+str_len
, ptr
+off
+len
, (this->size
-off
-len
)*sizeof(char));
1772 memcpy(ptr
+off
, str
, str_len
*sizeof(char));
1773 } else if(len
>= str_len
) {
1774 memmove(ptr
+off
, ptr
+inside_pos
, str_len
*sizeof(char));
1775 memmove(ptr
+off
+str_len
, ptr
+off
+len
, (this->size
-off
-len
)*sizeof(char));
1779 memmove(ptr
+off
+str_len
, ptr
+off
+len
, (this->size
-off
-len
)*sizeof(char));
1781 if(inside_pos
< off
+len
) {
1782 size
= off
+len
-inside_pos
;
1785 memmove(ptr
+off
, ptr
+inside_pos
, size
*sizeof(char));
1791 memmove(ptr
+off
+size
, ptr
+off
+str_len
, (str_len
-size
)*sizeof(char));
1794 basic_string_char_eos(this, this->size
-len
+str_len
);
1798 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IIPBD@Z */
1799 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0PEBD@Z */
1800 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_cstr
, 16)
1801 basic_string_char
* __thiscall
basic_string_char_replace_cstr(basic_string_char
*this,
1802 MSVCP_size_t off
, MSVCP_size_t len
, const char *str
)
1804 return basic_string_char_replace_cstr_len(this, off
, len
, str
,
1805 MSVCP_char_traits_char_length(str
));
1808 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IIABV12@II@Z */
1809 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0AEBV12@00@Z */
1810 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_substr
, 24)
1811 basic_string_char
* __thiscall
basic_string_char_replace_substr(basic_string_char
*this, MSVCP_size_t off
,
1812 MSVCP_size_t len
, const basic_string_char
*str
, MSVCP_size_t str_off
, MSVCP_size_t str_len
)
1814 if(str
->size
< str_off
)
1815 MSVCP__String_base_Xran();
1817 if(str_off
+str_len
> str
->size
)
1818 str_len
= str
->size
-str_off
;
1820 return basic_string_char_replace_cstr_len(this, off
, len
,
1821 basic_string_char_const_ptr(str
)+str_off
, str_len
);
1824 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IIABV12@@Z */
1825 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0AEBV12@@Z */
1826 DEFINE_THISCALL_WRAPPER(basic_string_char_replace
, 16)
1827 basic_string_char
* __thiscall
basic_string_char_replace(basic_string_char
*this,
1828 MSVCP_size_t off
, MSVCP_size_t len
, const basic_string_char
*str
)
1830 return basic_string_char_replace_cstr_len(this, off
, len
,
1831 basic_string_char_const_ptr(str
), str
->size
);
1834 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@IIID@Z */
1835 /* ?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K00D@Z */
1836 DEFINE_THISCALL_WRAPPER(basic_string_char_replace_ch
, 20)
1837 basic_string_char
* __thiscall
basic_string_char_replace_ch(basic_string_char
*this,
1838 MSVCP_size_t off
, MSVCP_size_t len
, MSVCP_size_t count
, char ch
)
1840 char *ptr
= basic_string_char_ptr(this);
1842 TRACE("%p %ld %ld %ld %c\n", this, off
, len
, count
, ch
);
1844 if(this->size
< off
)
1845 MSVCP__String_base_Xran();
1847 if(off
+len
> this->size
)
1848 len
= this->size
-off
;
1850 if(MSVCP_basic_string_char_npos
-count
<= this->size
-len
)
1851 MSVCP__String_base_Xlen();
1854 basic_string_char_grow(this, this->size
-len
+count
, FALSE
);
1856 memmove(ptr
+off
+count
, ptr
+off
+len
, (this->size
-off
-len
)*sizeof(char));
1857 MSVCP_char_traits_char_assignn(ptr
+off
, count
, ch
);
1858 basic_string_char_eos(this, this->size
-len
+count
);
1863 /* ?resize@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXID@Z */
1864 /* ?resize@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAX_KD@Z */
1865 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_resize_ch
, 12)
1866 void __thiscall
MSVCP_basic_string_char_resize_ch(
1867 basic_string_char
*this, MSVCP_size_t size
, char ch
)
1869 TRACE("%p %lu %c\n", this, size
, ch
);
1871 if(size
<= this->size
)
1872 MSVCP_basic_string_char_erase(this, size
, this->size
);
1874 MSVCP_basic_string_char_append_len_ch(this, size
-this->size
, ch
);
1877 /* ?resize@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXI@Z */
1878 /* ?resize@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAX_K@Z */
1879 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_resize
, 8)
1880 void __thiscall
MSVCP_basic_string_char_resize(
1881 basic_string_char
*this, MSVCP_size_t size
)
1883 MSVCP_basic_string_char_resize_ch(this, size
, '\0');
1886 /* ?clear@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ */
1887 /* ?clear@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXXZ */
1888 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_clear
, 4)
1889 void __thiscall
MSVCP_basic_string_char_clear(basic_string_char
*this)
1891 basic_string_char_eos(this, 0);
1894 /* ?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 */
1895 /* ?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 */
1896 /* ?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 */
1897 /* ?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 */
1898 DEFINE_THISCALL_WRAPPER_RETPTR(MSVCP_basic_string_char_begin
, 4)
1899 String_iterator_char __thiscall
MSVCP_basic_string_char_begin(basic_string_char
*this)
1901 String_iterator_char ret
;
1903 TRACE("%p\n", this);
1906 ret
.pos
= basic_string_char_const_ptr(this);
1910 /* ?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 */
1911 /* ?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 */
1912 /* ?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 */
1913 /* ?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 */
1914 DEFINE_THISCALL_WRAPPER_RETPTR(MSVCP_basic_string_char_end
, 4)
1915 String_iterator_char __thiscall
MSVCP_basic_string_char_end(basic_string_char
*this)
1917 String_iterator_char ret
;
1919 TRACE("%p\n", this);
1922 ret
.pos
= basic_string_char_const_ptr(this)+this->size
;
1926 /* ?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 */
1927 /* ?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 */
1928 /* ?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 */
1929 /* ?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 */
1930 DEFINE_THISCALL_WRAPPER_RETPTR(MSVCP_basic_string_char_rbegin
, 4)
1931 String_reverse_iterator_char __thiscall
MSVCP_basic_string_char_rbegin(basic_string_char
*this)
1933 String_reverse_iterator_char ret
;
1935 TRACE("%p\n", this);
1938 ret
.pos
= basic_string_char_const_ptr(this)+this->size
;
1942 /* ?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 */
1943 /* ?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 */
1944 /* ?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 */
1945 /* ?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 */
1946 DEFINE_THISCALL_WRAPPER_RETPTR(MSVCP_basic_string_char_rend
, 4)
1947 String_reverse_iterator_char __thiscall
MSVCP_basic_string_char_rend(basic_string_char
*this)
1949 String_reverse_iterator_char ret
;
1951 TRACE("%p\n", this);
1954 ret
.pos
= basic_string_char_const_ptr(this);
1958 /* ?_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 */
1959 /* ?_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 */
1960 MSVCP_size_t __cdecl
MSVCP_basic_string_char_Pdif(String_iterator_char i1
, String_iterator_char i2
)
1962 TRACE("(%p %p) (%p %p)\n", i1
.bstr
, i1
.pos
, i2
.bstr
, i2
.pos
);
1964 if((!i1
.bstr
&& i1
.pos
) || i1
.bstr
!=i2
.bstr
) {
1965 _invalid_parameter(NULL
, NULL
, NULL
, 0, 0);
1969 return !i1
.pos
? 0 : i1
.pos
-i2
.pos
;
1972 /* basic_string<wchar_t, char_traits<wchar_t>, allocator<wchar_t>> */
1973 /* ?npos@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@2IB */
1974 /* ?npos@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@2_KB */
1975 const MSVCP_size_t MSVCP_basic_string_wchar_npos
= -1;
1977 /* ?_Myptr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEPA_WXZ */
1978 /* ?_Myptr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAPEA_WXZ */
1979 DEFINE_THISCALL_WRAPPER(basic_string_wchar_ptr
, 4)
1980 wchar_t* __thiscall
basic_string_wchar_ptr(basic_string_wchar
*this)
1982 if(this->res
== BUF_SIZE_WCHAR
-1)
1983 return this->data
.buf
;
1984 return this->data
.ptr
;
1987 /* ?_Myptr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IBEPB_WXZ */
1988 /* ?_Myptr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEBAPEB_WXZ */
1989 DEFINE_THISCALL_WRAPPER(basic_string_wchar_const_ptr
, 4)
1990 const wchar_t* __thiscall
basic_string_wchar_const_ptr(const basic_string_wchar
*this)
1992 if(this->res
== BUF_SIZE_WCHAR
-1)
1993 return this->data
.buf
;
1994 return this->data
.ptr
;
1997 /* ?_Eos@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXI@Z */
1998 /* ?_Eos@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAX_K@Z */
1999 DEFINE_THISCALL_WRAPPER(basic_string_wchar_eos
, 8)
2000 void __thiscall
basic_string_wchar_eos(basic_string_wchar
*this, MSVCP_size_t len
)
2002 static const wchar_t nullbyte_w
= '\0';
2005 MSVCP_char_traits_wchar_assign(basic_string_wchar_ptr(this)+len
, &nullbyte_w
);
2008 /* ?_Inside@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAE_NPB_W@Z */
2009 /* ?_Inside@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAA_NPEB_W@Z */
2010 DEFINE_THISCALL_WRAPPER(basic_string_wchar_inside
, 8)
2011 MSVCP_bool __thiscall
basic_string_wchar_inside(
2012 basic_string_wchar
*this, const wchar_t *ptr
)
2014 wchar_t *cstr
= basic_string_wchar_ptr(this);
2016 return (ptr
<cstr
|| ptr
>=cstr
+this->size
) ? FALSE
: TRUE
;
2019 /* ?_Tidy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEX_NI@Z */
2020 /* ?_Tidy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAX_N_K@Z */
2021 DEFINE_THISCALL_WRAPPER(basic_string_wchar_tidy
, 12)
2022 void __thiscall
basic_string_wchar_tidy(basic_string_wchar
*this,
2023 MSVCP_bool built
, MSVCP_size_t new_size
)
2025 if(built
&& BUF_SIZE_WCHAR
<=this->res
) {
2026 wchar_t *ptr
= this->data
.ptr
;
2029 MSVCP_char_traits_wchar__Copy_s(this->data
.buf
, BUF_SIZE_WCHAR
, ptr
, new_size
);
2030 MSVCP_allocator_wchar_deallocate(this->allocator
, ptr
, this->res
+1);
2033 this->res
= BUF_SIZE_WCHAR
-1;
2034 basic_string_wchar_eos(this, new_size
);
2037 /* ?_Grow@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAE_NI_N@Z */
2038 /* ?_Grow@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAA_N_K_N@Z */
2039 DEFINE_THISCALL_WRAPPER(basic_string_wchar_grow
, 12)
2040 MSVCP_bool __thiscall
basic_string_wchar_grow(
2041 basic_string_wchar
*this, MSVCP_size_t new_size
, MSVCP_bool trim
)
2043 if(this->res
< new_size
) {
2044 MSVCP_size_t new_res
= new_size
, len
= this->size
;
2049 if(new_res
/3 < this->res
/2)
2050 new_res
= this->res
+ this->res
/2;
2052 ptr
= MSVCP_allocator_wchar_allocate(this->allocator
, new_res
);
2054 ptr
= MSVCP_allocator_wchar_allocate(this->allocator
, new_size
+1);
2058 ERR("Out of memory\n");
2059 basic_string_wchar_tidy(this, TRUE
, 0);
2063 MSVCP_char_traits_wchar__Copy_s(ptr
, new_size
,
2064 basic_string_wchar_ptr(this), this->size
);
2065 basic_string_wchar_tidy(this, TRUE
, 0);
2066 this->data
.ptr
= ptr
;
2067 this->res
= new_size
;
2068 basic_string_wchar_eos(this, len
);
2069 } else if(trim
&& new_size
< BUF_SIZE_WCHAR
)
2070 basic_string_wchar_tidy(this, TRUE
,
2071 new_size
<this->size
? new_size
: this->size
);
2072 else if(new_size
== 0)
2073 basic_string_wchar_eos(this, 0);
2075 return (new_size
>0);
2078 /* ?erase@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@II@Z */
2079 /* ?erase@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0@Z */
2080 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_erase
, 12)
2081 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_erase(
2082 basic_string_wchar
*this, MSVCP_size_t pos
, MSVCP_size_t len
)
2084 TRACE("%p %lu %lu\n", this, pos
, len
);
2086 if(pos
> this->size
)
2087 MSVCP__String_base_Xran();
2089 if(len
> this->size
-pos
)
2090 len
= this->size
-pos
;
2093 MSVCP_char_traits_wchar__Move_s(basic_string_wchar_ptr(this)+pos
,
2094 this->res
-pos
, basic_string_wchar_ptr(this)+pos
+len
,
2095 this->size
-pos
-len
);
2096 basic_string_wchar_eos(this, this->size
-len
);
2102 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@ABV12@II@Z */
2103 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@AEBV12@_K1@Z */
2104 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_substr
, 16)
2105 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_assign_substr(
2106 basic_string_wchar
*this, const basic_string_wchar
*assign
,
2107 MSVCP_size_t pos
, MSVCP_size_t len
)
2109 TRACE("%p %p %lu %lu\n", this, assign
, pos
, len
);
2111 if(assign
->size
< pos
)
2112 MSVCP__String_base_Xran();
2114 if(len
> assign
->size
-pos
)
2115 len
= assign
->size
-pos
;
2117 if(this == assign
) {
2118 MSVCP_basic_string_wchar_erase(this, pos
+len
, MSVCP_basic_string_wchar_npos
);
2119 MSVCP_basic_string_wchar_erase(this, 0, pos
);
2120 } else if(basic_string_wchar_grow(this, len
, FALSE
)) {
2121 MSVCP_char_traits_wchar__Copy_s(basic_string_wchar_ptr(this),
2122 this->res
, basic_string_wchar_const_ptr(assign
)+pos
, len
);
2123 basic_string_wchar_eos(this, len
);
2129 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@ABV12@@Z */
2130 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@AEBV12@@Z */
2131 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@ABV01@@Z */
2132 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@AEBV01@@Z */
2133 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign
, 8)
2134 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_assign(
2135 basic_string_wchar
*this, const basic_string_wchar
*assign
)
2137 return MSVCP_basic_string_wchar_assign_substr(this, assign
,
2138 0, MSVCP_basic_string_wchar_npos
);
2141 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_WI@Z */
2142 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W_K@Z */
2143 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_cstr_len
, 12)
2144 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_assign_cstr_len(
2145 basic_string_wchar
*this, const wchar_t *str
, MSVCP_size_t len
)
2147 TRACE("%p %s %lu\n", this, debugstr_w(str
), len
);
2149 if(basic_string_wchar_inside(this, str
))
2150 return MSVCP_basic_string_wchar_assign_substr(this, this,
2151 str
-basic_string_wchar_ptr(this), len
);
2152 else if(basic_string_wchar_grow(this, len
, FALSE
)) {
2153 MSVCP_char_traits_wchar__Copy_s(basic_string_wchar_ptr(this),
2154 this->res
, str
, len
);
2155 basic_string_wchar_eos(this, len
);
2161 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@_W@Z */
2162 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@_W@Z */
2163 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_ch
, 8)
2164 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_assign_ch(
2165 basic_string_wchar
*this, wchar_t ch
)
2167 return MSVCP_basic_string_wchar_assign_cstr_len(this, &ch
, 1);
2170 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_W@Z */
2171 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W@Z */
2172 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@PB_W@Z */
2173 /* ??4?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@PEB_W@Z */
2174 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_cstr
, 8)
2175 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_assign_cstr(
2176 basic_string_wchar
*this, const wchar_t *str
)
2178 return MSVCP_basic_string_wchar_assign_cstr_len(this, str
,
2179 MSVCP_char_traits_wchar_length(str
));
2182 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@I_W@Z */
2183 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K_W@Z */
2184 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assignn
, 12)
2185 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_assignn(
2186 basic_string_wchar
*this, MSVCP_size_t count
, wchar_t ch
)
2188 TRACE("%p %ld %c\n", this, count
, ch
);
2190 basic_string_wchar_grow(this, count
, FALSE
);
2191 MSVCP_char_traits_wchar_assignn(basic_string_wchar_ptr(this), count
, ch
);
2192 basic_string_wchar_eos(this, count
);
2196 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_W0@Z */
2197 /* ?assign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W0@Z */
2198 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_ptr_ptr
, 12)
2199 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_assign_ptr_ptr(
2200 basic_string_wchar
*this, const wchar_t *first
, const wchar_t *last
)
2202 return MSVCP_basic_string_wchar_assign_cstr_len(this, first
, last
-first
);
2205 /* ?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 */
2206 /* ?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 */
2207 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_assign_iter
, 20)
2208 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_assign_iter(basic_string_wchar
*this,
2209 String_iterator_wchar beg
, String_iterator_wchar end
)
2211 return MSVCP_basic_string_wchar_assign_ptr_ptr(this, beg
.pos
, end
.pos
+1);
2214 /* ?_Chassign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXII_W@Z */
2215 /* ?_Chassign@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAX_K0_W@Z */
2216 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_Chassign
, 16)
2217 void __thiscall
MSVCP_basic_string_wchar_Chassign(basic_string_wchar
*this,
2218 MSVCP_size_t off
, MSVCP_size_t count
, wchar_t ch
)
2220 TRACE("%p %lu %lu %c\n", this, off
, count
, ch
);
2221 MSVCP_char_traits_wchar_assignn(basic_string_wchar_ptr(this)+off
, count
, ch
);
2224 /* ?_Copy_s@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPA_WIII@Z */
2225 /* ?_Copy_s@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEA_W_K11@Z */
2226 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_Copy_s
, 20)
2227 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_Copy_s(const basic_string_wchar
*this,
2228 wchar_t *dest
, MSVCP_size_t size
, MSVCP_size_t off
, MSVCP_size_t count
)
2230 TRACE("%p %p %lu %lu %lu\n", this, dest
, size
, off
, count
);
2232 if(this->size
< off
)
2233 MSVCP__String_base_Xran();
2235 if(count
> this->size
-off
)
2236 count
= this->size
-off
;
2238 MSVCP_char_traits_wchar__Copy_s(dest
, size
,
2239 basic_string_wchar_const_ptr(this)+off
, count
);
2243 /* ?c_str@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEPB_WXZ */
2244 /* ?c_str@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAPEB_WXZ */
2245 /* ?data@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEPB_WXZ */
2246 /* ?data@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAPEB_WXZ */
2247 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_c_str
, 4)
2248 const wchar_t* __thiscall
MSVCP_basic_string_wchar_c_str(basic_string_wchar
*this)
2250 TRACE("%p\n", this);
2251 return basic_string_wchar_const_ptr(this);
2254 /* ?capacity@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIXZ */
2255 /* ?capacity@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KXZ */
2256 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_capacity
, 4)
2257 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_capacity(basic_string_wchar
*this)
2259 TRACE("%p\n", this);
2263 /* ?reserve@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXI@Z */
2264 /* ?reserve@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAX_K@Z */
2265 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_reserve
, 8)
2266 void __thiscall
MSVCP_basic_string_wchar_reserve(basic_string_wchar
*this, MSVCP_size_t size
)
2270 TRACE("%p %ld\n", this, size
);
2276 basic_string_wchar_grow(this, size
, FALSE
);
2277 basic_string_wchar_eos(this, len
);
2280 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@XZ */
2281 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@XZ */
2282 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor
, 4)
2283 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor(basic_string_wchar
*this)
2285 TRACE("%p\n", this);
2287 basic_string_wchar_tidy(this, FALSE
, 0);
2291 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@ABV01@@Z */
2292 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@AEBV01@@Z */
2293 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_copy_ctor
, 8)
2294 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_copy_ctor(
2295 basic_string_wchar
*this, const basic_string_wchar
*copy
)
2297 TRACE("%p %p\n", this, copy
);
2299 basic_string_wchar_tidy(this, FALSE
, 0);
2300 MSVCP_basic_string_wchar_assign(this, copy
);
2304 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_W@Z */
2305 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@PEB_W@Z */
2306 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_cstr
, 8)
2307 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_cstr(
2308 basic_string_wchar
*this, const wchar_t *str
)
2310 TRACE("%p %s\n", this, debugstr_w(str
));
2312 basic_string_wchar_tidy(this, FALSE
, 0);
2313 MSVCP_basic_string_wchar_assign_cstr(this, str
);
2317 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_WABV?$allocator@_W@1@@Z */
2318 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@PEB_WAEBV?$allocator@_W@1@@Z */
2319 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_cstr_alloc
, 12)
2320 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_cstr_alloc(
2321 basic_string_wchar
*this, const wchar_t *str
, const void *alloc
)
2323 return MSVCP_basic_string_wchar_ctor_cstr(this, str
);
2326 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_WI@Z */
2327 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@PEB_W_K@Z */
2328 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_cstr_len
, 12)
2329 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_cstr_len(
2330 basic_string_wchar
*this, const wchar_t *str
, MSVCP_size_t len
)
2332 TRACE("%p %s %ld\n", this, debugstr_w(str
), len
);
2334 basic_string_wchar_tidy(this, FALSE
, 0);
2335 MSVCP_basic_string_wchar_assign_cstr_len(this, str
, len
);
2339 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_WIABV?$allocator@_W@1@@Z */
2340 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@PEB_W_KAEBV?$allocator@_W@1@@Z */
2341 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_cstr_len_alloc
, 16)
2342 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_cstr_len_alloc(
2343 basic_string_wchar
*this, const wchar_t *str
, MSVCP_size_t len
, const void *alloc
)
2345 return MSVCP_basic_string_wchar_ctor_cstr_len(this, str
, len
);
2348 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@ABV01@II@Z */
2349 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@AEBV01@_K1@Z */
2350 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_substr
, 16)
2351 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_substr(
2352 basic_string_wchar
*this, const basic_string_wchar
*assign
,
2353 MSVCP_size_t pos
, MSVCP_size_t len
)
2355 TRACE("%p %p %lu %lu\n", this, assign
, pos
, len
);
2357 basic_string_wchar_tidy(this, FALSE
, 0);
2358 MSVCP_basic_string_wchar_assign_substr(this, assign
, pos
, len
);
2362 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@ABV01@IIABV?$allocator@_W@1@@Z */
2363 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@AEBV01@_K1AEBV?$allocator@_W@1@@Z */
2364 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_substr_alloc
, 20)
2365 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_substr_alloc(
2366 basic_string_wchar
*this, const basic_string_wchar
*assign
,
2367 MSVCP_size_t pos
, MSVCP_size_t len
, const void *alloc
)
2369 return MSVCP_basic_string_wchar_ctor_substr(this, assign
, pos
, len
);
2372 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@ABV?$allocator@_W@1@@Z */
2373 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@AEBV?$allocator@_W@1@@Z */
2374 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_alloc
, 8)
2375 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_alloc(
2376 basic_string_wchar
*this, const void *alloc
)
2378 TRACE("%p %p\n", this, alloc
);
2380 basic_string_wchar_tidy(this, FALSE
, 0);
2384 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@I_W@Z */
2385 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@_K_W@Z */
2386 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_ch
, 12)
2387 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_ch(basic_string_wchar
*this,
2388 MSVCP_size_t count
, wchar_t ch
)
2390 TRACE("%p %ld %c\n", this, count
, ch
);
2392 basic_string_wchar_tidy(this, FALSE
, 0);
2393 MSVCP_basic_string_wchar_assignn(this, count
, ch
);
2397 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@I_WABV?$allocator@_W@1@@Z */
2398 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@_K_WAEBV?$allocator@_W@1@@Z */
2399 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_ch_alloc
, 16)
2400 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_ch_alloc(basic_string_wchar
*this,
2401 MSVCP_size_t count
, wchar_t ch
, const void *alloc
)
2403 return MSVCP_basic_string_wchar_ctor_ch(this, count
, ch
);
2406 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@PB_W0@Z */
2407 /* ??0?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@PEB_W0@Z */
2408 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_ptr_ptr
, 12)
2409 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_ptr_ptr(basic_string_wchar
*this,
2410 const wchar_t *first
, const wchar_t *last
)
2412 return MSVCP_basic_string_wchar_ctor_cstr_len(this, first
, last
-first
);
2415 /* ??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 */
2416 /* ??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 */
2417 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_ctor_iter
, 20)
2418 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_ctor_iter(basic_string_wchar
*this,
2419 String_iterator_wchar beg
, String_iterator_wchar end
)
2421 return MSVCP_basic_string_wchar_ctor_cstr_len(this, beg
.pos
, end
.pos
-beg
.pos
+1);
2424 /* ??1?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@XZ */
2425 /* ??1?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAA@XZ */
2426 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_dtor
, 4)
2427 void __thiscall
MSVCP_basic_string_wchar_dtor(basic_string_wchar
*this)
2429 TRACE("%p\n", this);
2430 basic_string_wchar_tidy(this, TRUE
, 0);
2433 /* ?size@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIXZ */
2434 /* ?size@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KXZ */
2435 /* ?length@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIXZ */
2436 /* ?length@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KXZ */
2437 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_length
, 4)
2438 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_length(basic_string_wchar
*this)
2440 TRACE("%p\n", this);
2444 /* ?max_size@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIXZ */
2445 /* ?max_size@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KXZ */
2446 DEFINE_THISCALL_WRAPPER(basic_string_wchar_max_size
, 4)
2447 MSVCP_size_t __thiscall
basic_string_wchar_max_size(const basic_string_wchar
*this)
2449 TRACE("%p\n", this);
2450 return MSVCP_allocator_wchar_max_size(this->allocator
)-1;
2453 /* ?empty@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE_NXZ */
2454 /* ?empty@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_NXZ */
2455 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_empty
, 4)
2456 MSVCP_bool __thiscall
MSVCP_basic_string_wchar_empty(basic_string_wchar
*this)
2458 TRACE("%p\n", this);
2459 return this->size
== 0;
2462 /* ?swap@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXAAV12@@Z */
2463 /* ?swap@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXAEAV12@@Z */
2464 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_swap
, 8)
2465 void __thiscall
MSVCP_basic_string_wchar_swap(basic_string_wchar
*this, basic_string_wchar
*str
)
2468 char tmp
[sizeof(this->data
)];
2469 const MSVCP_size_t size
= this->size
;
2470 const MSVCP_size_t res
= this->res
;
2472 memcpy(tmp
, this->data
.buf
, sizeof(this->data
));
2473 memcpy(this->data
.buf
, str
->data
.buf
, sizeof(this->data
));
2474 memcpy(str
->data
.buf
, tmp
, sizeof(this->data
));
2476 this->size
= str
->size
;
2477 this->res
= str
->res
;
2484 /* ?substr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE?AV12@II@Z */
2485 /* ?substr@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA?AV12@_K0@Z */
2486 DEFINE_THISCALL_WRAPPER_RETPTR(MSVCP_basic_string_wchar_substr
, 12)
2487 basic_string_wchar __thiscall
MSVCP_basic_string_wchar_substr(
2488 basic_string_wchar
*this, MSVCP_size_t off
, MSVCP_size_t len
)
2490 basic_string_wchar ret
= { 0 };
2491 TRACE("%p %lu %lu\n", this, off
, len
);
2493 MSVCP_basic_string_wchar_ctor_substr(&ret
, this, off
, len
);
2497 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@ABV12@II@Z */
2498 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@AEBV12@_K1@Z */
2499 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_substr
, 16)
2500 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_append_substr(basic_string_wchar
*this,
2501 const basic_string_wchar
*append
, MSVCP_size_t offset
, MSVCP_size_t count
)
2503 TRACE("%p %p %lu %lu\n", this, append
, offset
, count
);
2505 if(append
->size
< offset
)
2506 MSVCP__String_base_Xran();
2508 if(count
> append
->size
-offset
)
2509 count
= append
->size
-offset
;
2511 if(MSVCP_basic_string_wchar_npos
-this->size
<=count
|| this->size
+count
<this->size
)
2512 MSVCP__String_base_Xlen();
2514 if(basic_string_wchar_grow(this, this->size
+count
, FALSE
)) {
2515 MSVCP_char_traits_wchar__Copy_s(basic_string_wchar_ptr(this)+this->size
,
2516 this->res
-this->size
, basic_string_wchar_const_ptr(append
)+offset
, count
);
2517 basic_string_wchar_eos(this, this->size
+count
);
2523 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@ABV12@@Z */
2524 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@AEBV12@@Z */
2525 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@ABV01@@Z */
2526 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@AEBV01@@Z */
2527 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append
, 8)
2528 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_append(
2529 basic_string_wchar
*this, const basic_string_wchar
*append
)
2531 return MSVCP_basic_string_wchar_append_substr(this, append
,
2532 0, MSVCP_basic_string_wchar_npos
);
2535 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_WI@Z */
2536 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W_K@Z */
2537 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_cstr_len
, 12)
2538 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_append_cstr_len(
2539 basic_string_wchar
*this, const wchar_t *append
, MSVCP_size_t count
)
2541 TRACE("%p %s %lu\n", this, debugstr_w(append
), count
);
2543 if(basic_string_wchar_inside(this, append
))
2544 return MSVCP_basic_string_wchar_append_substr(this, this,
2545 append
-basic_string_wchar_ptr(this), count
);
2547 if(MSVCP_basic_string_wchar_npos
-this->size
<=count
|| this->size
+count
<this->size
)
2548 MSVCP__String_base_Xlen();
2550 if(basic_string_wchar_grow(this, this->size
+count
, FALSE
)) {
2551 MSVCP_char_traits_wchar__Copy_s(basic_string_wchar_ptr(this)+this->size
,
2552 this->res
-this->size
, append
, count
);
2553 basic_string_wchar_eos(this, this->size
+count
);
2559 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_W@Z */
2560 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W@Z */
2561 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@PB_W@Z */
2562 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@PEB_W@Z */
2563 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_cstr
, 8)
2564 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_append_cstr(
2565 basic_string_wchar
*this, const wchar_t *append
)
2567 return MSVCP_basic_string_wchar_append_cstr_len(this, append
,
2568 MSVCP_char_traits_wchar_length(append
));
2571 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@PB_W0@Z */
2572 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@PEB_W0@Z */
2573 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_beg_end
, 12)
2574 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_append_beg_end(
2575 basic_string_wchar
*this, const wchar_t *beg
, const wchar_t *end
)
2577 return MSVCP_basic_string_wchar_append_cstr_len(this, beg
, end
-beg
);
2580 /* ?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 */
2581 /* ?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 */
2582 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_iter
, 20)
2583 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_append_iter(
2584 basic_string_wchar
*this, String_iterator_wchar beg
, String_iterator_wchar end
)
2586 return MSVCP_basic_string_wchar_append_cstr_len(this, beg
.pos
, end
.pos
-beg
.pos
+1);
2589 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@I_W@Z */
2590 /* ?append@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K_W@Z */
2591 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_len_ch
, 12)
2592 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_append_len_ch(
2593 basic_string_wchar
*this, MSVCP_size_t count
, wchar_t ch
)
2595 TRACE("%p %lu %c\n", this, count
, ch
);
2597 if(MSVCP_basic_string_wchar_npos
-this->size
<= count
)
2598 MSVCP__String_base_Xlen();
2600 if(basic_string_wchar_grow(this, this->size
+count
, FALSE
)) {
2601 MSVCP_char_traits_wchar_assignn(basic_string_wchar_ptr(this)+this->size
, count
, ch
);
2602 basic_string_wchar_eos(this, this->size
+count
);
2608 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV01@_W@Z */
2609 /* ??Y?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV01@_W@Z */
2610 /* ?push_back@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEX_W@Z */
2611 /* ?push_back@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAX_W@Z */
2612 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_append_ch
, 8)
2613 basic_string_wchar
* __thiscall
MSVCP_basic_string_wchar_append_ch(
2614 basic_string_wchar
*this, wchar_t ch
)
2616 return MSVCP_basic_string_wchar_append_len_ch(this, 1, ch
);
2619 /* ??$?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 */
2620 /* ??$?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 */
2621 basic_string_wchar
* __cdecl
MSVCP_basic_string_wchar_concatenate_bstr_cstr(basic_string_wchar
*ret
,
2622 const basic_string_wchar
*left
, const wchar_t *right
)
2624 TRACE("%p %s\n", left
, debugstr_w(right
));
2626 MSVCP_basic_string_wchar_copy_ctor(ret
, left
);
2627 MSVCP_basic_string_wchar_append_cstr(ret
, right
);
2631 /* ??$?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 */
2632 /* ??$?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 */
2633 basic_string_wchar
* __cdecl
MSVCP_basic_string_wchar_concatenate_cstr_bstr(basic_string_wchar
*ret
,
2634 const wchar_t *left
, const basic_string_wchar
*right
)
2636 TRACE("%s %p\n", debugstr_w(left
), right
);
2638 MSVCP_basic_string_wchar_ctor_cstr(ret
, left
);
2639 MSVCP_basic_string_wchar_append(ret
, right
);
2643 /* ??$?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 */
2644 /* ??$?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 */
2645 basic_string_wchar
* __cdecl
MSVCP_basic_string_wchar_concatenate(basic_string_wchar
*ret
,
2646 const basic_string_wchar
*left
, const basic_string_wchar
*right
)
2648 TRACE("%p %p\n", left
, right
);
2650 MSVCP_basic_string_wchar_copy_ctor(ret
, left
);
2651 MSVCP_basic_string_wchar_append(ret
, right
);
2655 /* ??$?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 */
2656 /* ??$?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 */
2657 basic_string_wchar __cdecl
MSVCP_basic_string_wchar_concatenate_bstr_ch(
2658 const basic_string_wchar
*left
, wchar_t right
)
2660 basic_string_wchar ret
= { 0 };
2662 TRACE("%p %c\n", left
, right
);
2664 MSVCP_basic_string_wchar_copy_ctor(&ret
, left
);
2665 MSVCP_basic_string_wchar_append_ch(&ret
, right
);
2669 /* ??$?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 */
2670 /* ??$?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 */
2671 basic_string_wchar __cdecl
MSVCP_basic_string_wchar_concatenate_ch_bstr(
2672 wchar_t left
, const basic_string_wchar
*right
)
2674 basic_string_wchar ret
= { 0 };
2676 TRACE("%c %p\n", left
, right
);
2678 MSVCP_basic_string_wchar_ctor_cstr_len(&ret
, &left
, 1);
2679 MSVCP_basic_string_wchar_append(&ret
, right
);
2683 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHIIPB_WI@Z */
2684 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAH_K0PEB_W0@Z */
2685 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare_substr_cstr_len
, 20)
2686 int __thiscall
MSVCP_basic_string_wchar_compare_substr_cstr_len(
2687 const basic_string_wchar
*this, MSVCP_size_t pos
, MSVCP_size_t num
,
2688 const wchar_t *str
, MSVCP_size_t count
)
2692 TRACE("%p %lu %lu %s %lu\n", this, pos
, num
, debugstr_w(str
), count
);
2694 if(this->size
< pos
)
2695 MSVCP__String_base_Xran();
2697 if(pos
+num
> this->size
)
2698 num
= this->size
-pos
;
2700 ans
= MSVCP_char_traits_wchar_compare(basic_string_wchar_const_ptr(this)+pos
,
2701 str
, num
>count
? count
: num
);
2707 else if(num
< count
)
2712 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHIIPB_W@Z */
2713 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAH_K0PEB_W@Z */
2714 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare_substr_cstr
, 16)
2715 int __thiscall
MSVCP_basic_string_wchar_compare_substr_cstr(const basic_string_wchar
*this,
2716 MSVCP_size_t pos
, MSVCP_size_t num
, const wchar_t *str
)
2718 return MSVCP_basic_string_wchar_compare_substr_cstr_len(this, pos
, num
,
2719 str
, MSVCP_char_traits_wchar_length(str
));
2722 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHPB_W@Z */
2723 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAHPEB_W@Z */
2724 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare_cstr
, 8)
2725 int __thiscall
MSVCP_basic_string_wchar_compare_cstr(
2726 const basic_string_wchar
*this, const wchar_t *str
)
2728 return MSVCP_basic_string_wchar_compare_substr_cstr_len(this, 0, this->size
,
2729 str
, MSVCP_char_traits_wchar_length(str
));
2732 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHIIABV12@II@Z */
2733 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAH_K0AEBV12@00@Z */
2734 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare_substr_substr
, 24)
2735 int __thiscall
MSVCP_basic_string_wchar_compare_substr_substr(
2736 const basic_string_wchar
*this, MSVCP_size_t pos
, MSVCP_size_t num
,
2737 const basic_string_wchar
*compare
, MSVCP_size_t off
, MSVCP_size_t count
)
2739 TRACE("%p %lu %lu %p %lu %lu\n", this, pos
, num
, compare
, off
, count
);
2741 if(compare
->size
< off
)
2742 MSVCP__String_base_Xran();
2744 if(off
+count
> compare
->size
)
2745 count
= compare
->size
-off
;
2747 return MSVCP_basic_string_wchar_compare_substr_cstr_len(this, pos
, num
,
2748 basic_string_wchar_const_ptr(compare
)+off
, count
);
2751 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHIIABV12@@Z */
2752 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAH_K0AEBV12@@Z */
2753 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare_substr
, 16)
2754 int __thiscall
MSVCP_basic_string_wchar_compare_substr(
2755 const basic_string_wchar
*this, MSVCP_size_t pos
, MSVCP_size_t num
,
2756 const basic_string_wchar
*compare
)
2758 return MSVCP_basic_string_wchar_compare_substr_cstr_len(this, pos
, num
,
2759 basic_string_wchar_const_ptr(compare
), compare
->size
);
2762 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEHABV12@@Z */
2763 /* ?compare@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAHAEBV12@@Z */
2764 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_compare
, 8)
2765 int __thiscall
MSVCP_basic_string_wchar_compare(
2766 const basic_string_wchar
*this, const basic_string_wchar
*compare
)
2768 return MSVCP_basic_string_wchar_compare_substr_cstr_len(this, 0, this->size
,
2769 basic_string_wchar_const_ptr(compare
), compare
->size
);
2772 /* ??$?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 */
2773 /* ??$?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 */
2774 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_equal(
2775 const basic_string_wchar
*left
, const basic_string_wchar
*right
)
2777 return MSVCP_basic_string_wchar_compare(left
, right
) == 0;
2780 /* ??$?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 */
2781 /* ??$?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 */
2782 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_equal_str_cstr(
2783 const basic_string_wchar
*left
, const wchar_t *right
)
2785 return MSVCP_basic_string_wchar_compare_cstr(left
, right
) == 0;
2788 /* ??$?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 */
2789 /* ??$?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 */
2790 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_equal_cstr_str(
2791 const wchar_t *left
, const basic_string_wchar
*right
)
2793 return MSVCP_basic_string_wchar_compare_cstr(right
, left
) == 0;
2796 /* ??$?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 */
2797 /* ??$?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 */
2798 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_not_equal(
2799 const basic_string_wchar
*left
, const basic_string_wchar
*right
)
2801 return MSVCP_basic_string_wchar_compare(left
, right
) != 0;
2804 /* ??$?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 */
2805 /* ??$?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 */
2806 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_not_equal_str_cstr(
2807 const basic_string_wchar
*left
, const wchar_t *right
)
2809 return MSVCP_basic_string_wchar_compare_cstr(left
, right
) != 0;
2812 /* ??$?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 */
2813 /* ??$?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 */
2814 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_not_equal_cstr_str(
2815 const wchar_t *left
, const basic_string_wchar
*right
)
2817 return MSVCP_basic_string_wchar_compare_cstr(right
, left
) != 0;
2820 /* ??$?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 */
2821 /* ??$?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 */
2822 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_lower(
2823 const basic_string_wchar
*left
, const basic_string_wchar
*right
)
2825 return MSVCP_basic_string_wchar_compare(left
, right
) < 0;
2828 /* ??$?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 */
2829 /* ??$?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 */
2830 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_lower_bstr_cstr(
2831 const basic_string_wchar
*left
, const wchar_t *right
)
2833 return MSVCP_basic_string_wchar_compare_cstr(left
, right
) < 0;
2836 /* ??$?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 */
2837 /* ??$?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 */
2838 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_lower_cstr_bstr(
2839 const wchar_t *left
, const basic_string_wchar
*right
)
2841 return MSVCP_basic_string_wchar_compare_cstr(right
, left
) > 0;
2844 /* ??$?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 */
2845 /* ??$?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 */
2846 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_leq(
2847 const basic_string_wchar
*left
, const basic_string_wchar
*right
)
2849 return MSVCP_basic_string_wchar_compare(left
, right
) <= 0;
2852 /* ??$?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 */
2853 /* ??$?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 */
2854 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_leq_bstr_cstr(
2855 const basic_string_wchar
*left
, const wchar_t *right
)
2857 return MSVCP_basic_string_wchar_compare_cstr(left
, right
) <= 0;
2860 /* ??$?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 */
2861 /* ??$?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 */
2862 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_leq_cstr_bstr(
2863 const wchar_t *left
, const basic_string_wchar
*right
)
2865 return MSVCP_basic_string_wchar_compare_cstr(right
, left
) >= 0;
2868 /* ??$?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 */
2869 /* ??$?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 */
2870 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_greater(
2871 const basic_string_wchar
*left
, const basic_string_wchar
*right
)
2873 return MSVCP_basic_string_wchar_compare(left
, right
) > 0;
2876 /* ??$?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 */
2877 /* ??$?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 */
2878 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_greater_bstr_cstr(
2879 const basic_string_wchar
*left
, const wchar_t *right
)
2881 return MSVCP_basic_string_wchar_compare_cstr(left
, right
) > 0;
2884 /* ??$?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 */
2885 /* ??$?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 */
2886 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_greater_cstr_bstr(
2887 const wchar_t *left
, const basic_string_wchar
*right
)
2889 return MSVCP_basic_string_wchar_compare_cstr(right
, left
) < 0;
2892 /* ??$?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 */
2893 /* ??$?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 */
2894 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_geq(
2895 const basic_string_wchar
*left
, const basic_string_wchar
*right
)
2897 return MSVCP_basic_string_wchar_compare(left
, right
) >= 0;
2900 /* ??$?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 */
2901 /* ??$?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 */
2902 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_geq_bstr_cstr(
2903 const basic_string_wchar
*left
, const wchar_t *right
)
2905 return MSVCP_basic_string_wchar_compare_cstr(left
, right
) >= 0;
2908 /* ??$?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 */
2909 /* ??$?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 */
2910 MSVCP_bool __cdecl
MSVCP_basic_string_wchar_geq_cstr_bstr(
2911 const wchar_t *left
, const basic_string_wchar
*right
)
2913 return MSVCP_basic_string_wchar_compare_cstr(right
, left
) <= 0;
2916 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
2917 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
2918 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_cstr_substr
, 16)
2919 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_cstr_substr(
2920 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t pos
, MSVCP_size_t len
)
2922 const wchar_t *p
, *end
;
2924 TRACE("%p %s %lu %lu\n", this, debugstr_w(find
), pos
, len
);
2926 if(len
==0 && pos
<=this->size
)
2929 end
= basic_string_wchar_const_ptr(this)+this->size
-len
+1;
2930 for(p
=basic_string_wchar_const_ptr(this)+pos
; p
<end
; p
++) {
2931 p
= MSVCP_char_traits_wchar_find(p
, end
-p
, find
);
2935 if(!MSVCP_char_traits_wchar_compare(p
, find
, len
))
2936 return p
-basic_string_wchar_const_ptr(this);
2939 return MSVCP_basic_string_wchar_npos
;
2942 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
2943 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
2944 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_cstr_off
, 12)
2945 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_cstr_off(
2946 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t pos
)
2948 return MSVCP_basic_string_wchar_find_cstr_substr(this, find
, pos
,
2949 MSVCP_char_traits_wchar_length(find
));
2952 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
2953 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
2954 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_off
, 12)
2955 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_off(
2956 const basic_string_wchar
*this, const basic_string_wchar
*find
, MSVCP_size_t off
)
2958 return MSVCP_basic_string_wchar_find_cstr_substr(this,
2959 basic_string_wchar_const_ptr(find
), off
, find
->size
);
2962 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
2963 /* ?find@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
2964 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_ch
, 12)
2965 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_ch(
2966 const basic_string_wchar
*this, wchar_t ch
, MSVCP_size_t pos
)
2968 return MSVCP_basic_string_wchar_find_cstr_substr(this, &ch
, pos
, 1);
2971 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
2972 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
2973 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_of_cstr_substr
, 16)
2974 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_first_of_cstr_substr(
2975 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t off
, MSVCP_size_t len
)
2977 const wchar_t *p
, *end
;
2979 TRACE("%p %p %lu %lu\n", this, find
, off
, len
);
2981 if(len
>0 && off
<this->size
) {
2982 end
= basic_string_wchar_const_ptr(this)+this->size
;
2983 for(p
=basic_string_wchar_const_ptr(this)+off
; p
<end
; p
++)
2984 if(MSVCP_char_traits_wchar_find(find
, len
, p
))
2985 return p
-basic_string_wchar_const_ptr(this);
2988 return MSVCP_basic_string_wchar_npos
;
2991 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
2992 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
2993 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_of
, 12)
2994 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_first_of(
2995 const basic_string_wchar
*this, const basic_string_wchar
*find
, MSVCP_size_t off
)
2997 return MSVCP_basic_string_wchar_find_first_of_cstr_substr(this,
2998 basic_string_wchar_const_ptr(find
), off
, find
->size
);
3001 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
3002 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
3003 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_of_cstr
, 12)
3004 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_first_of_cstr(
3005 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t off
)
3007 return MSVCP_basic_string_wchar_find_first_of_cstr_substr(
3008 this, find
, off
, MSVCP_char_traits_wchar_length(find
));
3011 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
3012 /* ?find_first_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
3013 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_of_ch
, 12)
3014 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_first_of_ch(
3015 const basic_string_wchar
*this, wchar_t ch
, MSVCP_size_t off
)
3017 return MSVCP_basic_string_wchar_find_first_of_cstr_substr(this, &ch
, off
, 1);
3020 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
3021 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
3022 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_not_of_cstr_substr
, 16)
3023 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_first_not_of_cstr_substr(
3024 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t off
, MSVCP_size_t len
)
3026 const wchar_t *p
, *end
;
3028 TRACE("%p %p %lu %lu\n", this, find
, off
, len
);
3030 if(off
<this->size
) {
3031 end
= basic_string_wchar_const_ptr(this)+this->size
;
3032 for(p
=basic_string_wchar_const_ptr(this)+off
; p
<end
; p
++)
3033 if(!MSVCP_char_traits_wchar_find(find
, len
, p
))
3034 return p
-basic_string_wchar_const_ptr(this);
3037 return MSVCP_basic_string_wchar_npos
;
3040 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
3041 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
3042 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_not_of
, 12)
3043 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_first_not_of(
3044 const basic_string_wchar
*this, const basic_string_wchar
*find
, MSVCP_size_t off
)
3046 return MSVCP_basic_string_wchar_find_first_not_of_cstr_substr(this,
3047 basic_string_wchar_const_ptr(find
), off
, find
->size
);
3050 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
3051 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
3052 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_not_of_cstr
, 12)
3053 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_first_not_of_cstr(
3054 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t off
)
3056 return MSVCP_basic_string_wchar_find_first_not_of_cstr_substr(
3057 this, find
, off
, MSVCP_char_traits_wchar_length(find
));
3060 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
3061 /* ?find_first_not_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
3062 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_first_not_of_ch
, 12)
3063 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_first_not_of_ch(
3064 const basic_string_wchar
*this, wchar_t ch
, MSVCP_size_t off
)
3066 return MSVCP_basic_string_wchar_find_first_not_of_cstr_substr(this, &ch
, off
, 1);
3069 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WII@Z */
3070 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K1@Z */
3071 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_of_cstr_substr
, 16)
3072 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_last_of_cstr_substr(
3073 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t off
, MSVCP_size_t len
)
3075 const wchar_t *p
, *beg
;
3077 TRACE("%p %p %lu %lu\n", this, find
, off
, len
);
3080 if(len
>0 && this->size
>0) {
3081 if(off
>= this->size
)
3084 beg
= basic_string_wchar_const_ptr(this);
3085 for(p
=beg
+off
; p
>=beg
; p
--)
3086 if(MSVCP_char_traits_wchar_find(find
, len
, p
))
3090 return MSVCP_basic_string_wchar_npos
;
3093 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIABV12@I@Z */
3094 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KAEBV12@_K@Z */
3095 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_of
, 12)
3096 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_last_of(
3097 const basic_string_wchar
*this, const basic_string_wchar
*find
, MSVCP_size_t off
)
3099 return MSVCP_basic_string_wchar_find_last_of_cstr_substr(this,
3100 basic_string_wchar_const_ptr(find
), off
, find
->size
);
3103 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEIPB_WI@Z */
3104 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_KPEB_W_K@Z */
3105 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_of_cstr
, 12)
3106 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_last_of_cstr(
3107 const basic_string_wchar
*this, const wchar_t *find
, MSVCP_size_t off
)
3109 return MSVCP_basic_string_wchar_find_last_of_cstr_substr(
3110 this, find
, off
, MSVCP_char_traits_wchar_length(find
));
3113 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEI_WI@Z */
3114 /* ?find_last_of@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBA_K_W_K@Z */
3115 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_find_last_of_ch
, 12)
3116 MSVCP_size_t __thiscall
MSVCP_basic_string_wchar_find_last_of_ch(
3117 const basic_string_wchar
*this, wchar_t ch
, MSVCP_size_t off
)
3119 return MSVCP_basic_string_wchar_find_last_of_cstr_substr(this, &ch
, off
, 1);
3122 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IIPB_WI@Z */
3123 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0PEB_W0@Z */
3124 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_cstr_len
, 20)
3125 basic_string_wchar
* __thiscall
basic_string_wchar_replace_cstr_len(basic_string_wchar
*this,
3126 MSVCP_size_t off
, MSVCP_size_t len
, const wchar_t *str
, MSVCP_size_t str_len
)
3128 MSVCP_size_t inside_pos
= -1;
3129 wchar_t *ptr
= basic_string_wchar_ptr(this);
3131 TRACE("%p %ld %ld %p %ld\n", this, off
, len
, str
, str_len
);
3133 if(this->size
< off
)
3134 MSVCP__String_base_Xran();
3136 if(off
+len
> this->size
)
3137 len
= this->size
-off
;
3139 if(MSVCP_basic_string_wchar_npos
-str_len
<= this->size
-len
)
3140 MSVCP__String_base_Xlen();
3142 if(basic_string_wchar_inside(this, str
))
3143 inside_pos
= str
-ptr
;
3146 basic_string_wchar_grow(this, this->size
-len
+str_len
, FALSE
);
3148 if(inside_pos
== -1) {
3149 memmove(ptr
+off
+str_len
, ptr
+off
+len
, (this->size
-off
-len
)*sizeof(wchar_t));
3150 memcpy(ptr
+off
, str
, str_len
*sizeof(wchar_t));
3151 } else if(len
>= str_len
) {
3152 memmove(ptr
+off
, ptr
+inside_pos
, str_len
*sizeof(wchar_t));
3153 memmove(ptr
+off
+str_len
, ptr
+off
+len
, (this->size
-off
-len
)*sizeof(wchar_t));
3157 memmove(ptr
+off
+str_len
, ptr
+off
+len
, (this->size
-off
-len
)*sizeof(wchar_t));
3159 if(inside_pos
< off
+len
) {
3160 size
= off
+len
-inside_pos
;
3163 memmove(ptr
+off
, ptr
+inside_pos
, size
*sizeof(wchar_t));
3169 memmove(ptr
+off
+size
, ptr
+off
+str_len
, (str_len
-size
)*sizeof(wchar_t));
3172 basic_string_wchar_eos(this, this->size
-len
+str_len
);
3176 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IIPB_W@Z */
3177 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0PEB_W@Z */
3178 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_cstr
, 16)
3179 basic_string_wchar
* __thiscall
basic_string_wchar_replace_cstr(basic_string_wchar
*this,
3180 MSVCP_size_t off
, MSVCP_size_t len
, const wchar_t *str
)
3182 return basic_string_wchar_replace_cstr_len(this, off
, len
, str
,
3183 MSVCP_char_traits_wchar_length(str
));
3186 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IIABV12@II@Z */
3187 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0AEBV12@00@Z */
3188 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_substr
, 24)
3189 basic_string_wchar
* __thiscall
basic_string_wchar_replace_substr(basic_string_wchar
*this, MSVCP_size_t off
,
3190 MSVCP_size_t len
, const basic_string_wchar
*str
, MSVCP_size_t str_off
, MSVCP_size_t str_len
)
3192 if(str
->size
< str_off
)
3193 MSVCP__String_base_Xran();
3195 if(str_off
+str_len
> str
->size
)
3196 str_len
= str
->size
-str_off
;
3198 return basic_string_wchar_replace_cstr_len(this, off
, len
,
3199 basic_string_wchar_const_ptr(str
)+str_off
, str_len
);
3202 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@IIABV12@@Z */
3203 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K0AEBV12@@Z */
3204 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace
, 16)
3205 basic_string_wchar
* __thiscall
basic_string_wchar_replace(basic_string_wchar
*this,
3206 MSVCP_size_t off
, MSVCP_size_t len
, const basic_string_wchar
*str
)
3208 return basic_string_wchar_replace_cstr_len(this, off
, len
,
3209 basic_string_wchar_const_ptr(str
), str
->size
);
3212 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAAV12@III_W@Z */
3213 /* ?replace@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEAV12@_K00_W@Z */
3214 DEFINE_THISCALL_WRAPPER(basic_string_wchar_replace_ch
, 20)
3215 basic_string_wchar
* __thiscall
basic_string_wchar_replace_ch(basic_string_wchar
*this,
3216 MSVCP_size_t off
, MSVCP_size_t len
, MSVCP_size_t count
, wchar_t ch
)
3218 wchar_t *ptr
= basic_string_wchar_ptr(this);
3220 TRACE("%p %ld %ld %ld %c\n", this, off
, len
, count
, ch
);
3222 if(this->size
< off
)
3223 MSVCP__String_base_Xran();
3225 if(off
+len
> this->size
)
3226 len
= this->size
-off
;
3228 if(MSVCP_basic_string_wchar_npos
-count
<= this->size
-len
)
3229 MSVCP__String_base_Xlen();
3232 basic_string_wchar_grow(this, this->size
-len
+count
, FALSE
);
3234 memmove(ptr
+off
+count
, ptr
+off
+len
, (this->size
-off
-len
)*sizeof(wchar_t));
3235 MSVCP_char_traits_wchar_assignn(ptr
+off
, count
, ch
);
3236 basic_string_wchar_eos(this, this->size
-len
+count
);
3241 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAA_WI@Z */
3242 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEA_W_K@Z */
3243 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_operator_at
, 8)
3244 wchar_t* __thiscall
MSVCP_basic_string_wchar_operator_at(
3245 basic_string_wchar
*this, MSVCP_size_t pos
)
3247 TRACE("%p %lu\n", this, pos
);
3249 assert(this->size
>= pos
);
3250 return basic_string_wchar_ptr(this)+pos
;
3253 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEAB_WI@Z */
3254 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAAEB_W_K@Z */
3255 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_const_operator_at
, 8)
3256 const wchar_t* __thiscall
MSVCP_basic_string_wchar_const_operator_at(
3257 const basic_string_wchar
*this, MSVCP_size_t pos
)
3259 TRACE("%p %lu\n", this, pos
);
3261 assert(this->size
>= pos
);
3262 return basic_string_wchar_const_ptr(this)+pos
;
3265 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAA_WU_Size_type_nosscl@01@@Z */
3266 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEA_WU_Size_type_nosscl@01@@Z */
3267 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_operator_at_noverify
, 8)
3268 wchar_t* __thiscall
MSVCP_basic_string_wchar_operator_at_noverify(
3269 basic_string_wchar
*this, size_t_noverify pos
)
3271 TRACE("%p %lu\n", this, pos
.val
);
3272 return basic_string_wchar_ptr(this)+pos
.val
;
3275 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEAB_WU_Size_type_nosscl@01@@Z */
3276 /* ??A?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAAEB_WU_Size_type_nosscl@01@@Z */
3277 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_operator_const_at_noverify
, 8)
3278 const wchar_t* __thiscall
MSVCP_basic_string_wchar_operator_const_at_noverify(
3279 const basic_string_wchar
*this, size_t_noverify pos
)
3281 TRACE("%p %lu\n", this, pos
.val
);
3282 return basic_string_wchar_const_ptr(this)+pos
.val
;
3285 /* ?at@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEAA_WI@Z */
3286 /* ?at@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAAEA_W_K@Z */
3287 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_at
, 8)
3288 wchar_t* __thiscall
MSVCP_basic_string_wchar_at(
3289 basic_string_wchar
*this, MSVCP_size_t pos
)
3291 TRACE("%p %lu\n", this, pos
);
3293 if(this->size
<= pos
)
3294 MSVCP__String_base_Xran();
3296 return basic_string_wchar_ptr(this)+pos
;
3299 /* ?at@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBEAB_WI@Z */
3300 /* ?at@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEBAAEB_W_K@Z */
3301 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_const_at
, 8)
3302 const wchar_t* __thiscall
MSVCP_basic_string_wchar_const_at(
3303 const basic_string_wchar
*this, MSVCP_size_t pos
)
3305 TRACE("%p %lu\n", this, pos
);
3307 if(this->size
<= pos
)
3308 MSVCP__String_base_Xran();
3310 return basic_string_wchar_const_ptr(this)+pos
;
3313 /* ?resize@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXI_W@Z */
3314 /* ?resize@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAX_K_W@Z */
3315 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_resize_ch
, 12)
3316 void __thiscall
MSVCP_basic_string_wchar_resize_ch(
3317 basic_string_wchar
*this, MSVCP_size_t size
, wchar_t ch
)
3319 TRACE("%p %lu %c\n", this, size
, ch
);
3321 if(size
<= this->size
)
3322 MSVCP_basic_string_wchar_erase(this, size
, this->size
);
3324 MSVCP_basic_string_wchar_append_len_ch(this, size
-this->size
, ch
);
3327 /* ?resize@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXI@Z */
3328 /* ?resize@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAX_K@Z */
3329 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_resize
, 8)
3330 void __thiscall
MSVCP_basic_string_wchar_resize(
3331 basic_string_wchar
*this, MSVCP_size_t size
)
3333 MSVCP_basic_string_wchar_resize_ch(this, size
, '\0');
3336 /* ?clear@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXXZ */
3337 /* ?clear@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QEAAXXZ */
3338 DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_wchar_clear
, 4)
3339 void __thiscall
MSVCP_basic_string_wchar_clear(basic_string_wchar
*this)
3341 basic_string_wchar_eos(this, 0);
3344 /* ?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 */
3345 /* ?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 */
3346 /* ?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 */
3347 /* ?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 */
3348 DEFINE_THISCALL_WRAPPER_RETPTR(MSVCP_basic_string_wchar_begin
, 4)
3349 String_iterator_wchar __thiscall
MSVCP_basic_string_wchar_begin(basic_string_wchar
*this)
3351 String_iterator_wchar ret
;
3353 TRACE("%p\n", this);
3356 ret
.pos
= basic_string_wchar_const_ptr(this);
3360 /* ?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 */
3361 /* ?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 */
3362 /* ?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 */
3363 /* ?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 */
3364 DEFINE_THISCALL_WRAPPER_RETPTR(MSVCP_basic_string_wchar_end
, 4)
3365 String_iterator_wchar __thiscall
MSVCP_basic_string_wchar_end(basic_string_wchar
*this)
3367 String_iterator_wchar ret
;
3369 TRACE("%p\n", this);
3372 ret
.pos
= basic_string_wchar_const_ptr(this)+this->size
;
3376 /* ?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 */
3377 /* ?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 */
3378 /* ?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 */
3379 /* ?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 */
3380 DEFINE_THISCALL_WRAPPER_RETPTR(MSVCP_basic_string_wchar_rbegin
, 4)
3381 String_reverse_iterator_wchar __thiscall
MSVCP_basic_string_wchar_rbegin(basic_string_wchar
*this)
3383 String_reverse_iterator_wchar ret
;
3385 TRACE("%p\n", this);
3388 ret
.pos
= basic_string_wchar_const_ptr(this)+this->size
;
3392 /* ?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 */
3393 /* ?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 */
3394 /* ?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 */
3395 /* ?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 */
3396 DEFINE_THISCALL_WRAPPER_RETPTR(MSVCP_basic_string_wchar_rend
, 4)
3397 String_reverse_iterator_wchar __thiscall
MSVCP_basic_string_wchar_rend(basic_string_wchar
*this)
3399 String_reverse_iterator_wchar ret
;
3401 TRACE("%p\n", this);
3404 ret
.pos
= basic_string_wchar_const_ptr(this);
3408 /* ?_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 */
3409 /* ?_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 */
3410 MSVCP_size_t __cdecl
MSVCP_basic_string_wchar_Pdif(String_iterator_wchar i1
, String_iterator_wchar i2
)
3412 TRACE("(%p %p) (%p %p)\n", i1
.bstr
, i1
.pos
, i2
.bstr
, i2
.pos
);
3414 if((!i1
.bstr
&& i1
.pos
) || i1
.bstr
!=i2
.bstr
) {
3415 _invalid_parameter(NULL
, NULL
, NULL
, 0, 0);
3419 return !i1
.pos
? 0 : i1
.pos
-i2
.pos
;
3422 /* _String_val class */
3423 /* ??_F?$_String_val@DV?$allocator@D@std@@@std@@QAEXXZ */
3424 /* ??_F?$_String_val@DV?$allocator@D@std@@@std@@QEAAXXZ */
3425 /* ??_F?$_String_val@GV?$allocator@G@std@@@std@@QAEXXZ */
3426 /* ??_F?$_String_val@GV?$allocator@G@std@@@std@@QEAAXXZ */
3427 /* ??_F?$_String_val@_WV?$allocator@_W@std@@@std@@QAEXXZ */
3428 /* ??_F?$_String_val@_WV?$allocator@_W@std@@@std@@QEAAXXZ */
3429 DEFINE_THISCALL_WRAPPER(_String_val_ctor
, 4)
3430 void* __thiscall
_String_val_ctor(void *this)
3432 TRACE("%p\n", this);
3436 /* ??0?$_String_val@DV?$allocator@D@std@@@std@@IAE@V?$allocator@D@1@@Z */
3437 /* ??0?$_String_val@DV?$allocator@D@std@@@std@@IEAA@V?$allocator@D@1@@Z */
3438 /* ??0?$_String_val@GV?$allocator@G@std@@@std@@IAE@V?$allocator@G@1@@Z */
3439 /* ??0?$_String_val@GV?$allocator@G@std@@@std@@IEAA@V?$allocator@G@1@@Z */
3440 /* ??0?$_String_val@_WV?$allocator@_W@std@@@std@@IAE@V?$allocator@_W@1@@Z */
3441 /* ??0?$_String_val@_WV?$allocator@_W@std@@@std@@IEAA@V?$allocator@_W@1@@Z */
3442 /* ??0?$_String_val@DV?$allocator@D@std@@@std@@QAE@ABV01@@Z */
3443 /* ??0?$_String_val@DV?$allocator@D@std@@@std@@QEAA@AEBV01@@Z */
3444 /* ??0?$_String_val@GV?$allocator@G@std@@@std@@QAE@ABV01@@Z */
3445 /* ??0?$_String_val@GV?$allocator@G@std@@@std@@QEAA@AEBV01@@Z */
3446 /* ??0?$_String_val@_WV?$allocator@_W@std@@@std@@QAE@ABV01@@Z */
3447 /* ??0?$_String_val@_WV?$allocator@_W@std@@@std@@QEAA@AEBV01@@Z */
3448 /* ??4?$_String_val@DV?$allocator@D@std@@@std@@QAEAAV01@ABV01@@Z */
3449 /* ??4?$_String_val@DV?$allocator@D@std@@@std@@QEAAAEAV01@AEBV01@@Z */
3450 /* ??4?$_String_val@GV?$allocator@G@std@@@std@@QAEAAV01@ABV01@@Z */
3451 /* ??4?$_String_val@GV?$allocator@G@std@@@std@@QEAAAEAV01@AEBV01@@Z */
3452 /* ??4?$_String_val@_WV?$allocator@_W@std@@@std@@QAEAAV01@ABV01@@Z */
3453 /* ??4?$_String_val@_WV?$allocator@_W@std@@@std@@QEAAAEAV01@AEBV01@@Z */
3454 /* ??4?$_String_val@DV?$allocator@D@std@@@std@@QAEAAV01@ABV01@@Z */
3455 DEFINE_THISCALL_WRAPPER(_String_val_null_ctor
, 8)
3456 void* __thiscall
_String_val_null_ctor(void *this, const void *misc
)
3458 TRACE("%p %p\n", this, misc
);